2.3 Read Binary Blocks. Advanced Card Systems V5MACR1222U, ACR1222 U
Advanced Card Systems V5MACR1222U is a versatile and feature-rich device that seamlessly integrates contact and contactless smart card technologies. With its dual-interface capabilities, it supports a wide range of applications, including secure authentication, financial transactions, loyalty programs, and access control systems.
Publicitate
Publicitate
2.3 Read Binary Blocks
The “Read Binary Blocks command” is used for retrieving a multiple of “data blocks” from the
PICC. The data block/trailer block must be authenticated first before executing the “Read Binary
Blocks command”.
Table 2.3-1a: Read Binary APDU Format (5 Bytes)
Command Class INS P1
Read Binary
Blocks
FF B0 00
P2
Block
Number
Le
Number of Bytes to Read
Block Number (1 Byte):
The starting block.
Number of Bytes to Read (1 Byte):
Multiply of 16 bytes for MIFARE 1K/4K or Multiply of 4 bytes for MIFARE Ultralight
• Maximum 16 bytes for MIFARE Ultralight.
• Maximum 48 bytes for MIFARE 1K. (Multiple Blocks Mode; 3 consecutive blocks)
• Maximum 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)
#For safety reason, 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 2.3-1b: Read Binary Block Response Format (Multiply of 4/16 + 2 Bytes)
Response Data Out
Result Data (Multiply of 4/16 Bytes) SW1 SW2
Table 2.3-1c: Read Binary Block Response Codes
SW1 SW2 Results
Success 90 00
Error 63 00
Meaning
The operation is completed successfully.
The operation is failed.
Examples:
// Read 16 bytes from the binary block 0x04 (MIFARE 1K or 4K)
APDU = {FF B0 00 04 10}
// Read 240 bytes starting from the binary block 0x80 (MIFARE 4K)
// Block 0x80 to Block 0x8E (15 blocks)
APDU = {FF B0 00 80 F0}
Advanced Card Systems Ltd. Page 33 of 46
Descarcă
Publicitate