All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Problems connecting to a bluetooth headset
@ 2007-05-13  1:46 Justin Patrin
  2007-05-13  2:00 ` Justin Patrin
  0 siblings, 1 reply; 10+ messages in thread
From: Justin Patrin @ 2007-05-13  1:46 UTC (permalink / raw)
  To: bluez-devel

I just got a Plantronics Pulsar 260 headset which supports A2DP,
AVRCP, and the headset protocols. I've successfully used it for a2dp
on Mac OS X 10.4 with some hacks[1]. I have also paired it with
various cell phones and tested the headset functionality. However, I
cann't get it to pair or work at all with Linux. I have tested only
with a Linksys USBBT100 USB adapter so far. I will be getting 2 belkin
adapters soon as well that I will try with.

I have tried everything I can think of and searched high and low on
the internet but have found no help. Here's various info which may
help:

# hciconfig -a
hci0:   Type: USB
        BD Address: 00:0C:41:E2:18:BC ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN
        RX bytes:1701 acl:0 sco:0 events:56 errors:0
        TX bytes:458 acl:0 sco:0 commands:34 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'BlueZ (0)'
        Class: 0x3e0100
        Service Classes: Networking, Rendering, Capturing, Object
Transfer, Audio
        Device Class: Computer, Uncategorized
        HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver: 0x20d
        Manufacturer: Cambridge Silicon Radio (10)
# hcitool scan
Scanning ...
        00:03:89:C4:04:6F       260Plantronics
# hcitool cc 00:03:89:C4:04:6F
# hcitool conn
Connections:
        < ACL 00:03:89:C4:04:6F handle 42 state 1 lm MASTER
# hcitool conn
Connections:
#

Yes, no output with hcitool cc. hcitool conn shows a connection right
after the cc but not right after that. I have tried setting the pin in
/etc/hcid.conf and tried setting the pin_helper to a shell script
which just outputs PIN:0000 (the pin for the headset). The output of
hcitool cc doesn't change whether the headset is in discovery mode or
not. If the headset isn't on hcitool "hangs" and then gives an I/O
error, as I'd expect.

Running a2dpd, with the instructions on the site[2] as a user gives me
binding errors and doesn't respond to Ctrl-C (I have to kill -9 the
process).
# a2dpd
A2DPD[18:44:14.787]: init_ipc: Selected IPC: unix, addr=127.0.0.1,
bcst=127.0.0.255, port=21453
A2DPD[18:44:14.787]: make_daemon_process: a2dpd [May 12 2007 13:56:48]
starting ...
A2DPD[18:44:14.787]: main: (errno=13:Permission denied)a2dpd
addr=00:03:89:C4:04:6F timer=4000 us [May 12 2007 13:56:53]
A2DPD[18:44:14.787]: a2dpd_signal_init: Getting on DBUS
A2DPD[18:44:14.788]: a2dpd_signal_init: Installing watch
A2DPD[18:44:14.788]: add_dbus_watch: Added watch 0 0x80a17c0 disabled
A2DPD[18:44:14.789]: add_dbus_watch: Added watch 1 0x80a17e8 enabled
A2DPD[18:44:14.789]: a2dpd_signal_init: Registering object path:
/com/access/a2dpd
A2DPD[18:44:14.789]: a2dpd_signal_init: Acquiring service: com.access.a2dpd
A2DPD[18:44:14.789]: a2dpd_signal_init: OK
A2DPD[18:44:14.789]: a2dpd_signal_init: OK
A2DPD[18:44:14.789]: a2dpd_register_sdp: Start
A2DPD[18:44:14.789]: add_avrtg:
A2DPD[18:44:14.790]: add_a2source:
A2DPD[18:44:14.790]: a2dpd_register_sdp: OK
A2DPD[18:44:14.790]: main_loop:
A2DPD[18:44:14.790]: make_server_socket:
A2DPD[18:44:14.790]: a2dp_make_listen_socket: (errno=13:Permission
denied)Cannot bind socket 6 for psm 25
A2DPD[18:44:14.790]: main_loop: Cannot get AVDTP socket
A2DPD[18:44:15.798]: main_loop:
A2DPD[18:44:15.798]: make_server_socket:
A2DPD[18:44:15.798]: main_loop: (errno=98:Address already in
use)Cannot get UNIX socket
A2DPD[18:44:16.806]: main_loop:
A2DPD[18:44:16.806]: make_server_socket:
A2DPD[18:44:16.806]: main_loop: (errno=98:Address already in
use)Cannot get UNIX socket

Running a2dpd as root (with the config files copied) shows everything
disconnecting:
# a2dpd
A2DPD[18:45:01.307]: init_ipc: Selected IPC: unix, addr=127.0.0.1,
bcst=127.0.0.255, port=21453
A2DPD[18:45:01.307]: make_daemon_process: a2dpd [May 12 2007 13:56:48]
starting ...
A2DPD[18:45:01.308]: main: (errno=9:Bad file descriptor)a2dpd
addr=00:03:89:C4:04:6F timer=4000 us [May 12 2007 13:56:53]
A2DPD[18:45:01.308]: a2dpd_signal_init: Getting on DBUS
A2DPD[18:45:01.309]: a2dpd_signal_init: Installing watch
A2DPD[18:45:01.309]: add_dbus_watch: Added watch 0 0x80a17c0 disabled
A2DPD[18:45:01.309]: add_dbus_watch: Added watch 1 0x80a17e8 enabled
A2DPD[18:45:01.309]: a2dpd_signal_init: Registering object path:
/com/access/a2dpd
A2DPD[18:45:01.309]: a2dpd_signal_init: Acquiring service: com.access.a2dpd
A2DPD[18:45:01.310]: a2dpd_signal_init: OK
A2DPD[18:45:01.310]: a2dpd_signal_init: OK
A2DPD[18:45:01.310]: a2dpd_register_sdp: Start
A2DPD[18:45:01.310]: add_avrtg:
A2DPD[18:45:01.310]: add_a2source:
A2DPD[18:45:01.310]: a2dpd_register_sdp: OK
A2DPD[18:45:01.311]: main_loop:
A2DPD[18:45:01.311]: make_server_socket:
A2DPD[18:45:01.311]: bta2dpdevicenew:
A2DPD[18:45:01.311]: a2dpd_signal_address_changed: 00:03:89:C4:04:6F
A2DPD[18:45:01.311]: a2dpd_signal_set_socket: Signal socket set to 7
A2DPD[18:45:01.312]: a2dpd_signal_state: Disconnected
A2DPD[18:45:01.312]: a2dp_alloc:
A2DPD[18:45:01.312]: a2dp_alloc: (a2dp = 0x80a5158)
A2DPD[18:45:01.312]: a2dp_new: 00:03:89:C4:04:6F, 44100
A2DPD[18:45:01.312]: a2dp_new: State AVDTP_STATE_DISCONNECTED
A2DPD[18:45:01.312]: alsa_new:
A2DPD[18:45:01.312]: alsa_new: device=plughw:0,0, framerate=44100
A2DPD[18:45:01.312]: alsa_new: State ALSA_STATE_DISCONNECTED
A2DPD[18:45:01.312]: alsa_new: returning 0x80a72e0
A2DPD[18:45:01.312]: sco_new:
A2DPD[18:45:01.313]: sco_new: State SCO_STATE_DISCONNECTED
A2DPD[18:45:01.313]: sco_state_disconnect: Filtering state : already
disconnected
A2DPD[18:45:01.313]: main_loop: Bluetooth Device Settings [44100 hz, 2
channels, 16 bits]
A2DPD[18:45:01.313]: avrcp_new: Listening for AVRCP on socket 9
A2DPD[18:45:01.313]: avrcp_new: 0x80a73f0

The same things happen whether I run these on my Gentoo Athlon system
or my Sharp Zaurus (arm). Both have bluez-utils/libs-3.9 and sbc and
plugz from cvs.


[1] http://david.connolly.name/blog/hub/mac/2007/02/23/Stereo-Bluetooth-Profile-A2DP-on-Mac-OS-X-Tiger.html
[2] http://bluetooth-alsa.sourceforge.net/build.html

-- 
Justin Patrin

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-05-19 20:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-13  1:46 [Bluez-devel] Problems connecting to a bluetooth headset Justin Patrin
2007-05-13  2:00 ` Justin Patrin
2007-05-13  5:12   ` [Bluez-devel] RE : " Frederic Dalleau
2007-05-13  6:15     ` Justin Patrin
2007-05-13 15:47       ` [Bluez-devel] RE : " Frederic Dalleau
2007-05-19 20:57         ` Justin Patrin
2007-05-13 16:19   ` [Bluez-devel] RE : Problems connecting to a bluetooth headset fao Marcel Frederic Dalleau
2007-05-13 16:44     ` [Bluez-devel] RE : RE : Problems connecting to a bluetooth headset faoMarcel Frederic Dalleau
2007-05-13 17:31       ` Petteri Räty
2007-05-13 18:29         ` Feig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.