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

* Re: [Bluez-devel] Problems connecting to a bluetooth headset
  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 16:19   ` [Bluez-devel] RE : Problems connecting to a bluetooth headset fao Marcel Frederic Dalleau
  0 siblings, 2 replies; 10+ messages in thread
From: Justin Patrin @ 2007-05-13  2:00 UTC (permalink / raw)
  To: bluez-devel

On 5/12/07, Justin Patrin <papercrane@gmail.com> wrote:
> 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 info 00:03:89:C4:04:6F
Requesting information ...
        BD Address:  00:03:89:C4:04:6F
        Device Name: 260Plantronics
        LMP Version: 2.0 (0x3) LMP Subversion: 0xb12
        Manufacturer: Cambridge Silicon Radio (10)
        Features: 0xff 0xff 0x8f 0x78 0x18 0x18 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>
                <enhanced iscan> <interlaced iscan> <interlaced pscan>
                <inquiry with RSSI> <AFH cap. slave> <AFH class. slave>
                <AFH cap. master> <AFH class. master> <extended features>

> # 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
>


-- 
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

* [Bluez-devel] RE :  Problems connecting to a bluetooth headset
  2007-05-13  2:00 ` Justin Patrin
@ 2007-05-13  5:12   ` Frederic Dalleau
  2007-05-13  6:15     ` Justin Patrin
  2007-05-13 16:19   ` [Bluez-devel] RE : Problems connecting to a bluetooth headset fao Marcel Frederic Dalleau
  1 sibling, 1 reply; 10+ messages in thread
From: Frederic Dalleau @ 2007-05-13  5:12 UTC (permalink / raw)
  To: papercrane, BlueZ development

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]


> 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

Hi,

The default is not to connect until there is an audio stream.
As long as a2dpd do not connect, the pairing wil not be requested.
Start your media player with pcm.a2dpd as output and 
or try the following commands :
a2dpd_ctl Connect

But nothing will be heard if no media is sent.

Frederic

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 2950 bytes --]

[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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

* Re: [Bluez-devel] RE :  Problems connecting to a bluetooth headset
  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
  0 siblings, 1 reply; 10+ messages in thread
From: Justin Patrin @ 2007-05-13  6:15 UTC (permalink / raw)
  To: Frederic Dalleau; +Cc: BlueZ development

On 5/12/07, Frederic Dalleau <Frederic.Dalleau@access-company.com> wrote:
>
> > 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
>
> Hi,
>
> The default is not to connect until there is an audio stream.
> As long as a2dpd do not connect, the pairing wil not be requested.
> Start your media player with pcm.a2dpd as output and
> or try the following commands :
> a2dpd_ctl Connect
>

I did try doing a connect as well but had forgotten that part. Here's
the output from a2dpd when I try connecting.

A2DPD[22:57:27.590]: a2dpd_handler_func:
A2DPD[22:57:27.590]: a2dpd_dbus_Connect: Begin
A2DPD[22:57:27.590]: a2dpd_dbus_Connect: OK
A2DPD[22:57:27.590]: pollfd_cb_ctl_socket: Processing 'c' 99
A2DPD[22:57:27.590]: a2dp_state_connect: State AVDTP_STATEX_SDP_CONNECTING
A2DPD[22:57:27.590]: a2dp_state_machine: Role is INITIATOR
A2DPD[22:57:27.590]: a2dp_state_machine: (errno=115:Operation now in
progress)SDP connection on socket 10
A2DPD[22:57:27.590]: a2dp_state_machine: State AVDTP_STATEX_SDP_CONNECTING_WAIT
A2DPD[22:57:27.590]: a2dpd_signal_state: Connecting 00:03:89:C4:04:6F
A2DPD[22:57:28.454]: a2dp_state_machine: SDP connection terminated
A2DPD[22:57:28.528]: get_avdtp_psm: Parsing results
A2DPD[22:57:28.528]: get_avdtp_psm: Record
A2DPD[22:57:28.528]: get_avdtp_psm: Service Search OK
A2DPD[22:57:28.557]: get_avdtp_psm: Checking non spec audio
A2DPD[22:57:28.557]: a2dp_state_machine: Found psm 25
A2DPD[22:57:28.557]: a2dp_state_machine: State AVDTP_STATEX_CTL_CONNECTING
A2DPD[22:57:28.557]: a2dp_state_machine: Socket is 10
A2DPD[22:57:28.557]: a2dp_state_machine: (errno=115:Operation now in
progress)State AVDTP_STATEX_CTL_CONNECTING_WAIT
A2DPD[22:57:28.786]: a2dp_state_machine: (errno=111:Connection
refused)CTL connection failed
A2DPD[22:57:28.786]: a2dp_state_machine: State AVDTP_STATEX_DISCONNECTING
A2DPD[22:57:28.786]: a2dp_disconnect:
A2DPD[22:57:28.786]: a2dp_stream_stop: Closing stream socket 0
A2DPD[22:57:28.786]: a2dp_stream_stop: Closed
A2DPD[22:57:28.786]: a2dp_stream_stop: State AVDTP_STATE_IDLE
A2DPD[22:57:28.786]: a2dp_disconnect: Closing ctl socket 10
A2DPD[22:57:28.786]: a2dp_disconnect: Closed
A2DPD[22:57:28.786]: a2dp_disconnect: State AVDTP_STATE_DISCONNECTED
A2DPD[22:57:28.786]: a2dpd_signal_state: Disconnected


I've also tried to run vlc and got timeouts. I ran vlc with:
# vlc --aout alsa --alsadev a2dpd file.mp3
and I get a bunch of:
[00000302] alsa audio output error: write failed (Broken pipe)

and a2dpd outputs this:

A2DPD[23:08:33.811]: sco_new:
A2DPD[23:08:33.811]: sco_new: State SCO_STATE_DISCONNECTED
A2DPD[23:08:33.811]: sco_state_disconnect: Filtering state : already
disconnected
A2DPD[23:08:33.811]: main_loop: Bluetooth Device Settings [44100 hz, 2
channels, 16 bits]
A2DPD[23:08:33.812]: avrcp_new: Listening for AVRCP on socket 9
A2DPD[23:08:33.812]: avrcp_new: 0x80a73f0
A2DPD[23:08:52.620]: pollfd_cb_sockfd: Client 10 got index 0
A2DPD[23:08:52.620]: pollfd_cb_clients: Client 0: Error detected
(err=1, toc=1, err=0, hup=1)
A2DPD[23:08:52.620]: disconnect_client:
A2DPD[23:08:52.644]: pollfd_cb_sockfd: Client 10 got index 0
A2DPD[23:08:52.644]: stream_client_state_streamingsetup: PLAYBACK
thread client_index=0, socket=10, id=0 started (44100 Hz, 2 channels,
16 bits, ring 16384, threshold 16384)

and then this over and over:

A2DPD[23:08:52.872]: a2dp_state_connect: State AVDTP_STATEX_SDP_CONNECTING
A2DPD[23:08:52.872]: a2dp_state_machine: Role is INITIATOR
A2DPD[23:08:52.872]: a2dp_state_machine: (errno=115:Operation now in
progress)SDP connection on socket 11
A2DPD[23:08:52.872]: a2dp_state_machine: State AVDTP_STATEX_SDP_CONNECTING_WAIT
A2DPD[23:08:52.872]: a2dpd_signal_state: Connecting 00:03:89:C4:04:6F
A2DPD[23:08:53.472]: a2dp_state_machine: SDP connection terminated
A2DPD[23:08:53.554]: get_avdtp_psm: Parsing results
A2DPD[23:08:53.554]: get_avdtp_psm: Record
A2DPD[23:08:53.554]: get_avdtp_psm: Service Search OK
A2DPD[23:08:53.586]: get_avdtp_psm: Checking non spec audio
A2DPD[23:08:53.586]: a2dp_state_machine: Found psm 25
A2DPD[23:08:53.586]: a2dp_state_machine: State AVDTP_STATEX_CTL_CONNECTING
A2DPD[23:08:53.587]: a2dp_state_machine: Socket is 11
A2DPD[23:08:53.587]: a2dp_state_machine: (errno=115:Operation now in
progress)State AVDTP_STATEX_CTL_CONNECTING_WAIT
A2DPD[23:08:53.852]: a2dp_state_machine: (errno=111:Connection
refused)CTL connection failed
A2DPD[23:08:53.852]: a2dp_state_machine: State AVDTP_STATEX_DISCONNECTING
A2DPD[23:08:53.852]: a2dp_disconnect:
A2DPD[23:08:53.852]: a2dp_stream_stop: Closing stream socket 0
A2DPD[23:08:53.852]: a2dp_stream_stop: Closed
A2DPD[23:08:53.852]: a2dp_stream_stop: State AVDTP_STATE_IDLE
A2DPD[23:08:53.852]: a2dp_disconnect: Closing ctl socket 11
A2DPD[23:08:53.852]: a2dp_disconnect: Closed
A2DPD[23:08:53.852]: a2dp_disconnect: State AVDTP_STATE_DISCONNECTED
A2DPD[23:08:53.852]: a2dpd_signal_state: Disconnected


> But nothing will be heard if no media is sent.
>

And nothing was heard except for a few low beeps from the headset. So
it is getting *something*....I'll see if the manual has any info on
what the bleeps and bloops mean.

-- 
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

* [Bluez-devel] RE : RE : Problems connecting to a bluetooth headset
  2007-05-13  6:15     ` Justin Patrin
