Problem connection to handsfree handset.
Hello.
A few days ago I bought a bluetooth handsfree set, but my phone is not supporting the uploading of phonenumber to the set. Not a big problem, the set is functioning, but it would ofcource be nice to add the phonebook to the handset.
As a programmer I thought it would be ease to upload the phonebook to the handset with AT commands, but untill now I have not been able to connect to the handset correctly.
The following problem exists (Using Suse Linux 10.0 with the standard bluetooth tools (except hcidump ;-), downloaded version 1.24 ).
I think i have set up the connection correctly.
When I start minicom (setup to use /dev/rfcomm2, which is using channel
2) I get the response of the handsfree set in minicom as expected:
AT+BRSF=28 (As described in HANDS-FREE PROFILE 1.5).
Quoted 1 line
From that moment on it looks like the connection is dead. There is no
response on anything I type into minicom.
Is this a known problem with rfcomm, or is minicom not the correct tool to talk with the handset ?
I've attached the output of hcidump.
Any help is welcome.
Bye.
Johan.
HCI sniffer - Bluetooth packet analyzer ver 1.24
device: hci0 snap_len: 1028 filter: 0xffffffff < HCI Command: Create Connection (0x01|0x0005) plen 13
. . ` . . . . . . . . . .
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
. . . .
Quoted 1 line
HCI Event: Link Key Request (
0x17) plen 6
. . ` . . .
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
. . ` . . . . > . ] . j Q . R O I , w R
. ;
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10
. . . . . . ` . . .
Quoted 1 line
HCI Event: Connect Complete (
0x03) plen 11
. ) . . . ` . . . . .
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
) . . .
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6
. . . . ) .
Quoted 1 line
HCI Event: Page Scan Repetition Mode Change (
0x20) plen 7
. . ` . . . .
Quoted 1 line
HCI Event: Max Slots Change (
0x1b) plen 3
) . .
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0068 scid 0x0040 result 1 status 2
Connection pending - Authorization pending
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 16
L2CAP(s): Connect rsp: dcid 0x0068 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0068 flags 0x00 clen 4
MTU 1024 Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
SuccessQuoted 1 line
ACL data: handle 41 flags
0x02dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1024
< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0068 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0068 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
. ) . . .
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 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 41 flags 0x02 dlen 18
L2CAP(d): cid 0x0068 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8 dlci 4 frame_type 0 credit_flow 15 pri 7 ack_timer 0 frame_size 1019 max_retrans 0 credits 7
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 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 4 frame_type 0 credit_flow 14 pri 7 ack_timer 0 frame_size 127 max_retrans 0 credits 0
< ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0068 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 4 pf 1 ilen 0 fcs 0x96 Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 4 pf 1 ilen 0 fcs 0x5d
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(d): cid 0x0068 len 8 [psm 3]
RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 4 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 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 4 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 0 b2 0 b3 0 len 0
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(d): cid 0x0068 len 8 [psm 3]
RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 4 fc 0 rtc 1 rtr 1 ic 0 dv 0 b1 0 b2 0 b3 0 len 0Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 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 4 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(d): cid 0x0068 len 8 [psm 3]
RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2
dlci 4 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0
< ACL data: handle 41 flags 0x02 dlen 9
L2CAP(d): cid 0x0068 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 4 pf 1 ilen 0 fcs 0x79 credits 33Quoted 1 line
ACL data: handle 41 flags
0x02dlen 9
L2CAP(d): cid 0x0040 len 5 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 4 pf 1 ilen 0 fcs 0xa3 credits 15Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
Quoted 1 line
ACL data: handle 41 flags
0x02dlen 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 4 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0Quoted 1 line
ACL data: handle 41 flags
0x02dlen 19
L2CAP(d): cid 0x0040 len 15 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 4 pf 0 ilen 11 fcs 0xbf
A T + B R S F = 2 8 .
< ACL data: handle 41 flags 0x02 dlen 9
L2CAP(d): cid 0x0068 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 4 pf 0 ilen 1 fcs 0x65
A Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
< ACL data: handle 41 flags 0x02 dlen 9
L2CAP(d): cid 0x0068 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 4 pf 0 ilen 1 fcs 0x65
T Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
< ACL data: handle 41 flags 0x02 dlen 9
L2CAP(d): cid 0x0068 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 4 pf 0 ilen 1 fcs 0x65
Z Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .
< ACL data: handle 41 flags 0x02 dlen 9
L2CAP(d): cid 0x0068 len 5 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 4 pf 0 ilen 1 fcs 0x65
. Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
. ) . . .