-
Notifications
You must be signed in to change notification settings - Fork 406
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
High CPU load by daemon_rfid_reader.py and MFRC522 #275
Comments
Lower the CPU load would be great indeed. The solution would be to migrate to the pi-rc522 class, which solved this issue by adding support for listening on events and introduced a |
@keinkurt thx for bringing RC522 support to this project - don't you experience this high CPU load issue yourself ? |
Just for the numbers, adding a |
I just submitted a pull request ( #345) doing what you suggested. Thanks for the tip. Saved my Pi-zero-based project. |
CPU issue #275: Replace MFRC522 with pi-rc522 library (ondryaso/pi-rc522)
Hi, I merged this with the develop branch |
I am successfully using develop together with my MFC522 reader. So @MiczFlor please judge yourself my commits, I'm not sure how to do a proper PR since I don't know if Btw, the CPU usage improvements are great due to the new use of |
i used the master classic Version with the deamon_rfid_reader.py from the Version of Kein Kurt successfully. The orginal deamon_rfid_reader.py gives the following error: pi@raspberrypi: (sorry for the wrong formated text)
Yeah this is great! |
@cubertt See how to solve the |
Thank you for merging this so quickly and thank you for testing. Unfortunately I cannot verify USB readers - not having one and going for the seemingly cheaper RC-522 module was the reason for me to work on this anyway :-)
All the credit goes to you @varac for pointing us in the right direction. One caveat to be mentioned here: The connection layout for the RC-522 that you find all over the internet is not sufficient to make this work. You have to connect the RC-522 IRQ pin with GPIO25 to make this work as described here: pi-rc522 |
It doesn't work for me. After a fresh installation don't get my reader correctly activated anymore he deactivates himself after I try to read a card Has anyone tried this with the current version 1.1.8-rc3 classic? |
Please read this |
Thanks @MiczFlor I have already tried this manual but as soon as I try to read a card it's over. |
I can't get it to work as well. I have a RC522 module that did not work with the latest version of the install script. After reading here #11 and switching to the Version-1.1.5-dynamicRFIDreader branch I could register the device and use it. But CPU load was so high that my pi couldn't play audio from Spotify without interruption. So I checked out the develop branch and now the reader doesn't work again. The additional pin is connected. @varac Could you please help on how to set up? The changes suggested didn't work for me. But they don't seem to be the problem right now because the reader is not found at all. Setting the device in deviceName.txt manually also didn't work. |
Ok, I got it working now. Using the |
@alex-voigt Have a look at my |
Fix experimental reader to be compatible with stable reader #275
Hi @Ardios @alex-voigt @fenkman |
I checked out the most recent develop branch and it (still) works for me. Thanks for all the good work! 👍 |
Hi,
I'm using the MFRC522 Module with the scripts from @keinkurt: https://github.com/keinkurt/RPi-Jukebox-RFID/tree/MFRC255/scripts on a Raspberry Pi Zero W
I just recognize that the daemon generates a pretty high CPU load between 50–80%:
pi 486 **80.4** 1.7 11608 7624 ? Rs 20:47 17:29 /usr/bin/python2 /home/pi/RPi-Jukebox-RFID/scripts/daemon_rfid_reader.py
This is much more then mpd, which make about 7–10%
Maybe communicate with the reader less often?
The text was updated successfully, but these errors were encountered: