Load authentication keys – ACS ACR1283L User Manual
Page 20
ACR1283L – Reference Manual
Version 1.00
www.acs.com.hk
Page 20 of 55
If P1 = 0x01h, Get ATS of a ISO 14443 A card (ATS + 2 Bytes)
Response
Data Out
Result
ATS
SW1
SW2
Response Codes
Results
SW1 SW2
Meaning
Success
90 00h
The operation is completed successfully.
Warning
62 82h
End of UID/ATS reached before Le bytes (Le is greater
than UID Length).
Error
6C XXh
Wrong length (wrong number Le: ‘XXh’ encodes the
exact number) if Le is less than the available UID length.
Error
63 00h
The operation is failed.
Error
6A 81h
Function not supported.
Examples:
// To get the serial number of the “connected PICC.”
UINT8 GET_UID[5]={0xFFh, 0xCAh, 0x00h, 0x00h, 0x00h};
// To get the ATS of the “connected ISO 14443-A PICC.”
UINT8 GET_ATS[5]={0xFFh, 0xCAh, 0x01h, 0x00h, 0x00h};
5.3.2.2. PICC Commands (T=CL Emulation) for Mifare 1K/4K Memory Cards
5.3.2.2.1. Load Authentication Keys
This command loads the authentication keys into the reader. The authentication keys are used to
authenticate the particular sector of the Mifare 1K/4K Memory Card. Two kinds of authentication key
locations are provided, volatile and non-volatile key locations respectively.
Load Authentication Keys APDU Format (11 Bytes)
Command
Class
INS
P1
P2
Lc
Data In
Load Authentication
Keys
FFh
82h
Key
Structure
Key
Number
06h
Key
(6 bytes)
Where:
Key Structure (1 Byte):
0x00h = Key is loaded into the reader volatile memory
0x20h = Key is loaded into the reader non-volatile memory
Other = Reserved
Key Number (1 Byte):
0x00h ~ 0x1Fh =
Non-volatile memory for storing keys. The keys are permanently
stored in the reader and will not be disappeared even the reader is
disconnected from the PC. It can store up to 32 keys inside the
reader non-volatile memory.