zephyr/samples/bluetooth/iso_receive
Casper Bonde 04dfcba792 Bluetooth: ISO: Add sequence number to ISO data packets
The sequence number is needed in the appliaction layer to detect lost
packets in the ISO stream in cases where the timestamp is not included.
(Sequence number is mandatory to include where timestamp is optional).
The API for the public metadata have been moved to a public header file.

As the size of the ISO meta data exceeds the default 4 octets net_buf
user_data the public ISO metadata have been moved into a seperate array.
The internal metadata is still stored in net_buf user_data.

This also fixed the user_data overflow on 32 bit systems, caused by
writing the ts into user_data on index 4 to 7, which is outside the 4
allocated bytes.

Signed-off-by: Casper Bonde <casper_bonde@bose.com>
2021-05-27 13:16:40 +02:00
..
src Bluetooth: ISO: Add sequence number to ISO data packets 2021-05-27 13:16:40 +02:00
CMakeLists.txt
prj.conf
README.rst
sample.yaml

.. _bluetooth-iso-receive-sample:

Bluetooth: Synchronized Receiver
###############################################

Overview
********

A simple application demonstrating the Bluetooth Low Energy Synchronized
Receiver functionality.

Requirements
************

* A board with Bluetooth Low Energy support

Building and Running
********************

This sample can be found under :zephyr_file:`samples/bluetooth/iso_receive` in
the Zephyr tree.

Use the sample found under :zephyr_file:`samples/bluetooth/iso_broadcast` on
another board that will start periodic advertising, create BIG to which this
sample will establish periodic advertising synchronization and synchronize to
the Broadcast Isochronous Stream.

See :ref:`bluetooth samples section <bluetooth-samples>` for details.