Read Binary Blocks - ACS ACR3x mobile Reference Manual

Hide thumbs Also See for ACR3x mobile:
Table of Contents

Advertisement

9.2.3.

Read Binary Blocks

The Read Binary Blocks command is used in retrieving multiple data blocks from the PICC card. The
data block/trailer block must be authenticated first before executing the Read Binary Blocks command.
Read Binary APDU Format (5 Bytes)
Command
Read Binary
Blocks
Where:
Block Number
Number of Bytes to Read
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 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 (Multiples of 4/16 + 2 Bytes)
Response
Result
Read Binary Block Response Codes
Results
SW1 SW2
Success
Error
Examples:
//Read
16 bytes
from the binary block
APDU = {FF B0 00
//Read
240 bytes
//Block 80 to Block 8Eh (15 blocks)
APDU = {FF B0 00
ACR3x – Reference Manual
Version 1.03
Class
FFh
1 byte. The starting block.
1 byte.
Multiples of16 bytes for MIFARE Classic (1K/4K) or Multiples
of 4 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).
Maximum of 16 bytes for MIFARE Ultralight.
Data Out
Data (Multiples of 4/16 Bytes)
90 00h
The operation was completed successfully.
63 00h
The operation failed.
04h
(MIFARE Classic 1K or 4K)
04
10}
starting from the binary block
80
F0}
INS
P1
Block
B0h
00h
Number
SW1
SW2
Meaning
80h
(MIFARE Classic 4K)
P2
Le
Number of
Bytes to
Read
info@acs.com.hk
www.acs.com.hk
Page 62 of 77

Advertisement

Table of Contents
loading

Table of Contents