AET62 Reference Manual
Version 1.0
Page 14 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.3.
Read Binary Blocks
The “Read Binary Blocks command” is used for retrieving “data blocks” from the PICC. The data block/trailer block must
be authenticated first.
Command
Class
INS
P1
P2
Le
Read Binary Blocks
FF
B0
00
Block Number
Number of Bytes to Read
Table 16: Read Binary APDU Format (5 Bytes)
where:
Block Number (1 Byte): The block to be accessed
Number of Bytes to Read (1 Byte): Maximum 16 bytes
Response
Data Out
Result
0 <= N <= 16
SW1
SW2
Table 17: Read Binary Block Response Format (N + 2 Bytes)
Results
SW1
SW2
Meaning
Success
90
00
The operation completed successfully.
Error
63
00
The operation failed.
Table 18: Read Binary Block Response Codes
Example:
1.
Read 16 bytes from the binary block
0x04
(Mifare 1K or 4K)
APDU = {
FF B0 00 04 10
}
2.
Read 4 bytes from the binary Page
0x04
(Mifare Ultralight)
APDU = {
FF B0 00 04 04
}
3.
Read 16 bytes starting from the binary Page
0x04
(Mifare Ultralight) (Pages 4, 5, 6 and 7 will be read)
APDU = {
FF B0 00 04 10
}