diff --git a/modules/openthread/Kconfig.thread b/modules/openthread/Kconfig.thread index 22f11d5c606..5a5a10d6712 100644 --- a/modules/openthread/Kconfig.thread +++ b/modules/openthread/Kconfig.thread @@ -210,3 +210,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. diff --git a/modules/openthread/platform/openthread-core-zephyr-config.h b/modules/openthread/platform/openthread-core-zephyr-config.h index 434d69783be..fac10d211c6 100644 --- a/modules/openthread/platform/openthread-core-zephyr-config.h +++ b/modules/openthread/platform/openthread-core-zephyr-config.h @@ -468,4 +468,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_ */