Change in osmo-gsm-tester[master]: enb: expose RRC inactivity timer

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
Fri Aug 28 08:58:04 UTC 2020


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


Change subject: enb: expose RRC inactivity timer
......................................................................

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
---
M src/osmo_gsm_tester/obj/enb.py
M src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl
M src/osmo_gsm_tester/templates/srsenb.conf.tmpl
M sysmocom/defaults.conf
4 files changed, 6 insertions(+), 2 deletions(-)



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

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 @@
         '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 @@
         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 @@
 #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
diff --git a/sysmocom/defaults.conf b/sysmocom/defaults.conf
index dd97456..2f2e317 100644
--- a/sysmocom/defaults.conf
+++ b/sysmocom/defaults.conf
@@ -112,6 +112,7 @@
   mnc: 70
   transmission_mode: 1
   num_cells: 1
+  inactivity_timer: 20000
   enable_measurements: false
   enable_dl_awgn: false
   dl_awgn_snr: 30

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19861
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: I6a264b8dee893b883d40a48831cbb47eb15e1e7b
Gerrit-Change-Number: 19861
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/20200828/def46545/attachment.htm>


More information about the gerrit-log mailing list