public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Questions about SCO support hci_usb
@ 2008-06-27 11:52 Jui-Hao Chiang
  2008-06-27 12:07 ` Alok
  0 siblings, 1 reply; 6+ messages in thread
From: Jui-Hao Chiang @ 2008-06-27 11:52 UTC (permalink / raw)
  To: bluez-devel

Dear All:
  Does the latest Bluez support 3 simultaneous SCO links from one USB dongle to
3 cell phones?
(According to the discussion thread
http://thread.gmane.org/gmane.linux.bluez.devel/12893/focus=12903, the
hci_usb.c is not fully patched support well)
  
Bests regards,
Jui-Hao


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Questions about SCO support hci_usb
  2008-06-27 11:52 [Bluez-devel] Questions about SCO support hci_usb Jui-Hao Chiang
@ 2008-06-27 12:07 ` Alok
  2008-06-27 14:17   ` Jui-Hao Chiang
  2008-07-01 13:32   ` Jui-Hao Chiang
  0 siblings, 2 replies; 6+ messages in thread
From: Alok @ 2008-06-27 12:07 UTC (permalink / raw)
  To: BlueZ development, Jui-Hao Chiang

Hi,

I think Marcel has written a new usb driver(btusb) which does support 
multiple SCO connections(I am not sure).

On Fri, 2008-06-27 at 11:52 +0000, Jui-Hao Chiang wrote:
> Dear All:
>   Does the latest Bluez support 3 simultaneous SCO links from one USB dongle to
> 3 cell phones?
> (According to the discussion thread
> http://thread.gmane.org/gmane.linux.bluez.devel/12893/focus=12903, the
> hci_usb.c is not fully patched support well)

The patch was for hci_usb.c. Me and Whoopie had tested it for 2
simultaneous SCO connections. If your using hci_usb, you will need the
alternate setting patch.

-Alok.
>   
> Bests regards,
> Jui-Hao
> 
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Questions about SCO support hci_usb
  2008-06-27 12:07 ` Alok
@ 2008-06-27 14:17   ` Jui-Hao Chiang
  2008-06-27 14:58     ` Alok
  2008-07-01 13:32   ` Jui-Hao Chiang
  1 sibling, 1 reply; 6+ messages in thread
From: Jui-Hao Chiang @ 2008-06-27 14:17 UTC (permalink / raw)
  To: bluez-devel

> 
> The patch was for hci_usb.c. Me and Whoopie had tested it for 2
> simultaneous SCO connections. If your using hci_usb, you will need the
> alternate setting patch.
> 
> -Alok.
> >   

Thanks, Alok.
I have found it in 2.6.24 kernel source by setting BT_HCIBTUSB=m (BT_HCIUSB=n).
One more question: 
how do you test it for 2 simultaneous SCO?
If I use the multy_connect_mode() function in bluez-utils/test/scotest.c.
it just fork() several process, and each of them do the following:
  sk = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO);
  bind(sk, ...)
  connect(remote device...)
But it doesn't do anything with HandsFree Profile in my cell phone.
If you have some other sample source code you are using, I would appreciate that
you can share some with me.

Bests


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Questions about SCO support hci_usb
  2008-06-27 14:17   ` Jui-Hao Chiang
@ 2008-06-27 14:58     ` Alok
  2008-06-27 16:02       ` Jui-Hao Chiang
  0 siblings, 1 reply; 6+ messages in thread
From: Alok @ 2008-06-27 14:58 UTC (permalink / raw)
  To: BlueZ development, Jui-Hao Chiang

On Fri, 2008-06-27 at 14:17 +0000, Jui-Hao Chiang wrote:
> > 
> > The patch was for hci_usb.c. Me and Whoopie had tested it for 2
> > simultaneous SCO connections. If your using hci_usb, you will need the
> > alternate setting patch.
> > 
> > -Alok.
> > >   
> 
> Thanks, Alok.
> I have found it in 2.6.24 kernel source by setting BT_HCIBTUSB=m (BT_HCIUSB=n).
> One more question: 
> how do you test it for 2 simultaneous SCO?
> If I use the multy_connect_mode() function in bluez-utils/test/scotest.c.
> it just fork() several process, and each of them do the following:
>   sk = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO);
>   bind(sk, ...)
>   connect(remote device...)
IIRC i had just used scotest.  

> But it doesn't do anything with HandsFree Profile in my cell phone.
I read your earlier post. I am a bit confused on what are u trying to
achieve. BlueZ only supports AG(audio Gateway) role at the moment. Also
most phones support only AG role, so in your case which device acts as
the Hands Free device? 


> If you have some other sample source code you are using, I would appreciate that
> you can share some with me.
nope. I just used scotest.


-Alok.
> Bests
> 
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Questions about SCO support hci_usb
  2008-06-27 14:58     ` Alok
