[maemo-developers] [maemo-developers] Re: Bluetooth headset - not really working?

From: Razvan Dragomirescu razvan.dragomirescu at gmail.com
Date: Sun Dec 18 21:53:49 EET 2005
Sorry, wrong hcidump file, that one wasn't verbose. This one is:

HCI sniffer - Bluetooth packet analyzer ver 1.28
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0
> HCI Event: Command Complete (0x0e) plen 6
    Read Voice Setting (0x03|0x0025) ncmd 1
    status 0x00 voice setting 0x0060
< HCI Command: Create Connection (0x01|0x0005) plen 13
    bdaddr 00:07:A4:03:33:33 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
    Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Link Key Request (0x17) plen 6
    bdaddr 00:07:A4:03:33:33
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
    bdaddr 00:07:A4:03:33:33 key 8F9AB53B0E669C0F7E324AA14A8DB535
> HCI Event: Command Complete (0x0e) plen 10
    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr 00:07:A4:03:33:33
> HCI Event: Connect Complete (0x03) plen 11
    status 0x00 handle 1 bdaddr 00:07:A4:03:33:33 type ACL encrypt 0x01
< ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
    handle 1 policy 0x0f
    Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Command Complete (0x0e) plen 6
    Write Link Policy Settings (0x02|0x000d) ncmd 1
    status 0x00 handle 1
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0048 scid 0x0040 result 1 status 2
      Connection pending - Authorization pending
> ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0048 scid 0x0040 result 0 status 0
      Connection successful
< ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0048 flags 0x00 clen 4
      MTU 1024
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
      Success
> ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
      MTU 1024
< ACL data: handle 1 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0048 flags 0x00 result 0 clen 0
      Success
< ACL data: handle 1 flags 0x02 dlen 8
    L2CAP(d): cid 0x0048 len 4 [psm 3]
      RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 2
> ACL data: handle 1 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 1 flags 0x02 dlen 18
    L2CAP(d): cid 0x0048 len 14 [psm 3]
      RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
      dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0
      frame_size 1019 max_retrans 0 credits 7
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 3]
      RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
      dlci 2 frame_type 0 credit_flow 14 pri 7 ack_timer 0
      frame_size 127 max_retrans 0 credits 0
< ACL data: handle 1 flags 0x02 dlen 8
    L2CAP(d): cid 0x0048 len 4 [psm 3]
      RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92
< ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(d): cid 0x0048 len 8 [psm 3]
      RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
      dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
> ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(d): cid 0x0040 len 8 [psm 3]
      RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
      dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 0 b2 0 b3 0 len 0
< ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(d): cid 0x0048 len 8 [psm 3]
      RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
      dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 0 b2 0 b3 0 len 0
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 2
> ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(d): cid 0x0040 len 8 [psm 3]
      RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
      dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
< ACL data: handle 1 flags 0x02 dlen 9
    L2CAP(d): cid 0x0048 len 5 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 2 pf 1 ilen 0 fcs 0x86 credits 33
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 9
    L2CAP(d): cid 0x0040 len 5 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 2 pf 1 ilen 0 fcs 0x5c credits 15
> HCI Event: Mode Change (0x14) plen 6
    status 0x00 handle 1 mode 0x02 interval 2048
    Mode: Sniff
< HCI Command: Add SCO Connection (0x01|0x0007) plen 4
    handle 1 ptype 0x00e0
    Packet type: HV1 HV2 HV3
> HCI Event: Command Status (0x0f) plen 4
    Add SCO Connection (0x01|0x0007) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
    status 0x00 handle 257 bdaddr 00:07:A4:03:33:33 type SCO encrypt 0x01
> ACL data: handle 1 flags 0x02 dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 2 pf 0 ilen 10 fcs 0x40
      0000: 41 54 2b 56 47 53 3d 31  31 0d                    AT+VGS=11.
< ACL data: handle 1 flags 0x02 dlen 14
    L2CAP(d): cid 0x0048 len 10 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 2 pf 0 ilen 6 fcs 0x9a
      0000: 0d 0a 4f 4b 0d 0a                                 ..OK..
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
< ACL data: handle 1 flags 0x02 dlen 18
    L2CAP(d): cid 0x0048 len 14 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 2 pf 0 ilen 10 fcs 0x9a
      0000: 41 54 2b 56 47 53 3d 31  31 0d                    AT+VGS=11.
< ACL data: handle 1 flags 0x02 dlen 17
    L2CAP(d): cid 0x0048 len 13 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 2 pf 0 ilen 9 fcs 0x9a
      0000: 41 54 2b 56 47 4d 3d 31  0d                       AT+VGM=1.
< HCI Command: Disconnect (0x01|0x0006) plen 3
    handle 257 reason 0x13
    Reason: Remote User Terminated Connection
> HCI Event: Command Status (0x0f) plen 4
    Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 2
> HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 257 reason 0x16
    Reason: Connection Terminated by Local Host
< ACL data: handle 1 flags 0x02 dlen 8
    L2CAP(d): cid 0x0048 len 4 [psm 3]
      RFCOMM(s): DISC: cr 1 dlci 2 pf 1 ilen 0 fcs 0xb8
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92
< ACL data: handle 1 flags 0x02 dlen 8
    L2CAP(d): cid 0x0048 len 4 [psm 3]
      RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
< ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0048 scid 0x0040


Thanks,
Razvan


On 12/18/05, Razvan Dragomirescu <razvan.dragomirescu at gmail.com> wrote:
>
> Hello everyone,
>
> I have spent the past 2 days trying to get a JABRA 250 Bluetooth headset
> to work with my Nokia 770. I followed the instructions at http://maemo.org/maemowiki/BluetoothHeadset
>  and everything went fine, up to the point described in the Wiki. I have
> also compiled the alsa-utils package to get the "aplay" utility and tried to
> play some sound.
>
> Nokia770-45:~# ./aplay -D plughw:Headset /media/mmc1/xp.wav
> Playing WAVE '/media/mmc1/xp.wav' : Signed 16 bit Little Endian, Rate
> 22050 Hz, Stereo
>
> This command never returns unless I press ctrl-c and kill it. There seems
> to be some sort of connection established, but all I hear in the headset is
> some hissing and popping, I have no idea how to describe it. It's definitely
> not silence, but it has no connection to the content of the WAV being played
> either. Here's what btsco says during all this:
>
> Nokia770-45:~# btsco -v 00:07:A4:03:33:33 1
> btsco v0.4c
> Device is 1:0
> Voice setting: 0x0060
> RFCOMM channel 1 connected
> Nokia770-45:~# btsco -v 00:07:A4:03:33:33 1
> btsco v0.4c
> Device is 1:0
> Voice setting: 0x0060
> RFCOMM channel 1 connected
> speaker volume: 0 mic volume: 0
> i/o needed: connecting sco...
> connected SCO channel
> Done setting sco fd
> recieved AT+VGS=11
> Sending up speaker change 11
> speaker volume: 11 mic volume: 1
> driver is not in use
> disconnected SCO channel
>
> The last 2 lines appear after I press CTRL-C to kill "aplay" and then
> CTRL-C to kill btsco.
>
> The same hissing/popping sounds are heard when using the "hstest" tool
> from bluez-utils (this one plays the sound directly over Bluetooth as far as
> I can tell). And also the same type of sound is heard when using
> chan_bluetooth ( http://www.crazygreek.co.uk/content/chan_bluetooth) with
> the ported version of Asterisk on the Nokia 770.
>
> This seems to have been reported before (not for the 770): http://sourceforge.net/tracker/index.php?func=detail&aid=1273754&group_id=116589&atid=678258
>  . However, the solution "pskey mapsco 0" only seems to work with CSR
> Bluetooth chips, and the 770 has a TI chip.
>
> If anyone's interested, I'm attaching the output of a "hcidump -X -V"
> during all this.
>
> HCI sniffer - Bluetooth packet analyzer ver 1.28
> < HCI Command: Read Voice Setting (0x03|0x0025) plen 0
> > HCI Event: Command Complete (0x0e) plen 6
> < HCI Command: Create Connection (0x01|0x0005) plen 13
> > HCI Event: Command Status (0x0f) plen 4
> > HCI Event: Link Key Request (0x17) plen 6
> < HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
> > HCI Event: Command Complete (0x0e) plen 10
> > HCI Event: Connect Complete (0x03) plen 11
> < ACL data: handle 1 flags 0x02 dlen 12
>     L2CAP(s): Connect req: psm 3 scid 0x0040
> < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> > HCI Event: Command Complete (0x0e) plen 6
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > ACL data: handle 1 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0048 scid 0x0040 result 1 status 2
>       Connection pending - Authorization pending
> > ACL data: handle 1 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0048 scid 0x0040 result 0 status 0
>       Connection successful
> < ACL data: handle 1 flags 0x02 dlen 16
>     L2CAP(s): Config req: dcid 0x0048 flags 0x00 clen 4
>       MTU 1024
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > ACL data: handle 1 flags 0x02 dlen 14
>     L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
>       Success
> > ACL data: handle 1 flags 0x02 dlen 16
>     L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
>       MTU 1024
> < ACL data: handle 1 flags 0x02 dlen 14
>     L2CAP(s): Config rsp: scid 0x0048 flags 0x00 result 0 clen 0
>       Success
> < ACL data: handle 1 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0048 len 4 [psm 3]
>       RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > ACL data: handle 1 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0040 len 4 [psm 3]
>       RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> < ACL data: handle 1 flags 0x02 dlen 18
>     L2CAP(d): cid 0x0048 len 14 [psm 3]
>       RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
>       dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0
>       frame_size 1019 max_retrans 0 credits 7
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > ACL data: handle 1 flags 0x02 dlen 18
>     L2CAP(d): cid 0x0040 len 14 [psm 3]
>       RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
>       dlci 2 frame_type 0 credit_flow 14 pri 7 ack_timer 0
>       frame_size 127 max_retrans 0 credits 0
> < ACL data: handle 1 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0048 len 4 [psm 3]
>       RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > ACL data: handle 1 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0040 len 4 [psm 3]
>       RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92
> < ACL data: handle 1 flags 0x02 dlen 12
>     L2CAP(d): cid 0x0048 len 8 [psm 3]
>       RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
>       dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
> > ACL data: handle 1 flags 0x02 dlen 12
>     L2CAP(d): cid 0x0040 len 8 [psm 3]
>       RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
>       dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 0 b2 0 b3 0 len 0
> < ACL data: handle 1 flags 0x02 dlen 12
>     L2CAP(d): cid 0x0048 len 8 [psm 3]
>       RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
>       dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 0 b2 0 b3 0 len 0
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > ACL data: handle 1 flags 0x02 dlen 12
>     L2CAP(d): cid 0x0040 len 8 [psm 3]
>       RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2
>       dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
> < ACL data: handle 1 flags 0x02 dlen 9
>     L2CAP(d): cid 0x0048 len 5 [psm 3]
>       RFCOMM(d): UIH: cr 1 dlci 2 pf 1 ilen 0 fcs 0x86 credits 33
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > ACL data: handle 1 flags 0x02 dlen 9
>     L2CAP(d): cid 0x0040 len 5 [psm 3]
>       RFCOMM(d): UIH: cr 0 dlci 2 pf 1 ilen 0 fcs 0x5c credits 15
> > HCI Event: Mode Change (0x14) plen 6
> < HCI Command: Add SCO Connection (0x01|0x0007) plen 4
> > HCI Event: Command Status (0x0f) plen 4
> > HCI Event: Connect Complete (0x03) plen 11
> > ACL data: handle 1 flags 0x02 dlen 18
>     L2CAP(d): cid 0x0040 len 14 [psm 3]
>       RFCOMM(d): UIH: cr 0 dlci 2 pf 0 ilen 10 fcs 0x40
> < ACL data: handle 1 flags 0x02 dlen 14
>     L2CAP(d): cid 0x0048 len 10 [psm 3]
>       RFCOMM(d): UIH: cr 1 dlci 2 pf 0 ilen 6 fcs 0x9a
> > HCI Event: Number of Completed Packets (0x13) plen 5
> < ACL data: handle 1 flags 0x02 dlen 18
>     L2CAP(d): cid 0x0048 len 14 [psm 3]
>       RFCOMM(d): UIH: cr 1 dlci 2 pf 0 ilen 10 fcs 0x9a
> < ACL data: handle 1 flags 0x02 dlen 17
>     L2CAP(d): cid 0x0048 len 13 [psm 3]
>       RFCOMM(d): UIH: cr 1 dlci 2 pf 0 ilen 9 fcs 0x9a
> < HCI Command: Disconnect (0x01|0x0006) plen 3
> > HCI Event: Command Status (0x0f) plen 4
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > HCI Event: Disconn Complete (0x05) plen 4
> < ACL data: handle 1 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0048 len 4 [psm 3]
>       RFCOMM(s): DISC: cr 1 dlci 2 pf 1 ilen 0 fcs 0xb8
> > HCI Event: Number of Completed Packets (0x13) plen 5
> > ACL data: handle 1 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0040 len 4 [psm 3]
>       RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92
> < ACL data: handle 1 flags 0x02 dlen 8
>     L2CAP(d): cid 0x0048 len 4 [psm 3]
>       RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
> < ACL data: handle 1 flags 0x02 dlen 12
>     L2CAP(s): Disconn req: dcid 0x0048 scid 0x0040
>
> Has anyone been successful in establishing SCO connections between a Nokia
> 770 and a Bluetooth headset? According to this: http://article.gmane.org/gmane.linux.bluez.devel/6728
>  , Nokia is working on Bluetooth headset support. Could anyone at Nokia
> give us an update?
>
> Thank you,
> Razvan
>
>
> --
> Razvan Dragomirescu
> Chief Technology Officer
> Cayenne Graphics SRL
>



--
Razvan Dragomirescu
Chief Technology Officer
Cayenne Graphics SRL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20051218/b2240cdb/attachment.htm 
More information about the maemo-developers mailing list