All of lore.kernel.org
 help / color / mirror / Atom feed
* [HELP Required]Routing Of SCO data to BT Host Speaker
@ 2011-03-11  5:26 milan.satpathy
  2011-03-11  7:21 ` Daniel Wagner
  0 siblings, 1 reply; 5+ messages in thread
From: milan.satpathy @ 2011-03-11  5:26 UTC (permalink / raw)
  To: ofono

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

Hi,

Recently I have been trying to use Ofono to write a Handsfree based application( Using C on Ubuntu 10.10).
I am able to connect(SLC) to the AG using Ofono. After connection I am also successful in dialing to another number.
Bluetoothd indicates status as "Playing" ( SCO connection successful) once the call is established.

Problem Faced:
----------------------
However, after accepting the call I am unable to hear any voice through the speaker.

Clarification Request:
-----------------------------
1. Do I need any specific settings / configurations to be able to hear the audio?
2.Or ,Do I need to make use of any available dbus methods / interfaces to enable the audio functionality?

Please guide me on this.

current config settings :

path : /etc/ofono/modem.conf  , /usr/local/etc/ofono/modem.conf

#[hfp]
Address=A8:7E:33:AF:23:A4
Driver=hfp

path :/etc/bluetooth/audio.conf

[General]
Enable=Gateway
AutoConnect=true
HFP=true
MaxConnected=1

Regards,
Milan


________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 9056 bytes --]

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

* Re: [HELP Required]Routing Of SCO data to BT Host Speaker
  2011-03-11  5:26 [HELP Required]Routing Of SCO data to BT Host Speaker milan.satpathy
@ 2011-03-11  7:21 ` Daniel Wagner
  2011-03-11 14:43   ` milan.satpathy
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Wagner @ 2011-03-11  7:21 UTC (permalink / raw)
  To: ofono

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

Hi Milan,

On Fri, Mar 11, 2011 at 10:56:34AM +0530, milan.satpathy(a)accenture.com wrote:
> Hi,
> 
> Recently I have been trying to use Ofono to write a Handsfree based application( Using C on Ubuntu 10.10).
> I am able to connect(SLC) to the AG using Ofono. After connection I am also successful in dialing to another number.
> Bluetoothd indicates status as "Playing" ( SCO connection successful) once the call is established.
> 
> Problem Faced:
> ----------------------
> However, after accepting the call I am unable to hear any voice through the speaker.

You might have to loop back the PulseAudio BT source and sink to your sound card, e.g.

pactl load-module module-loopback source="alsa_input.pci-0000_00_1b.0.analog-stereo" sink="bluez_sink.78_47_1D_44_34_10"
pactl load-module module-loopback source="bluez_source.78_47_1D_44_34_10" sink="alsa_output.pci-0000_00_1b.0.analog-stereo"

You have to do this within 5 seconds after the SCO connection has been
established otherwise PulseAudio will suspend (which leads to a BT
stream stop) the streams.

HTH,
daniel

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

* RE: [HELP Required]Routing Of SCO data to BT Host Speaker
  2011-03-11  7:21 ` Daniel Wagner
@ 2011-03-11 14:43   ` milan.satpathy
  2011-03-15 14:34     ` Andreas Hohn
  2011-03-17 14:21     ` Daniel Wagner
  0 siblings, 2 replies; 5+ messages in thread
From: milan.satpathy @ 2011-03-11 14:43 UTC (permalink / raw)
  To: ofono

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

Hi Daniel,

Thanks for the quick assistance.

I tried the same approach as suggested by you.

Steps:
------
1.$pacmd
2.$list-sources
( got 2 sources )

  name: <alsa_output.pci-0000_00_05.0.analog-stereo.monitor>

  (and)

  name: <alsa_input.pci-0000_00_05.0.analog-stereo>
3.$list-sinks
( got 1 sink )

name: <alsa_output.pci-0000_00_05.0.analog-stereo>

4.created a shell script "ofono.sh" with contents as below:
pactl load-module module-loopback source="alsa_input.pci-0000_00_05.0.analog-stereo" sink="bluez_sink.A8_7E_33_AF_23_A4"
pactl load-module module-loopback source="bluez_source.A8_7E_33_AF_23_A4" sink="alsa_output.pci-0000_00_05.0.analog-stereo"
(A8_7E_33_AF_23_A4 is the BT address of handset paired to the host)

5. Now I connect the host to the handset through HFP.
6.After SLC is established , I dial a number and establish a voice call.
7.As soon as the state is "Playing" ( SCO connected) , I run the "ofono.sh" ( as mentioned in step 4).

Result:
-------
I am getting the following errors:

Failure: Module initalization failed
Failure: Module initalization failed


Requesting Clarification
------------------------
1.I was wondering if any modification is required in pulseaudio configuration files to enable dynamic loading of module-loopback.( e.g "module-loading = yes" in /etc/pulse/daemon.conf ).Currently all settings are maintained as default.

2.Also, do I need to modify "SCORouting=PCM" in "audio.conf" file. (default is HCI)

It will be of great help to receive any further inputs regarding the above issue.

Best Regards,
Milan

-----Original Message-----
From: Daniel Wagner [mailto:wagi(a)monom.org]
Sent: Friday, March 11, 2011 12:52 PM
To: Satpathy, Milan
Cc: ofono(a)ofono.org
Subject: Re: [HELP Required]Routing Of SCO data to BT Host Speaker

Hi Milan,

On Fri, Mar 11, 2011 at 10:56:34AM +0530, milan.satpathy(a)accenture.com wrote:
> Hi,
>
> Recently I have been trying to use Ofono to write a Handsfree based application( Using C on Ubuntu 10.10).
> I am able to connect(SLC) to the AG using Ofono. After connection I am also successful in dialing to another number.
> Bluetoothd indicates status as "Playing" ( SCO connection successful) once the call is established.
>
> Problem Faced:
> ----------------------
> However, after accepting the call I am unable to hear any voice through the speaker.

You might have to loop back the PulseAudio BT source and sink to your sound card, e.g.

pactl load-module module-loopback source="alsa_input.pci-0000_00_1b.0.analog-stereo" sink="bluez_sink.78_47_1D_44_34_10"
pactl load-module module-loopback source="bluez_source.78_47_1D_44_34_10" sink="alsa_output.pci-0000_00_1b.0.analog-stereo"

You have to do this within 5 seconds after the SCO connection has been
established otherwise PulseAudio will suspend (which leads to a BT
stream stop) the streams.

HTH,
daniel


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

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

* RE: [HELP Required]Routing Of SCO data to BT Host Speaker
  2011-03-11 14:43   ` milan.satpathy
@ 2011-03-15 14:34     ` Andreas Hohn
  2011-03-17 14:21     ` Daniel Wagner
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Hohn @ 2011-03-15 14:34 UTC (permalink / raw)
  To: ofono

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

Hi Milan,

I'm not sure if you succeeded in the mean time. 

we had a similar issue when we used the Fedora pre-installed pulseaudio 
version.

When I downloaded and compiled the latest sources it wouked in our case. 

Regards,
Andreas
 


ofono-bounces(a)ofono.org wrote on 11.03.2011 15:43:59:

> Hi Daniel,
> 
> Thanks for the quick assistance.
> 
> I tried the same approach as suggested by you.
> 
> Steps:
> ------
> 1.$pacmd
> 2.$list-sources
> ( got 2 sources )
> 
>   name: <alsa_output.pci-0000_00_05.0.analog-stereo.monitor>
> 
>   (and)
> 
>   name: <alsa_input.pci-0000_00_05.0.analog-stereo>
> 3.$list-sinks
> ( got 1 sink )
> 
> name: <alsa_output.pci-0000_00_05.0.analog-stereo>
> 
> 4.created a shell script "ofono.sh" with contents as below:
> pactl load-module module-loopback source="alsa_input.pci-0000_00_05.
> 0.analog-stereo" sink="bluez_sink.A8_7E_33_AF_23_A4"
> pactl load-module module-loopback source="bluez_source.
> A8_7E_33_AF_23_A4" sink="alsa_output.pci-0000_00_05.0.analog-stereo"
> (A8_7E_33_AF_23_A4 is the BT address of handset paired to the host)
> 
> 5. Now I connect the host to the handset through HFP.
> 6.After SLC is established , I dial a number and establish a voice call.
> 7.As soon as the state is "Playing" ( SCO connected) , I run the 
> "ofono.sh" ( as mentioned in step 4).
> 
> Result:
> -------
> I am getting the following errors:
> 
> Failure: Module initalization failed
> Failure: Module initalization failed
> 
> 
> Requesting Clarification
> ------------------------
> 1.I was wondering if any modification is required in pulseaudio 
> configuration files to enable dynamic loading of module-loopback.( 
> e.g "module-loading = yes" in /etc/pulse/daemon.conf ).Currently all
> settings are maintained as default.
> 
> 2.Also, do I need to modify "SCORouting=PCM" in "audio.conf" file. 
> (default is HCI)
> 
> It will be of great help to receive any further inputs regarding the
> above issue.
> 
> Best Regards,
> Milan
> 
> -----Original Message-----
> From: Daniel Wagner [mailto:wagi(a)monom.org]
> Sent: Friday, March 11, 2011 12:52 PM
> To: Satpathy, Milan
> Cc: ofono(a)ofono.org
> Subject: Re: [HELP Required]Routing Of SCO data to BT Host Speaker
> 
> Hi Milan,
> 
> On Fri, Mar 11, 2011 at 10:56:34AM +0530, milan.satpathy(a)accenture.com 
wrote:
> > Hi,
> >
> > Recently I have been trying to use Ofono to write a Handsfree 
> based application( Using C on Ubuntu 10.10).
> > I am able to connect(SLC) to the AG using Ofono. After connection 
> I am also successful in dialing to another number.
> > Bluetoothd indicates status as "Playing" ( SCO connection 
> successful) once the call is established.
> >
> > Problem Faced:
> > ----------------------
> > However, after accepting the call I am unable to hear any voice 
> through the speaker.
> 
> You might have to loop back the PulseAudio BT source and sink to 
> your sound card, e.g.
> 
> pactl load-module module-loopback source="alsa_input.pci-0000_00_1b.
> 0.analog-stereo" sink="bluez_sink.78_47_1D_44_34_10"
> pactl load-module module-loopback source="bluez_source.
> 78_47_1D_44_34_10" sink="alsa_output.pci-0000_00_1b.0.analog-stereo"
> 
> You have to do this within 5 seconds after the SCO connection has been
> established otherwise PulseAudio will suspend (which leads to a BT
> stream stop) the streams.
> 
> HTH,
> daniel
> 
> 
> This message is for the designated recipient only and may contain 
> privileged, proprietary, or otherwise private information.  If you 
> have received it in error, please notify the sender immediately and 
> delete the original.  Any other use of the email by you is prohibited.
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono



Alpine Electronics R&D Europe GmbH, Vor dem Lauch 14, 70567 Stuttgart,
Registergericht Stuttgart, HRB 25265
Geschaeftsfuehrer: Hitoshi Kajiwara, Katsumi Miyake, Shigekazu Hori
Working office: Vor dem Lauch 14, 70567 Stuttgart

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 5484 bytes --]

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

* Re: [HELP Required]Routing Of SCO data to BT Host Speaker
  2011-03-11 14:43   ` milan.satpathy
  2011-03-15 14:34     ` Andreas Hohn
