From: "Harald Niederländer" <harald.niederlaender@ibmt.fraunhofer.de>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] [Fwd: Re: Problem connecting Bluetooth device]
Date: Wed, 21 Jun 2006 12:22:42 +0200 [thread overview]
Message-ID: <44991DF2.2000409@ibmt.fraunhofer.de> (raw)
In-Reply-To: <1150883159.3950.34.camel@localhost>
Hi Marcel,
here the output (extract) of hcidump -X -V:
If I try to connect the device the first time after resetting:
doro:/home/harald # rfcomm connect /dev/rfcomm0 00:11:B1:A2:01:C9
Can't connect RFCOMM socket: Permission denied
doro:/var/lib/bluetooth # hcidump -X -V -i hci0
HCI sniffer - Bluetooth packet analyzer ver 1.30
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:11:B1:A2:01:C9 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: PIN Code Request (0x16) plen 6
bdaddr 00:11:B1:A2:01:C9
< HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
bdaddr 00:11:B1:A2:01:C9 len 6 pin '111111'
> HCI Event: Command Complete (0x0e) plen 10
PIN Code Request Reply (0x01|0x000d) ncmd 1
status 0x00 bdaddr 00:11:B1:A2:01:C9
> HCI Event: Link Key Notification (0x18) plen 23
bdaddr 00:11:B1:A2:01:C9 key C608EE0874A86C91C615086C6CF41E63 type 0
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 6 bdaddr 00:11:B1:A2:01:C9 type ACL encrypt 0x01
< ACL data: handle 6 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040
...........
and here the second attempt :
doro:/home/harald # rfcomm connect /dev/rfcomm0 00:11:B1:A2:01:C9
Can't create RFCOMM TTY: Address already in use
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:11:B1:A2:01:C9 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:11:B1:A2:01:C9
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
bdaddr 00:11:B1:A2:01:C9 key 6EE7B663E623736747EE0371D9D25C74
> HCI Event: Command Complete (0x0e) plen 10
Link Key Request Reply (0x01|0x000b) ncmd 1
status 0x00 bdaddr 00:11:B1:A2:01:C9
> HCI Event: Connect Complete (0x03) plen 11
status 0x05 handle 6 bdaddr 00:11:B1:A2:01:C9 type ACL encrypt 0x00
Error: Authentication Failure
< HCI Command: Inquiry (0x01|0x0001) plen 5
lap 0x9e8b33 len 6 num 0
.......................
and in a message the alert :
....Authentication Error!
content of linkkeys:
doro:/usr/var/lib/bluetooth/00:0A:3A:64:97:46 # more linkkeys
00:11:B1:A2:01:C9 6EE7B663E623736747EE0371D9D25C74 0
Regards
Harald
Marcel Holtmann wrote:
> Hi Harald,
>
>
> Remove all linkkeys files and run "hcidump -X -V" again. Connect to your
> device and then compare the link key in the file with the values in the
> dump.
>
> Regards
>
> Marcel
>
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
>
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-06-21 10:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4497CE54.5080305@ibmt.fraunhofer.de>
2006-06-21 6:46 ` [Bluez-devel] [Fwd: Re: Problem connecting Bluetooth device] Harald Niederländer
2006-06-21 9:45 ` Marcel Holtmann
2006-06-21 10:22 ` Harald Niederländer [this message]
2006-06-21 10:38 ` Marcel Holtmann
2006-06-21 11:22 ` Harald Niederländer
2006-06-22 15:32 ` yang.guangxiang
2006-06-27 13:33 ` Harald Niederländer
2006-06-27 13:55 ` Wagner Bezerra
2006-06-28 6:02 ` Harald Niederländer
2006-06-28 7:32 ` Marcel Holtmann
2006-06-28 10:51 ` Harald Niederländer
2006-06-28 11:10 ` Marcel Holtmann
2006-06-28 11:29 ` Harald Niederländer
2006-06-28 11:37 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44991DF2.2000409@ibmt.fraunhofer.de \
--to=harald.niederlaender@ibmt.fraunhofer.de \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.