-
Notifications
You must be signed in to change notification settings - Fork 9
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-UP] Moving the high-performance request command out of the timer handler #215
base: release_2.5-1.4
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Observing some issue when testing with latest commit.
The PR changes the behavior of ICD exampe application but testing section does not define any tests that verify that sleep behavior is not significantly impacted.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting change until the validated scenarios are clarified and tested.
|
If i am not mistaken, this prevents the device from going to sleep while connecting to the Wi-Fi network. In practice, this shouldn't be the case. Can we move these high performance calls else where? When we remove chirag's changes, this change will still impact power consumption and code execution. |
It is expected to remain in a high-performance state while connecting to the Wi-Fi network. |
I understand why the call cannot be in the timer callback; it shouldn't have been put there from the start. Outisde of the Wi-Fi issue which Chirag opened a PR for, it is possible for the device to connect to Wi-Fi network without being in high-performance. The goal of having the high performance req in the timer callback, even if it is wrong, was to take the device out of the sleep with no Wi-Fi network state. In other words, it aimed to solve a specific use-case. I don't think it it is necessary for the board to be in high performance. The change was simply "copied" from the previous logic to enable the board to sleep from the start. The change you are proposing, changes the device connect behavior outside of just fixing the bug. I do not believe this is the correct way to fix this issue. |
|
Description:
Issuing the power-save enable commands from the timer handler was causing a timeout issue, and the high-performance request before joining the network was failing.
Fix:
Moved the high-performance request command out of the timer handler.
Testing:
Tested commissioning and power cycling locally with the 917 SoC.