Badgeuse.pdf


Aperçu du fichier PDF badgeuse.pdf - page 2/47

Page 1 23447



Aperçu texte


Table of Contents
1.0.

Introduction ............................................................................................................. 4

1.1.
1.2.

Features ................................................................................................................................. 4
USB Interface ........................................................................................................................ 5

2.0.

Implementation ........................................................................................................ 6

2.1.
2.2.

Communication Flow Chart of ACR122U .............................................................................. 6
Smart Card Reader Interface Overview ................................................................................ 7

3.0.

PICC Interface Description ..................................................................................... 8

3.1.

ATR Generation ..................................................................................................................... 8
ATR format for ISO 14443 Part 3 PICCs ...................................................................... 8
ATR format for ISO 14443 Part 4 PICCs ...................................................................... 9

3.1.1.
3.1.2.

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.
5.2.
5.3.
5.4.
5.5.

Load Authentication Keys .................................................................................................... 12
Authentication ...................................................................................................................... 13
Read Binary Blocks ............................................................................................................. 16
Update Binary Blocks .......................................................................................................... 17
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.................................................................................................... 20

6.0.

Pseudo-APDUs ...................................................................................................... 21

6.1.
6.2.
6.3.
6.4.
6.5.
6.6.
6.7.

Direct Transmit .................................................................................................................... 21
Bi-Color LED and Buzzer Control ........................................................................................ 22
Get the Firmware Version of the Reader ............................................................................. 24
Get the PICC Operating Parameter ..................................................................................... 25
Set the PICC Operating Parameter ..................................................................................... 26
Set Timeout Parameter ........................................................................................................ 27
Set Buzzer Output Enable for Card Detection ..................................................................... 28

7.0.

Basic Program Flow for Contactless Applications ............................................. 29

7.1.
7.2.
7.3.
7.4.
7.5.

How to Access PC/SC-compliant Tags (ISO 14443-4)? .....................................................30
How to Access DESFire Tags (ISO 14443-4)? ................................................................... 31
How to Access FeliCa Tags (ISO 18092)? .......................................................................... 32
How to Access NFC Forum Type 1 Tags (ISO 18092), e.g. Jewel and Topaz Tags? ........33
Getting the Current Setting of the Contactless Interface .....................................................35

Appendix A.

ACR122U PC/SC Escape Command ........................................................ 36

Appendix B. APDU Command and Response Flow for ISO 14443-Compliant Tags .. 39
Appendix C. APDU Command and Response Flow for ISO 18092-Compliant Tags .. 40
Appendix D. Error Codes ............................................................................................... 41
Appendix E. Sample Codes for Setting the LED .......................................................... 43

List of Figures
Figure 1 : Communication Flow Chart of ACR122U .............................................................................. 6
Figure 2 : Smart Card Reader Interface on the Device Manager .......................................................... 7
Page 2 of 47

ACR122U – Application Programming Interface

Version 2.02

info@acs.com.hk

www.acs.com.hk