Merge branch 'next' into joebre-evk1029-shm-pr-v2

Resolve the CHANGELOG conflict, and fix the EVK1029 shared-memory input
on top of the merge:

- In shared-memory mode, Evk1029SignalSource is real-time and cannot
  wait, so the deterministic mode refuses it and the Signal Conditioner
  no longer plans it as an unthrottled replay. Read
  shm_stop_on_buffer_overflow only on Linux, avoiding an unused variable
  warning elsewhere.
- Stopping the receiver no longer hangs when EVK1029_CtrlApp is idle,
  has crashed or has been restarted. ReadBlock() waits at most 100 ms at
  a time, RawStreamReader::read() then returns to its caller (see
  end_of_stream()), and Evk1029Source releases a decode worker waiting
  for data when GNU Radio stops the flowgraph. The stream ends if the
  producer publishes nothing for SignalSource.shm_stall_timeout_s
  seconds (default 5, 0 waits forever).
- request_stop() bumps data_event before waking the reader, and
  ReadBlock() takes its snapshot of data_event before checking the stop
  flag, the ring and the stream state, so that no wake-up is lost.
- Count overflows and producer silence from the first sample read, not
  from the attach: nothing reads the ring while the flowgraph is built,
  so shm_stop_on_buffer_overflow=true stopped the receiver at startup.

Update the CHANGELOG entry with the actual parameter names and the new
shm_stall_timeout_s parameter.
This commit is contained in:
Carles Fernandez committed 2026-10-27 12:27:16 +01:00
commit 5ce2f5ad2f
114 files changed
+5226 -937

No files matched your search

