Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. menu "OpenThread"
  2. config OPENTHREAD_ENABLED
  3. bool "OpenThread"
  4. default n
  5. help
  6. Select this option to enable OpenThread and show the submenu with OpenThread configuration choices.
  7. config OPENTHREAD_LOG_LEVEL_DYNAMIC
  8. bool "Enable dynamic log level control"
  9. depends on OPENTHREAD_ENABLED
  10. default y
  11. help
  12. Select this option to enable dynamic log level control for OpenThread
  13. choice OPENTHREAD_LOG_LEVEL
  14. prompt "OpenThread log verbosity"
  15. depends on OPENTHREAD_ENABLED && !OPENTHREAD_LOG_LEVEL_DYNAMIC
  16. default OPENTHREAD_LOG_LEVEL_INFO
  17. help
  18. Select OpenThread log level.
  19. config OPENTHREAD_LOG_LEVEL_NONE
  20. bool "No logs"
  21. config OPENTHREAD_LOG_LEVEL_CRIT
  22. bool "Error logs"
  23. config OPENTHREAD_LOG_LEVEL_WARN
  24. bool "Warning logs"
  25. config OPENTHREAD_LOG_LEVEL_NOTE
  26. bool "Notice logs"
  27. config OPENTHREAD_LOG_LEVEL_INFO
  28. bool "Info logs"
  29. config OPENTHREAD_LOG_LEVEL_DEBG
  30. bool "Debug logs"
  31. endchoice #OPENTHREAD_LOG_LEVEL
  32. config OPENTHREAD_LOG_LEVEL
  33. int
  34. depends on OPENTHREAD_ENABLED && !OPENTHREAD_LOG_LEVEL_DYNAMIC
  35. default 0 if OPENTHREAD_LOG_LEVEL_NONE
  36. default 1 if OPENTHREAD_LOG_LEVEL_CRIT
  37. default 2 if OPENTHREAD_LOG_LEVEL_WARN
  38. default 3 if OPENTHREAD_LOG_LEVEL_NOTE
  39. default 4 if OPENTHREAD_LOG_LEVEL_INFO
  40. default 5 if OPENTHREAD_LOG_LEVEL_DEBG
  41. choice OPENTHREAD_RADIO_TYPE
  42. prompt "Config the Thread radio type"
  43. depends on OPENTHREAD_ENABLED
  44. default OPENTHREAD_RADIO_NATIVE if IDF_TARGET_ESP32H4
  45. default OPENTHREAD_RADIO_SPINEL_UART
  46. help
  47. Configure how OpenThread connects to the 15.4 radio
  48. config OPENTHREAD_RADIO_NATIVE
  49. bool "Native 15.4 radio"
  50. help
  51. Select this to use the native 15.4 radio.
  52. config OPENTHREAD_RADIO_SPINEL_UART
  53. bool "Connect via UART"
  54. help
  55. Select this to connect to a Radio Co-Processor via UART.
  56. endchoice
  57. choice OPENTHREAD_DEVICE_TYPE
  58. prompt "Config the Thread device type"
  59. depends on OPENTHREAD_ENABLED
  60. default OPENTHREAD_FTD
  61. help
  62. OpenThread can be configured to different device types (FTD, MTD, Radio)
  63. config OPENTHREAD_FTD
  64. bool "Full Thread Device"
  65. help
  66. Select this to enable Full Thread Device which can act as router and leader in a Thread network.
  67. config OPENTHREAD_MTD
  68. bool "Minimal Thread Device"
  69. help
  70. Select this to enable Minimal Thread Device which can only act as end device in a Thread network.
  71. This will reduce the code size of the OpenThread stack.
  72. config OPENTHREAD_RADIO
  73. bool "Radio Only Device"
  74. help
  75. Select this to enable Radio Only Device which can only forward 15.4 packets to the host.
  76. The OpenThread stack will be run on the host and OpenThread will have minimal footprint on the
  77. radio only device.
  78. endchoice
  79. config OPENTHREAD_CLI
  80. bool "Enable Openthread Command-Line Interface"
  81. depends on OPENTHREAD_ENABLED
  82. default y
  83. help
  84. Select this option to enable Command-Line Interface in OpenThread.
  85. config OPENTHREAD_DIAG
  86. bool "Enable diag"
  87. depends on OPENTHREAD_ENABLED
  88. default y
  89. help
  90. Select this option to enable Diag in OpenThread. This will enable diag mode and a series of diag commands
  91. in the OpenThread command line. These commands allow users to manipulate low-level features of the storage
  92. and 15.4 radio.
  93. config OPENTHREAD_COMMISSIONER
  94. bool "Enable Commissioner"
  95. depends on OPENTHREAD_ENABLED
  96. default n
  97. help
  98. Select this option to enable commissioner in OpenThread. This will enable the device to act as a
  99. commissioner in the Thread network. A commissioner checks the pre-shared key from a joining device with
  100. the Thread commissioning protocol and shares the network parameter with the joining device upon success.
  101. config OPENTHREAD_JOINER
  102. bool "Enable Joiner"
  103. depends on OPENTHREAD_ENABLED
  104. default n
  105. help
  106. Select this option to enable Joiner in OpenThread. This allows a device to join the Thread network with a
  107. pre-shared key using the Thread commissioning protocol.
  108. config OPENTHREAD_SRP_CLIENT
  109. bool "Enable SRP Client"
  110. depends on OPENTHREAD_ENABLED
  111. default n
  112. help
  113. Select this option to enable SRP Client in OpenThread. This allows a device to register SRP services to SRP
  114. Server.
  115. config OPENTHREAD_BORDER_ROUTER
  116. bool "Enable Border Router"
  117. depends on OPENTHREAD_ENABLED
  118. default n
  119. help
  120. Select this option to enable border router features in OpenThread.
  121. config OPENTHREAD_NUM_MESSAGE_BUFFERS
  122. int "The number of openthread message buffers"
  123. depends on OPENTHREAD_ENABLED
  124. default 65
  125. range 50 100
  126. config OPENTHREAD_DNS64_CLIENT
  127. bool "Use dns64 client"
  128. depends on OPENTHREAD_ENABLED
  129. default n
  130. help
  131. Select this option to acquire NAT64 address from dns servers.
  132. endmenu