2

I have built an yocto poky image with bitbake and it doesn't seem to recognise the bluetooth device/controller.

I have seen this issue and doesn't help.

My local.conf has extra for distro features

DISTRO_FEATURES_append += " systemd bluez5 bluetooth wifi"
VIRTUAL-RUNTIME_init_manager = "systemd"

My image file also IMAGE_INSTALL s

pi-bluetooth \
bluez5 \

I have also made sure the config.txt does not apply the

   dtoverlay=pi3-disable-bt

I can successfully systemctl start bluetooth and it starts running. When I check status its active running.

But if I check hciconfig or bluetoothctl it shows no devices or controller available.

I have also killed rfkill unblock bluetooth

I must be missing something. Any ideas on how to get the device recognised ?

1

The issue ended up being around the mis-configuration of the image resulting with incorrect setup serial port connecting to the bluetooth device.

Roughly,

I has IMAGE_INSTALL as

bluez5
udev-rules-rpi 

I used local.conf as

DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""

Make sure "sysvinit" is not defined to run elsewhere.

If trying to debug make sure systemctl hciuart serivce is running rather then focusing on systemctl bluetooth service. The hciuart service is required to register the device first.

There was nothing wrong with install of Bluez; so I wouldn't touch that. It should install 5.5 with latest kernel...

Current version used..

LINUX_VERSION = "4.19.69"

RPIFW_DATE = "20190830"

| improve this answer | |
0

Yes, BlueZ is not well documented and drivers don't seem to catch up raspbian version changes.

One thing you might try is to update to BlueZ 5.5

What is the status of `bluez`, and where is the man page?

.END

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.