gotthardp / python-mercuryapi

Python wrapper for the ThingMagic Mercury API
MIT License
124 stars 63 forks source link

continues read / async read only returning tag once not continues anymore (worked before) #149

Closed lefty01 closed 5 months ago

lefty01 commented 5 months ago

hi now I'm a bit lost. getting back you my project I realized that the continues read, i.e. like this: reader.start_reading(lambda tag: print(tag.epc))

placing one (or more) tag in front of the antenna now only return each tag seen once.

previously I had seen each tag multiple times as long as it is within range (as expected).

any thoughts what could have happened? maybe some of the sample programs from the mercuryapi could have changed something? I'm quite sure the device is not in autonomous read mode, in addition I started windows again and run the URA there the continues read is working.

now I also tried to hook up to an orangepi and run the c program sample from the api ... same I can get single reads per tag but not continues ones (which is bad if I really want to count how many times a tag went by the reader).

lefty01 commented 5 months ago

now cannot connect ... well connect successful but typeerror: al@orangepizero2:~/rfid/python-mercuryapi$ ./test.py Traceback (most recent call last): File "/home/al/rfid/python-mercuryapi/./test.py", line 6, in reader = mercury.Reader("tmr:///dev/ttyS1", baudrate=115200) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Connect Successful...Streaming tags

should have enough power either ... using external laptop power supply with a 5V regulator (but that worked as well for a while ... ) maybe just some other connection issue, still kind of a breadboard setup with jumper wires