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

"RuntimeError: Invalid argument" when i try to set the bank #120

Open
IbrahimBond opened this issue Dec 6, 2020 · 0 comments
Open

"RuntimeError: Invalid argument" when i try to set the bank #120

IbrahimBond opened this issue Dec 6, 2020 · 0 comments

Comments

@IbrahimBond
Copy link

IbrahimBond commented Dec 6, 2020

OS: ubuntu 18.04
python 3.6
reader model: Izar

here is my code :

` 
#!/usr/bin/env python3
from __future__ import print_function
import time
from datetime import datetime
import mercury

rfid_reader = mercury.Reader("tmr://192.168.1.37", protocol="GEN2")

print(rfid_reader.get_model())
print(rfid_reader.get_supported_regions())


rfid_reader.set_read_plan([1,2,3,4], "GEN2", bank = ["tid"])


while True:
    tag_list=rfid_reader.read(200)    
    for tag in tag_list:
        print (tag,tag.tid_mem_data)
`

error:

Traceback (most recent call last):
 File "reader.py", line 17, in <module>
   tag_list=rfid_reader.read(200)    
RuntimeError: Invalid argument

when i try to connect without setting the bank, it connects fine and i get following results:

b'000000000150786100000000' None
b'33161FABC6020C0000014517' None
b'33161FABC6020C00000BD37F' None
b'33161FABC60208000004E419' None
b'33161FABC602080000144167' None
b'000000000000000000004406' None

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