From: Pierre Ficheux <pierre.ficheux@openwide.fr>
To: linux-bluetooth@vger.kernel.org
Subject: Re: Right way of pairing?
Date: Sat, 28 Nov 2009 17:40:25 +0100 [thread overview]
Message-ID: <4B115279.3060705@openwide.fr> (raw)
In-Reply-To: <912bb79a0911272152y6fb12a05p299090e97ac91a54@mail.gmail.com>
nirav rabara a écrit :
> Hi,
>
> I am newbie to bluetooth world, For pairing I am connecting RFCOM
> socket, I can show this connection on /org/bluez/789(pid of
> process)/hci0 as dev_00_05_AD_EF_F8_A5 and linkkey information in
> linkkeys file. but when I close this RFCOM socket (or when application
> kills) all the information regarding the device pairing getting lost.
>
> Is this the right way of pairing ??
>
> I know that API has also available for device pairing, but I want to
> use Dbus as less as possible due to the time take by dbus fucntions
> calls and also I am not so comfortable with dbus API.
>
> Can anybody suggest me the right way to pair devices?? Is it
> compulsory to use DBUS API for pairing OR any other way without using
> Dbus API
>
> Your suggestion would be a great help for me.....
>
You can use "simple-agent". It's a text based python script you can find
in the "test" directory of bluez sources.
Once your phone request for pairing, the original version of the script
allows you to input the PIN code. You can modify the script to send a
default PIN code value such as 0000.
Works fine for me.
regards
--
Pierre FICHEUX -/- CTO OW/OS4I, France -\- pierre.ficheux@openwide.fr
http://www.os4i.com
http://www.ficheux.org
I would love to change the world, but they won't give me the source code
next prev parent reply other threads:[~2009-11-28 16:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-28 5:52 Right way of pairing? nirav rabara
2009-11-28 16:40 ` Pierre Ficheux [this message]
2009-11-30 4:30 ` nirav rabara
2009-11-30 6:17 ` nirav rabara
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=4B115279.3060705@openwide.fr \
--to=pierre.ficheux@openwide.fr \
--cc=linux-bluetooth@vger.kernel.org \
/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