ACR122T – Application Programming Interface
Version 2.02
www.acs.com.hk
Page 28 of 45
1. For the ACR122T PICC Interface, ISO 7816 T=1 protocol is used.
•
PC
Reader: Issue an APDU to the reader.
•
Reader
PC: The response data is returned.
7.1. How to Access PC/SC-compliant Tags (ISO 14443-4)?
Basically, all ISO 14443-4 compliant cards (PICCs) would understand the ISO 7816-4 APDUs. The
ACR122T Reader just has to communicate with the ISO 14443-4 compliant cards through exchanging
ISO 7816-4 APDUs and Responses. ACR122T will handle the ISO 14443 Parts 1-4 Protocols
internally.
Mifare 1K, 4K, MINI and Ultralight tags are supported through the T=CL emulation. Just simply treat
the Mifare tags as standard ISO 14443-4 tags. For more information, please refer to topic “PICC
Commands for Mifare Classic Memory Tags.”
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
ISO 7816-4 Response Format (Data + 2 Bytes)
Response
Data Out
Result
Response Data
SW1
SW2
Response Codes
Results
SW1 SW2
Meaning
Success
90 00h
The operation completed successfully.
Error
63 00h
The operation failed.
Typical sequence may be:
1. Present the Tag and Connect the PICC Interface.
2. Read/Update the memory of the tag.
Step 1)
Connect the tag.
Step 2)
Send an APDU, Get Challenge.
<< 00 84 00 00 08h
>> 1A F7 F3 1B CD 2B A9 58h [90 00h]
Note:
For ISO14443-4 Type A tags, the ATS can be obtained by using the APDU “FF CA 00 00 01h.”