On 2021-10-05 10:55 a.m., Huang Wei wrote:
Hi Marcus,
Initially when I create the USRP object, I synchronize USRP to
external PPS though self.usrp1.set_time_next_pps(round(time.time())+1)
method.
and in the function get_start(), I wrote like:
self.stop()
self.wait()
self.disconnect_all()
#self.usrp1.stop()
#self.usrp1.start()
self.usrp1.set_start_time(self.usrp1.get_time_now() +
uhd.time_spec_t(5))
self.connect(...)
self.connect(...)
self.connect(filesink, self.usrp1)
self.start
I wish the USRP stops, and restarts transmission 5 sec later every
time I run the get_start() function. But the USRP doesn't stop, and
will produces LLLLLLLLLL on the screen after around 5 sec. If I use
" self.usrp1.set_command_time(self.usrp1.get_time_now() +
uhd.time_spec_t(5))" instead of set_start_time(), it does stop
transmission for 5 sec and start, but it's not the correct command for
start time.
Do you have any advice how can I make it work?
I appreciate all your help!
Best regards,
Wei
I suspect that you're better off looking into tagged streams in Gnu
Radio that support "bursty" transmission:
https://www.gnuradio.org/doc/doxygen/classgr_1_1uhd_1_1usrp__sink.html
You may get more help on that from the discuss-gnuradio mailing list.
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]