Expand description
Decoder for EPC Tag Identification data
The TID is a memory area on a Gen2 RFID tag which contains the manufacturer identification and capabilities of the tag.
As Gen2 tags will refuse an out-of-bounds read, the TID memory must be read from the tag and decoded progressively. Decoding the TID structure (4 bytes / 2 words) will indicate whether the XTID header (2 bytes / 1 word) is present and can be read. The XTID header then determines which of the subsequent data structures are present.
Reference
GS1 EPC TDS Section 16
Structs
Tag Identification
Extended Tag ID header
Functions
Decode the TID structure from bytes
Decode the XTID header from bytes
Look up a mask designer ID and return a string of the manufacturer name
Look up the model name of a tag given the MDID and TMID.