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
Page192
Uniform Industrial Corp. Proprietary and Confidential Total 342 pages
Message P19 I/O to MIFARE card with APDU format
Format: <STX>P19[C-APDU]<ETX>[LRC] (request frame)
<STX>P19[Result][R-APDU][Reason]<ETX>[LRC]
(response frame)
Message length: variable.
Usage: The command is used to pass an APDU to the card where both data and an ISO status
are expected in the response.
Note: 1. The APDU(Application Protocol Data Unit) format defined in ISO/IEC 7816-4
chapter 5. Below brief the command and response APDU.
C-APDU format
CLA INS P1 P2 Lc Data Le
R-APDU format
Data(Optional) SW1-SW2
Message element:
Request frame (HOST to PIN pad)
Field Length
Value and description
<STX> 1 <02>
P19 3 Message ID
[C-APDU] Var. Command APDU. The C-APDU format please see
Note 1.
<ETX> 1 <03>
[LRC] 1 Checksum
Response frame (PIN pad to HOST)
Field Length
Value and description
<STX> 1 <02>
P19 3 Message ID
[Result] 1 ‘0’: Success.
‘1’: Fail.
[R-APDU] Var. Optional: if [Result] = ‘0’
The R-APDU format please see Note 1.
[Reason] 1 Optional: if [Result] = ‘1’
‘1’: Format error.
‘2’: Sequence error.
‘3’: APDU fail.
<ETX> 1 <03>