linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Automatic pairing
@ 2013-05-29  5:57 Jonathan Nichols
  2013-05-29  6:11 ` Jonathan Nichols
  2013-06-01  9:41 ` David Herrmann
  0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Nichols @ 2013-05-29  5:57 UTC (permalink / raw)
  To: linux-bluetooth

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?

Thanks,

jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Automatic pairing
  2013-05-29  5:57 Automatic pairing Jonathan Nichols
@ 2013-05-29  6:11 ` Jonathan Nichols
  2013-06-01  9:41 ` David Herrmann
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Nichols @ 2013-05-29  6:11 UTC (permalink / raw)
  To: linux-bluetooth

Just to follow up ... I didn't quite mean that I wanted to pair with
any device that initiates a pairing.  Ideally, I would like to hard
code a non-trivial pin, so that the linux machine automatically pairs
with any device that knows that pin.

On Tue, May 28, 2013 at 10:57 PM, Jonathan Nichols
<jnichols@alumni.princeton.edu> 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?
>
> Thanks,
>
> jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Automatic pairing
  2013-05-29  5:57 Automatic pairing Jonathan Nichols
  2013-05-29  6:11 ` Jonathan Nichols
@ 2013-06-01  9:41 ` David Herrmann
  1 sibling, 0 replies; 3+ messages in thread
From: David Herrmann @ 2013-06-01  9:41 UTC (permalink / raw)
  To: Jonathan Nichols; +Cc: linux-bluetooth@vger.kernel.org

Hi

On Wed, May 29, 2013 at 7:57 AM, Jonathan Nichols
<jnichols@alumni.princeton.edu> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-01  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29  5:57 Automatic pairing Jonathan Nichols
2013-05-29  6:11 ` Jonathan Nichols
2013-06-01  9:41 ` David Herrmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).