Skip to content

Commit 0b98834

Browse files
kkasperczyk-nokartben
authored andcommitted
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 6f26952 commit 0b98834

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
@@ -223,3 +223,24 @@ config OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
223223
default 100000
224224
help
225225
Openthread value ahead of the current frame counter for persistent storage.
226+
227+
config OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
228+
int "Openthread child supervision check timeout in seconds"
229+
default 190
230+
help
231+
The supervision check timeout interval in seconds used by a device in child state.
232+
Set to zero to disable the supervision check process on the child.
233+
234+
config OPENTHREAD_CHILD_SUPERVISION_INTERVAL
235+
int "Openthread child supervision interval in seconds"
236+
default 129
237+
help
238+
The supervision interval used by a parent device to send a supervision message
239+
to the child, if there is no transmission to the child within this interval.
240+
Set to zero to disable the supervision check process on the child.
241+
242+
config OPENTHREAD_MLE_CHILD_TIMEOUT
243+
int "Openthread MLE child timeout in seconds"
244+
default 240
245+
help
246+
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
@@ -479,4 +479,35 @@
479479
#define OPENTHREAD_CONFIG_STORE_FRAME_COUNTER_AHEAD CONFIG_OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
480480
#endif
481481

482+
/**
483+
* @def OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT
484+
*
485+
* The value of the child supervision check timeout in seconds.
486+
*
487+
*/
488+
#ifdef CONFIG_OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
489+
#define OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT \
490+
CONFIG_OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
491+
#endif
492+
493+
/**
494+
* @def OPENTHREAD_CONFIG_CHILD_SUPERVISION_INTERVAL
495+
*
496+
* The value of the child supervision interval in seconds.
497+
*
498+
*/
499+
#ifdef CONFIG_OPENTHREAD_CHILD_SUPERVISION_INTERVAL
500+
#define OPENTHREAD_CONFIG_CHILD_SUPERVISION_INTERVAL CONFIG_OPENTHREAD_CHILD_SUPERVISION_INTERVAL
501+
#endif
502+
503+
/**
504+
* @def OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT
505+
*
506+
* The value of the MLE child timeout in seconds.
507+
*
508+
*/
509+
#ifdef CONFIG_OPENTHREAD_MLE_CHILD_TIMEOUT
510+
#define OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT CONFIG_OPENTHREAD_MLE_CHILD_TIMEOUT
511+
#endif
512+
482513
#endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */

0 commit comments

Comments
 (0)