|
382 | 382 | #define OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE 0 |
383 | 383 | #endif |
384 | 384 |
|
| 385 | +/** |
| 386 | + * @def OPENTHREAD_CONFIG_PARENT_SEARCH_CHECK_INTERVAL |
| 387 | + * |
| 388 | + * Specifies the interval in seconds for a child to check the trigger condition to perform a parent search. |
| 389 | + * |
| 390 | + * Applicable only if periodic parent search feature is enabled (see `OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE`). |
| 391 | + */ |
| 392 | +#ifdef OPENTHREAD_CONFIG_PARENT_SEARCH_CHECK_INTERVAL |
| 393 | +#error `OPENTHREAD_CONFIG_PARENT_SEARCH_CHECK_INTERVAL` is redefined. |
| 394 | +#endif |
| 395 | +#define OPENTHREAD_CONFIG_PARENT_SEARCH_CHECK_INTERVAL CONFIG_OPENTHREAD_PARENT_SEARCH_CHECK_INTERVAL_MINS * 60 |
| 396 | + |
| 397 | +/** |
| 398 | + * @def OPENTHREAD_CONFIG_PARENT_SEARCH_BACKOFF_INTERVAL |
| 399 | + * |
| 400 | + * Specifies the backoff interval in seconds for a child to not perform a parent search after triggering one. This is |
| 401 | + * used when device is an MTD child. |
| 402 | + * |
| 403 | + * Applicable only if periodic parent search feature is enabled (see `OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE`). |
| 404 | + */ |
| 405 | +#ifdef OPENTHREAD_CONFIG_PARENT_SEARCH_BACKOFF_INTERVAL |
| 406 | +#error `OPENTHREAD_CONFIG_PARENT_SEARCH_BACKOFF_INTERVAL` is redefined. |
| 407 | +#endif |
| 408 | +#define OPENTHREAD_CONFIG_PARENT_SEARCH_BACKOFF_INTERVAL CONFIG_OPENTHREAD_PARENT_SEARCH_BACKOFF_INTERVAL_MINS * 60 |
| 409 | + |
| 410 | +/** |
| 411 | + * @def OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_THRESHOLD |
| 412 | + * |
| 413 | + * Specifies the RSS threshold used to trigger a parent search. |
| 414 | + * |
| 415 | + * Applicable only if periodic parent search feature is enabled (see `OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE`). |
| 416 | + */ |
| 417 | +#ifdef OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_THRESHOLD |
| 418 | +#error `OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_THRESHOLD` is redefined. |
| 419 | +#endif |
| 420 | +#define OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_THRESHOLD CONFIG_OPENTHREAD_PARENT_SEARCH_RSS_THRESHOLD |
| 421 | + |
| 422 | +/** |
| 423 | + * @def OPENTHREAD_CONFIG_PARENT_SEARCH_RESELECT_TIMEOUT |
| 424 | + * |
| 425 | + * Specifies parent reselect timeout duration in seconds used on FTD child devices. When an attach attempt to a |
| 426 | + * neighboring router selected as a potential new parent fails, the same router cannot be selected again until this |
| 427 | + * timeout expires. |
| 428 | + * |
| 429 | + * Applicable only if periodic parent search feature is enabled (see `OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE`). |
| 430 | + */ |
| 431 | +#ifdef OPENTHREAD_CONFIG_PARENT_SEARCH_RESELECT_TIMEOUT |
| 432 | +#error `OPENTHREAD_CONFIG_PARENT_SEARCH_RESELECT_TIMEOUT` is redefined. |
| 433 | +#endif |
| 434 | +#define OPENTHREAD_CONFIG_PARENT_SEARCH_RESELECT_TIMEOUT CONFIG_OPENTHREAD_PARENT_SEARCH_RESELECT_TIMEOUT_MINS * 60 |
| 435 | + |
| 436 | +/** |
| 437 | + * @def OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_MARGIN |
| 438 | + * |
| 439 | + * Specifies the RSS margin over the current parent RSS for allowing selection of a neighboring router as a potential |
| 440 | + * new parent to attach to. Used on FTD child devices. |
| 441 | + */ |
| 442 | +#ifdef OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_MARGIN |
| 443 | +#error `OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_MARGIN` is redefined. |
| 444 | +#endif |
| 445 | +#define OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_MARGIN CONFIG_OPENTHREAD_PARENT_SEARCH_RSS_MARGIN |
| 446 | + |
385 | 447 | /*----The following options set fixed default values but can be overridden by the user header file.----*/ |
386 | 448 |
|
387 | 449 | #if CONFIG_OPENTHREAD_BORDER_ROUTER |
|
0 commit comments