Skip to content

Commit 5ed8692

Browse files
[nrf fromlist] modules: openthread: Add of Kconfigs to change child timeouts
Introduced few Kconfigs that allow to change default values of MLE child timeout and child supervision timeouts. Signed-off-by: Kamil Kasperczyk <[email protected]>
1 parent c193043 commit 5ed8692

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

modules/openthread/Kconfig.thread

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,24 @@ config OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
210210
default 100000
211211
help
212212
Openthread value ahead of the current frame counter for persistent storage.
213+
214+
config OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
215+
int "Openthread child supervision check timeout in seconds"
216+
default 190
217+
help
218+
The supervision check timeout interval in seconds used by a device in child state.
219+
Set to zero to disable the supervision check process on the child.
220+
221+
config OPENTHREAD_CHILD_SUPERVISION_INTERVAL
222+
int "Openthread child supervision interval in seconds"
223+
default 129
224+
help
225+
The supervision interval used by a parent device to send a supervision message
226+
to the child, if there is no transmission to the child within this interval.
227+
Set to zero to disable the supervision check process on the child.
228+
229+
config OPENTHREAD_MLE_CHILD_TIMEOUT
230+
int "Openthread MLE child timeout in seconds"
231+
default 240
232+
help
233+
The value of MLE child timeout in seconds.

modules/openthread/platform/openthread-core-zephyr-config.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,4 +468,35 @@
468468
#define OPENTHREAD_CONFIG_STORE_FRAME_COUNTER_AHEAD CONFIG_OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
469469
#endif
470470

471+
/**
472+
* @def OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT
473+
*
474+
* The value of the child supervision check timeout in seconds.
475+
*
476+
*/
477+
#ifdef CONFIG_OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
478+
#define OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT \
479+
CONFIG_OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
480+
#endif
481+
482+
/**
483+
* @def OPENTHREAD_CONFIG_CHILD_SUPERVISION_INTERVAL
484+
*
485+
* The value of the child supervision interval in seconds.
486+
*
487+
*/
488+
#ifdef CONFIG_OPENTHREAD_CHILD_SUPERVISION_INTERVAL
489+
#define OPENTHREAD_CONFIG_CHILD_SUPERVISION_INTERVAL CONFIG_OPENTHREAD_CHILD_SUPERVISION_INTERVAL
490+
#endif
491+
492+
/**
493+
* @def OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT
494+
*
495+
* The value of the MLE child timeout in seconds.
496+
*
497+
*/
498+
#ifdef CONFIG_OPENTHREAD_MLE_CHILD_TIMEOUT
499+
#define OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT CONFIG_OPENTHREAD_MLE_CHILD_TIMEOUT
500+
#endif
501+
471502
#endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */

0 commit comments

Comments
 (0)