Re: Automatic pairing

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

 



Hi

On Wed, May 29, 2013 at 7:57 AM, Jonathan Nichols
<jnichols@xxxxxxxxxxxxxxxxxxxx> wrote:
> Hello,
>
>     I want to use bluez to set up a linux machine to automatically
> pair with devices that initiate pairings.  What is the recommended way
> of doing this?  I noticed that there is an autopair.c in bluez 5.5,
> but it isn't clear how to use it.  Is there any example code that
> shows how to use this file?
>
>     Any other suggestions for setting up a linux machine to
> automatically pair with any device that initiates a pairing?

Please have a look at the "simple-agent" tool in the bluez tree. The
bluez bluetoothd daemon allows dbus clients to provide "agents" which
are called for any incoming connection. This way you can either accept
or deny a new connection.
Agents are also asked for pin-input so you can always use your static
fixed PIN, if you want. This way, remote devices that don't know the
PIN will be automatically recjected.

Regards
David
--
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