ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 6 of 52
3.0. Reader Commands
3.1. ACR120_Open
Opens a port (connection) to the reader.
High Level API
:
DLLAPI INT16 AC_DECL ACR120_Open(INT16 ReaderPort);
Parameters
Description
ReaderPort
Port number. Available choices are “ACR120_USB1” to
“ACR120_USB8”.
Return Value
INT16
Handle for further operations. Error Code < 0
Table 2
: ACR120_Open Command Description
Low Level Frame Structure:
Command: From PC to Reader (5 bytes)
Command Code
(1 byte)
Command Data Length
(1 bytes)
Instruction Code
(1 byte)
Data Length
(1 byte)
E0h
02h
05h
00h
Response: From Reader to PC (5 bytes) << Success or Fail >>
Response Code
(1 byte)
Response Status
(2 bytes)
Response Data Length
(2 bytes)
E1h
INT16
0000h