-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
samples: matter: Added system off configuration for smoke CO alarm #19244
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 3f9e7a6b5194ca81bc4de2f13419cdb53e41db66 more detailssdk-nrf:
Github labels
List of changed files detected by CI (7)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
ec7e84e
to
b530a8e
Compare
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
config SYSTEM_OFF | ||
bool "Enable system off on idle" | ||
depends on POWEROFF | ||
depends on SOC_NRF54L15_CPUAPP |
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.
Do we want to support this on L05 or L10?
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.
For L05, definitely not, but maybe for L10. I will change it to SOC_SERIES_NRF54LX
@@ -5,6 +5,16 @@ | |||
# | |||
mainmenu "Matter nRF Connect Smoke CO Alarm Example Application" | |||
|
|||
config SYSTEM_OFF |
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.
would prefer this to have a prefix e.g. APPLICATION_SYSTEM_OFF
because without a prefix, it just seems like this could easily conflict with something in zephyr in future
b530a8e
to
fe76cee
Compare
Added configuration that allows to enable system off for the smoke CO alarm. Signed-off-by: Kamil Kasperczyk <[email protected]>
fe76cee
to
3f9e7a6
Compare
System off configuration | ||
------------------------ | ||
|
||
The sample supports optional system off configuration, that turns off the whole system once an ICD device enters the idle state. |
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.
The sample supports optional system off configuration, that turns off the whole system once an ICD device enters the idle state. | |
The sample supports optional system off configuration that turns off the whole system once an ICD device enters the idle state. |
------------------------ | ||
|
||
The sample supports optional system off configuration, that turns off the whole system once an ICD device enters the idle state. | ||
Turning off the system, instead of putting it to sleep allows the device to achieve much lower power consumption in the idle state. |
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.
Turning off the system, instead of putting it to sleep allows the device to achieve much lower power consumption in the idle state. | |
Turning off the system instead of putting it to sleep allows the device to achieve much lower power consumption in the idle state. |
|
||
The sample supports optional system off configuration, that turns off the whole system once an ICD device enters the idle state. | ||
Turning off the system, instead of putting it to sleep allows the device to achieve much lower power consumption in the idle state. | ||
On the other hand, the device wakes up from a sleep state much faster than from the system off, and it sends only Thread data poll frame and Matter data report. |
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.
On the other hand, the device wakes up from a sleep state much faster than from the system off, and it sends only Thread data poll frame and Matter data report. | |
On the other hand, the device wakes up from the sleep state much faster than from the system off, and it sends only a Thread data poll frame and Matter data report. |
The sample supports optional system off configuration, that turns off the whole system once an ICD device enters the idle state. | ||
Turning off the system, instead of putting it to sleep allows the device to achieve much lower power consumption in the idle state. | ||
On the other hand, the device wakes up from a sleep state much faster than from the system off, and it sends only Thread data poll frame and Matter data report. | ||
In case of waking up from the system off, the device has to boot the whole system, initialize platform, re-attach to network and send data report every time, what consumes a lot of energy. |
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.
In case of waking up from the system off, the device has to boot the whole system, initialize platform, re-attach to network and send data report every time, what consumes a lot of energy. | |
In case of waking up from the system off, the device has to boot the whole system, initialize platform, re-attach to network, and send data report every time, which consumes a lot of energy. |
On the other hand, the device wakes up from a sleep state much faster than from the system off, and it sends only Thread data poll frame and Matter data report. | ||
In case of waking up from the system off, the device has to boot the whole system, initialize platform, re-attach to network and send data report every time, what consumes a lot of energy. | ||
|
||
The usage of system off configuration can be beneficial from the perspective of overall power consumption for the scenarios, when the device has relatively big sleep interval and the system boot happens rarely. |
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.
The usage of system off configuration can be beneficial from the perspective of overall power consumption for the scenarios, when the device has relatively big sleep interval and the system boot happens rarely. | |
Using the system off configuration can be beneficial from the perspective of overall power consumption for scenarios, where the device has relatively long sleep interval and the system boot happens rarely. |
In case of waking up from the system off, the device has to boot the whole system, initialize platform, re-attach to network and send data report every time, what consumes a lot of energy. | ||
|
||
The usage of system off configuration can be beneficial from the perspective of overall power consumption for the scenarios, when the device has relatively big sleep interval and the system boot happens rarely. | ||
It was proven by measurements that an ICD device achieves better power consumption with the system off enabled for sleep intervals bigger than 15 minutes. |
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.
It was proven by measurements that an ICD device achieves better power consumption with the system off enabled for sleep intervals bigger than 15 minutes. | |
It was proven by measurements that an ICD device achieves lower power consumption with the system off enabled for sleep intervals longer than 15 minutes. |
The usage of system off configuration can be beneficial from the perspective of overall power consumption for the scenarios, when the device has relatively big sleep interval and the system boot happens rarely. | ||
It was proven by measurements that an ICD device achieves better power consumption with the system off enabled for sleep intervals bigger than 15 minutes. | ||
|
||
Additionally, the system off solution disables RAM retention, what results in losing the data that could be potentially stored there, like for example diagnostic logs. |
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.
Additionally, the system off solution disables RAM retention, what results in losing the data that could be potentially stored there, like for example diagnostic logs. | |
The system off solution disables RAM retention, which results in losing data that could be potentially stored in RAM, like for example diagnostic logs. |
|
||
Additionally, the system off solution disables RAM retention, what results in losing the data that could be potentially stored there, like for example diagnostic logs. | ||
|
||
This feature is disabled by default, and it is available only for the ``nrf54l15dk/nrf54l15/cpuapp`` target. |
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.
This feature is disabled by default, and it is available only for the ``nrf54l15dk/nrf54l15/cpuapp`` target. | |
This feature is disabled by default, and it is available only for the ``nrf54l15dk/nrf54l15/cpuapp`` board target. |
@@ -396,6 +396,7 @@ Matter samples | |||
* :ref:`matter_smoke_co_alarm_sample` sample: | |||
|
|||
* Added support for ICD dynamic SIT LIT switching (DSLS). | |||
* Added support for system off configuration for the :ref:`zephyr:nrf54l15dk_nrf54l15` target. |
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.
Add the changelog entry as a comment to my #19240 and remove it from this PR.
|
||
This feature is disabled by default, and it is available only for the ``nrf54l15dk/nrf54l15/cpuapp`` target. | ||
To enable it, set the :kconfig:option:`CONFIG_SAMPLE_MATTER_SYSTEM_OFF` Kconfig option to ``y``. | ||
You can test the sample configuration that enables system off and configures the device to wake-up every 30 minutes, by applying a dedicated overlay file. |
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.
You can test the sample configuration that enables system off and configures the device to wake-up every 30 minutes, by applying a dedicated overlay file. | |
You can test the sample configuration that enables system off and configures the device to wake-up every 30 minutes by applying a dedicated overlay file. |
There are too many issues with this change and it needs more work to be solid, so I'm closing the PR for now. |
Added configuration that allows to enable system off for the smoke CO alarm.