public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@nokia.com>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Fwd: bluez-utils: The inquiry scan (ISCAN) gets turned off
Date: Thu, 24 Aug 2006 23:31:30 +0300	[thread overview]
Message-ID: <20060824203130.GA7420@localhost.localdomain> (raw)
In-Reply-To: <8712867d0608240751g5efef440q4474334bc7d0a7fc@mail.gmail.com>

On Thu, Aug 24, 2006, Jaime Alberto Silva wrote:
> Can you, please, point me to some documentation about dbus usage and
> how to discover the methods registered by bluez?.

You can find a description of the bluez D-Bus API in the 
hcid/dbus-api.txt file that comes along with bluez-utils (you'll have to 
use version 3.3 since it wasn't included before that).

About D-Bus usage, well, by googling you should be able to find several 
places with some documentation, though I have to admit that some of the 
higher level bindings lack good documentation. E.g. the lowlevel API 
description can be found here:
http://dbus.freedesktop.org/doc/api/html/group__DBus.html

If you want to specifically use the bluez D-Bus API you could e.g. take 
a look at the source code of the new bluez-gnome package (which uses the 
GLib bindings of D-Bus) or the hcid/dbus-test script which is part of 
the bluez-utils package (it uses the python bindings and contains 
examples of pretty much every feature of the bluez D-Bus API).

> Another example will be nice, something like... How to set the 
> discover timeout with dbus

Set the discoverable timeout:
dbus-send --system --dest=org.bluez /org/bluez/hci0 \
	org.bluez.Adapter.SetDiscoverableTimeout uint32:100

Get the discoverable timeout:
dbus-send --system --dest=org.bluez --print-reply /org/bluez/hci0 \
	org.bluez.Adapter.GetDiscoverableTimeout

> Thanks for your help!

No problem :)

Johan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2006-08-24 20:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8712867d0608231353l6aa027bbha331a44392231f92@mail.gmail.com>
2006-08-23 21:18 ` [Bluez-users] Fwd: bluez-utils: The inquiry scan (ISCAN) gets turned off Jaime Alberto Silva
2006-08-24  9:01   ` Marcel Holtmann
2006-08-24 13:46     ` Jaime Alberto Silva
2006-08-24 14:11       ` Johan Hedberg
2006-08-24 14:51         ` Jaime Alberto Silva
2006-08-24 20:31           ` Johan Hedberg [this message]

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=20060824203130.GA7420@localhost.localdomain \
    --to=johan.hedberg@nokia.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