Change in gr-gsm[master]: trx/radio_if.py: reset UHD device time at startup

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri Aug 10 08:20:41 UTC 2018


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 <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180810/b3bdfe90/attachment.htm>


More information about the gerrit-log mailing list