Skip to contentSkip to conversation

trouble in handsfree profile

Bluez-users pramod gurav 1 participant 1 message Jan 23, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

hi list

i am trying to implement handsfree profile on my system.

i have downloaded a application which works to make my linux system a headset.

i am using a Bt dongle and trying to connect my nokia 6600 to my system.

i am able to pair them, and establish a ACL connection between them.

but i cant establish a sco connection. The RING code is being received on the system.

but not being heard. Some commands are being exchanged.

My doubt is what is the socket or interface from where the audio data can be received?

Is it a socket ID got from SCO connection?

I am really in trouble with this?

i am sending the log of hcidump command

[root@localhost dev]# /usr/local/sbin/hcidump -V -a

HCI sniffer - Bluetooth packet analyzer ver 1.40

device: hci0 snap_len: 1028 filter: 0xffffffff

< HCI Command: Read Voice Setting (0x03|0x0025) plen 0

Quoted 1 line

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:0E:6D:E0:E5:13 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000

Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Create Connection (0x01|0x0005) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 6 bdaddr 00:0E:6D:E0:E5:13 type ACL encrypt 0x00

< ACL data: handle 6 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 3 scid 0x0040

< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4

handle 6 policy 0x0f

Link policy: RSWITCH HOLD SNIFF PARK

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 6

    Write Link Policy Settings (0x02|0x000d) ncmd 1

    status 0x00 handle 6

< HCI Command: Remote Name Request (0x01|0x0019) plen 10

    bdaddr 00:0E:6D:E0:E5:13 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 6 slots 5

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 1 line

HCI Event: QoS Setup Complete (0x0d) plen 21

status 0x00 handle 6 flags 0

Service type: 0

Token rate: 44800

Peak bandwith: 0

Latency: 0

Delay variation: 0

Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:0E:6D:E0:E5:13 name 'Nokia 6600pamu'
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x006b scid 0x0040 result 1 status 2

Connection pending - Authorization pending

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x006b scid 0x0040 result 0 status 0

      Connection successful

< ACL data: handle 6 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x006b flags 0x00 clen 4

      MTU 1013
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 12

    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0

< ACL data: handle 6 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x006b flags 0x00 result 0 clen 0

      Success
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 2

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 18

    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4

      Success

      MTU 672

< ACL data: handle 6 flags 0x02 dlen 8

    L2CAP(d): cid 0x006b len 4 [psm 3]

      RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 1 line

ACL data: handle 6 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 6 flags 0x02 dlen 18

L2CAP(d): cid 0x006b len 14 [psm 3]

RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8

dlci 6 frame_type 0 credit_flow 15 pri 7 ack_timer 0

frame_size 667 max_retrans 0 credits 7

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 1 line

ACL data: handle 6 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 6 frame_type 0 credit_flow 14 pri 7 ack_timer 0

frame_size 667 max_retrans 0 credits 3

< ACL data: handle 6 flags 0x02 dlen 8

    L2CAP(d): cid 0x006b len 4 [psm 3]

      RFCOMM(s): SABM: cr 1 dlci 6 pf 1 ilen 0 fcs 0xd3
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

    bdaddr 00:0E:6D:E0:E5:13

< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22

    bdaddr 00:0E:6D:E0:E5:13 key 82A6A81362F6E7AC6372C07291B8CFA4
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Reply (0x01|0x000b) ncmd 1

    status 0x00 bdaddr 00:0E:6D:E0:E5:13

< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22

    bdaddr 00:0E:6D:E0:E5:13 key 82A6A81362F6E7AC6372C07291B8CFA4
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Reply (0x01|0x000b) ncmd 1

    status 0x00 bdaddr 00:0E:6D:E0:E5:13
Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 6 encrypt 0x01
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 8

    L2CAP(d): cid 0x0040 len 4 [psm 3]

      RFCOMM(s): UA: cr 1 dlci 6 pf 1 ilen 0 fcs 0x18

< ACL data: handle 6 flags 0x02 dlen 12

    L2CAP(d): cid 0x006b len 8 [psm 3]

      RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2

      dlci 6 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 7

< HCI Command: Add SCO Connection (0x01|0x0007) plen 4

handle 6 ptype 0x00e0

Packet type: HV1 HV2 HV3

Quoted 1 line

ACL data: handle 6 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 6 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 7

< ACL data: handle 6 flags 0x02 dlen 12

    L2CAP(d): cid 0x006b len 8 [psm 3]

      RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2

      dlci 6 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 7
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Add SCO Connection (0x01|0x0007) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 2

Quoted 1 line

ACL data: handle 6 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 6 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 0 b3 0 len 7

< ACL data: handle 6 flags 0x02 dlen 9

    L2CAP(d): cid 0x006b len 5 [psm 3]

      RFCOMM(d): UIH: cr 1 dlci 6 pf 1 ilen 0 fcs 0x93 credits 33
Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 1 bdaddr 00:0E:6D:E0:E5:13 type SCO encrypt 0x01
Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 6 slots 1

< ACL data: handle 6 flags 0x02 dlen 19

    L2CAP(d): cid 0x006b len 15 [psm 3]

      RFCOMM(d): UIH: cr 1 dlci 6 pf 0 ilen 11 fcs 0x8f

      A T + B R S F = 3 1 .
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 2

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 9

    L2CAP(d): cid 0x0040 len 5 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 1 ilen 0 fcs 0x49 credits 5
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 27

    L2CAP(d): cid 0x0040 len 23 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 0 ilen 19 fcs 0x55

      . . + B R S F :   4 7 . . . . O K . .

< ACL data: handle 6 flags 0x02 dlen 18

    L2CAP(d): cid 0x006b len 14 [psm 3]

      RFCOMM(d): UIH: cr 1 dlci 6 pf 0 ilen 10 fcs 0x8f

      A T + C I N D = ? .
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 7 lines

ACL data: handle 6 flags 0x02 dlen 26

ACL data: handle 6 flags 0x01 dlen 26

ACL data: handle 6 flags 0x01 dlen 26

ACL data: handle 6 flags 0x01 dlen 21

    L2CAP(d): cid 0x0040 len 95 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 1 ilen 90 fcs 0x49 credits 1

      . . + C I N D :   ( " c a l l " , ( 0 ,

      1 ) ) , ( " s e r v i c e " , ( 0 , 1 )

      ) , ( " c a l l _ s e t u p " , ( 0 - 3

      ) ) , ( " c a l l s e t u p " , ( 0 - 3

      ) ) . . . . O K . .

< ACL data: handle 6 flags 0x02 dlen 17

    L2CAP(d): cid 0x006b len 13 [psm 3]

      RFCOMM(d): UIH: cr 1 dlci 6 pf 0 ilen 9 fcs 0x8f

      A T + C I N D ? .
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 3 lines

ACL data: handle 6 flags 0x02 dlen 26

ACL data: handle 6 flags 0x01 dlen 7

    L2CAP(d): cid 0x0040 len 29 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 1 ilen 24 fcs 0x49 credits 1

      . . + C I N D :   0 , 1 , 0 , 0 . . . .

      O K . .

< ACL data: handle 6 flags 0x02 dlen 24

    L2CAP(d): cid 0x006b len 20 [psm 3]

      RFCOMM(d): UIH: cr 1 dlci 6 pf 0 ilen 16 fcs 0x8f

      A T + C M E R = 3 , 0 , 0 , 1 .
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 15

    L2CAP(d): cid 0x0040 len 11 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 1 ilen 6 fcs 0x49 credits 1

      . . O K . .

< ACL data: handle 6 flags 0x02 dlen 24

    L2CAP(d): cid 0x006b len 20 [psm 3]

      RFCOMM(d): UIH: cr 1 dlci 6 pf 0 ilen 16 fcs 0x8f

      A T + C M E R = 3 , 0 , 0 , 1 .
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 15

    L2CAP(d): cid 0x0040 len 11 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 1 ilen 6 fcs 0x49 credits 1

      . . O K . .

< ACL data: handle 6 flags 0x02 dlen 18

    L2CAP(d): cid 0x006b len 14 [psm 3]

      RFCOMM(d): UIH: cr 1 dlci 6 pf 0 ilen 10 fcs 0x8f

      A T + C L I P = 1 .
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 15

    L2CAP(d): cid 0x0040 len 11 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 1 ilen 6 fcs 0x49 credits 1

      . . O K . .

< ACL data: handle 6 flags 0x02 dlen 18

    L2CAP(d): cid 0x006b len 14 [psm 3]

      RFCOMM(d): UIH: cr 1 dlci 6 pf 0 ilen 10 fcs 0x8f

      A T + C H L D = ? .
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 6 packets 1

Quoted 3 lines

ACL data: handle 6 flags 0x02 dlen 26

ACL data: handle 6 flags 0x01 dlen 17

    L2CAP(d): cid 0x0040 len 39 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 1 ilen 34 fcs 0x49 credits 1

      . . + C H L D :   ( 0 , 1 , 1 x , 2 , 2

      x , 3 , 4 ) . . . . O K . .

***********this is till i receive a ring on my mobile***********

After receiving a ring i see something like this....

Quoted 5 lines

ACL data: handle 6 flags 0x02 dlen 26

ACL data: handle 6 flags 0x01 dlen 26

ACL data: handle 6 flags 0x01 dlen 22

    L2CAP(d): cid 0x0040 len 70 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 0 ilen 66 fcs 0x55

      . . + C I E V :   3 , 1 . . . . + C I E

      V :   4 , 1 . . . . R I N G . . . . + C

      L I P :   " + 9 1 9 9 1 6 1 7 5 2 6 7 "

      , 1 4 5 . .
Quoted 3 lines

ACL data: handle 6 flags 0x02 dlen 26

ACL data: handle 6 flags 0x01 dlen 20

    L2CAP(d): cid 0x0040 len 42 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 0 ilen 38 fcs 0x55

      . . R I N G . . . . + C L I P :   " + 9

      1 9 9 1 6 1 7 5 2 6 7 " , 1 4 5 . .
Quoted 3 lines

ACL data: handle 6 flags 0x02 dlen 26

ACL data: handle 6 flags 0x01 dlen 20

    L2CAP(d): cid 0x0040 len 42 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 0 ilen 38 fcs 0x55

      . . R I N G . . . . + C L I P :   " + 9

      1 9 9 1 6 1 7 5 2 6 7 " , 1 4 5 . .
Quoted 3 lines

ACL data: handle 6 flags 0x02 dlen 26

ACL data: handle 6 flags 0x01 dlen 24

    L2CAP(d): cid 0x0040 len 46 [psm 3]

      RFCOMM(d): UIH: cr 0 dlci 6 pf 0 ilen 42 fcs 0x55

      . . + C I E V :   1 , 0 . . . . + C I E

      V :   3 , 0 . . . . + C I E V :   4 , 0

But when i receive the call no voice is heard...

please help me..

thanks in advance...

thank you

Pramod

Save all your chat conversations. Find them online at http://in.messenger.yahoo.com/webmessengerpromo.php

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

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users