discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Using USRP Clock for Timers


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Using USRP Clock for Timers
Date: Wed, 8 Jun 2016 22:30:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

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
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]