@ 2011-03-17 14:21     ` Daniel Wagner
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel Wagner @ 2011-03-17 14:21 UTC (permalink / raw)
  To: ofono

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

Hi Milan,

sorry, your mail got drowned in my inbox. I saw that Andreas had a tip.

HTH,
daniel

On 03/11/2011 03:43 PM, milan.satpathy(a)accenture.com wrote:
> Hi Daniel,
>
> Thanks for the quick assistance.
>
> I tried the same approach as suggested by you.
>
> Steps:
> ------
> 1.$pacmd
> 2.$list-sources
> ( got 2 sources )
>
>    name:<alsa_output.pci-0000_00_05.0.analog-stereo.monitor>
>
>    (and)
>
>    name:<alsa_input.pci-0000_00_05.0.analog-stereo>
> 3.$list-sinks
> ( got 1 sink )
>
> name:<alsa_output.pci-0000_00_05.0.analog-stereo>
>
> 4.created a shell script "ofono.sh" with contents as below:
> pactl load-module module-loopback source="alsa_input.pci-0000_00_05.0.analog-stereo" sink="bluez_sink.A8_7E_33_AF_23_A4"
> pactl load-module module-loopback source="bluez_source.A8_7E_33_AF_23_A4" sink="alsa_output.pci-0000_00_05.0.analog-stereo"
> (A8_7E_33_AF_23_A4 is the BT address of handset paired to the host)
>
> 5. Now I connect the host to the handset through HFP.
> 6.After SLC is established , I dial a number and establish a voice call.
> 7.As soon as the state is "Playing" ( SCO connected) , I run the "ofono.sh" ( as mentioned in step 4).
>
> Result:
> -------
> I am getting the following errors:
>
> Failure: Module initalization failed
> Failure: Module initalization failed
>
>
> Requesting Clarification
> ------------------------
> 1.I was wondering if any modification is required in pulseaudio configuration files to enable dynamic loading of module-loopback.( e.g "module-loading = yes" in /etc/pulse/daemon.conf ).Currently all settings are maintained as default.
>
> 2.Also, do I need to modify "SCORouting=PCM" in "audio.conf" file. (default is HCI)
>
> It will be of great help to receive any further inputs regarding the above issue.
>
> Best Regards,
> Milan
>
> -----Original Message-----
> From: Daniel Wagner [mailto:wagi(a)monom.org]
> Sent: Friday, March 11, 2011 12:52 PM
> To: Satpathy, Milan
> Cc: ofono(a)ofono.org
> Subject: Re: [HELP Required]Routing Of SCO data to BT Host Speaker
>
> Hi Milan,
>
> On Fri, Mar 11, 2011 at 10:56:34AM +0530, milan.satpathy(a)accenture.com wrote:
>> Hi,
>>
>> Recently I have been trying to use Ofono to write a Handsfree based application( Using C on Ubuntu 10.10).
>> I am able to connect(SLC) to the AG using Ofono. After connection I am also successful in dialing to another number.
>> Bluetoothd indicates status as "Playing" ( SCO connection successful) once the call is established.
>>
>> Problem Faced:
>> ----------------------
>> However, after accepting the call I am unable to hear any voice through the speaker.
>
> You might have to loop back the PulseAudio BT source and sink to your sound card, e.g.
>
> pactl load-module module-loopback source="alsa_input.pci-0000_00_1b.0.analog-stereo" sink="bluez_sink.78_47_1D_44_34_10"
> pactl load-module module-loopback source="bluez_source.78_47_1D_44_34_10" sink="alsa_output.pci-0000_00_1b.0.analog-stereo"
>
> You have to do this within 5 seconds after the SCO connection has been
> established otherwise PulseAudio will suspend (which leads to a BT
> stream stop) the streams.
>
> HTH,
> daniel
>
>
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.


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

end of thread, other threads:[~2011-03-17 14:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11  5:26 [HELP Required]Routing Of SCO data to BT Host Speaker milan.satpathy
2011-03-11  7:21 ` Daniel Wagner
2011-03-11 14:43   ` milan.satpathy
2011-03-15 14:34     ` Andreas Hohn
2011-03-17 14:21     ` Daniel Wagner

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.