From: Manuel Naranjo <manuel@aircable.net>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] python / dbus issue
Date: Fri, 23 Nov 2007 09:12:14 -0300 [thread overview]
Message-ID: <4746C39E.5090107@aircable.net> (raw)
In-Reply-To: <E1IvOBq-0005p1-0g@daffy.sipo.nl>
Hi,
> I tried my first python script for accessing bluez through dbus. The bluez
> setup is complete and I can scan and connect bluetooth devices using hcitool
> and rfcomm tools. The dbus setup is working as well, the "dbus-monitor
> --system" shows bluez messages when starting bluez.
>
I think it wasn't well installed.
> But, I tried to run the following python script (and several other examples
> from the internet):
> .....
>
I checked your script and it works for me. Make sure you have the latest
version, and that's installed as it's supposed to be.
If you don't want to mess up with scripts you can check with: dbus-send
--system --type=method_call --print-reply --dest=org.bluez /org/bluez
org.bluez.Manager.ListAdapters
> self._connection.send_message_with_reply_and_block(message, timeout)
> dbus.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method
> "ListAdapters" with signature "" on interface "org.bluez.Manager" doesn't
> exist
>
How strange you are missing the method ListAdapters which actually exists.
> On starting /etc/init.d/bluetooth, dbus-monitor --system shows:
>
> $ dbus-monitor --system
> signal sender=org.freedesktop.DBus -> dest=:1.5 path=/org/freedesktop/DBus;
> ......
>
What does it show when running the script?
> What is wrong here?
>
Maybe you missed something when passing the arguments to configure and
built.
Cheers,
Manuel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-11-23 12:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-23 2:22 [Bluez-devel] python / dbus issue thHog
2007-11-23 12:12 ` Manuel Naranjo [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-23 20:17 thHog
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4746C39E.5090107@aircable.net \
--to=manuel@aircable.net \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox