
ACR122T – Application Programming Interface info@acs.com.hk
Version 2.02 www.acs.com.hk
Page 2 of 45
Table of Contents
1.0. Introduction ............................................................................................................... 4
1.1. Features.................................................................................................................................4
1.2. USB Interface ........................................................................................................................5
2.0. Implementation.......................................................................................................... 6
2.1. Communication Flow Chart of ACR122T ..............................................................................6
2.2. Smart Card Reader Interface Overview ................................................................................7
3.0. PICC Interface Description....................................................................................... 8
3.1. ATR Generation.....................................................................................................................8
3.1.1. ATR Format for ISO 14443 Part 3 PICCs.....................................................................8
3.1.2. ATR Format for ISO 14443 Part 4 PICCs.....................................................................9
4.0. PICC Commands for General Purposes................................................................ 11
4.1. Get Data...............................................................................................................................11
5.0. PICC Commands (T=CL Emulation) for Mifare Classic Memory Cards ............. 12
5.1. Load Authentication Keys....................................................................................................12
5.2. Authentication ......................................................................................................................13
5.3. Read Binary Blocks .............................................................................................................16
5.4. Update Binary Blocks ..........................................................................................................17
5.5. Value Block Related Commands.........................................................................................18
5.5.1. Value Block Operation ................................................................................................18
5.5.2. Read Value Block........................................................................................................19
5.5.3. Restore Value Block....................................................................................................19
6.0. Pseudo APDUs ........................................................................................................ 21
6.1. Direct Transmit ....................................................................................................................21
6.2. Bi-color LED and Buzzer Control.........................................................................................22
6.3. Get the Firmware Version of the Reader.............................................................................24
6.4. Get the PICC Operating Parameter.....................................................................................25
6.5. Set the PICC Operating Parameter .....................................................................................26
7.0. Basic Program Flow for Contactless Applications.............................................. 27
7.1. How to Access PC/SC-compliant Tags (ISO 14443-4)? .....................................................28
7.2. How to Access DESFire Tags (ISO 14443-4)? ...................................................................29
7.3. How to Access FeliCa Tags (ISO 18092)?..........................................................................30
7.4. How to Access NFC Forum Type 1 Tags (ISO 18092), e.g. Jewel and Topaz Tags?........31
7.5. Getting the Current Setting of the Contactless Interface.....................................................33
Appendix A. ACR122T PC/SC Escape Command ......................................................... 34
Appendix B. APDU Command and Response Flow for ISO 14443-compliant Tags .. 37
Appendix C. APDU Command and Response Flow for ISO 18092-compliant Tags .. 38
Appendix D. Error Codes................................................................................................. 39
Appendix E. Sample Codes for Setting the LED ........................................................... 41
List of Figures
Figure 1 : Communication Flow Chart of ACR122T............................................................................... 6
Figure 2 : Smart Card Reader Interface on the Device Manager .......................................................... 7
Figure 3 : Basic Program Flow for Contactless Applications ............................................................... 27
Figure 4 : Topaz Memory Map ............................................................................................................. 32