+100 -3
View File
@@ -69,6 +69,16 @@ All notable changes to GNSS-SDR will be documented in this file.
built with `-DENABLE_CUDA=ON`, `band<n>_cuda=true` computes that band's filter
on an NVIDIA GPU, falling back to the CPU if no device is available or a GPU
call fails. Contributed by @joebre.
- `ION_GSMS_Signal_Source` resolves the decoding parameters of each stream once
instead of for every chunk, which removes string comparisons and memory
allocations from the per-sample path, and decodes one-byte chunks through a
256-entry lookup table. The decoded samples are unchanged. A four-band 2-bit
capture at 53 Msps now runs about 15 times faster, as fast as with
`NTLab_File_Signal_Source`. The source also asks the scheduler for room for at
least one whole chunk cycle. Before, when it was offered less (for instance,
one item for complex streams, or fewer than the 20 samples of a 5-byte IFEN
chunk), it produced nothing and GNU Radio polled it again only after 250 ms,
which could stall a file replay for seconds.
### Improvements in Interoperability:
@@ -81,6 +91,86 @@ All notable changes to GNSS-SDR will be documented in this file.
multiple of 24 bytes). Also, `seconds_to_skip` no longer lands in the middle
of a frame when channels have bandwidth dividers that are not powers of two.
### Improvements in Reliability:
- The SUPL client now verifies the server certificate and DNS name or IP address
with OpenSSL and GnuTLS. It rejects assistance data that exceeds the
fixed-size acquisition, almanac, or ephemeris arrays, including across
multiple responses, and discards partial assistance on failure. SUPL framing
and malformed RRLP payload handling have also been hardened. Reported by Harry
Burgess of Countersight.
- Fixed a heap buffer overflow in `Galileo_E1_PCPS_8ms_Ambiguous_Acquisition`.
The block always correlates with two local replicas that span two code
periods, but its coherent integration time defaulted to one code period (4
ms), so every local code load read and wrote 4 ms of samples beyond the end of
its buffers. This corrupted the heap and randomly crashed the receiver at
startup, during processing, or at exit. The coherent integration time of this
implementation is now always 8 ms.
- Fixed `GPS_L1_CA_PCPS_OpenCl_Acquisition` with more than one dwell
(`Acquisition_1C.max_dwells` greater than 1, or
`Acquisition_1C.bit_transition_flag=true`). The block read its second and
later dwells from input ports that do not exist, which crashed the receiver
right after the first search started. Also fixed races between the block and
the worker thread that processes its dwells: a new search could start while
the previous one was still being processed, and a stopped search could still
report a result.
- Fixed the fail-safes of the DLL/PLL VEML (CPU and FPGA) and KF tracking
implementations that force a loss of lock: the bit or secondary code
synchronization time limit (`Tracking_XX.bit_synchronization_time_limit_s`)
and the telemetry fault sent by the telemetry decoders when they stop finding
valid frames. They no longer dropped the channel when
`Tracking_XX.max_carrier_lock_fail` was set above 300000 or 200000,
respectively, so a false lock that the carrier lock test did not drop kept its
channel until the end of the run.
### Improvements in Reproducibility:
- Added a deterministic processing mode for recorded signals
(`GNSS-SDR.deterministic=true`, default: `false`). Processing the same file
twice was not repeatable, even with `Acquisition_XX.blocking=true`: the
control thread started acquisitions, assigned satellites and applied channel
events at whatever sample each block had reached, and the observables and PVT
blocks applied each other's messages (navigation data, receiver clock
corrections) whenever they arrived. Thread timing then changed the
satellite-to-channel assignment, the first sample of every search and pull-in,
the epoch of the first fix, and the end of the outputs. In this mode, events
and messages carry the sample at which they happened, the control thread
handles channel events in sample order, and every action they cause takes
effect at a sample that depends only on those stamps. Channel actions take
effect a fixed lookahead later (`GNSS-SDR.deterministic_lookahead_ms`,
default: 100 ms), and a gate at the output of the Signal Conditioner keeps the
stream from running further ahead. Maintenance tasks run every
`GNSS-SDR.deterministic_tick_ms` (default: 100 ms) of signal instead of every
100 ms of wall-clock time, and the receiver stops only when the whole input
has gone through the PVT. Tracking, telemetry, observables and PVT dumps, and
RINEX, NMEA, KML, GPX and GeoJSON files, are then bit-identical from run to
run (except for the creation time written in the RINEX, KML and GPX headers),
whatever the CPU load, with `Acquisition_XX.blocking` set to either value, as
long as the machine, its FFTW wisdom (GNU Radio plans its FFTs with
`FFTW_MEASURE`) and its VOLK configuration do not change. The mode supports
all the acquisition implementations except the assisted and FPGA ones; the
DLL/PLL VEML, KF and Gaussian tracking implementations; and the signal sources
that read files, throttled or not (including LabSat, EVK1029 and ION GNSS SDR
metadata recordings). It refuses radio front ends and network or named-pipe
(`Fifo_Signal_Source`) inputs, whose samples could be lost while the stream is
held back, FPGA offloading, visibility-aware search, GNSS assistance, an
explicit `GNSS-SDR.assist_dual_frequency_acq=true`,
`GNSS-SDR.osnma_mode=strict`, Galileo HAS corrections
(`PVT.use_has_corrections=true`, the default with Galileo E6 channels) and
NTRIP corrections (`PVT.ntrip_client_enabled=true`), whose effects the PVT
applies when the messages arrive, Galileo E6 channels together with Galileo
E1, E5a or E5b channels, whose time of week reaches the E6 telemetry decoders
when it arrives, `Acquisition_XX.blocking_on_standby=true`, a lookahead that
is not positive, a control tick below 1 ms, and lookaheads that leave the
observables block no margin (220 ms with the default
`GNSS-SDR.observable_interval_ms`). Multiband configurations do not use
dual-frequency acquisition assistance in this mode, and the receiver does not
stop channels that track a satellite already tracked in another channel, since
both decisions depend on the live tracking status. With
`GNSS-SDR.tow_to_trk=true`, the DLL/PLL VEML tracking blocks do not compute
the TOW and week number, since the telemetry messages would reach them at a
timing-dependent sample.
### Improvements in Usability:
- Fixed the Monitor (`Monitor.enable_monitor=true`) for channels without a valid
@@ -93,9 +183,16 @@ All notable changes to GNSS-SDR will be documented in this file.
is locked, instead of after its time of week is decoded.
- `EVK1029_Signal_Source` can now read directly from a live shared-memory stream
published by EVK1029_CtrlApp, instead of only a recorded capture file. Set
`EVK1029_Signal_Source.input=shared_memory` and, optionally,
`EVK1029_Signal_Source.shm_name` (default `/evk1029_stream`). Linux only.
Contributed by @joebre.
`SignalSource.input=shared_memory` and, optionally, `SignalSource.shm_name`
(default `/evk1029_stream`). The stream ends if EVK1029_CtrlApp publishes
nothing for `SignalSource.shm_stall_timeout_s` seconds (default 5, 0 waits
forever) and, with `SignalSource.shm_stop_on_buffer_overflow=true`, when it
reports a buffer overflow. Linux only. Contributed by @joebre.
- The accumulated carrier phase is now stored as a `double` in the tracking
dumps (binary and `.mat`) of all tracking implementations, instead of a
`float` whose resolution drops to 0.0625 rad at 10^6 rad. Each binary record
is now 4 bytes longer, and the MATLAB and Python readers in `utils/` are
updated accordingly.
See the definitions of concepts and metrics at
https://gnss-sdr.org/design-forces/