From: mike <mikelee@avantwave.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] about link key
Date: Mon, 29 Nov 2004 16:03:30 +0800 [thread overview]
Message-ID: <41AAD7D2.4000902@avantwave.com> (raw)
Dear all
I am new to this place, if i make anything wrong please fix me. And
thanks for any help.
I am using bluez lib-2.6 util-2.6 hcidump-1.8 in ARM9 platiform.
Because of my devel-board with no input device, so i hardcode the pin
"0000" to /etc/bluetooth/pin, and bluepin script with echo "PIN:0000"
only. When i pair the device with my computer USB dongle, it goes no
problems. Pin code passed and link_key saved
But when i use rfcomm connect to my computer from the device,
hcidump state that link_key_negative_reply and ask for pin code again,
then i input the pin code in my computer . Finally , rfcomm output
"Can't connect RFCOMM socket: Connection refused"
This is linkkey generated in etc/bluetooth/link_key, the first 12 bytes
is the device bdaddr and computer bdaddr.
0000000 496a e001 0008 1568 07cb 000e 3eef 19bf
0000010 02fd b3df 7994 db7d d26a 17f3 fc00 bfff
0000020 13ed 0000
hcidump
> HCI Event: PIN Code Request(0x16) plen 6
68 15 CB 07 0E 00
< HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
68 15 CB 07 0E 00 04 30 30 30 30 00 00 00 00 00 00 00 00 00
00 00 00
> HCI Event: Command Complete(0x0e) plen 10
01 0D 04 00 68 15 CB 07 0E 00
> HCI Event: Link Key Notification(0x18) plen 23
68 15 CB 07 0E 00 EF 3E BF 19 FD 02 DF B3 94 79 7D DB 6A D2
F3 17 00
> HCI Event: Connect Complete(0x03) plen 11
00 2A 00 68 15 CB 07 0E 00 01 00
best regard
Mike,Lee
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
reply other threads:[~2004-11-29 8:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=41AAD7D2.4000902@avantwave.com \
--to=mikelee@avantwave.com \
--cc=bluez-users@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox