User's Manual

18 | P a g e www.eccel.co.uk
Command description
Argument
Size
Value
Description
Command ID
1
0x21
MF_
WRITE
_BLOCK
Block number
1
X
Number of blocks
1
Y
Key A/B parameter 1
X
0x0A
Key A should be
selected from key storage
0x0B – Key B should be selected from key storage
Key number
1
0
-
4
Key number in key storage
Bytes to write Y*16 XXX
Bytes to write. Number of this bytes must be number of
requested blocks multiplied by 16.
Response
description
ACK
1
0x00
Command ID
1
0x21
MF_
WRITE
_BLOCK
Example:
HOST=>READER: 0x21 – MF_WRITE_BLOCK
0x02 – block number 2
0x02 – two blocks to write
0x0A – key A should be selected from key storage
0x00 – first key should be selected from key storage
0x01 0x2e 0x41 0x22 0x43 0x11 0x8e 0x20
0x31 0x38 0x20 0x32 0x30 0x31 0x39 0x41
0x81 0x23 0x42 0x28 0x33 0x01 0x8e 0x72
0x31 0x35 0x3a 0x33 0x35 0x3a 0x30 0x33 – 32 bytes to write
READER=>HOST: 0x00 – ACK byte
0x21 – related command code MF_WRITE_BLOCK
3.3.3 Read value (0x22)
This command should be used to read a value from the tag. It takes as arguments the block number where
the value is stored, the key A or B parameter, and the key number in key storage. The returned ACK
response contains a value as a signed 32-bit value (LSB first) and an address byte as an unsigned 8bit value.
Command description
Argument
Size
Value
Description
Command ID
1
0x22
MF_
READ_VALUE
Block number
1
X
Key A/B parameter 1 X
0x0A
Key A should be selected from key storage
0x0B – Key B should be selected from key storage
Key number
1
0
-
4
Key number in key storage