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] Move SiWx917 Sleep Calls to the SleepManager class #112

Closed

Conversation

mkardous-silabs
Copy link
Contributor

Description

The SleepManager class is now the responsible entity of managing the Wi-Fi sleep states based on the Matter SDK states.
PR moves the SiWx917 power saves class to the SleepManager. In this PR, the behavior isn't changed.

Tests

Manual tests with the 917 SoC that the different states still work

  • Sleep after commissioning
  • Sleep on power cycle

@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 16, 2024
@mkardous-silabs mkardous-silabs requested a review from a team as a code owner November 16, 2024 22:35
@@ -1,4 +1,6 @@
#include "SleepManager.h"
#include <lib/support/logging/CHIPLogging.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if the sleep manager should follow the icd states

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the SIT ICD use-case, there isn't much benefit to follow the ICD states other than the basic Fast / slow poll behavior.
Where we need to be synced is with the LIT ICD behavior to optimize the Wi-Fi connectivity based on the ICD operationnal states.

Copy link
Contributor

Choose a reason for hiding this comment

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

Part of what i mean is that you are using a eventing based on commissioning events (open/close/completed) but really it is the same as following the kCommissioningWindowOpen KeepActiveFlagsValues. I suspect the wifi device will require to listen to not sleep and not filter mdns packets for any KeepActiveFlags

@mkardous-silabs
Copy link
Contributor Author

Closing PR to re-work the structure

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.

2 participants