ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 23 of 52
4.2. ACR120_ListTags
Lists out the serial numbers of all tags which are in readable antenna range.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_ListTags( INT16 hReader,
UINT8* pNumTagFound,
UINT8 pTagType[4],
UINT8 pTagLength[4],
UINT8 pSN[4][10]);
Parameters
Description
hReader
Handle to the reader returned by AC_Open()
pNumTagFound
Contains the number of TAG listed
pTagType[4]
Contains the TAG type
pTagLength[4]
Contains the length of the serial number
pSN[4][10]
The flat array of serial numbers. All serial numbers
are concatenated with fixed length (10 bytes)
Return Value
INT16
Result code. 0 means success.
Table 17
: ACR120_LIstTags Command Description
Low Level Frame Structure:
Command: From PC to Reader (5 bytes)
Command Code
(1 byte)
Command Data Length
(1 byes)
Instruction Code
(1 byte)
Data Length
(1 byte)
E0h
02h
03h
00h
Response: From Reader to PC (6 + N x 12 bytes) << Success or Fail >>
Response Code
( 1 byte)
Response Status
(2 bytes)
Response Data Length
(2 bytes)
Response Data
(1 byte)
E1h
INT16 (>=0)
01h
+
N x 0Ch
pResultTagFound (N)
+ Response Data Block 0
Mifare Response Data Block [0]
(1 byte)
(1 byte)
(10 bytes)
pTagType[0]
pTagLength[0]
pResultSN[0] (Serial Number)