Rpi-jukebox-rfid: Suddenly cards do not work anymore

Created on 15 Aug 2018  路  13Comments  路  Source: MiczFlor/RPi-Jukebox-RFID

I had the box running and everything worked. Then i tried to register a new card. (There was a wma file in the folder which did not work) Because of that i switched it out with a mp3. But now none of the cards work anymore. Even those that worked before. I can play all folders via the web app.

I'm on a raspberry pi 2 with the latest version of the software.

Does anyone know what could be the problem?

help wanted

Most helpful comment

Hi @al-wi
thanks for catching this bug. Fixed in in https://github.com/MiczFlor/RPi-Jukebox-RFID/commit/7d0d5c9e1bac1a423fdad8c93379e638e6e77523 - and found another place while doing so.

All 13 comments

Hi @luckyluggi
Can you have a look at the settings page and see (at the bottom) if the RFID reader is switched on?

Yes it's on.
I tested some things.
It is playing the startup sound with the connected speakers. When i scan a card it does play nothing, but after refreshing the web page the scanned card is shown as the last played one.

And when i connect a tv via hdmi and scan a card with the tv connected its playing the sound via tv.
That makes me think somethings wrong with the audio boxes, but on the other hand they work well when playing sound threw the web app.

Hm...i'm confused :)

Hm. Try to register your device again.
Read here: https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/master/docs/CONFIGURE-stretch.md#register-your-usb-device-for-the-phoniebox
And type:
~
cd /home/pi/RPi-Jukebox-RFID/scripts/
rm deviceName.txt
python2 RegisterDevice.py
~

Hm. I did that and the behavior is still the same.
When i nano deviceName.txt the devicename HXGCoLtd is in the file.

The card reading seems to work. Because after scanning a card the correct id is in latestID.txt

Hi @luckyluggi
what so you mean with "latest version". Is it the 0.97 version or do you use the git version via git pull?

Can i see the versionnumber somewhere?

For example with

cat /home/pi/RPi-Jukebox-RFID/settings/version

Ah. I found it in /settings/version. The file says 0.9.7
But it must be the git pull version, because i followed the install instruction and that says
git clone https://github.com/MiczFlor/RPi-Jukebox-RFID.git

OK, so it's the latest "officially" released version.

@luckyluggi:
A new 1.0 version was just released. Please repeat the git pull command.
If it still doesn't work, you could activate the debug mode in rfid_trigger_play.sh and playout_controls.sh and check the debug log in the logs folder after you've swiped a rfid card.

It should normally look like this:

Card ID '0013897740' was used
This ID has been used before.
The shortcut points to audiofolder 'pinguin'.
# Attempting to play: /home/pi/RPi-Jukebox-RFID/shared/audiofolders/pinguin

I had a similar issue after upgrading but it was not related to the cards or scanner. Even using the GUI to start playing one folder didn't work for me.

There's a problem in the rfid_trigger_play.sh when using folders with spaces in the folder's name. It's basically not able to create the folder.conf file.

You can fix it by adding double quotes around the $FOLDER variable.

Change line 262 from:
. $PATHDATA/inc.writeFolderConfig.sh -c=createDefaultFolderConf -d=$FOLDER
to:
. $PATHDATA/inc.writeFolderConfig.sh -c=createDefaultFolderConf -d="$FOLDER"

Hope this helps.

Hi @al-wi
thanks for catching this bug. Fixed in in https://github.com/MiczFlor/RPi-Jukebox-RFID/commit/7d0d5c9e1bac1a423fdad8c93379e638e6e77523 - and found another place while doing so.

Hi,
I am closing this issue, because it has been silent for over two weeks. If it's not resolved, please open a new issue. Thanks.
All the best, micz

Was this page helpful?
0 / 5 - 0 ratings

Related issues

topas-rec picture topas-rec  路  9Comments

s-martin picture s-martin  路  6Comments

Hamsert picture Hamsert  路  11Comments

bastiitsab picture bastiitsab  路  11Comments

Caliandroid picture Caliandroid  路  7Comments