|
From: | Josh Blum |
Subject: | Re: [Discuss-gnuradio] Delay of synchronization with PPS and UHD on USRP2 |
Date: | Fri, 21 May 2010 22:49:33 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9pre) Gecko/20100217 Shredder/3.0.3pre |
When performing set_time_next_pps(...) you will want a sleep(1) prior to starting streaming. Because it could take as much as 1 second for the registers to latch the new time value.Yes, I have used sleep(1) commmand after I call set_time_next_pps() function. The problem is that if I replace the mode " STREAM_MODE_NUM_SAMPS_AND_DONE" with " STREAM_MODE_START_CONTINUOUS ",it works. The rest of code is same.
Ok, just checking. I will try to reproduce the problem on monday. Two more questions:1) When you used STREAM_MODE_NUM_SAMPS_AND_DONE, was there a time set, and if so, was it greater than the time set by set_time_next_pps?
2) When you used STREAM_MODE_START_CONTINUOUS, did the timestamps on the RX packets appear to be correct (after the time set by set_time_next_pps)?
Thanks, -Josh
[Prev in Thread] | Current Thread | [Next in Thread] |