Questions when tracing the hci_usb
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 7 lines
(1) In
hci_usb_isoc_rx_submit, I saw theusb_rcvisocpipeare initializing settings for Host-side.
But why is it necessary to callusb_submit_urb()to send the urb, and then repeat infinitely inhci_usb_rx_completewhen 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.
Quoted 6 lines
(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 onhdev->conn_hash.sco_num)Quoted 1 line
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 8 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel