ACM1252U-Y3
– Reference Manual
Version 1.03
www.acs.com.hk
Page 38 of 92
www.acs.com
.hk
5.2.4.3.
Read Binary Blocks
This command is used to retrieve multiple 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). The starting block only (Single Block Mode).
Example 2:
40h (64 bytes). From the starting block to starting block+3 (Multiple Blocks
Mode).
Note: For security reasons, the Multiple Blocks Mode is used to access 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 was completed
successfully.
Error
63h
00h
The operation failed.
Examples:
// Read 16 bytes from the binary block
04h
(MIFARE Classic 1K or 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