Re: [maemo-developers] Bluetooth headset - not really working?
Ralph Is there a bandwidth problem, or just people being silly with the design? There is a bandwidth problem. High-quality audio is compressed on the fly before transmission. We will probably be able to build in the delay to the video player so it slips the video stream a bit. gstreamer may even have a way to specify in the codec plugin how much latency it introduces. Some of these problems could be fixed if a new audio spec was written that required the extended data rate of bluetooth 2.0 and left out compression. The a2dp spec says nothing about duplex high-quality audio, but there's no reason a headset couldn't try to connect back to the source node on an independent connection when it starts receiving audio. That's basically how the AVRCP connection works. Brad ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
BTW, did anyone notice the following lines in the dmesg output on the 770 in the 51-13 firmware? [4.037261] Bluetooth: L2CAP ver 2.7 [4.041015] Bluetooth: L2CAP socket layer initialized [4.046356] Bluetooth: SCO (Voice Link) ver 0.4 [4.051147] Bluetooth: SCO socket layer initialized [4.056365] Bluetooth: RFCOMM ver 1.5 [4.060272] Bluetooth: RFCOMM socket layer initialized [4.065704] Bluetooth: RFCOMM TTY layer initialized [4.070861] Bluetooth: BNEP (Ethernet Emulation) ver 1.2 [4.076477] Bluetooth: HIDP (Human Interface Emulation) ver 1.1 It mentions SCO. I'm not sure if that means anything or if this was present in the older versions of the firmware, I just thought it was interesting. Also, a few lines above the Bluetooth stuff, you can find: [3.814697] Advanced Linux Sound Architecture Driver Version 1.0.9rc2 (Thu Mar 24 10:33:39 2005 UTC). [3.828033] usbcore: registered new driver snd-usb-audio [3.833709] ALSA device list: [3.836822] #0: Dummy 1 USB Audio? Anyway, I sort of get the feeling that Nokia is keeping so quiet about this mostly because this is something they want to release in the 2006 firmware and they most probably don't want anyone stealing their thunder and releasing a fully-working VoIP package for the 770 before that. With Asterisk and chan_bluetooth ported to the device, the 770 could become the ultimate VoIP phone. Any clues yet from Nokia? :). Razvan -- Razvan Dragomirescu Chief Technology Officer Cayenne Graphics SRL On 1/10/06, Johannes Eickhold [EMAIL PROTECTED] wrote: On Tue, 2005-12-20 at 10:16 -0700, Brad Midgley wrote: I'm overseeing the bluetooth audio on linux project... Linux only supports SCO transfers for CSR chips. To use the current btsco stuff, Nokia is going to have to contribute a SCO driver to the kernel for whatever bluetooth chip they put in the 770. I found some further info at: http://thread.gmane.org/gmane.linux.bluez.devel/6713 Can anyone of the Nokia developers give us some more hints on the head set topic please? Can we only expect that to work when the 2006 software edition will be released or will the head set support be included in an earlier firmware update? This missing feature is very much appreciated! Greets, Jonek. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
Razvan Dragomirescu wrote: BTW, did anyone notice the following lines in the dmesg output on the 770 in the 51-13 firmware? [4.037261] Bluetooth: L2CAP ver 2.7 [4.041015] Bluetooth: L2CAP socket layer initialized [4.046356] Bluetooth: SCO (Voice Link) ver 0.4 [4.051147] Bluetooth: SCO socket layer initialized [4.056365] Bluetooth: RFCOMM ver 1.5 [4.060272] Bluetooth: RFCOMM socket layer initialized [4.065704] Bluetooth: RFCOMM TTY layer initialized [4.070861] Bluetooth: BNEP (Ethernet Emulation) ver 1.2 [4.076477] Bluetooth: HIDP (Human Interface Emulation) ver 1.1 It mentions SCO. I'm not sure if that means anything or if this was present in the older versions of the firmware, I just thought it was interesting. Also, a few lines above the Bluetooth stuff, you can find: [3.814697] Advanced Linux Sound Architecture Driver Version 1.0.9rc2 (Thu Mar 24 10:33:39 2005 UTC). [3.828033] usbcore: registered new driver snd-usb-audio [3.833709] ALSA device list: [3.836822] #0: Dummy 1 USB Audio? Hmmh, interesting... may be anyone out there who has a usb headset can check if it is possible to use it. BTW: The same output already appears on .45-8 Anyway, I sort of get the feeling that Nokia is keeping so quiet about this mostly because this is something they want to release in the 2006 firmware and they most probably don't want anyone stealing their thunder and releasing a fully-working VoIP package for the 770 before that. With Asterisk and chan_bluetooth ported to the device, the 770 could become the ultimate VoIP phone. full ACK! Any clues yet from Nokia? :). I suppose: no! :-( Cheers, Timo ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
On Mon, 2006-01-09 at 20:04 -0700, Brad Midgley wrote: Johannes The two types of bluetooth audio are very different. You linked to a discussion about the other type. Sorry, I didn't made that clear enough. I was refering to the following said in http://article.gmane.org/gmane.linux.bluez.devel/6729 by Marcel Holtmann: The Nokia 770 is using a TI chip and basically nobody of us has real experiences with these chips. I have seen them in an iPAQ and now the 770, but that's it. Do you think Nokia is willing to donate some of the TI development kits to BlueZ? Especially the SCO and eSCO stuff needs a lot of testing and I would prefer to do it with an i386 or x86_86 based system. And the answer to that in http://article.gmane.org/gmane.linux.bluez.devel/6748 by Ville Tervo from Nokia: I'll try to arrange something. low-latency voice-quality mono audio uses a special transport (SCO) and is delivered from the bluetooth chip either over the regular data connection to the cpu (HCI) or it is connected to dedicated audio/analog hardware (PCM). The HCI formatting and negotiation differs from chip to chip and the linux driver is only complete for CSR chipsets. Thanks for the explanation - SCO is exectly what I need then. a2dp specifies one-way high-quality, traditionally stereo, audio. It is delivered over an L2CAP socket so linux can send and receive this audio with any bluetooth chip that has even the most basic support. So that is used for bluetooth stereo earphones to listen to e.g. CD music? We know what has to be done for a2dp. The SCO stuff is what I would like to see help from Nokia on. I would hope they can help us with the HCI interaction with the SCO transport since that gives us the most generic control over the audio stream. Thanks for that details! Jonek ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
Razvan [4.046356] Bluetooth: SCO (Voice Link) ver 0.4 [4.051147] Bluetooth: SCO socket layer initialized this will be printed both for adapters with and without sco support. The driver does not detect and disable the interface on unsupported hardware. (Although it should--we get questions all the time about everything working right up to the point that they get silence on the connection instead of audio) Brad ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad Midgley schrieb: Razvan [4.046356] Bluetooth: SCO (Voice Link) ver 0.4 [4.051147] Bluetooth: SCO socket layer initialized this will be printed both for adapters with and without sco support. The driver does not detect and disable the interface on unsupported hardware. (Although it should--we get questions all the time about everything working right up to the point that they get silence on the connection instead of audio) Umm... to be more precise this is just the output from the SCO kernel driver not from the HCI driver. So the Bluetooth stack, according to this message, now supports handling of SCO traffic (kernel modules sco.ko). But this does not mean that the HCI driver for the specific Bluetooth module in use can handle it (kernel modules hci_* and friends). Those are two distinct things... Brad Cheers nils faerber - -- kernel concepts Tel: +49-271-771091-12 Dreisbachstr. 24 Fax: +49-271-771091-19 D-57250 Netphen Mob: +49-176-21024535 - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDw+nrJXeIURG1qHgRAvEOAJ92LOph0Rm6YjwPtgROcFCC6SW9GwCgvKeK mKcAe1fz3cWaWYiNw46IvnA= =gEpd -END PGP SIGNATURE- ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
On Tue, 2005-12-20 at 10:16 -0700, Brad Midgley wrote: I'm overseeing the bluetooth audio on linux project... Linux only supports SCO transfers for CSR chips. To use the current btsco stuff, Nokia is going to have to contribute a SCO driver to the kernel for whatever bluetooth chip they put in the 770. I found some further info at: http://thread.gmane.org/gmane.linux.bluez.devel/6713 Can anyone of the Nokia developers give us some more hints on the head set topic please? Can we only expect that to work when the 2006 software edition will be released or will the head set support be included in an earlier firmware update? This missing feature is very much appreciated! Greets, Jonek. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
Johannes The two types of bluetooth audio are very different. You linked to a discussion about the other type. low-latency voice-quality mono audio uses a special transport (SCO) and is delivered from the bluetooth chip either over the regular data connection to the cpu (HCI) or it is connected to dedicated audio/analog hardware (PCM). The HCI formatting and negotiation differs from chip to chip and the linux driver is only complete for CSR chipsets. a2dp specifies one-way high-quality, traditionally stereo, audio. It is delivered over an L2CAP socket so linux can send and receive this audio with any bluetooth chip that has even the most basic support. We know what has to be done for a2dp. The SCO stuff is what I would like to see help from Nokia on. I would hope they can help us with the HCI interaction with the SCO transport since that gives us the most generic control over the audio stream. Brad On Tue, 2005-12-20 at 10:16 -0700, Brad Midgley wrote: I'm overseeing the bluetooth audio on linux project... Linux only supports SCO transfers for CSR chips. To use the current btsco stuff, Nokia is going to have to contribute a SCO driver to the kernel for whatever bluetooth chip they put in the 770. I found some further info at: http://thread.gmane.org/gmane.linux.bluez.devel/6713 Can anyone of the Nokia developers give us some more hints on the head set topic please? Can we only expect that to work when the 2006 software edition will be released or will the head set support be included in an earlier firmware update? This missing feature is very much appreciated! Greets, Jonek. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
On Mon, Jan 09, 2006 at 08:04:35PM -0700, Brad Midgley wrote: low-latency voice-quality mono audio uses a special transport (SCO) and is delivered from the bluetooth chip either over the regular data connection to the cpu (HCI) or it is connected to dedicated audio/analog hardware (PCM). The HCI formatting and negotiation differs from chip to chip and the linux driver is only complete for CSR chipsets. Hmm. Linux support aside, does this mean I'm never going to find a bt headset with both a mic for voice and high quality stereo playback for music in the same device? More or less what all the game consoles use, for example? -r ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
Ralph Hmm. Linux support aside, does this mean I'm never going to find a bt headset with both a mic for voice and high quality stereo playback for music in the same device? More or less what all the game consoles use, for example? I assumed you're aware that a lot of the stereo sets will switch into low-quality 2-way mode. It's the simultaneous stereo/mic that no one can do now. Brad ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Bluetooth headset - not really working?
On Mon, Jan 09, 2006 at 08:29:38PM -0700, Brad Midgley wrote: The latency for every stereo set out there is so bad (500ms!) that you'd lose every game or just throw yourself out the nearest window. Oh dear. And I thought USB audio was bad... I wasn't actually aware that there were dual mode stereo/interactive headsets, but I see plantronics is selling one now. Clever how it's spun as a feature (Switch seamlessly between your phone and music from your stereo!) and not a bug. Is there a bandwidth problem, or just people being silly with the design? -r ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] Bluetooth headset - not really working?
Hello everyone, This is a resend, I am not sure the message ever made it to the list. If it did, please disregard it. The error I received from the Postfix server at the previous send attempt is at the bottom of this email. -- I have spent the past 2 days trying to get a JABRA 250 Bluetooth headset to work with my Nokia 770.I followedthe instructions at http://maemo.org/maemowiki/BluetoothHeadset and everything went fine, up to the point described in the Wiki. I have also compiled the alsa-utils package to get the aplay utility and tried to play some sound. Nokia770-45:~# ./aplay -D plughw:Headset /media/mmc1/xp.wav Playing WAVE '/media/mmc1/xp.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo This command never returns unless I press ctrl-c and kill it. There seems to be some sort of connection established, but all I hear in the headset is some hissing and popping, I have no idea how to describe it. It's definitely not silence, but it has no connection to the content of the WAV being played either. Here's what btsco says during all this: Nokia770-45:~# btsco -v 00:07:A4:03:33:33 1btsco v0.4cDevice is 1:0Voice setting: 0x0060RFCOMM channel 1 connectedNokia770-45:~# btsco -v 00:07:A4:03:33:33 1btsco v0.4cDevice is 1:0Voice setting: 0x0060 RFCOMM channel 1 connectedspeaker volume: 0 mic volume: 0i/o needed: connecting sco...connected SCO channelDone setting sco fdrecieved AT+VGS=11Sending up speaker change 11speaker volume: 11 mic volume: 1 driver is not in usedisconnected SCO channel The last 2 lines appear after I press CTRL-C to kill aplay and then CTRL-C to kill btsco. The same hissing/popping sounds are heard when using the hstest tool from bluez-utils (this one plays the sound directly over Bluetooth as far as I can tell). And also the same type of sound is heard when using chan_bluetooth ( http://www.crazygreek.co.uk/content/chan_bluetooth) with the ported version of Asterisk on the Nokia 770. This seems to have been reported before (not for the 770): http://sourceforge.net/tracker/index.php?func=detailaid=1273754group_id=116589atid=678258 . However, the solution pskey mapsco 0 only seems to work with CSR Bluetooth chips, and the 770 has a TI chip. If anyone's interested, I'm attaching the output of a hcidump during all this. Has anyone been successful in establishing SCO connections between a Nokia 770 and a Bluetooth headset? According to this: http://article.gmane.org/gmane.linux.bluez.devel/6728 , Nokia is working on Bluetooth headset support. Could anyone at Nokia give us an update? Thank you, Razvan -- Razvan DragomirescuChief Technology OfficerCayenne Graphics SRL -- Error message received on previous send: This is the Postfix program at host maemo.org.I'm sorry to have to inform you that your message could not be be delivered to one or more recipients. It's attached below.For further assistance, please send mail to postmasterIf you do so, please include this problem report. You candelete your own text from the attached returned message. The Postfix programmaemo-developers@ maemo.org: mail forwarding loop for maemo-developers@maemo.orgFinal-Recipient: rfc822; maemo-developers@maemo.orgAction: failedStatus: 5.0.0Diagnostic-Code: X-Postfix; mail forwarding loop for maemo-developers@maemo .org HCI sniffer - Bluetooth packet analyzer ver 1.28 HCI Command: Read Voice Setting (0x03|0x0025) plen 0 HCI Event: Command Complete (0x0e) plen 6 Read Voice Setting (0x03|0x0025) ncmd 1 status 0x00 voice setting 0x0060 HCI Command: Create Connection (0x01|0x0005) plen 13 bdaddr 00:07:A4:03:33:33 ptype 0xcc18 rswitch 0x01 clkoffset 0x Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HCI Event: Command Status (0x0f) plen 4 Create Connection (0x01|0x0005) status 0x00 ncmd 1 HCI Event: Link Key Request (0x17) plen 6 bdaddr 00:07:A4:03:33:33 HCI Command: Link Key Request Reply (0x01|0x000b) plen 22 bdaddr 00:07:A4:03:33:33 key 8F9AB53B0E669C0F7E324AA14A8DB535 HCI Event: Command Complete (0x0e) plen 10 Link Key Request Reply (0x01|0x000b) ncmd 1 status 0x00 bdaddr 00:07:A4:03:33:33 HCI Event: Connect Complete (0x03) plen 11 status 0x00 handle 1 bdaddr 00:07:A4:03:33:33 type ACL encrypt 0x01 ACL data: handle 1 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 3 scid 0x0040 HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4 handle 1 policy 0x0f Link policy: RSWITCH HOLD SNIFF PARK HCI Event: Command Complete (0x0e) plen 6 Write Link Policy Settings (0x02|0x000d) ncmd 1 status 0x00 handle 1 HCI Event: Number of Completed Packets (0x13) plen 5 handle 1 packets 1 ACL data: handle 1 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0048 scid 0x0040 result 1 status 2 Connection pending - Authorization pending ACL data: handle 1
Re: [maemo-developers] Bluetooth headset - not really working?
Razvan This seems to have been reported before (not for the 770): http://sourceforge.net/tracker/index.php?func=detailaid=1273754group_id=116589atid=678258 http://sourceforge.net/tracker/index.php?func=detailaid=1273754group_id=116589atid=678258 . However, the solution pskey mapsco 0 only seems to work with CSR Bluetooth chips, and the 770 has a TI chip. I'm overseeing the bluetooth audio on linux project... Linux only supports SCO transfers for CSR chips. To use the current btsco stuff, Nokia is going to have to contribute a SCO driver to the kernel for whatever bluetooth chip they put in the 770. It's possible that they will route SCO to PCM hardware (direct to audio hardware or even the dsp) rather than HCI (to the cpu). If this is the case, btsco etc will need a little hacking to work that way. (Or even better, to be rewritten) Brad ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers