GithubHelp home page GithubHelp logo

Comments (4)

florianhumblot avatar florianhumblot commented on May 31, 2024

Hey, I'm wondering if it could have to do with the information stored in the user bank.

Could you change your read plan to:
set_read_plan(reader.get_antennas(), "GEN2", bank=["user", "epc", "tid"])

And also printing the tag's epc and tid data?

from python-mercuryapi.

rasidmusic avatar rasidmusic commented on May 31, 2024

Hey,
I've tried your code:

#!/usr/bin/env python3
from __future__ import print_function
import mercury
reader = mercury.Reader("tmr:///dev/ttyUSB0", baudrate=115200)

reader.set_region("EU3")
reader.set_read_plan(reader.get_antennas(), "GEN2", bank=["user", "epc", "tid"])
for tag in reader.read(timeout=450):
    print("EPC", tag.epc)
    print("Antenna", tag.antenna)
    print("Count", tag.read_count)
    print("RSSI", tag.rssi)
    print("user", tag.user_mem_data)
    print("tid", tag.tid_mem_data)

Result:

EPC b'E200001963020091231027DE'
Antenna 1
Count 6
RSSI -37
user bytearray(b'L18100117\r\n\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
tid bytearray(b'\xe2\x004\x12\x01<\xfd\x00\x0b\xbd&\x80\x10\x03\x0170\r_\xfb\xff\xff\xdcP')
EPC b'E2000017230C01961100AA8E'
Antenna 1
Count 5
RSSI -31
user None
tid None

So the TID of the second Tag is not read. It seems that xyz_mem_data is only read on the first detected tag...

from python-mercuryapi.

rasidmusic avatar rasidmusic commented on May 31, 2024

Tried also with adding
print("epc", tag.epc_mem_data)

Same result, shows only EPC of the first detected tag

from python-mercuryapi.

gotthardp avatar gotthardp commented on May 31, 2024

Sorry, I cannot reproduce it. I tried your code with two tags with a single antenna, and the system correctly reads user data from both simultaneously.

from python-mercuryapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.