I am unable to establish an ble connection between my Raspberrypi4B and Laptop. Configuration is as below:
Laptop: Ubuntu-20.04.2 LTS, bluez version: 5.53 Raspberrypi4B: Ubuntu-21.04 bluez version: 5.56
Bluetoothctl logs @Raspberrypi4B:
nagesh@nagesh-desktop:~$ sudo bluetoothctl [sudo] password for nagesh: Agent registered [CHG] Controller DC:A6:32:F2:CB:46 Pairable: yes [bluetooth]# info 6C:6A:77:48:40:08 Device 6C:6A:77:48:40:08 (public) Name: root1-Nitro-AN515-55 Alias: root1-Nitro-AN515-55 Class: 0x0000010c Icon: computer Paired: yes Trusted: no Blocked: no Connected: no LegacyPairing: no UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb) Modalias: usb:v1D6Bp0246d053A [bluetooth]# connect 6C:6A:77:48:40:08 Attempting to connect to 6C:6A:77:48:40:08 [CHG] Device 6C:6A:77:48:40:08 Connected: yes [CHG] Device 6C:6A:77:48:40:08 ServicesResolved: yes Failed to connect: org.bluez.Error.NotAvailable [CHG] Device 6C:6A:77:48:40:08 ServicesResolved: no [CHG] Device 6C:6A:77:48:40:08 Connected: no [bluetooth]#
btmon logs @Raspberrypi4B: as attached
I see in the btmon ouptut, always connection is terminated but no reason is present which specifies the cause for it.
Initially i was using Ubuntu 20.04.2 LTS on my Raspberrypi4b which i later upgraded to 21.04 but still no luck. Couple of posts pointed to bug in bluez which was pretty old and i am assuming would have already fixed in the bluez 5.56 version.
Can someone help me in resolving this issue?