linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH BlueZ 0/9] Periodic advertising and PAwR over MGMT
@ 2026-11-27  8:55 Roland Schober
  2026-11-27  8:55 ` [RFC PATCH BlueZ 1/9] doc/mgmt: Add periodic advertising and PAwR commands and events Roland Schober
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Roland Schober @ 2026-11-27  8:55 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: luiz.dentz, Roland Schober

This is the user space side of the kernel RFC
"[RFC PATCH 0/5] Bluetooth: Periodic advertising and PAwR over MGMT":
a MGMT interface for periodic advertising and for the advertiser side
of Periodic Advertising with Responses (PAwR), with emulator support
and tests.

Patch 1 documents the three commands and two events in
doc/mgmt-protocol.rst; it is the place to comment on the interface.
Patch 2 adds the definitions, patch 3 the btmon decoding.

Patch 4 adds three btmgmt commands: pa-params sends Add Periodic
Advertising Parameters, pa-data sends Add Periodic Advertising Data,
pawr-serve answers the subevent data requests and prints the response
reports.

Plain periodic advertising:

  btmgmt add-ext-adv-params -P 1M 1
  btmgmt pa-params 1 0x50 0x50
  btmgmt pa-data 1 "0x05 0xff 0x59 0x00 0x01 0x02"
  btmgmt add-ext-adv-data 1

A PAwR train with 5 subevents of 5 response slots:

  btmgmt add-ext-adv-params -P 1M 1
  btmgmt pa-params 1 0xff 0xff 5 0x30 8 0x50 5
  btmgmt pawr-serve 1 5 5 &
  btmgmt add-ext-adv-data 1

Patches 5 to 8 are the emulator:

 - Patch 5 adds the PAwR HCI definitions to bt.h. They are the ones of
   my btmon series "monitor: Decode Periodic Advertising with
   Responses", which is not applied yet; the patch is dropped here
   when that series is in.
 - Patch 7 makes the emulator refuse to remove an advertising set
   while periodic advertising is enabled on it, as a controller does.
   The kernel series has a fix for exactly this.
 - Patch 8 adds the PAwR advertiser to controllers of version 6.0 and
   later: the parameters [v2], the subevent data requests once per
   periodic advertising interval, and the subevent data command, which
   answers Too Early and Too Late for data that was not asked for.
   Nothing is transmitted: the responder side and the response reports
   are not emulated yet.

Patch 9 adds 31 mgmt-tester cases. They need the kernel series; on a
kernel without it they fail.

Also tested with the kernel RFC in QEMU against the Nordic SoftDevice
Controller on a simulated nRF52 (BabbleSim), with Zephyr's
periodic_sync_rsp sample as the responder. That run covers what the
emulator does not: a synchronised responder and its response reports.

The D-Bus API is not part of this RFC; it follows when the MGMT
interface is agreed. For PAwR I expect bluetoothd to keep the data of
each subevent and to answer the data requests itself, since a D-Bus
round trip per request does not fit the controller's lead time.

Roland Schober (9):
  doc/mgmt: Add periodic advertising and PAwR commands and events
  lib/mgmt: Add periodic advertising and PAwR definitions
  monitor: Decode periodic advertising and PAwR MGMT commands and events
  client/mgmt: Add pa-params, pa-data and pawr-serve commands
  monitor: Add PAwR HCI definitions
  monitor: Add Too Late and Too Early error code definitions
  emulator/btdev: Keep advertising sets with periodic advertising
  emulator/btdev: Add Periodic Advertising with Responses advertiser
  mgmt-tester: Add periodic advertising and PAwR tests

 client/mgmt.c         |  275 +++++++++++
 doc/mgmt-protocol.rst |  208 +++++++++
 emulator/btdev.c      |  263 ++++++++++-
 lib/bluetooth/mgmt.h  |   74 +++
 monitor/bt.h          |  176 +++++++
 monitor/packet.c      |  204 ++++++++
 tools/mgmt-tester.c   | 1024 +++++++++++++++++++++++++++++++++++++++++
 7 files changed, 2222 insertions(+), 2 deletions(-)

-- 
2.47.3


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

end of thread, other threads:[~2026-11-27  8:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  8:55 [RFC PATCH BlueZ 0/9] Periodic advertising and PAwR over MGMT Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 1/9] doc/mgmt: Add periodic advertising and PAwR commands and events Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 2/9] lib/mgmt: Add periodic advertising and PAwR definitions Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 3/9] monitor: Decode periodic advertising and PAwR MGMT commands and events Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 4/9] client/mgmt: Add pa-params, pa-data and pawr-serve commands Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 5/9] monitor: Add PAwR HCI definitions Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 6/9] monitor: Add Too Late and Too Early error code definitions Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 7/9] emulator/btdev: Keep advertising sets with periodic advertising Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 8/9] emulator/btdev: Add Periodic Advertising with Responses advertiser Roland Schober
2026-11-27  8:55 ` [RFC PATCH BlueZ 9/9] mgmt-tester: Add periodic advertising and PAwR tests Roland Schober

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).