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/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/6796
fake_trx: don't sent clock indications until POWERON
Change-Id: I86ccc9d26fc54e6511f74f858afdaebb2b284c19
---
M src/target/fake_trx/ctrl_if_bts.py
M src/target/fake_trx/fake_trx.py
2 files changed, 10 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/96/6796/1
diff --git a/src/target/fake_trx/ctrl_if_bts.py b/src/target/fake_trx/ctrl_if_bts.py
index 96027fe..d0a7db3 100644
--- a/src/target/fake_trx/ctrl_if_bts.py
+++ b/src/target/fake_trx/ctrl_if_bts.py
@@ -28,6 +28,7 @@
# Internal state variables
trx_started = False
burst_fwd = None
+ clck_gen = None
rx_freq = None
tx_freq = None
pm = None
@@ -62,6 +63,10 @@
if self.pm is not None:
self.pm.add_bts_list([self.tx_freq])
+ # Start clock indications
+ if self.clck_gen is not None:
+ self.clck_gen.start()
+
return 0
elif self.verify_cmd(request, "POWEROFF", 0):
@@ -74,6 +79,10 @@
if self.pm is not None:
self.pm.del_bts_list([self.tx_freq])
+ # Stop clock indications
+ if self.clck_gen is not None:
+ self.clck_gen.stop()
+
return 0
# Tuning Control
diff --git a/src/target/fake_trx/fake_trx.py b/src/target/fake_trx/fake_trx.py
index 4772701..962101c 100755
--- a/src/target/fake_trx/fake_trx.py
+++ b/src/target/fake_trx/fake_trx.py
@@ -89,7 +89,7 @@
self.bts_clck = UDPLink(self.bts_addr,
self.bts_base_port + 100, self.bts_base_port)
self.clck_gen = CLCKGen([self.bts_clck])
- self.clck_gen.start()
+ self.bts_ctrl.clck_gen = self.clck_gen
print("[i] Init complete")
--
To view, visit https://gerrit.osmocom.org/6796
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86ccc9d26fc54e6511f74f858afdaebb2b284c19
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>