Skip to content

Commit bdbcf07

Browse files
Finish remaning ICD configs from Interval to Duration (#32109)
1 parent 9da913f commit bdbcf07

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

examples/light-switch-app/silabs/openthread.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ sl_ot_idle_interval_ms = 15000 # 15s Idle Intervals
3535
sl_ot_active_interval_ms = 500 # 500ms Active Intervals
3636

3737
# ICD Matter Configuration flags
38-
sl_idle_mode_interval_s = 3600 # 60min Idle Mode Interval
39-
sl_active_mode_interval_ms = 60000 # 60s Active Mode Interval
38+
sl_idle_mode_duration_s = 3600 # 60min Idle Mode Duration
39+
sl_active_mode_duration_ms = 60000 # 60s Active Mode Duration
4040
sl_active_mode_threshold_ms = 1000 # 1s Active Mode Threshold

examples/lit-icd-app/silabs/build_for_wifi_args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ sl_use_subscription_synching = true
3030
icd_enforce_sit_slow_poll_limit = true
3131

3232
# ICD Matter Configuration flags
33-
sl_idle_mode_interval_s = 3600 # 60min Idle Mode Interval
34-
sl_active_mode_interval_ms = 0 # 0 Active Mode Interval
33+
sl_idle_mode_duration_s = 3600 # 60min Idle Mode Duration
34+
sl_active_mode_duration_ms = 0 # 0 Active Mode Duration
3535
sl_active_mode_threshold_ms = 30000 # 30s Active Mode Threshold

examples/lit-icd-app/silabs/openthread.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ sl_ot_idle_interval_ms = 3600000 # 60mins Idle Polling Interval
3838
sl_ot_active_interval_ms = 1000 # 1000ms Active Polling Interval
3939

4040
# ICD Matter Configuration flags
41-
sl_idle_mode_interval_s = 3600 # 60min Idle Mode Interval
42-
sl_active_mode_interval_ms = 0 # 0 Active Mode Interval
41+
sl_idle_mode_duration_s = 3600 # 60min Idle Mode Duration
42+
sl_active_mode_duration_ms = 0 # 0 Active Mode Duration
4343
sl_active_mode_threshold_ms = 5000 # 5s Active Mode Threshold

examples/lock-app/silabs/build_for_wifi_args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ chip_subscription_timeout_resumption = false
2727
sl_use_subscription_synching = true
2828

2929
# ICD Matter Configuration flags
30-
sl_idle_mode_interval_s = 600 # 10min Idle Mode Interval
31-
sl_active_mode_interval_ms = 10000 # 10s Active Mode Interval
30+
sl_idle_mode_duration_s = 600 # 10min Idle Mode Duration
31+
sl_active_mode_duration_ms = 10000 # 10s Active Mode Duration
3232
sl_active_mode_threshold_ms = 1000 # 1s Active Mode Threshold

examples/lock-app/silabs/openthread.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ sl_ot_idle_interval_ms = 5000 # 5s Idle Intervals
3535
sl_ot_active_interval_ms = 500 # 500ms Active Intervals
3636

3737
# ICD Matter Configuration flags
38-
sl_idle_mode_interval_s = 600 # 10min Idle Mode Interval
39-
sl_active_mode_interval_ms = 10000 # 10s Active Mode Interval
38+
sl_idle_mode_duration_s = 600 # 10min Idle Mode Duration
39+
sl_active_mode_duration_ms = 10000 # 10s Active Mode Duration
4040
sl_active_mode_threshold_ms = 1000 # 1s Active Mode Threshold

examples/window-app/silabs/openthread.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ sl_ot_idle_interval_ms = 1000 # 1s Idle Intervals
3636
sl_ot_active_interval_ms = 500 # 500ms Active Intervals
3737

3838
# ICD Matter Configuration flags
39-
sl_idle_mode_interval_s = 600 # 10min Idle Mode Interval
40-
sl_active_mode_interval_ms = 0 # 0s Active Mode Interval
39+
sl_idle_mode_duration_s = 600 # 10min Idle Mode Duration
40+
sl_active_mode_duration_ms = 0 # 0s Active Mode Duration
4141
sl_active_mode_threshold_ms = 0 # 1s Active Mode Threshold

src/app/ReadHandler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class ReadHandler : public Messaging::ExchangeDelegate
275275

276276
/**
277277
* Returns SUBSCRIPTION_MAX_INTERVAL_PUBLISHER_LIMIT
278-
* For an ICD publisher, this SHALL be set to the idle mode interval.
278+
* For an ICD publisher, this SHALL be set to the idle mode duration.
279279
* Otherwise, this SHALL be set to 60 minutes.
280280
*/
281281
uint16_t GetPublisherSelectedIntervalLimit();

src/app/reporting/SynchronizedReportSchedulerImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void SynchronizedReportSchedulerImpl::OnTransitionToIdle()
5151
VerifyOrReturn(now >= mNextReportTimestamp);
5252
if (((mNextReportTimestamp - now) < Seconds16(targetIdleInterval)) && (now > mNextMinTimestamp))
5353
{
54-
// If the next report is due in less than the idle mode interval and we are past the min interval, we can just send it now
54+
// If the next report is due in less than the idle mode duration and we are past the min interval, we can just send it now
5555
CancelReport();
5656
TimerFired();
5757
}

src/platform/silabs/CHIPPlatformConfig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@
9595
#ifdef SL_ICD_ENABLED
9696

9797
#ifndef CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC
98-
#define CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC SL_IDLE_MODE_INTERVAL
98+
#define CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC SL_IDLE_MODE_DURATION_S
9999
#endif // CHIP_CONFIG_ICD_IDLE_MODE_DURATION_SEC
100100

101101
#ifndef CHIP_CONFIG_ICD_ACTIVE_MODE_DURATION_MS
102-
#define CHIP_CONFIG_ICD_ACTIVE_MODE_DURATION_MS SL_ACTIVE_MODE_INTERVAL
102+
#define CHIP_CONFIG_ICD_ACTIVE_MODE_DURATION_MS SL_ACTIVE_MODE_DURATION_MS
103103
#endif // CHIP_CONFIG_ICD_ACTIVE_MODE_DURATION_MS
104104

105105
#ifndef CHIP_CONFIG_ICD_ACTIVE_MODE_THRESHOLD_MS

third_party/silabs/SiWx917_sdk.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ template("siwx917_sdk") {
267267
defines += [
268268
"SL_ICD_ENABLED=1",
269269
"SL_ACTIVE_MODE_THRESHOLD=${sl_active_mode_threshold_ms}",
270-
"SL_ACTIVE_MODE_INTERVAL=${sl_active_mode_interval_ms}",
271-
"SL_IDLE_MODE_INTERVAL=${sl_idle_mode_interval_s}",
270+
"SL_ACTIVE_MODE_DURATION_MS=${sl_active_mode_duration_ms}",
271+
"SL_IDLE_MODE_DURATION_S=${sl_idle_mode_duration_s}",
272272
"SL_ICD_SUPPORTED_CLIENTS_PER_FABRIC=${sl_icd_supported_clients_per_fabric}",
273273
"SL_SI91X_MCU_WIRELESS_BASED_WAKEUP=1",
274274
"SL_SI91X_MCU_BUTTON_BASED_WAKEUP=1",

third_party/silabs/efr32_sdk.gni

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ declare_args() {
5454
sl_ot_csl_timeout_sec = 30 # 30s CSL timeout
5555

5656
# ICD Matter Configuration flags
57-
sl_idle_mode_interval_s = 600 # 10min Idle Mode Interval
58-
sl_active_mode_interval_ms = 1000 # 1s Active Mode Interval
57+
sl_idle_mode_duration_s = 600 # 10min Idle Mode Duration
58+
sl_active_mode_duration_ms = 1000 # 1s Active Mode Duration
5959
sl_active_mode_threshold_ms = 500 # 500ms Active Mode Threshold
6060
sl_icd_supported_clients_per_fabric = 2 # 2 registration slots per fabric
6161
sl_use_subscription_synching = false
@@ -420,8 +420,8 @@ template("efr32_sdk") {
420420
defines += [
421421
"SL_ICD_ENABLED=1",
422422
"SL_ACTIVE_MODE_THRESHOLD=${sl_active_mode_threshold_ms}",
423-
"SL_ACTIVE_MODE_INTERVAL=${sl_active_mode_interval_ms}",
424-
"SL_IDLE_MODE_INTERVAL=${sl_idle_mode_interval_s}",
423+
"SL_ACTIVE_MODE_DURATION_MS=${sl_active_mode_duration_ms}",
424+
"SL_IDLE_MODE_DURATION_S=${sl_idle_mode_duration_s}",
425425
"SL_ICD_SUPPORTED_CLIENTS_PER_FABRIC=${sl_icd_supported_clients_per_fabric}",
426426
]
427427

0 commit comments

Comments
 (0)