Tracking
A generic GNSS signal defined by its complex baseband equivalent, , the digital signal at the input of a Tracking block can be written as:
where is the signal amplitude, is a filtered version of , is a time-varying code delay, is a time-varying Doppler shift, is a time-varying carrier phase shift, is a term modeling random noise and is the sampling period.
The role of a Tracking block is to follow the evolution of the signal synchronization parameters: code phase , Doppler shift and carrier phase .
According to the Maximum Likelihood (ML) approach[^Proakis], obtaining the optimum estimators implies the maximization of the correlation of the incoming signal with its matched filter. The ML estimates of and can be obtained by maximizing the function
where
with being the number of samples in an integration period, and is a locally generated reference.
This is usually achieved with closed-loop structures designed to minimize the difference between the code phase, carrier phase, and frequency of the incoming signal with respect to the locally-generated replica .
In the case of code phase tracking, the cost function is driven to the maximum using feedback loops that employ the derivative zero-crossing as a timing error detector. This is the case of the Delay Lock Loop (DLL) architecture and its wide range of variants, where the receiver computes three samples of , usually referred to as Early , Prompt and Late , with ranging from to , and then computes a timing error with some combination of those samples, known as discriminator functions. The result is low-pass filtered and reinjected back to the matched filter, as shown in the figure below:
Typical diagram of a tracking block. Colored boxes indicate functions
implemented in the
VOLK_GNSSSDR
library.
GNSS-SDR’s Tracking implementations make heavy use of VOLK_GNSSSDR, an extension module of the original VOLK library which contains some functions that are especially useful in the context of a GNSS receiver (some examples in the figure above).
The VOLK_GNSSSDR library addresses Efficiency and Portability at the same time, by providing several implementations of the same functions in different SIMD technologies, benchmarking them and selecting the fastest in your machine at runtime.
Tracking State Machine
The Tracking blocks are continually receiving the data stream , but they do nothing until receiving a “positive acquisition” message, along with the coarse estimations and , provided by an Acquisition block. Then, the role of the Tracking blocks is to refine such estimations and track their changes over time. As shown in the figure below, more refinements can be made once the navigation message bits (in the case of tracking a data component of a GNSS signal) or the secondary spreading code (in the case of tracking a pilot component of a GNSS signal) is synchronized, for instance by extending the integration time or by narrowing the tracking loops.
Internal state machine of a Tracking block.
Optionally, a passive frequency-error reduction scan, not shown in the figure, can be inserted between the pull-in state and the closed-loop tracking states in order to re-measure the Doppler shift before the loops are closed.
In addition to track the synchronization parameters, the Tracking blocks must also implement code and carrier lock detectors, providing indicators of the tracking performance, as well as an estimation of the carrier-to-noise-density ratio, .
Frequency-error reduction scan
The Tracking_<signal>.f_error_step_num option enables a Doppler refinement
scan that the DLL/PLL tracking implementations run every time a channel starts
tracking a satellite, right after the pull-in state and before closing the
tracking loops. It defaults to 0 (scan disabled).
A navigation-bit or secondary-code sign transition falling inside the coherent integration window of the Acquisition block splits the correlation peak and can displace the Doppler estimate handed over to tracking by more than one acquisition bin. The frequency discriminator described in the Discriminators section below has an unambiguous range of , so for signals with long primary code periods, such as Galileo E1 ( ms, that is, Hz), such a displacement can exceed what the FLL is able to pull in, and the loops may take long to converge or fail to lock. The scan re-measures the Doppler shift with the tracking correlators before the loops are closed:
- Once the pull-in state has aligned the local code replica with the code phase
estimated by the Acquisition block, the channel tests
f_error_step_numDoppler hypotheses centered on and spacedf_error_doppler_stepHz apart, visited in the order (0, +1, -1, +2, -2, \ldots) times the step. Even values off_error_step_numare rounded up to the next odd number, so that the center bin is always accompanied by the same number of positive and negative offsets. - For each hypothesis, the local carrier is set to that Doppler shift and the
power at the output of the Prompt correlator, , is
non-coherently accumulated over
f_error_accumulationcode periods. The scan is passive: the code phase and the state of the loop filters are left exactly as the pull-in state set them, and no discriminator runs while it lasts. - When all bins have been tested, the Doppler shift of the bin with the highest
accumulated power is retained, the carrier loop filter is re-initialized with
it, and the channel proceeds to the usual closed-loop tracking states. The
selected offset is reported in the log at
INFOlevel.
The scan delays the start of closed-loop tracking, and hence bit or
secondary-code synchronization and the first position fix, by
f_error_step_num f_error_accumulation code periods per channel:
for instance, 9 bins with 5 accumulations each on Galileo E1 (4 ms code period)
take 180 ms. The pull_in_time_s and bit_synchronization_time_limit_s budgets
start counting when the scan completes, so the loops keep their full settling
time. The deliberate frequency steps between bins are not interpreted as signal
dynamics by the Doppler-rate estimator enabled with the high_dyn option.
Since each bin is measured with a coherent integration of one code period, the
accumulated power follows a envelope with first nulls at
around the true Doppler shift, and the scan can only
discriminate steps that are a fraction of that width. For signals with short
code periods and sparse bit transitions, such as GPS L1 C/A (1 ms codes, 20 ms
bits), a displaced estimate is infrequent, the FLL pull-in range is wider, and
the resolution of a one-code-period scan is coarse, so the benefit is small.
The option is intended mainly for Galileo E1 and other signals with long code
periods. Choosing f_error_doppler_step well below , and a
number of bins such that the total span (where
is f_error_step_num and is f_error_doppler_step)
covers at least one acquisition Doppler bin on each side, allows the scan to
correct the quantization error of the acquisition grid as well as a
bit-transition displacement. Longer accumulations improve the estimate at low
at the cost of a longer scan.
If f_error_dump=true (it defaults to false), each completed scan is also
written to the CSV file set by f_error_dump_filename, which defaults to
./f_error_dump.csv. Channels sharing a file name
write to the same file: the first scan of a receiver run overwrites any previous
file and writes a header line, and later scans append their rows. Each row
contains scan_id (a counter identifying the scan), prn, system_char (the
ASCII code of the system identifier, e.g., 71 for G and 69 for E),
channel, cn0_dBHz (an estimate of obtained from the selected
bin), selected_doppler_hz, selected_bin (position of the selected bin in
increasing Doppler order), bin_index, doppler_hz, and power, with one row
per tested bin, sorted by increasing Doppler. The file can be read directly in
Matlab/Octave, e.g., with scans = csvread('f_error_dump.csv', 1, 0);, or
with the scripts load_f_error_dump.m, find_f_error_scans.m, and
plot_f_error_scan.m (in utils/matlab/libs) and plot_all_f_error_scans.m
(in utils/matlab) of the GNSS-SDR source tree.
For example, this Galileo E1 configuration, in which the acquisition grid has a Doppler step of 125 Hz, tests nine bins spaced 31.25 Hz apart (a span of Hz, that is, one full acquisition bin on each side), accumulating five 4 ms code periods per bin, for a total scan time of 180 ms:
Acquisition_1B.implementation=Galileo_E1_PCPS_Ambiguous_Acquisition
Acquisition_1B.coherent_integration_time_ms=4
Acquisition_1B.doppler_step=125
;... (other parameters) ...
Tracking_1B.implementation=Galileo_E1_DLL_PLL_VEML_Tracking
Tracking_1B.track_pilot=true
Tracking_1B.enable_fll_pull_in=true
Tracking_1B.f_error_step_num=9
Tracking_1B.f_error_doppler_step=31.25
Tracking_1B.f_error_accumulation=5This option is supported by the implementations whose parameter tables below
include f_error_step_num.
Carrier-to-noise-density ratio
The carrier-to-noise-density ratio, expressed as (C/N_0 = \frac{C}{\frac{N}{BW}}) (where is the carrier power, is the noise power and is the bandwidth of observation) refers to the ratio of the carrier power and the noise power per unit of bandwidth, so it is expressed in decibel-Hertz (dB-Hz). The term is known as the signal-to-noise power ratio (SNR).
Considering that the observation bandwidth is the inverse of the coherent integration time, , we can write:
The SNR estimation for complex signals can be computed as[^Pauluzzi00]:
where:
- is the estimation of the second moment of ,
- is the estimation of the fourth moment of ,
- is the number of samples used to perform the estimation (see tracking block parameter
cn0_samples), - is the absolute value (also known as norm, modulus, or magnitude),
- is the prompt correlator output (complex value) for the integration period .
Then, the estimated value in dB-Hz can be written as:
This estimation is smoothed with an exponential smoother of the form
with controlled by the configuration parameter
cn0_smoother_alpha, after an initialization averaging cn0_smoother_samples
samples.
The value provides an indication of the signal quality that is independent of the acquisition and tracking algorithms used by a receiver, and it remains constant through the different processing stages of the receiver.
The number of correlation outputs to perform the estimation defaults to
. This value can be changed by using the command line flag -cn0_samples
when running the executable:
$ gnss-sdr -cn0_samples=100 -c=./configuration_file.confCode lock detector
The lock detector for the code tracking loop is defined as:
If the estimated is above a certain threshold, the tracking loop is declared locked.
The threshold is set by default to 25 dB-Hz. This value can
be changed by using the command line flag -cn0_min when running the
executable:
$ gnss-sdr -cn0_min=22 -c=./configuration_file.confCarrier lock detector
The lock detector test for the carrier tracking loop is defined as:
where is the carrier phase error. If the estimate of the cosine of twice the carrier phase error is above a certain threshold, the loop is declared in lock.
The estimate of the cosine of twice the carrier phase error is computed as:
where:
- ,
- ,
- and are the prompt correlator output I and Q components for the integration period .
This estimation is smoothed with an exponential smoother of the form
with controlled by the configuration parameter
carrier_lock_test_smoother_alpha, after an initialization averaging
carrier_lock_test_smoother_samples samples.
The threshold is set by default to
(corresponding to a carrier phase error of approx. 23 degrees, since
). This value can be changed for
each Tracking block with its carrier_lock_th parameter, or for all of them by
using the command line flag -carrier_lock_th when running the executable:
$ gnss-sdr -carrier_lock_th=0.75 -c=./configuration_file.confNumber of failures allowed before declaring a loss of lock
The maximum number of code lock failures before dropping a satellite is set by
default to 50 consecutive failures. This value can be changed for each Tracking
block with its max_lock_fail parameter, or for all of them by using the
command line flag -max_lock_fail when running the executable:
$ gnss-sdr -max_lock_fail=100 -c=./configuration_file.confSimilarly, the maximum number of carrier lock failures is set by default to
5000, and it can be changed with the max_carrier_lock_fail parameter of each
Tracking block, or with the command line flag -max_carrier_lock_fail.
Discriminators
Code Discriminator: For BPSK signals, it is used the DLL noncoherent Early minus Late envelope-normalized discriminator:
where:
- is the interception point of the correlation function in the y-axis,
- is the slope of the correlation function,
- is the Early-to-Prompt (or Prompt-to-Late) spacing, normalized by the chip period,
- is the magnitude of the Early correlator output,
- is the magnitude of the Late correlator output.
For BOC(1,1) signals, the DLL discriminator is
where:
- is the magnitude of the Very Early correlator output,
- is the magnitude of the Very Late correlator output.
Phase Discriminator
PLL Costas loop two-quadrant discriminator for signals with data bit transitions:
PLL four-quadrant discriminator for dataless channels:
When the pilot component of a signal is tracked (
track_pilot=true), the Costas discriminator is used until the secondary code of the pilot is synchronized, and the four-quadrant discriminator is used from then on. The Costas loop is insensitive to the sign of the prompt correlator output, so it can settle half a cycle away from the phase of the pilot. When that happens, the four-quadrant discriminator moves the carrier phase by half a cycle as soon as it takes over, and the prompt correlator outputs change their sign at that point.If the parameter
keep_phase_at_secondary_lockis set totrue, the four-quadrant discriminator takes the prompt correlator output with the sign that it had when the secondary code was synchronized. The carrier then keeps its phase and the prompt correlator outputs keep their sign, which eases the analysis of the correlator outputs stored in the dump files. The carrier phase is left with a half-cycle ambiguity, and the Telemetry Decoder block resolves it from the polarity of the navigation symbols, as it does when the data component is tracked. This parameter defaults tofalse, it has no effect iftrack_pilot=false, and it is not available for BeiDou B1C. This parameter is only present in thenextbranch of the upstream repository, and will be included in the next GNSS-SDR stable release.Frequency Discriminator
If the Frequency Locked Loop (FLL) is activated, the receiver uses the four-quadrant discriminator:
where
and
Low pass filters
Diagrams of digital low-pass filters of different order are shown below:
First-order digital low-pass filter.
Second-order digital low-pass filter.
Third-order digital low-pass filter.
| Filter order | Parameters |
|---|---|
| First | |
| Second | , |
| Third | , , |
Filter parameters, from Kaplan & Hegarty[^Kaplan17].
The user can configure the noise bandwidth with parameters dll_bw_hz and
pll_bw_hz, and the filter order with dll_filter_order and
pll_filter_order.
The configuration interfaces for the available Tracking block implementations are described below.
For the signals with a data and a pilot component, the track_pilot parameter
selects which one is used to track code and carrier. That choice is reported
with each measurement, and it sets the observation code written in the
RINEX files, the signal
identifier of the RTCM Multiple Signal Messages, and the tracking_component
field of the Monitor block.
For instance, Galileo E1 is reported as 1C when the pilot is tracked and as
1B otherwise. This reporting is only present in
the next branch of the upstream repository, and will be included in the next
GNSS-SDR stable release.
GPS L1 C/A signal tracking
This signal, centered at MHz, has a complex baseband transmitted signal that can be written as:
with
where is the exclusive–or operation (modulo–2 addition), means modulo , means the integer part of , is the GPS navigation message bit sequence, transmitted at bit/s, s, s, , and is the chip pulse of a chip–period duration.
Then, applying equation in , the digital signal at the input of the Tracking block can be written as:
The implementations described below perform the estimation of , and , which are assumed piecewise constant (that is, constant within an integration time, but allowed to vary from one integration period to the next one).
Implementation: GPS_L1_CA_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | GPS_L1_CA_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
extend_correlation_symbols | Sets the number of correlation symbols to be extended after bit synchronization has been achieved. Each symbol is 1 ms, so setting this parameter to 20 means a coherent integration time of 20 ms. Each bit is 20 ms, so the value of this parameter must be a divisor of it (e.g., 2, 4, 5, 10, 20). The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after bit synchronization, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after bit synchronization, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period , after bit synchronization. It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
bs_min_events_for_lock | Histogram-based bit synchronization: minimum number of detected candidate bit transitions before a synchronization decision is attempted. It defaults to 6. | Optional |
bs_dominance_ratio | Histogram-based bit synchronization: minimum fraction of the detected transitions that must fall in the winning histogram bin. It defaults to 0.5. | Optional |
bs_runner_up_margin | Histogram-based bit synchronization: minimum normalized margin between the best and second-best histogram bins, computed as (best bin count second-best bin count) / total number of detected transitions. It defaults to 0.3. | Optional |
bs_stable_best_required | Histogram-based bit synchronization: number of consecutive evaluations, each triggered by a newly detected transition, in which the same histogram bin must remain the winner. It defaults to 3. | Optional |
bs_min_prompt_mag | Histogram-based bit synchronization: minimum magnitude of the Prompt correlator output for a candidate transition to be counted. It defaults to 0 (no minimum). | Optional |
bs_transition_window_epochs | Histogram-based bit synchronization: number of Prompt correlator outputs averaged on each side of a candidate bit edge. It defaults to 4. | Optional |
bs_transition_confidence | Histogram-based bit synchronization: minimum normalized confidence, in the range , of a polarity inversion for it to be counted as a transition. It defaults to 0.6. | Optional |
bs_tentative_events_required | Histogram-based bit synchronization: number of new transitions in the winning bin required, once the histogram criteria are met, before bit synchronization is declared. It defaults to 2. | Optional |
bs_use_phase_dot_detector | [true, false]: Histogram-based bit synchronization: if set to true, transitions are detected by comparing coherent Prompt averages before and after each candidate edge, which is insensitive to constant carrier phase rotations. If set to false, a simpler sign-change detector on the real part of the Prompt correlator output is used. It defaults to true. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: GPS_L1_CA_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR GPS L1 CHANNELS ############
Tracking_1C.implementation=GPS_L1_CA_DLL_PLL_Tracking
Tracking_1C.item_type=gr_complex
Tracking_1C.extend_correlation_symbols=20
Tracking_1C.early_late_space_chips=0.5;
Tracking_1C.early_late_space_narrow_chips=0.1;
Tracking_1C.pll_bw_hz=35;
Tracking_1C.dll_bw_hz=2.0;
Tracking_1C.pll_bw_narrow_hz=5.0;
Tracking_1C.dll_bw_narrow_hz=0.50;
Tracking_1C.fll_bw_hz=10
Tracking_1C.enable_fll_pull_in=true;
Tracking_1C.enable_fll_steady_state=false
Tracking_1C.dump=false
Tracking_1C.dump_filename=tracking_ch_Implementation: GPS_L1_CA_DLL_PLL_Tracking_GPU
GPU-accelerated computing consists of the use of a graphics processing unit (GPU) together with a CPU to accelerate the execution of a software application, by offloading computation-intensive portions of the application to the GPU, while the remainder of the code still runs on the CPU. The key idea is to utilize the computation power of both CPU cores and GPU execution units in tandem for better utilization of available computing power.
This implementation follows the CUDA programming model and targets NVIDIA’s GPU
computing platform. Thus, you will need a CUDA-enabled
GPU and the CUDA
Toolkit installed. Moreover, it is
only available if GNSS-SDR has been built from source and configured with the
flag ENABLE_CUDA set to ON:
$ cmake -DENABLE_CUDA=ON ../ && make && sudo make installThis implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | GPS_L1_CA_DLL_PLL_Tracking_GPU | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 50 Hz. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. It defaults to ./track_ch | Optional |
Tracking implementation: GPS_L1_CA_DLL_PLL_Tracking_GPU.
Example:
;######### TRACKING CONFIG FOR GPS L1 CHANNELS ############
Tracking_1C.implementation=GPS_L1_CA_DLL_PLL_Tracking_GPU
Tracking_1C.pll_bw_hz=40.0;
Tracking_1C.dll_bw_hz=4.0;GPS L1C signal tracking
The GPS L1C signal (GNSS-SDR identifier 1S), broadcast by GPS III satellites
at MHz, is composed of a data component (modulated with BOC(1,1)
and carrying the CNAV-2 navigation message) and a pilot component (modulated
with TMBOC(6,1,4/33)), with a data:pilot power ratio of 1:3. Both components
use ranging codes of chips transmitted at Mchip/s (thus
with a period of ms), and the pilot component is further modulated by
an overlay code of chips ( s), different for each satellite.
Due to the BOC modulation, the autocorrelation function exhibits secondary
peaks, so this signal is tracked with a Very Early - Early - Prompt - Late -
Very Late (VEML) correlator structure.
Implementation: GPS_L1C_DLL_PLL_VEML_Tracking
This implementation is only present in the next
branch of the upstream repository, and will be included in the next GNSS-SDR
stable release.
This implementation follows the algorithm described for the
Galileo_E1_DLL_PLL_VEML_Tracking
implementation. By default, it tracks the pilot component (which carries
of the total signal power) and enables an extra prompt correlator
(slave to the pilot’s prompt) in the data component, whose in-phase output
provides the CNAV-2 symbols, one every ms, to the Telemetry
Decoder
(the carriers of both components are in phase). When tracking the pilot, the
block synchronizes with the overlay code, which takes a full -s period
and requires at least of the chips to match. Once
synchronized, the coherent integration can be extended to
extend_correlation_symbols code periods, with the narrow loop bandwidths and
correlator spacings. The local replica is a sinBOC(1,1) waveform by default, or
the full TMBOC(6,1,4/33) pilot waveform if tmboc=true (shared with the
Acquisition block). The TMBOC replica only makes sense if the sampling rate and
the front-end bandwidth resolve the BOC(6,1) component (more than about
MHz).
The BOC(6,1) component adds a ripple to the correlation function that, for some
correlator spacings, makes zero delay an unstable point of the code
discriminator. For instance, with early_late_space_narrow_chips=0.15 and
very_early_late_space_narrow_chips=0.5, the DLL settles about m
before or after the correct delay, and each satellite gets a different
pseudorange bias. Hence, if tmboc=true, the block evaluates the configured
spacings on the ideal TMBOC(6,1,4/33) correlation function. If zero delay is not
the only stable point of the discriminator within chip, or if the
discriminator gain there is lower than with a sinBOC(1,1) replica, it replaces
early_late_space_chips by and early_late_space_narrow_chips by
, and writes a warning in the log. These two values keep a unique
lock at zero delay for very early-late spacings between and
chips.
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | GPS_L1C_DLL_PLL_VEML_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the L1C pilot component and enables an extra prompt correlator (slave to pilot’s prompt) in the data component. If set to false, the receiver performs correlations on the data component only, with a coherent integration time of one code period ( ms). It defaults to true. | Optional |
keep_phase_at_secondary_lock | [true, false]: If set to true and track_pilot=true, the carrier keeps the phase that it had when the overlay code of the pilot was synchronized, instead of moving by half a cycle to the polarity of the pilot, and the half-cycle ambiguity is left to the Telemetry Decoder (see Discriminators). It defaults to false. Only present in the next branch. | Optional |
tmboc | [true, false]: If set to true, the pilot local replica is generated with the TMBOC(6,1,4/33) waveform; if set to false, a simpler sinBOC(1,1) replica is used. The data component replica is always sinBOC(1,1). If this parameter is not set, its value is inherited from Acquisition_1S.tmboc; if both are set, the Tracking value is used. If set to true, correlator spacings that do not give a unique DLL lock at zero delay are replaced (see above). It defaults to false. | Optional |
extend_correlation_symbols | If track_pilot=true, sets the number of code periods over which the coherent integration is extended after synchronization with the overlay code. Each code period is ms, so setting this parameter to 2 means a coherent integration time of 20 ms. The higher this parameter is, the better local clock stability will be required. If track_pilot=false, it is set to 1. It defaults to 1. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization (that is, synchronization with the overlay code if track_pilot=true) before the channel declares a loss of lock. When track_pilot=true, values below 48 s (one full 18-second overlay code period plus margin) are raised to 48 s. It defaults to 20 s. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | If track_pilot=true and extend_correlation_symbols 1, sets the bandwidth of the PLL low-pass filter after synchronization with the overlay code, in Hz. It defaults to 5 Hz. This implementation uses a four-quadrant arctangent discriminator (atan2). | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | If track_pilot=true and extend_correlation_symbols 1, sets the bandwidth of the DLL low-pass filter after synchronization with the overlay code and extension of the coherent integration time, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . If tmboc=true and this value does not give a unique DLL lock at zero delay, it is replaced by . It defaults to . | Optional |
very_early_late_space_chips | Spacing between Very Early and Prompt and between Prompt and Very Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Early and Prompt and between Prompt and Late correlators after synchronization with the overlay code, normalized by the chip period . If tmboc=true and this value does not give a unique DLL lock at zero delay, it is replaced by . It defaults to . | Optional |
very_early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Very Early and Prompt and between Prompt and Very Late correlators after synchronization with the overlay code and extension of the coherent integration time, normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
Tracking implementation: GPS_L1C_DLL_PLL_VEML_Tracking.
Example:
;######### TRACKING CONFIG FOR GPS L1C CHANNELS ############
Tracking_1S.implementation=GPS_L1C_DLL_PLL_VEML_Tracking
Tracking_1S.item_type=gr_complex
Tracking_1S.track_pilot=true
Tracking_1S.pll_bw_hz=15.0
Tracking_1S.dll_bw_hz=0.75
Tracking_1S.pll_bw_narrow_hz=5.0
Tracking_1S.dll_bw_narrow_hz=0.2
Tracking_1S.early_late_space_chips=0.25
Tracking_1S.early_late_space_narrow_chips=0.15
Tracking_1S.very_early_late_space_chips=0.5
Tracking_1S.very_early_late_space_narrow_chips=0.5
Tracking_1S.extend_correlation_symbols=2Galileo E1 signal tracking
This band, centered at MHz and with a reference bandwidth of MHz, uses the Composite Binary Offset Carrier (CBOC) modulation, defined in baseband as:
where the subcarriers are defined as
and MHz, MHz are the subcarrier rates, , and . Channel B contains the I/NAV type of navigation message, , intended for Safety–of–Life (SoL) services:
In case of channel C, it is a pilot (dataless) channel with a secondary code, forming a tiered code:
with s and ms.
Then, applying equation in , the digital signal at the input of the Tracking block can be written as
The implementation described below performs the estimation of , and , which are assumed piecewise constant (that is, constant within an integration time, but allowed to vary from one integration period to the next one).
Implementation: Galileo_E1_DLL_PLL_VEML_Tracking
In case of Galileo E1, the CBOC(6,1,) modulation creates correlation ambiguities, as shown in the following figure:
Normalized for different sampling rates and local reference waveforms[^Fernandez].
The possibility of tracking a local maximum instead of the global one can be avoided by using discriminators that consider two extra samples of the cost function, referred to as Very Early and Very Late , with .
In the case of carrier tracking loops, the pilot channel E1C can be used for the phase error estimation, since it does not contain data bit transitions, and, theoretically, coherent integration of several code periods can be used for as long as needed once the secondary code has been removed. As a consequence, a discriminator that is insensitive to phase jumps can be used. Using pure PLL tracking on the pilot channel as well as longer coherent integration improves the carrier tracking sensitivity, the minimum signal power at which the receiver can keep the tracking process in lock.
The implementation of this block is described in the Algorithm below. The computation of the complex values VE, E, P, L and VL in step was implemented using the VOLK_GNSSSDR library. The PLL discriminator implemented in step is the extended arctangent (four-quadrant) discriminator, and for the DLL we used the normalized Very Early Minus Late Power discriminator (step ). The low-pass filters of the DLL, PLL, and FLL (when available, see implementations below) are based in the description by Kaplan and Hegarty[^Kaplan17], section 8.8. For code lock detection (step ), we used the Squared Signal-to-Noise Variance (SNV) estimator[^Petovello10]. In the case of carrier lock detection (step ), we used the normalized estimate of the cosine of twice the carrier phase[^Dierendonck]. The values of the lock indicator range from , when the locally generated carrier is completely out of phase, to , that indicates a perfect match. When either the code or the carrier detectors are below given thresholds during a consecutive number of code periods , the Tracking block informs to control plane through the message queue.
- Require: Complex sample stream, ; estimations of code phase and Doppler shift ; buffer size for power estimation, ; carrier lock detector threshold, ; ; maximum value for the lock fail counter, ; correlators spacing and ; loop filters bandwidth and ; integration time . Track signal’s synchronization parameters within a given lock margin. Inform about a loss of lock.
- Initialization: Using and a sample counter , skip samples until is aligned with local PRN replica. Set , , , , , .
- Increase the integration period counter: .
- Generate local code references: for , , where , and the Very Early, Early, Late, and Very Late versions with and .
- Generate local carrier: for , .
- Perform carrier wipe-off and compute the complex samples VE, E, P, L and VL. Example: .
- Compute PLL discriminator:
- Filter with a bandwidth : .
- Update carrier frequency estimation (in Hz): .
- Update carrier phase estimation (in rad): .
- Compute DLL discriminator: , where: , and .
- Filter with a bandwidth : .
- Update code phase estimation (in samples): and , where .
- Code lock indicator: , where: , , and .
- Phase lock indicator: .
- if or
- Increase lock fail counter .
- else
- Decrease lock fail counter .
- endif
- if
- Notify the loss of lock to the control plane through the message queue.
- endif
- Output: , accumulated carrier phase error , code phase , carrier-to-noise-density ratio .
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | Galileo_E1_DLL_PLL_VEML_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the pilot signal E1C and enables an extra prompt correlator (slave to pilot’s prompt) in the data component E1B. If set to false, the receiver performs correlations on a data length of 4 ms over the E1B component. This parameter defaults to true. | Optional |
keep_phase_at_secondary_lock | [true, false]: If set to true and track_pilot=true, the carrier keeps the phase that it had when the secondary code of the pilot was synchronized, instead of moving by half a cycle to the polarity of the pilot, and the half-cycle ambiguity is left to the Telemetry Decoder (see Discriminators). It defaults to false. Only present in the next branch. | Optional |
extend_correlation_symbols | If track_pilot=true, sets the number of correlation symbols to be extended after the secondary code is removed from the pilot signal, in number of symbols. Each symbol is 4 ms, so setting this parameter to 25 means a coherent integration time of 100 ms. The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | If track_pilot=true and extend_correlation_symbols 1, sets the bandwidth of the PLL low-pass filter after removal of the secondary code , in Hz. It defaults to 5 Hz. This implementation uses a four-quadrant arctangent discriminator (atan2). | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | If track_pilot=true and extend_correlation_symbols 1, sets the bandwidth of the DLL low-pass filter after removal of the secondary code and extension of the coherent integration time, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
very_early_late_space_chips | Spacing between Very Early and Prompt and between Prompt and Very Late correlators, normalized by the chip period It defaults to . | Optional |
early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Early and Prompt and between Prompt and Late correlators after removal of the secondary code , normalized by the chip period . It defaults to . | Optional |
very_early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Very Early and Prompt and between Prompt and Very Late correlators after removal of the secondary code and extension of the coherent integration time, normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
Tracking implementation: Galileo_E1_DLL_PLL_VEML_Tracking.
Example:
;######### TRACKING CONFIG FOR GALILEO E1 CHANNELS ############
Tracking_1B.implementation=Galileo_E1_DLL_PLL_VEML_Tracking
Tracking_1B.item_type=gr_complex
Tracking_1B.track_pilot=true
Tracking_1B.pll_bw_hz=15.0;
Tracking_1B.dll_bw_hz=0.75;
Tracking_1B.early_late_space_chips=0.25;
Tracking_1B.early_late_space_narrow_chips=0.15;
Tracking_1B.very_early_late_space_chips=0.5;
Tracking_1B.very_early_late_space_narrow_chips=0.5;
Tracking_1B.pll_bw_narrow_hz=5.0
Tracking_1B.dll_bw_narrow_hz=0.2
Tracking_1B.extend_correlation_symbols=5
Tracking_1B.enable_fll_pull_in=true;
Tracking_1B.enable_fll_steady_state=false
Tracking_1B.fll_bw_hz=10
Tracking_1B.dump=false
Tracking_1B.dump_filename=tracking_ch_Glonass L1 C/A signal tracking
The complex baseband transmitted signal can be written as:
with
where s, s, and . The navigation message is transmitted at bit/s.
Then, applying equation in , the digital signal at the input of the Tracking block can be written as
The implementations described below perform the estimation of , and , which are assumed piecewise constant (that is, constant within an integration time, but allowed to vary from one integration period to the next one).
Implementation: GLONASS_L1_CA_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | GLONASS_L1_CA_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
extend_correlation_symbols | Sets the number of correlation symbols to be extended after bit synchronization (that is, after the detection of the navigation message time mark) has been achieved. Each symbol is 1 ms, so setting this parameter to 10 means a coherent integration time of 10 ms. The GLONASS navigation message is transmitted with a 10 ms meander sequence, so the value of this parameter must be a divisor of 10 (e.g., 2, 5, 10), and higher values are reduced to 10. The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after bit synchronization, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after bit synchronization, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period , after bit synchronization. It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: GLONASS_L1_CA_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR GLONASS L1 CHANNELS ############
Tracking_1G.implementation=GLONASS_L1_CA_DLL_PLL_Tracking
Tracking_1G.pll_bw_hz=30.0
Tracking_1G.dll_bw_hz=4.0
Tracking_1G.early_late_space_chips=0.5BeiDou B1I signal tracking
Implementation: BEIDOU_B1I_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | BEIDOU_B1I_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
extend_correlation_symbols | Sets the number of correlation symbols to be extended after bit synchronization has been achieved. Each symbol is 1 ms, so setting this parameter to 20 means a coherent integration time of 20 ms. Each bit is 20 ms, so the value of this parameter must be a divisor of it (e.g., 2, 4, 5, 10, 20). The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after bit synchronization, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after bit synchronization, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period , after bit synchronization. It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: BEIDOU_B1I_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR BeiDou B1I CHANNELS ############
Tracking_B1.implementation=BEIDOU_B1I_DLL_PLL_Tracking
Tracking_B1.item_type=gr_complex
Tracking_B1.extend_correlation_symbols=20
Tracking_B1.early_late_space_chips=0.5;
Tracking_B1.early_late_space_narrow_chips=0.1;
Tracking_B1.pll_bw_hz=35;
Tracking_B1.dll_bw_hz=2.0;
Tracking_B1.pll_bw_narrow_hz=5.0;
Tracking_B1.dll_bw_narrow_hz=0.50;
Tracking_B1.fll_bw_hz=10
Tracking_B1.enable_fll_pull_in=true;
Tracking_B1.enable_fll_steady_state=false
Tracking_B1.dump=false
Tracking_B1.dump_filename=tracking_ch_BeiDou B1C signal tracking
The BeiDou B1C signal (GNSS-SDR identifier 1D), transmitted by BeiDou-3 MEO
and IGSO satellites at MHz, is composed of a data component
(modulated with BOC(1,1) and carrying the B-CNAV1 navigation message) and a
pilot component (modulated with QMBOC(6,1,4/33)), with a data:pilot power ratio
of 1:3. Both components use ranging codes of chips transmitted at
Mchip/s (thus with a period of ms), and the pilot
component is further modulated by a secondary code of chips
( s), whose synchronization also provides the B-CNAV1 frame
synchronization. Due to the BOC modulation, the autocorrelation function
exhibits secondary peaks, so this signal is tracked with a Very Early - Early -
Prompt - Late - Very Late (VEML) correlator structure.
Implementation: BEIDOU_B1C_DLL_PLL_VEML_Tracking
By default, this implementation tracks the pilot component (which carries
of the total signal power) and enables an extra prompt correlator
(slave to the pilot’s prompt) in the data component, used for demodulating the
B-CNAV1 message symbols. The local replica can be generated either with the
full QMBOC(6,1,4/33) waveform or with a simpler sinBOC(1,1) approximation,
controlled by the qmboc parameter (shared with the Acquisition block).
The keep_phase_at_secondary_lock parameter described in
Discriminators is not available for this implementation: the
symbols of the data component are delivered to the Telemetry Decoder referred
to the phase of the pilot, so the PLL always locks to the polarity of the
pilot. If the parameter is set, it is ignored and a warning is written to the
log file.
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | BEIDOU_B1C_DLL_PLL_VEML_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the B1C pilot component and enables an extra prompt correlator (slave to pilot’s prompt) in the data component. If set to false, the receiver performs correlations on the data component only. It defaults to true. | Optional |
qmboc | [true, false]: If set to true, the local replica is generated with the QMBOC(6,1,4/33) waveform; if set to false, a simpler sinBOC(1,1) replica is used. If this parameter is not set, its value is inherited from Acquisition_1D.qmboc; if both are set to different values, the Tracking value is used and a warning is printed. It defaults to true. | Optional |
extend_correlation_symbols | Sets the number of correlation symbols to be extended after symbol synchronization has been achieved. Each B-CNAV1 symbol is 10 ms. When track_pilot=true, this parameter is forced to 1, since the synchronization of the 1800-chip pilot secondary code requires one-symbol correlations. It defaults to 1. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving synchronization with the pilot secondary code before the channel declares a loss of lock. When track_pilot=true, values below 48 s (one full 18-second B-CNAV1 frame plus margin) are raised to 48 s. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after synchronization with the pilot secondary code, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after synchronization with the pilot secondary code, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
very_early_late_space_chips | Spacing between Very Early and Prompt and between Prompt and Very Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | Spacing between Early and Prompt and between Prompt and Late correlators after synchronization with the pilot secondary code, normalized by the chip period . It defaults to . | Optional |
very_early_late_space_narrow_chips | Spacing between Very Early and Prompt and between Prompt and Very Late correlators after synchronization with the pilot secondary code, normalized by the chip period . It defaults to . | Optional |
b1c_secondary_lock_ratio | Correlation ratio threshold, in the range, used to declare synchronization with the 1800-chip pilot secondary code. It defaults to . | Optional |
b1c_prompt_use_data_q | [true, false]: If set to true, the data-component prompt used for B-CNAV1 symbol demodulation is taken from the quadrature arm of the complex correlator output (the B1C data component is in phase quadrature with respect to the pilot in this implementation); if set to false, the in-phase arm is used. It defaults to true. | Optional |
b1c_prompt_normalize_power | [true, false]: If set to true, the data and pilot prompt outputs are scaled by b1c_data_prompt_scale and b1c_pilot_prompt_scale, respectively, in order to compensate for the 1:3 data:pilot power ratio. It defaults to true. | Optional |
b1c_data_prompt_scale | Scale factor applied to the data prompt output when b1c_prompt_normalize_power=true. It defaults to . | Optional |
b1c_pilot_prompt_scale | Scale factor applied to the pilot prompt output when b1c_prompt_normalize_power=true. It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
Tracking implementation: BEIDOU_B1C_DLL_PLL_VEML_Tracking.
Example:
;######### TRACKING CONFIG FOR BeiDou B1C CHANNELS ############
Tracking_1D.implementation=BEIDOU_B1C_DLL_PLL_VEML_Tracking
Tracking_1D.item_type=gr_complex
Tracking_1D.track_pilot=true
Tracking_1D.extend_correlation_symbols=1
Tracking_1D.bit_synchronization_time_limit_s=90
Tracking_1D.pull_in_time_s=5
Tracking_1D.pll_bw_hz=10.0
Tracking_1D.dll_bw_hz=0.5
Tracking_1D.pll_bw_narrow_hz=5.0
Tracking_1D.dll_bw_narrow_hz=0.2
Tracking_1D.pll_filter_order=2
Tracking_1D.early_late_space_chips=0.15
Tracking_1D.very_early_late_space_chips=0.5
Tracking_1D.cn0_min=20
Tracking_1D.b1c_secondary_lock_ratio=0.92QZSS L1 C/A signal tracking
Implementation: QZSS_L1_CA_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | QZSS_L1_CA_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
extend_correlation_symbols | Sets the number of correlation symbols to be extended after bit synchronization has been achieved. Each symbol is 1 ms, so setting this parameter to 20 means a coherent integration time of 20 ms. Each bit is 20 ms, so the value of this parameter must be a divisor of it (e.g., 2, 4, 5, 10, 20). The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after bit synchronization, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after bit synchronization, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period , after bit synchronization. It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
bs_min_events_for_lock | Histogram-based bit synchronization: minimum number of detected candidate bit transitions before a synchronization decision is attempted. It defaults to 6. | Optional |
bs_dominance_ratio | Histogram-based bit synchronization: minimum fraction of the detected transitions that must fall in the winning histogram bin. It defaults to 0.5. | Optional |
bs_runner_up_margin | Histogram-based bit synchronization: minimum normalized margin between the best and second-best histogram bins, computed as (best bin count second-best bin count) / total number of detected transitions. It defaults to 0.3. | Optional |
bs_stable_best_required | Histogram-based bit synchronization: number of consecutive evaluations, each triggered by a newly detected transition, in which the same histogram bin must remain the winner. It defaults to 3. | Optional |
bs_min_prompt_mag | Histogram-based bit synchronization: minimum magnitude of the Prompt correlator output for a candidate transition to be counted. It defaults to 0 (no minimum). | Optional |
bs_transition_window_epochs | Histogram-based bit synchronization: number of Prompt correlator outputs averaged on each side of a candidate bit edge. It defaults to 4. | Optional |
bs_transition_confidence | Histogram-based bit synchronization: minimum normalized confidence, in the range , of a polarity inversion for it to be counted as a transition. It defaults to 0.6. | Optional |
bs_tentative_events_required | Histogram-based bit synchronization: number of new transitions in the winning bin required, once the histogram criteria are met, before bit synchronization is declared. It defaults to 2. | Optional |
bs_use_phase_dot_detector | [true, false]: Histogram-based bit synchronization: if set to true, transitions are detected by comparing coherent Prompt averages before and after each candidate edge, which is insensitive to constant carrier phase rotations. If set to false, a simpler sign-change detector on the real part of the Prompt correlator output is used. It defaults to true. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: QZSS_L1_CA_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR QZSS L1 C/A CHANNELS ############
Tracking_J1.implementation=QZSS_L1_CA_DLL_PLL_Tracking
Tracking_J1.item_type=gr_complex
Tracking_J1.extend_correlation_symbols=20
Tracking_J1.early_late_space_chips=0.5;
Tracking_J1.early_late_space_narrow_chips=0.1;
Tracking_J1.pll_bw_hz=35;
Tracking_J1.dll_bw_hz=2.0;
Tracking_J1.pll_bw_narrow_hz=5.0;
Tracking_J1.dll_bw_narrow_hz=0.50;
Tracking_J1.fll_bw_hz=10
Tracking_J1.enable_fll_pull_in=true;
Tracking_J1.enable_fll_steady_state=false
Tracking_J1.dump=false
Tracking_J1.dump_filename=tracking_ch_SBAS L1 signal tracking
The SBAS L1 signal (GNSS-SDR identifier S1), broadcast at MHz
by the geostationary satellites of the different satellite-based augmentation
systems (EGNOS, WAAS, …), uses BPSK-modulated Gold codes of chips
at Mchip/s (the same code family as GPS L1 C/A) and has no pilot
component. All the signal power is in the data channel, which carries
navigation data at bits per second, convolutionally encoded at rate
into symbols per second, so the encoded symbol period is
ms ( code periods). Since the transmitting satellites are
geostationary, the signal dynamics observed by a static receiver are very low,
and narrow DLL / PLL bandwidths can be used.
Implementation: SBAS_L1_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | SBAS_L1_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
extend_correlation_symbols | For SBAS L1, coherent integration is limited to code period ( ms), since the SBAS Telemetry Decoder performs its own, unsynchronized sample-to-symbol pairing, and an extended integration would straddle an encoded symbol boundary. This parameter defaults to 1, and values greater than 1 are clamped back to 1 with a warning. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
Tracking implementation: SBAS_L1_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR SBAS L1 CHANNELS ############
Tracking_S1.implementation=SBAS_L1_DLL_PLL_Tracking
Tracking_S1.item_type=gr_complex
Tracking_S1.extend_correlation_symbols=1
Tracking_S1.pll_bw_hz=25.0
Tracking_S1.dll_bw_hz=1.0
Tracking_S1.dump=false
Tracking_S1.dump_filename=tracking_ch_GPS L2CM signal tracking
This signal, centered at MHz, has a complex baseband transmitted signal that can be written as:
with the In–phase and Quadrature components defined as:
and
where ms and is a rectangular pulse of half chip–period duration, thus time–multiplexing codes and . The civilian long code is chips long, repeating every s, while the civilian moderate code is chips long and it repeats every ms.
Then, applying equation in , the digital signal at the input of the Tracking block can be written as
The implementation described below performs the estimation of , and , which are assumed piecewise constant (that is, constant within an integration time, but allowed to vary from one integration period to the next one).
Implementation: GPS_L2_M_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | GPS_L2_M_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after the secondary code lock, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
Tracking implementation: GPS_L2_M_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR GPS L2C CHANNELS ############
Tracking_2S.implementation=GPS_L2_M_DLL_PLL_Tracking
Tracking_2S.pll_bw_hz=40.0;
Tracking_2S.dll_bw_hz=4.0;
Tracking_2S.early_late_space_chips=0.4Glonass L2 C/A signal tracking
Beginning with the second generation of satellites, called GLONASS–M and first launched in 2001, a second civil signal is available using the same C/A code than the one in the L1 band but centered at MHz.
Implementation: GLONASS_L2_CA_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | GLONASS_L2_CA_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
extend_correlation_symbols | Sets the number of correlation symbols to be extended after bit synchronization (that is, after the detection of the navigation message time mark) has been achieved. Each symbol is 1 ms, so setting this parameter to 10 means a coherent integration time of 10 ms. The GLONASS navigation message is transmitted with a 10 ms meander sequence, so the value of this parameter must be a divisor of 10 (e.g., 2, 5, 10), and higher values are reduced to 10. The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after bit synchronization, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after bit synchronization, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period , after bit synchronization. It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: GLONASS_L2_CA_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR GLONASS L2 CHANNELS ############
Tracking_2G.implementation=GLONASS_L2_CA_DLL_PLL_Tracking
Tracking_2G.pll_bw_hz=30.0
Tracking_2G.dll_bw_hz=4.0
Tracking_2G.early_late_space_chips=0.5Galileo E6 signal tracking
The Galileo High Accuracy Service (HAS), whose Initial Service has been operational since January 2023, allows users to obtain a positioning error below two decimeters in nominal conditions of use, worldwide. The Galileo HAS is based on the free transmission of Precise Point Positioning (PPP) corrections through the Galileo E6 signal data component :
where is the HAS navigation data stream, which is modulated with the ranging code with chip period s.
The implementation described below performs the estimation of , and , which are assumed piecewise constant (that is, constant within an integration time, but allowed to vary from one integration period to the next one).
Implementation: Galileo_E6_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | Galileo_E6_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the pilot signal E6C and enables an extra prompt correlator (slave to pilot’s prompt) in the data component E6B. If set to false, the receiver performs correlations on a data length of 1 ms over the E16 component. This parameter defaults to true. | Optional |
keep_phase_at_secondary_lock | [true, false]: If set to true and track_pilot=true, the carrier keeps the phase that it had when the secondary code of the pilot was synchronized, instead of moving by half a cycle to the polarity of the pilot, and the half-cycle ambiguity is left to the Telemetry Decoder (see Discriminators). It defaults to false. Only present in the next branch. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | If track_pilot=true and extend_correlation_symbols 1, sets the bandwidth of the PLL low-pass filter after secondary code synchronization on , in Hz. It defaults to 5 Hz. This implementation uses a four-quadrant arctangent discriminator (atan2). | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | If track_pilot=true and extend_correlation_symbols 1, sets the bandwidth of the DLL low-pass filter after secondary code synchronization and extension of the coherent integration time, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Early and Prompt and between Prompt and Late correlators after secondary code synchronization on , normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
Tracking implementation: Galileo_E6_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR Galileo E6B CHANNELS ############
Tracking_E6.implementation=Galileo_E6_DLL_PLL_Tracking
Tracking_E6.item_type=gr_complex
Tracking_E6.pll_bw_hz=30.0
Tracking_E6.dll_bw_hz=2.0
Tracking_E6.early_late_space_chips=0.5
Tracking_E6.early_late_space_narrow_chips=0.15
Tracking_E6.pll_bw_narrow_hz=10.0
Tracking_E6.dll_bw_narrow_hz=1.0
Tracking_E6.track_pilot=false
Tracking_E6.dump=false
Tracking_E6.dump_filename=tracking_ch_GPS L5 signal tracking
The GPS L5 link is only available on Block IIF and subsequent satellite blocks. Centered at MHz, this signal can be written as:
with:
where ms and s. The L5I component contains a synchronization sequence , a –bit Neuman–Hoffman code that modulates each symbols of the GPS L5 civil navigation data , and the L5Q component has another synchronization sequence .
Then, applying equation in , the digital signal at the input of the Tracking block can be written as
The implementation described below performs the estimation of , and , which are assumed piecewise constant (that is, constant within an integration time, but allowed to vary from one integration period to the next one).
Implementation: GPS_L5_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | GPS_L5_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the pilot signal L5Q and enables an extra prompt correlator (slave to pilot’s prompt) in the data component L5I. If set to false, the receiver performs correlations on a data length of 1 ms over the L5I component. This parameter defaults to true. | Optional |
keep_phase_at_secondary_lock | [true, false]: If set to true and track_pilot=true, the carrier keeps the phase that it had when the secondary code of the pilot was synchronized, instead of moving by half a cycle to the polarity of the pilot, and the half-cycle ambiguity is left to the Telemetry Decoder (see Discriminators). It defaults to false. Only present in the next branch. | Optional |
extend_correlation_symbols | If track_pilot=true, sets the number of correlation symbols to be extended after the secondary code is removed from the pilot signal, in number of symbols. Each symbol is 1 ms, so setting this parameter to 25 means a coherent integration time of 25 ms. The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after bit synchronization, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after the secondary code lock, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Early and Prompt and between Prompt and Late correlators after removal of the secondary code , normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, this parameter sets the base name of the files in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: GPS_L5_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR GPS L5 CHANNELS ############
Tracking_L5.implementation=GPS_L5_DLL_PLL_Tracking
Tracking_L5.item_type=gr_complex
Tracking_L5.track_pilot=true
Tracking_L5.pll_bw_hz=20.0;
Tracking_L5.dll_bw_hz=1.5;
Tracking_L5.extend_correlation_symbols=20
Tracking_L5.pll_bw_narrow_hz=6.0
Tracking_L5.dll_bw_narrow_hz=0.5
Tracking_L5.enable_fll_pull_in=true
Tracking_L5.enable_fll_steady_state=false
Tracking_L5.fll_bw_hz=4.0
Tracking_L5.early_late_space_chips=0.5;
Tracking_L5.early_late_space_narrow_chips=0.1;
Tracking_L5.dump=false
Tracking_L5.dump_filename=./tracking_ch_Galileo E5a signal tracking
The AltBOC modulation in the Galileo E5 band allows the approximation to two sub-bands, referred to as E5a and E5b, QPSK-modulated and centered at MHz and MHz, respectively.s
The baseband signal at E5a can then be approximated by:
where the signal components are defined as:
where ms and s.
Then, applying equation in , the digital signal at the input of the Tracking block can be written as
The implementation described below performs the estimation of , and , which are assumed piecewise constant (that is, constant within an integration time, but allowed to vary from one integration period to the next one).
Implementation: Galileo_E5a_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | Galileo_E5a_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the pilot signal E5aQ and enables an extra prompt correlator (slave to pilot’s prompt) in the data component E5aI. If set to false, the receiver performs correlations on a data length of 1 ms over the E5aI component. This parameter defaults to true. | Optional |
keep_phase_at_secondary_lock | [true, false]: If set to true and track_pilot=true, the carrier keeps the phase that it had when the secondary code of the pilot was synchronized, instead of moving by half a cycle to the polarity of the pilot, and the half-cycle ambiguity is left to the Telemetry Decoder (see Discriminators). It defaults to false. Only present in the next branch. | Optional |
extend_correlation_symbols | If track_pilot=true, sets the number of correlation symbols to be extended after the secondary code is removed from the pilot signal, in number of symbols. Each symbol is 1 ms, so setting this parameter to 25 means a coherent integration time of 25 ms. The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after the secondary code lock, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after the secondary code lock, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Early and Prompt and between Prompt and Late correlators after removal of the secondary code , normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: Galileo_E5a_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR GALILEO E5a CHANNELS ############
Tracking_5X.implementation=Galileo_E5a_DLL_PLL_Tracking
Tracking_5X.item_type=gr_complex
Tracking_5X.track_pilot=true
Tracking_5X.pll_bw_hz=20.0;
Tracking_5X.dll_bw_hz=1.5;
Tracking_5X.extend_correlation_symbols=20
Tracking_5X.pll_bw_narrow_hz=5.0;
Tracking_5X.dll_bw_narrow_hz=0.5;
Tracking_5X.early_late_space_chips=0.5;
Tracking_5X.early_late_space_narrow_chips=0.1;
Tracking_5X.fll_bw_hz=4.0
Tracking_5X.enable_fll_pull_in=true;
Tracking_5X.enable_fll_steady_state=false
Tracking_5X.dump=false
Tracking_5X.dump_filename=./tracking_ch_QZSS L5 signal tracking
Implementation: QZSS_L5_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | QZSS_L5_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the pilot signal L5Q and enables an extra prompt correlator (slave to pilot’s prompt) in the data component L5I. If set to false, the receiver performs correlations on a data length of 1 ms over the L5I component. This parameter defaults to true. | Optional |
keep_phase_at_secondary_lock | [true, false]: If set to true and track_pilot=true, the carrier keeps the phase that it had when the secondary code of the pilot was synchronized, instead of moving by half a cycle to the polarity of the pilot, and the half-cycle ambiguity is left to the Telemetry Decoder (see Discriminators). It defaults to false. Only present in the next branch. | Optional |
extend_correlation_symbols | If track_pilot=true, sets the number of correlation symbols to be extended after the secondary code is removed from the pilot signal, in number of symbols. Each symbol is 1 ms, so setting this parameter to 25 means a coherent integration time of 25 ms. The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after bit synchronization, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after the secondary code lock, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Early and Prompt and between Prompt and Late correlators after removal of the secondary code , normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, this parameter sets the base name of the files in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: QZSS_L5_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR QZSS L5 CHANNELS ############
Tracking_J5.implementation=QZSS_L5_DLL_PLL_Tracking
Tracking_J5.item_type=gr_complex
Tracking_J5.track_pilot=true
Tracking_J5.pll_bw_hz=20.0;
Tracking_J5.dll_bw_hz=1.5;
Tracking_J5.extend_correlation_symbols=20
Tracking_J5.pll_bw_narrow_hz=6.0
Tracking_J5.dll_bw_narrow_hz=0.5
Tracking_J5.enable_fll_pull_in=true
Tracking_J5.enable_fll_steady_state=false
Tracking_J5.fll_bw_hz=4.0
Tracking_J5.early_late_space_chips=0.5;
Tracking_J5.early_late_space_narrow_chips=0.1;
Tracking_J5.dump=false
Tracking_J5.dump_filename=./tracking_ch_BeiDou B2a signal tracking
The BeiDou B2a signal (GNSS-SDR identifier 5D), transmitted by BeiDou-3 MEO
and IGSO satellites and centered at MHz, is
composed of a data component carrying the B-CNAV2 navigation message and a
pilot component, in phase quadrature and with equal power, both modulated with
BPSK(10). Both components use ranging codes of chips transmitted
at Mchip/s (thus with a period of ms). The data component
is further modulated by a -chip secondary code (00010) at
kchip/s, so each B-CNAV2 symbol spans ms, and the pilot component by a
-chip secondary code (a truncated Weil code of length ,
different for each satellite) at kchip/s.
Implementation: BEIDOU_B2A_DLL_PLL_Tracking
By default, this implementation tracks the pilot component of the B2a signal,
and an extra prompt correlator on the data component, slave to the pilot’s
prompt, provides the ms correlator outputs delivered to the
Telemetry Decoder.
After the pull-in stage, the Tracking block synchronizes with the
-chip pilot secondary code, which must be achieved within
bit_synchronization_time_limit_s. Once the secondary code is removed, the
coherent integration time can be extended with extend_correlation_symbols,
in which case the narrow loop bandwidths and correlator spacing are applied.
If track_pilot=false, this implementation tracks the data component instead,
with a coherent integration time of one code period ( ms). Its
-chip secondary code is wiped off by the Telemetry Decoder, so there is
no secondary code synchronization in the Tracking block, and neither extended
coherent integration nor the narrow loop parameters are used.
In both cases, the data component prompt correlator outputs are delivered to the Telemetry Decoder from the beginning of the pull-in stage, where the -chip secondary code is wiped off and the B-CNAV2 frame synchronization is performed, so that navigation data decoding can start without waiting for the pull-in time to elapse.
Tracking of the pilot component is only present in
the next branch of the upstream repository, and will be included in the next
GNSS-SDR stable release. GNSS-SDR v0.0.22 only tracks the data component.
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | BEIDOU_B2A_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the pilot component (Q) and enables an extra prompt correlator (slave to pilot’s prompt) in the data component (I), whose outputs are delivered to the Telemetry Decoder. If set to false, the receiver performs correlations on a data length of 1 ms over the data component. It defaults to true. In GNSS-SDR v0.0.22, only the data component can be tracked: setting this parameter to true prints a warning and the data component is tracked anyway, and it defaults to false. | Optional |
keep_phase_at_secondary_lock | [true, false]: If set to true and track_pilot=true, the carrier keeps the phase that it had when the secondary code of the pilot was synchronized, instead of moving by half a cycle to the polarity of the pilot, and the half-cycle ambiguity is left to the Telemetry Decoder (see Discriminators). It defaults to false. Only present in the next branch. | Optional |
extend_correlation_symbols | If track_pilot=true, sets the number of correlation symbols to be extended after the pilot secondary code is removed, in number of symbols. Each symbol is 1 ms, so setting this parameter to 20 means a coherent integration time of 20 ms. The higher this parameter is, the better local clock stability will be required. If track_pilot=false, coherent integration is limited to code period ( ms), since the synchronization with the -chip secondary code of the data component is performed by the Telemetry Decoder, and values greater than 1 are clamped back to 1 with a warning. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after the secondary code lock, in Hz. Only used if track_pilot=true and extend_correlation_symbols 1. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after the secondary code lock, in Hz. Only used if track_pilot=true and extend_correlation_symbols 1. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Early and Prompt and between Prompt and Late correlators after removal of the pilot secondary code, normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
Tracking implementation: BEIDOU_B2A_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR BeiDou B2a CHANNELS ############
Tracking_5D.implementation=BEIDOU_B2A_DLL_PLL_Tracking
Tracking_5D.item_type=gr_complex
Tracking_5D.track_pilot=true
Tracking_5D.pll_bw_hz=15.0
Tracking_5D.dll_bw_hz=2.0
Tracking_5D.pull_in_time_s=1
Tracking_5D.extend_correlation_symbols=20
Tracking_5D.pll_bw_narrow_hz=8.0
Tracking_5D.dll_bw_narrow_hz=1.5
Tracking_5D.dump=false
Tracking_5D.dump_filename=./tracking_ch_BeiDou B3I signal tracking
Implementation: BEIDOU_B3I_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | BEIDOU_B3I_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
extend_correlation_symbols | Sets the number of correlation symbols to be extended after bit synchronization has been achieved. Each symbol is 1 ms, so setting this parameter to 20 means a coherent integration time of 20 ms. Each bit is 20 ms, so the value of this parameter must be a divisor of it (e.g., 2, 4, 5, 10, 20). The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after bit synchronization, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after bit synchronization, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period , after bit synchronization. It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, this parameter sets the base name of the files in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: BEIDOU_B3I_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR BeiDou B3I CHANNELS ############
Tracking_B3.implementation=BEIDOU_B3I_DLL_PLL_Tracking
Tracking_B3.item_type=gr_complex
Tracking_B3.pll_bw_hz=20.0;
Tracking_B3.dll_bw_hz=1.5;
Tracking_B3.extend_correlation_symbols=20
Tracking_B3.pll_bw_narrow_hz=6.0
Tracking_B3.dll_bw_narrow_hz=0.5
Tracking_B3.enable_fll_pull_in=true
Tracking_B3.enable_fll_steady_state=false
Tracking_B3.fll_bw_hz=4.0
Tracking_B3.early_late_space_chips=0.5;
Tracking_B3.early_late_space_narrow_chips=0.1;
Tracking_B3.dump=false
Tracking_B3.dump_filename=./tracking_ch_Galileo E5b signal tracking
Implementation: Galileo_E5b_DLL_PLL_Tracking
This implementation accepts the following parameters:
| Global Parameter | Description | Required |
|---|---|---|
GNSS-SDR.internal_fs_sps | Input sample rate to the processing channels, in samples per second. | Mandatory |
| Parameter | Description | Required |
|---|---|---|
implementation | Galileo_E5b_DLL_PLL_Tracking | Mandatory |
item_type | [gr_complex]: Set the sample data type expected at the block input. It defaults to gr_complex. | Optional |
track_pilot | [true, false]: If set to true, the receiver is set to track the pilot signal E5bQ and enables an extra prompt correlator (slave to pilot’s prompt) in the data component E5bI. If set to false, the receiver performs correlations on a data length of 1 ms over the E5bI component. This parameter defaults to true. | Optional |
keep_phase_at_secondary_lock | [true, false]: If set to true and track_pilot=true, the carrier keeps the phase that it had when the secondary code of the pilot was synchronized, instead of moving by half a cycle to the polarity of the pilot, and the half-cycle ambiguity is left to the Telemetry Decoder (see Discriminators). It defaults to false. Only present in the next branch. | Optional |
extend_correlation_symbols | If track_pilot=true, sets the number of correlation symbols to be extended after the secondary code is removed from the pilot signal, in number of symbols. Each symbol is 1 ms, so setting this parameter to 25 means a coherent integration time of 25 ms. The higher this parameter is, the better local clock stability will be required. It defaults to 1. | Optional |
pll_bw_hz | Bandwidth of the PLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pll_bw_narrow_hz | Bandwidth of the PLL low-pass filter after the secondary code lock, in Hz. It defaults to 5 Hz. | Optional |
pll_filter_order | [2, 3]. Sets the order of the PLL low-pass filter. It defaults to 3. | Optional |
dll_bw_hz | Bandwidth of the DLL low-pass filter, in Hz. It defaults to 2 Hz. | Optional |
dll_bw_narrow_hz | Bandwidth of the DLL low-pass filter after the secondary code lock, in Hz. It defaults to 0.75 Hz. | Optional |
dll_filter_order | [1, 2, 3]. Sets the order of the DLL low-pass filter. It defaults to 2. | Optional |
enable_fll_pull_in | [true, false]. If set to true, enables the FLL during the pull-in time. It defaults to false. | Optional |
enable_fll_steady_state | [true, false]. If set to true, the FLL is enabled beyond the pull-in stage. It defaults to false. | Optional |
fll_bw_hz | Bandwidth of the FLL low-pass filter, in Hz. It defaults to 35 Hz. | Optional |
pull_in_time_s | Time, in seconds, in which the tracking loop will be in pull-in mode. It defaults to 5 s. | Optional |
bit_synchronization_time_limit_s | Time limit, in seconds, for achieving bit or secondary code synchronization. If synchronization is not achieved within this time, the channel declares a loss of lock. It defaults to 20 s. | Optional |
f_error_step_num | Number of Doppler bins tested by the frequency-error reduction scan run after the pull-in stage, centered on the Doppler estimate provided by the Acquisition block. Even values are rounded up to the next odd number. It defaults to 0 (scan disabled). See Frequency-error reduction scan for availability, tradeoffs, and interactions. | Optional |
f_error_doppler_step | Spacing between consecutive Doppler bins of the frequency-error reduction scan, in Hz. Only used if f_error_step_num 0. It defaults to 250 Hz. | Optional |
f_error_accumulation | Number of code periods over which the Prompt correlator power is non-coherently accumulated in each Doppler bin of the frequency-error reduction scan. Only used if f_error_step_num 0; a value of 0 is replaced by 1. It defaults to 20. | Optional |
f_error_dump | [true, false]: If set to true, the results of each frequency-error reduction scan are written to the CSV file set by f_error_dump_filename. Only used if f_error_step_num 0. It defaults to false. | Optional |
f_error_dump_filename | Name of the CSV file in which the results of each frequency-error reduction scan are written. Only used if f_error_dump=true and f_error_step_num 0. It defaults to ./f_error_dump.csv. | Optional |
early_late_space_chips | Spacing between Early and Prompt and between Prompt and Late correlators, normalized by the chip period . It defaults to . | Optional |
early_late_space_narrow_chips | If track_pilot=true and extend_correlation_symbols 1, sets the spacing between Early and Prompt and between Prompt and Late correlators after removal of the secondary code , normalized by the chip period . It defaults to . | Optional |
carrier_aiding | [true, false]. If set to true, the code loop is aided by the carrier loop. It defaults to true. | Optional |
high_dyn | [true, false]: If set to true, the code and carrier phase rates are estimated and compensated in the local replicas, improving tracking in high-dynamics scenarios. It defaults to false. | Optional |
smoother_length | If high_dyn=true, number of samples used to smooth the estimations of the code and carrier phase rates. It defaults to 10. | Optional |
cn0_samples | Number of correlator outputs used for CN0 estimation. It defaults to 20. | Optional |
cn0_min | Minimum valid CN0 (in dB-Hz). It defaults to 25 dB-Hz. | Optional |
max_lock_fail | Maximum number of lock failures before dropping a satellite. It defaults to 50. | Optional |
max_carrier_lock_fail | Maximum number of carrier lock failures before dropping a satellite. It defaults to 5000. | Optional |
carrier_lock_th | Carrier lock threshold , compared with the estimate of (see Carrier lock detector). It defaults to . | Optional |
cn0_smoother_samples | Number of samples used to smooth the value of the estimated . It defaults to 200 samples. | Optional |
cn0_smoother_alpha | Forgetting factor of the smoother, as in . It defaults to 0.002. | Optional |
carrier_lock_test_smoother_samples | Number of samples used to smooth the value of the carrier lock test. It defaults to 25 samples. | Optional |
carrier_lock_test_smoother_alpha | Forgetting factor of the carrier lock detector smoother, as in . It defaults to 0.002. | Optional |
dump | [true, false]: If set to true, it enables the Tracking internal binary data file logging, in form of “.dat” files. This format can be retrieved and plotted in Matlab / Octave, see scripts under gnss-sdr/utils/matlab/. It defaults to false. | Optional |
dump_filename | If dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./dll_pll_dump.dat, so files in the form “./dll_pll_dumpX.dat”, where X is the channel number, will be generated. | Optional |
dump_mat | [true, false]. If dump=true, when the receiver exits it can convert the “.dat” files stored by this block into “.mat” files directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so “.mat” files are generated by default if dump=true. | Optional |
dump_every_code_period | [true, false]: If dump=true, the dump file keeps one record per code period after symbol synchronization, instead of one record per symbol (see Plotting results with MATLAB/Octave). It defaults to false. Only present in the next branch. | Optional |
Tracking implementation: Galileo_E5b_DLL_PLL_Tracking.
Example:
;######### TRACKING CONFIG FOR GALILEO E5b CHANNELS ############
Tracking_7X.implementation=Galileo_E5b_DLL_PLL_Tracking
Tracking_7X.item_type=gr_complex
Tracking_7X.track_pilot=true
Tracking_7X.pll_bw_hz=20.0;
Tracking_7X.dll_bw_hz=1.5;
Tracking_7X.extend_correlation_symbols=20
Tracking_7X.pll_bw_narrow_hz=5.0;
Tracking_7X.dll_bw_narrow_hz=0.5;
Tracking_7X.early_late_space_chips=0.5;
Tracking_7X.early_late_space_narrow_chips=0.1;
Tracking_7X.fll_bw_hz=4.0
Tracking_7X.enable_fll_pull_in=true;
Tracking_7X.enable_fll_steady_state=false
Tracking_7X.dump=false
Tracking_7X.dump_filename=./tracking_ch_Plotting results with MATLAB/Octave
If dump=true and dump_mat=true (the default), the DLL/PLL Tracking block
implementations store the intermediate results of each channel in MATLAB Level
5 MAT-file
v7.3 file
format (.mat files), which can be opened in MATLAB/Octave.
The list of output vector variables contained in each .mat file is the following:
abs_E: Magnitude of the Early correlator.abs_L: Magnitude of the Late correlator.abs_P: Magnitude of the Prompt correlator.abs_VE: Magnitude of the Very Early correlator.abs_VL: Magnitude of the Very Late correlator.acc_carrier_phase_rad: Accumulated carrier phase, in rad.aux1: not used.aux2: not used.carr_error_filt_hz: Carrier error at the output of the PLL filter, in Hz.carr_error_hz: Raw carrier error (unfiltered) at the PLL output, in Hz.carrier_doppler_hz: Doppler shift, in Hz.carrier_doppler_rate_hz: Doppler rate, in Hz/s.carrier_lock_test: Output of the carrier lock test.CN0_SNV_dB_Hz: estimation, in dB-Hz.code_error_chips: Raw code error (unfiltered) at the DLL output, in chips.code_error_filt_chips: Code error at the output of the DLL filter, in chips.code_freq_chips: Code frequency, in chips/s.code_freq_rate_chips: Code frequency rate, in chips/s.PRN: Satellite ID.PRN_start_sample_count: Sample counter from tracking start.Prompt_I: Value of the Prompt correlator in the In-phase component.Prompt_Q: Value of the Prompt correlator in the Quadrature component.TOW_ms: Time of Week, in milliseconds, when available from the Telemetry Decoder block. RequiresGNSS-SDR.tow_to_trk=truein the GNSS-SDR configuration file, otherwise it is set to zero.WN: Week number, when available from the Telemetry Decoder block. RequiresGNSS-SDR.tow_to_trk=truein the GNSS-SDR configuration file, otherwise it is set to zero.
Each variable is a vector with one element per record of the dump file. A record is written for every code period until the navigation bits or the secondary code are synchronized, and for every symbol from then on, so the correlator outputs of the code periods inside a symbol (for instance, each of the 20 code periods of a GPS L1 C/A bit) are not stored.
If the parameter dump_every_code_period is set to true, a record is also
written for every code period after that synchronization. In the added records:
Prompt_IandPrompt_Qare the outputs of the Prompt correlator for that code period.abs_E,abs_P,abs_L,abs_VE, andabs_VLare the magnitudes of the correlator outputs accumulated up to that code period in the ongoing coherent integration.PRN_start_sample_countandacc_carrier_phase_radare updated for every code period.- The outputs of the discriminators and the loop filters, the estimation, and the carrier lock test keep the values of the last update of the tracking loops.
The format of the records does not change, so the same scripts can be used, and
the processing is not affected: the only differences are the size of the dump
files and the time needed to write them. This parameter defaults to false,
and it has no effect on GPS L1C, GPS L2CM, Galileo E1, Galileo E6, BeiDou B1C,
BeiDou B2a, and SBAS L1 signals, for which a record is always written for every
code period. This parameter is only present in the
next branch of the upstream repository, and will be included in the next
GNSS-SDR stable release.
Example:
Assuming that you are processing GPS L1 C/A signals, and you have included the following lines in your configuration file:
Tracking_1C.implementation=GPS_L1_CA_DLL_PLL_Tracking
;... (other parameters) ...
Tracking_1C.dump=true
Tracking_1C.dump_filename=./trk_dumpThen, after the processing, you will get a list of .mat files (in this case,
./trk_dump0.mat, ./trk_dump1.mat, etc., up to the number of channels)
storing the intermediate results obtained by the Tracking blocks.
Some Matlab/Octave plotting script examples are available from
src/utils/matlab.
For instance, the
dll_pll_veml_plot_sample.m
script just requires the modification of the samplingFreq, channels,
tracking_log_path, and path variables to get a set of figures with the main
tracking results for each channel.
Tracking results for a given channel.
References
[^Proakis]: J. G. Proakis and M. Salehi, Digital Communications, 5th Ed., New York: McGraw-Hill, 2008. [^Pauluzzi00]: D. R. Pauluzzi and N. C. Beaulieu, A comparison of SNR estimation techniques for the AWGN channel, IEEE Transactions on Communications, Vol. 48, no. 10, pp 1681-1691, Oct. 2000. [^Kaplan17]: E. D. Kaplan and C. J. Hegarty, Eds., Understanding GPS. Principles and Applications, 3rd edition, Artech House, Norwood, MA, 2017. [^Fernandez]: C. Fernández-Prades, J. Arribas, L. Esteve-Elfau, D. Pubill, P. Closas, An Open Source Galileo E1 Software Receiver, in Proceedings of the 6th ESA Workshop on Satellite Navigation Technologies (NAVITEC 2012), 5-7 December 2012, ESTEC, Noordwijk, The Netherlands. [^Petovello10]: M. Petovello, E. Falletti, M. Pini, L. Lo Presti, Are Carrier-to-Noise algorithms equivalent in all situations?. Inside GNSS, Vol. 5, no. 1, pp. 20-27, Jan.-Feb. 2010. [^Dierendonck]: A. J. Van Dierendonck, “GPS Receivers”, from Global Positioning System: Theory and Applications, Volume I, Edited by B. W. Parkinson and J. J. Spilker Jr., American Institute of Aeronautics and Astronautics, 1996.