Bluetooth HFP on the Raspberry Pi - bluetooth

i am trying to connect my raspi with a BT-Headset with the build in bluetooth. it is working with pulseaudio 5.0 and bluez 5.23.
But the thing is it just supports A2DP. i want to use it as a real Headset so i Need HFP. I read that bluez 5 doesnt Support this Profile anymore and with pulseaudio 5 and bluez 5.23 it wont work.
Now i got a bluetoothdongle with my Headset and if i am using the bluetoothdongle instead the buildin Bluetooth it is working. i can record Sound. But i get a better Audio Output with the build in (with dongle it is lagging) . Maybe it is because the dongle uses the hfp Profile directly and therefore the Audio ouput isnt that good anymore.
So i was wondering if this is gonna work with every Bluetoothdongle which supports the HFP/HSP Profile.
And my other question is how does pulseaudio and bluez work together. and how would the BT-dongle would work with pulseaudio together?
Bluez 4 supported hfp and hsp. pulseaudio 5 is backwards compatible so this would be an Option i think. does anyone has tried it?
thanks

Related

Bluetooth dongle BLED112 on Debian 10 is not working

I just randomly found a Bluegiga BLED112 Bluetooth dongle and I tried to connect it to my Debian 10 laptop as a basic dongle for Bluetooth audio outs.
Unfortunately I wasn't able to solve all the issues I had, starting from the fact that the device is not fully listed once used lsusb and just a mere ID number - namely ID 2458:0001 - pops out and bluetooth or bluez helps weren't successful either.
This given, I tried to follow several of the guides you can find online, also by running available scripts, but again nothing worked.
So if it's possible, what should I do in order to run such a dongle for the basic use I mentioned above - i.e. just for connecting my stereo speakers to my computer?
Thanks
The BlueGiga BLED112 is not a regular Bluetooth USB dongle. It gives you a virtual com port that can be used to access an API that in turn acts as a BLE device.
It is ment to be used for development of IOT solutions.
Also it does not support Bluetooth Classic, it only supports Bluetooth Low Energy.

Bluetooth Speaker support with Bluez 4.101

I would like to know if audio streaming using external bluetooth speaker is supported with bluez 4.101.
I have tried the same using bluez 5.43 on Raspberry Pi and it works well with bluetoothctl and aplay.
However,I could not find bluetoothctl in bluez 4.101 and on connecting with rfcomm command, I am unable to stream music even when the speaker is connected.
Finally, I need to bring in the streaming feature on OpenWRT platform, so it would be really helpful if anyone could provide any leads on this.

Bluetooth EarBuds with Mic for Voice Recognition On Raspberrypi 3

Please has anyone had success on using bluetooth earbuds with mic for voice recognition on the raspberrypi 3.Can't seem to get the pi to use the bluetooth earbuds as both input for the speech and output through the earbuds. Tried connecting using the inbuilt bluetooth on the pi 3. Any suggestions on how to go about this? Thanks
Unfortunately,I would have to believe the inbuilt bluetooth has some problems or doesn't support that yet. By using a bluetooth dongle I was able to set the active profile to HSP and it works well. Thanks to the detailed steps explained here http://youness.net/raspberry-pi/bluetooth-headset-raspberry-pi-3-ad2p-hsp .Minimal versions needed for HSP (A2DP included) are: Bluez 5 / PulseAudio 6. Thanks

Do i need Bluez when using a bluetooth dongle

i am new to Linux and Bluetooth. i know that the standard implementation of the bluetooth protocol stack is bluez. I know that alsa is not supporting bluez anymore and if you want to use audio over bluetooth, you need pulseaudio. so pulseaudio should support HSP/HFP since version 6 and bluez 5.x. Know i was wondering if i can connect a usb-dongle to my hardwareboard (raspberryPi) there is a serial connection to the board. is that right? so the Dongle has the BT-STack and you can use alsa audio over USB like an USB HEadset?
i hope someone can help me.
The answering this vast addressable question is not that easy. I have few hints which will help you to narrow down.
BlueZ is user layer stack to communicate or use the functionality of Linux Kernel Bluetooth subsystem and provides helpers to developers.
USB Dongle itself doesn't have any stack and I don't really understand your question in that sense. To brief, USB Bluetooth Dongle is just the hardware device with Bluetooth functionalities. To make it functional, you need Linux Kernel Bluetooth system support enabled and either you can directly make use of "socket" system calls to pair,connect etc., or use BlueZ to develop applications with API's
BlueZ itself doesn't provide API's for developers, instead it makes use of the DBus to provide methods, properties and signals with vast range functionalities. Check here
If you interested in Audio Playback using Bluetooth, then you should register your media player and audio sink with BlueZ with according media DBus Interfaces.
To add, I am currently developing a framework library to wrap the DBus functionality provided by BlueZ for friendly development of applications. Check this repo and it is currently in initial development phase.

How to receive raw bluetooth package on NAO robot

I want to receive ibeacon information on nao robot using Bluetooth adapter, and let naoqi use it.
I want to implement Linux Bluetooth tools such as hcidump to read raw Bluetooth package and extract ibeaon information.
However, I can't find a Practical solution to make it.
Can any one offer me a practical solution?
I'm maybe too late but, I tried to do exactly the same and it's impossible due to old nao linux kernel version 2.6
Bluez software support for Bluetooth low energy comes with version 5.0 and it need a linux kernel version >= 3.5
The Nau is Linux based, so it should support scanning for beacons using BlueZ, although you may need to install the package. Of course, the Nau will need a Bluetooth LE sensor, but you should be able to plug one in to its USB port.
Check out this guide for the Raspberry Pi. It should be applicable:
Can RaspberryPi with BLE Dongle detect iBeacons?

Resources