Memory card – at88sc101/at88sc102/at88sc1003, Select_card_type, Read_memory_card – ACS ACR3801 Smart Card Reader User Manual

Page 54: Write_memory_card

Advertising
background image

ACR3801 – Reference Manual

[email protected]

Version 2.01

www.acs.com.hk

Page 54 of 62

8.3.9.

Memory Card – AT88SC101/AT88SC102/AT88SC1003

8.3.9.1. SELECT_CARD_TYPE

This command powers down and up the selected card that is inserted in the card reader and performs

a card reset.
Note: This command can only be used after the logical smart card reader communication has been

established using the SCardConnect( ) API. For details of SCardConnect( ) API, please refer to

PC/SC specifications.
Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS

P1

P2

Lc

Card Type

FFh

A4h 00h

00h

01h

09h


Response Data Format (abData field in the RDR_to_PC_DataBlock)

SW1 SW2

Where:

SW1 SW2 = 90 00h if no error

8.3.9.2. READ_MEMORY_CARD

Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS P1 Byte Address MEM_L

FFh

B0h 00h

Where:

Byte Address

= Memory address location of the memory card

MEM_L

Length of data to be read from the memory card


Response Data Format (abData field in the RDR_to_PC_DataBlock)

BYTE 1 … … BYTE N SW1 SW2

Where:

BYTE x

Data read from memory card

SW1 SW2 = 90 00h if no error

8.3.9.3. WRITE_MEMORY_CARD

This command is used to write data to the specified address of the inserted card. The byte is written

to the card with LSB first, i.e., the bit at card address 0 is regarded as the LSB of byte 0.
The byte at the specified card address is not erased prior to the write operation and, hence, memory

Advertising