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
Raspberry Pi Zero 2 W - Stuttering sound over Bluetooth #33
Comments
|
Phil, I don't have direct experience with older Pi Zero W. With Pi Zero 2 W I had similar stuttering / choppy sound issues with a couple of firmware versions: I came across this issue using the Moode Audio aplication (better described here: https://moodeaudio.org/forum/showthread.php?tid=4937) and - following the suggestion of Moode forum users, I decided to dwelve into it.
I had no improvement using 1, 6 and 11 WiFi channels. |
More information:
Result: clear sound (not 100%, but perfectly usable). Looks like there is an interference issue with internal Bluetooth, as @pelwell suggested. About that tuning: does this require new firmware from Cypress / Infineon or (only) Raspberry Pi OS updates ? |
The relevant changes are actually to the "nvram" files - text files containing various settings - which means it should be easy to test a fix. Note that in my limited testing now I've not seen a problem with stuttering, but the WiFi performance was suspiciously lousy so it isn't really a fair test. This means that I have no real confidence that these changes will improve things, but it's a simple change and easy to revert so worth a try. I'm assuming from your comment above that your Zero 2 W is the 43430/1 variant, but the change is the same for both, just to different files:
The proposed change, which I think will be the same for both devices, is to append the following lines:
Obviously, reversion is simply a matter of deleting them. Give it a try and let me know how you get on. |
Update: with a different test setup I do see stuttering without the change and an improvement with it, but the improvement comes at the cost of a large reduction in throughput while there is Bluetooth traffic - unfortunately that is always going to be the case. |
Thank you, @pelwell. I followed your instructions and it looks solved. I don't know how to check the reduction in WiFi throughput, but - in my use case - there is enough left to stream Internet Radio or mp3s from local network, |
The addition of some Bluetooth coexistence parameters allows better sharing of bandwidth between Bluetooth and WiFi. See: #33
Thanks for the feedback. These coexistence parameters will be present in future releases. |
Are we absolutely certain that these lines are necessary accross the board with all Pi devices out there? I was searching for a way to fix my bluetooth audio issues on my Raspberry Pi-5 since the day i purchased it. Same kind of issues were also present with my Pi-4 (but less frequent). Pulsaudio or pipewire, all the same. Disabled wifi, still had issues. I then came up with the forum post that directed me to here. I checked my "relevant" file (for RPI-5 it is brcmfmac43455-sdio.txt). I found that the lines mentioned in this bug report (and one more line) was added to this file also, even though it is a different kind of chip on a different kind of Pi. The lines were:
As you can see, i have commented them out, just to see if it will change things for the better for me. It is too early to say but i am having very fewer and far in between bluetooth audio stutters or hiccups since i have commented them out. I will continue testing for a week and share my results. PS: I am on a 5ghz wifi connection. Haven't tried 2.4 ghz. But i assume these lines were added to make it possible for 2.4ghz wifi and bluetooth to coexist. But maybe, to make it happen, they somewhat "hamper" the bluetooth audio connections (or even slow down wifi in the process). I think this deserves some investigation. PS-2: My wifi connection speed might have also increased after commenting out those lines. I need more testing time to make sure though. |
I suspect there is an interference problem on Raspberry Pi Zero 2 W when using WiFi and Bluetooth.
I'm getting choppy / stuttering sounds when playing MP3s from my NAS and sending the output to an external Bluetooth speaker.
To replicate, I did the following:
sudo apt update && sudo apt upgrade -y
+ rebootsudo apt install pulseaudio-module-bluetooth
+ rebootsudo apt install mpg123
The text was updated successfully, but these errors were encountered: