Comments (3)
Are you sure this is a bug in the python library? Have you tried doing the same with the mercuryapi binaries?
The read_count is directly provided by mercuryapi. If you are getting 1, perhaps the interrogation period is too short, the tag is too far or faulty. Or it could be a problem of the reader.
from python-mercuryapi.
I suspect this isn't actually an issue given the use of continuous mode. I think the Mercury API treats the read_count value as "how many reads of this tag does this object represent," not "how many times have I read this tag since continuous reading began," which @haroutisonfire may be wanting.
If it's not continous, multiple tag reads may be combined before being returned to your code and so you may see a read count higher than 1. You would expect to see this with a long read timeout and tags that respond often. If you're doing continuous reads each read may be reported to you immediately with your code being able to receive and process it before the next read comes in, so it never has the chance to combine reads of the same tag.
You'll likely have to sum the read_count yourself, e.g.:
from collections import defaultdict
tag_totals = defaultdict(int)
reader.start_reading(lambda tag: tag_totals[tag.epc] += tag.read_count)
time.sleep(1)
reader.stop_reading()
from python-mercuryapi.
Thanks, @DanWehr. I am closing this now as it doesn't sound like an issue.
from python-mercuryapi.
Related Issues (20)
- Anyone ported this to Micropython HOT 1
- TypeError: No such file or directory (Raspberry Pi)
- Windows Installer based on Python3.6 (32 bits)
- reader.get_connected_ports() always return nothing
- Timeout error - M6e Nano and Raspberry Pi Zero W HOT 4
- Why can't connect over ip+port ?? HOT 2
- Lock & unlock tag ? HOT 2
- SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats HOT 3
- Installation error due to dead link of Jadak API HOT 6
- make error HOT 2
- Python freezes when reader unavailable HOT 2
- Support for powermode HOT 1
- error: subprocess-exited-with-error HOT 4
- Whether to support the chip of E710? HOT 3
- mercuryapi_osx.patch is out of sync with the SDK
- can't build on macos with make
- Can you please update the 'pip install python-mercuryapi' for the new jadak mercury api? HOT 1
- Help reading the tag data HOT 1
- Using this wrapper on new M7E pico dev kit HOT 2
- Question!! How to increase the tag read range? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-mercuryapi.