aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-07-01 15:44:09 +0200
committerpespin <pespin@sysmocom.de>2020-07-09 13:43:00 +0000
commit955249d39da8f1d01b5876cd274c6fb283737c2c (patch)
tree4be4c0c8d8d2490f53a5975765ca00d86ffc81d4 /src/osmo_gsm_tester
parent969a4eebaefdeb62a80b9f6b746ba69574a14c0a (diff)
enb_amarisoft: add option to enable and configure DL AWGN channel
expose option to enable DL AWGN noise and make SNR configurable Change-Id: Ib248e87e5abd855d4c974eab42ec40828c6e1d40
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/obj/enb.py2
-rw-r--r--src/osmo_gsm_tester/obj/enb_amarisoft.py2
-rw-r--r--src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl7
3 files changed, 11 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/obj/enb.py b/src/osmo_gsm_tester/obj/enb.py
index d9fe1a5..be48887 100644
--- a/src/osmo_gsm_tester/obj/enb.py
+++ b/src/osmo_gsm_tester/obj/enb.py
@@ -36,6 +36,8 @@ def on_register_schemas():
'rf_dev_args': schema.STR,
'additional_args[]': schema.STR,
'enable_measurements': schema.BOOL_STR,
+ 'enable_dl_awgn': schema.BOOL_STR,
+ 'dl_awgn_snr': schema.INT,
'a1_report_type': schema.STR,
'a1_report_value': schema.INT,
'a1_hysteresis': schema.INT,
diff --git a/src/osmo_gsm_tester/obj/enb_amarisoft.py b/src/osmo_gsm_tester/obj/enb_amarisoft.py
index 4b24844..c7a9810 100644
--- a/src/osmo_gsm_tester/obj/enb_amarisoft.py
+++ b/src/osmo_gsm_tester/obj/enb_amarisoft.py
@@ -160,6 +160,8 @@ class AmarisoftENB(enb.eNodeB):
self.enable_measurements = util.str2bool(values['enb'].get('enable_measurements', 'false'))
config.overlay(values, dict(enb={'enable_measurements': self.enable_measurements}))
+ config.overlay(values, dict(enb={'enable_dl_awgn': util.str2bool(values['enb'].get('enable_dl_awgn', 'false'))}))
+
# We need to set some specific variables programatically here to match IP addresses:
if self._conf.get('rf_dev_type') == 'zmq':
base_srate = self.num_prb2base_srate(self.num_prb())
diff --git a/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl b/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl
index 09532cc..7896ecb 100644
--- a/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl
@@ -38,6 +38,13 @@
/* RF driver configuration */
include "amarisoft_rf_driver.cfg",
+% if enb.enable_dl_awgn:
+ channel_dl: {
+ type: "awgn",
+ snr: ${enb.dl_awgn_snr}
+ },
+% endif
+
mme_list: [
{
s1ap_bind_addr: "${enb.addr}",