Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC] doc: Add EIR to device properties
@ 2014-06-27 19:31 Scott James Remnant
  2014-06-27 19:55 ` Marcel Holtmann
  0 siblings, 1 reply; 13+ messages in thread
From: Scott James Remnant @ 2014-06-27 19:31 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Scott James Remnant

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)


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-07-01 16:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 19:31 [RFC] doc: Add EIR to device properties Scott James Remnant
2014-06-27 19:55 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox