f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.93k stars 445 forks source link

Higher resolution timestamp in .sdriq format #980

Closed ChiefGokhlayeh closed 3 years ago

ChiefGokhlayeh commented 3 years ago

I was wondering if we could increase the resolution of the FileRecord timestamp to milliseconds. https://github.com/f4exb/sdrangel/blob/14e75232df072a250ac5e8888e804fdb37439f80/sdrbase/dsp/filerecord.h#L40 Currently it's defined as a 64-bit integer which stores a UNIX timestamp in seconds resolution. Is there some specific reasoning behind that?

The change in code is fairly trivial, but I know changing a file-format once it's established is not. I'd still like to encourage a discussion about it.

Context: In my use-case I want to synchronize two recordings from two separate coherent receivers. The signal I'm capturing (LTE-based 5G Broadcast) provides a synchronization sequence in 40ms intervals, which I'm able to decode. But the current timestamp resolution makes synchronizing across 1sec-boundaries unnecessarily hard.

ChiefGokhlayeh commented 3 years ago

Feature implemented and merged.