B .2 read record command apdub.2.1 definition and Range
The read record command reads a file record from a linear file.
The response returned from the IC card will contain the read record.
B .2.2 Command Message
The read record command message is encoded according to the following table:
Table B .20: Read record command packets
|
Encoding |
Value |
|
CIA |
'00' |
|
INS |
'B2' |
|
P1 |
Record Number |
|
P2 |
Reference control parameters, see Table B-21 |
|
LC |
Does not exist |
|
Data domain |
Does not exist |
|
Le |
'00' |
The following table defines the reference control parameters for command packets.
Table B .21: Read record command reference Control Parameters
|
B8 |
B7 |
B6 |
B5 |
B4 |
B3 |
B2 |
B1 |
Meaning |
|
X |
X |
X |
X |
X |
|
|
|
SFI |
|
|
|
|
|
|
1 |
0 |
0 |
Read the specified record of P1 |
B .2.3 data domains of command packets
There is no data field in the Command Message.
B .2.4 data domains of response packets
The data field of the response packet of any successful read record command contains the read record value. For SFI in the range of 1-10, this record is a BER-TLV structure data object. It is encoded according to the following table.
Table B .22: Read record Response Message data domains
|
'70' |
Length |
Record Template |
The read record command response packets for SFI not in the range of 1-10 are not in the scope described in this specification.
B .2.5 processing status returned by the Response Message
'123' encoding indicates that the command is successfully executed.