From: Anderson Lizardo <anderson.lizardo@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Cc: Anderson Lizardo <anderson.lizardo@openbossa.org>
Subject: [RFC PATCH BlueZ] LE Broadcaster/Observer API proposal
Date: Wed, 11 Apr 2012 21:04:27 -0400 [thread overview]
Message-ID: <1334192668-21433-1-git-send-email-anderson.lizardo@openbossa.org> (raw)
Hi,
This patch contains an API proposal for implementing LE Broadcaster/Observer
roles in BlueZ. These roles allow to transfer data unidirectionally (from
Broadcaster to Observer) in a connectionless setup. See Core spec Vol 3, Part
C, section 9.1 for more details.
The API consists on extending the Adapter API to support Observer/Broadcaster
procedures. These are implemented as methods separate from Discovery, given
that Broadcaster devices are non-connectable and non-discoverable.
Multiple D-Bus clients can register for Observer mode, as well as for
Broadcaster. BlueZ is thus responsible for constructing the Adv. Data (in
Broadcaster mode) or routing the broadcast data (in Observer mode) to the
applications.
On Broadcaster, multiple applications cannot broadcast the same Adv. data type.
On Observer, the application(s) register(s) a callback that will be called only
when the specified Adv. types are present on the received advertising event.
We considered using signals for broadcast data, but it turns out it can cause
too much D-Bus traffic given that all registered applications will receive the
signals. The callback approach allows to ignore broadcasts which have no
information relevant to an application.
Note that this proposal does not describe the necessary mgmt API changes. This
will come once we agree on the higher level D-Bus API. But it should be
expected that new commands for enabling/disabling observer/broadcaster modes
and setting adv. data will be necessary, as well as modifying the current
kernel code that ignores non-connectable advertising (which are used by
Observers).
Comments and suggestions are welcome.
Anderson Lizardo (1):
doc: Document Broadcaster/Observer API
doc/adapter-api.txt | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
--
1.7.5.4
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
next reply other threads:[~2012-04-12 1:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-12 1:04 Anderson Lizardo [this message]
2012-04-12 1:04 ` [RFC PATCH BlueZ] doc: Document Broadcaster/Observer API Anderson Lizardo
2012-04-16 8:07 ` Ganir, Chen
2012-04-16 12:10 ` Anderson Lizardo
2012-04-17 5:42 ` Ganir, Chen
2012-04-16 8:03 ` [RFC PATCH BlueZ] LE Broadcaster/Observer API proposal Ganir, Chen
2012-04-16 11:52 ` Anderson Lizardo
2012-04-17 5:40 ` Ganir, Chen
2012-04-26 21:03 ` [PATCH RFC BlueZ v2 0/1] " Anderson Lizardo
2012-04-26 21:03 ` [PATCH RFC BlueZ v2 1/1] doc: Document Broadcaster/Observer API Anderson Lizardo
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=1334192668-21433-1-git-send-email-anderson.lizardo@openbossa.org \
--to=anderson.lizardo@openbossa.org \
--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;
as well as URLs for NNTP newsgroup(s).