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: TBS: Ensure sending notifications #82775

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Dec 10, 2024

The existing implemented only attempted to send all notifications, but if host was out of ATT TX buffers the notifications would fail and the client may miss out on important information, and would be a spec violation.

This commit refactors notificatios in TBS so that they are always sent.

depends on #83959
required for #68173

@Thalley Thalley self-assigned this Dec 11, 2024
@Thalley Thalley force-pushed the tbs_notifications_refactor branch 3 times, most recently from 6487dce to 36b1833 Compare January 7, 2025 21:27
@Thalley Thalley force-pushed the tbs_notifications_refactor branch 4 times, most recently from 873f780 to 25228c9 Compare January 13, 2025 12:39
@Thalley
Copy link
Collaborator Author

Thalley commented Jan 13, 2025

#AutoPTS run zephyr nrf53 TBS

@codecoup-tester
Copy link

Scheduled PR #82775 (comment), board: nrf53, estimated start time: 13:44:42, test case count: 45, estimated duration: 1:12:09

Test cases to be runTBS/SR/SGGIT/SER/BV-01-C
TBS/SR/SGGIT/CHA/BV-01-C
TBS/SR/SGGIT/CHA/BV-02-C
TBS/SR/SGGIT/CHA/BV-03-C
TBS/SR/SGGIT/CHA/BV-04-C
TBS/SR/SGGIT/CHA/BV-05-C
TBS/SR/SGGIT/CHA/BV-06-C
TBS/SR/SGGIT/CHA/BV-07-C
TBS/SR/SGGIT/CHA/BV-08-C
TBS/SR/SGGIT/CHA/BV-09-C
TBS/SR/SGGIT/CHA/BV-10-C
TBS/SR/SGGIT/CHA/BV-11-C
TBS/SR/SGGIT/CHA/BV-12-C
TBS/SR/SGGIT/CHA/BV-13-C
TBS/SR/SGGIT/CHA/BV-14-C
TBS/SR/SGGIT/CHA/BV-15-C
TBS/SR/SGGIT/CHA/BV-16-C
TBS/SR/CP/BV-01-C
TBS/SR/CP/BV-02-C
TBS/SR/CP/BV-03-C
TBS/SR/CP/BV-04-C
TBS/SR/CP/BV-05-C
TBS/SR/CP/BV-06-C
TBS/SR/CP/BV-07-C
TBS/SR/CP/BV-08-C
TBS/SR/CP/BV-09-C
TBS/SR/CP/BV-10-C
TBS/SR/SP/BV-01-C
TBS/SR/SP/BV-02-C
TBS/SR/SPN/BV-01-C
TBS/SR/SPN/BV-02-C
TBS/SR/SPN/BV-03-C
TBS/SR/SPN/BV-04-C
TBS/SR/SPN/BV-05-C
TBS/SR/SPN/BV-06-C
TBS/SR/SPN/BV-07-C
TBS/SR/SPN/BV-08-C
TBS/SR/SPN/BV-09-C
TBS/SR/SPN/BV-10-C
TBS/SR/SPN/BV-11-C
TBS/SR/SPE/BI-01-C
TBS/SR/SPE/BI-02-C
TBS/SR/SPE/BI-03-C
TBS/SR/SPE/BI-04-C
TBS/SR/SPE/BI-05-C

@Thalley Thalley force-pushed the tbs_notifications_refactor branch from 25228c9 to 3211c04 Compare January 13, 2025 13:03
@codecoup-tester
Copy link

AutoPTS Bot results:

Failed tests (25)TBS TBS/SR/CP/BV-01-C INDCSV
TBS TBS/SR/CP/BV-02-C INDCSV
TBS TBS/SR/CP/BV-03-C INDCSV
TBS TBS/SR/CP/BV-04-C INDCSV
TBS TBS/SR/CP/BV-05-C INDCSV
TBS TBS/SR/CP/BV-06-C INDCSV
TBS TBS/SR/CP/BV-07-C INDCSV
TBS TBS/SR/CP/BV-08-C INDCSV
TBS TBS/SR/CP/BV-09-C INDCSV
TBS TBS/SR/CP/BV-10-C INDCSV - ERRATA https://github.com//issues/41738 Disallow Join not possible at runtime
TBS TBS/SR/SPE/BI-01-C INDCSV
TBS TBS/SR/SPE/BI-02-C INDCSV
TBS TBS/SR/SPE/BI-03-C INDCSV
TBS TBS/SR/SPE/BI-05-C INDCSV - ERRATA TSE24847
TBS TBS/SR/SPN/BV-01-C INDCSV
TBS TBS/SR/SPN/BV-02-C INDCSV
TBS TBS/SR/SPN/BV-03-C INDCSV
TBS TBS/SR/SPN/BV-04-C INDCSV
TBS TBS/SR/SPN/BV-05-C INDCSV - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-06-C INDCSV - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-07-C INDCSV - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-08-C INDCSV - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-09-C INDCSV - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-10-C INDCSV - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-11-C INDCSV - ERRATA Request ID 31633
Successful tests (20)TBS TBS/SR/SGGIT/CHA/BV-01-C PASS
TBS TBS/SR/SGGIT/CHA/BV-02-C PASS
TBS TBS/SR/SGGIT/CHA/BV-03-C PASS
TBS TBS/SR/SGGIT/CHA/BV-04-C PASS
TBS TBS/SR/SGGIT/CHA/BV-05-C PASS
TBS TBS/SR/SGGIT/CHA/BV-06-C PASS
TBS TBS/SR/SGGIT/CHA/BV-07-C PASS
TBS TBS/SR/SGGIT/CHA/BV-08-C PASS
TBS TBS/SR/SGGIT/CHA/BV-09-C PASS
TBS TBS/SR/SGGIT/CHA/BV-10-C PASS
TBS TBS/SR/SGGIT/CHA/BV-11-C PASS
TBS TBS/SR/SGGIT/CHA/BV-12-C PASS
TBS TBS/SR/SGGIT/CHA/BV-13-C PASS
TBS TBS/SR/SGGIT/CHA/BV-14-C PASS
TBS TBS/SR/SGGIT/CHA/BV-15-C PASS
TBS TBS/SR/SGGIT/CHA/BV-16-C PASS
TBS TBS/SR/SGGIT/SER/BV-01-C PASS
TBS TBS/SR/SP/BV-01-C PASS
TBS TBS/SR/SP/BV-02-C PASS
TBS TBS/SR/SPE/BI-04-C PASS

@Thalley Thalley force-pushed the tbs_notifications_refactor branch from 3211c04 to a3e4fd3 Compare January 14, 2025 13:18
@Thalley
Copy link
Collaborator Author

Thalley commented Jan 14, 2025

#AutoPTS run zephyr nrf53 TBS

@codecoup-tester
Copy link

Scheduled PR #82775 (comment), board: nrf53, estimated start time: 14:25:03, test case count: 45, estimated duration: 1:12:09

Test cases to be runTBS/SR/SGGIT/SER/BV-01-C
TBS/SR/SGGIT/CHA/BV-01-C
TBS/SR/SGGIT/CHA/BV-02-C
TBS/SR/SGGIT/CHA/BV-03-C
TBS/SR/SGGIT/CHA/BV-04-C
TBS/SR/SGGIT/CHA/BV-05-C
TBS/SR/SGGIT/CHA/BV-06-C
TBS/SR/SGGIT/CHA/BV-07-C
TBS/SR/SGGIT/CHA/BV-08-C
TBS/SR/SGGIT/CHA/BV-09-C
TBS/SR/SGGIT/CHA/BV-10-C
TBS/SR/SGGIT/CHA/BV-11-C
TBS/SR/SGGIT/CHA/BV-12-C
TBS/SR/SGGIT/CHA/BV-13-C
TBS/SR/SGGIT/CHA/BV-14-C
TBS/SR/SGGIT/CHA/BV-15-C
TBS/SR/SGGIT/CHA/BV-16-C
TBS/SR/CP/BV-01-C
TBS/SR/CP/BV-02-C
TBS/SR/CP/BV-03-C
TBS/SR/CP/BV-04-C
TBS/SR/CP/BV-05-C
TBS/SR/CP/BV-06-C
TBS/SR/CP/BV-07-C
TBS/SR/CP/BV-08-C
TBS/SR/CP/BV-09-C
TBS/SR/CP/BV-10-C
TBS/SR/SP/BV-01-C
TBS/SR/SP/BV-02-C
TBS/SR/SPN/BV-01-C
TBS/SR/SPN/BV-02-C
TBS/SR/SPN/BV-03-C
TBS/SR/SPN/BV-04-C
TBS/SR/SPN/BV-05-C
TBS/SR/SPN/BV-06-C
TBS/SR/SPN/BV-07-C
TBS/SR/SPN/BV-08-C
TBS/SR/SPN/BV-09-C
TBS/SR/SPN/BV-10-C
TBS/SR/SPN/BV-11-C
TBS/SR/SPE/BI-01-C
TBS/SR/SPE/BI-02-C
TBS/SR/SPE/BI-03-C
TBS/SR/SPE/BI-04-C
TBS/SR/SPE/BI-05-C

