Post · 30 min read· pp. 134–150

Global receiver parameters

This page describes GNSS-SDR global parameters.

The notation is as follows: for a global parameter XXX with value YY, its entry in the configuration file is:

ini
GNSS-SDR.XXX=YY

If a parameter is not specified in the configuration file, it takes its default value.

Sampling rate of the GNSS baseband engine

In the current design, all the processing Channels need to accept streams of samples at the same rate. This is not necessarily the same as the sampling frequency of the Signal Source, since the Signal Conditioner block can apply some resampling. Please note that this is a mandatory parameter, it needs to be present in the configuration file.

ParameterDescriptionRequired
internal_fs_spsInput sample rate to the processing channels, in samples per second.Mandatory
use_acquisition_resampler[true, false]: If set to true, the Acquisition block makes use of the minimum possible sample rate during the signal acquisition by setting a resampler at its input. This allows reducing the FFT size when using high data rates at internal_fs_sps. All the required setup is configured automatically. This feature is not implemented in all the Acquisition blocks, please check the Acquisition documentation. This parameter defaults to false.Optional

Global GNSS-SDR parameter: channel’s input sampling rate.

Example in the configuration file:

ini
GNSS-SDR.internal_fs_sps=4000000

Multiple signal sources

ParameterDescriptionRequired
num_sourcesNumber of input signal sources. It defaults to 1.Optional

Example:

ini
GNSS-SDR.num_sources=2

For more details, please check how to configure multiple signal sources.

Internal observables processing rate

This global parameter allows to control the internal rate at which observable sets are processed.

ParameterDescriptionRequired
observable_interval_msTime interval, in ms, at which observable sets are processed. It defaults to 20.Optional

Example in the configuration file:

ini
GNSS-SDR.observable_interval_ms=10

Open Service Navigation Message Authentication (OSNMA)

The Galileo OSNMA service is enabled by default if the configuration file defines 1B (that is, Galileo E1 OS) channels.

Users must register and log in on the European GNSS Service Centre website, and download the OSNMA public key (“GSC Products > OSNMA_PublicKey”, the file with .crt format) and the OSNMA Merkle Tree root file (“GSC Products > OSNMA_MerkleTree”, in .xml format), and set the corresponding options in the GNSS-SDR configuration file:

ParameterDescriptionRequired
osnma_enable[true, false]: Enables or disables the OSNMA service. It defaults to true.Optional
osnma_public_keyPath to the OSNMA Public Key (.crt file). it defaults to ./OSNMA_PublicKey.crtOptional
osnma_merkletreePath to the Merkle Tree root (.xml file). It defaults to ./OSNMA_MerkleTree.xmlOptional
osnma_mode[strict, replay]. If set to strict, only authenticated satellites are used in the PVT computation. Please note that the strict mode requires the host computer’s internal date and time to be synchronized with the Galileo System Time, allowing a tolerance of ±30 seconds, so it is only intended for real-time operation. No other systems than Galileo will be used in the PVT solution. If set to replay, disables the receiver wall-clock GST alignment check for OSNMA tag processing, allowing previously captured Galileo signals to be replayed while keeping all other OSNMA verification steps active. If not set, the receiver will only log OSNMA events and warn the user in case of authentication failures. Available since GNSS-SDR v0.0.22.Optional

Example in the configuration file:

ini
GNSS-SDR.osnma_public_key=./OSNMA_PublicKey_20251210100000_newPKID_2.crt
GNSS-SDR.osnma_merkletree=./OSNMA_MerkleTree_20251210100000_newPKID_2.xml

The same, but with the strict mode:

ini
GNSS-SDR.osnma_public_key=./OSNMA_PublicKey_20251210100000_newPKID_2.crt
GNSS-SDR.osnma_merkletree=./OSNMA_MerkleTree_20251210100000_newPKID_2.xml
GNSS-SDR.osnma_mode=strict

Example to turn off the OSNMA reception:

ini
GNSS-SDR.osnma_enable=false

Telecommand via TCP/IP

The user can access the receiver interactive interface by connecting a TCP/IP client (e.g., with a telnet client) to the TCP port specified in the configuration file for telecommand.

In order to use it, the executable gnss-sdr must be called with the gnss-sdr-harness.sh script provided at utils/scripts:

bash
$ gnss-sdr-harness.sh gnss-sdr -c config_file.conf

The configuration of the Telecommand system is as follows:

ParameterDescriptionRequired
telecommand_enabled[true, false]: If set to true, it enables the telecommand system. It defaults to false.Optional
telecommand_tcp_portIf telecommand_enabled=true, this parameter sets the TCP/IP port in which the service will be provided. It defaults to port 3333Optional

Global GNSS-SDR parameters for telecommand.

Example in the GNSS-SDR configuration file:

ini
GNSS-SDR.telecommand_enabled=true
GNSS-SDR.telecommand_tcp_port=3333

The user commands must be sent as a lower-case string, command parameters separated by 1 space, and ended by \r \n (carriage-return and line feed). The commands will provide feedback to the user.

The following commands are implemented in GNSS-SDR’s telecommand interface:

CommandResponseDescription
resetOKPerforms a complete reset of the receiver. The receiver will delete all the stored satellite information, reload the configuration parameters from the configuration file and perform a regular startup. Notice that if the configuration file has enabled the assisted acquisition, the receiver will trigger the assisted acquisition. It is equivalent to shutdown and restart the GNSS-SDR program from a regular SSH shell. Notice that the telecommand interface will be also restarted.
standbyOK / ERRORStops all the acquisition and tracking operations and sets the receiver in the standby state. The front-end will continue delivering samples to the receiver but no signal processing will be done. Obviously, all the tracked satellites will be lost, but the received satellite telemetry (e.g. ephemeris data) and the last PVT state will be kept. NOTE: It is possible to specify an option in the configuration file to start the receiver already in the standby state, ready to receive start commands.
coldstartOK / ERRORPerforms a receiver cold start. Requires the receiver set to standby mode. After executing this command, the acquisition engine will search for all the satellites in all the signals configured in the configuration file.
warmstart dd/mm/yyyy HH:MM:SS Lat Long HeightOK / ERRORPerforms an assisted acquisition receiver start at the specified UTC time (the receiver will transform the UTC time to GPS time internally) assuming a previous Latitude [deg], Longitude [deg] and Height [m] position. Requires the receiver set to standby mode. After executing this command, the acquisition engine will read the ephemeris and the almanac assistance data from the XML files specified in the configuration file, and the last valid PVT information to predict the visible satellites and coarse estimations of their Doppler rates.
hotstart dd/mm/yyyy HH:MM:SS Lat Long HeightOK / ERRORPerforms a receiver hot start at the specified UTC time (the receiver will transform the UTC time to GPS time internally) assuming a previous Latitude [deg], Longitude [deg] and Height [m] position. Requires the receiver set to standby mode. After executing this command, the acquisition engine will search first for the last set of in-view satellites according to the stored ephemeris, almanac, and the predicted visible satellites based on the last valid PVT.
statusSummary of current receiver status: individual channel status and PVT status.This command prints a summary of the current receiver status intended for debugging and system testing purposes only. The user should monitor the RTCM and NMEA streams for detailed and synchronized receiver data, which are the primary receiver standard data interfaces.
exitOKCloses the telecommand connection.

Telecommand execution examples using telnet:

bash
user@ubuntu:~\$ telnet receiver_ip tc_port
Trying receiver_ip...
Connected to receiver_ip.
Escape character is '^]'.
status
---------------------------------------------------------
ch | sys | sig  | mode | Tlm | Eph | Doppler  |   CN0   |
   |     |      |      |     |     |  [Hz]    | [dB-Hz] |
---------------------------------------------------------
0  | GPS | L1CA | TRK  | YES | YES | 23412.4  |  44.3   |
1  | GPS | L1CA | TRK  | YES | YES | -14725.4 |  45.4   |
2  | GPS | L1CA | TRK  | YES | YES | 4562.1   |  41.0   |
3  | GPS | L1CA | TRK  | YES | YES | 15223.4  |  38.2   |
4  | GPS | L1CA | TRK  | YES | NO  |-8456.0   |  40.5   |
5  | GPS | L1CA | ACQ  | NO  | NO  | -------- |  ----   |
6  | GPS | L1CA | STBY | NO  | NO  | -------- |  ----   |
---------------------------------------------------------

- Receiver UTC Time: 02/04/2017 21:02:33
- Receiver Position WGS84 [Lat, Long, H]: 41.2750209, 1.98558393, 58.1
- Receiver Speed over Ground [km/h]: 2
- Receiver Course over ground [deg]: 175.3

Example of the status command.

bash
user@ubuntu:~\$ telnet receiver_ip tc_port
Trying receiver_ip...
Connected to receiver_ip.
Escape character is '^]'.
standby
OK
coldstart
OK

Example of the coldstart command.

bash
user@ubuntu:~\$ telnet receiver_ip tc_port
Trying receiver_ip...
Connected to receiver_ip.
Escape character is '^]'.
standby
OK
warmstart 1/12/2018 09:15:42 41.234 1.76 560.0
OK

Example of the warmstart command.

Assisted GNSS

GNSS-SDR can read satellite’s ephemeris and almanacs from other sources than GNSS signals themselves.

Assisted GNSS via XML files

GNSS-SDR can read assistance data from Extensible Markup Language (XML) files for faster Time-To-First-Fix, and can store navigation data decoded from GNSS signals in the same format. Check this folder for XML Schemas describing those XML files structure.

When reading AGNSS data from XML files, you must provide a rough initial reference position and time (parameters AGNSS_ref_location and AGNSS_ref_utc_time), which will be used to compute the list of visible satellites (those with positive elevation angle) from your receiver standpoint before getting any GNSS signal. Hence, the receiver can start searching for those satellites and thus accelerate its Time-To-First-Fix.

ParameterDescriptionRequired
AGNSS_XML_enabled[true, false]: If set to true, it enables the load of GNSS assistance data via local XML files. It defaults to false.Optional
AGNSS_ref_locationIf AGNSS_XML_enabled is set to true, this parameter is mandatory, and it sets the reference location used for the preliminary computation of visible satellites from AGNSS data. It must be in the format: Latitude,Longitude, in degrees, with a positive sign for North and East.Mandatory
AGNSS_ref_utc_timeIf AGNSS_XML_enabled is set to true, this parameter sets the reference local time, expressed in UTC, used for the preliminary computation of visible satellites from AGNSS data. It must be in the format: DD/MM/YYYY HH:MM:SS, referred to UTC. If this parameter is not set, the receiver will take the system time of your computer.Optional
AGNSS_gps_ephemeris_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML that will be read for GPS NAV ephemeris data. It defaults to gps_ephemeris.xmlOptional
AGNSS_gps_iono_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML of the XML that will be read for GPS Ionosphere model data. It defaults to gps_iono.xmlOptional
AGNSS_gps_utc_model_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML that will be read for GPS UTC model data. It defaults to gps_utc_model.xmlOptional
AGNSS_gal_ephemeris_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML that will be read for Galileo ephemeris data. It defaults to gal_ephemeris.xmlOptional
AGNSS_gal_iono_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML that will be read for Galileo Ionosphere model data. It defaults to gal_iono.xmlOptional
AGNSS_gal_utc_model_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML that will be read for Galileo UTC model data. It defaults to gal_utc_model.xmlOptional
AGNSS_gal_almanac_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML that will be read for Galileo almanac data. The XML format of Galileo almanac data published by the European GNSS Service Centre is also accepted. It defaults to gal_almanac.xmlOptional
AGNSS_gps_cnav_ephemeris_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML that will be read for GPS CNAV ephemeris data. It defaults to gps_cnav_ephemeris.xmlOptional
AGNSS_cnav_utc_model_xmlIf AGNSS_XML_enabled is set to true, this parameter sets the name of the XML that will be read for GPS UTC model data. It defaults to gps_cnav_utc_model.xmlOptional

Global GNSS-SDR parameters: Assisted GNSS via XML files.

Example in the configuration file:

ini
GNSS-SDR.AGNSS_XML_enabled=true
GNSS-SDR.AGNSS_ref_location=41.39,2.31

The location in the example refers to a latitude of 41.39º N and a longitude of 2.31º E.

Please note that the parameter AGNSS_gal_almanac_xml accepts, in addition to the own-defined XML format for the Galileo almanac, the XML format published by the European GNSS Service Centre and available here. Just download the latest almanac XML file from there, and set the following parameters in your configuration file:

ini
GNSS-SDR.AGNSS_XML_enabled=true
GNSS-SDR.AGNSS_ref_location=41.39,2.31
GNSS-SDR.AGNSS_ref_utc_time=22/11/2018 17:45:53
GNSS-SDR.AGNSS_gal_almanac_xml=2018-11-06.xml

(changing 2018-11-06.xml by the name of the file you actually downloaded, as well as your reference position) and the format will be detected and read automatically. If AGNSS_ref_utc_time is not set, the receiver will read the system time from the computer executing the software receiver and will take that as a reference. So, if you are using the receiver with live signals from an RF front-end, you do not need to set this parameter.

You could find useful the utility program rinex2assist for the generation of compatible XML files from recent, publicly available RINEX navigation data files.

Assisted GNSS via SUPL v1.0

One way of accelerating a GNSS receiver’s Time-To-First-Fix is to use assistance data from a Secure User Plane Location (SUPL) server. SUPL is a standard produced by the Open Mobile Alliance (OMA) that allows a device such as a mobile phone to connect to a location server using the TCP/IP protocol, and to request assistance data for location.

In order to retrieve that information from a SUPL server, the device to be located needs to send some information, namely its Location Area Identity (which uniquely identifies a location area within a mobile network, and consists of the Mobile Country Code, the Mobile Network Code and the Location Area Code) and the Cell ID to which the device is connected.

These parameters are defined as follows:

  • The Mobile Country Code (MCC) is used in wireless telephone networks (GSM, CDMA, UMTS, LTE, etc.) in order to identify the country to which a mobile subscriber belongs. Defined by the ITU-T Recommendation E.212, this code is an integer number (three digits) represented with 16 bits.
  • The Mobile Network Code (MNC) is used for the international identification of networks. Jointly with the MCC, these parameters are used to uniquely identify a mobile network operator. This code is an integer of two or three digits, depending on the country.
  • The Location Area Code (LAC) is a unique number of the current local area. The served area of a cellular radio network is usually divided into location areas. Location areas are comprised of one or several radio cells, and each location area is given a unique number within the network - the LAC. Please note that in some networks, the LAC is called Tracking Area Code (TAC). Both the LAC and TAC share the same concept of providing the location code of a base station set. The only difference between LAC and TAC is that the LAC is the terminology used in GSM/UMTS while the TAC is the terminology used in LTE networks.
  • The Cell ID (CID) is a generally unique number used to identify each Base Transceiver Station (BTS) or sector of a BTS within a location area code. While BTS is the terminology for GSM networks, this is called Node B in UMTS and eNode B in LTE networks. Valid values for the CID range from 00 to 6553565535, that is, (216−12^{16} − 1), on GSM and CDMA networks and from 00 to 268435455268435455, that is, (228−12^{28} − 1), on UMTS and LTE networks.

Those values can be easily retrieved using any net monitor on a smartphone. There are a lot of apps that can do that (an example here). These applications are able to provide the required MMC, MNC, LAC, and CI parameters for your location. A list of MCC and MNC around the World can be found at mcc-mnc.com and at the Wikipedia.

GNSS-SDR is a SUPL Enabled Terminal (SET) receiver that can use a TCP/IP network connection to retrieve Assisted GPS data from a remote server via the Secure User Plane Location (SUPL) v1.0 and hence accelerate its Time-To-First-Fix. SUPL v1.0 only applies to GPS L1 C/A assistance.

GNSS-SDR configuration parameters for Assisted GNSS with SUPL v1.0 are shown below:

ParameterDescriptionRequired
SUPL_gps_enabled[true, false]: If set to true, it enables requests of GPS assistance data to a SUPL v1.0 server. It defaults to false.Optional
SUPL_read_gps_assistance_xml[true, false]: If SUPL_gps_enabled is set to true, this parameter enables searching for local XML files instead of requesting data to the SUPL server. It defaults to false.Optional
SUPL_gps_ephemeris_serverIf SUPL_gps_enabled is set to true, this parameter sets the name of the SUPL server asked for ephemeris data. It defaults to supl.google.com.Optional
SUPL_gps_ephemeris_portIf SUPL_gps_enabled is set to true, this parameter sets the port of the SUPL_gps_ephemeris_server server. It defaults to 7275.Optional
SUPL_gps_acquisition_serverIf SUPL_gps_enabled is set to true, this parameter sets the name of the SUPL server asked for acquisition assistance data. It defaults to supl.google.com.Optional
SUPL_gps_acquisition_portIf SUPL_gps_enabled is set to true, this parameter sets the port of the SUPL_gps_acquisition_server server. It defaults to 7275.Optional
SUPL_MCCIf SUPL_gps_enabled is set to true, this parameter sets the Mobile Country Code (MCC) to be sent to the SUPL server. It defaults to 244.Optional
SUPL_MNCIf SUPL_gps_enabled is set to true, this parameter sets the Mobile Network Code (MNC) to be sent to the SUPL server. It defaults to 5.Optional
SUPL_LACIf SUPL_gps_enabled is set to true, this parameter sets the Location Area Code (LAC) to be sent to the SUPL server. It defaults to 0x59e2.Optional
SUPL_CIIf SUPL_gps_enabled is set to true, this parameter sets the Cell ID to be sent to the SUPL server. It defaults to 0x31b0.Optional
SUPL_gps_ephemeris_xmlIf SUPL_gps_enabled is set to true, this parameter sets the name of the XML that will be read/written if the SUPL assistance gets the GPS NAV ephemeris data. It defaults to gps_ephemeris.xml.Optional
SUPL_gps_iono_xmlIf SUPL_gps_enabled is set to true, this parameter sets the name of the XML that will be read/written if the SUPL assistance gets the GPS Ionosphere model data. It defaults to gps_iono.xml.Optional
SUPL_gps_utc_model_xmlIf SUPL_gps_enabled is set to true, this parameter sets the name of the XML that will be read/written if the SUPL assistance gets the GPS UTC model data. It defaults to gps_utc_model.xml.Optional

Global GNSS-SDR parameters: Assisted GPS via SUPL V1.0.

LAC and CI may be presented in a decimal or hexadecimal form, and the GNSS-SDR configuration accepts both. Setting GNSS-SDR.SUPL_LAC=0x59e2 is equivalent to GNSS-SDR.SUPL_LAC=23010.

An example of GNSS-SDR configuration file follows:

ini
GNSS-SDR.SUPL_gps_enabled=true
GNSS-SDR.SUPL_read_gps_assistance_xml=false
GNSS-SDR.SUPL_gps_ephemeris_server=supl.google.com
GNSS-SDR.SUPL_gps_ephemeris_port=7275
GNSS-SDR.SUPL_gps_acquisition_server=supl.google.com
GNSS-SDR.SUPL_gps_acquisition_port=7275
GNSS-SDR.SUPL_MCC=244
GNSS-SDR.SUPL_MNC=5
GNSS-SDR.SUPL_LAC=0x59e2
GNSS-SDR.SUPL_CI=0x31b0

Self-assistance in multi-frequency receivers

In case the receiver is configured to work with signals from different frequency bands from the same satellite (for instance, GPS L1 and GPS L5, Galileo E1 and E5a, etc.), GNSS-SDR makes use of the acquisition parameters obtained in the primary band to accelerate acquisition in the secondary band(s). This allows reducing the computational load (since the search grid in the secondary band(s) can be smaller) and the acquisition-to-tracking latency. This behavior can be deactivated by setting this parameter to false, which makes the receiver search satellites in each band independently.

Moreover, the Doppler search in the secondary band is always narrowed to a single bin centered at the projected value, instead of sweeping the full grid (see Reduced Doppler search in the Acquisition documentation). Setting assist_dual_frequency_acq=false restores the independent, full-range search in each band, and Acquisition_XX.dual_freq_assisted_doppler_narrowing=false keeps the assistance but forces a full-range search for a given signal only.

ParameterDescriptionRequired
assist_dual_frequency_acq[true, false]: If set to true, it enables the assistance to acquisition from primary to secondary bands in dual-frequency configurations. If set to false, satellites are searched for independently in each band. It defaults to true, except with deterministic processing, which does not accept true. Available since GNSS-SDR v0.0.22.Optional

Example for satellites searched independently in each band:

ini
GNSS-SDR.assist_dual_frequency_acq=false

By default, each idle channel takes the next satellite to search for from a single first-in, first-out queue per signal. Satellite visibility only affects the initial order of that queue when assisted GNSS is enabled; after that, a satellite that fails acquisition simply goes to the back of the queue, so channels keep spending time on satellites that are below the horizon.

GNSS-SDR v0.0.22 added an optional visibility-aware search. Once a receiver position is available, either from a position fix or from AGNSS_ref_location and AGNSS_ref_utc_time, satellites are continuously classified as visible (elevation above search_elevation_mask), excluded (elevation at or below the mask, or flagged as unhealthy) or maybe visible (no ephemeris or almanac decoded yet), using the freshest ephemeris or almanac available for GPS, Galileo, BeiDou, GLONASS, and QZSS. Idle channels then favor visible satellites over the maybe visible ones and skip the excluded ones. The classification is refreshed when the position fix becomes valid, when new ephemeris or almanac data arrive, when the receiver moves, periodically, and when the data used for a satellite becomes stale. A satellite that is already being tracked is never released because of this classification, and PVT.elevation_mask still decides which observations enter the navigation solution.

ParameterDescriptionRequired
enable_visibility_aware_search[true, false]: If set to true, it enables the visibility-aware acquisition search described above. If set to false, the search order is the default one. It defaults to false.Optional
search_elevation_maskMinimum elevation, in degrees, for a satellite to be classified as visible for search purposes. It is independent of PVT.elevation_mask, which applies to the navigation solution instead of the acquisition search order. It defaults to 00 [degree].Optional
visible_vs_mayvisible_search_ratioNumber of visible satellites searched for each maybe visible satellite, once both groups have candidates queued. It defaults to 33.Optional
visibility_recompute_interval_sPeriod, in seconds of receiver time, of the periodic reclassification of all satellites. Satellites move slowly, so this is a fallback: the reaction to new data or receiver movement is driven by the other triggers. It defaults to 120120 [s].Optional
visibility_recompute_position_threshold_mReceiver displacement, in meters, that forces an immediate reclassification of all satellites, independently of the periodic interval. It defaults to 10001000 [m].Optional
visibility_almanac_max_age_sMaximum age, in seconds, of the almanac data used to classify a satellite. Older almanacs are ignored, and the satellite goes back to maybe visible unless a usable ephemeris is available. Ephemeris validity is not configurable: ephemerides older than the RTKLIB validity limit of each system are ignored. It defaults to 259200259200 [s] (three days).Optional

Satellites listed in the <System>_banned_prns parameters described below are never classified as visible.

Example:

ini
GNSS-SDR.enable_visibility_aware_search=true
GNSS-SDR.search_elevation_mask=15
GNSS-SDR.visible_vs_mayvisible_search_ratio=10
GNSS-SDR.visibility_recompute_interval_s=120.0
GNSS-SDR.visibility_recompute_position_threshold_m=1000.0
GNSS-SDR.visibility_almanac_max_age_s=259200.0

Doppler prediction from ephemeris and almanac

With the visibility-aware search enabled, the receiver can also use the ephemeris or almanac of a satellite classified as visible to predict its Doppler shift, and narrow the acquisition search around that value (see Reduced Doppler search in the Acquisition documentation). The prediction adds the geometric Doppler, computed from the satellite orbit and the receiver position and velocity, and the receiver clock drift, both scaled to the carrier frequency of the searched signal. With a position fix no older than one second of receiver time, the position, velocity, and clock drift come from that fix, and a single Doppler bin is searched. Primary bands (GPS L1 C/A, Galileo E1, GLONASS L1, BeiDou B1I and B1C, QZSS L1) use this prediction whenever it is available. Secondary bands only use it if Acquisition_XX.alm_ephe_assisted_doppler_narrowing=true and they are searched without dual-frequency assistance (see Self-assistance in multi-frequency receivers). No prediction is made while a reference position and time received by telecommand is active.

Before the first position fix, the prediction can optionally be computed at AGNSS_ref_location (at zero height), assuming a static receiver with a clock drift equal to clock_frequency_offset_ppm, at the time given by AGNSS_ref_utc_time (or by the system time when the receiver starts) plus the elapsed sample time. Since the receiver velocity and clock drift are not solved yet, the search is widened to cover

\small U = \left( \text{clock_frequency_max_error_ppm} \cdot 10^{-6} + \frac{\text{receiver_max_velocity_m_s}}{c} \right) \cdot f_{carrier}

Hz on each side of the predicted value, where cc is the speed of light. This is only done if doppler_prediction_before_fix=true, AGNSS_ref_location is set, and both clock_frequency_max_error_ppm and receiver_max_velocity_m_s are explicitly set to finite, nonnegative values; otherwise, the full Doppler grid is searched until the first fix. Setting a bound to zero asserts that there is no uncertainty in that component. UU does not account for errors in the reference position or time, so the reference location should be close to the receiver, and in file replays AGNSS_ref_utc_time must match the time of the recorded samples.

ParameterDescriptionRequired
doppler_prediction_before_fix[true, false]: If set to true, it enables the Doppler prediction before the first position fix described above. It defaults to false.Optional
clock_frequency_offset_ppmNominal receiver clock frequency offset, in ppm, used as the clock drift of the Doppler prediction before the first fix. It follows the sign convention of the clock drift estimated by the PVT block (user_clk_drift_ppm): a positive value lowers the predicted Doppler. It defaults to 00 [ppm].Optional
clock_frequency_max_error_ppmMaximum error, in ppm, of the receiver clock frequency with respect to clock_frequency_offset_ppm. It has no default value: if it is not set, or it is not a finite, nonnegative number, there is no Doppler prediction before the first fix.Optional
receiver_max_velocity_m_sMaximum receiver speed, in m/s, assumed by the Doppler prediction before the first fix. It has no default value: if it is not set, or it is not a finite, nonnegative number, there is no Doppler prediction before the first fix.Optional

Example:

ini
GNSS-SDR.enable_visibility_aware_search=true
GNSS-SDR.AGNSS_ref_location=41.39,2.31
GNSS-SDR.assist_dual_frequency_acq=false
GNSS-SDR.doppler_prediction_before_fix=true
GNSS-SDR.clock_frequency_offset_ppm=0.0
GNSS-SDR.clock_frequency_max_error_ppm=1.0
GNSS-SDR.receiver_max_velocity_m_s=30.0
Acquisition_L5.alm_ephe_assisted_doppler_narrowing=true

With these values, U≈1733U \approx 1733 Hz for GPS L1 C/A and U≈1294U \approx 1294 Hz for GPS L5 before the first fix.

Banned satellites

By default, GNSS-SDR searches for all the available satellites by PRN identification, from 1 up to the nominal maximum identifier (32 for GPS, 36 for Galileo, and so on). The order in which they are searched for can be altered if assisted GNSS is enabled, but all of them will be eventually processed as long as there are channels available.

The following parameters allow to remove specific satellites from the list of potentially available ones:

ParameterDescriptionRequired
GPS_banned_prnsList of GPS satellites, by PRN, that will be removed from the list of available satellites and will not be processed. It defaults to empty.Optional
Galileo_banned_prnsList of Galileo satellites, by PRN, that will be removed from the list of available satellites and will not be processed. It defaults to empty.Optional
Glonass_banned_prnsList of GLONASS satellites, by PRN, that will be removed from the list of available satellites and will not be processed. It defaults to empty.Optional
Beidou_banned_prnsList of Beidou satellites, by PRN, that will be removed from the list of available satellites and will not be processed. It defaults to empty.Optional
QZSS_banned_prnsList of QZSS satellites, by PRN, that will be removed from the list of available satellites and will not be processed. It defaults to empty.Optional

With these parameters, users can specify lists of satellites that will not be processed. Satellites on those lists will never be assigned to a processing channel.

Example: since Galileo E14 and E18 satellites are not usable for PVT, they can be removed from the list of Galileo searched satellites by setting:

ini
GNSS-SDR.Galileo_banned_prns=14,18

Processing old data files

GPS L1 C/A navigation messages broadcast the week number modulo 1024, so the week counter rolls over every 1024 weeks (about 19.7 years; rollovers occurred on August 21, 1999, and April 6, 2019, and the next one will occur on November 20, 2038). By default, the receiver resolves this ambiguity using the computer’s current date, which is the right choice when operating in real time, but yields a wrong date and time (and a wrong leap-second offset) when post-processing a raw data file recorded more than about ten years ago. If you are processing an old recording, set the approximate date of the signal capture with this parameter in order to get the right date and time:

ParameterDescriptionRequired
observation_dateApproximate date of the signal capture, in YYYY-MM-DD or YYYY format. The broadcast week number is resolved to the 1024-week era closest to this date, so an accuracy of a few years is enough. If it is not set, the date is derived from the computer’s clock, which is the right choice for real-time operation. It defaults to empty. Available since GNSS-SDR v0.0.22.Optional

Example: for a file recorded on December 20, 2014:

ini
GNSS-SDR.observation_date=2014-12-20

This parameter replaces GNSS-SDR.pre_2009_file, available in older versions of GNSS-SDR, which could only select the August 1999 - April 2019 era (so, for instance, GNSS-SDR.pre_2009_file=true is the right setting for a file recorded in 2014). The old flag still works, but it is deprecated and ignored if GNSS-SDR.observation_date is also set.

Getting the TOW and the Week Number in the Tracking blocks

In some applications, it can be useful to get the Time of Week and Week Number at the Tracking blocks, when available.

Activating this configuration parameter makes this information available both in the dump files generated by the Tracking blocks and in the Gnss_Synchro objects they emit.

ParameterDescriptionRequired
tow_to_trk[true, false]: When set to true, Telemetry blocks send asynchronous messages back to the Tracking blocks containing the information required to compute the TOW and week number at the tracking stage. It is ignored with deterministic processing. It defaults to false.Optional

Example:

ini
GNSS-SDR.tow_to_trk=true

Exporting the flow graph

This feature is only present in the next branch of the upstream repository, and will be included in the next GNSS-SDR stable release.

GNSS-SDR builds a GNU Radio flow graph out of the configuration file. In order to inspect which blocks were actually instantiated and how they are connected, the receiver can write that flow graph to a text file in the Graphviz DOT language. The file is written at startup, once all the blocks are connected and before the receiver starts processing samples.

ParameterDescriptionRequired
dump_flowgraph[true, false]: If set to true, the receiver writes its flow graph to the file set by flowgraph_dump_filename. It defaults to false.Optional
flowgraph_dump_filenameIf dump_flowgraph is set to true, name of the file in which the flow graph is written, replacing its content if it already exists. It defaults to flowgraph.dot.Optional

Global GNSS-SDR parameters: flow graph export.

Example in the configuration file:

ini
GNSS-SDR.dump_flowgraph=true
GNSS-SDR.flowgraph_dump_filename=./my_receiver.dot

The file can then be rendered with Graphviz, for instance as a PDF document:

bash
$ dot -Tpdf my_receiver.dot -o my_receiver.pdf

Each node of the graph is a GNU Radio block, and each arrow is a connection between two blocks. With GNU Radio 3.8.1 or newer, the nodes are labeled with the name of the block followed by its instance number (for instance, dll_pll_veml_tracking0), and the asynchronous message connections are also included, drawn in blue. Older versions of GNU Radio label the nodes with the name of the block only, and show just the connections that carry streams of samples.

Deterministic processing

This feature is only present in the next branch of the upstream repository, and will be included in the next GNSS-SDR stable release.

Processing the same recorded file twice does not necessarily give the same results, even with Acquisition_XX.blocking=true. Signal processing runs in sample time, but the receiver control runs in wall-clock time: the control thread starts acquisitions, assigns satellites to channels, and applies channel events (successful or failed acquisitions, losses of lock) at whatever sample each block has reached when it handles them, and the Observables and PVT blocks apply each other’s messages (navigation data, receiver clock corrections) whenever they arrive. Thread timing then changes the first sample of every search and pull-in, the satellite-to-channel assignment, the epoch of the first position fix, and the end of the outputs.

Setting GNSS-SDR.deterministic=true makes the processing of a recorded file repeatable. In this mode:

  • Events and messages carry the sample at which they happened, and the control thread handles channel events in sample order.
  • Every action caused by an event (for instance, the start of the next acquisition search, or the tracking pull-in after a successful acquisition) takes effect a fixed lookahead later, at a sample that depends only on the stamp of the event. A gate at the output of each Signal Conditioner keeps the stream from running further ahead than the lookahead past the slowest block.
  • Periodic control tasks, such as assigning satellites to idle channels, run every deterministic_tick_ms of signal instead of every 100 ms of wall-clock time.
  • The receiver stops only when the whole input file has gone through the PVT block.

Tracking, Telemetry Decoder, Observables and PVT dump files, and RINEX, NMEA, KML, GPX and GeoJSON files are then bit-identical from run to run (except for the creation time written in the RINEX, KML and GPX headers), whatever the CPU load and with Acquisition_XX.blocking set to either value, as long as the same GNSS-SDR executable runs with the same libraries, on a processor with the same instruction set extensions (VOLK and VOLK_GNSSSDR choose their kernels according to them), with the same FFTW wisdom (GNU Radio plans its FFTs with FFTW_MEASURE) and the same VOLK configuration. Different lookahead values start the searches at different samples, so they give different (but, again, repeatable) results.

Results are not bit-identical across builds or platforms. The same source code built with another compiler or other compiler flags, or linked against other versions of the math library, VOLK, FFTW or BLAS/LAPACK, rounds floating-point operations differently. For instance, GCC and Clang fuse multiplications and additions into FMA instructions in different places, the ARM NEON kernels of VOLK_GNSSSDR are compiled with -funsafe-math-optimizations, and the math libraries of macOS and GNU/Linux return different last bits for some inputs of functions such as sin, cos or atan2. These differences are tiny in the correlator outputs, but they can change a decision near a threshold, such as the epoch at which a weak signal loses lock, and from then on that channel follows a different sequence of events. To get identical files on different computers, run the same executable and libraries (for instance, from the same container image) on the same processor architecture.

ParameterDescriptionRequired
deterministic[true, false]: If set to true, it enables the deterministic processing described above. It defaults to false.Optional
deterministic_lookahead_msDelay, in ms of signal, between a channel event and the actions it causes. It is raised automatically to cover the input that a block needs beyond its current sample (for instance, the samples of all the dwells of an acquisition search). It must be positive, and it cannot exceed the observables delay minus 60 ms: 220 ms with the default observable_interval_ms of 20 ms. It defaults to 100100 [ms].Optional
deterministic_tick_msPeriod, in ms of signal, of the periodic control tasks. It must be at least 1 ms. It defaults to 100100 [ms].Optional

Global GNSS-SDR parameters: deterministic processing.

Example:

ini
GNSS-SDR.deterministic=true
GNSS-SDR.deterministic_lookahead_ms=200

The receiver refuses to start, with an explanation, if the configuration includes any of the following:

  • radio frequency front-ends and network or pipe inputs (such as Fifo_Signal_Source), whose samples could be lost while the stream is held back;
  • FPGA offloading (GNSS-SDR.enable_FPGA=true);
  • use_acquisition_resampler=true with Acquisition implementations that do not support the resampler;
  • the visibility-aware acquisition search and assisted GNSS;
  • an explicit assist_dual_frequency_acq=true;
  • osnma_mode=strict, Galileo HAS corrections (PVT.use_has_corrections=true, the default when there are Galileo E6 channels) and NTRIP corrections (PVT.ntrip_client_enabled=true), whose effects the PVT block applies when the messages arrive;
  • Acquisition_XX.blocking_on_standby=true;
  • a lookahead that is not positive or exceeds the limit above, or a control tick below 1 ms.

Also, in this mode:

  • multi-frequency configurations do not use the self-assistance from primary to secondary bands, and the receiver does not stop channels that track a satellite signal already tracked in another channel, since both decisions depend on the live tracking status;
  • the Tracking blocks ignore tow_to_trk=true, since the Telemetry Decoder messages would reach them at a timing-dependent sample;
  • the Galileo E6 Telemetry Decoders take the time of week that the E1, E5a or E5b Telemetry Decoders set for the same satellite once the stream has gone one lookahead past the symbol that set it;
  • commands received through the telecommand interface take effect when they arrive, so they make the results depend on their timing.

This mode is intended for post-processing recorded files, for instance to compare the outputs of two receiver configurations or software versions, or to reproduce a rare event exactly. It is not suitable for real-time operation.