Change in osmo-gsm-tester[master]: ms_srs: add force_ul_amplitude config

pespin gerrit-no-reply at lists.osmocom.org
Tue Mar 16 17:12:26 UTC 2021


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/23383 )

Change subject: ms_srs: add force_ul_amplitude config
......................................................................

ms_srs: add force_ul_amplitude config

this allows to overwrite the PHY export option phy.force_ul_amplitude

Change-Id: I255f027433944c1739c89757609f0dcc3b8aa7cb
---
M src/osmo_gsm_tester/obj/ms_srs.py
M src/osmo_gsm_tester/templates/srsue.conf.tmpl
2 files changed, 4 insertions(+), 1 deletion(-)

Approvals:
  pespin: Looks good to me, approved; Verified



diff --git a/src/osmo_gsm_tester/obj/ms_srs.py b/src/osmo_gsm_tester/obj/ms_srs.py
index f564519..767f887 100644
--- a/src/osmo_gsm_tester/obj/ms_srs.py
+++ b/src/osmo_gsm_tester/obj/ms_srs.py
@@ -42,6 +42,7 @@
         'tx_gain': schema.INT,
         'rx_gain': schema.INT,
         'freq_offset': schema.INT,
+        'force_ul_amplitude': schema.STR,
         }
     for key, val in RunNode.schema().items():
         resource_schema['run_node.%s' % key] = val
diff --git a/src/osmo_gsm_tester/templates/srsue.conf.tmpl b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
index 0250f2b..a953459 100644
--- a/src/osmo_gsm_tester/templates/srsue.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
@@ -357,7 +357,9 @@
 #pregenerate_signals = false
 #pdsch_csi_enabled  = true
 #pdsch_8bit_decoder = false
-#force_ul_amplitude = 0
+% if float(ue.force_ul_amplitude) > 0:
+force_ul_amplitude = ${ue.force_ul_amplitude}
+% endif
 
 #####################################################################
 # Simulation configuration options

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/23383
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I255f027433944c1739c89757609f0dcc3b8aa7cb
Gerrit-Change-Number: 23383
Gerrit-PatchSet: 4
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210316/11666864/attachment.htm>


More information about the gerrit-log mailing list