Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way of getting more readings per second #154

Open
maddy81 opened this issue Oct 7, 2024 · 0 comments
Open

Way of getting more readings per second #154

maddy81 opened this issue Oct 7, 2024 · 0 comments

Comments

@maddy81
Copy link

maddy81 commented Oct 7, 2024

I have the following python script to get number of readings per second on m6e devkit. I am getting maximum of 25 readings per second. How can I increase the number of readings? How to tune it to get more readings?

My script:

import mercury
import numpy as np

reader = mercury.Reader("tmr:///dev/ttyUSB0")
reader.set_region("EU3") #EU3
#reader.set_read_plan([1], "GEN2", read_power=1900)

freqs = np.linspace(902, 928, num=27)
tagToDetect = b'000000000000000000000000' #First one
#tagToDetect = b'AAAAAAAAAAAAAAAAAAAA0312' #Big one
#tagToDetect = b'3039606243727D80001BA292' #Decathlon one

for x in range(10):
for f in freqs:
reader.set_read_plan([1], "GEN2", epc_target = tagToDetect, read_power=1000) #Max valeur 33 dBm donc 3300 cmdBm

tags = reader.read(timeout=1000) #To read during 1s

epcs = map(lambda t: t.epc, tags)
print(list(epcs))
read_counts = map(lambda t: t.read_count, tags)
print(list(read_counts))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant