Linux bluetooth development
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Jakub Pawlowski <jpawlowski@google.com>
Cc: Arman Uguray <armansito@chromium.org>,
	Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>,
	Marcel Holtmann <marcel@holtmann.org>
Subject: Re: [PATCH BlueZ v5] doc/adapter-api.txt: StartFilteredDiscovery method.
Date: Tue, 24 Feb 2015 12:51:57 +0200	[thread overview]
Message-ID: <20150224105157.GA7112@t440s.lan> (raw)
In-Reply-To: <CAD0=r8xD7wSxNpOFv5hiE+oNF40RPdywOdm9j2ZaXpQ=m+FY0Q@mail.gmail.com>

Hi Jakub,

On Mon, Feb 23, 2015, Jakub Pawlowski wrote:
>>>> From an API stand point, I like Johan's suggestion better. Basically
>>>> we treat all discovery APIs as "filtered" except StartDiscovery is
>>>> just a special case of StartFilteredDiscovery that has 8 dB as the
>>>> "RSSI" argument and "auto" for transport. If an app wants to use a
>>>> lower RSSI threshold then whether or not the UI will flicker should be
>>>> the responsibility of the UI code. Basically we should treat
>>>> StartDiscovery as a legacy API and perhaps mark it as deprecated while
>>>> maintaining support for it for backwards compatibility.
>>>
>>> I think you get the meaning of RSSI parameter wrong. It's not delta,
>>> chow much rssi must change to report device again (I think chromeos
>>> change that internally to something smaller). It's for proximity - if
>>> device reported RSSI is bigger than this RSSI parameter then report
>>> it, and there's no delta - we report every RSSI change we get (around
>>> 3 times/sec).
>>
>> You're right, it's just delta so I was wrong there. Still, the 8 dBm
>> thing shouldn't dictate how the discovery API should work since it
>> only affects what delta threshold to use when updating the
>> Device1.RSSI property. So, perhaps we can add a global D-Bus property
>> for RSSI delta-threshold or perhaps make that a filter parameter of
>> StartFilteredDiscovery.
>
> If we add global property for changing RSSI delta-threshold we would
> have to define api to change and probably also negotiate RSSI when
> multiple apps require different values.
> Putting it into StartFilteredDiscovery parameter seems more
> reasonable, but do we really need that ?
> Can't we just have no RSSI delta for filtered scan, and let apps
> decide on their own in their logic ?

If something like this was exposed through D-Bus then a parameter to
StartFilteredDiscovery would be the way to go, I think. However, until
we have a clear need for it we can simply keep track of this internally.
I.e. StartDiscovery keeps imposing the delta-threshold but as soon as
there's one or more StartFilteredDiscovery active this type of filtering
is removed.

Johan

  reply	other threads:[~2015-02-24 10:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10  0:34 [PATCH BlueZ v5] doc/adapter-api.txt: StartFilteredDiscovery method Jakub Pawlowski
2015-02-16  8:46 ` Luiz Augusto von Dentz
2015-02-20 17:09   ` Jakub Pawlowski
2015-02-23 13:09   ` Johan Hedberg
2015-02-23 16:41     ` Jakub Pawlowski
2015-02-23 18:43       ` Jakub Pawlowski
2015-02-23 21:43         ` Arman Uguray
2015-02-23 22:44           ` Jakub Pawlowski
2015-02-23 23:07             ` Arman Uguray
2015-02-24  0:01               ` Jakub Pawlowski
2015-02-24 10:51                 ` Johan Hedberg [this message]
2015-02-24 10:37       ` Johan Hedberg
2015-02-24 20:23         ` Jakub Pawlowski
2015-02-24 22:50           ` Marcel Holtmann
2015-02-24 23:12             ` Jakub Pawlowski

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=20150224105157.GA7112@t440s.lan \
    --to=johan.hedberg@gmail.com \
    --cc=armansito@chromium.org \
    --cc=jpawlowski@google.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.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