-
Notifications
You must be signed in to change notification settings - Fork 2
/
Kconfig
215 lines (171 loc) · 5.71 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
#
# Copyright (c) 2018 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
menu "Ruuvi Node"
config APPLICATION_WORKQUEUE_STACK_SIZE
int "Application workqueue stack size"
default 2048
config APPLICATION_WORKQUEUE_PRIORITY
int "Application workqueue priority"
default SYSTEM_WORKQUEUE_PRIORITY
menu "GPS"
choice
prompt "GPS device"
default GPS_USE_SIM
help
Select from which device GPS data will be fetched.
config GPS_USE_SIM
bool "Use GPS simulator"
select GPS_SIM
select GPS_SIM_TRIGGER
help
Use simulated GPS data.
config GPS_USE_EXTERNAL
bool "User provided GPS device"
help
Provide a GPS device that location data will be fetched from and
sent to nRF Cloud
endchoice
config GPS_DEV_NAME
string "GPS device name"
default GPS_SIM_DEV_NAME if GPS_USE_SIM
help
GPS device from which location data will be fetched and sent
to nRF Cloud.
config GPS_CONTROL_ON_LONG_PRESS
bool "Control the GPS state with button"
default y
help
Control the GPS operation with long-press on the button.
Press for 5 seconds to enable, or 5 seconds to disable.
config GPS_CONTROL_PSM_ENABLE_ON_START
bool "Enable PSM when starting GPS"
help
The nRF9160 modem needs to be set in PSM mode for the GPS to start
searching for satellites. Enabling this option will do so
automatically, otherwise the application must handle it.
config GPS_CONTROL_PSM_DISABLE_ON_STOP
bool "Disable PSM when stopping GPS"
help
Selecting this option will disable PSM when the GPS is stopped.
During a PSM interval, the device is not reachable from the outside
until the interval times out, or the device itself attempts to
send data on the link.
config GPS_CONTROL_FIRST_FIX_CHECK_DELAY
int "Time from Cloud conenction until first fix check"
default 30
help
The amount of time that should pass between successfully establishing
connection to cloud until first attempt to get position fix.
Attempting to get a fix means entering PSM mode, in which the device
is not reachable for the duration of the interval, or until the
device itself sends data and then for the duration for the set
active time thereafter.
config GPS_CONTROL_FIX_CHECK_INTERVAL
int "Interval in seconds to between check for position fix"
default 120
help
The fix check interval gives the interval for how long it will go
between each retry to achieve position fix. The actual fix time will
vary with factors such as satellite coverage, surrounding buildings
and landscape, PSM interval and activity time requested and granted
by the network.
config GPS_CONTROL_FIX_CHECK_OVERDUE
int "Longest allowed time in seconds between checks for position fix"
default 900
help
The fix check interval gives the interval for how long it will go
between each retry to achieve position fix, when GPS_START_ON_MOTION
enabled, even if no motion is detected.
config GPS_CONTROL_FIX_TRY_TIME
int "Time in seconds to try to get fix"
default 180
help
Amount of time the device will attempt to get position fix. Note that
if the interval is interrupted by the device sending data, the timer
is not reset, and the actual try time will be shortened due to
the device not being in PSM mode all the time. If fix is not acquired
before it times out, the device will try to get fix again in
GPS_CONTROL_FIX_CHECK_INTERVAL seconds. If GPS_CONTROL_FIX_COUNT is reached
before the full GPS_CONTROL_FIX_TRY_TIME has passed, the GPS will be stopped.
config GPS_CONTROL_FIX_COUNT
int "Number of position fix before stopping GPS"
default 3
help
The number of fixes to get before stopping the GPS, within the time
set in GPS_CONTROL_FIX_CHECK_INTERVAL.
config GPS_CONTROL_MAX_FAILED_FIX_ATTEMPTS
int "Number of failed fix attempts before stopping GPS"
default 3
help
Number of retries to get fix before shutting down the GPS until user
input tells it to start retrying.
config GPS_START_ON_MOTION
bool "Motion triggered GPS update"
default n
help
When accelerometer detects movement, and GPS is enabled, update GPS
position, but if no movement, wait a longer delay between updates
to conserve power.
endmenu # GPS
menu "Device and modem"
config POWER_OPTIMIZATION_ENABLE
bool "Enable power optimization"
default y
select LTE_EDRX_REQ
if MODEM_INFO
config HOLD_TIME_RSRP
int "Minimum time [s] between RSRP subscription messages"
default 60
help
The minimum time in seconds where the modem
informer is allowed to submit RSRP data to the cloud.
endif
endmenu # Device
menu "Firmware versioning"
config RUUVI_NODE_APP_VERSION
string "The version of the Ruuvi Node firmware"
default "0.0.0-development"
endmenu # Firmware versioning
menu "Ruuvi Endpoint"
config RUUVI_ENDPOINT_HTTPS
int "Enable HTTPS"
default 1
config RUUVI_ENDPOINT_HTTP_PORT
int "HTTP Port to use"
default 80
config RUUVI_ENDPOINT_HTTPS_PORT
int "HTTPS Port to use"
default 443
config RUUVI_ENDPOINT_HOST
string "The domain of the ruuvi endpoint"
default "ruuvi.cloud"
config RUUVI_ENDPOINT_HOST_PATH
string "The end of the POST url"
default "/ruuvi-node"
endmenu # Ruuvi Endpoint
config RUUVI_WATCHDOG_TIMEOUT_MSEC
int "Watchdog timeout in milliseconds"
default 10000
config RUUVI_GPS_UPDATE_INT
int "Update GPS position after x minutes"
default 60
config RUUVI_GPS_FAILED_RETRY
int "Reattempt to gain a GPS position after x minutes"
default 5
config USE_AT_HOST
bool "Enable AT commands"
default y
select AT_HOST_LIBRARY
help
Enable the AT host library so that AT commands can be sent to and
received from a serial terminal.
endmenu
menu "Zephyr Kernel"
source "Kconfig.zephyr"
endmenu
module = RUUVI_NODE
module-str = Ruuvi Node
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"