python-mercuryapi icon indicating copy to clipboard operation
python-mercuryapi copied to clipboard

Read TID with python-mercuryapi

Open leojomoabate opened this issue 4 years ago • 0 comments

Hi, I have a problems with reading TID memory bank.

This is my code:

import mercury
reader = mercury.Reader("tmr:///dev/ttyUSB0")
reader.set_region("EU3")
reader.set_read_plan([1], "GEN2",bank=["tid"],read_power=2700)
while True:
    epc_list=reader.read(2000)    
    for tag in epc_list:
        print (tag.tid_mem_data)

The code works well but the TID readed is incorrect:

bytearray(b'\xe2\x80h\x10 \x00\x00\x01"WK\x9d')

The TID that I expect is: E2 801 10C 20 00 77 8C F5 52 09 4E

leojomoabate avatar Mar 02 '20 16:03 leojomoabate