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

🐛 | Occasionally RFID card doesn’t start playback #1145

Closed
ElGauchooooo opened this issue Nov 19, 2020 · 10 comments
Closed

🐛 | Occasionally RFID card doesn’t start playback #1145

ElGauchooooo opened this issue Nov 19, 2020 · 10 comments
Labels

Comments

@ElGauchooooo
Copy link

Bug

What I did

Installed phoniebox using the provided installer script on a raspberry pi, added one folder including several files and assigned an RFID card to it, set the folder to "RESUME: ON", "SHUFFLE: ON", "SINGLE: OFF"

What happened

Approximately 90% of the time, phoniebox plays instantly without any issues. Yet in the other 10% of the cases, phoniebox does not start playing when a card is being supplied. Tried starting it via the webapp using the play button on the playlist:
image
The button then sometimes turns red, sometimes it already works on this button click. Last option to start the playlist is the big playbutton at the top - using this one, the phoniebox starts playing again:
image

I expected this to happen

Phoniebox should start playing instantly using the RFID card.

Further information that might help

find logfiles at https://paste.ubuntu.com/p/W9cftsQFXQ/

Not quite sure if the logs covered one of the incidents, but should. I've enabled all logs on phoniebox webinterface, if you only need specific ones, please let me know, so that i can set them up prior to the next bug appearance. Bug appears approximately every 2 days.

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 On branch master Your branch is up to date with 'origin/master'.

Installscript

scripts/installscripts/buster-install-default.sh

Hardware

RaspberryPi version

pi@raspberrypi:~/RPi-Jukebox-RFID $ sudo cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Rev 1.2

RFID Reader

RC522

Soundcard

RPI OnBoard.

@s-martin s-martin changed the title 🐛 | BUG SUMMARY 🐛 | Occasionally RFID card doesn’t start playback Nov 21, 2020
@s-martin
Copy link
Collaborator

Do you use classic or Spotify edition?

Nothing special in the log. Unfortunately this looks like just sometimes the swipe isn’t recognized. I suppose you haven’t noticed anything before the swipe doesn’t work?

@s-martin
Copy link
Collaborator

Could you check, if #1083 is related?

@ElGauchooooo
Copy link
Author

ElGauchooooo commented Nov 21, 2020

@s-martin Thanks for the quick reply! How to check if the bug is related? As far as i can see, there's no solution to that issue mentioned, nor a way to reproduce it. It might be, but cannot tell for sure (and i'm not using a USB RFID reader - mine is connected via GPIO).

I'm using classic edition - but had the same issue with spotify edition (which i had installed previously, then removed as i thought somehow spotify might interfere when playing).

The only thing i've noticed is, that sometimes the phoniebox isn't reachable with wifi (connection timed out on webinterface). Might it be related to this one?

@s-martin
Copy link
Collaborator

Is the behavior described in #1083 similar to the behavior you are experiencing?

@ElGauchooooo
Copy link
Author

Yes, looks completely identical, might be the same. My reader however has no beeper nor does it blink never (working or not), yet (if its the same issue) it appears not to be related to the reader.

@s-martin
Copy link
Collaborator

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.

@ElGauchooooo
Copy link
Author

Updated to 2.2, havn't used it for 1-2 days. Today, phoniebox didn't work on the first try. Starting it via webinterface works like a charm. debug.log can be found here, have removed the first log entries right before 12:00 when it switches to 15:xx o'clock (where the issue happened) https://paste.ubuntu.com/p/3y2R6pJNvQ/

@ElGauchooooo
Copy link
Author

ElGauchooooo commented Dec 1, 2020

Next error occurred - after one song was finished, the phoniebox did not continue playing with the next song, although repeat is on and shuffle aswell (see first image in this issue). Any clues whats going on here?

Edit:

According to the logs, looping is switched of (which would explain that the phoniebox did not continue playing):

#START##### SCRIPT resume_play.sh (2020-12-01.15:23:57) ##
VAR AUDIOFOLDERSPATH: /home/pi/RPi-Jukebox-RFID/shared/audiofolders
VAR COMMAND: savepos
VAR VALUE:
VAR FOLDER:
content of /home/pi/RPi-Jukebox-RFID/shared/audiofolders//folder.conf
CURRENTFILENAME="filename"
ELAPSED="0"
PLAYSTATUS="Stopped"
RESUME="OFF"
SHUFFLE="OFF"
LOOP="OFF"
SINGLE="OFF"
Now doing what COMMAND wants: savepos
VAR FOLDER from settings/Latest_Folder_Played: Bewegungslieder
savepos FOLDER: Bewegungslieder
savepos ELAPSED:
CURRENTFILENAME="Bewegungslieder/AlleLeut.mp3"
ELAPSED="23.856"
PLAYSTATUS="Playing"
RESUME="ON"
SHUFFLE="ON"
LOOP="OFF"
SINGLE="OFF"

Unfortunatelly, i cannot find any Settings on the webinterface, where to set the playing to be played in looping mode. I only see settings for the other three settings.

@s-martin
Copy link
Collaborator

Can you check, if the issue still persists with current 2.4 version?

@s-martin
Copy link
Collaborator

No response, so I’m closing the issue.
Feel free to reopen the issue, if you are still experiencing issues with a recent V2.

@s-martin s-martin closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants