dannyhaak / TagDataTranslation

TagDataTranslation according to the GS1 EPC TDT 1.11 standard (for RAIN RFID)
https://www.mimasu.nl/tdt
20 stars 20 forks source link

About EPC Tag URI and Pure Identity EPC URI format? #5

Open Juliusasia opened 2 years ago

Juliusasia commented 2 years ago

Greetings, Thanks for your lib and i could translate from GS1 key into hexadecimal successfully. But I have a question, it seems there is no available API to convert from hex to EPC Tag URI and Pure Identify EPC RUI. based on the GS1 document, the hex string should be composed by (e.g. SGTIN-96) Header(8 bits) + Filter(3 bits) + partition value(3bits) + company prefix + item reference + serial no.

if the partition value is 011b, it means the size of the company prefix is 30 bits and the item reference is 14 bits.
According to way, I think it should be able to convert to EPC Tag URI and Pure identify EPR URI.

not for sure if my thought is correct but if there is any recommend method, please kindly advise! appreciate your time in reading. image