Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Hi, Paul Fertser wrote: Ok, looks like it's not needed (probably yet). With another earpiece (Jabra) it finally works over HCI without issues, it seems. Didn't tried to temporarily switch to PCM yet, but i guess it'd work. Well, I've been following this thread with a lot of interest - since I've tried to get my Jabra BT125 handset working with my freerunner without success. I've seen the wiki page and gone through most of the ML. Seems like it's taken for granted that BT headset's work - but there are a lot of end users who can't seem to get it going. Then, there are doubts about the alsa state files and the wolfson bluetooth_pcm.c file .. So, It's nice to hear that you've got things going. Can you take the time to list out the steps involved? Perhaps detail the configuration in /etc/bluetooth, the version of bluez and the state file too. Thanks. -- View this message in context: http://n2.nabble.com/Bluetooth-headset-routed-over-USB-on-Freerunner%3A-why-we-need-it-and-what-problems-i-faced-tp2375186p2393566.html Sent from the Openmoko Hardware mailing list archive at Nabble.com. ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Hi, c_c cchan...@yahoo.com writes: Ok, looks like it's not needed (probably yet). With another earpiece (Jabra) it finally works over HCI without issues, it seems. Didn't tried to temporarily switch to PCM yet, but i guess it'd work. Well, I've been following this thread with a lot of interest - since I've tried to get my Jabra BT125 handset working with my freerunner without success. I've seen the wiki page and gone through most of the ML. Seems like it's taken for granted that BT headset's work - but there are a lot of end users who can't seem to get it going. Then, there are doubts about the alsa state files and the wolfson bluetooth_pcm.c file .. Doubts about the alsa state files and the wolfson? I think you misread all my messages, sorry. So, It's nice to hear that you've got things going. Can you take the time to list out the steps involved? Perhaps detail the configuration in /etc/bluetooth, the version of bluez and the state file too. Thanks. If you're interested in using bluetooth for GSM conversations, then wait, it'll be integrated in FSO soon. Or read the mail by Jan Lubbe (Problems with ASoC and Bluetooth routing) on the kernel ML. If you're interested in SCO over HCI routing, re-read my first e-mail, i still can't give any better instructions. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Werner Almesberger wer...@openmoko.org writes: Joerg Reisenweber wrote: Also asking manufacturer of module rsp chip might be worth a try. We can do this. Paul, could you please prepare the questions you want to ask ? This will first go to the module vendor (Delta), who then may or may not have to pass them on to CSR. So please keep them short and precise. Ok, looks like it's not needed (probably yet). With another earpiece (Jabra) it finally works over HCI without issues, it seems. Didn't tried to temporarily switch to PCM yet, but i guess it'd work. So seems like some kind of success to me. Stefan, if you're going to integrate it in FSO, i'd be glad to answer any remaining questions. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Hello. On Wed, 2009-02-25 at 16:19, Stefan Schmidt wrote: Hello. On Wed, 2009-02-25 at 15:40, Paul Fertser wrote: Werner Almesberger wer...@openmoko.org writes: Joerg Reisenweber wrote: Also asking manufacturer of module rsp chip might be worth a try. We can do this. Paul, could you please prepare the questions you want to ask ? This will first go to the module vendor (Delta), who then may or may not have to pass them on to CSR. So please keep them short and precise. Ok, looks like it's not needed (probably yet). With another earpiece (Jabra) it finally works over HCI without issues, it seems. Didn't tried to temporarily switch to PCM yet, but i guess it'd work. So seems like some kind of success to me. Stefan, if you're going to integrate it in FSO, i'd be glad to answer any remaining questions. Thanks for figuring this all out. Jan will take care about the FSO integration. CC'ed him if he has questions. I can't even handle mail these days. CC added. regards Stefan Schmidt ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Paul Fertser fercer...@gmail.com writes: Hm, i thought about one more thing we might want to try before asking the vendor. I know that SCO over PCM does work but i didn't actually try it with my headset (mostly because the routing diagram wasn't ready by that time). So i can also have some rare compatibility issue between my earpiece and the CSR BT adapter. Hm, still no luck even after returning to the previous setting (SCORouting: PCM), adjusting mixer controls to seemingly correct state to route the sound i hear from speaker to ADC and tweaking python script from wiki to make it bluez 4.x compatible. The log is ok, but i get no sound and SCO counter is not increased. I might be missing something obvious like a special way to enable ADC or smth like that. Or it might be as well incompatibility between my earpiece and this CSR chip, i'm not sure an anything anymore :) Stefan, could you please either try to reproduce my tests with routing over HCI (that should work according to sco counters and the logs) or give me some hints how to produce test sound over PCM :) -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Hi, Preface: all this stuff doesn't apply to A2DP (high-quality uni-directional sound playback), it works over USB HCI regardless of routing configuration. Following information is based on AN107 [1] (CSR, 2002, describes SCO configuration for BC-01b and BC-02-External) and experience. Our devices are using a more recent version, BlueCore4-ROM, with firmware build name odj_4hci_rom_bt2.0_19p2_0503071059_encr128 2005-03-07. The chip name suggests that we can't upgrade firmware via DFU so we'll have to live with that one anyway. Still this chip has some EEPROM area where various parameters are stored (called ps keys for some reason). How it works now: currently all CSR chips (BT adapters) installed on freerunners and gta01s (based on a small IRC survey) are pre-configured to route SCO data over PCM interface, connected to the WM8753's BT DAI. This allows to use BT headsets for GSM calls provided a reasonable routing inside WM8753 is used. This was tested and works. Alas there're some usecases where this scheme can't be employed, notably using BT headset for VoIP. Also one may want to use his BT earpiece to do voicenotes or recording his GSM conversations. There are probably much more possibilities where routing SCO over HCI can be desired. One may argue that tricky routing inside WM8753 can give SoC access to the signal, but as far as i understand (and that was confirmed in discussions with Joerg) that is not possible given hardware we have. What i tried: Installed bluez 4.30 on my laptop with a broadcom bluetooth chip. Paired with a cheap bluetooth earpiece using simple-agent from test. Tried to play a test wav (8000 Hz, S16_LE, mono) with hstest. It worked, that is the headset connected and i heard the sound i expected. Then i compiled the same bluez version on freerunner and repeated the procedure. Got no sound and sco packet counter (seen in hciconfig -a output) didn't increase. hciconfig hci0 revision showed SCO mapping: PCM, that was obviously not what i expected. To change that bccmd psset mapsco 0 is supposed to work, but for unknown reasons it didn't. So i added csr_write_pskey_uint16(dd, 4, CSR_PSKEY_HOSTIO_MAP_SCO_PCM, 0x, 0); call to hciconfig instead and run it once. After that this setting permanently changed to SCO mapping: HCI. Power-cycled the chip and after that the sco counters started to grow. Still i got no sound (though everything else seemed to work as expected). I gathered debug logs from bluetoothd and hcidump for both cases (working laptop and not-working freerunner) and contacted Johan Hedberg of BlueZ project. He said he found no oddities in FR's log and that it should work. Also he ensured me that we can issue any HCI commands without bluetoothd interfering, that will be needed if we finally get HCI routing to work to temporarily switch to PCM (according to the AN). To the best of my knowledge this SCO routing behaviour is not only chip-specific, but also firmware-specific, so i can't see how to move any further now. The logs are accessible from [2]. [1] http://case.cs.mnsu.edu/NSM%20Technology/141_HCI%20Implementation%20on%20BlueCore%20(AN107d).pdf [2] http://people.openmoko.org/joerg/PaulFerster/ -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Paul Fertser wrote: Following information is based on AN107 [1] (CSR, 2002, describes SCO configuration for BC-01b and BC-02-External) and experience. Please let me reveal myself as the total BT ignoramus that I am: Is the bottom line that unidirectional audio (A2DP) over USB to the BT device works, but bidirectional audio (SCO) over USB doesn't ? And the reason for this is unknown, but you suspect an audio routing issue in the BT module ? - Werner ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | Paul Fertser wrote: | Following information is based on AN107 [1] (CSR, 2002, describes SCO | configuration for BC-01b and BC-02-External) and experience. | | Please let me reveal myself as the total BT ignoramus that I am: | | Is the bottom line that unidirectional audio (A2DP) over USB to the | BT device works, but bidirectional audio (SCO) over USB doesn't ? | | And the reason for this is unknown, but you suspect an audio | routing issue in the BT module ? WM8753 can't make a routing between it's two digital audio ports (one goes off to BT module and the other to the CPU). We can make paths between the analogue ports for the GSM module and either of the digital ports, so BT for phone calls works and recording audio works on CPU side. But for the case we are being an MP3 player, we can't pipe the result frm the CPU on digital audio interface, to the BT module over its digital audio interface inside WM8753. Paul found this USB-based audio input possibility for the BT module that is semi-standard, but when he tried to pipe the audio down there, it didn't actually work. AFAIK nobody has tried that way in OM before so it's not entirely surprising. - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkmjY2IACgkQOjLpvpq7dMphOgCeLI9KiNc07+uk62L7m9dk4P77 ykAAn1LRX0HJPR6T03bm0Sv/dKNsAaFt =w8as -END PGP SIGNATURE- ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Am Di 24. Februar 2009 schrieb Werner Almesberger: Paul Fertser wrote: Following information is based on AN107 [1] (CSR, 2002, describes SCO configuration for BC-01b and BC-02-External) and experience. Please let me reveal myself as the total BT ignoramus that I am: Is the bottom line that unidirectional audio (A2DP) over USB to the BT device works, but bidirectional audio (SCO) over USB doesn't ? yup, exactly. And the reason for this is unknown, but you suspect an audio routing issue in the BT module ? BT has USB interface and PCM interface. Seems there's no way to tell BT to accept audio data via USB in SCO (bidir) mode, though there is a way/command that *should* work to switch audio input source but doesn't apparently. Might be a bug in FW, or poorly or undocumented proprietary command needed. For A2DP mode (stereo output only) audio data is happily accepted on USB. Any document about details of actual FW used inside BT module would help a lot. Also asking manufacturer of module rsp chip might be worth a try. cheers jOERG signature.asc Description: This is a digitally signed message part. ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Joerg Reisenweber wrote: Bet on that? :D If a tree falls in a forest and no one is around to hear it, does it make a sound ? ;-) - Werner ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Am Di 24. Februar 2009 schrieb Werner Almesberger: Joerg Reisenweber wrote: Bet on that? :D If a tree falls in a forest and no one is around to hear it, does it make a sound ? ;-) Good point. Anyway sometimes asking might reveal suprising information. Not first time we seen important data buried on some laptop or inside some head. /j signature.asc Description: This is a digitally signed message part. ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware
Re: Bluetooth headset routed over USB on Freerunner: why we need it and what problems i faced
Werner Almesberger wer...@openmoko.org writes: Also asking manufacturer of module rsp chip might be worth a try. We can do this. Paul, could you please prepare the questions you want to ask ? This will first go to the module vendor (Delta), who then may or may not have to pass them on to CSR. So please keep them short and precise. Hm, i thought about one more thing we might want to try before asking the vendor. I know that SCO over PCM does work but i didn't actually try it with my headset (mostly because the routing diagram wasn't ready by that time). So i can also have some rare compatibility issue between my earpiece and the CSR BT adapter. Anyway i imagine the correct question to be something like this: Please provide us with the information on all proprietary commands and settings (ps keys) that affect SCO routing via both HCI and PCM. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ___ hardware mailing list hardware@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/hardware