Hi! I am trying to record the system boot time timestamp using
timestamp = time.clock_gettime_ns(time.CLOCK_BOOTTIME)
In which file and on which line can I add this piece of code that will give me access to the boot time timestamp as soon as the signal is captured by the device? Is there any other way to get this information? The only thing is that it needs to be exactly the time when the signal is received by the device and captured. Thanks!
The signal is first received in the acquisition code in rtl_daq.c.
I’m not sure what you’re trying to do, but you won’t get any sort of meaningful timing resolution when trying to timestamp this due to OS jitter.
I see, thank you. I need the system boot timestamp for which the music spectrum or doa value that gets calculated in kraken_sdr_signal_processor.py corresponds to. Is there a way to do that? It does not have to be accurate to the nanosecond, but would appreciate accuracy in milliseconds.
I think you’re probably looking for the latency value? This is already calculated and displayed on the dashboard. This is the time it takes from signal → DOA output, including the acquisition time.
In the event that two Kraken RX nodes are synchronized with GPS, can we assume that the acquisition timestamps (ie derived from the acquisition code) for the same signal will have maximum offset almost equal to block size?
Yes that should be a reasonable assumption. There is a few ms added for acquisition computation, but most of the computation occurs after acquisition in the DOA calculation stages.