Vadim Yanitskiy has uploaded this change for review. ( 
https://gerrit.osmocom.org/10418


Change subject: trx/radio_if.py: reset UHD device time at startup
......................................................................

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
---
M python/trx/radio_if.py
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/18/10418/1

diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py
index 355312b..83bfffe 100644
--- a/python/trx/radio_if.py
+++ b/python/trx/radio_if.py
@@ -257,6 +257,12 @@
                        (self.dict_toggle_sign, 'dict_out'),
                        (self.msg_to_tag_sink, 'msg'))

+
+               # Some UHD devices, such as UmTRX, require one
+               # to manually reset the hardware clock
+               self.phy_src.set_time_now(uhd.time_spec(0.0))
+               self.phy_sink.set_time_now(uhd.time_spec(0.0))
+
        def shutdown(self):
                print("[i] Shutdown Radio interface")
                self.stop()

--
To view, visit https://gerrit.osmocom.org/10418
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idddc1387199bd22342ec5af25c8635e73352e315
Gerrit-Change-Number: 10418
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilira...@gmail.com>

Reply via email to