From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] link key PIN code authentication
Date: Thu, 20 Dec 2007 16:13:18 +0100 [thread overview]
Message-ID: <1198163598.8050.253.camel@aeonflux> (raw)
In-Reply-To: <951351190712200246v72181504u52169ed53a34fcd6@mail.gmail.com>
Hi Jason,
> Currently, I am working on a project to handle the pairing procedure.
> The aim is quite simple. If the authentication is required by the
> user, the program will detect whether the link key exists. If not, the
> program will print out several lines in the terminal and ask the user
> entering the PIN code. The authentication will perform based on the
> PIN code which the user provided and finally the new link key for this
> connection will be passed to the host for future connections if the
> authentication is successful.
>
> The bluez exploits the D-Bus to manage the pin code and link key.
> Since my application is very simple, I don't think I need the D-Bus
> framework.
D-Bus is a really simple framework and not using D-Bus means you can
also not use hcid. Which means you have to duplicate all the effort
inside hcid. If you have that much free time, have fun. However you time
could be spent more useful ;)
> HCI can send the command to LM by hci_send_cmd() method, but I cannot
> find the suitable methods which can read back the request from the
> LM.
You would have to open a raw HCI socket and read the HCI events. See the
Bluetooth specification for details. Please don't expect me to get into
details here. The hcid does all this and with the passkey agent
interface you have a nice framework to solve your problem. Use it.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-12-20 15:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 10:46 [Bluez-devel] link key PIN code authentication Jason Zhan
2007-12-20 15:13 ` Marcel Holtmann [this message]
2007-12-21 16:42 ` Jason Zhan
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=1198163598.8050.253.camel@aeonflux \
--to=marcel@holtmann.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox