Can not connect to BLE device on raspberry pi (gatttool/bluetoothctl)

1.2k Views Asked by At

like the title says, i am not able to connect to a le device on my raspberry pi 3. I tried: - via bluetoothctl i get an AutenthicationFailure - via gatttool i get connection refused (111)

I searched a lot for a solution and already tried (made sure that): - btmgmt le up - reinstalling bluez/bluez to the newest version - use of "-t random" when using gatttool

And know i really have no idea what to do next.

What might be important: uname -r = 4.19.58-v7+ bluetoothctl -v = 5.50 Using the Android App nRF Connect the connection to the le device works fine.

Can somebody help me please?

Thanks in advance, Magda

1

There are 1 best solutions below

3
On

It looks like your device needs to be bonded and Bluez fails to successfully bond...

I have the same issue with several devices that need bonding. Bluez can apparently only deal with some variants of bonding but certainly not all. On iOS and Android I have no issues at all with those devices...

Unless you fancy digging into Bluez source code and fixing the issue yourself, I think you can only wait for some Bluez update to fix the issue...