ACR1281U-C8 – Application Programming Interface info@acs.com.hk
Version 1.00
www.acs.com.hk
Page 2 of 52
Table of Contents
1.0. Introduction ............................................................................................................. 4
1.1. Features ................................................................................................................................. 4
2.0. USB Interface ........................................................................................................... 5
3.0. Reader Commands .................................................................................................. 6
3.1. ACR120_Open ...................................................................................................................... 6
3.2. ACR120_Close ...................................................................................................................... 7
3.3. ACR120_Reset ...................................................................................................................... 8
3.4. ACR120_Status ..................................................................................................................... 9
3.5. ACR120_ReadRC531Reg ................................................................................................... 11
3.6. ACR120_WriteRC531Reg ................................................................................................... 12
3.7. ACR120_DirectSend ........................................................................................................... 13
3.8. ACR120_DirectReceive ....................................................................................................... 14
3.9. ACR120_RequestDLLVersion ............................................................................................. 15
3.10. ACR120_ReadEEPROM ..................................................................................................... 16
3.11. ACR120_WriteEEPROM ..................................................................................................... 17
3.12. ACR120_ReadUserPort ...................................................................................................... 18
3.13. ACR120_WriteUserPort ....................................................................................................... 19
3.14. ACR120_Power ................................................................................................................... 20
4.0. General Card Commands ...................................................................................... 21
4.1. ACR120_Select ................................................................................................................... 21
4.2. ACR120_ListTags ................................................................................................................ 23
4.3. ACR120_MultiTagSelect ..................................................................................................... 25
4.4. ACR120_TxDataTelegram .................................................................................................. 27
5.0. Card Commands for Mifare® 1K/4K Cards .......................................................... 29
5.1. ACR120_Login .................................................................................................................... 29
5.2. ACR120_Read ..................................................................................................................... 32
5.3. ACR120_ReadValue ........................................................................................................... 33
5.4. ACR120_Write ..................................................................................................................... 34
5.5. ACR120_WriteValue ............................................................................................................ 35
5.6. ACR120_WriteMasterKey .................................................................................................... 36
5.7. ACR120_Inc ........................................................................................................................ 37
5.8. ACR120_Dec ....................................................................................................................... 38
5.9. ACR120_Copy ..................................................................................................................... 39
6.0. Card Commands for ISO14443-4 Interface .......................................................... 40
6.1. PICC_Xch_APDU ................................................................................................................ 40
6.2. Exchange ADPU Command ................................................................................................ 42
6.3. PICC_RATS ......................................................................................................................... 43
6.4. Auto-RATS ........................................................................................................................... 45
6.5. Firmware Upgrade Mode ..................................................................................................... 46
Appendix A. Error Codes returned by High Level APIs ............................................... 47
Appendix B. Possible TAG Types ................................................................................. 49
Appendix C. USB ID and Drivers for ACR1281U-C8 ..................................................... 50
Appendix D. Standard Program Flow ............................................................................ 51
Appendix E. Physical and Logical Block/Sector Calculation ...................................... 52