* [Bluez-devel] Questions when tracing the hci_usb
@ 2008-07-14 2:30 Jui-Hao Chiang
2008-07-21 3:05 ` Jui-Hao Chiang
0 siblings, 1 reply; 3+ messages in thread
From: Jui-Hao Chiang @ 2008-07-14 2:30 UTC (permalink / raw)
To: bluez-devel
Hello, I am starting tracing the source code of hci_usb, and want to test the
Alternative Setting patches from Alok. But I have some questions:
(1) In hci_usb_isoc_rx_submit, I saw the usb_rcvisocpipe are initializing
settings for Host-side. But why is it necessary to call usb_submit_urb() to send
the urb, and then repeat infinitely in hci_usb_rx_complete when the returned
count is 0? Is that mandatory to do this to permit the usb device to send data
up to Host?
(2) Why the isoc is set to 2 in the beginning? What will happen when we set it
to something like "5" in the beginning? (Alok's patches seems to dynamically
adjust it depending on hdev->conn_hash.sco_num)
Thanks,
Jui-Hao
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-devel] Questions when tracing the hci_usb
2008-07-14 2:30 [Bluez-devel] Questions when tracing the hci_usb Jui-Hao Chiang
@ 2008-07-21 3:05 ` Jui-Hao Chiang
2008-07-22 3:21 ` Jui-Hao Chiang
0 siblings, 1 reply; 3+ messages in thread
From: Jui-Hao Chiang @ 2008-07-21 3:05 UTC (permalink / raw)
To: bluez-devel
> (1) In hci_usb_isoc_rx_submit, I saw the usb_rcvisocpipe are
> initializing settings for Host-side.
> But why is it necessary to call usb_submit_urb() to send
> the urb, and then repeat infinitely in hci_usb_rx_complete
> when the returned count is 0?
> Is that mandatory to do this to permit the usb device to send data
> up to Host?
Answering to myself
The USB host controls the transactions on the USB bus.
If host wants to retrieve the data from the USB device,
it needs to initiate the transaction by submitting a request
packet down to the USB bus (using the IN pipe).
Correct me if I am wrong.
> (2) Why the isoc is set to 2 in the beginning?
> What will happen when we set it to something like "5" in the beginning?
> (Alok's patches seems to dynamically
> adjust it depending on hdev->conn_hash.sco_num)
>>From the HCI USB Transport Layer spec.,
interface 1 has the following requirement:
* alternative setting 0 is for "No active voice channels"
* alternative setting 1 is for "One voice channel with 8-bit encoding"
* alternative setting 2 is for "Two voice channels with 8-bit encoding
& One voice channel with 16-bit encoding"
I have tried to setup three PCs, each with a bluetooth usb adapter.
http://www.cyber-blue.com/products_info.asp?id=19&code=AC
PC1 is configured as Master role, and PC2 is Slave.
The scotest can be used to send one SCO voice traffic from PC2 to PC1.
But when I use another PC3 to connect to PC1,
there is no connection request event found in PC1.
(tried alternative settings from 2 to 5)
I am wandering it's the adapter problem or the hci_usb problem?
since so many people are using CSR adapter
(which product are you guys using?)
The following page is my tracing to the hci_usb, just for sharing.
http://docs.google.com/
View?docID=ajgdxrgpktxt_149gqvt45cw&revision=_latest
It's not a beautiful document.
But I really hope to find some comments from
someone who is working on multiple SCO.
Bests, Jui-Hao
-------------------------------------------------------------------------
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] 3+ messages in thread
* Re: [Bluez-devel] Questions when tracing the hci_usb
2008-07-21 3:05 ` Jui-Hao Chiang
@ 2008-07-22 3:21 ` Jui-Hao Chiang
0 siblings, 0 replies; 3+ messages in thread
From: Jui-Hao Chiang @ 2008-07-22 3:21 UTC (permalink / raw)
To: bluez-devel
> I have tried to setup three PCs, each with a bluetooth usb adapter.
> http://www.cyber-blue.com/products_info.asp?id=19&code=AC
> PC1 is configured as Master role, and PC2 is Slave.
> The scotest can be used to send one SCO voice traffic from PC2 to PC1.
> But when I use another PC3 to connect to PC1,
> there is no connection request event found in PC1.
> (tried alternative settings from 2 to 5)
I find out one weird condition.
Once we dynamically call usb_set_interface somewhere else.
(In Alok's patch, it adjust it when hci_notify is triggered,
and the new isoc alternative setting will depend on sco_num)
The resubmit status in hci_usb_rx_complete fail with status -90.
Afterwards, no resubmit will keep working.
Is there any problem to call usb_set_interface besides of the probe phase?
-------------------------------------------------------------------------
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] 3+ messages in thread
end of thread, other threads:[~2008-07-22 3:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-14 2:30 [Bluez-devel] Questions when tracing the hci_usb Jui-Hao Chiang
2008-07-21 3:05 ` Jui-Hao Chiang
2008-07-22 3:21 ` 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