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

..--

src/29-Dec-2025-464336

CMakeLists.txtD29-Dec-2025282 128

KconfigD29-Dec-2025549 2116

Kconfig.sysbuildD29-Dec-2025494 1612

README.rstD29-Dec-20252.4 KiB7554

overlay-bt_ll_sw_split.confD29-Dec-2025856 2410

prj.confD29-Dec-2025552 2818

sample.yamlD29-Dec-2025792 2827

sysbuild.cmakeD29-Dec-2025690 2518

README.rst

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