aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-08-26 18:19:15 +0200
committerAndre Puschmann <andre@softwareradiosystems.com>2020-08-27 15:37:54 +0200
commit0cfc08436dafa5e37eef91b6f7e4fe50b5a08035 (patch)
treebbc0c072de8d2c82e571be4c9df6317689e374a2 /src/osmo_gsm_tester
parent736c30b4dcb3899c57f763259869a455f55efe41 (diff)
enb: expose RRC inactivity timer
allow the user to specifiy the RRC inactiviy timer used in the eNB. set the default value to 20s Change-Id: I6a264b8dee893b883d40a48831cbb47eb15e1e7b
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/obj/enb.py3
-rw-r--r--src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl2
-rw-r--r--src/osmo_gsm_tester/templates/srsenb.conf.tmpl2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/osmo_gsm_tester/obj/enb.py b/src/osmo_gsm_tester/obj/enb.py
index be48887..85aca35 100644
--- a/src/osmo_gsm_tester/obj/enb.py
+++ b/src/osmo_gsm_tester/obj/enb.py
@@ -35,6 +35,7 @@ def on_register_schemas():
'rf_dev_type': schema.STR,
'rf_dev_args': schema.STR,
'additional_args[]': schema.STR,
+ 'inactivity_timer': schema.INT,
'enable_measurements': schema.BOOL_STR,
'enable_dl_awgn': schema.BOOL_STR,
'dl_awgn_snr': schema.INT,
@@ -99,6 +100,8 @@ class eNodeB(log.Origin, metaclass=ABCMeta):
self._txmode = int(values['enb'].get('transmission_mode', None))
assert self._txmode
config.overlay(values, dict(enb={ 'num_ports': self.num_ports() }))
+ self._inactivity_timer = int(values['enb'].get('inactivity_timer', None))
+ assert self._inactivity_timer
assert self._epc is not None
config.overlay(values, dict(enb={ 'addr': self.addr() }))
config.overlay(values, dict(enb={ 'mme_addr': self._epc.addr() }))
diff --git a/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl b/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl
index 155ad47..2893b9e 100644
--- a/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl
@@ -223,7 +223,7 @@
/* (in ms) send RRC connection release after this time of network
inactivity */
- inactivity_timer: 10000,
+ inactivity_timer: ${enb.inactivity_timer},
/* SRB configuration */
srb_config: [
diff --git a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
index 81753d6..ac94313 100644
--- a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
@@ -272,7 +272,7 @@ enable = false
#pregenerate_signals = false
#tx_amplitude = 0.6
#link_failure_nof_err = 50
-rrc_inactivity_timer = 5000
+rrc_inactivity_timer = ${enb.inactivity_timer}
#max_prach_offset_us = 30
#eea_pref_list = EEA0, EEA2, EEA1
#eia_pref_list = EIA2, EIA1, EIA0