-
Notifications
You must be signed in to change notification settings - Fork 13
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
BLE problems with latest bluez update #8
Comments
Have got some details - devices, version numbers, and logs of any kind? Running |
For comparison, I'm running with bluez 5.50-1.2~deb10u2+rpt1 on a 4B, connecting to a Microsoft Designer Mouse (definitely a BLE device) and it's working well. |
@pelwell The device is a Samsung Galaxy S21 5G and the connection is between the Helium Hotspot App and the raspi 4b which is running this codebase for the connection It works perfectly on a CM3+ with a bluetooth USB dongle (csr8510 chipset) but with the pi4 onboard BT it connects and within a second or two disconnects. Same happens with the advertising interval set to 152.5ms Bluez version:
Btmon trace:
|
From nRF Connect app on the phone, I get the following output. Non working pi 4b:
Working with csr8510 on cm3+:
|
The btmon trace shows that the device is disconnecting due to "Connection Timeout", about which the BT spec says:
This fits, because the timeout is set to 5s and there is a 5s gap in the btmon log.
|
@pelwell re increasing the timeout - can I just do that by:
It is currently set to 42 (420ms) but even setting it to 1000 (10s) does not seem to make any difference. Will get btmon trace with csr8510 and revert back later today What I don't understand is why the Pi4 Bluetooth would take in excess of 5 seconds to discover the services, when on the csr8510 this is done within 1.5seconds? |
Here is the btmon from working one: btmon csr8510
And this is the nRF connect output for the same... nrf connect csr8510
|
Even if I |
Closing because I think will have been fixed by the recent firmware updates - see #9. |
With the latest bluez update, the bluetooth will connect briefly and then within a few seconds will disconnect.
It seems to be similar to #3 and https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=254523&start=75 and RPi-Distro/firmware-nonfree#8
Rolling back seems to fix things
The text was updated successfully, but these errors were encountered: