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

Read fails after some time #48

Open
zlokomatic opened this issue Nov 25, 2018 · 8 comments
Open

Read fails after some time #48

zlokomatic opened this issue Nov 25, 2018 · 8 comments

Comments

@zlokomatic
Copy link

Hi,

i got two problems.

  1. wait_for_tag is not working for me - it just hangs there waiting. However i can read tags after commenting out the wait_for_tag bit
  2. After like 40 reads in a row ( not a specific number it just happens after some time ) not tags can be read anymore. It always errors out after rdr.request()

System is a fresh raspian on a raspberry zero w

@layereight
Copy link
Contributor

Hey @zlokomatic,

can you please check whether #49 fixes the issue for you? Thanks!

@ac-astuartkregor
Copy link

ac-astuartkregor commented Jan 22, 2019

@layereight I am experiencing these symptoms as well. I tried the patch (I think) but it had no effect. I can double-check soon for you. I think I applied the patch incorrectly, as I am not seeing the same symptoms after applying it.

@layereight
Copy link
Contributor

layereight commented Jan 23, 2019

@ac-astuartkregor meaning #49 fixes the issue for you now as well? Just asking for explicit confirmation.

@ac-astuartkregor
Copy link

ac-astuartkregor commented Jan 23, 2019

I believe that to be the case, yes. It's the only significant thing I changed in terms of how my RFID setup works.
Edit: And yes it's working continuously now.

@layereight
Copy link
Contributor

Happy to hear that.

@pitkling
Copy link

pitkling commented Oct 5, 2019

I ran into a similar problem and the patch from @layereight helped, thanks!

Interestingly enough, the problem does not occur with every RFID tag. I have two different types (tokens and cards). While the tokens work flawlessly without the patch, the cards always result in failing reads when left on the RFID reader. Once the reads start to fail, none of the cards can be read anymore but the tokens can be read. Once a token was read, a card can again be read again (again, resulting in errors when left on the RFID reader for too long).

Anyway, with the patch everything seems to work, thanks again!

@Wyphorn
Copy link

Wyphorn commented Oct 22, 2019

same problem. Same fix worked. thank you!

@keans
Copy link

keans commented Nov 8, 2019

Hm, strange with fix #49 the wait_for_tag() blocks only once i.e. until the first time a tag is read. Afterwards there is no waiting for tag i.e. no blocking increasing the CPU usage to 100%.
However, activating #self.irq.clear() in line 399 again makes it work for me on a Pi Zero.

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

6 participants