GowthamP
Posts: 8
Joined: Thu Dec 15, 2016 5:38 am

Issue:Bluetooth connectivity in Embedded LINUX from Yocto

Wed Dec 28, 2016 2:00 pm

Hi I have been trying to connect my raspberry pi 3 model B with a bluetooth headset(BS19C).
The raspberry pi 3 has the image which was generated from the following steps ( bitbake rpi-basic-image )

git clone -b krogoth git://git.yoctoproject.org/poky
git clone -b krogoth git://git.openembedded.org/meta-openembedded
git clone -b krogoth git://git.yoctoproject.org/meta-raspberrypi

Updated conf/local.conf as below:
DISTRO_FEATURES_append += " bluez5 bluetooth wifi systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"

I have Bluez 5.43 version preinstalled in my image
I am able to pair and trust with any bluetooth device.
But my problem is I am not able to connect to the target bluetooth headset or any bluetooth device with my Raspberry pi 3.
I am getting Failed to connect: org.bluez.Error.Failed.

When I give systemctl status bluetooth
I am able to see the error mentioning "a2dp-source profile connect failed for 90:1C:C5:94:A0:CF Protocol not available"

Does it need any further bluetooth packages like pulseaudio for getting the required protocol or is there any other package that I should append to the above image?

User avatar
Douglas6
Posts: 4346
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Issue:Bluetooth connectivity in Embedded LINUX from Yoct

Wed Dec 28, 2016 2:50 pm

Yes, you'll need PulseAudio and pulseaudio-module-bluetooth. Installinging those should be sufficient for an A2DP connection (one-way audio streaming). For HSP/HFP, more needs doing, but I don't know what.

GowthamP
Posts: 8
Joined: Thu Dec 15, 2016 5:38 am

Re: Issue:Bluetooth connectivity in Embedded LINUX from Yoct

Fri Dec 30, 2016 10:11 am

Thanks for the reply.
I tried to include pulseaudio package in my image(bitbake rpi-basic-image which I have specified before).
But the pulseaudio package is not being built in the image.i.e pulseaudio is not getting into rootfs

conf/local.conf

MACHINE = "raspberrypi3"
DISTRO_FEATURES_append += " bluez5 bluetooth wifi systemd pulseaudio"
IMAGE_INSTALL_append += " linux-firmware-brcm43430 bluez5 i2c-tools hostapd dhcp-server iptables wpa-supplicant wiringpi rpio rpi-gpio pulseaudio"
VIRTUAL-RUNTIME_init_manager = "systemd"

Do we need to add/update any other configuration file to integrate pulseaudio in my image?

User avatar
Douglas6
Posts: 4346
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Issue:Bluetooth connectivity in Embedded LINUX from Yoct

Fri Dec 30, 2016 1:15 pm

I'm afraid I'm not familiar with 'Yocto' or 'bitbake'.

SherifOmran
Posts: 10
Joined: Thu Jan 17, 2013 6:08 am

Re: Issue:Bluetooth connectivity in Embedded LINUX from Yocto

Wed Mar 28, 2018 6:33 am

hi
it is not called pulseaudio but pulseaudio-server instead, this is sufficient to install the pulseaudio, but then you need a step by step configuration
see this link for configuration details https://rudd-o.com/linux-and-free-softw ... your-users

Return to “Other”

Who is online

Users browsing this forum: No registered users and 5 guests