Read record command APDU

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.