You are not logged in.

#1 2020-07-06 11:22:20

backes
Member
Registered: 2014-07-12
Posts: 9

Bluetooth Headset microphone not working with ofondo

Hello,

I can't get the microphone to work on my "Bose Quiet comfort 35 II". Connecting and listening works fine. I use pulseaudio, bluez and pulseaudio-modules-bt-git .

pacmd list shows me that HSP/HFP is sometimes available, sometimes unknown:

	profiles:
		headset_head_unit: Headset Head Unit (HSP/HFP) (priority 30, available: unknown)
		a2dp_sink_sbc: High Fidelity Playback (A2DP Sink: SBC) (priority 40, available: unknown)
		a2dp_sink_aac: High Fidelity Playback (A2DP Sink: AAC) (priority 40, available: yes)

I can always switch to the profile, even if it shows as unknown. When I switch to "headset_head_unit" then the audio stops playing and I hear the microphone input inside my headset, however no application (such as audacity or firefox) can actually record the audio.

I am pretty sure that HSP and HFP are supported, because with "bluetoothctl info" I get:

	UUID: Vendor specific           (00000000-deca-fade-deca-deafdecacaff)
	UUID: Serial Port               (00001101-0000-1000-8000-00805f9b34fb)
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	UUID: Unknown                   (0000fe03-0000-1000-8000-00805f9b34fb)
	UUID: Bose Corporation          (0000febe-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (81c2e72a-0591-443e-a1ff-05f988593351)
        ...

What I then did was to look at journalctl with "$ journalctl -b --user-unit=pulseaudio" and I found the following:

pulseaudio[98414]: E: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files

After this, I followed the documentation again and installed ofono with phonesim. Here I noticed some issues, after powering the modem with

dbus-send --print-reply --system --dest=org.ofono /phonesim org.ofono.Modem.SetProperty string:"Powered" variant:boolean:true
method return time=1594034241.257428 sender=:1.1570 -> destination=:1.1571 serial=37 reply_serial=2

I get the following error

ofonod[162712]: Requested file structure differs from SIM: 6fb7

and after activating it I get the error

ofonod[162712]: Can't read CGACT contexts.

I don't know how to advance from here, as I don't have enough knowledge about bluetooth, and using ofono and phonesim really goes over my head.

I did not touch any phonesim config, and my ofono config is:

[phonesim]
Address=127.0.0.1
Driver=phonesim
Port=12345

How should I proceed from here?

Offline

Board footer

Powered by FluxBB