ACR1255U-J1 – Reference Manual
Version V1.01
www.acs.com.hk
Page 45 of 73
6.4.3.
Read Binary Blocks
This command is used for retrieving a multiple of “data blocks” from the PICC. The data block/trailer
block must be authenticated first before executing this command.
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 Numbe
r
1 byte. The starting block.
Number of Bytes to Read
1 byte.
Multiple of 16 bytes for MIFARE Classic (1K/4K) or Multiple
of 4 bytes for MIFARE Ultralight
Maximum of 16 bytes for MIFARE Ultralight.
Maximum of 48 bytes for MIFARE Classic 1K. (Multiple
Blocks Mode; 3 consecutive blocks)
Maximum of 240 bytes for MIFARE Classic 4K. (Multiple
Blocks Mode; 15 consecutive blocks)
Example 1:
10h (16 bytes). Starting block only. (Single Block Mode)
Example 2:
40h (64 bytes). From the starting block to starting block+3. (Multiple Block Mode)
Note: For security reasons, 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.
Read Binary Block Response Format (Multiply of 4/16 + 2 bytes)
Response
Data Out
Result
Data (Multiple of 4/16 bytes)
SW1
SW2
Read Binary Block Response Codes
Results
SW1
SW2
Meaning
Success
90h
00h
The operation is completed successfully.
Error
63h
00h
The operation is failed.
Examples:
// Read 16 bytes from the binary block
04h
(MIFARE Classic 1K/ 4K)
APDU = FF B0 00
04
10h
// Read 240 bytes starting from the binary block
80h
(MIFARE Classic 4K)
// Block 80h to Block 8Eh (15 blocks)
APDU = FF B0 00
80
F0h