From: Johan Hedberg <johan.hedberg@gmail.com>
To: "Michał Lowas-Rzechonek" <michal.lowas-rzechonek@silvair.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Format of HCI LE Advertising Report Event
Date: Wed, 23 Jan 2019 12:37:10 +0200 [thread overview]
Message-ID: <282271E8-D3D1-4AEC-8B57-BA03F3FF7D36@gmail.com> (raw)
In-Reply-To: <20190123102452.o5xvunjcsx57pdwl@scytale>
Hi Michał,
> On 23 Jan 2019, at 12.24, Michał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com> wrote:
> I've been reading Bluetooth Core spec v5.0, looking for a way to
> optimize sending LE Advertising Report events through HCI.
>
> It turns out that spec allows concatenating a few reports into a single
> HCI frame: 7.7.65.2 says that "The Controller may queue these
> advertising reports and send information from multiple devices in one LE
> Advertising Report event. So far, so good.
>
> The question I have is about the exact format of this event. Wording and
> tables in the spec suggest that fields from concatenated reports should
> be interleaved in the HCI frame, that is for num_reports = 2, fields
> should be ordered as follows:
>
> event_type[0]
> event_type[1]
> address_type[0]
> address_type[1]
> address[0]
> address[1]
> length[0]
> length[1]
> data[0]
> data[1]
> rssi[0]
> rssi[1]
>
> I don't this format is "natural", if I were to choose I would rather
> simply concatenate a few reports.
See Vol 2, Part E, section 5.2 (page 728 in the pdf):
“
• Arrayed parameters are specified using the following notation: ParameterA[i]. If more than one set of arrayed parameters are specified (e.g. ParameterA[i], ParameterB[i]), then, unless noted otherwise, the order of the parameters are as follows: ParameterA[0], ParameterB[0], ParameterA[1], ParameterB[1], ParameterA[2], ParameterB[2], ... ParameterA[n], ParameterB[n]
“
Johan
next prev parent reply other threads:[~2019-01-23 10:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-23 10:24 Format of HCI LE Advertising Report Event Michał Lowas-Rzechonek
2019-01-23 10:37 ` Johan Hedberg [this message]
2019-01-23 10:47 ` Michał Lowas-Rzechonek
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=282271E8-D3D1-4AEC-8B57-BA03F3FF7D36@gmail.com \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=michal.lowas-rzechonek@silvair.com \
/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