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

[SL-ONLY] Add business logic for the selective listening impl #139

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

mkardous-silabs
Copy link
Contributor

Description

PR implements the CanGoToLIBasedSleep which is the core of the of the Selective Listening Design.
The initial logic is to check that there is at least 1 subscription per fabric and that the commissioning window is not opened to enable LI based sleep.

PR removes the dependency on the CommissioningWindowManager because the window is considered open while the
OnCommissioningWindowClosed callback is being processed.

Tests

Manual tests to validate that device is in LI / DTIm based sleep at the right moments. The way the Wi-Fi integration is implemented prevents from having unit tests. This will be in a follow up once the platform layer is improved.

@mkardous-silabs mkardous-silabs added the sl-only This TAG indicates that this commit is a silabs-specific commit that cannot be upstream to CSA. label Nov 27, 2024
@mkardous-silabs mkardous-silabs requested a review from a team as a code owner November 27, 2024 18:24
Co-authored-by: lpbeliveau-silabs <[email protected]>
@chirag-silabs
Copy link
Contributor

Just a suggestion, since we are adding the sleep requirement on window open and window close which can be changed, since this is only needed during the commissioning. After commissioning if window is opened or closed the device can be in the DTIM sleep.

@mkardous-silabs
Copy link
Contributor Author

Just a suggestion, since we are adding the sleep requirement on window open and window close which can be changed, since this is only needed during the commissioning. After commissioning if window is opened or closed the device can be in the DTIM sleep.

@chirag-silabs I don't follow your suggestion

@mkardous-silabs mkardous-silabs merged commit 43891a3 into release_2.5-1.4 Nov 28, 2024
11 of 12 checks passed
@mkardous-silabs mkardous-silabs deleted the feature/add_app_logic branch November 28, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sl-only This TAG indicates that this commit is a silabs-specific commit that cannot be upstream to CSA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants