
Table of Contents
1.0.Introduction ...............................................................................................................4
1.1.USB Interface ........................................................................................................................4
2.0.Implementation..........................................................................................................5
2.1.Communication Flow Chart of ACR122U ..............................................................................5
2.2.Smart Card Reader Interface Overview ................................................................................5
3.0.PICC Interface Description.......................................................................................6
3.1.ATR Generation.....................................................................................................................6
3.1.1.ATR format for ISO 14443 Part 3 PICCs ......................................................................6
3.1.2.ATR format for ISO 14443 Part 4 PICCs ......................................................................7
4.0.PICC Commands for General Purposes..................................................................8
4.1.Get Data.................................................................................................................................8
5.0.PICC Commands (T=CL Emulation) for Mifare Classic Memory Cards ...............9
5.1.Load Authentication Keys......................................................................................................9
5.2.Authentication ......................................................................................................................10
5.3.Read Binary Blocks .............................................................................................................13
5.4.Update Binary Blocks ..........................................................................................................14
5.5.Value Block Related Commands.........................................................................................14
5.5.1.Value Block Operation ................................................................................................14
5.5.2.Read Value Block........................................................................................................15
5.5.3.Restore Value Block....................................................................................................16
6.0.Pseudo-APDUs........................................................................................................18
6.1.Direct Transmit ....................................................................................................................18
6.2.Bi-Color LED and Buzzer Control........................................................................................18
6.3.Get the Firmware Version of the reader ..............................................................................20
6.4.Get the PICC Operating Parameter.....................................................................................20
6.5.Set the PICC Operating Parameter .....................................................................................20
7.0.Basic Program Flow for Contactless Applications..............................................22
7.1.How to Access PC/SC-Compliant Tags (ISO 14443-4)? ....................................................23
7.1.1.How to access Mifare 7-Byte UID Classic Tags .........................................................23
7.2.How to Access DESFire Tags (ISO 14443-4)? ...................................................................26
7.3.How to Access FeliCa Tags (ISO 18092)?..........................................................................27
7.4.How to Access NFC Forum Type 1 Tags (ISO 18092), e.g. Jewel and Topaz Tags?........27
7.5.Get the Current Setting of the Contactless Interface...........................................................30
Appendix A.ACR122U PC/SC Escape Command.........................................................31
Appendix B.APDU Command and Response Flow for ISO 14443-Compliant Tags..33
Appendix C.APDU Command and Response Flow for ISO 18092-Compliant Tags..34
Appendix D.Error Codes.................................................................................................35
Appendix E.Sample Codes for Setting the LED ...........................................................36
Figures
Figure 1:Communication Flow Chart of ACR122U.......................................................................... 5
Figure 2:Smart Card Reader Interface on the Device Manager...................................................... 5
Figure 3:Basic Program Flow for Contactless Applications...........................................................22
Document Title Here
Document Title Here Document Title Here
ACR122U NFC Reader API
Version 2.00
Page 2 of 38
www.acs.com.hk