* [Bluez-devel] Simple pairing script instead of bluez-gnome
@ 2008-10-05 5:06 John Frankish
2008-10-05 8:42 ` Johan Hedberg
2008-10-05 14:19 ` John Frankish
0 siblings, 2 replies; 5+ messages in thread
From: John Frankish @ 2008-10-05 5:06 UTC (permalink / raw)
To: bluez-devel
I have bluez-4.4 working on a minimal 2.6.26 system - rather than use
bluez-gnome to pair, is there a simple script somewhere than would
take a PIN and bluetooth address as inputs and pair using dbus?
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] Simple pairing script instead of bluez-gnome
2008-10-05 5:06 [Bluez-devel] Simple pairing script instead of bluez-gnome John Frankish
@ 2008-10-05 8:42 ` Johan Hedberg
2008-10-05 14:19 ` John Frankish
1 sibling, 0 replies; 5+ messages in thread
From: Johan Hedberg @ 2008-10-05 8:42 UTC (permalink / raw)
To: BlueZ development
Hi,
On Oct 5, 2008, at 7:06, John Frankish wrote:
> I have bluez-4.4 working on a minimal 2.6.26 system - rather than use
> bluez-gnome to pair, is there a simple script somewhere than would
> take a PIN and bluetooth address as inputs and pair using dbus?
Sounds like test/simple-agent is what you need (might have been src/
simple-agent in 4.4). If you run it with
./simple-agent hci0 <remote address>
it will use D-Bus to initiate pairing and ask you for the PIN
interactively (on stdin). It should also be quite trivial to modify
this script if you prefer to give the PIN from the command line
directly. Btw, I'd recommend that you update to the latest bluez
version (4.11) since we've fixed plenty of bugs since 4.4.
Johan
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] Simple pairing script instead of bluez-gnome
2008-10-05 5:06 [Bluez-devel] Simple pairing script instead of bluez-gnome John Frankish
2008-10-05 8:42 ` Johan Hedberg
@ 2008-10-05 14:19 ` John Frankish
2008-10-05 15:10 ` Johan Hedberg
2008-10-07 7:43 ` John Frankish
1 sibling, 2 replies; 5+ messages in thread
From: John Frankish @ 2008-10-05 14:19 UTC (permalink / raw)
To: BlueZ development
At 12:42 05-10-08, you wrote:
>Hi,
>
>On Oct 5, 2008, at 7:06, John Frankish wrote:
> > I have bluez-4.4 working on a minimal 2.6.26 system - rather than use
> > bluez-gnome to pair, is there a simple script somewhere than would
> > take a PIN and bluetooth address as inputs and pair using dbus?
>
>Sounds like test/simple-agent is what you need (might have been src/
>simple-agent in 4.4). If you run it with
>./simple-agent hci0 <remote address>
>it will use D-Bus to initiate pairing and ask you for the PIN
>interactively (on stdin). It should also be quite trivial to modify
>this script if you prefer to give the PIN from the command line
>directly. Btw, I'd recommend that you update to the latest bluez
>version (4.11) since we've fixed plenty of bugs since 4.4.
>
>Johan
Thanks - I was hoping for something that would work with bash/sh -
but this is a good start.
After installing python, I get:
$ simple-agent hci0 00:1E:45:8B:2A:33
Traceback (most recent call last):
File "/usr/local/bin/simple-agent", line 3, in <module>
import gobject
ImportError: No module named gobject
I guess this means that either bluez-4.11 should be compiled against
python, or (more likely) I need some kind of python glib module?
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] Simple pairing script instead of bluez-gnome
2008-10-05 14:19 ` John Frankish
@ 2008-10-05 15:10 ` Johan Hedberg
2008-10-07 7:43 ` John Frankish
1 sibling, 0 replies; 5+ messages in thread
From: Johan Hedberg @ 2008-10-05 15:10 UTC (permalink / raw)
To: BlueZ development
Hi John,
On Oct 5, 2008, at 16:19, John Frankish wrote:
> $ simple-agent hci0 00:1E:45:8B:2A:33
> Traceback (most recent call last):
> File "/usr/local/bin/simple-agent", line 3, in <module>
> import gobject
> ImportError: No module named gobject
>
> I guess this means that either bluez-4.11 should be compiled against
> python, or (more likely) I need some kind of python glib module?
That means that you're missing the glib bindings for python.
Additionally you'll also need the D-Bus python bindings to use the
script.
Johan
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] Simple pairing script instead of bluez-gnome
2008-10-05 14:19 ` John Frankish
2008-10-05 15:10 ` Johan Hedberg
@ 2008-10-07 7:43 ` John Frankish
1 sibling, 0 replies; 5+ messages in thread
From: John Frankish @ 2008-10-07 7:43 UTC (permalink / raw)
To: BlueZ development
At 19:10 05-10-08, you wrote:
>Hi John,
>
>On Oct 5, 2008, at 16:19, John Frankish wrote:
> > $ simple-agent hci0 00:1E:45:8B:2A:33
> > Traceback (most recent call last):
> > File "/usr/local/bin/simple-agent", line 3, in <module>
> > import gobject
> > ImportError: No module named gobject
> >
> > I guess this means that either bluez-4.11 should be compiled against
> > python, or (more likely) I need some kind of python glib module?
>
>That means that you're missing the glib bindings for python.
>Additionally you'll also need the D-Bus python bindings to use the
>script.
>
>Johan
>
>------------
Hi Johan,
The dbus-python bindings don't seem too big a deal, but as per google
there seem to be plenty of issues with the python-glib bindings. Is
there a particular site/tarball you could recommend that is known to
work with the bluez scripts like simple-agent?
Thanks
John
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-07 7:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-05 5:06 [Bluez-devel] Simple pairing script instead of bluez-gnome John Frankish
2008-10-05 8:42 ` Johan Hedberg
2008-10-05 14:19 ` John Frankish
2008-10-05 15:10 ` Johan Hedberg
2008-10-07 7:43 ` John Frankish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox