-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig
188 lines (157 loc) · 5.41 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
#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menu "MQTT Multi Service Sample Settings"
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 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 both this and LOCATION_TRACKING_CELLULAR 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 both this and LOCATION_TRACKING_GNSS 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.
choice GNSS_ANTENNA
default GNSS_ANTENNA_ONBOARD
prompt "Select which antenna to use for GNSS"
config GNSS_ANTENNA_ONBOARD
bool "Use onboard antenna"
config GNSS_ANTENNA_EXTERNAL
bool "Use external antenna"
endchoice
config GNSS_AT_MAGPIO
string "AT%XMAGPIO command"
default "AT\%XMAGPIO=1,0,0,1,1,1574,1577" if BOARD_NRF9160DK_NRF9160_NS
default "AT\%XMAGPIO=1,1,1,7,1,746,803,2,698,748,2,1710,2200,3,824,894,4,880,960,5,791,849,7,1565,1586" if BOARD_THINGY91_NRF9160_NS
help
AT%XMAGPIO command to be sent to GNSS module.
config GNSS_AT_COEX0
string "AT%XCOEX0 command"
default "AT\%XCOEX0=1,1,1565,1586" if (BOARD_NRF9160DK_NRF9160_NS || BOARD_THINGY91_NRF9160_NS) && GNSS_ANTENNA_ONBOARD
default "AT\%XCOEX0" if (BOARD_NRF9160DK_NRF9160_NS || BOARD_THINGY91_NRF9160_NS) && GNSS_ANTENNA_EXTERNAL
help
AT%XCOEX0 command to be sent to GNSS module.
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"
endmenu
config CLOUD_PUBLICATION_BUTTON_PRESS
bool "Triggers publication to cloud upon a button press"
default y
help
press button to publish temperature message to nRF cloud.
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