public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Setting a PIN without a GUI.
@ 2007-07-23 17:49 Dave Mielke
  2007-07-23 17:53 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Mielke @ 2007-07-23 17:49 UTC (permalink / raw)
  To: Bluez-devel

Is there a way for a user who isn't running X, i.e. who's just using text mode,
to associate a Bluetooth device and its PIN? Is there a text-mode command which
does this? Is there a file which can be edited?

-- 
Dave Mielke           | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: dave@mielke.cc | Canada  K2A 1H7   | if you're concerned about Hell.
http://FamilyRadio.com/                   | http://Mielke.cc/bible/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Setting a PIN without a GUI.
  2007-07-23 17:49 [Bluez-devel] Setting a PIN without a GUI Dave Mielke
@ 2007-07-23 17:53 ` Marcel Holtmann
  2007-07-23 18:43   ` Dave Mielke
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2007-07-23 17:53 UTC (permalink / raw)
  To: BlueZ development

Hi Dave,

> Is there a way for a user who isn't running X, i.e. who's just using text mode,
> to associate a Bluetooth device and its PIN? Is there a text-mode command which
> does this? Is there a file which can be edited?

you have to provide a passkey agent that will handle the PIN request.
The bluez-utils source contains an example passkey-agent.c that we used
for testing.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Setting a PIN without a GUI.
  2007-07-23 17:53 ` Marcel Holtmann
@ 2007-07-23 18:43   ` Dave Mielke
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Mielke @ 2007-07-23 18:43 UTC (permalink / raw)
  To: BlueZ development

[quoted lines by Marcel Holtmann on 2007/07/23 at 19:53 +0200]

>you have to provide a passkey agent that will handle the PIN request.
>The bluez-utils source contains an example passkey-agent.c that we used
>for testing.

Can a variant of that tool run as a thread which lives for the duration of the
connect attempt? If so, does it need to stay running until the close or can it
be terminated as soon as the connect succeeds?

I tried to compile it with -I/usr/include/dbus-1.0 and -I/usr/lib/dbus-1.0, and
still got VERSION not defined.

Is there a tool which should give me the right compile and link flags?

-- 
Dave Mielke           | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: dave@mielke.cc | Canada  K2A 1H7   | if you're concerned about Hell.
http://FamilyRadio.com/                   | http://Mielke.cc/bible/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2007-07-23 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23 17:49 [Bluez-devel] Setting a PIN without a GUI Dave Mielke
2007-07-23 17:53 ` Marcel Holtmann
2007-07-23 18:43   ` Dave Mielke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox