Re: Right way of pairing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
                                         http://www.os4i.com
                                         http://www.ficheux.org
I would love to change the world, but they won't give me the source code


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux