You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added time-to-first-fix (TTFF) test mode. It can be used to run
TTFF tests for GNSS cold, warm or hot starts, with or without
assistance.
Signed-off-by: Tommi Kangas <[email protected]>
Copy file name to clipboardExpand all lines: samples/nrf9160/gnss/README.rst
+83-13Lines changed: 83 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,17 +33,36 @@ Because `NMEA`_ data needs to be read as soon as an NMEA event is received, a :r
33
33
The event handler function reads the received NMEA strings and puts those into the message queue.
34
34
The consumer loop reads from the queue and outputs the strings to the console.
35
35
36
+
Operation modes
37
+
===============
38
+
39
+
The sample supports different operation modes:
40
+
41
+
* Continuous
42
+
* Periodic
43
+
* Time-to-first-fix (TTFF) test
44
+
36
45
By default, the sample runs in continuous tracking mode.
37
-
You can also configure it to run in periodic mode, where fixes are acquired periodically with the set interval.
46
+
In continuous mode, GNSS tries to acquire a fix once a second.
47
+
48
+
In periodic mode, fixes are acquired periodically with the set interval.
49
+
50
+
In TTFF test mode, the sample acquires fixes periodically and calculates the TTFF for each fix.
51
+
You can use the TTFF test mode without assistance or with any supported assistance method.
52
+
You can also configure it to perform cold starts, where the stored data is deleted from GNSS before each start.
53
+
If you enable assistance with cold starts, new assistance data is also downloaded and injected to GNSS before each start.
38
54
39
55
Output modes
40
56
============
41
57
42
-
This sample operates in two different output modes.
58
+
The sample supports two output modes:
59
+
60
+
* Position, Velocity, and Time (PVT) and NMEA
61
+
* NMEA-only
43
62
44
-
In the default mode, the sample displays information from both PVT (Position, Velocity, and Time) and NMEA strings.
45
-
You can also configure the sample to run in NMEA-only mode, where only the NMEA strings are displayed in the console.
46
-
In the NMEA-only mode, you can visualize the data from the GNSS using a third-party tool.
63
+
By default, the sample displays information from both PVT and NMEA strings.
64
+
You can also configure the sample to run in NMEA-only output mode, where only the NMEA strings are displayed in the console.
65
+
In the NMEA-only output mode, you can visualize the data from the GNSS using a third-party tool.
47
66
48
67
A-GPS and P-GPS
49
68
===============
@@ -52,7 +71,6 @@ When support for A-GPS or P-GPS, or both, is enabled, a :ref:`Zephyr workqueue <
52
71
Downloading the data can take some time.
53
72
The workqueue ensures that the main thread is not blocked during the operation.
54
73
55
-
You can enable A-GPS and P-GPS support for both the default mode (PVT and NMEA) and the NMEA-only mode.
56
74
When assistance support is enabled, the sample receives an A-GPS data request notification from the GNSS module, and it starts downloading the assistance data requested by the GNSS module.
57
75
The sample then displays the information in the terminal about the download process.
58
76
Finally, after the download completes, the sample switches back to the previous display mode.
@@ -80,8 +98,8 @@ Check and configure the following configuration options for the sample:
80
98
81
99
.. _CONFIG_GNSS_SAMPLE_NMEA_ONLY:
82
100
83
-
CONFIG_GNSS_SAMPLE_NMEA_ONLY - To enable NMEA-only mode
84
-
The NMEA-only mode can be used for example with 3rd party tools to visualize the GNSS output.
101
+
CONFIG_GNSS_SAMPLE_NMEA_ONLY - To enable NMEA-only output mode
102
+
The NMEA-only output mode can be used for example with 3rd party tools to visualize the GNSS output.
85
103
86
104
.. _CONFIG_GNSS_SAMPLE_ANTENNA_EXTERNAL:
87
105
@@ -104,6 +122,16 @@ CONFIG_GNSS_SAMPLE_MODE_PERIODIC - To enable periodic fixes
104
122
This configuration option enables periodic fixes instead of continuous tracking.
105
123
Set :kconfig:`CONFIG_GNSS_SAMPLE_PERIODIC_INTERVAL` and :kconfig:`CONFIG_GNSS_SAMPLE_PERIODIC_TIMEOUT` to configure the desired fix interval and timeout.
106
124
125
+
.. _CONFIG_GNSS_SAMPLE_MODE_TTFF_TEST:
126
+
127
+
CONFIG_GNSS_SAMPLE_MODE_TTFF_TEST - To enable time-to-first-fix (TTFF) test mode
128
+
This configuration enables the TTFF test mode instead of continuous tracking.
129
+
When TTFF test mode is enabled, the :ref:`CONFIG_GNSS_SAMPLE_NMEA_ONLY <CONFIG_GNSS_SAMPLE_NMEA_ONLY>` option is automatically selected.
130
+
Set the :kconfig:`CONFIG_GNSS_SAMPLE_MODE_TTFF_TEST_INTERVAL` option to configure the time between fixes.
131
+
If you have enabled the :kconfig:`CONFIG_GNSS_SAMPLE_MODE_TTFF_TEST_COLD_START` option, the sample will perform GNSS cold starts instead of hot starts.
132
+
When assistance is used, LTE may block the GNSS operation and increase the time needed to get a fix.
133
+
You can set the :kconfig:`CONFIG_GNSS_SAMPLE_LTE_ON_DEMAND` option to disable LTE after the assistance data has been downloaded, so that GNSS can run without interruptions.
134
+
107
135
Building and running
108
136
********************
109
137
@@ -121,10 +149,10 @@ Testing
121
149
After programming the sample and all the prerequisites to the development kit, you can test the sample by performing the following steps:
122
150
123
151
1. Connect your nRF9160 DK to the PC using a USB cable and power on or reset your nRF9160 DK.
124
-
2. Open a terminal emulator.
152
+
#. Open a terminal emulator.
125
153
#. Test the sample by performing the following steps:
126
154
127
-
If the default mode is enabled:
155
+
If the default output mode is enabled:
128
156
129
157
a. Observe that the following information is displayed in the terminal emulator:
130
158
@@ -167,15 +195,15 @@ After programming the sample and all the prerequisites to the development kit, y
0 commit comments