ACR128 Dual Interface Smart Card Reader
7.3 Read Binary Blocks
The Read Binary Blocks command is used for retrieving multiple data blocks from the PICC. The
data block/trailer block must be authenticated first before executing the Read Binary Blocks command.
Table 24-a: Read Binary APDU Format (5 Bytes)
Command
Class
INS
P1
P2
Le
Read Binary
Blocks
FF B0 00
Block
Number
Number of
Bytes to
Read
where:
Block Number:
1 Byte. This is the starting block.
Number of Bytes to Read:
1 Byte. The length of the bytes to be read can be a multiple of 16 bytes
for MIFARE 1K/4K or a multiple of 4 bytes for MIFARE Ultralight
Maximum of 16 bytes for MIFARE Ultralight.
Maximum of 48 bytes for MIFARE 1K. (Multiple Blocks Mode; 3 consecutive blocks)
Maximum of 240 bytes for MIFARE 4K. (Multiple Blocks Mode; 15 consecutive blocks)
Example 1:
0x10 (16 bytes). The starting block only. (Single Block Mode)
Example 2:
0x40 (64 bytes). From the starting block to starting block+3. (Multiple Blocks Mode)
NOTE:
For security considerations, the Multiple Block Mode is used for accessing Data Blocks only. The
Trailer Block is not supposed to be accessed in Multiple Blocks Mode. Please use Single Block Mode to
access the Trailer Block.
Table 24-b: Read Binary Block Response Format (Multiply of 4/16 + 2 Bytes)
Response
Data Out
Result
Data (Multiply of 4/16 Bytes)
SW1
SW2
Table 24-c: Read Binary Block Response Codes
Results
SW1
SW2
Meaning
Success
90
00
The operation is completed successfully.
Error
63
00
The operation failed.
Example 1: Read 16 bytes from the binary block 0x04 (MIFARE 1K or 4K)
APDU = {FF B0 00 04 10}
Example 2: Read 240 bytes starting from the binary block 0x80 (MIFARE 4K). Block 0x80 to
Block 0x8E (15 blocks)
APDU = {FF B0 00 80 F0}
Page
29 of 36
ACR128 API
Version 1.7 May 2008