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 <kamil.kasperczyk@nordicsemi.no>
This commit is contained in:
Kamil Kasperczyk 2024-11-28 07:36:51 +01:00 committed by Benjamin Cabé
parent 6f26952828
commit 0b98834424
2 changed files with 52 additions and 0 deletions

View File

@ -223,3 +223,24 @@ config OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
default 100000
help
Openthread value ahead of the current frame counter for persistent storage.
config OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
int "Openthread child supervision check timeout in seconds"
default 190
help
The supervision check timeout interval in seconds used by a device in child state.
Set to zero to disable the supervision check process on the child.
config OPENTHREAD_CHILD_SUPERVISION_INTERVAL
int "Openthread child supervision interval in seconds"
default 129
help
The supervision interval used by a parent device to send a supervision message
to the child, if there is no transmission to the child within this interval.
Set to zero to disable the supervision check process on the child.
config OPENTHREAD_MLE_CHILD_TIMEOUT
int "Openthread MLE child timeout in seconds"
default 240
help
The value of MLE child timeout in seconds.

View File

@ -479,4 +479,35 @@
#define OPENTHREAD_CONFIG_STORE_FRAME_COUNTER_AHEAD CONFIG_OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
#endif
/**
* @def OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT
*
* The value of the child supervision check timeout in seconds.
*
*/
#ifdef CONFIG_OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
#define OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT \
CONFIG_OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
#endif
/**
* @def OPENTHREAD_CONFIG_CHILD_SUPERVISION_INTERVAL
*
* The value of the child supervision interval in seconds.
*
*/
#ifdef CONFIG_OPENTHREAD_CHILD_SUPERVISION_INTERVAL
#define OPENTHREAD_CONFIG_CHILD_SUPERVISION_INTERVAL CONFIG_OPENTHREAD_CHILD_SUPERVISION_INTERVAL
#endif
/**
* @def OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT
*
* The value of the MLE child timeout in seconds.
*
*/
#ifdef CONFIG_OPENTHREAD_MLE_CHILD_TIMEOUT
#define OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT CONFIG_OPENTHREAD_MLE_CHILD_TIMEOUT
#endif
#endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */