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

..--

boards/03-Aug-2024-1410

src/03-Aug-2024-1,4171,006

CMakeLists.txtD03-Aug-2024442 1611

KconfigD03-Aug-2024839 2924

Kconfig.sysbuildD03-Aug-2024494 1612

README.rstD03-Aug-20242.4 KiB7755

overlay-bt_ll_sw_split.confD03-Aug-2024494 124

prj.confD03-Aug-2024566 2313

sample.yamlD03-Aug-2024869 3130

sysbuild.cmakeD03-Aug-2024660 2518

README.rst

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