Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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_CONSOLE_TYPE
  14. prompt "OpenThread console type"
  15. depends on OPENTHREAD_ENABLED
  16. default OPENTHREAD_CONSOLE_TYPE_UART
  17. help
  18. Select OpenThread console type
  19. config OPENTHREAD_CONSOLE_TYPE_UART
  20. depends on ESP_CONSOLE_UART_DEFAULT || ESP_CONSOLE_UART_CUSTOM
  21. bool "OpenThread console type UART"
  22. config OPENTHREAD_CONSOLE_TYPE_USB_SERIAL_JTAG
  23. depends on ESP_CONSOLE_USB_SERIAL_JTAG || ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
  24. bool "OpenThread console type USB Serial/JTAG Controller"
  25. endchoice #OPENTHREAD_CONSOLE_TYPE
  26. choice OPENTHREAD_LOG_LEVEL
  27. prompt "OpenThread log verbosity"
  28. depends on OPENTHREAD_ENABLED && !OPENTHREAD_LOG_LEVEL_DYNAMIC
  29. default OPENTHREAD_LOG_LEVEL_INFO
  30. help
  31. Select OpenThread log level.
  32. config OPENTHREAD_LOG_LEVEL_NONE
  33. bool "No logs"
  34. config OPENTHREAD_LOG_LEVEL_CRIT
  35. bool "Error logs"
  36. config OPENTHREAD_LOG_LEVEL_WARN
  37. bool "Warning logs"
  38. config OPENTHREAD_LOG_LEVEL_NOTE
  39. bool "Notice logs"
  40. config OPENTHREAD_LOG_LEVEL_INFO
  41. bool "Info logs"
  42. config OPENTHREAD_LOG_LEVEL_DEBG
  43. bool "Debug logs"
  44. endchoice #OPENTHREAD_LOG_LEVEL
  45. menu "Thread Operational Dataset"
  46. config OPENTHREAD_NETWORK_NAME
  47. string "OpenThread network name"
  48. default "OpenThread-ESP"
  49. config OPENTHREAD_MESH_LOCAL_PREFIX
  50. string "OpenThread mesh local prefix, format <address>/<plen>"
  51. default "fd00:db8:a0:0::/64"
  52. help
  53. A string in the format "<address>/<plen>", where `<address>` is an IPv6
  54. address and `<plen>` is a prefix length. For example "fd00:db8:a0:0::/64"
  55. config OPENTHREAD_NETWORK_CHANNEL
  56. int "OpenThread network channel"
  57. range 11 26
  58. default 15
  59. config OPENTHREAD_NETWORK_PANID
  60. hex "OpenThread network pan id"
  61. range 0 0xFFFE
  62. default 0x1234
  63. config OPENTHREAD_NETWORK_EXTPANID
  64. string "OpenThread extended pan id"
  65. default "dead00beef00cafe"
  66. help
  67. The OpenThread network extended pan id in hex string format
  68. config OPENTHREAD_NETWORK_MASTERKEY
  69. string "OpenThread network key"
  70. default "00112233445566778899aabbccddeeff"
  71. help
  72. The OpenThread network network key in hex string format
  73. config OPENTHREAD_NETWORK_PSKC
  74. string "OpenThread pre-shared commissioner key"
  75. default "104810e2315100afd6bc9215a6bfac53"
  76. help
  77. The OpenThread pre-shared commissioner key in hex string format
  78. endmenu
  79. config OPENTHREAD_LOG_LEVEL
  80. int
  81. depends on OPENTHREAD_ENABLED && !OPENTHREAD_LOG_LEVEL_DYNAMIC
  82. default 0 if OPENTHREAD_LOG_LEVEL_NONE
  83. default 1 if OPENTHREAD_LOG_LEVEL_CRIT
  84. default 2 if OPENTHREAD_LOG_LEVEL_WARN
  85. default 3 if OPENTHREAD_LOG_LEVEL_NOTE
  86. default 4 if OPENTHREAD_LOG_LEVEL_INFO
  87. default 5 if OPENTHREAD_LOG_LEVEL_DEBG
  88. choice OPENTHREAD_RADIO_TYPE
  89. prompt "Config the Thread radio type"
  90. depends on OPENTHREAD_ENABLED
  91. default OPENTHREAD_RADIO_NATIVE if SOC_IEEE802154_SUPPORTED
  92. default OPENTHREAD_RADIO_SPINEL_UART
  93. help
  94. Configure how OpenThread connects to the 15.4 radio
  95. config OPENTHREAD_RADIO_NATIVE
  96. bool "Native 15.4 radio"
  97. help
  98. Select this to use the native 15.4 radio.
  99. config OPENTHREAD_RADIO_SPINEL_UART
  100. bool "Connect via UART"
  101. help
  102. Select this to connect to a Radio Co-Processor via UART.
  103. config OPENTHREAD_RADIO_SPINEL_SPI
  104. bool "Connect via SPI"
  105. help
  106. Select this to connect to a Radio Co-Processor via SPI.
  107. endchoice
  108. choice OPENTHREAD_DEVICE_TYPE
  109. prompt "Config the Thread device type"
  110. depends on OPENTHREAD_ENABLED
  111. default OPENTHREAD_FTD
  112. help
  113. OpenThread can be configured to different device types (FTD, MTD, Radio)
  114. config OPENTHREAD_FTD
  115. bool "Full Thread Device"
  116. help
  117. Select this to enable Full Thread Device which can act as router and leader in a Thread network.
  118. config OPENTHREAD_MTD
  119. bool "Minimal Thread Device"
  120. help
  121. Select this to enable Minimal Thread Device which can only act as end device in a Thread network.
  122. This will reduce the code size of the OpenThread stack.
  123. config OPENTHREAD_RADIO
  124. bool "Radio Only Device"
  125. help
  126. Select this to enable Radio Only Device which can only forward 15.4 packets to the host.
  127. The OpenThread stack will be run on the host and OpenThread will have minimal footprint on the
  128. radio only device.
  129. endchoice
  130. choice OPENTHREAD_RCP_TRANSPORT
  131. prompt "The RCP transport type"
  132. depends on OPENTHREAD_RADIO
  133. default OPENTHREAD_RCP_UART
  134. config OPENTHREAD_RCP_UART
  135. bool "UART RCP"
  136. help
  137. Select this to enable UART connection to host.
  138. config OPENTHREAD_RCP_SPI
  139. bool "SPI RCP"
  140. help
  141. Select this to enable SPI connection to host.
  142. endchoice
  143. config OPENTHREAD_CLI
  144. bool "Enable Openthread Command-Line Interface"
  145. depends on OPENTHREAD_ENABLED
  146. default y
  147. help
  148. Select this option to enable Command-Line Interface in OpenThread.
  149. config OPENTHREAD_DIAG
  150. bool "Enable diag"
  151. depends on OPENTHREAD_ENABLED
  152. default y
  153. help
  154. Select this option to enable Diag in OpenThread. This will enable diag mode and a series of diag commands
  155. in the OpenThread command line. These commands allow users to manipulate low-level features of the storage
  156. and 15.4 radio.
  157. config OPENTHREAD_COMMISSIONER
  158. bool "Enable Commissioner"
  159. depends on OPENTHREAD_ENABLED
  160. default n
  161. help
  162. Select this option to enable commissioner in OpenThread. This will enable the device to act as a
  163. commissioner in the Thread network. A commissioner checks the pre-shared key from a joining device with
  164. the Thread commissioning protocol and shares the network parameter with the joining device upon success.
  165. config OPENTHREAD_COMM_MAX_JOINER_ENTRIES
  166. int "The size of max commissioning joiner entries"
  167. depends on OPENTHREAD_COMMISSIONER
  168. default 2
  169. range 2 50
  170. config OPENTHREAD_JOINER
  171. bool "Enable Joiner"
  172. depends on OPENTHREAD_ENABLED
  173. default n
  174. help
  175. Select this option to enable Joiner in OpenThread. This allows a device to join the Thread network with a
  176. pre-shared key using the Thread commissioning protocol.
  177. config OPENTHREAD_SRP_CLIENT
  178. bool "Enable SRP Client"
  179. depends on OPENTHREAD_ENABLED
  180. default y
  181. help
  182. Select this option to enable SRP Client in OpenThread. This allows a device to register SRP services to SRP
  183. Server.
  184. config OPENTHREAD_SRP_CLIENT_MAX_SERVICES
  185. int "Specifies number of service entries in the SRP client service pool"
  186. depends on OPENTHREAD_SRP_CLIENT
  187. default 5
  188. range 2 20
  189. help
  190. Set the max buffer size of service entries in the SRP client service pool.
  191. config OPENTHREAD_DNS_CLIENT
  192. bool "Enable DNS Client"
  193. depends on OPENTHREAD_ENABLED
  194. default y
  195. help
  196. Select this option to enable DNS Client in OpenThread.
  197. config OPENTHREAD_BORDER_ROUTER
  198. bool "Enable Border Router"
  199. depends on OPENTHREAD_ENABLED
  200. default n
  201. help
  202. Select this option to enable border router features in OpenThread.
  203. config OPENTHREAD_PLATFORM_MSGPOOL_MANAGEMENT
  204. bool 'Allocate message pool buffer from PSRAM'
  205. depends on OPENTHREAD_ENABLED && (SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC)
  206. default n
  207. help
  208. If enabled, the message pool is managed by platform defined logic.
  209. config OPENTHREAD_NUM_MESSAGE_BUFFERS
  210. int "The number of openthread message buffers"
  211. depends on OPENTHREAD_ENABLED
  212. default 65
  213. range 10 100 if !OPENTHREAD_PLATFORM_MSGPOOL_MANAGEMENT
  214. range 10 8191 if OPENTHREAD_PLATFORM_MSGPOOL_MANAGEMENT
  215. config OPENTHREAD_SPINEL_RX_FRAME_BUFFER_SIZE
  216. int "The size of openthread spinel rx frame buffer"
  217. depends on OPENTHREAD_ENABLED
  218. default 1024
  219. range 512 8192
  220. config OPENTHREAD_MLE_MAX_CHILDREN
  221. int "The size of max MLE children entries"
  222. depends on OPENTHREAD_ENABLED
  223. default 10
  224. range 5 50
  225. config OPENTHREAD_TMF_ADDR_CACHE_ENTRIES
  226. int "The size of max TMF address cache entries"
  227. depends on OPENTHREAD_ENABLED
  228. default 20
  229. range 5 50
  230. config OPENTHREAD_DNS64_CLIENT
  231. bool "Use dns64 client"
  232. depends on OPENTHREAD_ENABLED && LWIP_IPV4
  233. default n
  234. help
  235. Select this option to acquire NAT64 address from dns servers.
  236. config OPENTHREAD_DNS_SERVER_ADDR
  237. string "DNS server address (IPv4)"
  238. depends on OPENTHREAD_DNS64_CLIENT
  239. default "8.8.8.8"
  240. help
  241. Set the DNS server IPv4 address.
  242. config OPENTHREAD_UART_BUFFER_SIZE
  243. int "The uart received buffer size of openthread"
  244. depends on OPENTHREAD_ENABLED
  245. default 256
  246. range 128 1024
  247. help
  248. Set the OpenThread UART buffer size.
  249. config OPENTHREAD_LINK_METRICS
  250. bool "Enable link metrics feature"
  251. depends on OPENTHREAD_ENABLED
  252. default n
  253. help
  254. Select this option to enable link metrics feature
  255. config OPENTHREAD_MACFILTER_ENABLE
  256. bool "Enable mac filter feature"
  257. depends on OPENTHREAD_ENABLED
  258. default n
  259. help
  260. Select this option to enable mac filter feature
  261. config OPENTHREAD_CSL_ENABLE
  262. bool "Enable CSL feature"
  263. depends on OPENTHREAD_ENABLED
  264. default n
  265. help
  266. Select this option to enable CSL feature
  267. config OPENTHREAD_XTAL_ACCURACY
  268. int "The accuracy of the XTAL"
  269. default 130
  270. help
  271. The device's XTAL accuracy, in ppm.
  272. config OPENTHREAD_CSL_ACCURACY
  273. int "The current CSL rx/tx scheduling drift, in units of ± ppm"
  274. depends on OPENTHREAD_CSL_ENABLE
  275. default 1
  276. help
  277. The current accuracy of the clock used for scheduling CSL operations
  278. config OPENTHREAD_CSL_UNCERTAIN
  279. int "The CSL Uncertainty in units of 10 us."
  280. depends on OPENTHREAD_CSL_ENABLE
  281. default 1
  282. help
  283. The fixed uncertainty of the Device for scheduling CSL Transmissions in units of 10 microseconds.
  284. config OPENTHREAD_CSL_DEBUG_ENABLE
  285. bool "Enable CSL debug"
  286. depends on OPENTHREAD_CSL_ENABLE
  287. default n
  288. help
  289. Select this option to set rx on when sleep in CSL feature, only for debug
  290. config OPENTHREAD_DUA_ENABLE
  291. bool "Enable Domain Unicast Address feature"
  292. depends on OPENTHREAD_ENABLED
  293. default n
  294. help
  295. Only used for Thread1.2 certification
  296. config OPENTHREAD_TIME_SYNC
  297. bool "Enable the time synchronization service feature"
  298. depends on OPENTHREAD_ENABLED
  299. default n
  300. help
  301. Select this option to enable time synchronization feature, the devices in the same Thread network could
  302. sync to the same network time.
  303. config OPENTHREAD_RADIO_STATS_ENABLE
  304. bool "Enable Radio Statistics feature"
  305. depends on OPENTHREAD_FTD || OPENTHREAD_MTD
  306. default n
  307. help
  308. Select this option to enable the radio statistics feature, you can use radio command to print some radio
  309. Statistics informations.
  310. endmenu