From: Andrew Kohlsmith <akohlsmith-bluez@benshaw.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] bluez and dbus - how to turn on discovery?
Date: Mon, 15 Jan 2007 10:33:36 -0500 [thread overview]
Message-ID: <200701151033.37304.akohlsmith-bluez@benshaw.com> (raw)
In-Reply-To: <1168867454.5728.8.camel@violet>
On Monday 15 January 2007 8:24 am, Marcel Holtmann wrote:
> the session bus is not used by BlueZ at all. We only use the system bus.
Right, I figured that. :-)
> So in general if your adapter has been found you should see org
> org.bluez/org/bluez/hci0 object with the org.bluez.Adapter interface.
> This interface on this path provides a SetMode method that can be used
> to change the mode from "connectable" to "discoverable".
dbus-send --system --dest=org.freedesktop.DBus --print-reply=1 /org/freedesktop/DBus
org.freedesktop.DBus.ListNames
array [
org.freedesktop.DBus :1.4 org.bluez :1.9 :1.11 ]
I only have an org.bluez interface. No org.bluez.Adapter, even though hci0 is
up and running great (hcid is running, and hidd is running, my BT mouse works
great)
> Since you speak about kdbus, I assume you don't use GNOME, but in that
> case you could install bluez-gnome and use the bluetooth-properties
> program to change the setting.
*nods* it looks like kdbus is working fine, as the dbus-send call itself is
returning the exact same info... I just don't have a org.bluez.Adapter
interface, nor do I have any hci0 object path.
Talking with the guys in FreeNode's #dbus channel too they say that this kind
of return code is an error:
$ dbus-send --system --dest=org.bluez --print-reply=1 /org/bluez/hci0
org.freedesktop.DBus.Introspectable.Introspect
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection
1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
$
(/org/bluez also sends the exact same response) -- they claim that running
that should give me some methods/interfaces, a child node or an error.
-A.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2007-01-15 15:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-15 13:02 [Bluez-users] bluez and dbus - how to turn on discovery? Andrew Kohlsmith
2007-01-15 13:24 ` Marcel Holtmann
2007-01-15 15:33 ` Andrew Kohlsmith [this message]
2007-01-16 13:02 ` Ulisses Furquim
2007-01-16 13:28 ` Andrew Kohlsmith
2007-01-16 13:59 ` Marcel Holtmann
2007-01-16 14:04 ` Pierre-Yves Paulus
2007-01-15 16:08 ` Andrew Kohlsmith
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=200701151033.37304.akohlsmith-bluez@benshaw.com \
--to=akohlsmith-bluez@benshaw.com \
--cc=bluez-users@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