ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 9 of 52
3.4. ACR120_Status
Returns the firmware version and the reader status.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_Status(UINT16 hReader,
UINT8 pFirmwareVersion[20],
STRUCT_STATUS pReaderStatus);
Parameters
Description
hReader
Handle to the Reader returned by AC_Open()
pFirmwareVersion
Firmware version will be returned (20 bytes)
pReaderStatus
Reader status
Return Value
INT16
0 = success; Error Code < 0
Table 5
: ACR120_Status Command Description
Low Level Frame Structure:
Command: From PC to Reader (5 Bytes)
Command Code
(1 Byte)
Command Data Length
(1bytes)
Instruction Code
(1 byte)
Data Length
(1 byte)
E0h
02h
18h
00h
Response: From Reader to PC (35 Bytes) << Success or Fail >>
Response
Code
(1 byte)
Response
Status
(2 bytes)
Response Data
Length
(2 bytes)
Response Data
(20 bytes)
(10 bytes)
E1h
INT16
01Eh
pFirmwareVersion pReaderStatus
Struct STRUCT_STATUS
{
// 0x01 = Type A; 0x02 = Type B; 0x03 = Type A + Type B
UINT8 MifareInterfaceType;
// Bit 0 = Mifare Light; Bit 1 = Mifare1K; Bit 2 = Mifare 4K; Bit 3 =
Mifare DESFire
// Bit 4 = Mifare UltraLight; Bit 5 = JCOP30; Bit 6 = Shanghai Transport
// Bit 7 = MPCOS Combi; Bit 8 = ISO type B, Calypso
// Bit 9 – Bit 31 = To be defined
UINT32 CardsSupported;
UINT8 CardOpMode; // 0x00 = Type A; 0x01 = Type B TAG is being processed
// 0xFF = No TAG is being processed.
UINT8 FWI; // the current FWI value (time out value)
UINT8 RFU; // to be defined
UINT16 RFU; // to be defined
} ReaderStatus;