From: Scott James Remnant <scott@netsplit.com>
To: linux-bluetooth@vger.kernel.org
Cc: Scott James Remnant <scott@netsplit.com>
Subject: [RFC] doc: Add EIR to device properties
Date: Fri, 27 Jun 2014 12:31:32 -0700 [thread overview]
Message-ID: <1403897492-6233-1-git-send-email-scott@netsplit.com> (raw)
This patch proposes an extension to the D-Bus Device API to allow
an application access to the last EIR data received from a device
in inquiry or advertising mode.
Rationale is that increasing numbers of LE profiles are using custom
fields in the advertising and scan response reports to carry important
information. e.g. the Anki Drive peripherals include necessary
information in the advertiesment that is not replicated in the GATT
Service they export.
It would be nice if it were possible to support these profiles at the
application layer without extending BlueZ every time via a plugin.
Since EIR has a variable-length type field, more complex parsing
would require applications registering the types with BlueZ in advance
putting a higher complexity burden on the daemon, including resolving
conflicts where types overlap. Exposing the raw EIR data to the
application allows them to deal with all such problems in whatever
manner they require.
---
doc/device-api.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/doc/device-api.txt b/doc/device-api.txt
index 577ee60..9620ec0 100644
--- a/doc/device-api.txt
+++ b/doc/device-api.txt
@@ -193,3 +193,8 @@ Properties string Address [readonly]
Received Signal Strength Indicator of the remote
device (inquiry or advertising).
+
+ array{byte} EIR [readonly, optional]
+
+ Last received EIR data from the remote device
+ during inquiry or advertising.
--
1.9.3 (Apple Git-50)
next reply other threads:[~2014-06-27 19:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-27 19:31 Scott James Remnant [this message]
2014-06-27 19:55 ` [RFC] doc: Add EIR to device properties Marcel Holtmann
2014-06-27 20:15 ` Scott James Remnant
2014-06-27 20:26 ` Marcel Holtmann
2014-06-30 20:26 ` Scott James Remnant
2014-07-01 10:42 ` Marcel Holtmann
2014-07-01 15:22 ` Scott James Remnant
2014-07-01 15:30 ` Marcel Holtmann
2014-07-01 15:58 ` Marcel Holtmann
2014-07-01 16:09 ` Scott James Remnant
2014-07-01 16:14 ` Marcel Holtmann
2014-07-01 16:21 ` Scott James Remnant
2014-07-01 16:31 ` Marcel Holtmann
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=1403897492-6233-1-git-send-email-scott@netsplit.com \
--to=scott@netsplit.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