1# Thread network configuration options
2
3# Copyright (c) 2020 Nordic Semiconductor ASA
4# SPDX-License-Identifier: Apache-2.0
5
6config OPENTHREAD_PANID
7	int "Default PAN ID"
8	default 43981
9
10config OPENTHREAD_CHANNEL
11	int "Default Channel"
12	default 11
13
14config OPENTHREAD_NETWORK_NAME
15	string "Default network name"
16	default "ot_zephyr"
17	help
18	  Network name for OpenThread
19
20config OPENTHREAD_XPANID
21	string "Default Extended PAN ID"
22	default "de:ad:00:be:ef:00:ca:fe"
23	help
24	  Extended PAN ID for OpenThread with
25	  format "de:ad:00:be:ef:00:ca:fe"
26
27config OPENTHREAD_NETWORKKEY
28	string "Default Thread Network Key"
29	help
30	  Network Key for OpenThread with format
31	  "00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff"
32
33config OPENTHREAD_JOINER_AUTOSTART
34	bool "Automatic joiner start"
35	depends on OPENTHREAD_JOINER
36
37config OPENTHREAD_JOINER_PSKD
38	string "Default pre shared key for the Joiner"
39	depends on OPENTHREAD_JOINER_AUTOSTART
40	default "J01NME"
41
42choice OPENTHREAD_DEVICE_TYPE
43	prompt "OpenThread device type"
44	help
45	  This option selects Thread network device type
46
47config OPENTHREAD_FTD
48	bool "FTD - Full Thread Device"
49config OPENTHREAD_MTD
50	bool "MTD - Minimal Thread Device"
51endchoice
52
53config OPENTHREAD_MTD_SED
54	bool "SED - Sleepy End Device"
55	depends on OPENTHREAD_MTD
56
57config OPENTHREAD_POLL_PERIOD
58	int "Poll period for sleepy end devices [ms]"
59	default 236000
60	depends on OPENTHREAD_MTD_SED
61
62config OPENTHREAD_MAX_CHILDREN
63	int "The maximum number of children"
64	range 1 511
65	default 32
66
67config OPENTHREAD_MAX_IP_ADDR_PER_CHILD
68	int "The maximum number of IPv6 address registrations per child"
69	range 4 255
70	default 6
71	depends on OPENTHREAD_FTD
72
73config OPENTHREAD_CONFIG_PLATFORM_INFO
74	string "The platform-specific string to insert into the OpenThread version string"
75	default "Zephyr"
76
77config OPENTHREAD_RADIO_LINK_IEEE_802_15_4_ENABLE
78	bool "Support for IEEE802.15.4 radio link"
79	default y
80
81config OPENTHREAD_CSL_AUTO_SYNC
82	bool "CSL autosync"
83	default y if OPENTHREAD_CSL_RECEIVER
84
85config OPENTHREAD_CSL_RECEIVE_TIME_AHEAD
86	int "CSL receiver wake up margin in microseconds"
87	default 5000
88
89config OPENTHREAD_MIN_RECEIVE_ON_AHEAD
90	int "Minimum receiving time before start of MHR"
91	default 192
92	help
93	  The minimum time (microseconds) that radio has to be in receive mode before the start of the MHR.
94
95config OPENTHREAD_MIN_RECEIVE_ON_AFTER
96	int "Minimum receiving time after start of MHR"
97	default 5504
98	help
99	  The minimum time (microseconds) that radio should be in receive mode after the start of the MHR.
100
101config OPENTHREAD_PLATFORM_CSL_UNCERT
102	int "CSL uncertainty"
103	default 255
104	range 0 255
105	help
106	  The fixed uncertainty of the Device for scheduling CSL Transmissions in units of 10 microseconds.
107
108config OPENTHREAD_CSL_TIMEOUT
109	int "CSL timeout in seconds"
110	default 100
111	help
112	  The default CSL timeout in seconds.
113
114config OPENTHREAD_MAC_SOFTWARE_TX_SECURITY_ENABLE
115	bool "Software transmission security logic"
116	default y if !OPENTHREAD_THREAD_VERSION_1_1
117
118config OPENTHREAD_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH
119	bool "Inform previous parent on reattach"
120	default y if OPENTHREAD_PARENT_SEARCH
121	help
122	  To allow end devices (EDs) in a Thread network to inform their
123	  previous parent router that they have attached to a new parent
124	  router, enable the Inform Previous Parent on Reattach feature.
125
126config OPENTHREAD_PARENT_SEARCH
127	bool "Periodic parent search support"
128	help
129	  To allow end devices (EDs) in a Thread network to switch to a
130	  better parent router than their current one—while still attached
131	  to the network—enable the Periodic Parent Search feature.
132
133config OPENTHREAD_PARENT_SEARCH_CHECK_INTERVAL
134	int "Interval to trigger parent search in seconds"
135	default 540
136	depends on OPENTHREAD_PARENT_SEARCH
137
138config OPENTHREAD_PARENT_SEARCH_BACKOFF_INTERVAL
139	int "Backoff interval to prevent parent search retry in seconds"
140	default 36000
141	depends on OPENTHREAD_PARENT_SEARCH
142
143config OPENTHREAD_PARENT_SEARCH_RSS_THRESHOLD
144	int "RSSI threshold to trigger parent search"
145	default -65
146	depends on OPENTHREAD_PARENT_SEARCH
147
148config OPENTHREAD_CLI_MAX_LINE_LENGTH
149	int "The maximum size of the CLI line in bytes"
150	range 16 1024
151	default 384
152
153config OPENTHREAD_IP6_MAX_EXT_UCAST_ADDRS
154	int "The maximum number of supported IPv6 addresses allows to be externally added"
155	range 0 32
156	default 4
157
158config OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS
159	int "The maximum number of supported IPv6 multicast addresses allows to be externally added"
160	range 0 32
161	default 2
162
163config OPENTHREAD_TCP_ENABLE
164	bool "TCP support"
165
166config OPENTHREAD_CLI_TCP_ENABLE
167	bool "TCP in the CLI tool"
168	default y if SHELL
169	depends on OPENTHREAD_TCP_ENABLE
170
171config OPENTHREAD_HISTORY_TRACKER
172	bool "History tracker support"
173
174config OPENTHREAD_MAC_STAY_AWAKE_BETWEEN_FRAGMENTS
175	bool "Stay awake between packet fragments"
176	help
177	  This optimization is done at the expense of power consumption on SED/SSED devices.
178
179config OPENTHREAD_DEFAULT_TX_POWER
180	int "OpenThread default tx power in dBm"
181	range -40 20 if NRF_802154_RADIO_DRIVER
182	default 0
183	help
184	  Set the default TX output power [dBm] in radio driver for OpenThread purpose.
185