ACR122T – Application Programming Interface
Version 2.02
www.acs.com.hk
Page 11 of 45
4.0. PICC Commands for General Purposes
4.1. Get Data
The “Get Data command” will return the serial number or ATS of the “Connected PICC.”
Get UID APDU Format (5 Bytes)
Command Class
INS
P1
P2
Le
Get Data
FFh
CAh
00h
01h
00h
00h
(Full Length)
Get UID Response Format (UID + 2 Bytes) if P1 = 0x00h
Response
Data Out
Result
UID
(LSB)
-
-
UID
(MSB)
SW1 SW2
Get ATS of a ISO 14443 A card (ATS + 2 Bytes) if P1 = 0x01h
Response
Data Out
Result
ATS
SW1 SW2
Response Codes
Results
SW1 SW2
Meaning
Success
90 00h
The operation completed successfully.
Error
63 00h
The operation failed.
Error
6A 81h
Function not supported.
Example:
1. To get the serial number of the “connected PICC”
UINT8 GET_UID[5]={0xFFh, 0xCAh, 0x00h, 0x00h, 0x04h};
2. To get the ATS of the “connected ISO 14443 A PICC”
UINT8 GET_ATS[5]={0xFFh, 0xCAh, 0x01h, 0x00h, 0x04h};