Spotify USB Disconnects Silently On Oradio
Hey guys, let's dive into a peculiar issue I've been experiencing with my Oradio setup. I'm running version 0.4.2 and have encountered some inconsistent behavior when playing music from Spotify while interacting with a USB disk. Specifically, the system seems to be missing a crucial notification when the USB disk is removed and reinserted, which can lead to unexpected audio playback issues. Let's break down the details, shall we?
The Buggy Behavior
Inconsistent Spotify Playback
The core problem revolves around what happens when you're jamming to your Spotify tunes and decide to remove the USB disk. Here's where things get interesting (and a little frustrating).
Absence of USB Disk Notifications
One of the most noticeable issues is the lack of any announcement or feedback when the USB disk is disconnected or reconnected. Ideally, the system should acknowledge the change, perhaps with a visual cue or an audio notification. Without this, you might not even realize the disk has been removed, leading to confusion about why the music stopped. The missing feedback on USB disk status is a core problem.
Steps to Reproduce the Issue
The Test Scenario
Here's how I tested this out, so you can try it yourself if you want to confirm. The test scenario focuses on a simple interaction: removing the USB disk while Spotify is playing.
Detailed Steps and Expected vs. Actual Results
Here's a breakdown of the steps, the expected outcomes, and what actually happened during my testing. This should make it easy to follow along and understand the problem.
Step 1: Removing the USB Disk
- Precondition: Oradio is currently playing music from Spotify. You're in the groove, enjoying your favorite tracks.
 - Step: Remove the USB disk from the Oradio. Simple, right?
 - Expected Result: The system should announce that the USB stick has been removed. Ideally, the music should stop, and possibly the power OFF LED should flash. This would signal that something has changed.
 - Actual Result: The Oradio provides no such announcement. Spotify merrily continues playing as if nothing happened. This is a bit of a head-scratcher. The music keeps going, even though the source might not be available.
 - Conclusion: FAIL. The system failed to meet the expected behavior. The lack of notification is a clear indication of a problem.
 
Step 2: Inserting the USB Disk
- Step: Reinsert the USB disk back into the Oradio.
 - Expected Result: The system should announce the presence of the USB stick, and the music should stop if the disk contains music or playlist.
 - Actual Result:
- Test Run 1: The system announced that the USB stick is present and stopped the music, however, resuming Spotify after a power on button was impossible.
 - Test Run 2: There was no such announcement, and Spotify continued playing.
 
 - Conclusion: FAIL. The behavior is inconsistent, making the system's response unpredictable. This is not good, especially when you're expecting reliable playback.
 
Expected Behavior: The Ideal Scenario
In an ideal world, here's how things should work when you're playing Spotify music and dealing with USB disks:
- Removal: When you remove the USB disk, the Oradio should immediately recognize the change and alert you. It might announce, "USB disk removed," stop the music, and maybe even give you a visual cue.
 - Reinsertion: When you put the USB disk back in, the system should say something like, "USB disk detected." If the disk contains music or playlists, it should then make those available, potentially stopping Spotify and allowing you to start another source of music.
 
This kind of feedback ensures you're always in the loop and that your music playback experience is smooth and predictable.
Additional Context and Impact
Why This Matters
- User Experience: This issue directly impacts the user experience. Without proper notifications, you might think everything is fine, only to realize later that the system isn't working as expected.
 - Data Loss Prevention: If the USB disk is being used for data storage, a sudden disconnect could potentially lead to data loss or corruption if files are being written to the disk at that moment.
 
Is It Reproducible?
Yes, the bug is definitely reproducible. I've been able to replicate the inconsistent behavior across multiple tests. This means other users are likely to encounter the same problem, making it a priority to resolve.
In essence, the core problem is that the Oradio doesn't provide any feedback when the USB disk is removed or reinserted while playing Spotify music. This leads to a disconnect between the physical action (removing the disk) and the system's response. This lack of notification is a serious issue that makes using the Oradio less reliable.
Technical Details and Software Version
Oradio Version and Hardware
I'm using Oradio hardware version as described in the about info V0.4.2. CfR 2:. This information is key for understanding the specific setup.
Software Versions
I've included the detailed software version information for my Oradio, so you can see the specific versions I'm running. This is helpful for pinpointing any compatibility issues.
Conclusion and Next Steps
Failures and GitHub Issues
The Oradio needs to provide proper notifications. This is not a complex feature, so it should be easy to resolve. In my testing, I found issues #403 and #399.
Addressing the Issue
- Immediate Fix: The main focus should be on implementing announcements that provide clear feedback whenever the USB disk is removed or inserted.
 - Testing: Thorough testing is crucial to ensure the fix is robust and doesn't introduce any new issues. This is especially important for edge cases.
 
I hope this detailed report helps the developers in their investigation and in fixing this pesky bug! Let me know if you have any questions or need more information. Keep on rockin'!"