@codecoup-tester
Copy link

AutoPTS Bot results:

Failed tests (10)TBS TBS/SR/CP/BV-09-C INDCSV
TBS TBS/SR/CP/BV-10-C INDCSV - ERRATA https://github.com//issues/41738 Disallow Join not possible at runtime
TBS TBS/SR/SPE/BI-05-C INDCSV - ERRATA TSE24847
TBS TBS/SR/SPN/BV-05-C FAIL - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-06-C INDCSV - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-07-C FAIL - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-08-C FAIL - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-09-C FAIL - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-10-C FAIL - ERRATA Request ID 31633
TBS TBS/SR/SPN/BV-11-C FAIL - ERRATA Request ID 31633
Successful tests (35)TBS TBS/SR/CP/BV-01-C PASS
TBS TBS/SR/CP/BV-02-C PASS
TBS TBS/SR/CP/BV-03-C PASS
TBS TBS/SR/CP/BV-04-C PASS
TBS TBS/SR/CP/BV-05-C PASS
TBS TBS/SR/CP/BV-06-C PASS
TBS TBS/SR/CP/BV-07-C PASS
TBS TBS/SR/CP/BV-08-C PASS
TBS TBS/SR/SGGIT/CHA/BV-01-C PASS
TBS TBS/SR/SGGIT/CHA/BV-02-C PASS
TBS TBS/SR/SGGIT/CHA/BV-03-C PASS
TBS TBS/SR/SGGIT/CHA/BV-04-C PASS
TBS TBS/SR/SGGIT/CHA/BV-05-C PASS
TBS TBS/SR/SGGIT/CHA/BV-06-C PASS
TBS TBS/SR/SGGIT/CHA/BV-07-C PASS
TBS TBS/SR/SGGIT/CHA/BV-08-C PASS
TBS TBS/SR/SGGIT/CHA/BV-09-C PASS
TBS TBS/SR/SGGIT/CHA/BV-10-C PASS
TBS TBS/SR/SGGIT/CHA/BV-11-C PASS
TBS TBS/SR/SGGIT/CHA/BV-12-C PASS
TBS TBS/SR/SGGIT/CHA/BV-13-C PASS
TBS TBS/SR/SGGIT/CHA/BV-14-C PASS
TBS TBS/SR/SGGIT/CHA/BV-15-C PASS
TBS TBS/SR/SGGIT/CHA/BV-16-C PASS
TBS TBS/SR/SGGIT/SER/BV-01-C PASS
TBS TBS/SR/SP/BV-01-C PASS
TBS TBS/SR/SP/BV-02-C PASS
TBS TBS/SR/SPE/BI-01-C PASS
TBS TBS/SR/SPE/BI-02-C PASS
TBS TBS/SR/SPE/BI-03-C PASS
TBS TBS/SR/SPE/BI-04-C PASS
TBS TBS/SR/SPN/BV-01-C PASS
TBS TBS/SR/SPN/BV-02-C PASS
TBS TBS/SR/SPN/BV-03-C PASS
TBS TBS/SR/SPN/BV-04-C PASS

@Thalley Thalley force-pushed the tbs_notifications_refactor branch 2 times, most recently from 287a8b9 to e503788 Compare January 15, 2025 19:02
@Thalley
Copy link
Collaborator Author

Thalley commented Jan 16, 2025

The PTS tests will fail until #83959 is merged, but it is otherwise ready for review

@Thalley Thalley marked this pull request as ready for review January 16, 2025 08:03
@Thalley Thalley added the DNM This PR should not be merged (Do Not Merge) label Jan 16, 2025
The existing implemented only attempted to send all notifications,
but if host was out of ATT TX buffers the notifications would fail
and the client may miss out on important information, and would be
a spec violation.

This commit refactors notificatios in TBS so that they are always
sent.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the tbs_notifications_refactor branch from e503788 to a8c0e50 Compare January 21, 2025 10:13
@Thalley Thalley removed the DNM This PR should not be merged (Do Not Merge) label Jan 21, 2025
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