From 0017a35aabeb09f9622e8fa9d09c9f3505946754 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 3 Mar 2018 23:37:30 +0700 Subject: trx/radio_if.py: reset UHD device time at startup Some UHD devices, such as UmTRX, require one to manually reset the hardware clock, otherwise the burst transmission doesn't work. Change-Id: Idddc1387199bd22342ec5af25c8635e73352e315 --- python/trx/radio_if.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py index 355312b..119b237 100644 --- a/python/trx/radio_if.py +++ b/python/trx/radio_if.py @@ -257,6 +257,12 @@ class radio_if(gr.top_block): (self.dict_toggle_sign, 'dict_out'), (self.msg_to_tag_sink, 'msg')) + + # Some UHD devices (such as UmTRX) do start the clock + # not from 0, so it's required to reset it manually. + # Resetting UHD source will also affect the sink. + self.phy_src.set_time_now(uhd.time_spec(0.0)) + def shutdown(self): print("[i] Shutdown Radio interface") self.stop() -- cgit v1.2.3