All of lore.kernel.org
 help / color / mirror / Atom feed
* bluetooth headset and ofono
       [not found] <1422877911.2744.10.camel@tkkaskin-mobl3.ger.corp.intel.com>
@ 2015-02-02 13:34 ` Georg Chini
  2015-02-02 15:19   ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Georg Chini @ 2015-02-02 13:34 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2403 bytes --]

Hello,

can someone help me with the problem below? Is ofono supposed
to expose an audio card when a headset is connected? If so, could
you explain how this happens?
I am not using SELinux and have ofono and pulse compiled from a
recent source. The rest of the system is Debian unstable witch ships
Bluez version 5.23.

If this is not the right place to ask such questions please tell me, I
never received any response to my previous mails.

Regards
              Georg

On 02.02.2015 12:51, Tanu Kaskinen wrote:
> On Sun, 2015-02-01 at 16:26 +0100, Georg Chini wrote:
>> Hello,
>>
>> I am still fighting to get my bluetooth headset working properly
>> with the ofono backend. I cannot get HFP to work with pulse.
>>
>> When I run ofonod and phonesim and switch on my headset
>> it seems to connect fine. A card turns up in pulseaudio but the
>> HFP profile is not available there. Trying to switch to the profile
>> leads to "not connected" messages in the log.
>> In phonesim I can simulate a call. If I do so, I get a ring in the
>> headset and can pick up the call. I am not sure if there is any
>> audio, I hear silence. If I am playing back with the a2dp_sink
>> profile at the same time, the a2dp audio is muted (but continues
>> playing).
>>
>> Looking at the code I wonder if the HFP profile of a headset can
>> ever get available. The ofono backend listens for "CardAdded" or
>> "CardRemoved" DBUS-messages, but it seems that the "CardAdded"
>> signal is never emitted by ofono when a headset connects.
>> There is only a call to the associated function when a phone
>> connects and nowhere else in the code.
>> Or is there another way pulse is notified that the profile is available?
>> Did someone get it working and can tell me what I am doing wrong?
> Last time I tried I think I had a similar problem (the CardAdded signal
> was never sent). On the BlueZ mailing list I was instructed to disable
> SELinux. I did that, but then I got distracted by something else, and I
> never continued my efforts of getting PulseAudio to work with oFono on
> my machine.
>
> If you're using SELinux, and you're compiling some of the stack
> (PulseAudio, oFono, BlueZ) yourself, SELinux might be your problem. Try
> disabling it. (I don't remember the exact command to do that, but
> hopefully your favorite search engine will help you with that.)
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bluetooth headset and ofono
  2015-02-02 13:34 ` bluetooth headset and ofono Georg Chini
@ 2015-02-02 15:19   ` Denis Kenzior
  2015-02-02 15:37     ` Georg Chini
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Kenzior @ 2015-02-02 15:19 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2196 bytes --]

Hi Georg,

On 02/02/2015 07:34 AM, Georg Chini wrote:
> Hello,
>
> can someone help me with the problem below? Is ofono supposed
> to expose an audio card when a headset is connected? If so, could
> you explain how this happens?
> I am not using SELinux and have ofono and pulse compiled from a
> recent source. The rest of the system is Debian unstable witch ships
> Bluez version 5.23.

I have no idea what SELinux would have to do with anything...

>
> If this is not the right place to ask such questions please tell me, I
> never received any response to my previous mails.
>
> Regards
>               Georg
>
> On 02.02.2015 12:51, Tanu Kaskinen wrote:
>> On Sun, 2015-02-01 at 16:26 +0100, Georg Chini wrote:
>>> Hello,
>>>
>>> I am still fighting to get my bluetooth headset working properly
>>> with the ofono backend. I cannot get HFP to work with pulse.
>>>
>>> When I run ofonod and phonesim and switch on my headset
>>> it seems to connect fine. A card turns up in pulseaudio but the

What exactly are you trying to do? Phonesim can only simulate modem 
signaling.  It will _not_ generate audio.  I should also point out that 
oFono does not support audio for HFP AG role with BlueZ 5.

Only HFP Handsfree role with BlueZ5/PulseAudio is supported.

>>> HFP profile is not available there. Trying to switch to the profile
>>> leads to "not connected" messages in the log.
>>> In phonesim I can simulate a call. If I do so, I get a ring in the
>>> headset and can pick up the call. I am not sure if there is any
>>> audio, I hear silence. If I am playing back with the a2dp_sink
>>> profile at the same time, the a2dp audio is muted (but continues
>>> playing).
>>>
>>> Looking at the code I wonder if the HFP profile of a headset can
>>> ever get available. The ofono backend listens for "CardAdded" or
>>> "CardRemoved" DBUS-messages, but it seems that the "CardAdded"
>>> signal is never emitted by ofono when a headset connects.
>>> There is only a call to the associated function when a phone
>>> connects and nowhere else in the code.

Yes, as I said previously, what you're trying to do is not supported.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bluetooth headset and ofono
  2015-02-02 15:19   ` Denis Kenzior
@ 2015-02-02 15:37     ` Georg Chini
  0 siblings, 0 replies; 4+ messages in thread
