Periodic Advertising with Responses (PAwR) Advertiser

Browse source code on GitHub

Overview

A simple application demonstrating the Bluetooth LE Periodic Advertising with Responses Advertiser functionality.

This sample will scan for the corresponding sync sample and send the required synchronization info to it. The advertising data is a counter that increases for each subevent.

Multiple devices can synchronize and respond to one advertiser.

Which subevent to listen to and in which response slot to respond is application specific. In this sample it is decided by the PAwR advertiser. Upon connection it will write to a GATT characteristic the assigned subevent and response slot.

Requirements

  • A board with Bluetooth LE support

  • A controller that supports the Periodic Advertising with Responses (PAwR) - Advertiser feature

Building and Running

Build and flash the sample as follows, replacing <board> with your target board:

west build -b <board> samples/bluetooth/periodic_adv_rsp
west flash

After flashing, the device will start PAwR advertising and scan for connectable sync devices. When a sync device is found, it connects, transfers the sync info via PAST, assigns a subevent and response slot by writing a GATT characteristic, and then disconnects. The device will then receive echoed data from each synced device in its assigned response slot.

Use the Periodic Advertising with Responses (PAwR) Synchronization sample on one or more additional boards to synchronize and respond to this device.

See also

Generic Access Profile (GAP)
Bluetooth APIs