2008-03-19 06:45:17

by Paul

[permalink] [raw]
Subject: [Bluez-users] Can't connect RFCOMM socket

Hi,

I am using bluez-utils-3.28 and am trying to connect to
a Nokia phone from my PC which has a BT dongle.I run hcid .I scan for other
devies using hcitool scan..and connect to my Phone using....

$hcid &
$passkey-agent --default 0000 &
$ hcitool scan
$ rfcomm connect 0 00:0E:6D:E0:E5:13 1

The Phone asks for the pin . I enter "0000" as the PIN .After sometime I get
the error message
Can't connect RFCOMM socket: Resource temporarily unavailable.

hcidump shows that (After I enter the PIN on the phone )

> HCI Event: PIN Code Request (0x16) plen 6
< ACL data: handle 1 flags 0x02 dlen 8
L2CAP(d): cid 0x0064 len 4 [psm 3]
RFCOMM(s): DISC: cr 1 dlci 2 pf 1 ilen 0 fcs 0xb8
< ACL data: handle 1 flags 0x02 dlen 8
L2CAP(d): cid 0x0064 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 0x0064 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> 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 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 12
L2CAP(s): Disconn rsp: dcid 0x0064 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Disconn Complete (0x05) plen 4

I tried after removing the link keys
(/var/lib/bluetooth/XX:XX:XX:XX:XX:XX/) .Still I get the same error..What
could be the problem here..?
When I try the same thing with a PC with Fedora Core5 (without the
latest bluez and passkey-agent), I am asked to enter the PIN when I enter it
on the phone and the connection is successful..

Thank you for your time and consideration,
regards,
Matt.


Attachments:
(No filename) (1.95 kB)
(No filename) (2.50 kB)
(No filename) (228.00 B)
(No filename) (164.00 B)
Download all attachments