Examples – ThingMagic M5e-Compact User Manual
Page 116

Application Tag Commands
116
Command Set
In the event of a communication error the last Get EPC and Metadata request can be
repeated.
When data is requested using this syntax the response will contain as many tags as can
be fit in the response packet. The response will indicate how many tags were returned
and should be processed accordingly.
This version of Get Tag Buffer takes two additional fields: the Metadata Flags which
defines what metadata will be returned and the Read Options which specifies special
read functionality. The following table lists the supported values for these fields.
Get EPC and Metadata Request Fields
Examples
An example command requesting Read Count, AntennaID and Timestamp
Field
Value
Description
Metadata Flags
(to specify more
than one OR
the values
together)
0x0000
When no flags are set no meta data will be returned, only the tag
EPC (including PC bits and tag CRC)
0x0001
When bit 0 is set the Read Count will be returned
0x0002
When bit 1 is set the LQI/RSSI will be returned
0x0004
When bit 2 is set the Antenna ID will be returned
0x0008
When bit 3 is set the Frequency will be returned
0x0010
When bit 4 is set the Timestamp will be returned
0x0020
When bit 5 is set the RFU (T
hingMagic Only
) will be returned
0x0080
When bit 7 is set up to 4 bytes of tag data will be returned.
Note:
This data is only available if the tag buffer entries are
from a
with embedded
Read Option
0x00
Read the next set of tags from the Tag Buffer
0x01
Re-send the last set of tags.
Note:
When setting this option the tags will be resent starting at
the same ReadIndex as the last command. If the
metadata requested is different than the last request the
number of tags returned might be different. To get those
‘missing’ tags, additional Get Tag Buffer commands
should be sent without the re-send option, otherwise it will
reset the ReadIndex again.