beautypg.com

Memory card command set, Memory card – 1, 2, 4, 8 and 16 kbit i2c card, Select_card_type – ACS ACR38K Smart Keyboard User Manual

Page 20

background image

ACR38x (CCID) – Reference Manual

[email protected]

Version 6.04

www.acs.com.hk

Page 20 of 58

9.3. Memory Card Command Set

This section contains the Memory Card Command Set for ACR38x (CCID).

9.3.1.

Memory Card – 1, 2, 4, 8 and 16 Kbit I2C Card

9.3.1.1. SELECT_CARD_TYPE

This command powers up and down 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

01h


Response Data Format (abData field in the RDR_to_PC_DataBlock)

SW1 SW2

Where:

SW1 SW2 = 90 00h if no error

9.3.1.2. SELECT_PAGE_SIZE

This command selects the page size to read the smart card. The default value is 8-byte page write. It

resets to default value whenever the card is removed or the reader is powered off.
Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS

P1

P2

Lc Page Size

FFh 01h 00h 00h 01h

Where:

Page size

= 03h for 8-byte page write
= 04h for 16-byte page write
= 05h for 32-byte page write
= 06h for 64-byte page write
= 07h for 128-byte page write