LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-09-2008, 01:20 AM   #1
damonhastings
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Possible to send audio to multiple bluetooth headsets at once?


Hi there,

Is it possible to stream audio to multiple bluetooth headsets on the same dongle, simultaneously? Details of my setup and failed attempts are below if anyone wishes to help -- but honestly, even a one-line response "yes it's possible" would at least tell me I'm not wasting my time! What I've read elsewhere suggests that what I'm trying to do may not even be possible in Linux. (In case you're curious, I'll have too many headsets to have a separate dongle for each -- probably dozens of headsets, assuming the Bluetooth band can handle that many, which I'm also unsure about and pretty nervous about too. Each stream will be 90% silent, with only occasional bursts of speech, but, still. Oh well, I guess I'll find whether it works *after* I invest tons of coding time into this.) I don't need to receive any audio from the headsets.

About my setup and my failed attempts:

I'm running Fedora 9 and have tried its built-in bluez (version 3.35) as well as bluez-4.17, and I'm using alsa. I'm using the Motorola H680 and Jabra BT2040 headsets with an Aluratek ABD2020 dongle. I can pair both headsets at once, and I can stream audio to one of them at a time just fine. But if I try streaming to both at once, I get this error from aplay on the second one:

damon@localhost [/home/damon]> aplay -D bluetooth_mot_h680 bmtl.wav
Playing WAVE '/home/damon/bmtl.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
ALSA lib pcm_bluetooth.c:464bluetooth_hsp_hw_params) BT_SETCONFIGURATION failed : Input/output error(5)
aplay: set_params:1015: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 2000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 8000
TICK_TIME: [0 0]

I also get this in /var/log/messages (with bluez 3.35):

Nov 7 21:08:14 scanners hcid[4512]: Audio API: received BT_GETCAPABILITIES_REQ
Nov 7 21:08:14 scanners hcid[4512]: Audio API: sending BT_GETCAPABILITIES_RSP
Nov 7 21:08:14 scanners hcid[4512]: Audio API: received BT_SETCONFIGURATION_REQ
Nov 7 21:08:14 scanners hcid[4512]: config sco - device = 00:1A:0E:82:355 access_mode = 2
Nov 7 21:08:14 scanners hcid[4512]: connect: Operation not permitted (1)
Nov 7 21:08:14 scanners kernel: hcid[4512]: segfault at 10 ip 003e818f sp bfcb08d0 error 6 in audio.so[3de000+21000]

And for bluez-4.17 I got all fancy and ran bluetoothd (which I take it replaces hcid) manually as root in debug mode. I got the same error from aplay, and bluetoothd gave me this (note it doesn't segault like hcid did):

bluetoothd[2925]: Accepted new client connection on unix socket (fd=27)
bluetoothd[2925]: Audio API: received BT_GETCAPABILITIES_REQ
bluetoothd[2925]: Audio API: sending BT_GETCAPABILITIES_RSP
bluetoothd[2925]: Audio API: received BT_SETCONFIGURATION_REQ
bluetoothd[2925]: config sco - device = 00:1A:0E:B8:B3:7F access_mode = 2
bluetoothd[2925]: connect: Operation not permitted (1)
bluetoothd[2925]: config failed
bluetoothd[2925]: Audio API: sending BT_SETCONFIGURATION_RSP
bluetoothd[2925]: Unix client disconnected (fd=27)

Same result if I don't run as root. The original headset kept playing just fine, but the second headset remained quiet. Reversing order of playing makes no difference. Pairing second while first is already playing makes no difference.

And here's a bunch of info that may or may not be relevant:

My .asoundrc:

pcm.bluetooth_jab_bt2040 {
type bluetooth
device 00:1A:45:31:47:69
profile "auto"
}
pcm.bluetooth_mot_h680 {
type bluetooth
device 00:1A:0E:B8:B3:7F
profile "auto"
}

My /etc/bluetooth/main.conf (unchanged from defaults):

[General]
Name = %h-%d
Class = 0x000100
DiscoverableTimeout = 0
PageTimeout = 8192
OffMode = NoScan
DiscoverSchedulerInterval = 0

Hardware info:

root@localhost [/root]> hciconfig hci0 features
hci0: Type: USB
BD Address: 00:15:83:02:4F:E7 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>

root@localhost [/root]> hcitool info 00:1A:45:31:47:69
Requesting information ...
BD Address: 00:1A:45:31:47:69
OUI Company: GN Netcom as (00-1A-45)
Device Name: Jabra BT2040
LMP Version: 2.0 (0x3) LMP Subversion: 0xbf9
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xbc 0xfe 0x0f 0x86 0x8b 0xe9 0x00 0x00
<encryption> <slot offset> <timing accuracy> <role switch>
<sniff mode> <RSSI> <channel quality> <SCO link> <HV2 packets>
<HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme>
<power control> <transparent SCO> <EDR ACL 2 Mbps>
<EDR ACL 3 Mbps> <extended SCO> <EV4 packets> <EV5 packets>
<AFH cap. slave> <3-slot EDR ACL> <5-slot EDR ACL>
<AFH cap. master> <EDR eSCO 2 Mbps> <EDR eSCO 3 Mbps>
<3-slot EDR eSCO>

root@localhost [/root]> hcitool info 00:1A:0E:B8:B3:7F
Requesting information ...
BD Address: 00:1A:0E:B8:B3:7F
OUI Company: Cheng Uei Precision Industry Co.,Ltd (00-1A-0E)
Device Name: Motorola H680
LMP Version: 2.0 (0x3) LMP Subversion: 0x109d
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xfc 0xfc 0x0b 0x80 0x0b 0x88 0x00 0x00
<encryption> <slot offset> <timing accuracy> <role switch>
<hold mode> <sniff mode> <channel quality> <SCO link>
<HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD>
<paging scheme> <transparent SCO> <extended SCO> <EV4 packets>
<EV5 packets> <AFH cap. slave> <AFH cap. master>
<3-slot EDR eSCO>

Thanks for any help -- I'm at wits' end! :-P

Damon Hastings
 
Old 11-09-2008, 01:24 AM   #2
ciden
Member
 
Registered: Dec 2006
Location: New Delhi, India
Distribution: PCLinuxOS 2010
Posts: 246
Blog Entries: 1

Rep: Reputation: 31
I don't think it is possible to have more than one connection over a single dongle.
 
Old 12-04-2008, 09:15 AM   #3
k_dhinakar
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Problem with setting up A2DP profile.

Hi,
I intend to use the A2DP profile of BlueZ, by playing some music over my desktop(Having Broadcom USB bluetooth adaptor) and listering it on BT-headset.

System Details:
Linux Flavour: Fedora Core 4
Linux Kernel: 2.6.26
BlueZ version: 4.18
DBUS version: 1.2.4
GLIB version: 2.14
ALSA version: 1.013

HCID:
When I start bluetooth service, hcid throws error: Unable to get on DBUS and continues to run. I proceed further to pair with headset, wherein in gives, Can't connect: Input/Output error. But surprisingly it can connect with other bluetooth devices like mobile phones. Behaviour is alike irrespective of pin-helpers,bluepin or bluez-pin.
Bluetoothd:
Yes, I know that version 4.xx replaces hcid wiht bluetoothd. I edited the /etc/ini.d/bluetooth script to spawn bluetoothd daemon, instead of hcid daemon. Even Bleutoothd daemon throws error: Unable to get on DBUS and exits.

Here is the debug log
Quote:
lsusb:
Bus 004 Device 005: ID 0a5c:2039 Broadcom Corp.

/etc/ini.d/bluetooth start
Starting Bluetooth services: [ OK ]
tail -f /var/log/messages
Dec 4 10:09:07 localhost hcid[5179]: Bluetooth HCI daemon
Dec 4 10:09:07 localhost hcid[5179]: Unable to get on D-BUS
Dec 4 10:09:07 localhost sdpd[5182]: Bluetooth SDP daemon
Dec 4 10:09:07 localhost hcid[5179]: HCI dev 0 up
Dec 4 10:09:07 localhost hcid[5179]: Starting security manager 0

hciconfig -a
hci0: Type: USB
BD Address: 00:06:C9:90:02:1D ACL MTU: 1017:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:384 acl:0 sco:0 events:17 errors:0
TX bytes:311 acl:0 sco:0 commands:17 errors:0
Features: 0xff 0xff 0x8d 0xfe 0x8f 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: 'EMMYS0420 at localhost.localdomain (0)'
Class: 0x120104
Service Classes: Networking, Object Transfer
Device Class: Computer, Desktop workstation
HCI Ver: 2.0 (0x3) HCI Rev: 0x2000 LMP Ver: 2.0 (0x3) LMP Subver: 0x410d
Manufacturer: Broadcom Corporation (15)
hcitool scan
Scanning ...
00:0D:FD:20:28:2F Motorola S9
hcitool cc 00:0D:FD:20:28:2F
Can't create connection: Input/output error
Any help in this regard is greatly appreciated.

Regards
dhina
 
Old 06-30-2009, 11:10 AM   #4
magnet0
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Bleutoothd daemon throws error: Unable to get on DBUS

Bluetoothd:
Yes, I know that version 4.xx replaces hcid wiht bluetoothd. I edited the /etc/ini.d/bluetooth script to spawn bluetoothd daemon, instead of hcid daemon. Even Bleutoothd daemon throws error: Unable to get on DBUS and exits.


Hi,

I too had this same problem however it got resolved by the following steps. I am using ubuntu-9.04 & using bluez-4.42 & bluetooth device is stays connected to the usb port of system.

1. save & close all your programs
2. type the following in terminal window (under root)
service dbus restart
(it may restart your system and ask for (re-) login)
3. open & type the following in terminal window
su
bluetoothd -dn


do not run any other command before completion of the above. later you may open another terminal window to do you bluetooth activity for e.g. running other profiles.

I was able to resolve by the above
pardon me if im wrong....im novice to all this

Regards,
magnet0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using multiple bluetooth headsets Sourav_aga Linux - Software 1 11-08-2008 11:12 PM
Headsets via Bluetooth phone bzzz Linux - Hardware 2 12-11-2007 03:13 AM
Can't send via bluetooth phone -> computer imagineaxion Ubuntu 3 11-20-2006 07:00 AM
How to send a vCard via Bluetooth from Kontact spocksbrain Linux - Laptop and Netbook 0 07-28-2006 05:56 PM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration