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: ISO advanced qos #53945

Merged
merged 7 commits into from Jul 31, 2023

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Jan 19, 2023

Adds support for setting advanced ISO settings for CIGs and BIGs. This also adds support for the new settings in the benchmark samples.

fixes #50949

@Thalley Thalley added the area: Bluetooth ISO Bluetooth LE Isochronous Channels label Jan 19, 2023
@Thalley Thalley force-pushed the iso_advanced_qos branch 3 times, most recently from e9f7bee to 9050aca Compare January 23, 2023 14:16
@Thalley Thalley marked this pull request as ready for review January 23, 2023 14:30
@jhedberg jhedberg assigned Thalley and unassigned jhedberg Jan 24, 2023
@Thalley Thalley force-pushed the iso_advanced_qos branch 2 times, most recently from 6b7d643 to af13aa0 Compare January 27, 2023 09:25
@Thalley
Copy link
Collaborator Author

Thalley commented Feb 23, 2023

Rebased to solve merge conflicts

@Thalley
Copy link
Collaborator Author

Thalley commented Mar 20, 2023

Rebased to solve merge conflicts

1 similar comment
@Thalley
Copy link
Collaborator Author

Thalley commented May 8, 2023

Rebased to solve merge conflicts


printk("Follow the prompts. Press enter to use default values.\n");
printk("Follow the ptompts. Press enter to use default values.\n");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
printk("Follow the ptompts. Press enter to use default values.\n");
printk("Follow the prompts. Press enter to use default values.\n");

}

num_subevents = strtoul(buffer, NULL, 0);
if (num_subevents > BT_ISO_NSE_MAX) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

there is no check to verify that the NSE is at least BT_ISO_NSE_MIN. In other words it is possible to enter 0 for the number of subevents. Same for the other parameters

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added checks for minimum values for both this and the connected ISO benchmark sample

@Thalley Thalley force-pushed the iso_advanced_qos branch 2 times, most recently from ba92056 to 34c117e Compare May 15, 2023 14:52
@Thalley Thalley requested a review from kruithofa May 15, 2023 14:52
Add support for setting advanced unicast ISO parameters
using the ISO test commands. This allows the host to
set ISO parameters that the controller normally would
handle.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
The RTN value range for broadcast is more limited than
connected ISO.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Add (optional) advanced ISO support for the benchmark ISO
sample. The CONFIG_BT_ISO_ADVANCED Kconfig simply needs to
be enabled in order to support the advanced settings.

This also reduces the number of default channels supported
to 1.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Add support for setting advanced broadcast ISO parameters
using the ISO test commands. This allows the host to set
ISO parameters that the controller normally would handle.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Add (optional) advanced ISO support for the benchmark ISO
sample. The CONFIG_BT_ISO_ADVANCED Kconfig simply needs to
be enabled in order to support the advanced settings.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Refactor the test function to split it into multiple
smaller functions. This makes the main function much shorter
and easier to follow, and allows reusing of the individual
steps.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Extended the ISO broadcaster BSIM test with an additional
step to create a BIG using the test parameters.

Since this isn't properly implemented in the controller,
CONFIG_BT_ISO_ADVANCED has not been enabled in the
prj.conf yet.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
@fabiobaltieri fabiobaltieri merged commit 5555ac3 into zephyrproject-rtos:main Jul 31, 2023
19 checks passed
@Thalley Thalley deleted the iso_advanced_qos branch December 18, 2023 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bluetooth: ISO: Add support for ISO test commands
6 participants