Return-Path: Message-ID: <482566B0.9020708@powercraft.nl> Date: Sat, 10 May 2008 11:11:12 +0200 From: Jelle de Jong MIME-Version: 1.0 To: BlueZ users References: <48171A58.8060200@powercraft.nl> <482356E2.3050909@jlab.org> <482413B0.4010900@powercraft.nl> <48244A74.7080307@powercraft.nl> In-Reply-To: <48244A74.7080307@powercraft.nl> Content-Type: multipart/mixed; boundary="------------060601040105030008050208" Subject: Re: [Bluez-users] step by step - how to get your bluetooth stereo headset fully working with the bluez software stack under linux Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net This is a multi-part message in MIME format. --------------060601040105030008050208 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Jelle de Jong wrote: > Jelle de Jong wrote: >> Chris Carlin wrote: >>> Just to finish this up, Jelle, what type of bluetooth adapter do you >>> have? >>> >>> ~Chris >>> >>> Jelle de Jong wrote: >>>> Hello everybody, >>>> >>>> I have been playing around with bluetooth devices under linux the >>>> last month or so. I got some very good and some very bad experience >>>> with it. >>>> >>>> I am planning to create some wiki pages when I can get things >>>> working 100%. However I still got some major issues that I need to >>>> overcome. >>>> >>>> I bought a Motorola Bluetooth S805 stereo headset. It should get the >>>> following functionality: >>>> >>>> - Playback of stereo quality audio without distortions and without >>>> delay when playing audio and video at the same time. >>>> - Generic playback controls like playpause/stop/next/previous. >>>> - Internal microphone to record audio, used for audio recordings and >>>> audio video conferences. >>>> >>>> I was planning to get things up and running step by step: >>>> - alsa configuration >>>> - bluetooth configuration >>>> - input device configuration >>>> >>>> So the alsa configuration exist out of: >>>> -- handle multiple audio streams (slave devices) >>>> -- make the device default or as a plugin >>>> -- use multiple bluetooth headset for the same audio (conference) >>>> -- use multiple bluetooth headset per user based (multiseat) >>>> -- force audio to use the correct bit-rate and frequency for the >>>> devices? >>>> -- set-up correct buffer so that playback is without distortions of >>>> out of sync audio and video. (testing with totem-xine?) >>>> -- configure multiple profiles for stereo recording/playback >>>> >>>> Would somebody be willing to sent his working alsa configuration >>>> files that can do some of the above functions: >>>> >>>> On this moment the headset plays stereo audio, but when watching >>>> video with and audio dvd on totem-xine the audio is out of sync and >>>> when scrolling or skipping chapters it get worse and hidd can even >>>> crash with segmentation faults. There is also a lot of noise >>>> distortions. >> >> >> I attached the information about the bluetooth adapter. >> >> Is it a good idea to create some bug reports, then i can put all the >> information on one central place, and hopefully can also track the >> progress. >> >> I switched back to alsa and lib-xine because gstreamer does not >> handles dvd playback very well, and pulse creates a to heavy cpu load >> for my system. >> >> When playing back a dvd with totem with lib-xine and my bluetooth >> headset i got a few killer issues, that are directly bluez related: >> >> 1. when playing dvd audio, there is a audio conversion/compression >> problem, how higher the audio quality how greater the audio glitches. >> It is a really anoying glitch, it a sort of click sound. >> >> A/52 2.0 (stereo) >> 48000 Hz >> 224 kbps >> >> 2. When my headset connects its becomes a slave by default, and i am >> also using a bluetooth mouse, that is master by default. When i move >> my mouse the audio stops and i need to pause and play to resync audio >> and video. I now execute sudo hcitool sr 00:0C:55:D1:C9:78 master >> everytime i start using the headset, but this causes the bluetooth >> mouse cursor to shock when playing high quality sound. And its not a >> cpu issue i am not using 100%. So i got a real bandwidth priority >> issue with bluez....? >> >> Thanks in advance, >> >> Jelle >> > > I got a new device Motorola s9 today and did some more testing, it also > has the issue that it connects in a way that when using other bluetooth > devices the audio stops. When I manually set the device as master my > bluetooth mouse is somewhat more responding then with the Motorola s805 > headset. But a reminder that everything works 100% fully under windows, > so it should be possible to use the devices 100% with bluez somehow... > > I attached device and hcitool info in addition the my previous message. I bought an other new bt-2400p bluetooth adapter for testing, with this adapter i cant get my devices manually in master mode: sudo hcitool con Connections: < ACL 00:0D:FD:18:6E:3C handle 12 state 1 lm SLAVE ENCRYPT sudo hcitool sr 00:0D:FD:18:6E:3C master Switch role request failed: Input/output error I notished that when using only one bluetooth device greats a stable audio stream when using a bluethooth headset But when using multiple devices like a bluetooth headset and bluetooth mouse. The audio streams keeps getting interrupted for a few seconds, this happens also when not touching the mouse and when both when the headset is in slave or master mode. I attached all the device adapter information. Can somebody enlight me why this is all happening? Thanks in advance, Jelle --------------060601040105030008050208 Content-Type: text/plain; name="cirago bluethooth usb adapter micro BTA-3210.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="cirago bluethooth usb adapter micro BTA-3210.txt" c3VkbyBoY2ljb25maWcgLWEKaGNpMDogICBUeXBlOiBVU0IKICAgIEJEIEFkZHJlc3M6IDAw OjFCOkRDOjAwOjNFOjBCIEFDTCBNVFU6IDMxMDoxMCBTQ08gTVRVOiA2NDo4CiAgICBVUCBS VU5OSU5HIFBTQ0FOIElTQ0FOCiAgICBSWCBieXRlczo0NzA1MSBhY2w6MjcwMiBzY286MCBl dmVudHM6MTg2IGVycm9yczowCiAgICBUWCBieXRlczoxNjIyIGFjbDozOSBzY286MCBjb21t YW5kczo2MSBlcnJvcnM6MAogICAgRmVhdHVyZXM6IDB4ZmYgMHhmZiAweDhmIDB4ZmUgMHg5 YiAweGY5IDB4MDAgMHg4MAogICAgUGFja2V0IHR5cGU6IERNMSBETTMgRE01IERIMSBESDMg REg1IEhWMSBIVjIgSFYzCiAgICBMaW5rIHBvbGljeTogUlNXSVRDSCBIT0xEIFNOSUZGIFBB UksKICAgIExpbmsgbW9kZTogU0xBVkUgQUNDRVBUCiAgICBOYW1lOiAnW2RlYmlhbi1lZWVw Y10gLyBCVCBEZXZpY2UgMCcKICAgIENsYXNzOiAweDA4MDEwOAogICAgU2VydmljZSBDbGFz c2VzOiBDYXB0dXJpbmcKICAgIERldmljZSBDbGFzczogQ29tcHV0ZXIsIFNlcnZlcgogICAg SENJIFZlcjogMi4wICgweDMpIEhDSSBSZXY6IDB4YzVjIExNUCBWZXI6IDIuMCAoMHgzKSBM TVAgU3VidmVyOiAweGM1YwogICAgTWFudWZhY3R1cmVyOiBDYW1icmlkZ2UgU2lsaWNvbiBS YW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gPEFGSCBjbGFzcy4gbWFzdGVy PiA8RURSIGVTQ08gMiBNYnBzPgogICAgICAgIDxFRFIgZVNDTyAzIE1icHM+IDwzLXNsb3Qg RURSIGVTQ08+IDxleHRlbmRlZCBmZWF0dXJlcz4K --------------060601040105030008050208 Content-Type: text/plain; name="trust micro bluetooth usb adapter 15606.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="trust micro bluetooth usb adapter 15606.txt" c3VkbyBoY2ljb25maWcgLWEKaGNpMDogICBUeXBlOiBVU0IKICAgIEJEIEFkZHJlc3M6IDAw OjFCOkRDOjAwOjMyOjcxIEFDTCBNVFU6IDMxMDoxMCBTQ08gTVRVOiA2NDo4CiAgICBVUCBS VU5OSU5HIFBTQ0FOIElTQ0FOCiAgICBSWCBieXRlczo5NjcgYWNsOjAgc2NvOjAgZXZlbnRz OjI3IGVycm9yczowCiAgICBUWCBieXRlczozNjAgYWNsOjAgc2NvOjAgY29tbWFuZHM6MjYg ZXJyb3JzOjAKICAgIEZlYXR1cmVzOiAweGZmIDB4ZmYgMHg4ZiAweGZlIDB4OWIgMHhmOSAw eDAwIDB4ODAKICAgIFBhY2tldCB0eXBlOiBETTEgRE0zIERNNSBESDEgREgzIERINSBIVjEg SFYyIEhWMwogICAgTGluayBwb2xpY3k6IFJTV0lUQ0ggSE9MRCBTTklGRiBQQVJLCiAgICBM aW5rIG1vZGU6IFNMQVZFIEFDQ0VQVAogICAgTmFtZTogJ1tkZWJpYW4tZWVlcGNdIC8gQlQg RGV2aWNlIDAnCiAgICBDbGFzczogMHgwODAxMDgKICAgIFNlcnZpY2UgQ2xhc3NlczogQ2Fw dHVyaW5nCiAgICBEZXZpY2UgQ2xhc3M6IENvbXB1dGVyLCBTZXJ2ZXIKICAgIEhDSSBWZXI6 IDIuMCAoMHgzKSBIQ0kgUmV2OiAweGM1YyBMTVAgVmVyOiAyLjAgKDB4MykgTE1QIFN1YnZl cjogMHhjNWMKICAgIE1hbnVmYWN0dXJlcjogQ2Ft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N0ZXI+IDxBRkggY2xhc3MuIG1hc3Rlcj4gPEVEUiBl U0NPIDIgTWJwcz4KICAgICAgICA8RURSIGVTQ08gMyBNYnBzPiA8My1zbG90IEVEUiBlU0NP PiA8ZXh0ZW5kZWQgZmVhdHVyZXM+Cg== --------------060601040105030008050208 Content-Type: text/plain; name="trust ultra small bluetooth 2 usb adapter bt-2400p.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="trust ultra small bluetooth 2 usb adapter bt-2400p.txt" c3VkbyBoY2ljb25maWcgaGNpMCAtYQpoY2kwOiAgIFR5cGU6IFVTQgogICAgQkQgQWRkcmVz czogMDA6MDI6NzI6MTM6MDY6NDIgQUNMIE1UVTogMTAxNzo4IFNDTyBNVFU6IDY0OjgKICAg IFVQIFJVTk5JTkcgUFNDQU4gSVNDQU4KICAgIFJYIGJ5dGVzOjI0OTE2IGFjbDoyMDE5IHNj bzowIGV2ZW50czo2MTIgZXJyb3JzOjAKICAgIFRYIGJ5dGVzOjE3NDg0MzQgYWNsOjIxMzMg c2NvOjAgY29tbWFuZHM6MzkgZXJyb3JzOjAKICAgIEZlYXR1cmVzOiAweGZmIDB4ZmYgMHg4 ZCAweGZlIDB4OWIgMHhmOSAweDAwIDB4ODAKICAgIFBhY2tldCB0eXBlOiBETTEgRE0zIERN NSBESDEgREgzIERINSBIVjEgSFYyIEhWMwogICAgTGluayBwb2xpY3k6IFJTV0lUQ0ggSE9M RCBTTklGRiBQQVJLCiAgICBMaW5rIG1vZGU6IFNMQVZFIEFDQ0VQVAogICAgTmFtZTogJ1tk ZWJpYW4tZWVlcGNdIC8gQlQgRGV2aWNlIDAnCiAgICBDbGFzczogMHgwODAxMDAKICAgIFNl cnZpY2UgQ2xhc3NlczogQ2FwdHVyaW5nCiAgICBEZXZpY2UgQ2xhc3M6IENvbXB1dGVyLCBV bmNhdGVnb3JpemVkCiAgICBIQ0kgVmVyOiAyLjAgKDB4MykgSENJIFJldjogMHg0MDAwIExN UCBWZXI6IDIuM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90 IEVEUiBBQ0w+CiAgICAgICAgPEFGSCBjYXAuIG1hc3Rlcj4gPEFGSCBjbGFzcy4gbWFzdGVy PiA8RURSIGVTQ08gMiBNYnBzPgogICAgICAgIDxFRFIgZVNDTyAzIE1icHM+IDwzLXNsb3Qg RURSIGVTQ08+IDxleHRlbmRlZCBmZWF0dXJlcz4K --------------060601040105030008050208 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone --------------060601040105030008050208 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --------------060601040105030008050208--