Closed Barzille closed 3 years ago
The reader seems to disconnect, see here:
Oct 12 20:38:29 raspberrypi kernel: [ 149.126913] usb 1-1.2: USB disconnect, device number 5
Oct 12 20:38:29 raspberrypi thd[440]: Error reading device '/dev/input/event1'
Oct 12 20:38:29 raspberrypi daemon_rfid_reader.py[1282]: Traceback (most recent call last):
Oct 12 20:38:29 raspberrypi daemon_rfid_reader.py[1282]: File "/home/pi/RPi-Jukebox-RFID/scripts/daemon_rfid_reader.py", line 38, in <module>
Oct 12 20:38:29 raspberrypi daemon_rfid_reader.py[1282]: cardid = reader.reader.readCard()
Oct 12 20:38:29 raspberrypi daemon_rfid_reader.py[1282]: File "/home/pi/RPi-Jukebox-RFID/scripts/Reader.py", line 58, in readCard
Oct 12 20:38:29 raspberrypi daemon_rfid_reader.py[1282]: for event in self.dev.read():
Oct 12 20:38:29 raspberrypi daemon_rfid_reader.py[1282]: File "/usr/local/lib/python3.7/dist-packages/evdev/eventio.py", line 67, in read
Oct 12 20:38:29 raspberrypi daemon_rfid_reader.py[1282]: events = _input.device_read_many(self.fd)
Oct 12 20:38:29 raspberrypi daemon_rfid_reader.py[1282]: OSError: [Errno 19] No such device
Could you please check, if there's an issue with the hardware, e.g. loose cable, something broken, etc?
I believe this one of our attempts to remove and reconnect the device. We hav meanwhile updated to 2.1 and we use currently the Reader.py.experimental file.
What we currently see is, that after booting it is not working (same as in 2.0) but when we disconnect and reconnect the reader it seems to work. What we also see is that the Reader Service is stopped after disconnecting the reader, so we have to enable it manually.
I have an assumption that maybe the reader is initialized too early in the boot process, is this possible?
One ting that's also strange: If we shutdown the RPI while music is playing and we start up again we first get the rfid beep, then the music starts and then - while the music plays - we get a startup sound melody. Maybe something in disorder?
Are you experiencing this issue in combination with resume or shuffle?
We released 2.2 a couple of days ago with fixes for both resume and shuffle, so you might want to check, if this fixes also your issue.
It's working fine meanwhile
Bug
This is a strange behaviour I could not track down. When we start or restart the raspberry it seems as if everything is initialized correctly. The rfid is beeping, the leds are blinking and also the jukebox startup sound is playing.
But every now and then the rfid reader is not recognizing any cards. It's not beeping when holding a card to it while the other time when we switched the raspi on it worked flawlessly.
None of the logs show any errors or warnings which we could connect to the rfid reader.
What I did
sed -i -e 's/sudo poweroff/sudo shutdown -h 0/g' /home/pi/RPi-Jukebox-RFID/scripts/playout_controls.sh
What happened
unknown but even another RFID reader (same product type) is producing the same outcome
I expected this to happen
RFID Reader is working every time correctly
Further information that might help
Software
Base image and version
pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster 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
pi@raspberrypi:~ $ cd /home/pi/RPi-Jukebox-RFID/ && git status | head -2 Auf Branch master Ihr Branch ist auf demselben Stand wie 'origin/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 3 Model B Rev 1.2
RFID Reader
Bus 001 Device 006: ID 413d:2107 idVendor 0x413d idProduct 0x2107
Mitfahre card Reader M301
Soundcard
Bus 001 Device 004: ID 8086:0808 Intel Corp. iManufacturer 1 C-Media Electronics Inc.
iProduct 2 USB PnP Sound Device
Other notable hardware