Skip to content

Conversation

@Frodevan
Copy link
Contributor

@Frodevan Frodevan commented Nov 6, 2025

Zephyr automatically sets the persisted flag for VCS if the volume is changed after the service is registered. As some of these PTS tests require a set volume with the flag cleared, the initial volume needs to be set before registering VCS.

This PR is associated with auto-pts/auto-pts#1603

@zephyrbot zephyrbot added area: Bluetooth Qualification Bluetooth Qualification -related issues and pull requests area: Tests Issues related to a particular existing or missing test area: Bluetooth area: Bluetooth Audio labels Nov 6, 2025
@Frodevan Frodevan force-pushed the oct-3510-fix-vcs-tests branch from 6d8b90d to b6689e3 Compare November 6, 2025 17:23
@Frodevan Frodevan force-pushed the oct-3510-fix-vcs-tests branch 3 times, most recently from cb0dc63 to cf08631 Compare November 6, 2025 17:47
Copy link
Contributor

@Thalley Thalley left a comment

Choose a reason for hiding this comment

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

I like the idea overall, as it can provide addition flexibility (required by some VCS tests)

#define BTP_VCS_VOL_DOWN 0x04
#define BTP_VCS_MUTE 0x05
#define BTP_VCS_UNMUTE 0x06
#define BTP_VCS_REGISTER 0x07
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to make this command contain the parameters (basically every value in struct bt_vcp_vol_rend_register_param except the callbacks), so that it's fully controlled by the upper tester / AutoPTS, instead of relying on some defaults set by the BT Tester. This allows AutoPTS to maintain the same values and behavior between different DUTs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, and I am currently working on this.

@Frodevan Frodevan force-pushed the oct-3510-fix-vcs-tests branch 4 times, most recently from 252edc6 to 768a4ee Compare November 7, 2025 12:45
Zephyr automatically sets the persisted flag for VCS if the volume is
changed after the service is registered. As some of these PTS tests
require a set volume with the flag cleared, the initial volume needs to
be set before registering VCS.

Signed-off-by: Frode van der Meeren <frode.vandermeeren@nordicsemi.no>
@Frodevan Frodevan force-pushed the oct-3510-fix-vcs-tests branch from 768a4ee to 46e44ee Compare November 7, 2025 13:11
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

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

Labels

area: Bluetooth Audio area: Bluetooth Qualification Bluetooth Qualification -related issues and pull requests area: Bluetooth area: Tests Issues related to a particular existing or missing test

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

3 participants