@ 2007-05-13 15:47       ` Frederic Dalleau
  2007-05-19 20:57         ` Justin Patrin
  0 siblings, 1 reply; 10+ messages in thread
From: Frederic Dalleau @ 2007-05-13 15:47 UTC (permalink / raw)
  To: papercrane; +Cc: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 351 bytes --]


> A2DPD[22:57:28.786]: a2dp_state_machine: (errno=111:Connection
> refused)CTL connection failed

Make your device discoverable and pairable, you should be asked pairing.
Or install bluez-gnome


> I've also tried to run vlc and got timeouts. I ran vlc with:

Not a real problem, what does another player says?
xmms mplayer amarok mpg123

[-- Attachment #1.2: Type: text/html, Size: 816 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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

* [Bluez-devel] RE : Problems connecting to a bluetooth headset fao Marcel
  2007-05-13  2:00 ` Justin Patrin
  2007-05-13  5:12   ` [Bluez-devel] RE : " Frederic Dalleau
@ 2007-05-13 16:19   ` Frederic Dalleau
  2007-05-13 16:44     ` [Bluez-devel] RE : RE : Problems connecting to a bluetooth headset faoMarcel Frederic Dalleau
  1 sibling, 1 reply; 10+ messages in thread
From: Frederic Dalleau @ 2007-05-13 16:19 UTC (permalink / raw)
  To: papercrane, BlueZ development, bluez-devel


[-- Attachment #1.1: Type: text/plain, Size: 334 bytes --]

Marcel,

> A2DPD[18:44:14.790]: a2dp_make_listen_socket: (errno=13:Permission
> denied)Cannot bind socket 6 for psm 25

I'm wondering what causes this, the bind call is failing with errno=EPERM.
Do you know of something in bluez config or something security related that could prevent binding if not root?

Thanks,
Frederic

[-- Attachment #1.2: Type: text/html, Size: 794 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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

* [Bluez-devel] RE : RE : Problems connecting to a bluetooth headset faoMarcel
  2007-05-13 16:19   ` [Bluez-devel] RE : Problems connecting to a bluetooth headset fao Marcel Frederic Dalleau
@ 2007-05-13 16:44     ` Frederic Dalleau
  2007-05-13 17:31       ` Petteri Räty
  0 siblings, 1 reply; 10+ messages in thread
From: Frederic Dalleau @ 2007-05-13 16:44 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 431 bytes --]


>> A2DPD[18:44:14.790]: a2dp_make_listen_socket: (errno=13:Permission
>> denied)Cannot bind socket 6 for psm 25

> I'm wondering what causes this, the bind call is failing with errno=EPERM.
> Do you know of something in bluez config or something security related that could prevent binding if not root?

I should have RTFM 
http://people.csail.mit.edu/albert/bluez-intro/x145.html#port-numbers
Thanks,
Frederic





[-- Attachment #1.2: Type: text/html, Size: 1010 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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

* Re: [Bluez-devel] RE : RE : Problems connecting to a bluetooth headset faoMarcel
  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
  0 siblings, 1 reply; 10+ messages in thread
From: Petteri Räty @ 2007-05-13 17:31 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]

Frederic Dalleau kirjoitti:
> 
>>> A2DPD[18:44:14.790]: a2dp_make_listen_socket: (errno=13:Permission
>>> denied)Cannot bind socket 6 for psm 25
> 
>> I'm wondering what causes this, the bind call is failing with errno=EPERM.
>> Do you know of something in bluez config or something security related
> that could prevent binding if not root?
> 
> I should have RTFM
> http://people.csail.mit.edu/albert/bluez-intro/x145.html#port-numbers
> Thanks,
> Frederic
> 
> 

from http://bluetooth-alsa.sourceforge.net/build.html
"... and run a2dpd (it's not advised to run it as root)."

Hehe. I wonder what the developers do then as it doesn't work as a
normal user.

Regards,
Petteri


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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

* Re: [Bluez-devel] RE : RE : Problems connecting to a bluetooth headset faoMarcel
  2007-05-13 17:31       ` Petteri Räty
@ 2007-05-13 18:29         ` Feig
  0 siblings, 0 replies; 10+ messages in thread
From: Feig @ 2007-05-13 18:29 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1081 bytes --]

Petteri Räty wrote:
> Frederic Dalleau kirjoitti:
>   
>>>> A2DPD[18:44:14.790]: a2dp_make_listen_socket: (errno=13:Permission
>>>> denied)Cannot bind socket 6 for psm 25
>>>>         
>>> I'm wondering what causes this, the bind call is failing with errno=EPERM.
>>> Do you know of something in bluez config or something security related
>>>       
>> that could prevent binding if not root?
>>
>> I should have RTFM
>> http://people.csail.mit.edu/albert/bluez-intro/x145.html#port-numbers
>> Thanks,
>> Frederic
>>
>>
>>     
>
> from http://bluetooth-alsa.sourceforge.net/build.html
> "... and run a2dpd (it's not advised to run it as root)."
>
> Hehe. I wonder what the developers do then as it doesn't work as a
> normal user.
>
> Regards,
> Petteri
>   
I got it to work as a normal user, I don't remember exactly what I did, 
but I'm pretty sure that all it needed was a 'chmod a+x' on the required 
files.

I do think that this could be handled better with an /etc/init.d/ script 
that ran a2dpd as the user. Or even hook it into the 
/etc/init.d/bluetooth script.

-John

[-- Attachment #1.2: Type: text/html, Size: 1833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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

* Re: [Bluez-devel] RE : RE : Problems connecting to a bluetooth headset
  2007-05-13 15:47       ` [Bluez-devel] RE : " Frederic Dalleau
@ 2007-05-19 20:57         ` Justin Patrin
  0 siblings, 0 replies; 10+ messages in thread
From: Justin Patrin @ 2007-05-19 20:57 UTC (permalink / raw)
  To: Frederic Dalleau; +Cc: BlueZ development

On 5/13/07, Frederic Dalleau <Frederic.Dalleau@access-company.com> wrote:
>
> > A2DPD[22:57:28.786]: a2dp_state_machine: (errno=111:Connection
> > refused)CTL connection failed
>
> Make your device discoverable and pairable, you should be asked pairing.

Yes, I tried that, as I mentioned previously. Nothing happened.

> Or install bluez-gnome
>

I got bluez-gnome installed and lo and behold...pairing worked. It
looks like bluez doesn't support the default pin any more and requires
a (dbus?) listener to do the pin entry, meaning that bluez-gnome works
but nothing else does.

>
> > I've also tried to run vlc and got timeouts. I ran vlc with:
>
> Not a real problem, what does another player says?
> xmms mplayer amarok mpg123
>
>

vlc plays fine through a2dpd now that I've paired. I've also gotten
mpg321 piped to aplay [2] to work, however this isn't a great
solution. mpd refuses to play through a2dpd despite all of my attempts
to make it work. It looks like mpd simply doesn't do alsa well...I'm
trying to debug it with the mpd developers.

Aside from that I found the sound quality horrible.... Playing on my
MacBook Pro [1] with some utulities which I think are derived from
older code from this project, the sound quality is pretty good but
when I used mpg321 and aplay on my Zaurus (arm) with a2dpd the sound
was very crunchy for lack of a better word. Cymbals especially were
very nasty sounding.

[1] http://david.connolly.name/blog/hub/mac/2007/02/23/Stereo-Bluetooth-Profile-A2DP-on-Mac-OS-X-Tiger.html?page=comments

[2] mpg321 -s file.mp3 | aplay -c 2 -r 44100 -f S16_LE -D a2dpd -

-- 
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.