Elo TouchSystems 1525L manual rawrecv, Receive data from the device

Models: 1525L

1 181
Download 181 pages 9.32 Kb
Page 109
Image 109
rawrecv

MagTek Device Drivers for Windows

rawrecv

Function

Receive data from the device.

Syntax

/rawrecv

 

Errors

/rawrecv

45<LF>

If a command is already pending.

/rawrecv82<LF>

If the command was canceled by the user (e.g., with CLEAR key)

Remarks This command overrides the default processing of the next message that comes from the device and returns it to the application as a rawrecv response. Only one message from the device will be processed in this manner, after that the driver switches to normal operation. The response to this command is in the following format: /rawrecv status x

status is a 2-digit decimal value (refer to Appendix C. Status Codes for a complete description of the status values)

x is the data received from the device with the following characters replaced:

<CR> is replaced by \r

<LF> is replaced by \n

\ is replaced by \\

any other non-printable characters are replaced by \xhh, where hh is the

two digit hex code of the character.

If a /rawsend command is sent that will cause the device to send back a response, the application should either submit a /rawrecv command before sending the data with /rawsend, or (better) use the /rawxact command.

Note

In some cases, the framing characters in the response are extracted by the driver and are not presented to the application.

Example To receive card data when the IntelliPIN is operating in the VeriFone mode:

Command

/rawrecv<LF>

 

Response

/rawrecv

00 ;12345?<LF>

106

Page 109
Image 109
Elo TouchSystems 1525L manual rawrecv, Receive data from the device