public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: Inquiry w/ RSSI ?
Date: Sun, 25 Jan 2009 14:28:03 +0200	[thread overview]
Message-ID: <20090125122803.GA6787@jh-x301> (raw)
In-Reply-To: <108aa36c0901241906j284c53bwf755f95d0c45592e@mail.gmail.com>

Hi,

On Sun, Jan 25, 2009, Francis Bernard wrote:
> I have checked "Host Controller Interface Functional Specification -
> 7.7.33 Inquiry Result with RSSI Event" on the latest Bluetooth
> Specification, and it made me think this could probably be possible,
> but i have no knowledge about your implementation and if this could be
> or is implemented.
> 
> I saw some adapted code for hcitool.c, at
> http://pysportslive.googlecode.com/svn/trunk/pyrssi/bluessid.c, and I
> was wondering if by making some adaptations at this level, i would
> achieve my needs.

bluetoothd already supports the RSSI information in its D-Bus API. You
will get the information as a "RSSI" property within the DeviceFound
signals. If you really don't want to use the D-Bus API you might want to
take a look how bluetoothd handles this internally. A good place to
start from is the hcid_dbus_inquiry_result function in the
src/dbus-hci.c file and the inquiry_result_with_rssi function in the
src/security.c file.

Johan

      reply	other threads:[~2009-01-25 12:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-25  3:06 Inquiry w/ RSSI ? Francis Bernard
2009-01-25 12:28 ` 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=20090125122803.GA6787@jh-x301 \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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