[TangerineSDR] [EXTERNAL] Simple question regarding time stamps

Phil Erickson phil.erickson at gmail.com
Tue Sep 22 19:04:41 EDT 2020


Hi Bill,

 Yes, that is the approach that we have had good success with in the past.
Our Ettus based data acquisition scheme used in the software radar at
Haystack does the same kind of arm/proceed on the next 1 PPS edge.

73
Phil W1PJE

On Tue, Sep 22, 2020 at 5:22 PM Engelke, Bill via TangerineSDR <
tangerinesdr at lists.tapr.org> wrote:

> Hello Phil:
> This could be the subject of a week-long workshop; but I will tell you how
> I have been coding it so far, using something that works nicely with DRF as
> it is today.
>
>
>
> When the user tells the system to start data acquisition, the Data Engine
> is to wait until the exact top of the next second to begin collecting data
> (plus or minus a few nanoseconds, anyway). Then, the unix time is passed as
> a uint_32 (unix time being an integer second like 1633795200, which is
> about 4 PM today). I plug that into the global_start_sample in
> digital_rf_create_write_hdf5 (as modified by sample rate numerator &
> denominator, which usually work out to 1). This single time stamp is used
> from then on, assuming that the DE clock is totally accurate. I think this
> is what you describe in your email; I like the simplicity of this, and I
> hope we can continue to use it.
>
>
>
> -regards- Bill AB4EJ
>
>
>
> *From:* TangerineSDR <tangerinesdr-bounces at lists.tapr.org> *On Behalf Of *Phil
> Erickson via TangerineSDR
> *Sent:* Tuesday, September 22, 2020 10:13 AM
> *To:* TAPR TangerineSDR Modular Software Defined Radio <
> tangerinesdr at lists.tapr.org>
> *Cc:* Phil Erickson <phil.erickson at gmail.com>
> *Subject:* [EXTERNAL] [TangerineSDR] Simple question regarding time stamps
>
>
>
> Hi all,
>
>
>
>   Instead of searching through my cluttered inbox, I thought I'd ask a
> question about time stamps in the PSWS architecture: are these stored as
> floats/doubles or as integers?
>
>
>
>   I ask because we at Haystack (specifically Ryan Volz) have just run into
> yet another "doesn't port to architecture XXX" problem / regression test
> failure with a time stamp stored as a double in a DigitalRF implementation
> (on a RPi - 32 vs 64 bit), so I wanted to remind myself of what had been
> decided here.  Our strong experience is that doing integer time stamps is
> greatly preferred because it has much less risk and is more future-proof.
> Digital RF for example uses integer ratios (M / N) for encoding of
> fractional sample rates for this very reason.
>
>
>
>   I'm sure this has been discussed already, so if someone can point me to
> the particular place in the spec, that would be great.
>
>
>
> 73
>
> Phil W1PJE
>
>
>
> --
>
> ----
> Phil Erickson
> phil.erickson at gmail.com
> --
> TangerineSDR mailing list
> TangerineSDR at lists.tapr.org
> http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org
>


-- 
----
Phil Erickson
phil.erickson at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/tangerinesdr_lists.tapr.org/attachments/20200922/167ee0f0/attachment-0001.html>


More information about the TangerineSDR mailing list