admin管理员组

文章数量:1410689

I want to send serial data with a BT05 serial Bluetooth LE device from a microcontroller to a Raspberry Pi 5 with Linux 6.6.51+rpt-rpi-2712. On the raspi I use the latest newest Python bleak version to handle this setup. The BT05 is not recognized by bleak.

On the raspi I can see the device with 'bluetoothctrl', it shows up as 'Device 4C:24:98:35:8F:48 BT05' as result of 'devices Connected'.

bluetoothctrl scan is on, sometimes I get things like

[CHG] Device 4C:24:98:35:8F:48 RSSI: -70', so I think the BT05 is 'advertising'

But for devices = await BleakScanner.discover() I get no results.

For if await client.is_connected(): I get

bleak.exc.BleakDeviceNotFoundError: Device with address 4C:24:98:35:8F:48 was not found.'

I run Python and bluetoothctl with sudo privileges

Why doesn't bleak find the device, is it a bleak specific problem?

How can I analyze what is missing in the in the bluetooth system, 'sudo systemctl restart bluetooth' does not help.

In 'bluetoothctl' I can use 'menu advertise' to configure the advertising of the BT05. I left it untouched, are there necessary changes?

本文标签: How can I hook a BT05 Bluetooth LE device to Python bleak on a raspberry PIStack Overflow