linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Multiple simultaneous audio streams?
@ 2008-11-04  4:26 deker
  2008-11-04  5:12 ` Marcel Holtmann
  2008-11-04 13:24 ` Johan Hedberg
  0 siblings, 2 replies; 7+ messages in thread
From: deker @ 2008-11-04  4:26 UTC (permalink / raw)
  To: BlueZ development

Hi,

 I am working on a project where it would be desirable to have audio 
streams going to more than one SCO audio device at a time. My quick test 
today of playing a WAV file with mplayer to two different devices didn't 
work and bluetoothd was reporting "connection refused" when I tried to 
get the second stream going. Once the first playback finished, I was 
able to then play to the second device.

So, I suppose m question is if BlueZ supports audio to multiple SCO 
devices at the same time? If not, what might be involved in making it work?

Thanks,

-d

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Multiple simultaneous audio streams?
  2008-11-04  4:26 [Bluez-devel] Multiple simultaneous audio streams? deker
@ 2008-11-04  5:12 ` Marcel Holtmann
  2008-11-04 13:13   ` deker
  2008-11-04 13:24 ` Johan Hedberg
  1 sibling, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2008-11-04  5:12 UTC (permalink / raw)
  To: BlueZ development

Hi,

> I am working on a project where it would be desirable to have audio
> streams going to more than one SCO audio device at a time. My quick  
> test
> today of playing a WAV file with mplayer to two different devices  
> didn't
> work and bluetoothd was reporting "connection refused" when I tried to
> get the second stream going. Once the first playback finished, I was
> able to then play to the second device.
>
> So, I suppose m question is if BlueZ supports audio to multiple SCO
> devices at the same time? If not, what might be involved in making  
> it work?

do you wanna do speech quality or CD quality audio streaming?

And yes, BlueZ does support it, but there are limitations from the  
Bluetooth radio. So you really need to know what you wanna do.

Regards

Marcel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Multiple simultaneous audio streams?
  2008-11-04  5:12 ` Marcel Holtmann
@ 2008-11-04 13:13   ` deker
  0 siblings, 0 replies; 7+ messages in thread
From: deker @ 2008-11-04 13:13 UTC (permalink / raw)
  To: BlueZ development


Speech quality is all we need. If I can get 2 8Khz output streams going 
to 2 devices and 1 8Khz input stream from one device I'll be happy.

If somebody can point me in the right direction I'd really appreciate it.

Thanks,

-d

Marcel Holtmann wrote:
> Hi,
>
>   
>> I am working on a project where it would be desirable to have audio
>> streams going to more than one SCO audio device at a time. My quick  
>> test
>> today of playing a WAV file with mplayer to two different devices  
>> didn't
>> work and bluetoothd was reporting "connection refused" when I tried to
>> get the second stream going. Once the first playback finished, I was
>> able to then play to the second device.
>>
>> So, I suppose m question is if BlueZ supports audio to multiple SCO
>> devices at the same time? If not, what might be involved in making  
>> it work?
>>     
>
> do you wanna do speech quality or CD quality audio streaming?
>
> And yes, BlueZ does support it, but there are limitations from the  
> Bluetooth radio. So you really need to know what you wanna do.
>
> Regards
>
> Marcel
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Multiple simultaneous audio streams?
  2008-11-04  4:26 [Bluez-devel] Multiple simultaneous audio streams? deker
  2008-11-04  5:12 ` Marcel Holtmann
@ 2008-11-04 13:24 ` Johan Hedberg
  2008-11-04 16:13   ` deker
  1 sibling, 1 reply; 7+ messages in thread
From: Johan Hedberg @ 2008-11-04 13:24 UTC (permalink / raw)
  To: BlueZ development

On Mon, Nov 03, 2008, deker wrote:
>  I am working on a project where it would be desirable to have audio 
> streams going to more than one SCO audio device at a time. My quick test 
> today of playing a WAV file with mplayer to two different devices didn't 
> work and bluetoothd was reporting "connection refused" when I tried to 
> get the second stream going. Once the first playback finished, I was 
> able to then play to the second device.
> 
> So, I suppose m question is if BlueZ supports audio to multiple SCO 
> devices at the same time? If not, what might be involved in making it work?

If you're using BlueZ 4.17 or later you'll need to add something like
MaxConnections=2
to the [Headset] section in /etc/bluetooth/audio.conf to be able to
create a service level connection to more than 1 device.

Johan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Multiple simultaneous audio streams?
  2008-11-04 13:24 ` Johan Hedberg
@ 2008-11-04 16:13   ` deker
  2008-11-04 20:38     ` deker
  0 siblings, 1 reply; 7+ messages in thread
From: deker @ 2008-11-04 16:13 UTC (permalink / raw)
  To: BlueZ development


I've changed the MaxConnections setting and now I'm seeing something 
different (this must mean I'm getting closer :)

I'm using the following config/comandline to play audio:

audio.conf:
[General]
SCORouting=PCM
[Headset]
HFP=False
MaxConnections=2

~/.asoundrc:

pcm.bluetooth {
    type bluetooth
    device 00:0B:2E:D5:27:DA  
    profile auto
}
pcm.bluetooth2 {
    type bluetooth
    device 00:0B:2E:D4:EC:31
    profile auto
}

mplayer command lines:

 mplayer -ao alsa:device=bluetooth test.wav
 mplayer -ao alsa:device=bluetooth2 test.wav

Either execution of mplayer works properly as long as the other isn't 
streaming to the device. If one is already running, mplayer reports the 
following:

[AO_ALSA] alsa-lib: pcm_bluetooth.c:464:(bluetooth_hsp_hw_params) 
BT_SETCONFIGURATION failed : Input/output error(5)
[AO_ALSA] Unable to set hw-parameters: Input/output error
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)

Also, it seems that I'm losing the beginning of the sample in playback. 
I assume this is due to the delay of setting up the connection to the 
headset, but I was wondering if there was a way to avoid this.

Thanks,

-d




Johan Hedberg wrote:
> On Mon, Nov 03, 2008, deker wrote:
>   
>>  I am working on a project where it would be desirable to have audio 
>> streams going to more than one SCO audio device at a time. My quick test 
>> today of playing a WAV file with mplayer to two different devices didn't 
>> work and bluetoothd was reporting "connection refused" when I tried to 
>> get the second stream going. Once the first playback finished, I was 
>> able to then play to the second device.
>>
>> So, I suppose m question is if BlueZ supports audio to multiple SCO 
>> devices at the same time? If not, what might be involved in making it work?
>>     
>
> If you're using BlueZ 4.17 or later you'll need to add something like
> MaxConnections=2
> to the [Headset] section in /etc/bluetooth/audio.conf to be able to
> create a service level connection to more than 1 device.
>
> Johan
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Multiple simultaneous audio streams?
  2008-11-04 16:13   ` deker
@ 2008-11-04 20:38     ` deker
  2008-11-07 17:36       ` [Bluez-devel] Need Help. Plz reply Ramesh Jayapal
  0 siblings, 1 reply; 7+ messages in thread
From: deker @ 2008-11-04 20:38 UTC (permalink / raw)
  To: BlueZ development


Oops. I forgot to mention that this is with BlueZ 4.13.

-d

deker wrote:
> I've changed the MaxConnections setting and now I'm seeing something 
> different (this must mean I'm getting closer :)
>
> I'm using the following config/comandline to play audio:
>
> audio.conf:
> [General]
> SCORouting=PCM
> [Headset]
> HFP=False
> MaxConnections=2
>
> ~/.asoundrc:
>
> pcm.bluetooth {
>     type bluetooth
>     device 00:0B:2E:D5:27:DA  
>     profile auto
> }
> pcm.bluetooth2 {
>     type bluetooth
>     device 00:0B:2E:D4:EC:31
>     profile auto
> }
>
> mplayer command lines:
>
>  mplayer -ao alsa:device=bluetooth test.wav
>  mplayer -ao alsa:device=bluetooth2 test.wav
>
> Either execution of mplayer works properly as long as the other isn't 
> streaming to the device. If one is already running, mplayer reports the 
> following:
>
> [AO_ALSA] alsa-lib: pcm_bluetooth.c:464:(bluetooth_hsp_hw_params) 
> BT_SETCONFIGURATION failed : Input/output error(5)
> [AO_ALSA] Unable to set hw-parameters: Input/output error
> Could not open/initialize audio device -> no sound.
> Audio: no sound
> Video: no video
>
>
> Exiting... (End of file)
>
> Also, it seems that I'm losing the beginning of the sample in playback. 
> I assume this is due to the delay of setting up the connection to the 
> headset, but I was wondering if there was a way to avoid this.
>
> Thanks,
>
> -d
>
>
>
>
> Johan Hedberg wrote:
>   
>> On Mon, Nov 03, 2008, deker wrote:
>>   
>>     
>>>  I am working on a project where it would be desirable to have audio 
>>> streams going to more than one SCO audio device at a time. My quick test 
>>> today of playing a WAV file with mplayer to two different devices didn't 
>>> work and bluetoothd was reporting "connection refused" when I tried to 
>>> get the second stream going. Once the first playback finished, I was 
>>> able to then play to the second device.
>>>
>>> So, I suppose m question is if BlueZ supports audio to multiple SCO 
>>> devices at the same time? If not, what might be involved in making it work?
>>>     
>>>       
>> If you're using BlueZ 4.17 or later you'll need to add something like
>> MaxConnections=2
>> to the [Headset] section in /etc/bluetooth/audio.conf to be able to
>> create a service level connection to more than 1 device.
>>
>> Johan
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Bluez-devel mailing list
>> Bluez-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>>   
>>     
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* [Bluez-devel] Need Help. Plz reply.
  2008-11-04 20:38     ` deker
@ 2008-11-07 17:36       ` Ramesh Jayapal
  0 siblings, 0 replies; 7+ messages in thread
From: Ramesh Jayapal @ 2008-11-07 17:36 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1128 bytes --]

Hi All,

        Sorry for interrupting in this mail list.

        But i am really tired on searching the answer for my questions.

        I am trying to develop new applications in Bluetooth (in Bluez).

        i couldn't find any materials how to start it. (i didn't mean how to write the program ans new concepts)

        i need the initial configuration to been done before writing the application.

        1. Need to know which are the packages need to install.
        2. how to access the inbuild api's. (need to clarify i can use the installed stack api's (run time libraries) or to include the source code api's and compile the source while compiling my application code).
        3. is there any Environment variables need to be set.
        4. How to compile is there any runtime libraries need to be included?

    If i get any documents / source code (say for SDP only) and how to compile and test is is very useful for me.

awaiting for the response.

Thanks in advance,
merameshj


      Yahoo! Toolbar is now powered with Search Assist.Download it now!
http://sg.toolbar.yahoo.com/

[-- Attachment #1.2: Type: text/html, Size: 2127 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2008-11-07 17:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04  4:26 [Bluez-devel] Multiple simultaneous audio streams? deker
2008-11-04  5:12 ` Marcel Holtmann
2008-11-04 13:13   ` deker
2008-11-04 13:24 ` Johan Hedberg
2008-11-04 16:13   ` deker
2008-11-04 20:38     ` deker
2008-11-07 17:36       ` [Bluez-devel] Need Help. Plz reply Ramesh Jayapal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).