@ 2008-06-27 16:02       ` Jui-Hao Chiang
  0 siblings, 0 replies; 6+ messages in thread
From: Jui-Hao Chiang @ 2008-06-27 16:02 UTC (permalink / raw)
  To: bluez-devel

> > But it doesn't do anything with HandsFree Profile in my cell phone.
> I read your earlier post. I am a bit confused on what are u trying to
> achieve. BlueZ only supports AG(audio Gateway) role at the moment. Also
> most phones support only AG role, so in your case which device acts as
> the Hands Free device? 

Sorry for let you misunderstand.
In my project, cell phone is used as Audio Gateway.
What I am trying to do is to run the Asterisk (Soft PBX) on my PC.
As the following scenario shows, my goal is to let each dongle to support 3
phone calls via 3 cell phones.
Soft VoIP phone -- Asterisk (PC) ----bluetooth usb dongle-- cell phone1, cell
phone 2, cell phone 3.

So, first I need to figure out how much concurrent SCO can one usb dongle
support in bluez (as you suggested the btsco. I will try it right now)
The second thing is to test the voice call via the cell phone, that's why I want
to write some short program to test 2 voice connections to 2 cell phones.

Best, 
Jui-Hao


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Questions about SCO support hci_usb
  2008-06-27 12:07 ` Alok
  2008-06-27 14:17   ` Jui-Hao Chiang
@ 2008-07-01 13:32   ` Jui-Hao Chiang
  1 sibling, 0 replies; 6+ messages in thread
From: Jui-Hao Chiang @ 2008-07-01 13:32 UTC (permalink / raw)
  To: bluez-devel

Hi,  
> I think Marcel has written a new usb driver(btusb) which does support 
> multiple SCO connections(I am not sure).
I find out one tihing: when I try to build up the linux 2.6.24.
The description of btusb itself says "no SCO support now".
Thus, I guess I should abandon this solution. 

> The patch was for hci_usb.c. Me and Whoopie had tested it for 2
> simultaneous SCO connections. If your using hci_usb, you will need the
> alternate setting patch.

Could someone give me some suggestions about the patch things?
(which linux kernel and which version of patch)
I know there are two steps
(1) sco_flowcontrol: 
It seems sco-flowcontrol-v4.3.diff is successful in 2.6.23 from this article
http://thread.gmane.org/gmane.linux.bluez.devel/13852
But why there are two revisions for that? and the latest one is "wrong patch
from whoopie"
http://bluetooth-alsa.cvs.sourceforge.net/
bluetooth-alsa/plugz/patches/sco-flowcontrol-v4.3.diff?view=log
(2) alternate setting
there is a latest patch by Alok
http://thread.gmane.org/gmane.linux.bluez.devel/12893/focus=12903
But I don't know which kernel version it is against?

Appreciate any help
Bests regards,
Jui-Hao


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2008-07-01 13:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-27 11:52 [Bluez-devel] Questions about SCO support hci_usb Jui-Hao Chiang
2008-06-27 12:07 ` Alok
2008-06-27 14:17   ` Jui-Hao Chiang
2008-06-27 14:58     ` Alok
2008-06-27 16:02       ` Jui-Hao Chiang
2008-07-01 13:32   ` Jui-Hao Chiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox