ACR128 Dual Interface Smart Card Reader
8.0 PICC Commands for ISO 14443-4 Compliant Cards
Basically, all ISO 14443-4 complaint cards (PICCs) can interpret the ISO 7816-4 APDUs. The
ACR128U Reader has to communicate with the ISO 14443-4 complaint cards by using ISO 7816-4 APDUs
and responses. ACR128U will handle the ISO 14443 Parts 1-4 protocols internally.
Table 29-a: ISO 7816-4 APDU Format
Command
Class INS P1
P2
Lc
Data In
Le
ISO 7816 Part 4
Command
Length of
the Data In
Expected length
of the Response
Data
Table 29-b: ISO 7816-4 Response Format (Data + 2 Bytes)
Response
Data Out
Result Response
Data
SW1
SW2
Table 29-c: Common ISO 7816-4 Response Codes
Results
SW1
SW2
Meaning
Success
90
00
The operation is completed successfully.
Error
63 00 The
operation
failed.
Example 1: ISO7816-4 APDU: To read 8 bytes from an ISO 14443-4 Type B PICC (ST19XR08E)
APDU ={80 B2 80 00 08}
Class = 0x80
INS = 0xB2
P1 = 0x80
P2 = 0x00
Lc = None
Data In = None
Le = 0x08
Answer: 00 01 02 03 04 05 06 07 [$9000]
Example 2: DESFIRE ISO7816-4 APDU Wrapping. To read 8 bytes random number from an ISO
14443-4 Type A PICC (DESFIRE)
APDU = {90 0A 00 00 01 00 00}
Class = 0x90
INS = 0x0A (DESFire Instruction)
P1 = 0x00
P2 = 0x00
Lc = 0x01
Data In = 0x00
Le = 0x00 (Le = 0x00 for maximum length)
Answer: 7B 18 92 9D 9A 25 05 21
[$91AF]
The status code
[91 AF]
is defined in the DESFIRE specification. Please refer to the DESFIRE
specification for more details.
Page
34 of 36
ACR128 API
Version 1.7 May 2008