| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| boards/ | 29-Dec-2025 | - | 55 | 31 | ||
| src/ | 29-Dec-2025 | - | 1,268 | 913 | ||
| CMakeLists.txt | D | 29-Dec-2025 | 384 | 15 | 10 | |
| Kconfig | D | 29-Dec-2025 | 367 | 14 | 10 | |
| Kconfig.sysbuild | D | 29-Dec-2025 | 494 | 16 | 12 | |
| README.rst | D | 29-Dec-2025 | 2.4 KiB | 82 | 59 | |
| overlay-bt_ll_sw_split.conf | D | 29-Dec-2025 | 875 | 23 | 8 | |
| prj.conf | D | 29-Dec-2025 | 856 | 31 | 24 | |
| sample.yaml | D | 29-Dec-2025 | 749 | 27 | 26 | |
| sysbuild.cmake | D | 29-Dec-2025 | 676 | 25 | 18 |
README.rst
1.. zephyr:code-sample:: bluetooth_bap_unicast_server 2 :name: Basic Audio Profile (BAP) Unicast Audio Server 3 :relevant-api: bluetooth bt_audio bt_bap bt_pacs 4 5 Use BAP Unicast Server functionality. 6 7Overview 8******** 9 10Application demonstrating the BAP Unicast Server functionality. 11Starts advertising and awaits connection from a BAP Unicast Client. 12 13Check the :zephyr:code-sample-category:`bluetooth` samples for general information. 14 15Requirements 16************ 17 18* BlueZ running on the host, or 19* A board with Bluetooth Low Energy 5.2 support 20 21Building and Running 22******************** 23 24When building targeting an nrf52 series board with the Zephyr Bluetooth Controller, 25use ``-DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf`` to enable the required ISO 26feature support. 27 28Building for an nrf52840dk 29-------------------------- 30 31.. zephyr-app-commands:: 32 :zephyr-app: samples/bluetooth/bap_unicast_server/ 33 :board: nrf52840dk/nrf52840 34 :goals: build 35 :gen-args: -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf 36 37Building for an nrf5340dk 38------------------------- 39 40You can build both the application core image and an appropriate controller image for the network 41core with: 42 43.. zephyr-app-commands:: 44 :zephyr-app: samples/bluetooth/bap_unicast_server/ 45 :board: nrf5340dk/nrf5340/cpuapp 46 :goals: build 47 :west-args: --sysbuild 48 49If you prefer to only build the application core image, you can do so by doing instead: 50 51.. zephyr-app-commands:: 52 :zephyr-app: samples/bluetooth/bap_unicast_server/ 53 :board: nrf5340dk/nrf5340/cpuapp 54 :goals: build 55 56In that case you can pair this application core image with the 57:zephyr:code-sample:`bluetooth_hci_ipc` sample 58:zephyr_file:`samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf` configuration. 59 60Building for a simulated nrf52_bsim 61----------------------------------- 62 63Similarly to how you would for real HW, you can do: 64 65.. zephyr-app-commands:: 66 :zephyr-app: samples/bluetooth/bap_unicast_server/ 67 :board: nrf52_bsim 68 :goals: build 69 :gen-args: -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf 70 71Note this will produce a Linux executable in :file:`./build/zephyr/zephyr.exe`. 72For more information, check :ref:`this board documentation <nrf52_bsim>`. 73 74Building for a simulated nrf5340bsim 75------------------------------------ 76 77.. zephyr-app-commands:: 78 :zephyr-app: samples/bluetooth/bap_unicast_server/ 79 :board: nrf5340bsim/nrf5340/cpuapp 80 :goals: build 81 :west-args: --sysbuild 82