From: Georg Chini @ 2015-02-02 15:37 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2421 bytes --]

On 02.02.2015 16:19, Denis Kenzior wrote:
> Hi Georg,
>
> On 02/02/2015 07:34 AM, Georg Chini wrote:
>> Hello,
>>
>> can someone help me with the problem below? Is ofono supposed
>> to expose an audio card when a headset is connected? If so, could
>> you explain how this happens?
>> I am not using SELinux and have ofono and pulse compiled from a
>> recent source. The rest of the system is Debian unstable witch ships
>> Bluez version 5.23.
>
> I have no idea what SELinux would have to do with anything...
>
>>
>> If this is not the right place to ask such questions please tell me, I
>> never received any response to my previous mails.
>>
>> Regards
>>               Georg
>>
>> On 02.02.2015 12:51, Tanu Kaskinen wrote:
>>> On Sun, 2015-02-01 at 16:26 +0100, Georg Chini wrote:
>>>> Hello,
>>>>
>>>> I am still fighting to get my bluetooth headset working properly
>>>> with the ofono backend. I cannot get HFP to work with pulse.
>>>>
>>>> When I run ofonod and phonesim and switch on my headset
>>>> it seems to connect fine. A card turns up in pulseaudio but the
>
> What exactly are you trying to do? Phonesim can only simulate modem 
> signaling.  It will _not_ generate audio.  I should also point out 
> that oFono does not support audio for HFP AG role with BlueZ 5.
>
> Only HFP Handsfree role with BlueZ5/PulseAudio is supported.
>
>>>> HFP profile is not available there. Trying to switch to the profile
>>>> leads to "not connected" messages in the log.
>>>> In phonesim I can simulate a call. If I do so, I get a ring in the
>>>> headset and can pick up the call. I am not sure if there is any
>>>> audio, I hear silence. If I am playing back with the a2dp_sink
>>>> profile at the same time, the a2dp audio is muted (but continues
>>>> playing).
>>>>
>>>> Looking at the code I wonder if the HFP profile of a headset can
>>>> ever get available. The ofono backend listens for "CardAdded" or
>>>> "CardRemoved" DBUS-messages, but it seems that the "CardAdded"
>>>> signal is never emitted by ofono when a headset connects.
>>>> There is only a call to the associated function when a phone
>>>> connects and nowhere else in the code.
>
> Yes, as I said previously, what you're trying to do is not supported.
>
> Regards,
> -Denis
Hello Denis,

thanks a lot for the information! That was what I was looking for.

Regards
              Georg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Bluetooth headset and ofono
@ 2015-01-01 21:36 Georg Chini
  0 siblings, 0 replies; 4+ messages in thread
From: Georg Chini @ 2015-01-01 21:36 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1746 bytes --]

Hello,

I have trouble getting my bluetooth headset to work with ofono and 
pulseaudio.
My mobile phones connect without problems and work fine.

First, I do not have a modem in my system, so I installed phonesim. 
Bluez Version
is 5.23 (Debian unstable), pulseaudio and ofono are compiled from 
current git.
When I run phonesim and power on the modem I see that UUID 0x111f is 
available.
When I power on my headset (which is already paired and trusted and HSP 
works
OK with the pulseaudio native backend) it is connected, but I cannot use 
the HFP
profile. Log messages from ofono are:

plugins/hfp_ag_bluez5.c:profile_new_connection() Profile handler 
NewConnection
plugins/hfp_ag_bluez5.c:profile_new_connection() 
/org/bluez/hci0/dev_0C_E0_E4_31_23_2D
plugins/hfp_ag_bluez5.c:profile_new_connection() Picked modem 0x1d64640 
for emulator
src/emulator.c:ofono_emulator_create() modem: 0x1d64640, type: 1
src/emulator.c:ofono_emulator_register() 0x1d52220, 14

And when I disconnect the headset, I get:

src/emulator.c:emulator_disconnect() 0x1d52220
src/emulator.c:emulator_unregister() 0x1d52220
src/emulator.c:emulator_remove() atom: 0x1d669c0
plugins/hfp_ag_bluez5.c:io_hup_cb() Remove 
/org/bluez/hci0/dev_0C_E0_E4_31_23_2D
plugins/hfp_ag_bluez5.c:connection_destroy() fd 15

I see no D-Bus messages at all, I would expect something similar to the 
messages
I get when I connect my mobile. Headset is a Plantronics Backbeat Pro.

In pulseaudio the headset turns up, but only the a2dp profile is 
useable. The a2dp profile
is connected after HFP. When I try to switch to HFP, pulsaudio says the 
HFP profile is not
connected.

Any idea what I am doing wrong?

Regards
              Georg

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-02 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1422877911.2744.10.camel@tkkaskin-mobl3.ger.corp.intel.com>
2015-02-02 13:34 ` bluetooth headset and ofono Georg Chini
2015-02-02 15:19   ` Denis Kenzior
2015-02-02 15:37     ` Georg Chini
2015-01-01 21:36 Bluetooth " Georg Chini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.