Change in osmo-gsm-tester[master]: enb_srs: expose DL AWGN channel modifier for srsENB

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/.

srs_andre gerrit-no-reply at lists.osmocom.org
Wed Sep 2 20:40:57 UTC 2020


srs_andre has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19956 )


Change subject: enb_srs: expose DL AWGN channel modifier for srsENB
......................................................................

enb_srs: expose DL AWGN channel modifier for srsENB

we've added the modifier to configure Amarisoft eNB channel
model. This patch enables it for srsENB.

Change-Id: I30e65d0431b2d2792986128287caf8b23a22b2c1
---
M src/osmo_gsm_tester/obj/enb_srs.py
M src/osmo_gsm_tester/templates/srsenb.conf.tmpl
2 files changed, 11 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/56/19956/1

diff --git a/src/osmo_gsm_tester/obj/enb_srs.py b/src/osmo_gsm_tester/obj/enb_srs.py
index 7556f92..68a3a19 100644
--- a/src/osmo_gsm_tester/obj/enb_srs.py
+++ b/src/osmo_gsm_tester/obj/enb_srs.py
@@ -194,6 +194,8 @@
         self.enable_pcap = util.str2bool(values['enb'].get('enable_pcap', 'false'))
         config.overlay(values, dict(enb={'enable_pcap': self.enable_pcap}))
 
+        config.overlay(values, dict(enb={'enable_dl_awgn': util.str2bool(values['enb'].get('enable_dl_awgn', 'false'))}))
+
         self._additional_args = []
         for add_args in values['enb'].get('additional_args', []):
             self._additional_args += add_args.split()
diff --git a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
index ac94313..7409b3a 100644
--- a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
@@ -193,8 +193,16 @@
 # hst.fd_hz:         Doppler frequency in Hz
 # hst.init_time_s:   Initial time in seconds
 #####################################################################
+% if enb.enable_dl_awgn:
 [channel.dl]
-#enable        = false
+enable        = true
+% endif
+
+% if enb.enable_dl_awgn:
+[channel.dl.awgn]
+enable        = true
+snr           = ${enb.dl_awgn_snr}
+% endif
 
 [channel.dl.fading]
 #enable        = false

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19956
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: I30e65d0431b2d2792986128287caf8b23a22b2c1
Gerrit-Change-Number: 19956
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200902/8c1ac1b5/attachment.htm>


More information about the gerrit-log mailing list