I have got this issues on amlogic s922x, raspberry pi5 (current LibreElec).
I have got this issues on amlogic s922x - pip3 install (current armbian Ubuntu builds).
On Raspbian debian (bluez-5.66, kernel 6.6.y) it works normal.
LibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 # uname -a
Linux LibreELEC 6.9.5 #1 SMP PREEMPT Sun Jun 23 21:17:04 UTC 2024 aarch64 GNU/Linux
LibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 # ls /lib | grep blue
bluetooth
bluez
libbluetooth.so
libbluetooth.so.3
libbluetooth.so.3.19.14
LibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 # python btle.py 00:09:34:b2:ca:2b public
00002a00-0000-1000-8000-00805f9b34fb
Connecting to: 00:09:34:b2:ca:2b, address type: public
-btle- Running /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
-btle- Sent: conn 00:09:34:b2:ca:2b public
-btle- Got: # bluepy3-helper.c version undefined built at 16:25:38 on Aug 5 2024
-btle- Got: rsp=$stat; state=$tryconn; dst=00:09:34:b2:ca:2b; mtu=h0; sec=low
-btle- Got: rsp=$stat; state=$disc; mtu=h0; sec=low
-btle- Stopping /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
*** -btle- Failed to connect. (5)
-btle- Running /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
-btle- Sent: conn 00:09:34:b2:ca:2b public
-btle- Got: # bluepy3-helper.c version undefined built at 16:25:38 on Aug 5 2024
-btle- Got: rsp=$stat; state=$tryconn; dst=00:09:34:b2:ca:2b; mtu=h0; sec=low
-btle- Got: rsp=$stat; state=$disc; mtu=h0; sec=low
-btle- Stopping /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
*** -btle- Failed to connect. (4)
-btle- Running /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
-btle- Sent: conn 00:09:34:b2:ca:2b public
-btle- Got: # bluepy3-helper.c version undefined built at 16:25:38 on Aug 5 2024
-btle- Got: rsp=$stat; state=$tryconn; dst=00:09:34:b2:ca:2b; mtu=h0; sec=low
-btle- Got: rsp=$stat; state=$disc; mtu=h0; sec=low
-btle- Stopping /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
*** -btle- Failed to connect. (3)
-btle- Running /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
-btle- Sent: conn 00:09:34:b2:ca:2b public
-btle- Got: # bluepy3-helper.c version undefined built at 16:25:38 on Aug 5 2024
-btle- Got: rsp=$stat; state=$tryconn; dst=00:09:34:b2:ca:2b; mtu=h0; sec=low
-btle- Got: rsp=$stat; state=$disc; mtu=h0; sec=low
-btle- Stopping /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
*** -btle- Failed to connect. (2)
-btle- Running /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
-btle- Sent: conn 00:09:34:b2:ca:2b public
-btle- Got: # bluepy3-helper.c version undefined built at 16:25:38 on Aug 5 2024
-btle- Got: rsp=$stat; state=$tryconn; dst=00:09:34:b2:ca:2b; mtu=h0; sec=low
-btle- Got: rsp=$stat; state=$disc; mtu=h0; sec=low
-btle- Stopping /storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/bluepy3-helper
*** -btle- Failed to connect. (1)
Traceback (most recent call last):
File "/storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/btle.py", line 1076, in <module>
conn = Peripheral(my_device_address)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/btle.py", line 625, in __init__
self._connect(addr, addrType, iface, timeout)
File "/storage/.kodi/addons/script.module.bluepy3/lib/bluepy3/btle.py", line 710, in _connect
raise BTLEConnectError(
BTLEConnectError: (btle) Failed to connect to peripheral 00:09:34:b2:ca:2b, addr type: public, interface None, timeout=32.1
LibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 #
LibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 #
LibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 #
LibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 # hcitool lescan
LE Scan ...
00:09:34:B2:CA:2B DM Remote
00:09:34:B2:CA:2B DM Remote Advanced
00:09:34:B2:CA:2B DM Remote
00:09:34:B2:CA:2B DM Remote Advanced
^CLibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 # bluetoothctl
[bluetooth]# scan le
[bluetooth]# SetDiscoveryFilter success
[bluetooth]# hci0 type 6 discovering on
[bluetooth]# Discovery started
[bluetooth]# [CHG] Controller 43:54:A2:00:1F:AC Discovering: yes
[bluetooth]# [NEW] Device 00:09:34:B2:CA:2B DM Remote Advanced
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B RSSI: 0xffffffb4 (-76)
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B RSSI: 0xffffffb1 (-79)
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B RSSI: 0xffffffaa (-86)
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B RSSI: 0xffffffac (-84)
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B RSSI: 0xffffffb4 (-76)
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B RSSI: 0xffffffaf (-81)
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B ManufacturerData.Key: 0x06c4 (1732)
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B ManufacturerData.Value:
[bluetooth]# 00 00 00 00 00 00 ......
[CHG] Device 00:09:34:B2:CA:2B RSSI: 0xffffffb0 (-80)
[CHG] Device 00:09:34:B2:CA:2B RSSI: 0xffffffae (-82)
[bluetooth]# scan off
[bluetooth]# hci0 type 6 discovering off
[bluetooth]# Discovery stopped
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B RSSI is nil
[bluet00:09:34:B2:CA:2B9:34:B2:CA:2B
[bluetooth]# [CHG] Device 00:09:34:B2:CA:2B Trusted: yes
[bluetooth]# Changing 00:09:34:B2:CA:2B trust succeeded
[blue00:09:34:B2:CA:2B9:34:B2:CA:2B
Attempting to pair with 00:09:34:B2:CA:2B
[bluetooth]# hci0 00:09:34:B2:CA:2B type LE Public connected eir_len 30
[CHG] Device 00:09:34:B2:CA:2B Connected: yes
[DM Remote Advanced]# hci0 00:09:34:B2:CA:2B type LE Public disconnected with reason 1
[DM Remote Advanced]# Failed to pair: org.bluez.Error.AuthenticationTimeout
[CHG] Device 00:09:34:B2:CA:2B Connected: no
[bluetooth]#
LibreELEC:~/.kodi/addons/script.module.bluepy3/lib/bluepy3 # dmesg | grep Bl
[ 0.300044] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 8.249019] Bluetooth: Core ver 2.22
[ 8.249173] Bluetooth: HCI device and connection manager initialized
[ 8.249476] Bluetooth: HCI socket layer initialized
[ 8.249494] Bluetooth: L2CAP socket layer initialized
[ 8.249845] Bluetooth: SCO socket layer initialized
[ 8.487391] Bluetooth: HCI UART driver ver 2.3
[ 8.487417] Bluetooth: HCI UART protocol H4 registered
[ 8.487540] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 8.487791] Bluetooth: HCI UART protocol Broadcom registered
[ 8.487840] Bluetooth: HCI UART protocol QCA registered
[ 8.886316] Bluetooth: hci0: BCM: chip id 101
[ 8.887349] Bluetooth: hci0: BCM: features 0x2f
[ 8.888876] Bluetooth: hci0: BCM4354A2
[ 8.888889] Bluetooth: hci0: BCM4356A2 (001.003.015) build 0000
[ 8.937416] Bluetooth: hci0: BCM4356A2 'brcm/BCM4356A2.hcd' Patch
[ 9.838655] Bluetooth: hci0: BCM: features 0x2f
[ 9.840383] Bluetooth: hci0: BCM4356 37.4MHz AMPAK AP6356-0055
[ 9.840407] Bluetooth: hci0: BCM4356A2 (001.003.015) build 0266
[ 9.861862] Bluetooth: MGMT ver 1.22