Change in gr-gsm[master]: trx/ctrl_if_bb.py: reset transceiver on POWEROFF

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
Sat Jan 19 04:37:14 UTC 2019


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


Change subject: trx/ctrl_if_bb.py: reset transceiver on POWEROFF
......................................................................

trx/ctrl_if_bb.py: reset transceiver on POWEROFF

Change-Id: I1e7f74c56388a431794a0b32b8a9537c360f5d33
---
M python/trx/ctrl_if_bb.py
M python/trx/radio_if.py
2 files changed, 9 insertions(+), 0 deletions(-)



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

diff --git a/python/trx/ctrl_if_bb.py b/python/trx/ctrl_if_bb.py
index f9840d4..0e194d0 100644
--- a/python/trx/ctrl_if_bb.py
+++ b/python/trx/ctrl_if_bb.py
@@ -63,6 +63,9 @@
 				self.tb.stop()
 				self.tb.wait()
 
+			# POWEROFF is also used to reset transceiver
+			self.tb.reset()
+
 			return 0
 
 		# Gain control
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py
index e15add2..ed5a8de 100644
--- a/python/trx/radio_if.py
+++ b/python/trx/radio_if.py
@@ -269,6 +269,12 @@
 
 		return True
 
+	def reset(self):
+		# TODO: do we need to reset both RX / TX freq.?
+		# self.rx_freq = None
+		# self.tx_freq = None
+		self.set_ta(0)
+
 	def calc_phase_inc(self, fc):
 		return self.ppm / 1.0e6 * 2 * pi * fc / self.sample_rate
 

-- 
To view, visit https://gerrit.osmocom.org/12634
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: I1e7f74c56388a431794a0b32b8a9537c360f5d33
Gerrit-Change-Number: 12634
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/20190119/b3704393/attachment.htm>


More information about the gerrit-log mailing list