From e60a10bbdc85d80abb7e1a3ab6bb5813f14ec69f Mon Sep 17 00:00:00 2001 From: joebre Date: Thu, 12 Nov 2026 16:48:58 +0100 Subject: [PATCH] Skip the metadata header of EVK1029 recordings EVK1029_CtrlApp writes a 16 KiB metadata header at the start of every recording. In file mode, EVK1029_Signal_Source now starts reading after it instead of decoding it as samples. seconds_to_skip is counted from the end of the header. Signed-off-by: joebre --- docs/CHANGELOG.md | 3 +++ .../signal_source/adapters/evk1029_signal_source.cc | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 3bfef74ed..469feb111 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -246,6 +246,9 @@ All notable changes to GNSS-SDR will be documented in this file. 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. +- `EVK1029_Signal_Source` now skips the 16 KiB metadata header that + EVK1029_CtrlApp writes at the start of every recording, instead of decoding it + as samples. `SignalSource.seconds_to_skip` counts from the end of the header. - 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 diff --git a/src/algorithms/signal_source/adapters/evk1029_signal_source.cc b/src/algorithms/signal_source/adapters/evk1029_signal_source.cc index a05aa0c11..396f207cd 100644 --- a/src/algorithms/signal_source/adapters/evk1029_signal_source.cc +++ b/src/algorithms/signal_source/adapters/evk1029_signal_source.cc @@ -246,7 +246,9 @@ Evk1029SignalSource::Evk1029SignalSource( } else { - reader = std::make_unique(filename, bytes_to_skip); + // Recordings start with a metadata header written by EVK1029_CtrlApp + constexpr uint64_t record_header_bytes = 16384; + reader = std::make_unique(filename, record_header_bytes + bytes_to_skip); } evk1029_source_ = evk1029_make_source(std::move(reader), queue, static_cast(fs), freq_xlating_bands);