Skip to contentSkip to conversation

SCO over UART

Bluez-devel David Bannach 2 participants 7 messages Aug 17, 2005 – Sep 14, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

hi,

i'm using an ericsson "ROK 101008" bluetooth module and kernel 2.6.10. the module can be connected via usb or rs232. and i found an ericsson specific hci command to switch the sco-path to HCI (it is set to PCM by default).

using the usb connection (hci_usb) everything works fine and i can send and receive audio to/from a headset. however, when connecting the module via serial cable (hci_uart) sending and receiving audio does not work. the sco connection to the headset is established but there is no sco data transferred. i tried to attach the device with different speeds but i did not notice any difference. i really need the serial connection because usb is not available on the target system. can somebody help me with this topic?

# hciconfig hci0 -a
hci0:   Type: UART
       BD Address: 00:80:00:00:00:00 ACL MTU: 672:8 SCO MTU: 64:0
       UP RUNNING
       RX bytes:97 acl:0 sco:0 events:10 errors:0
       TX bytes:50 acl:0 sco:0 commands:9 errors:0
       Features: 0xff 0xfb 0x01 0x00 0x00 0x00 0x00 0x00
       Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
       Link policy:
       Link mode: SLAVE ACCEPT
       Name: ''
       Class: 0x3e0100
       Service Classes: Networking, Rendering, Capturing
       Device Class: Computer, Uncategorized
       HCI Ver: 1.1 (0x1) HCI Rev: 0x8103 LMP Ver: 1.1 (0x1) LMP 
Subver: 0x8b40
       Manufacturer: Ericsson Technology Licensing (0)

david

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

David

Quoted 1 line

i'm using an ericsson "ROK 101008" bluetooth module and kernel 2.6.10. the module can be connected via usb or rs232. and i found an ericsson specific hci command to switch the sco-path to HCI (it is set to PCM by default).

What is the ericsson command and how do you inject it into hci?

Is the rok101008 similar in this respect to the rok104001? That's what's on the gumstix.com board and I've been *very* interested in getting sco working with this. I thought it couldn't be coaxed into using hci.

Brad

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

brad,

Quoted 3 lines

What is the ericsson command and how do you inject it into hci?

Is the rok101008 similar in this respect to the rok104001? That's what's on the gumstix.com board and I've been *very* interested in getting sco working with this. I thought it couldn't be coaxed into using hci.

the command is "ericsson_set_sco_data_path". i found it in this document (only): http://www.vs.inf.ethz.ch/res/proj/smart-its/dl/ROK_101_007_revR1C-HCI_ericsson_specific.pdf

i use hcitool for sending the command to the module, e.g. the following line will set the sco mapping to hci:

hcitool cmd 0x3f 0x001d 0x00

the rok101008 and rok104001 seem very similar. at least the command above returns a positive response on both devices. i did not notice differences of these devices so far. actually i want to get sco running on the rok104001 which is built into a qbic (pxa based wearable) but it's easier to try things with an external module attached to a notebook.

i'm still having the problem that bluez does not send any sco data to the module. i'm really curious about your results.

david

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw

David,

It doesn't seem to help anything...

# hcitool cmd 0x3f 0x001d 0x00
< HCI Command: ogf 0x3f, ocf 0x001d, plen 1
  00
Quoted 1 line

HCI Event: 0x0e plen 4

07 1D FC 00

but then I haven't been able to confirm that I've done all the right things to get btsco to work on gumstix.

This doesn't look right:

btsco v0.4a
Device is 0:0
Voice setting: 0x0060
RFCOMM channel 2 connected
speaker volume: 0 mic volume: 0
driver is in use
Can't connect SCO audio channel
: Device or resource busy

where the "driver is in use" message first appears when trying to play music to the audio device.

Brad

Quoted 21 lines · David Bannach

brad,

Quoted 3 lines

What is the ericsson command and how do you inject it into hci?

Is the rok101008 similar in this respect to the rok104001? That's what's on the gumstix.com board and I've been *very* interested in getting sco working with this. I thought it couldn't be coaxed into using hci.

the command is "ericsson_set_sco_data_path". i found it in this document (only): http://www.vs.inf.ethz.ch/res/proj/smart-its/dl/ROK_101_007_revR1C-HCI_ericsson_specific.pdf

i use hcitool for sending the command to the module, e.g. the following line will set the sco mapping to hci:

   hcitool cmd 0x3f 0x001d 0x00

the rok101008 and rok104001 seem very similar. at least the command above returns a positive response on both devices. i did not notice differences of these devices so far. actually i want to get sco running on the rok104001 which is built into a qbic (pxa based wearable) but it's easier to try things with an external module attached to a notebook.

