![Advanced Card Systems ACM1281U-C7 Reference Manual Download Page 14](http://html1.mh-extra.com/html/advanced-card-systems/acm1281u-c7/acm1281u-c7_reference-manual_2855859014.webp)
ACM1281U-C7
– Reference Manual
Version 1.02
www.acs.com.hk
Page 14 of 44
www.acs.com
.hk
5.1.3.
PICC Commands (T=CL Emulation) for MIFARE 1K/4K Memory Cards
5.1.3.1.
Load Authentication Keys
This command is used to load the authentication keys into the reader. The authentication keys are
used to authenticate the specified sector of the MIFARE 1K/4K Memory Card. Two kinds of
authentication key locations are provided, volatile and non-volatile key locations.
Command
Command
Class INS
P1
P2
Le
Data In
Load Authentication Keys
FFh
82h
Key
Structure
Key
Number
06h
Key
Where:
Key Structure
(1 Byte)
00h
= Key is loaded into the reader’s volatile memory
20h
= Key is loaded into the reader’s non-volatile memory
Other = Reserved
Key Number
(1 Byte)
00h
– 1Fh
=
Non-volatile memory for storing keys. The keys are
permanently stored in the reader and will not be erased even if the
reader is disconnected from the PC. It can store up to 32 keys inside
the reader non-volatile memory.
20h (Session Key)
=
Volatile memory for temporarily storing keys.
The keys will be erased when the reader is disconnected from the
PC. Only one volatile memory is provided. The volatile key can be
used as a session key for different sessions. Default value = FF FF
FF FF FF FFh.
Key
(6 Bytes)
The key value loaded into the reader.
E.g. {FF FF FF FF FF
FFh}
Response
Response
Data Out
Result
SW1
SW2
Where:
SW1 SW2
= 90 00h means the operation was completed successfully.
= 63 00h means the operation failed.
Example1:
Load a key {
FF FF FF FF FF FFh
} into the non-volatile memory location 05h.
APDU = {FF 82 20 05 06
FF FF FF FF FF FFh
}
Load a key {
FF FF FF FF FF FFh
} into the volatile memory location 20h.
APDU = {FF 82 00 20 06
FF FF FF FF FF FFh
}