AET62 Reference Manual
Version 1.0
Page 15 of 37
idvation GmbH
Otto-Hesse-Straße 19 / T5
Phone +49 6151 4923021
D-64293 Darmstadt
Fax +49 6151 3689296
www.idvation.com
6.4.
Update Binary Blocks
The “Update Binary Blocks command” is used for writing “data blocks” into the PICC. The data block/trailer block must be
authenticated.
Command
Class
INS
P1
P2
Lc
Data In
Update
Binary
Blocks
FF
06
00
Block Number
Number
of
Bytes
to
Update
Block Data
4 Bytes for
Mifare
Ultralight
or
16 Bytes for
Mifare 1K/4K
Table 19: Update Binary APDU Format (4 or 16 + 5 Bytes)
where:
Block Number (1 Byte):The starting block to be updated.
Number of Bytes to Update (1 Byte):
16 bytes for Mifare 1K/4K
4 bytes for Mifare Ultralight.
Block Data (4 or 16 Bytes):
The data to be written into the binary block/blocks.
Results
SW1
SW2
Meaning
Success
90
00
The operation completed successfully.
Error
63
00
The operation failed.
Table 20: Update Binary Block Response Codes (2 Bytes)
Example:
1. Update the binary block
0x04
of Mifare 1K/4K with Data {
00 01 .. 0F
}
APDU = {
FF D6 00
04
10 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
}
2. Update the binary block
0x04
of Mifare Ultralight with Data {
00 01 02 03
}
APDU = {
FF D6 00
04
04 00 01 02 03
}