Hi Devin,

this won't work out for the simple reason that timed commands happen in
the FPGA on the USRP, and C++ happens in your PC, and the coupling
between both is loose at best – there's always some random latency bus
(network, USB,…) between the USRP and the host, and hence, these two
clocks never agree on how fast time progresses, or how late it actually is.

Now, in my experience, things like these work out if one approaches them
differently; could you hence explain what you need to be called, and why
that has to happen at a specific "radio time" (as opposed to "CPU time")?

Best regards,
Marcus

On 08.06.2016 22:22, devin kelly wrote:
> Hello,
>
> For my applications the MAC layer of my waveform requires me to
> implement a few timers (e.g. for slot and frame times, etc).
>
> What I'd like to do is exclusively use the USRP clock for these
> timers.  I've tried mixing the system clock and the USRP clock before
> (see a few messages on this list from a few months ago) and I couldn't
> get the accuracy I needed.
>
> Is there any way to setup a callback using the USRP clock. Sort of
> like a UHD timed_command except instead of changing the gain,
> frequency, etc. I want to call some C++ function.
>
> Also, I think I could try to sync my PC clock with the USRP clock but
> it seems using "Unknown PPS" or "Don't Sync" are usually recommended
> but I don't understand why.
>
> Thanks,
> Devin
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to