Closed Thilo-90 closed 2 years ago
I have the same issue like Thilo-90. I tried both on Rasperian Zero W and Rapberry 4 with connected RC522:
On both system it get the same error like Thilo-90.
I had a running Phoniebox system on a rasperry 3. When i put in that SD card to the zero or rp4 it works well.
There is a fix out here: (Worked for me)
https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/1623#issuecomment-968324731
Thanks for the update Lippsson, though it won't work as intended for me. Please see below my input / output
pi@raspberrypi:~/RPi-Jukebox-RFID/scripts $ python3 RegisterDevice.py
Choose the reader from list
0 vc4
1 vc4
2 MFRC522
3 RDM6300
4 PN532
Device Number: 2
If i hit Enter after typing the number, nothing happens. The script does not proceed for me. I have to close the console and start a new ssh connection, though the same thing happens.
I also tried a reboot to see if it is working, but it is not. Neither the script nor the reader (miracles happen? sometimes?)
Hi Thilo! Yes the same happend on my side. I pressed the number and nothing. Then i closed with Ctrl+C and get to the next line $ sudo systemctl restart phoniebox-rfid-reader.service
Hi Lippsson, thank you so much. Just tested it and it finally works. :)
hmm I also struggling with my RC522 after a new installation.
All seems running OK but the reader does not read.
Can you confirm that there is a
RuntimeWarning: This channel is already in use, continuing anyway.
in
journalctl -f
after you run
sudo systemctl restart phoniebox-rfid-reader.service
?
Is there another way to test RC522 (the Read.py Write.py does not work anymore since it is Pythons2)
Hi @zimbo86,
i just ran the commands you mentioned. Here is my log
pi@raspberrypi:~ $ sudo systemctl restart phoniebox-rfid-reader.service
pi@raspberrypi:~ $ journalctl -f
-- Journal begins at Sat 2021-10-30 12:36:50 BST. --
Nov 21 16:02:01 raspberrypi sudo[5612]: pam_unix(sudo:session): session opened for user root(uid=0) by pi(uid=1000)
Nov 21 16:02:01 raspberrypi systemd[1]: Stopping Phoniebox RFID-Reader Service...
Nov 21 16:02:01 raspberrypi systemd[1]: phoniebox-rfid-reader.service: Succeeded.
Nov 21 16:02:01 raspberrypi systemd[1]: Stopped Phoniebox RFID-Reader Service.
Nov 21 16:02:01 raspberrypi systemd[1]: phoniebox-rfid-reader.service: Consumed 9min 6.021s CPU time.
Nov 21 16:02:01 raspberrypi systemd[1]: Started Phoniebox RFID-Reader Service.
Nov 21 16:02:01 raspberrypi sudo[5612]: pam_unix(sudo:session): session closed for user root
Nov 21 16:02:02 raspberrypi daemon_rfid_reader.py[5615]: /usr/local/lib/python3.9/dist-packages/pirc522/rfid.py:90: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
Nov 21 16:02:02 raspberrypi daemon_rfid_reader.py[5615]: GPIO.setup(pin_rst, GPIO.OUT)
Nov 21 16:02:02 raspberrypi daemon_rfid_reader.py[5615]: 2021-11-21 16:02:02,053 - root - INFO - Dir_PATH: /home/pi/RPi-Jukebox-RFID/scripts
My Tags are read without any problem though by now. Also after restarting the service.
Hi @zimbo86,
i just ran the commands you mentioned. Here is my log
pi@raspberrypi:~ $ sudo systemctl restart phoniebox-rfid-reader.service pi@raspberrypi:~ $ journalctl -f -- Journal begins at Sat 2021-10-30 12:36:50 BST. -- Nov 21 16:02:01 raspberrypi sudo[5612]: pam_unix(sudo:session): session opened for user root(uid=0) by pi(uid=1000) Nov 21 16:02:01 raspberrypi systemd[1]: Stopping Phoniebox RFID-Reader Service... Nov 21 16:02:01 raspberrypi systemd[1]: phoniebox-rfid-reader.service: Succeeded. Nov 21 16:02:01 raspberrypi systemd[1]: Stopped Phoniebox RFID-Reader Service. Nov 21 16:02:01 raspberrypi systemd[1]: phoniebox-rfid-reader.service: Consumed 9min 6.021s CPU time. Nov 21 16:02:01 raspberrypi systemd[1]: Started Phoniebox RFID-Reader Service. Nov 21 16:02:01 raspberrypi sudo[5612]: pam_unix(sudo:session): session closed for user root Nov 21 16:02:02 raspberrypi daemon_rfid_reader.py[5615]: /usr/local/lib/python3.9/dist-packages/pirc522/rfid.py:90: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. Nov 21 16:02:02 raspberrypi daemon_rfid_reader.py[5615]: GPIO.setup(pin_rst, GPIO.OUT) Nov 21 16:02:02 raspberrypi daemon_rfid_reader.py[5615]: 2021-11-21 16:02:02,053 - root - INFO - Dir_PATH: /home/pi/RPi-Jukebox-RFID/scripts
My Tags are read without any problem though by now. Also after restarting the service.
Got a soldering mistake - reader is detected now ;)
Bug
What I did
I tried to setup Phoniebox with an RC522 reader and could not get it to work. Wired up the RC522 (it is working, tested with PyMyLifeUp) and also double checked the GPIO and Pins on the Reader.
So to provide clear steps i formatted everything and started again.
Installed latest Raspberry Pi OS using Raspberry Pi Imager V1.6.2
I enabled SSH and ran the one-line install command which guided me through the installation process
What happened
I already got error messages during the installation but did not pay too much attention the first time
I did the reboot and a new SSH connection. Reader was not working in the Web Interface and i could not add cards. (yes it was activated in the web interface settings) So i followed these steps Readme.md
I expected this to happen
I expected the installation to run smoothly when the reader is wired up correctly
Further information that might help
Software
Base image and version
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Branch / Release
master
Installscript
cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/master/scripts/installscripts/buster-install-default.sh; chmod +x buster-install-default.sh; ./buster-install-default.sh
Hardware
RaspberryPi version
Raspberry Pi 4 Model B Rev 1.4
RFID Reader
i.e.
MAKEVMA405
manual