RF command sets
SRTAG2KL
5.6.7
ReadBinary command
On receiving the ReadBinary command, the SRTAG2KL reads the requested memory field
and sends back its value in the R-APDU response.
Before sending a ReadBinary command, a file shall be selected by using a Select
command.
The Response of the ReadBinary command is successful when the data to be read is within
the selected file (a); in other words, when the sum of P1-P2 and Le fields is equal to or lower
than the selected file length.
Table 30 defines the ReadBinary command.
Table 30. C-APDU of the ReadBinary command
Name
CLA
INS
P1 & P2
Lc
Data
0x00
0xB0
2 bytes
-
-
Class byte
Read instruction code
Offset in the file selected
(empty field)
(empty field)
Number of bytes to read between
0x01 ≤Le ≤max(Selected File length, 0xFFh)
Le
1 byte
Table 31 defines the R-APDU of the ReadBinary command.
Length
Value
Value
Value
Value
Value
Table 31. R-APDU of the ReadBinary command
Data
SW1
SW2
Comment
-
1 byte
1 byte -
Content read
-
-
-
0x90
0x67
0x69
0x6A
0x00
0x00
0x82
0x82
Command completed
Wrong length
Security status not satisfied
File or application not found
-
0x6E
0x00
-
Note:
For further return codes and definitions, refer to Section 5.6.2: Status and error codes.
30/51
a. For more details about CC file, refer to Section 3.1.2: CC file layout.
For more details about NDEF file, refer to Section 3.1.3: NDEF file layout.
For more details about System file, refer to Section 3.1.4: System file layout.
DocID026583 Rev 2