ACR122T – Application Programming Interface
Version 2.02
www.acs.com.hk
Page 16 of 45
5.3. Read Binary Blocks
The “Read Binary Blocks command” is used for retrieving a “data blocks” from the PICC. The data
block/trailer block must be authenticated first.
Read Binary APDU Format (5 Bytes)
Command
Class INS P1
P2
Le
Read Binary Blocks FFh B0h 00h Block Number Number of Bytes to Read
Where:
Block Number:
1 Byte. The block to be accessed
Number of Bytes to Read:
1 Byte. Maximum 16 bytes
Read Binary Block Response Format (N + 2 Bytes)
Response
Data Out
Result
0 <= N <= 16
SW1
SW2
Response Codes
Results
SW1 SW2
Meaning
Success
90 00h
The operation completed successfully.
Error
63 00h
The operation failed.
Example:
1. Read 16 bytes from the binary block
0x04h
(Mifare 1K or 4K)
APDU = {FF B0 00
04
10h}
2. Read 4 bytes from the binary Page
0x04h
(Mifare Ultralight)
APDU = {FF B0 00
04
04h}
3. Read 16 bytes starting from the binary Page
0x04h
(Mifare Ultralight) (Pages 4, 5, 6 and 7
will be read)
APDU = {FF B0 00
04
10h}