From: Johan Hedberg <johan.hedberg@gmail.com>
To: Mikel Astiz <mikel.astiz.oss@gmail.com>
Cc: linux-bluetooth@vger.kernel.org, Mikel Astiz <mikel.astiz@bmw-carit.de>
Subject: Re: [RFC v0 5/7] adapter: Remove DevicesFound signal
Date: Sun, 11 Nov 2012 15:19:21 +0200 [thread overview]
Message-ID: <20121111131921.GA4405@x220> (raw)
In-Reply-To: <1352385015-2127-6-git-send-email-mikel.astiz.oss@gmail.com>
Hi Mikel,
On Thu, Nov 08, 2012, Mikel Astiz wrote:
> ObjectManager reports the D-Bus interfaces of all known devices,
> including the ones detected during discovery. Therefore this signal is
> not required.
> ---
> doc/adapter-api.txt | 13 ++-----
> src/adapter.c | 102 ++--------------------------------------------------
> 2 files changed, 4 insertions(+), 111 deletions(-)
If you look at the commit history you'll see that this signal was added
after the introduction of object manager and was part of the patches
that removed the old DeviceFound signal.
You're right in that our original plan was to replace the device
discovery completely with ObjectManager signals but that turned out to
be infeasible in practice. Even the python script for doing discovery
ended up being quite complex (meaning most other languages would be even
worse) and we didn't get any signals for discovered devices that already
existed in the bluetoothd object hierarchy (since nothing changes for
them from an ObjectManager perspective).
Due to these issues we decided to reintroduce a dedicated signal for
device discovery and at the same time fix the bottle neck we've seen
during the past years where the high frequency of signals in a busy
environment (e.g. UPF) consumes a lot of resources.
The DevicesFound signal is emitted once a second and contains all
devices found since the last period. If no device was found during the
last period the signal is sent as soon as the first device is found.
There's also an (adjustable through a define, right now 5) maximum size
for the list length which forces the signal to be sent as soon as the
limit is reached.
Johan
next prev parent reply other threads:[~2012-11-11 13:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 14:30 [RFC v0 0/7] Manager/Adapter transition to ObjectManager Mikel Astiz
2012-11-08 14:30 ` [RFC v0 1/7] manager: Expose default adapter using property Mikel Astiz
2012-11-08 14:30 ` [RFC v0 2/7] manager: Remove redundant D-Bus signals Mikel Astiz
2012-11-08 14:30 ` [RFC v0 3/7] manager: Remove redundant Adapters property Mikel Astiz
2012-11-08 14:30 ` [RFC v0 4/7] adapter: Remove redundant D-Bus signals Mikel Astiz
2012-11-08 14:30 ` [RFC v0 5/7] adapter: Remove DevicesFound signal Mikel Astiz
2012-11-11 13:19 ` Johan Hedberg [this message]
2012-11-12 8:45 ` Mikel Astiz
2012-11-08 14:30 ` [RFC v0 6/7] adapter: Remove redundant Devices property Mikel Astiz
2012-11-08 14:30 ` [RFC v0 7/7] adapter: Remove FindDevice method from D-Bus API Mikel Astiz
2012-11-12 17:23 ` [RFC v0 0/7] Manager/Adapter transition to ObjectManager Johan Hedberg
2012-11-12 19:26 ` Johan Hedberg
2012-11-13 10:44 ` Mikel Astiz
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=20121111131921.GA4405@x220 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=mikel.astiz.oss@gmail.com \
--cc=mikel.astiz@bmw-carit.de \
/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;
as well as URLs for NNTP newsgroup(s).