Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
boards/ | 04-Jan-2025 | - | 14 | 10 | ||
src/ | 04-Jan-2025 | - | 1,439 | 1,026 | ||
CMakeLists.txt | D | 04-Jan-2025 | 442 | 16 | 11 | |
Kconfig | D | 04-Jan-2025 | 1.3 KiB | 48 | 41 | |
Kconfig.sysbuild | D | 04-Jan-2025 | 494 | 16 | 12 | |
README.rst | D | 04-Jan-2025 | 2.4 KiB | 76 | 54 | |
overlay-bt_ll_sw_split.conf | D | 04-Jan-2025 | 494 | 12 | 4 | |
prj.conf | D | 04-Jan-2025 | 673 | 28 | 17 | |
sample.yaml | D | 04-Jan-2025 | 870 | 31 | 30 | |
sysbuild.cmake | D | 04-Jan-2025 | 660 | 25 | 18 |
README.rst
1.. zephyr:code-sample:: bluetooth_cap_initiator 2 :name: Common Audio Profile (CAP) Initiator 3 :relevant-api: bluetooth bt_bap bt_cap bt_conn 4 5 Connect to CAP Acceptors and setup unicast audio streaming or broadcast audio streams. 6 7Overview 8******** 9 10Application demonstrating the CAP Initiator functionality. 11Starts by either scanning for a CAP Acceptor and then connects to and sets up available unicast 12audio streams, sets up a broadcast audio stream, or both. 13 14This sample can be found under :zephyr_file:`samples/bluetooth/cap_initiator` 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_initiator/ 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_initiator/ 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_initiator/ 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_initiator/ 73 :board: nrf52_bsim 74 :goals: build 75 :gen-args: -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split.conf 76