Document Version 1.00
Last revised on
Page 33 of 87
2020-04-10
Reference Manual for uTrust 3720F and uTrust 3721F Readers
6.2.
Supported Pseudo APDU (Contactless Interface)
All Pseudo APDUs specific to Contactless Interface supported in the reader are explained in this section
6.2.1.
PAPDU_MIFARE_READ_BINARY
This command is used to read data from a Mifare card. Refer to section 3.2.2.1.8 of [PCSC3] for details.
Command APDU:
Command
CLA
INS
P1
P2
Lc
Data
Le
Read Binary
0xFF
0xB0
Addr MSB Addr LSB
-
-
xx
P1 and P2 represent the block number of the block to be read, starting with 0 for sector 0, block 0,
continuing with 4 for sector 1, block 0 (sector no. x 4 + block no.)
Regardless of the value given in Le, this command will always return the entire block content:
16 bytes for Mifare Classic 4
bytes for Mifare UL and UL C
Response APDU:
Data
Status Word
N bytes of block data
SW1, SW2
Example:
For a Mifare Classic 1K card with the following content:
The following command will read the sixth block and yield the mentioned output:
APDU:
FF B0 00 05 02
SW12:
9000 (OK)
DataOut:
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
(16 bytes)