Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
boards/ | 04-Jan-2025 | - | 64 | 47 | ||
src/ | 04-Jan-2025 | - | 661 | 501 | ||
CMakeLists.txt | D | 04-Jan-2025 | 273 | 12 | 8 | |
Kconfig | D | 04-Jan-2025 | 1.7 KiB | 63 | 51 | |
Kconfig.sysbuild | D | 04-Jan-2025 | 494 | 16 | 12 | |
README.rst | D | 04-Jan-2025 | 2.5 KiB | 80 | 57 | |
overlay-bt_ll_sw_split.conf | D | 04-Jan-2025 | 745 | 21 | 7 | |
prj.conf | D | 04-Jan-2025 | 417 | 19 | 13 | |
sample.yaml | D | 04-Jan-2025 | 840 | 30 | 29 | |
sysbuild.cmake | D | 04-Jan-2025 | 660 | 25 | 18 |
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