ACR128 Dual Interface Smart Card Reader
6.0 PICC Commands for General Purposes
6.1 Get Data
The “Get Data command” will return the serial number or ATS of the connected PICC.
Table 21-a: Get UID APDU Format (5 Bytes)
Command
Class
INS
P1
P2
Le
Get Data
FF
CA
00
01
00
00
(Full Length)
Table 21-b: Get UID Response Format (UID + 2 Bytes) if P1 = 0x00
Response
Data Out
Result
UID
(LSB)
UID
(MSB)
SW1
SW2
Table 21-c: Get ATS of an ISO 14443 A card (ATS + 2 Bytes) if P1 = 0x01
Response
Data Out
Result
ATS SW1
SW2
Table 21-d: Response Codes
Results
SW1
SW2
Meaning
Success
90
00
The operation is completed successfully.
Error 63 00 The
operation
failed.
Error
6A
81
Function is not supported.
Examples:
1. To get the serial number of the connected PICC
UINT8 GET_UID[5]={0xFF, 0xCA, 0x00, 0x00, 0x00};
2. To get the ATS of the connected ISO 14443 A PICC
UINT8 GET_ATS[5]={0xFF, 0xCA, 0x01, 0x00, 0x00};
Page
25 of 36
ACR128 API
Version 1.7 May 2008