-
Notifications
You must be signed in to change notification settings - Fork 311
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
Not reliable connection to BLE device on RPI4: different command being used LE Create Connection vs LE Extended Create Connection #1728
Comments
Interesting finding. Will have to look into it more. A quick web search comes up with some similar cases:
What commands do you use in |
In bluetoothctl console I do: |
Thanks. The difference in Bleak is that it does the equivalent of: [bluetooth]# menu scan
[bluetooth]# transport le
[bluetooth]# back before |
Hi everyone I have been trying to use this library on a RPI4 to connect to a BLE device, but the connection is not reliable, as a lot of other issues have mentioned, it needs a lot of attempts to connect.
The thing is that when I use bluetoothctl command prompt and use the connect {MAC} command it always connects in the first attempt. So this lead me to believe that it is not a problem with the hardware but with the implementation.
I have captured with btmon the logs of the different ways a connection is stablished using this library and when a connection is stablished with bluetoothctl and I have seen that the commands used are different:
Connection with BLEAK it uses the LE Create Connection command. It fails and the device disconnects
Connection with bluetoothctl connect command it uses the LE Extended Create Connection command and it connects
Do you think this might be causing the connection fail issues?
Best regards
The text was updated successfully, but these errors were encountered: