User's Manual

PIN Pad 791 Programmer’s Manual (PCI POS-A) UDN PM0103-U Rev. 06
Section 8 – MIFARE card messages 2015-04-20
Page194
Uniform Industrial Corp. Proprietary and Confidential Total 342 pages
Message P20 I/O to MIFARE card for block data exchange
Format: <STX>P20[CRC mode][Wait time][Block data]<ETX>[LRC]
(request frame)
<STX>P20[Result][Block data][Reason]<ETX>[LRC]
(response frame)
Message length: variable.
Usage: The command is used to pass a block data to a card.
Note: 1. The format of block data defined in ISO/IEC 14443-4 chapter 7.
Message element:
Request frame (HOST to PIN pad)
Field Length
Value and description
<STX> 1 <02>
P20 3 Message ID
[CRC mode] 1 ‘0’ : No CRC in [block data].
‘1’ : [Block data] contain CRC.
[Wait time] 4 The time out value for card response.
[Block data] Var. Format: hexadecimal string.
The command use block format as defined in ISO
14443-4.
<ETX> 1 <03>
[LRC] 1 Checksum
Response frame (PIN pad to HOST)
Field Length
Value and description
<STX> 1 <02>
P20 3 Message ID
[Result] 1 ‘0’: Success.
‘1’: Fail.
[Block data] Var. Optional: if [Result] = ‘0’
The card response data with block
format as defined in ISO 14443-4.
[Reason] 1 Optional: if [Result] = ‘1’
‘1’: Format error.
‘2’: Sequence error.
‘3’: Data exchange fail.
<ETX> 1 <03>
[LRC] 1 Checksum