[pulseaudio-discuss] Hsp profile available but not working

Tanu Kaskinen tanuk at iki.fi
Wed Nov 1 10:35:04 UTC 2017


On Tue, 2017-10-31 at 13:29 +0100, Paweł B wrote:
> Hi All.
> 
> I have a problem with hsp profile.
> 
> After connect to Philips WeCall Speaker profile headset_head_unit is
> available:

<snip>

> I set default sink and source.
> 
> After run ‘mplayer test.wav’ nothing is happens (there is no sound). In
> a2dp_sink profile everything works fine, but I need use microphone to
> record voice, so I need to use headset_head_unit.
> 
> I run hcidump:
> 
> [root at localhost ~]# hcidump -i hci1 -X
> 
> HCI sniffer - Bluetooth packet analyzer ver 2.5
> 
> device: hci1 snap_len: 1500 filter: 0xffffffff
> 
> < HCI Command: Exit Sniff Mode (0x02|0x0004) plen 2
> 
>     handle 13
> 
> > HCI Event: Command Status (0x0f) plen 4
> 
>     Exit Sniff Mode (0x02|0x0004) status 0x00 ncmd 1
> 
> > HCI Event: Mode Change (0x14) plen 6
> 
>     status 0x00 handle 13 mode 0x00 interval 0
> 
>     Mode: Active
> 
> < HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17
> 
>     handle 13 voice setting 0x0060 ptype 0x003f
> 
> > HCI Event: Command Status (0x0f) plen 4
> 
>     Setup Synchronous Connection (0x01|0x0028) status 0x00 ncmd 1
> 
> > HCI Event: Synchronous Connect Complete (0x2c) plen 17
> 
>     status 0x00 handle 6 bdaddr 0C:A6:94:25:70:DE type eSCO
> 
>     Air mode: CVSD
> 
> *< SCO data: handle 6 flags 0x00 dlen 48    0000: 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00  ................    0010: 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00  ................    0020: 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00  ................< SCO data: handle 6 flags 0x00
> dlen 48    0000: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> ................    0010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> ................    0020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> ................*
> 
> < HCI Command: Disconnect (0x01|0x0006) plen 3
> 
>     handle 6 reason 0x13
> 
>     Reason: Remote User Terminated Connection
> 
> > HCI Event: Command Status (0x0f) plen 4
> 
>     Disconnect (0x01|0x0006) status 0x00 ncmd 1
> 
> > HCI Event: Disconn Complete (0x05) plen 4
> 
>     status 0x00 handle 6 reason 0x16
> 
>     Reason: Connection Terminated by Local Host

I'm not an expert on bluetooth protocol details, but it looks like the
speaker disconects itself quickly after setting up the SCO connection.
I don't know why it does that. You might get better debugging help from
the bluez developers.

There is one known case where a Broadcom (BCM) bluetooth adapter chip
requires special firmware for HSP. It's a different chip than yours,
but you could try to research this. If you find the required firmware
(or some other way to make HSP work), please add a comment on this bug:
https://bugs.freedesktop.org/show_bug.cgi?id=97064 . The "HSP problem:
the bluetooth sink and source are created, but no audio is being
transmitted" section on this wiki page is related:
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Bluetooth/#index8h3

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list