Skip to content
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

Bluetooth: BAP: Add a set of suggested intervals to use with BAP #81093

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Nov 7, 2024

Add a selection of interval values that are suitable for BAP,
which will allow better coexistence between ISO and ACL,
for both broadcast and unicast.

Samples and tests have been updated to use these new values.

The shell has also been updated to use the LE Audio (BAP) values
if audio is enabled, and the audio.conf file has disabled automatic
updating of the connection parameters as the peripheral, as we rarely
(if ever) want to do that.

@Thalley Thalley changed the title Audio interval macros Bluetooth: BAP: Add a set of suggested intervals to use with BAP Nov 7, 2024
@Thalley Thalley added this to the v4.1.0 milestone Nov 7, 2024
@Thalley Thalley force-pushed the audio_interval_macros branch 3 times, most recently from ad61f81 to b94bd7b Compare November 7, 2024 20:37
@Thalley
Copy link
Collaborator Author

Thalley commented Dec 6, 2024

@cvinayak updated the PR with your fixed, and changed the adv interval to 150ms for periodic and 140ms for extended

@Thalley Thalley force-pushed the audio_interval_macros branch 2 times, most recently from e080e6e to 76589fb Compare December 9, 2024 12:17
kruithofa
kruithofa previously approved these changes Dec 10, 2024
@Thalley Thalley force-pushed the audio_interval_macros branch 2 times, most recently from 0caee6e to d78bec5 Compare December 11, 2024 20:39
@Thalley
Copy link
Collaborator Author

Thalley commented Dec 11, 2024

Rebased to solve merge conflicts

@Thalley Thalley force-pushed the audio_interval_macros branch from d78bec5 to acf5afc Compare December 13, 2024 09:39
@Thalley
Copy link
Collaborator Author

Thalley commented Dec 13, 2024

Covered a few more samples and added CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n where applicable

Add a selection of interval values that are suitable for BAP,
which will allow better coexistence between ISO and ACL,
for both broadcast and unicast. Some of these are defined
by the BAP spec, and some are defined by Zephyr, since they
do have a suggested value from BAP.

Samples and tests have been updated to use these new values.
Peripheral samples have also been updated with
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS so that the connection
parameters from the centrals aren't updated to something else
shortly after.

The shell has also been updated to use the LE Audio (BAP) values
if audio is enabled, and the audio.conf file has disabled automatic
updating of the connection parameters as the peripheral, as we rarely
(if ever) want to do that.

Due to the connection interval change, CI hit an issue
with test_bass_broadcast_code in test_main_client_sync, where
the reading of the long receive state did not finish before we
attempted to do another procedure, so the function was updated to have
a retry.

Finally some tests were disabled as they are no longer passing. They
should be reenabled once issues in the controller have been resolved.

Signed-off-by: Emil Gydesen <[email protected]>
There was a bug in pa_decode_base that would would spent time
parsing incoming BASEs and also update the receive
states, which caused some tests to fail.

This commit adds a simply check to verify that the BASE is
different before spending parsing the content and updating
the receive states.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the audio_interval_macros branch from f7716ab to 3c06ff4 Compare January 24, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Audio area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth Qualification Bluetooth Qualification -related issues and pull requests area: Bluetooth area: Samples Samples platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

6 participants