User's Manual

51 | P a g e www.eccel.co.uk
Command description
Argument
Size
Value
Description
Command ID
1
0x93
ICODE_READ_BLOCK
Block number
1
X
Block count
1
N
Number of block to read
Response description
ACK
1
0x00
Command ID
1
0x93
ICODE_READ_BLOCK
Read data
4*N
XXX
Bytes read from the tag.
Example:
HOST=>READER: 0x93 – ICODE_READ_BLOCK
0x02 – block number 2
0x01 – 1 block to read
READER=>HOST: 0x00 – ACK byte
0x93 – related command code ICODE_READ_BLOCK
0x35 0x3a 0x30 0x33 – 4 bytes block data
5.6.5 Write block (0x94)
The write block command should be used to write data to the tag. It takes as arguments the block number of
the first block to write, the number of blocks to write, and the bytes to be written. The number of bytes to be
written must be exactly the number of blocks to write multiplied by 4.
Command description
Argument
Size
Value
Description
Command ID
1
0x94
ICODE_WRITE_BLOCK
Block number
1
X
Block count
1
N
Data to write
4*N
X
4
-
bytes data to write
Response description
ACK
1
0x00
Command ID
1
0x94
ICODE_WRITE_BLOCK
Example:
HOST=>READER: 0x94 – ICODE_WRITE_BLOCK
0x02 – block number 2
0x01 – block count 1
0x35 0x3a 0x30 0x33 – 4 bytes to write
READER=>HOST: 0x00 – ACK byte
0x94 – related command code ICODE_WRITE_BLOCK
5.6.6 Lock block (0x95)
This command performs a lock block command. Once it receives the lock block command, the TAG
permanently locks the requested block. The command takes a one-byte argument representing the block
number to be locked.