Confused about RFID Player Control and Second Swipe #2117
-
Hello! I am struggling to get the desired player behavior when swiping RFID cards which start music playback. My goal is, that placing the card starts player, removal stops it. Further, I want that the player resumes in that folder when the same card is placed again. That's how the TonieBox is implementing the control and I like that approach. I tried different settings like the "General RFID player control" in the web interface. This is bringing a nearly perfect behavior, however the playlist starts from the beginning when the card is placed again. How can I change this? I tried several other settings like placing with the "Second Swipe" settings and the "Resume" setting for a specific folder. None of them made any change. Also, I am confused about the wiki page Stop on removal with USB RFID Reader. It seems that this hack is required for the Neuftech USB reader, but in my setup with the RC522 it is working also without any hack, right? I just got 2 seconds delay before the music stops. Is this coming from the polling interval? Or is there a interrupt settings to adjust? My setup:
Thank you for your kind help! This is a great project and we are having a lot of fun while building our first PhonieBox! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey, And yes the delay on removing the cards is from the polling implementation of the reader (at all 1.2 s). This cannot be adjusted (implementation detail: 0.2 seconds wait time is used for throttling + 1 second wait with a signal.alarm if no card is recognized. singal.alarm lowest accepted value is 1second ). |
Beta Was this translation helpful? Give feedback.
-
Hello @AlvinSchiller, thank your reply and taking the time looking into this! I understand the two settings now better. So when the "General RFID Player Control" is set to "Placing card, ...", it will keep looking if the card is still present and (if not) stops playing. The "Second Swipe" option is checking if the same card is presented a second time and then executes the configured action. However, it is still not working as desired after making the settings you suggested. I am on the The folder is configured as follows:
I noticed, that there is no
Here is the log after placing a tag (playing 10s), removing it and then placing again (track starts from beginning) and play for 5s:
|
Beta Was this translation helpful? Give feedback.
Hey,
i tried to reproduce your intended behavior on the current
develop
branch and it worked in my opinion, if you activate the "resume" option on the folders and also set the second swipe option to "resume playback". Can you verify this?What i noticed though is, on switching cards the playback starts at the beginning of the song and then jumps forward to the "current" position, which sounds a bit odd (#878 (comment)).
And yes the delay on removing the cards is from the polling implementation of the reader (at all 1.2 s). This cannot be adjusted (implementation detail: 0.2 seconds wait time is used for throttling + 1 second wait with a signal.alarm if no card is recognized. singal.alarm …