Replies: 3 comments 1 reply
-
BlueZ tends to disconnect when it receives unexpected responses while other OSes tend to be a bit more forgiving. Where you wrote "huh", indeed the device should not be sending this, but rather an MTU exchange response. If you can fix the firmware on the device, then you should be able to make it work with BlueZ. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Well, I take that back. The device being tested supports streaming at a fairly high bitrate, and during firmware development a GATTC_ExchangeMTUCmd() to the connecting device got stuck into the connection sequence on the device. Which, in BLE standard jargon means my device, the "server" side, is apparently a violation of the spec. Removing that fixes up bluez. Thanks for all who looked at this and responded. Sorry I wasted your time. |
Beta Was this translation helpful? Give feedback.
-
We have a custom device with several services that we can connect to using python and bleak from a client running on Windows 11 and MacOS Ventura. The same code fails when connecting from Ubunto 23.04. The relevant btmon dump shows this:
On the bleak client side, client.services is empty after the "with BleakClient( ... ) as self.client: line.
Does anyone have an idea why bluetooth connections work on everything but linux?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions