Get tag buffer (29h), Get tags remaining, Tag buffer (29h) – ThingMagic M5e-Compact User Manual
Page 113: Get tag, Buffer (29h)
![background image](/manuals/640737/113/background.png)
Application Tag Commands
Command Set
113
FAULT_GEN2 PROTOCOL_MEMORY_LOCKED - 424h
FAULT_ANTENNA_NOT_CONNECTED – 503h
FAULT_TEMPERATURE_EXCEED_LIMITS – 504h
Get Tag Buffer (29h)
After a Read Tag Multiple
command is executed, the found tags are stored in an internal
. The Get Tag Buffer command can perform several different operations
depending on the syntax used. These operations are:
Get tags remaining in the tag buffer
Get tag EPCs
Get tag EPCs and their
Get Tags Remaining
To determine the number of tags remaining in the buffer, send the Get Tag Buffer
command with a data length of zero:
This command returns the current read index, the location of the next tag to be read, and
the current write index, the location where the next tag will be written. These two numbers
can be used to get the number of tags left in the tag buffer:
Tags Left = WriteIndex - ReadIndex
The following response shows there are three tags left in the buffer, and the first one has
already been read (the read index parameter starts counting from 0.):
FF
00
29
1D
26
SOH
Length
OpCode
CRC
FF
04
29
00
00
00 01
00 04
87
72
SOH
Length
OpCode
Status
ReadIndex
WriteIndex
CRC