User's Manual
10 | P a g e www.eccel.co.uk
Command description
Argument
Size
Value
Description
Command ID
1
0x05
HALT
Response
description
ACK
1
0x00
Command ID
1
0x05
HALT
Example:
HOST=>READER: 0x05 – HALT
READER=>HOST: 0x00 - ACK byte
0x05 - related command code HALT
3.1.8 Set key (0x06)
This command sets a KEY in Key Storage Memory on a selected slot. Set key can be used for all RFID
functions needing authorization like e.g. READ/WRITE memory on the TAG etc. This command changes a
key in volatile memory, so if the user wants to save it permanently and load automatically after boot-up,
then the user should use the CMD_SAVE_KEYS command.
Command description
Argument
Size
Value
Description
Command ID
1
0x06
SET_KEY
Key number
1
0
-
4
Key number
in Key Storage Memory.
Key type 1 0 – 6
0x00
-
AES 128 Key
. (length = 16 bytes)
0x01 - AES 192 Key. (length = 24 bytes)
0x02 - AES 256 Key. (length = 32 bytes)
0x03 - DES Single Key. (length = 16 bytes)
0x04 - 2 Key Triple Des. (length = 16 bytes)
0x05 - 3 Key Triple Des. (length = 24 bytes)
0x06 - MIFARE (R) Key. (length = 12 bytes, key A+B)
Key
12
-
32
X
Key bytes. Length must match to the type.
Response
description
ACK
1
0x00
Command ID
1
0x06
SET_KEY
Example:
HOST=>READER: 0x06 – SET_KEY
0x00 – Key number
0x06 – Mifare key type
0x00 0x00 0x00 0x00 0x00 0x00
0xFF 0xFF 0xFF 0xFF 0xFF 0xFF – Key bytes
READER=>HOST: 0x00 - ACK byte
0x06 - related command code SET_KEY