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
Choppy bluetooth audio #38
Comments
See "Limitations" in the README.md:
Depending on your Bluetooth connection (and maybe on some other factors) this may improve the connection, however the internal Bluetooth remains crappy and using an external USB dongle really helps. |
As stated in the Edit line at the end of the comment, Wi-Fi is disabled by default on my RPi. Is it really only due to the crappy nature of the RPi embedded Bluetooth equipement ? Wouldn't you see anything to do in the Bluetooth UART configuration for instance ? |
This is discussed in raspberrypi/firmware#1150 (among many other places). It may be related to high system load (whatever "high" means, maybe decoding A2DP packages and feeding built in sound card is enough), but after fiddling around many days, I decided to add a dedicated Bluetooth dongle and all those problems disappeared, and since I want to have high quality audio I also replaced the internal sound card by a I2S module (which is also worth it). I did not try if the Raspberry Pi 4's chip does better, neither did I dive into UART configuration... HiFiBerry OS does not even try to use BT on the Pi 3: https://github.com/hifiberry/hifiberry-os/blob/master/buildroot/package/btspeaker/checkpi.sh (Which also disables BT on the Pi 3 with dedicated USB dongles, but that's another story). |
Alright, that github comment sums up the problem pretty well : raspberrypi/linux#2264 (comment) "The rev 1.2 Pi3B lacks the flow control signals to the Bluetooth modem (we ran out of pins), but the rev 1.3 board drops the BT PCM interface and hooks up the flow control. I think what you are seeing is occasional data loss when the FIFOs overflow, something which is hard to avoid in all circumstances. You may be able to lessen the problem by reducing the baudrate on the modem - try editing /usr/bin/btuart, replacing the 921600 with 460800 and rebooting." It seems the 3B+ has the same problem described here for the first revisions of the 3B. Reducing the baudrate as explained did the trick for me :) |
Good to know that there is this baudrate trick! |
Thank you very much for your efforts and your time 👍 |
For anyone landing here, I can confirm that the Edit: But keep in mind that this trick turns off wifi during bluetooth connection! |
I can confirm this trick works for some environments, however in general (especially with Bluetooth distances >1m or when there are many Wi-Fi networks around) the Raspberry Pi internal Bluetooth module is not capable enough. |
Hi,
I managed to make my Raspberry Pi 3B+ (running latest stable Raspbian) discoverable on Bluetooth and to have an audio stream to it.
However, the audio is very choppy and quite poor.
Moreover, I'm getting these lines in loop in journalctl when there's audio streamed to it.
Any idea of how to solve that ?
Many thanks in advance
Edit : I had wlan0 pulled down by default
The text was updated successfully, but these errors were encountered: