Professional Documents
Culture Documents
Mag Read Intructions
Mag Read Intructions
<STX><message bytes><ETX>{LRC}
Where:
<STX> is the 02h ASCII character;
<ETX> is the 03h ASCII character;
{LRC} is a calculated check-value, corresponding to an XOR of all message
bytes, excluding the STX and including the ETX;
Upon a message reception the PIN-Pad will answer with a <ACK> - 06h character – if
the message is ok and accepted or <NAK> - 15h character – if not.
When a response packet is received from the PIN-Pad, the PC must also send an
<ACK> or <NAK>, depending on the message verification results (LRC –verification),
accepting or refusing the packet.
The messages can only have ASCII printable characters. Any control characters (00-
1Fh) will be ignored.
Packet format :
Data Elements Characteristics Comments
<STX> 1H Start of Text, Value: 02h
Packet type 2AN Value: Z2
<SUB> 1H 1Ah, Optional (clear display)
[sss...ss] 0-32AN Message : ASCII string
<ETX> 1H End of Text, Value: 03h
{LRC} 1H Error Check
Maximum: 38 characters
Minimum: 6 characters
___________________________________________________
Sample Packets:
<STX>Z2THX<ETX>{LRC}
Directs the PIN-Pad device to add the message THX to the end of the currently
displayed message.
Directs the PIN-Pad device to clear the current display then display the message PLZ
SLIDE CARD.
Communication protocol :
Master Device PIN-Pad
<STX>Z2<SUB>[sssssssssssssss]<ETX>
{LRC}
ACK if LRC okay
NAK if LRC incorrect
(EOT after 3 NAKs)
Clear display
Display [ssssssssssssss]
Upon power up, the PIN Pad card reader defaults to the disabled state.
The master device may use the Q4 message to toggle the PIN Pad card reader between
its enabled/disabled state. This message packet tells the PIN Pad to allow/disallow data
entry from its cardreader.
Note: This message does not affect the PIN Pad display.
Packet format :
Data Elements Characteristics Comments
<STX> 1H Start of Text, Value: 02h
Packet type 2AN Value: Q4
Card Reader Status 1A Range:
'0' = Activate
'1' = Deactivate
<ETX> 1H End of Text, Value: 03h
{LRC} 1H Error Check
Maximum: 6 characters
Minimum: 6 characters
___________________________________________________
Communication protocol:
Master Device PIN-Pad
<STX>Q4[f]<ETX>{LRC}
ACK if LRC okay
NAK if LRC incorrect
(EOT after 3 NAKs)
Activate/Deactivate
Card Reader
This message packet sends the card information, obtained from the PIN Pad card
reader, to the master device.
The order of the track’s data bellow was adopted for compatibility with existing SC552
applications.
Packet format :
Data Elements Characteristics Comments
<STX> 1H Start of Text, Value: 02h
Packet type 2AN Value: 81
Message type delimiter 1A Value: (.),2Eh
Sample Packet:
<STX>81.0123456789012345678901234567890123456789<FS><FS><FS><ETX>{LR
C}
Communication protocol:
Master Device PIN-Pad
Card Swipe
<STX>81.[track 2]<FS>[track 1]<FS>
[track 3]<FS> <ETX>{LRC}
ACK if LRC okay
NAK if LRC incorrect
(EOT after 3 NAKs)