From: Jelle de Jong <jelledejong@powercraft.nl>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] step by step - how to get your bluetooth stereo headset fully working with the bluez software stack under linux
Date: Sat, 10 May 2008 11:11:12 +0200 [thread overview]
Message-ID: <482566B0.9020708@powercraft.nl> (raw)
In-Reply-To: <48244A74.7080307@powercraft.nl>
[-- Attachment #1: Type: text/plain, Size: 4820 bytes --]
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
[-- Attachment #2: cirago bluethooth usb adapter micro BTA-3210.txt --]
[-- Type: text/plain, Size: 1542 bytes --]
sudo hciconfig -a
hci0: Type: USB
BD Address: 00:1B:DC:00:3E:0B ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:47051 acl:2702 sco:0 events:186 errors:0
TX bytes:1622 acl:39 sco:0 commands:61 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: '[debian-eeepc] / BT Device 0'
Class: 0x080108
Service Classes: Capturing
Device Class: Computer, Server
HCI Ver: 2.0 (0x3) HCI Rev: 0xc5c LMP Ver: 2.0 (0x3) LMP Subver: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)
sudo hciconfig hci0 features
hci0: Type: USB
BD Address: 00:1B:DC:00:3E:0B ACL MTU: 310:10 SCO MTU: 64:8
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park state> <RSSI> <channel quality> <SCO link> <HV2 packets>
<HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme>
<power control> <transparent SCO> <broadcast encrypt>
<EDR ACL 2 Mbps> <EDR ACL 3 Mbps> <enhanced iscan>
<interlaced iscan> <interlaced pscan> <inquiry with RSSI>
<extended SCO> <EV4 packets> <EV5 packets> <AFH cap. slave>
<AFH class. slave> <3-slot EDR ACL> <5-slot EDR ACL>
<AFH cap. master> <AFH class. master> <EDR eSCO 2 Mbps>
<EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended features>
[-- Attachment #3: trust micro bluetooth usb adapter 15606.txt --]
[-- Type: text/plain, Size: 1534 bytes --]
sudo hciconfig -a
hci0: Type: USB
BD Address: 00:1B:DC:00:32:71 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:967 acl:0 sco:0 events:27 errors:0
TX bytes:360 acl:0 sco:0 commands:26 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: '[debian-eeepc] / BT Device 0'
Class: 0x080108
Service Classes: Capturing
Device Class: Computer, Server
HCI Ver: 2.0 (0x3) HCI Rev: 0xc5c LMP Ver: 2.0 (0x3) LMP Subver: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)
sudo hciconfig hci0 features
hci0: Type: USB
BD Address: 00:1B:DC:00:32:71 ACL MTU: 310:10 SCO MTU: 64:8
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park state> <RSSI> <channel quality> <SCO link> <HV2 packets>
<HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme>
<power control> <transparent SCO> <broadcast encrypt>
<EDR ACL 2 Mbps> <EDR ACL 3 Mbps> <enhanced iscan>
<interlaced iscan> <interlaced pscan> <inquiry with RSSI>
<extended SCO> <EV4 packets> <EV5 packets> <AFH cap. slave>
<AFH class. slave> <3-slot EDR ACL> <5-slot EDR ACL>
<AFH cap. master> <AFH class. master> <EDR eSCO 2 Mbps>
<EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended features>
[-- Attachment #4: trust ultra small bluetooth 2 usb adapter bt-2400p.txt --]
[-- Type: text/plain, Size: 1542 bytes --]
sudo hciconfig hci0 -a
hci0: Type: USB
BD Address: 00:02:72:13:06:42 ACL MTU: 1017:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:24916 acl:2019 sco:0 events:612 errors:0
TX bytes:1748434 acl:2133 sco:0 commands:39 errors:0
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: '[debian-eeepc] / BT Device 0'
Class: 0x080100
Service Classes: Capturing
Device Class: Computer, Uncategorized
HCI Ver: 2.0 (0x3) HCI Rev: 0x4000 LMP Ver: 2.0 (0x3) LMP Subver: 0x430e
Manufacturer: Broadcom Corporation (15)
sudo hciconfig hci0 features
hci0: Type: USB
BD Address: 00:02:72:13:06:42 ACL MTU: 1017:8 SCO MTU: 64:8
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park state> <RSSI> <channel quality> <SCO link> <HV2 packets>
<HV3 packets> <u-law log> <A-law log> <CVSD> <power control>
<transparent SCO> <broadcast encrypt> <EDR ACL 2 Mbps>
<EDR ACL 3 Mbps> <enhanced iscan> <interlaced iscan>
<interlaced pscan> <inquiry with RSSI> <extended SCO>
<EV4 packets> <EV5 packets> <AFH cap. slave>
<AFH class. slave> <3-slot EDR ACL> <5-slot EDR ACL>
<AFH cap. master> <AFH class. master> <EDR eSCO 2 Mbps>
<EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended features>
[-- Attachment #5: Type: text/plain, Size: 320 bytes --]
-------------------------------------------------------------------------
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
[-- Attachment #6: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2008-05-10 9:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 12:53 [Bluez-users] step by step - how to get your bluetooth stereo headset fully working with the bluez software stack under linux Jelle de Jong
2008-04-30 2:35 ` Terry Johnson
2008-04-30 2:59 ` Brad Midgley
2008-04-30 21:16 ` Jelle de Jong
2008-05-01 3:08 ` Brad Midgley
2008-05-01 10:23 ` Jelle de Jong
2008-05-02 13:35 ` Brad Midgley
2008-05-01 13:41 ` Chris Carlin
2008-05-01 14:03 ` Brad Midgley
2008-05-01 16:36 ` Chris Carlin
2008-05-08 19:39 ` Chris Carlin
2008-05-09 9:04 ` Jelle de Jong
2008-05-09 12:58 ` Jelle de Jong
2008-05-10 9:11 ` Jelle de Jong [this message]
2008-05-11 5:34 ` Chris Carlin
2008-05-11 8:01 ` Jelle de Jong
2008-05-11 14:26 ` Brad Midgley
2008-05-11 14:34 ` Jelle de Jong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=482566B0.9020708@powercraft.nl \
--to=jelledejong@powercraft.nl \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).