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
Sound stutters/cuts out or skips every 30 seconds (RTP and SBC error) #62
Comments
@Nibbos I have a connection resolution for you. You can simply flash the image again. (The part with the micro sd card and BalenaEtcher) The PI will get on its own the project files back and then everything should work. But dont forget to delete the from you set var before doing everything. |
My sound drops also on Raspi 4! In log you can see: Not really a stable connection and unusable in this state! |
|
I can confirm this issue is with the Raspberry Pi 3+ as well. Moving to direct streaming fixed the audio quality (not really a proper solution) as that bypasses the bluetooth radio and streams over the wifi connection. |
@javexed do you have logs from the dashboard? |
By the way here is a link to a issue in bluealsa with the same errors: arkq/bluez-alsa#110 |
Yes, looks similar to that issue, here are some of the logs: 08.12.19 08:05:24 (-0500) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 48438 != 48437 |
Other important note, balena diagnostics also show under voltage. Am looking for a better power supply to see if it is related to this issue. |
@javexed Good idea! |
Having the same issue myself. Bluetooth connection from a Huawai Mate 10 to RPI 3. Noted that some users suspected this was an iOS issue, likely not limited to iOS. These are the two errors repeated in my logs. Have tested moving the devices closer together and further apart, seems to have little impact on the errors until there is a considerable distance between them. Is there any sort of buffer that can be turned on? Have not tried turning wifi off yet noticing that many others have not seen any improvement. Seems to defeat the purpose of the project a bit if having to get an additional Bluetooth dongle is the solution. |
Sound cuts out or skips every 30 seconds No problem when I am using iPhone 6S |
Hello, Stuttering issues on the Raspberry Pi 3 are related to a known problem with the BT/WiFi chip. Both the chip manufacturer (Cypress) and the Raspberry Pi Foundation have acknowledged this but unfortunately it does not seem to be a high priority task for them (and I asume it's less likely to happen since the Pi 4 came out and does not have this problem). The current "workaround" is to use a bluetooth usb dongle and disable the Pi's internal bluetooth, as long as the bluetooth dongle gets assigned the device name We realize having to buy a bluetooth adapter for a brand new Raspberry Pi is not an optimal solution so we've reached out to the foundation to see if there is anything we can do to help; however I don't anticipate a resolution to this problem anytime soon. In case anyone is curious, here are the relevant GitHub issues:
For future reference, here is the typical log output you get when experiencing this issue:
|
Hi everybody, I really spend a lot of time trying to figure out the reason for my stuttering audio (with wifi off) while a working solution for my issue has already been released years ago: reducing the baudrate to 460800. (I was always thinking about increasing it...) See original post here: raspberrypi/linux#2264 (comment) What to do: Following additional information:
Originally posted by @docgloucester in nicokaiser/rpi-audio-receiver#38 (comment) |
hi @damaev , thanks for your contribution! I just want to add that some time ago I tested the solution you propose and I had mixed results, it did make the stuttering less noticeable on one of my devices, but had no impact on another. If enough people report that it provides a noticeable benefit we definitely should consider patching it or at least mentioning it on the |
[tmigone] This issue has attached support thread https://jel.ly.fish/#/24fa6e02-fed3-4795-985d-e852d76448ba |
[nazrhom] This issue has attached support thread https://jel.ly.fish/#/04d90a91-8eaf-413f-b689-88417a993d40 |
Hi, been looking at this issue for a little while now and downgrading to balenaOS v2.38.0+rev1 fixed my bluetooth issues on the RPi3. Obviously a temporary fix but hopefully it helps someone identify what in the following updates broke bluetooth on the RPi3 (perhaps something that got added with RPi4 support). Hope it helps, original post https://forums.balena.io/t/balenasound-blueooth-audio-on-raspberry-pi-3-sound-skipping-dropping/40894/40?u=cdl |
I concur and have had the same experience as Daniol71. Bluetooth performance is much better after reverting to balenaOS v2.38.0+rev1. Though sometimes packets still do drop in an annoying manner, I can't get through a single tune without being irked by it. It can't be understated that balenaOS v2.38.0+rev1 is still much more usable, so something has definitely went wrong in later versions. If a bluetooth adapter is required, and it seems like it is to get a baseline usable experience, that should be noted in the README.md of the repository. Here's a typical log from
|
Scratch that. It seems that it has randomly recovered, as if it has warmed up and is no longer dropping packets. Quite odd. The kernel log is not reporting any undervoltage via The power supply I'm using is an older model of this. Perhaps something fishy is going on with regards to power delivery and all these "smart charging" features. I'll try with an official PSU at some point and report back. |
As things got better, they got worse, as can be expected from power issues. After some time there were consistent undervoltages reported via dmesg, as well as a lot of At the very top of the kernel log, at boot-time, there was a single undervoltage reported. This was not then reported continually until around 10-20 mins of usage. I should have saved the logs so this was evident, but did not do so. I've swapped this PSU out for a Motorola 2A PSU, not in any way official or validated for the Pi. Next I'm going to try a Xioami 3A PSU, one that I got with my Xiaomi Mi 9 if there are issues. |
Wow. I didn't expect to see such a difference between all these PSUs. I exposed each PSU to around 15 mins of testing using the same mobile device to stream audio via Bluetooth. Aukey 3A with "Smart Charging":
Motorola 2A PSU:
Motorola 3A PSU:
The 3A PSU seems to be providing me with a pretty much flawless experience. |
@MatthewCroughan what Pi are you using? |
After about 30 mins of playback, I just received a second burst of reassembly errors. Though this is not a problem, as I have lots of other equipment that has similar hickups and it is to be expected. It's performing better than my bluetooth earbuds for example
Interestingly, the udevd errors I've mentioned in #117 have also not yet ocurred when using the 3A PSU. |
@AlexProgrammerDE I'm using a Pi3 Model B V1.2 |
@MatthewCroughan that's some awesome investigative work! I too had no idea that the PSU was playing that much of a part here |
Quick update on this topic... |
In balenaSound 3.x this manifests as:
|
[tmigone] This issue has attached support thread https://jel.ly.fish/3e72fcb6-9265-4c2e-b6fc-ca2895451e79 |
After struggling all day to get this working on my Pi 3 B+.... I was receiving these issues and downgrade solved it... |
[klutchell] This issue has attached support thread https://jel.ly.fish/8d00d4e5-c146-472e-b2d7-9267b7180d58 |
I downgraded and it works better but I still have similar errors like the ones you mentioned:
When I disconnect and connect again to the device the issue is fixed temporarily but after a few seconds it fails again. |
[tmigone] This issue has attached support thread https://jel.ly.fish/0ecb5a6e-b6f9-45dc-b24b-45d6e4695ac7 |
Experiencing regular sound cutting off when using bluetooth project suggested here:
[https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/]
I added a new DEVICE CONFIGURATION variable, ‘RESIN_HOST_CONFIG_dtoverlay’ and set its value to ‘pi3-disable-wifi’ but this seems to have no effect - although I can no longer connect to the Pi 3 from the BalenaSound interface (because the wifi on my Pi 3 has been turned off, ironically) and so cannot change anything else now. Nor do I know how to turn wifi back on again since I can't PuTTY into it either...
Some discussion already here:https://forums.balena.io/t/balenasound-blueooth-audio-on-raspberry-pi-3-sound-skipping-dropping/40894/4
but I cannot connect via ethernet either. Device marked as 'Offline' by Balena web-interface.
Can anyone suggest a possible fix to this, please? I’m semi-competent with Pi but do need simple, clear instructions to guide me.
Without a fix this glitch is just too annoying to live with.
I would buy a dedicated bluetooth receiver for my stereo but I felt that re-purposing a Pi 3 would be more appropriate and allow me to stream via a DAC slound card that I am going to add to the Pi (if I can fix the sound issue).
Thanks in advance.
Nibbos
PS please don't ask for output files from the Pi since I am no longer able to communicate with it as a consequence of turning wifi off,
The text was updated successfully, but these errors were encountered: