-
Notifications
You must be signed in to change notification settings - Fork 8.3k
samples: Bluetooth: CAP Handover #96800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
49a052a to
f7cb0c5
Compare
f7cb0c5 to
9e556a7
Compare
There was a problem hiding this 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.
tests/bsim/bluetooth/audio_samples/cap/handover/src/cap_handover_sample_test.c
Outdated
Show resolved
Hide resolved
fda9d81 to
94930c6
Compare
94930c6 to
7694a68
Compare
7694a68 to
256c748
Compare
| This sample can be found under :zephyr_file:`samples/bluetooth/cap_handover` in the Zephyr tree. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Connects to a CAP acceptor and performs CAP handover procedures | |
| Connect to a CAP acceptor and perform CAP handover procedures |
256c748 to
82c0e0d
Compare
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]>
82c0e0d to
fc51760
Compare
|



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