From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH BlueZ 1/3] adapter-api: Rename ResetData to DuplicateData filter
Date: Mon, 28 Aug 2017 17:32:47 +0300 [thread overview]
Message-ID: <CABBYNZJsczFaYxoxhgt3yoFcgEHGgP6kf1bvUF+e1oUYyfaaGw@mail.gmail.com> (raw)
In-Reply-To: <F7B892BC-8CB7-4E85-B73A-EDEC74AF5AE4@holtmann.org>
Hi Marcel,
On Mon, Aug 28, 2017 at 5:21 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Luiz,
>
>> Since essencially what this filter would be doing is disable duplicate
>> for data use it instead of ResetData.
>> ---
>> doc/adapter-api.txt | 9 +++++----
>> src/adapter.c | 32 ++++++++++++++++----------------
>> src/device.c | 8 ++++----
>> src/device.h | 5 +++--
>> 4 files changed, 28 insertions(+), 26 deletions(-)
>>
>> diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt
>> index c2898694d..eaf96f36c 100644
>> --- a/doc/adapter-api.txt
>> +++ b/doc/adapter-api.txt
>> @@ -58,7 +58,8 @@ Methods void StartDiscovery()
>> int16 RSSI : RSSI threshold value
>> uint16 Pathloss : Pathloss threshold value
>> string Transport : type of scan to run
>> - bool ResetData : Reset advertisement data
>> + bool DuplicateData : Disables duplicate
>> + detection of advertisement data.
>>
>> When a remote device is found that advertises any UUID
>> from UUIDs, it will be reported if:
>> @@ -91,9 +92,9 @@ Methods void StartDiscovery()
>> the RSSI delta-threshold, that is imposed by
>> StartDiscovery by default, will not be applied.
>>
>> - If ResetData is enabled PropertiesChanged signals will
>> - be generated for either ManufacturerData and ServiceData
>> - everytime they are discovered.
>> + If DuplicateData is enabled PropertiesChanged signals
>> + will be generated for either ManufacturerData and
>> + ServiceData everytime they are discovered.
>
> mention that this is false by default when omitted.
Will add it to the documentation.
> We should in addition state that even if this is omitted or set to false, the duplicate filtering is best-effort and not guaranteed. Unless we actually plan to have a huge report cache in bluetoothd.
It checks if it is duplicated from the last received report, there is
no report aggregation, so the caching is really minimal just to avoid
sending PropertiesChanges with the same data when scanning.
> Regards
>
> Marcel
>
--
Luiz Augusto von Dentz
prev parent reply other threads:[~2017-08-28 14:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-28 13:42 [PATCH BlueZ 1/3] adapter-api: Rename ResetData to DuplicateData filter Luiz Augusto von Dentz
2017-08-28 13:42 ` [PATCH BlueZ 2/3] client: Use " Luiz Augusto von Dentz
2017-08-28 13:42 ` [PATCH BlueZ 3/3] mesh: " Luiz Augusto von Dentz
2017-08-28 14:21 ` [PATCH BlueZ 1/3] adapter-api: Rename ResetData to " Marcel Holtmann
2017-08-28 14:32 ` Luiz Augusto von Dentz [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=CABBYNZJsczFaYxoxhgt3yoFcgEHGgP6kf1bvUF+e1oUYyfaaGw@mail.gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.