i'm still having the problem that bluez does not send any sco data to the module. i'm really curious about your results.

david

Quoted 9 lines

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#4 lore raw

brad,

this is the answer from infineon (after waiting a couple of weeks):

"ROK104001 has PD status (Product Discontinuation). Last order date is November 31, 2005.
For the Product Discontinuation please click http://www.infineon.convergy.de/upload/documents/2005/cPD_036_05.pdf
Infineon has no other BT with embedded flash.

ROK104001 do not support SCO-traffic via HCI feature.

Inquiry: We would like to transfer SCO-traffic via HCI. Is this possible with the ROK104 001?"

for testing i used the tools 'scotest' and 'hstest' to prevent running into trubles with btsco/alsa.

david

Quoted 72 lines · Brad Midgley

David,

It doesn't seem to help anything...

# hcitool cmd 0x3f 0x001d 0x00
< HCI Command: ogf 0x3f, ocf 0x001d, plen 1
  00
Quoted 1 line

HCI Event: 0x0e plen 4

07 1D FC 00

but then I haven't been able to confirm that I've done all the right things to get btsco to work on gumstix.

This doesn't look right:

btsco v0.4a
Device is 0:0
Voice setting: 0x0060
RFCOMM channel 2 connected
speaker volume: 0 mic volume: 0
driver is in use
Can't connect SCO audio channel
: Device or resource busy

where the "driver is in use" message first appears when trying to play music to the audio device.

Brad

Quoted 22 lines · David Bannach

brad,

Quoted 3 lines

What is the ericsson command and how do you inject it into hci?

Is the rok101008 similar in this respect to the rok104001? That's what's on the gumstix.com board and I've been *very* interested in getting sco working with this. I thought it couldn't be coaxed into using hci.

the command is "ericsson_set_sco_data_path". i found it in this document (only): http://www.vs.inf.ethz.ch/res/proj/smart-its/dl/ROK_101_007_revR1C-HCI_ericsson_specific.pdf

i use hcitool for sending the command to the module, e.g. the following line will set the sco mapping to hci:

   hcitool cmd 0x3f 0x001d 0x00

the rok101008 and rok104001 seem very similar. at least the command above returns a positive response on both devices. i did not notice differences of these devices so far. actually i want to get sco running on the rok104001 which is built into a qbic (pxa based wearable) but it's easier to try things with an external module attached to a notebook.

i'm still having the problem that bluez does not send any sco data to the module. i'm really curious about your results.

david

Quoted 9 lines

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Signature · 19 lines
David Bannach
University for Health Sciences, Medical Informatics and Technology
Institute for Computer Systems and Networks
Eduard Wallnöfer-Zentrum 1, 6060 Hall in Tirol, Austria
phone:  +43 (0)50 8648 3869
phone:  +43 (0)50 UMIT ETOY
web: http://csn.umit.at/ 



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#5 lore raw

David,

Who did you talk to at infineon? Gumstix is switching to their PBA31307 chip which is also supposed to support sco over hci (it's hinted at in their docs) but not spelled out anywhere. And it shouldn't be end-of-lifed all that soon...

I would hope that all three chips behave the same for sco...

Gumstix is going to cover the bases with pcm too. When they switch to the PBA, they are going to wire the sco pcm connections to one of xscale's pcm i/o. We should be able to use sco over pcm.

Sco over pcm will require some devel work but it might actually be the perfect time to use libalsa since it will just be a regular pcm driver with extra signaling on top for connect/disconnect/volume.

Brad

Quoted 14 lines · David Bannach

brad,

this is the answer from infineon (after waiting a couple of weeks):

"ROK104001 has PD status (Product Discontinuation). Last order date is November 31, 2005.
For the Product Discontinuation please click http://www.infineon.convergy.de/upload/documents/2005/cPD_036_05.pdf
Infineon has no other BT with embedded flash.

ROK104001 do not support SCO-traffic via HCI feature.

Inquiry: We would like to transfer SCO-traffic via HCI. Is this possible with the ROK104 001?"

Quoted 84 lines

for testing i used the tools 'scotest' and 'hstest' to prevent running into trubles with btsco/alsa.

david

Quoted 74 lines · Brad Midgley

David,

It doesn't seem to help anything...

# hcitool cmd 0x3f 0x001d 0x00
< HCI Command: ogf 0x3f, ocf 0x001d, plen 1
  00
Quoted 1 line

HCI Event: 0x0e plen 4

07 1D FC 00

but then I haven't been able to confirm that I've done all the right things to get btsco to work on gumstix.

This doesn't look right:

btsco v0.4a
Device is 0:0
Voice setting: 0x0060
RFCOMM channel 2 connected
speaker volume: 0 mic volume: 0
driver is in use
Can't connect SCO audio channel
: Device or resource busy

where the "driver is in use" message first appears when trying to play music to the audio device.

Brad

Quoted 23 lines · David Bannach

brad,

Quoted 3 lines

What is the ericsson command and how do you inject it into hci?

Is the rok101008 similar in this respect to the rok104001? That's what's on the gumstix.com board and I've been *very* interested in getting sco working with this. I thought it couldn't be coaxed into using hci.

the command is "ericsson_set_sco_data_path". i found it in this document (only): http://www.vs.inf.ethz.ch/res/proj/smart-its/dl/ROK_101_007_revR1C-HCI_ericsson_specific.pdf

i use hcitool for sending the command to the module, e.g. the following line will set the sco mapping to hci:

   hcitool cmd 0x3f 0x001d 0x00

the rok101008 and rok104001 seem very similar. at least the command above returns a positive response on both devices. i did not notice differences of these devices so far. actually i want to get sco running on the rok104001 which is built into a qbic (pxa based wearable) but it's easier to try things with an external module attached to a notebook.

i'm still having the problem that bluez does not send any sco data to the module. i'm really curious about your results.

david

Quoted 9 lines

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#6 lore raw

brad,

the mail from infineon was signed with:

infineon product support
lb

we are now trying external bt adapters with csr chipset. they are said to support sco over hci-uart.

if the pxa in the qbic supports a pcm interface and the effort for adapting a driver is not too big we might try this option too.

david

Quoted 117 lines · Brad Midgley

David,

Who did you talk to at infineon? Gumstix is switching to their PBA31307 chip which is also supposed to support sco over hci (it's hinted at in their docs) but not spelled out anywhere. And it shouldn't be end-of-lifed all that soon...

I would hope that all three chips behave the same for sco...

Gumstix is going to cover the bases with pcm too. When they switch to the PBA, they are going to wire the sco pcm connections to one of xscale's pcm i/o. We should be able to use sco over pcm.

Sco over pcm will require some devel work but it might actually be the perfect time to use libalsa since it will just be a regular pcm driver with extra signaling on top for connect/disconnect/volume.

Brad

Quoted 14 lines · David Bannach

brad,

this is the answer from infineon (after waiting a couple of weeks):

"ROK104001 has PD status (Product Discontinuation). Last order date is November 31, 2005.
For the Product Discontinuation please click http://www.infineon.convergy.de/upload/documents/2005/cPD_036_05.pdf
Infineon has no other BT with embedded flash.

ROK104001 do not support SCO-traffic via HCI feature.

Inquiry: We would like to transfer SCO-traffic via HCI. Is this possible with the ROK104 001?"

Quoted 87 lines

for testing i used the tools 'scotest' and 'hstest' to prevent running into trubles with btsco/alsa.

david

Quoted 76 lines · Brad Midgley

David,

It doesn't seem to help anything...

# hcitool cmd 0x3f 0x001d 0x00
< HCI Command: ogf 0x3f, ocf 0x001d, plen 1
  00
Quoted 1 line

HCI Event: 0x0e plen 4

07 1D FC 00

but then I haven't been able to confirm that I've done all the right things to get btsco to work on gumstix.

This doesn't look right:

btsco v0.4a
Device is 0:0
Voice setting: 0x0060
RFCOMM channel 2 connected
speaker volume: 0 mic volume: 0
driver is in use
Can't connect SCO audio channel
: Device or resource busy

where the "driver is in use" message first appears when trying to play music to the audio device.

Brad

Quoted 24 lines · David Bannach

brad,

Quoted 3 lines

What is the ericsson command and how do you inject it into hci?

Is the rok101008 similar in this respect to the rok104001? That's what's on the gumstix.com board and I've been *very* interested in getting sco working with this. I thought it couldn't be coaxed into using hci.

the command is "ericsson_set_sco_data_path". i found it in this document (only): http://www.vs.inf.ethz.ch/res/proj/smart-its/dl/ROK_101_007_revR1C-HCI_ericsson_specific.pdf

i use hcitool for sending the command to the module, e.g. the following line will set the sco mapping to hci:

   hcitool cmd 0x3f 0x001d 0x00

the rok101008 and rok104001 seem very similar. at least the command above returns a positive response on both devices. i did not notice differences of these devices so far. actually i want to get sco running on the rok104001 which is built into a qbic (pxa based wearable) but it's easier to try things with an external module attached to a notebook.

i'm still having the problem that bluez does not send any sco data to the module. i'm really curious about your results.

david

Quoted 9 lines

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Quoted 9 lines

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel