• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-6447

src/04-Jan-2025-661501

CMakeLists.txtD04-Jan-2025273 128

KconfigD04-Jan-20251.7 KiB6351

Kconfig.sysbuildD04-Jan-2025494 1612

README.rstD04-Jan-20252.5 KiB8057

overlay-bt_ll_sw_split.confD04-Jan-2025745 217

prj.confD04-Jan-2025417 1913

sample.yamlD04-Jan-2025840 3029

sysbuild.cmakeD04-Jan-2025660 2518

README.rst

1.. zephyr:code-sample:: bluetooth_bap_broadcast_source
2   :name: Basic Audio Profile (BAP) Broadcast Audio Source
3   :relevant-api: bluetooth bt_audio bt_bap
4
5   Use BAP Broadcast Source functionality.
6
7Overview
8********
9
10Application demonstrating the BAP Broadcast Source functionality.
11Will start advertising extended advertising with audio flags, periodic advertising with the
12Broadcast Audio Source Endpoint (BASE) and finally the BIGinfo together with
13(mock) Audio (ISO) data.
14
15The BAP Broadcast Source will reset every 30 seconds to show the full API.
16
17This sample can be found under
18:zephyr_file:`samples/bluetooth/bap_broadcast_source` in the Zephyr tree.
19
20Check the :zephyr:code-sample-category:`bluetooth` samples for general information.
21
22Requirements
23************
24
25* BlueZ running on the host, or
26* A board with Bluetooth Low Energy 5.2 support
27
28Building and Running
29********************
30
31When building targeting an nrf52 series board with the Zephyr Bluetooth Controller,
32use ``-DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf`` to enable the required ISO
33feature support.
34
35Building for an nrf5340dk
36-------------------------
37
38You can build both the application core image and an appropriate controller image for the network
39core with:
40
41.. zephyr-app-commands::
42   :zephyr-app: samples/bluetooth/bap_broadcast_source/
43   :board: nrf5340dk/nrf5340/cpuapp
44   :goals: build
45   :west-args: --sysbuild
46
47If you prefer to only build the application core image, you can do so by doing instead:
48
49.. zephyr-app-commands::
50   :zephyr-app: samples/bluetooth/bap_broadcast_source/
51   :board: nrf5340dk/nrf5340/cpuapp
52   :goals: build
53
54In that case you can pair this application core image with the
55:zephyr:code-sample:`bluetooth_hci_ipc` sample
56:zephyr_file:`samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf` configuration.
57
58Building for a simulated nrf5340bsim
59------------------------------------
60
61Similarly to how you would for real HW, you can do:
62
63.. zephyr-app-commands::
64   :zephyr-app: samples/bluetooth/bap_broadcast_source/
65   :board: nrf5340bsim/nrf5340/cpuapp
66   :goals: build
67   :west-args: --sysbuild
68
69Note this will produce a Linux executable in :file:`./build/zephyr/zephyr.exe`.
70For more information, check :ref:`this board documentation <nrf5340bsim>`.
71
72Building for a simulated nrf52_bsim
73-----------------------------------
74
75.. zephyr-app-commands::
76   :zephyr-app: samples/bluetooth/bap_broadcast_source/
77   :board: nrf52_bsim
78   :goals: build
79   :gen-args: -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf
80