Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented Sep 30, 2025

Add a CAP Handover sample that uses the CAP handover API
as the CAP Initiator and CAP commander.

@Thalley Thalley force-pushed the cap_handover_sample branch 4 times, most recently from 49a052a to f7cb0c5 Compare October 6, 2025 17:41
@Thalley Thalley force-pushed the cap_handover_sample branch from f7cb0c5 to 9e556a7 Compare October 7, 2025 14:40
@Thalley Thalley requested a review from Copilot October 7, 2025 15:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new Bluetooth CAP (Common Audio Profile) handover sample that demonstrates switching between unicast and broadcast audio streaming. The sample acts as a CAP Initiator and CAP Commander, showcasing the handover functionality between different audio delivery modes.

Key Changes

  • Adds complete CAP handover sample application with main functionality and TX stream handling
  • Creates test infrastructure for the new sample with BSim test scripts and configuration
  • Updates existing CAP samples to support multiple sink streams and improve test reliability

Reviewed Changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
samples/bluetooth/cap_handover/* New sample application implementing CAP handover between unicast and broadcast
tests/bsim/bluetooth/audio_samples/cap/handover/* Test infrastructure for the new handover sample
tests/bsim/bluetooth/audio_samples/cap/compile.sh Compilation support for handover tests
tests/bsim/bluetooth/audio_samples/cap/tests_scripts/* Test execution scripts including new handover test
samples/bluetooth/cap_acceptor/src/* Updates to support multiple sink streams and improved broadcast handling
tests/bsim/bluetooth/audio_samples/cap/initiator/src/* Variable name corrections and test improvements
tests/bsim/bluetooth/audio_samples/cap/acceptor/src/* Test logic improvements for better reliability
subsys/bluetooth/audio/* Bug fixes in CAP handover and broadcast assistant components

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Thalley Thalley force-pushed the cap_handover_sample branch from 7694a68 to 256c748 Compare October 13, 2025 12:16
Comment on lines 14 to 15
This sample can be found under :zephyr_file:`samples/bluetooth/cap_handover` in the Zephyr tree.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This sample can be found under :zephyr_file:`samples/bluetooth/cap_handover` in the Zephyr tree.

:name: Common Audio Profile (CAP) Handover
:relevant-api: bluetooth bt_bap bt_cap bt_conn

Connects to a CAP acceptor and performs CAP handover procedures
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Connects to a CAP acceptor and performs CAP handover procedures
Connect to a CAP acceptor and perform CAP handover procedures

@Thalley Thalley force-pushed the cap_handover_sample branch from 256c748 to 82c0e0d Compare November 5, 2025 12:28
@Thalley Thalley requested a review from kartben November 5, 2025 12:28
Add CAP handover central sample that exercises the CAP
handover API. It is compatible with the CAP acceptor sample
assuming that the CAP acceptor sample is built with
both unicast and broadcast support. It will continously
switch between unicast and broadcast.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the cap_handover_sample branch from 82c0e0d to fc51760 Compare November 28, 2025 12:19
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

3 participants