Re: [Bluez-users] Can't connect RFCOMM socket:Resourcetemporarilyunavailable

Hamid MENOUAR
2007-08-24T15:09:04Z

You're right, it was that the problem. I started hcid and now
everything is working well.

Thank you very much Marcel,
Hamid

On 8/24/07, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Hamid,
>
> > Oups! sorry, here is the output then:
> >
> > [root@localhost ~]# hcidump -X -V
> > HCI sniffer - Bluetooth packet analyzer ver 1.18
> > device: hci0 snap_len: 1028 filter: 0xffffffff
> > < HCI Command: Create Connection (0x01|0x0005) plen 13
> > bdaddr 00:0D:18:60:14:8E 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: Connect Complete (0x03) plen 11
> > status 0x00 handle 12 bdaddr 00:0D:18:60:14:8E type ACL encrypt 0x00
> > < ACL data: handle 12 flags 0x02 dlen 12
> > L2CAP(s): Connect req: psm 3 scid 0x0040
> > < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> > handle 12 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 12
> > > HCI Event: Max Slots Change (0x1b) plen 3
> > 0000: 0c 00 05 ...
> > > ACL data: handle 12 flags 0x02 dlen 16
> > L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0040 result 1 status 2
> > Connection pending - Authorization pending
> > > HCI Event: Number of Completed Packets (0x13) plen 5
> > handle 12
> > > HCI Event: PIN Code Request (0x16) plen 6
> > bdaddr 00:0D:18:60:14:8E
> > > ACL data: handle 12 flags 0x02 dlen 16
> > L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 3 status 0
> > Connection refused - security block
> > > HCI Event: Disconn Complete (0x05) plen 4
> > status 0x00 handle 12 reason 0x13
> > Reason: Remote User Teminated Connection
>
> you don't have hcid running and so no PIN code handling at. So you can't
> access the device. As simple as that.
>
> Regards
>
> Marcel