ReadBinary command. STMicroelectronics ST25TA512
Advertisement
Advertisement
RF command sets ST25TA512
Note:
On receiving the ReadBinary command, the ST25TA512 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.
Name
Table 30. C-APDU of the ReadBinary command
CLA INS P1 & P2
0x00
Class byte
Read instruction code
0xB0
Offset in the file selected
(empty field)
(empty field)
Number of bytes to read between
0x01 ≤ Le ≤ max (Selected File length, 0xFFh)
2 bytes
Lc
-
Data
-
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
-
Content read
-
-
-
-
1 byte
0x90
0x67
0x69
0x6A
0x6E
1 byte
0x00
0x00
0x82
0x82
0x00
-
Command completed
Wrong length
Security status not satisfied
File or application not found
-
For further return codes and definitions, refer to Section 5.6.2: Status and error codes
.
30/52 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 .
DocID027776 Rev 4
Download
Advertisement