beautypg.com

Other commands access via pc_to_rdr_xfrblock, Get_reader_information – ACS ACR3801 Smart Card Reader User Manual

Page 60

background image

ACR3801 – Reference Manual

[email protected]

Version 2.01

www.acs.com.hk

Page 60 of 62

8.4. Other Commands Access via PC_to_RDR_XfrBlock

8.4.1.

GET_READER_INFORMATION

This command returns relevant information about ACR3801 and the current operating status, such as,

the firmware revision number, the maximum data length of a command and response, the supported

card types, and whether a card is inserted and powered up or not.
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

FFh

09h

00h

00h

10h


Response Data Format (abData field in the RDR_to_PC_DataBlock)

FIRMWARE

MAX_C MAX_R

C_TYPE

C_SEL C_STAT

Where:

FIRMWARE

10 bytes data for firmware version

MAX_C

The maximum number of command data bytes

MAX_R

The maximum number of data bytes that can be requested to be

transmitted in a response

C_TYPE

The card types supported by the ACR3801. This data field is a bitmap

with each bit representing a particular card type. A bit set to '1' means the

corresponding card type is supported by the reader and can be selected

with the SELECT_CARD_TYPE command. The bit assignment is as

follows:

Byte

1

2

card type

F E D C B A 9 8 7 6 5 4 3 2 1 0


Refer to the next section for the correspondence between these bits and the respective card types.

C_SEL

The currently selected card type. A value of 00h means that no card type

has been selected.

C_STAT

Indicates whether a card is physically inserted in the reader and whether the

card is powered up:
00h: No card inserted
01h: Card inserted, not powered up
03h: Card powered up