* [Bluez-users] bluez-3.22: hcid segfault
@ 2008-06-02 21:56 jayjwa
2008-06-22 20:58 ` Johan Hedberg
0 siblings, 1 reply; 4+ messages in thread
From: jayjwa @ 2008-06-02 21:56 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 6166 bytes --]
I researched the hcid segfault further. It seems to be in libaudio.so. These
binaries were compiled with no optimization, debug symbols, and --enable-debug
switch. Most of my libs have their symbols as well.
hcid[10625]: segfault at 10 ip b7c65586 sp bfe39700 error 6 in libaudio.so[b7c5b000+1e000]
Reproduce:
Start dbus, hcid, passkey-agent & auth-agent for device, etc.
Turn on headset to initiate connection (or depress hs button)
Send data to headset with command similar to 'sox -t mp3 file.mp3 -t alsa pcm.bluetooth
hcid seems to segfault when loading audio plugin libaudio.so to handle the request
hcid[10808]: HFP Service Level Connection established
hcid[10808]: State changed /org/bluez/audio/device0: HEADSET_STATE_CONNECT_IN_PROGRESS -> HEADSET_STATE_CONNECTED
hcid[10808]: connect: Socket operation on non-socket (88)
hcid[10808]: Received AT+BTRH?
hcid[10808]: Badly formated or unrecognized command: AT+BTRH?
hcid[10808]: Received AT+VGS=09
hcid[10808]: Received AT+VGM=15
hcid[10808]: Unix client disconnected (fd=14)
hcid[10808]: State changed /org/bluez/audio/device0: HEADSET_STATE_CONNECTED -> HEADSET_STATE_DISCONNECTED
hcid[10808]: link_key_request (sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
hcid[10808]: Got a svc srch attr req
hcid[10808]: Seq type : 53
hcid[10808]: Data size : 5
hcid[10808]: Data type: 0x1a
hcid[10808]: No of elements : 1
hcid[10808]: Bytes scanned: 7
hcid[10808]: Max Attr expected: 38
hcid[10808]: Seq type : 53
hcid[10808]: Data size : 3
hcid[10808]: Data type: 0x09
hcid[10808]: No of elements : 1
hcid[10808]: Continuation State size : 0
hcid[10808]: Entries in attr seq : 1
hcid[10808]: AttrDataType : 9
hcid[10808]: Response count : 1
hcid[10808]: Local PDU size : 19
hcid[10808]: Net PDU size : 21
hcid[10808]: Sending rsp. status 0
hcid[10808]: Bytes Sent : 29
hcid[10808]: Requesting authorization for device 00:1A:45:01:F9:42, UUID 0000111F-0000-1000-8000-00805F9B34FB
hcid[10808]: handle_authorize_request
hcid[10808]: authorize request was forwarded
hcid[10808]: authorize reply
hcid[10808]: successfull reply was sent
hcid[10808]: auth_agent_reply: returning
hcid[10808]: Accepted headset connection from 00:1A:45:01:F9:42 for /org/bluez/audio/device0
hcid[10808]: State changed /org/bluez/audio/device0: HEADSET_STATE_DISCONNECTED -> HEADSET_STATE_CONNECTED
hcid[10808]: link_key_notify (sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
hcid[10808]: Got a svc srch attr req
hcid[10808]: Seq type : 53
hcid[10808]: Data size : 5
hcid[10808]: Data type: 0x1a
hcid[10808]: No of elements : 1
hcid[10808]: Bytes scanned: 7
hcid[10808]: Max Attr expected: 38
hcid[10808]: Seq type : 53
hcid[10808]: Data size : 3
hcid[10808]: Data type: 0x09
hcid[10808]: No of elements : 1
hcid[10808]: Continuation State size : 0
hcid[10808]: Entries in attr seq : 1
hcid[10808]: AttrDataType : 9
hcid[10808]: Response count : 1
hcid[10808]: Local PDU size : 15
hcid[10808]: Net PDU size : 17
hcid[10808]: Sending rsp. status 0
hcid[10808]: Bytes Sent : 25
hcid[10808]: Received AT+BRSF=26
hcid[10808]: Received AT+CIND=?
hcid[10808]: Received AT+CIND?
hcid[10808]: Received AT+CMER=3, 0, 0, 1
hcid[10808]: Received AT+BTRH?
hcid[10808]: Badly formated or unrecognized command: AT+BTRH?
hcid[10808]: Received AT+VGS=09
hcid[10808]: Received AT+VGM=15
hcid[10808]: Accepted new client connection on unix socket (fd=14)
hcid[10808]: Audio API: received BT_GETCAPABILITIES_REQ
hcid[10808]: Audio API: sending BT_GETCAPABILITIES_RSP
hcid[10808]: Audio API: received BT_SETCONFIGURATION_REQ
hcid[10808]: config sco - device = 00:1A:45:01:F9:42 access_mode = 2
hcid[10808]: connect: Invalid argument (22)
Program received signal SIGSEGV, Segmentation fault.
0xb7cb8586 in headset_request_stream (dev=0x9981ea0, cb=0xb7cb945b <headset_setup_complete>, user_data=0x99840c8)
at headset.c:1716
1716 hs->pending->target_state = HEADSET_STATE_PLAYING;
(gdb) bt
#0 0xb7cb8586 in headset_request_stream (dev=0x9981ea0, cb=0xb7cb945b <headset_setup_complete>, user_data=0x99840c8)
at headset.c:1716
#1 0xb7cb9feb in start_config (dev=0x9981ea0, client=0x99840c8) at unix.c:624
#2 0xb7cbaad5 in handle_setconfiguration_req (client=0x99840c8, req=0xbfe8bb18) at unix.c:938
#3 0xb7cbae21 in client_cb (chan=0x997e358, cond=G_IO_IN, data=0x99840c8) at unix.c:1041
#4 0xb7f172cd in ?? () from /usr/lib/libglib-2.0.so.0
#5 0x0997e358 in ?? ()
#6 0x00000001 in ?? ()
#7 0x099840c8 in ?? ()
#8 0xb7f53240 in ?? () from /usr/lib/libglib-2.0.so.0
#9 0xb7f5355c in g_idle_funcs () from /usr/lib/libglib-2.0.so.0
#10 0x0997ca50 in ?? ()
#11 0xbfe8bc38 in ?? ()
#12 0xb7ee9a20 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
Backtrace stopped: frame did not save the PC
(gdb)
(gdb) info sharedlibrary
>>From To Syms Read Shared Object Library
0xb7f707f0 0xb7f88a8f Yes /lib/ld-linux.so.2
0xb7f58ca0 0xb7f59b88 Yes /usr/lib/libgmodule-2.0.so.0
0xb7f54a60 0xb7f55a68 Yes /lib/libdl.so.2
0xb7ec9020 0xb7f1a268 Yes /usr/lib/libglib-2.0.so.0
0xb7e93e50 0xb7eaf424 Yes /usr/lib/libpcre.so.0
0xb7e82070 0xb7e8dda0 Yes /usr/lib/libz.so.1
0xb7e53a00 0xb7e79be4 Yes /usr/lib/libdbus-1.so.3
0xb7e40010 0xb7e4a2c8 Yes /usr/lib/libbluetooth.so.2
0xb7cf9170 0xb7e04c78 Yes /lib/libc.so.6
0xb7f64c20 0xb7f6c308 Yes /usr/lib/bluetooth/plugins/libnetwork.so
0xb7f60270 0xb7f60378 Yes /usr/lib/bluetooth/plugins/libstorage.so
0xb7cda720 0xb7ce03c8 Yes /usr/lib/bluetooth/plugins/libserial.so
0xb7ccf3b0 0xb7cd5738 Yes /usr/lib/bluetooth/plugins/libinput.so
0xb7cb1300 0xb7cc7868 Yes /usr/lib/bluetooth/plugins/libaudio.so
(gdb) info frame
Stack level 0, frame at 0xbfe8ba80:
eip = 0xb7cb8586 in headset_request_stream (headset.c:1716); saved eip 0xb7cb9feb
called by frame at 0xbfe8bab0
source language c.
Arglist at 0xbfe8ba78, args: dev=0x9981ea0, cb=0xb7cb945b <headset_setup_complete>, user_data=0x99840c8
Locals at 0xbfe8ba78, Previous frame's sp is 0xbfe8ba80
Saved registers:
ebx at 0xbfe8ba74, ebp at 0xbfe8ba78, eip at 0xbfe8ba7c
[-- Attachment #2: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] bluez-3.22: hcid segfault
2008-06-02 21:56 [Bluez-users] bluez-3.22: hcid segfault jayjwa
@ 2008-06-22 20:58 ` Johan Hedberg
2008-06-28 1:16 ` jayjwa
2008-06-28 11:39 ` jayjwa
0 siblings, 2 replies; 4+ messages in thread
From: Johan Hedberg @ 2008-06-22 20:58 UTC (permalink / raw)
To: BlueZ users
Hi,
On Jun 3, 2008, at 0:56, jayjwa wrote:
> I researched the hcid segfault further. It seems to be in
> libaudio.so. These binaries were compiled with no optimization,
> debug symbols, and --enable-debug switch. Most of my libs have their
> symbols as well.
>
> hcid[10625]: segfault at 10 ip b7c65586 sp bfe39700 error 6 in
> libaudio.so[b7c5b000+1e000]
I took a look at the code that the backtrace refers to and it has been
changed a little bit since 3.32. Could you try with 3.33 or even
better with CVS HEAD and see if the problem still exists?
Johan
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] bluez-3.22: hcid segfault
2008-06-22 20:58 ` Johan Hedberg
@ 2008-06-28 1:16 ` jayjwa
2008-06-28 11:39 ` jayjwa
1 sibling, 0 replies; 4+ messages in thread
From: jayjwa @ 2008-06-28 1:16 UTC (permalink / raw)
To: BlueZ users
On Sun, 22 Jun 2008, Johan Hedberg wrote:
-> > hcid[10625]: segfault at 10 ip b7c65586 sp bfe39700 error 6 in
-> > libaudio.so[b7c5b000+1e000]
->
-> I took a look at the code that the backtrace refers to and it has been
-> changed a little bit since 3.32. Could you try with 3.33 or even better with
-> CVS HEAD and see if the problem still exists?
Must be a lag in this digest... anyway, I see 3.34 is out, so I'll see what
happens with those.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] bluez-3.22: hcid segfault
2008-06-22 20:58 ` Johan Hedberg
2008-06-28 1:16 ` jayjwa
@ 2008-06-28 11:39 ` jayjwa
1 sibling, 0 replies; 4+ messages in thread
From: jayjwa @ 2008-06-28 11:39 UTC (permalink / raw)
To: BlueZ users
On Sun, 22 Jun 2008, Johan Hedberg wrote:
-> On Jun 3, 2008, at 0:56, jayjwa wrote:
-> > I researched the hcid segfault further. It seems to be in libaudio.so.
-> > These binaries were compiled with no optimization, debug symbols, and
-> > --enable-debug switch. Most of my libs have their symbols as well.
-> >
-> > hcid[10625]: segfault at 10 ip b7c65586 sp bfe39700 error 6 in
-> > libaudio.so[b7c5b000+1e000]
->
-> I took a look at the code that the backtrace refers to and it has been
-> changed a little bit since 3.32. Could you try with 3.33 or even better with
-> CVS HEAD and see if the problem still exists?
bluez-utils-3.34
bluez-libs-3.34
dbus-1.2.1
linux-2.6.25.9
I had to remove the persistant info at /var/lib/bluetooth and make two tries,
but then it does work, with a few error messages.
2008-06-28T06:47:18-04:00 vdrl kernel: Bluetooth: Core ver 2.11
2008-06-28T06:47:18-04:00 vdrl kernel: NET: Registered protocol family 31
2008-06-28T06:47:18-04:00 vdrl kernel: Bluetooth: HCI device and connection
manager initialized
2008-06-28T06:47:18-04:00 vdrl kernel: Bluetooth: HCI socket layer initialized
2008-06-28T06:47:18-04:00 vdrl kernel: usb 3-2: New USB device found,
idVendor=050d, idProduct=0121
2008-06-28T06:47:18-04:00 vdrl kernel: usb 3-2: New USB device strings: Mfr=1,
Product=2, SerialNumber=0
2008-06-28T06:47:18-04:00 vdrl kernel: usb 3-2: Product: BELKIN BLUETOOTH USB
ADAPTER CL. 1
2008-06-28T06:47:18-04:00 vdrl kernel: usb 3-2: Manufacturer: Broadcom Corp
2008-06-28T06:47:18-04:00 vdrl kernel: Bluetooth: HCI USB driver ver 2.9
2008-06-28T06:47:18-04:00 vdrl kernel: usbcore: registered new interface
driver hci_usb
2008-06-28T06:47:30.087086-04:00 vdrl hcid[29690]: Bluetooth HCI daemon
2008-06-28T06:47:30.117071-04:00 vdrl hcid[29690]: Parsing
/etc/bluetooth/main.conf failed: No such file or directory
2008-06-28T06:47:30.126023-04:00 vdrl hcid[29690]: Starting SDP server
2008-06-28T06:47:30-04:00 vdrl kernel: Bluetooth: L2CAP ver 2.9
2008-06-28T06:47:30-04:00 vdrl kernel: Bluetooth: L2CAP socket layer
initialized
2008-06-28T06:47:30-04:00 vdrl kernel: Bluetooth: BNEP (Ethernet Emulation)
ver 1.2
2008-06-28T06:47:30-04:00 vdrl kernel: Bluetooth: BNEP filters: protocol
multicast
2008-06-28T06:47:30-04:00 vdrl kernel: Bridge firewalling registered
2008-06-28T06:47:30-04:00 vdrl kernel: pan0: Dropping NETIF_F_UFO since no
NETIF_F_HW_CSUM feature.
2008-06-28T06:47:30.203716-04:00 vdrl hcid[29690]: bridge pan0 created
2008-06-28T06:47:30.203768-04:00 vdrl hcid[29690]: Registered manager
path:/org/bluez/network
2008-06-28T06:47:30.219186-04:00 vdrl hcid[29690]: Registered server
path:/org/bluez/network/nap
2008-06-28T06:47:30.227305-04:00 vdrl hcid[29690]: Registered server
path:/org/bluez/network/gn
2008-06-28T06:47:30.235760-04:00 vdrl hcid[29690]: Registered server
path:/org/bluez/network/panu
2008-06-28T06:47:30-04:00 vdrl kernel: Bluetooth: RFCOMM socket layer
initialized
2008-06-28T06:47:30-04:00 vdrl kernel: Bluetooth: RFCOMM TTY layer initialized
2008-06-28T06:47:30-04:00 vdrl kernel: Bluetooth: RFCOMM ver 1.8
2008-06-28T06:47:30.258386-04:00 vdrl hcid[29690]: Registered manager
path:/org/bluez/serial
2008-06-28T06:47:30.341767-04:00 vdrl hcid[29690]: Starting experimental
netlink support
2008-06-28T06:47:30.341820-04:00 vdrl hcid[29690]: Failed to find Bluetooth
netlink family
2008-06-28T06:47:30.341854-04:00 vdrl hcid[29690]: Can't init plugin
/usr/lib/bluetooth/plugins/libnetlink.so
2008-06-28T06:47:30.354813-04:00 vdrl hcid[29690]: Registered input manager
path:/org/bluez/input
2008-06-28T06:47:30.363906-04:00 vdrl hcid[29690]: Unix socket created: 17
2008-06-28T06:47:30.363955-04:00 vdrl hcid[29690]: Registered manager
path:/org/bluez/audio
2008-06-28T06:47:30.382773-04:00 vdrl hcid[29690]: Loading device
00:1A:45:01:F9:42 (headset )
2008-06-28T06:47:30.383807-04:00 vdrl hcid[29690]: HCI dev 0 registered
2008-06-28T06:47:30.393245-04:00 vdrl hcid[29690]: HCI dev 0 up
2008-06-28T06:47:30.393541-04:00 vdrl hcid[29690]: Device hci0 has been added
2008-06-28T06:47:30.399975-04:00 vdrl hcid[29690]: Starting security manager 0
2008-06-28T06:47:30.454606-04:00 vdrl hcid[29690]: Device hci0 has been
activated
2008-06-28T06:50:14.468152-04:00 vdrl hcid[29690]: Default passkey agent
(:1.1, /org/bluez/passkey_agent_29722) registered
2008-06-28T06:50:18.675424-04:00 vdrl hcid[29690]: Default authorization agent
(:1.2, /org/bluez/auth_agent_29725) registered
2008-06-28T06:50:28.139157-04:00 vdrl hcid[29690]: link_key_request
(sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
No answer here ^^^^^^^^^^^^^^^^^
2008-06-28T06:53:01.092042-04:00 vdrl hcid[29690]: Audio API: received
BT_GETCAPABILITIES_REQ
2008-06-28T06:53:05.042499-04:00 vdrl hcid[29690]: Audio API: sending
BT_GETCAPABILITIES_RSP
2008-06-28T06:53:05.063284-04:00 vdrl hcid[29690]: Audio API: received
BT_SETCONFIGURATION_REQ
2008-06-28T06:53:05.063333-04:00 vdrl hcid[29690]: config sco - device =
00:1A:45:01:F9:42 access_mode = 2
2008-06-28T06:53:05.166825-04:00 vdrl hcid[29690]: link_key_request
(sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
2008-06-28T06:53:05.218628-04:00 vdrl hcid[29690]: connect(): Connection
refused (111)
...results in this here.
2008-06-28T06:53:05.218808-04:00 vdrl hcid[29690]: Audio API: sending
BT_SETCONFIGURATION_RSP
2008-06-28T06:53:05.218843-04:00 vdrl hcid[29690]: Audio API: received
BT_STREAMSTART_REQ
2008-06-28T06:53:05.218876-04:00 vdrl hcid[29690]: Audio API: sending
BT_STREAMSTART_RSP
2008-06-28T06:53:05.218909-04:00 vdrl hcid[29690]: Audio API: sending
BT_STREAMFD_IND
2008-06-28T06:53:05.218954-04:00 vdrl hcid[29690]: unix_sendmsg_fd: Bad file
descriptor(9)
2008-06-28T06:53:05.218987-04:00 vdrl hcid[29690]: resume failed
2008-06-28T06:53:05.219020-04:00 vdrl hcid[29690]: Audio API: sending
BT_STREAMSTART_RSP
>>From the hcid side with debugging:
hcid[29770]: Default passkey agent (:1.4, /org/bluez/passkey_agent_29801)
registered
hcid[29770]: Default authorization agent (:1.5, /org/bluez/auth_agent_29803)
registered
hcid[29770]: link_key_request (sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
hcid[29770]: HCIGETAUTHINFO failed (-1209832840)
hcid[29770]: kernel auth requirements = 0x00
hcid[29770]: stored link key type = 0x00
The only reference to HCIGETAUTHINFO I could find on the 'net was here:
http://www.ohloh.net/projects/bluez/commits?page=3
Use strerror to show HCIGETAUTHINFO ioctl error
by Johan Hedberg (Using name `jhedberg') on 2008-06-11 07:50 (4 days ago)
I killed hcid and removed the persistant info at /var/lib/bluetooth/(bt_address)
and now althought I still see the HCIGETAUTHINFO error, it does get further:
hcid[29891]: Default passkey agent (:1.7, /org/bluez/passkey_agent_29903)
registered
hcid[29891]: Default authorization agent (:1.8, /org/bluez/auth_agent_29904)
registered
hcid[29891]: link_key_request (sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
hcid[29891]: HCIGETAUTHINFO failed (-1210684808)
hcid[29891]: kernel auth requirements = 0x00
hcid[29891]: pin_code_request (sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
hcid[29891]: Calling PasskeyAgent.Request: name=:1.7,
path=/org/bluez/passkey_agent_29903
hcid[29891]: hcid_dbus_new_auth_request
hcid[29891]: link_key_notify (sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
hcid[29891]: hcid_dbus_bonding_process_complete: status=00
hcid[29891]: adapter_get_device(00:1A:45:01:F9:42)
hcid[29891]: adapter_create_device(00:1A:45:01:F9:42)
hcid[29891]: Creating device /hci0/dev_00_1A_45_01_F9_42
hcid[29891]: hcid_dbus_bonding_process_complete: removing temporary flag
hcid[29891]: Got a svc srch attr req
hcid[29891]: Seq type : 53
hcid[29891]: Data size : 5
hcid[29891]: Data type: 0x1a
hcid[29891]: No of elements : 1
hcid[29891]: Bytes scanned: 7
hcid[29891]: Max Attr expected: 38
hcid[29891]: Seq type : 53
hcid[29891]: Data size : 3
hcid[29891]: Data type: 0x09
hcid[29891]: No of elements : 1
hcid[29891]: Continuation State size : 0
hcid[29891]: Entries in attr seq : 1
hcid[29891]: AttrDataType : 9
hcid[29891]: Response count : 1
hcid[29891]: Local PDU size : 19
hcid[29891]: Net PDU size : 21
hcid[29891]: Sending rsp. status 0
hcid[29891]: Bytes Sent : 29
hcid[29891]: link_key_request (sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
hcid[29891]: HCIGETAUTHINFO failed (-1210684808)
hcid[29891]: kernel auth requirements = 0x00
hcid[29891]: stored link key type = 0x00
hcid[29891]: Selecting default device
hcid[29891]: authorize request was forwarded
hcid[29891]: State changed /org/bluez/audio/device0:
HEADSET_STATE_DISCONNECTED -> HEADSET_STATE_CONNECT_IN_PROGRESS
hcid[29891]: authorize reply
hcid[29891]: Accepted headset connection from 00:1A:45:01:F9:42 for
/org/bluez/audio/device0
hcid[29891]: State changed /org/bluez/audio/device0:
HEADSET_STATE_CONNECT_IN_PROGRESS -> HEADSET_STATE_CONNECTED
hcid[29891]: auth_agent_reply: returning
hcid[29891]: link_key_notify (sba=00:0A:3A:7C:5C:74, dba=00:1A:45:01:F9:42)
hcid[29891]: hcid_dbus_bonding_process_complete: status=00
hcid[29891]: hcid_dbus_bonding_process_complete: no pending auth request
hcid[29891]: Audio service discovery completed with success
hcid[29891]: Found Hansfree record
hcid[29891]: Discovered Handsfree service on RFCOMM channel 1
hcid[29891]: Found Headset record
hcid[29891]: Got a svc srch attr req
hcid[29891]: Seq type : 53
hcid[29891]: Data size : 5
hcid[29891]: Data type: 0x1a
hcid[29891]: No of elements : 1
hcid[29891]: Bytes scanned: 7
hcid[29891]: Max Attr expected: 38
hcid[29891]: Seq type : 53
hcid[29891]: Data size : 3
hcid[29891]: Data type: 0x09
hcid[29891]: No of elements : 1
hcid[29891]: Continuation State size : 0
hcid[29891]: Entries in attr seq : 1
hcid[29891]: AttrDataType : 9
hcid[29891]: Response count : 1
hcid[29891]: Local PDU size : 15
hcid[29891]: Net PDU size : 17
hcid[29891]: Sending rsp. status 0
hcid[29891]: Bytes Sent : 25
hcid[29891]: Received AT+BRSF=26
hcid[29891]: Received AT+CIND=?
hcid[29891]: Received AT+CIND?
hcid[29891]: Received AT+CMER=3, 0, 0, 1
hcid[29891]: Received AT+BTRH?
hcid[29891]: Badly formated or unrecognized command: AT+BTRH?
hcid[29891]: Received AT+VGS=09
hcid[29891]: Received AT+VGM=15
and the connection is there:
Connections:
> ACL 00:1A:45:01:F9:42 handle 11 state 1 lm MASTER AUTH ENCRYPT
SECURE
hcid[29891]: Accepted new client connection on unix socket (fd=23)
hcid[29891]: Audio API: received BT_GETCAPABILITIES_REQ
hcid[29891]: Audio API: sending BT_GETCAPABILITIES_RSP
hcid[29891]: Audio API: received BT_SETCONFIGURATION_REQ
hcid[29891]: config sco - device = 00:1A:45:01:F9:42 access_mode = 2
hcid[29891]: State changed /org/bluez/audio/device0: HEADSET_STATE_CONNECTED
-> HEADSET_STATE_PLAY_IN_PROGRESS
hcid[29891]: SCO socket opened for headset /org/bluez/audio/device0
hcid[29891]: SCO fd=24
hcid[29891]: Audio API: sending BT_SETCONFIGURATION_RSP
hcid[29891]: State changed /org/bluez/audio/device0:
HEADSET_STATE_PLAY_IN_PROGRESS -> HEADSET_STATE_PLAYING
hcid[29891]: Audio API: received BT_STREAMSTART_REQ
hcid[29891]: Audio API: sending BT_STREAMSTART_RSP
hcid[29891]: Audio API: sending BT_STREAMFD_IND
hcid[29891]: Audio API: received BT_STREAMSTART_REQ
hcid[29891]: Audio API: sending BT_STREAMSTART_RSP
hcid[29891]: Audio API: sending BT_STREAMFD_IND
hcid[29891]: Received AT+VGM=15
hcid[29891]: Unix client disconnected (fd=23)
hcid[29891]: State changed /org/bluez/audio/device0: HEADSET_STATE_PLAYING ->
HEADSET_STATE_CONNECTED
No ka-boom so it looks OK. As a side note, I still need the kernel sco patch
for a device such as:
Requesting information ...
BD Address: 00:1A:45:01:F9:42
OUI Company: GN Netcom as (00-1A-45)
Device Name: Jabra BT135
LMP Version: 2.0 (0x3) LMP Subversion: 0xbfa
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xfc 0xfe 0x0b 0x00 0x08 0x08 0x00 0x00
<encryption> <slot offset> <timing accuracy> <role switch>
<hold mode> <sniff mode> <RSSI> <channel quality> <SCO link>
<HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD>
<paging scheme> <transparent SCO> <AFH cap. slave>
<AFH cap. master>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-06-28 11:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02 21:56 [Bluez-users] bluez-3.22: hcid segfault jayjwa
2008-06-22 20:58 ` Johan Hedberg
2008-06-28 1:16 ` jayjwa
2008-06-28 11:39 ` jayjwa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox