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

Random crash during stamp #7

Open
iwkse opened this issue May 25, 2020 · 0 comments
Open

Random crash during stamp #7

iwkse opened this issue May 25, 2020 · 0 comments

Comments

@iwkse
Copy link

iwkse commented May 25, 2020

I'm having issues with the module and rfid, sometimes when it doesn't read well it crashes.

tag_type = self.pn532.mifare_read(address)

File "/home/pi/.py/lib/python3.7/site-packages/py532lib/mifare.py", line 181, in mifare_read
return self.in_data_exchange(bytearray([MIFARE_COMMAND_READ,address]))
File "/home/pi/.py/lib/python3.7/site-packages/py532lib/mifare.py", line 112, in in_data_exchange
raise IOError("InDataExchange returned error status: {0:#x}".format(response[1]))
OSError: InDataExchange returned error status: 0x1

When I try to try/catch the error and read again, it blocks the rfid. It stops to work and I need to power off/on the rfid.

Any hint?

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