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

..--

boards/04-Jan-2025-1410

src/04-Jan-2025-1,6611,199

CMakeLists.txtD04-Jan-2025414 1510

KconfigD04-Jan-20251.6 KiB5144

Kconfig.sysbuildD04-Jan-2025494 1612

README.rstD04-Jan-20252.4 KiB7654

overlay-bt_ll_sw_split.confD04-Jan-2025494 124

prj.confD04-Jan-2025551 2718

sample.yamlD04-Jan-2025866 3130

sysbuild.cmakeD04-Jan-2025660 2518

README.rst

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