-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
309 lines (251 loc) · 8.02 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menu "UDP Sample Settings"
config CAMERA_MTU
int "Camera MTU"
default 1024
help
MTU of camera transfer over UART
config CAMERA_TIMER
int "Camera Time frequency"
default 55
help
Timer in msec when picture is taken at RPI over UART
config CAMERA_START_HOUR
int "Camera Start hour"
default 5
help
Start hour in GMT when is talking pictures
config CAMERA_FINISH_HOUR
int "Camera finish hour"
default 18
help
Finish hour in GMT when is talking pictures
config UDP_DATA_UPLOAD_SIZE_BYTES
int "Number of bytes transmitted to the server"
default 10
config UDP_DATA_UPLOAD_FREQUENCY_SECONDS
int "How often data is transmitted to the server"
default 900
config UDP_SERVER_ADDRESS_STATIC
string "UDP server IP address"
default "8.8.8.8"
config UDP_SERVER_PORT
int "UDP server port number"
default "2469"
config UDP_SERVER_PORT_STAT
int "UDP stat server port number"
default "2469"
config UDP_PSM_ENABLE
bool "Enable LTE Power Saving Mode"
default y
config UDP_EDRX_ENABLE
bool "Enable LTE enhanced Discontinuous Reception"
config UDP_RAI_ENABLE
bool "Enable LTE Release Assistance Indication"
endmenu
module = UDP
module-str = UDP sample
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
menu "MQTT Multi Service Sample Settings"
config APP_VERSION
string "MQTT Multi Service Sample version"
default "1.0.0"
config POWER_SAVING_MODE_ENABLE
bool "Enable Power Saving Mode (PSM)"
help
Enable to request Power Saving Mode from cellular network.
config LTE_INIT_RETRY_TIMEOUT_SECONDS
int "LTE initialization retry timeout (seconds)"
default 30
help
Sets the number of seconds between each LTE modem initialization
retry.
config CLOUD_CONNECTION_RETRY_TIMEOUT_SECONDS
int "Cloud connection retry timeout (seconds)"
default 30
help
If connecting to nRF Cloud takes longer than this timeout, it will be
reattempted.
config CLOUD_CONNECTION_REESTABLISH_DELAY_SECONDS
int "Cloud connection reestablishment delay (seconds)"
default 5
help
After the connection to nRF Cloud has been reset, wait this amount of
time before attempting to connect again.
config CLOUD_READY_TIMEOUT_SECONDS
int "Cloud readiness timeout (seconds)"
default 600
help
If the connection to nRF Cloud does not become ready within this
timeout, the sample will reset its connection and try again.
config DATE_TIME_ESTABLISHMENT_TIMEOUT_SECONDS
int "Modem date and time establishment timeout (seconds)"
default 300
help
The sample will wait this many seconds for the modem to determine the
current date and time before giving up and moving on.
config APPLICATION_THREAD_STACK_SIZE
int "Application Thread Stack Size (bytes)"
default 2048
help
Sets the stack size (in bytes) for the application thread of the
sample.
config CONNECTION_THREAD_STACK_SIZE
int "Connection Thread Stack Size (bytes)"
default 2048
help
Sets the stack size (in bytes) for the connection thread of the
sample.
config MESSAGE_THREAD_STACK_SIZE
int "Message Queue Thread Stack Size (bytes)"
default 2048
help
Sets the stack size (in bytes) for the message queue processing
thread of the sample.
config LED_THREAD_STACK_SIZE
int "LED Thread Stack Size (bytes)"
default 512
help
Sets the stack size (in bytes) for the LED thread.
config MAX_OUTGOING_MESSAGES
int "Outgoing message maximum"
default 64
help
Sets the maximum number of device messages which may be enqueued
before further messages are dropped.
config MAX_CONSECUTIVE_SEND_FAILURES
int "Max outgoing consecutive send failures"
default 5
help
Sets the maximum number of device messages which may fail to send
before a connection reset and cooldown is triggered.
config CONSECUTIVE_SEND_FAILURE_COOLDOWN_SECONDS
int "Cooldown after max consecutive send failures exceeded"
default 10
help
If a connection reset is triggered by too many failed device
messages, the sample will wait this long (in seconds) before trying
again.
config SENSOR_SAMPLE_INTERVAL_SECONDS
int "Sensor sampling interval (seconds)"
default 60
help
Sets the time to wait between each sensor sample.
config LOCATION_TRACKING_SAMPLE_INTERVAL_SECONDS
int "Location sampling interval (seconds)"
default 60
help
Sets the location sampling interval in seconds.
config LOCATION_TRACKING_GNSS
bool "Use GNSS method for location tracking"
default y
depends on LOCATION_METHOD_GNSS
help
Disable all location tracking methods to completely disable location tracking.
config LOCATION_TRACKING_CELLULAR
bool "Use cellular method for location tracking"
default y
depends on LOCATION_METHOD_CELLULAR
help
Disable all location tracking methods to completely disable location tracking.
config LOCATION_TRACKING_WIFI
bool "Use Wi-Fi method for location tracking"
default n
depends on LOCATION_METHOD_WIFI
help
Requires the use of an nRF7002 companion chip.
Disable all location tracking methods to completely disable location tracking.
config TEMP_DATA_USE_SENSOR
bool "Use genuine temperature data"
depends on BOARD_THINGY91_NRF9160_NS
default y if BOARD_THINGY91_NRF9160_NS
select SENSOR
select BME680
help
Sets whether to take genuine temperature measurements from a
connected BME680 sensor, or just simulate sensor data.
config TEMP_TRACKING
bool "Track temperature"
default y
help
Sets whether to take temperature measurements.
config TEMP_ALERT_LIMIT
int "Temperature limit to send alert"
default 30
help
Sets the temperature in degrees C over which a temperature alert will
be sent to the cloud.
choice
prompt "LED indication"
default LED_INDICATION_PWM if BOARD_THINGY91_NRF9160_NS
default LED_INDICATION_GPIO if BOARD_NRF9160DK_NRF9160_NS || $(dt_compat_enabled,gpio-leds)
default LED_INDICATION_DISABLED
config LED_INDICATION_PWM
select LED
select LED_PWM
select PWM
bool "Enable LED indication using the pwm-leds driver"
config LED_INDICATION_GPIO
select LED
select LED_GPIO
bool "Enable LED indication using the gpio-leds driver"
config LED_INDICATION_DISABLED
bool "Disable LED indication"
endchoice
choice
prompt "LED indication LED type"
depends on !LED_INDICATION_DISABLED
default LED_INDICATOR_RGB if BOARD_THINGY91_NRF9160_NS && LED_INDICATION_PWM
default LED_INDICATOR_4LED if !LED_INDICATION_DISABLED
default LED_INDICATOR_NONE
config LED_INDICATOR_RGB
depends on LED_INDICATION_PWM
bool "A single RGB LED"
config LED_INDICATOR_4LED
depends on !LED_INDICATION_DISABLED
bool "Four binary LEDs"
config LED_INDICATOR_NONE
depends on LED_INDICATION_DISABLED
bool "No indicator LEDs"
endchoice
config LED_VERBOSE_INDICATION
depends on !LED_INDICATION_DISABLED
bool "Enables extra LED status indications"
default y
config LED_CONTINUOUS_INDICATION
depends on !LED_INDICATION_DISABLED
bool "Show an idle pattern instead of turning LEDs off"
default y
config GNSS_FIX_TIMEOUT_SECONDS
int "GNSS Fix timeout"
default 40
help
On each location sample, try for this long to achieve a GNSS fix
before falling back to cellular positioning.
Set this to 20 or so seconds below the sensor sample interval so
that there is time left over to perform cellular positioning.
Otherwise, location samples may occur at a longer interval than
requested.
config TEST_COUNTER
bool "Sets whether the test counter is enabled"
config AT_CMD_REQUESTS
bool "Enables remote execution of AT commands using device messages"
default y
config AT_CMD_REQUEST_RESPONSE_BUFFER_LENGTH
int "Max length (in bytes) for Modem responses during AT command requests"
help
Responses to modem AT commands are stored in a buffer of this length before being sent to
nRF Cloud. If a response from the modem exceeds this length, it will be dropped, and an
error code sent in its place (-NRF_E2BIG). Cannot be less than 40 bytes.
default 200
endmenu
module = MQTT_MULTI_SERVICE
module-str = MQTT Multi Service
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
menu "Zephyr Kernel"
source "Kconfig.zephyr"
endmenu