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

..--

boards/29-Dec-2025-5531

src/29-Dec-2025-1,268913

CMakeLists.txtD29-Dec-2025384 1510

KconfigD29-Dec-2025367 1410

Kconfig.sysbuildD29-Dec-2025494 1612

README.rstD29-Dec-20252.4 KiB8259

overlay-bt_ll_sw_split.confD29-Dec-2025875 238

prj.confD29-Dec-2025856 3124

sample.yamlD29-Dec-2025749 2726

sysbuild.cmakeD29-Dec-2025676 2518

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