ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 30 of 52
Low Level Frame Structure:
Command: From PC to Reader (13 Bytes) <<Login Key is provided>>
If KeyType = AC_MIFARE_LOGIN_KEYTYPE_A or
AC_MIFARE_LOGIN_KEYTYPE_B.
Or
Command: From PC to Reader (7 bytes) <<Login Key is not provided>>
If KeyType = AC_MIFARE_LOGIN_KEYTYPE_DEFAULT_A or,
AC_MIFARE_LOGIN_KEYTYPE_DEFAULT_B or
AC_MIFARE_LOGIN_KEYTYPE_DEFAULT_F or
AC_MIFARE_LOGIN_KEYTYPE_STORED_A or
AC_MIFARE_LOGIN_KEYTYPE_STORED_B.
Command Code
(1 byte)
Command Data Length
(2 bytes)
Instruction Code
(1 byte)
Data Length
(1 byte)
Data
(1 byte)
(1 byte)
E0h
0004h
02h
02h
Sector
KeyType2 or
StoredNo
+
10h (Used as
Key A) or
StoredNo
+
30h
(Used as
Key B)
Response: From Reader to PC (5 bytes) <<Success or Fail>>
Response Code
(1 byte)
Response Status
(2 bytes)
Response Data Length
(2 byes)
E1h
INT16
0000h
Constant Definition:
AC_MIFARE_LOGIN_KEYTYPE_A
0xAA (KeyType2 = 0xAA)
AC_MIFARE_LOGIN_KEYTYPE_B
0xBB (KeyType2 = 0xBB)
AC_MIFARE_LOGIN_KEYTYPE_DEFAULT_A
0xAD (KeyType2 = 0xAA)
AC_MIFARE_LOGIN_KEYTYPE_DEFAULT_B
0xBD (KeyType2 = 0xBB)
AC_MIFARE_LOGIN_KEYTYPE_DEFAULT_F
0xFD (KeyType2 = 0xFF)
AC_MIFARE_LOGIN_KEYTYPE_STORED_A
0xAF (KeyType2 = 0xAA)
Command
Code
(1 byte)
Command Data
Length
(1 bytes)
Instruction
Code
(1 byte)
Data
Length
(1 byte)
Data
(1 byte)
(1 byte)
(6 bytes)
E0h
0Ah
02h
08h
Sector
KeyType2
pKey