Commands; Control Commands; Get_Acr_Stat - ACS ACR 38 Reference Manual

Smart card reader/writer
Table of Contents

Advertisement

Commands

The commands executed by the ACR38 can generally be divided into two categories, namely, Control
Commands and Card Commands.
Control Commands control the internal operation of the ACR38. They do not directly affect the card inserted
in the reader and are therefore independent of the selected card type.
Card Commands are directed toward the card inserted in the ACR38. The structure of these commands and the data
transmitted in the commands and responses depend on the selected card type.

Control Commands

GET_ACR_STAT

This command returns relevant information about the particular ACR38 model 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.
Command format
Response data format
Header
Status
01
H
INTERNAL
10 bytes data for internal use only
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 ACR38. 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
card type
See Appendix A for the correspondence between these bits and the respective card types.
C_SEL
The currently selected card type as specified in a previous SELECT_CARD_TYPE command.
A value of 00
C_STAT
Indicates whether a card is physically inserted in the reader and whether the card is powered
up:
00
: no card inserted
H
ACR38 Reference Manual
Version 2.2 January 2008
A C R 3 8 S m a r t C a r d R e a d e r / W r i t e r
Header
Instruction
01
01
H
H
Data length
INTERNAL
LEN
1
15
14
13
12
11
means that no card type has been selected.
H
Data length
00
00
H
H
MAX_C
MAX_R
C_TYPE
2
10
9
8
7
6
5
4
3
C_SEL
C_STAT
2
1
0
Page 11 of 44

Advertisement

Table of Contents
loading

Table of Contents