ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 25 of 52
4.3. ACR120_MultiTagSelect
Selects a TAG with specific serial number.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_MultiTagSelect( INT16 hReader,
UINT8 TagLength,
UINT8 SN[10],
UINT8* pResultTagType,
UINT8* pResultTagLength,
UINT8* pResultSN);
Parameters
Description
hReader
Handle to the reader returned by AC_Open()
TagLength (N)
Contains the length of the serial number of the TAG
to be selected. The
TagLength
may be 4, 7 or 10
bytes long.
SN
Contains the serial number of the TAG to be selected
pResultTagType
Contains the selected TAG type
pResultTagLength (K)
Contains the length of the serial number of the
selected TAG. The
pResultTagLength
may be 4, 7 or
10 bytes long.
pResultSN
Serial number of the selected TAG
Return Value
INT16
Result code. 0 means success.
Table 18
: ACR120_MultiTagSelect Command Description
Low Level Frame Structure:
Command: From PC to Reader (Taglength(N)+6 bytes)
Command
Code
(1 byte)
Command
Data Length
(2 bytes)
Instruction
Code
(1 byte)
Data Length
(1 byte)
Data
(1 byte)
(N byte)
E0h
Taglength (N)
+0003h
03h
Taglength (N)
+01h
TagLength (N)
SN
Response: From Reader to PC (18 Bytes) << Success>>
Response
Code
(1 byte)
Response
Status
(2 bytes)
Response
Data
Length
(2 bytes)
Response Data
(1 byte)
(1 byte)
(1 byte)
(10 bytes)
E1h
INT16 (>=0)
000Dh
01h
pResultTagType
PResultTagLength (K)
pResultSN
(Serial
Number)