Change in osmo-gsm-tester[master]: srs_ue: adding num_carriers paramter and corresponding modifier

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
Tue Mar 24 15:31:34 UTC 2020


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

Change subject: srs_ue: adding num_carriers paramter and corresponding modifier
......................................................................

srs_ue: adding num_carriers paramter and corresponding modifier

this allows to configure a UE to support multiple carriers

Change-Id: I4fa0a0c6e52efb17aa0b07e55abb5470d8028e8b
---
A example/scenarios/mod-srsue-ncarriers at .conf
M src/osmo_gsm_tester/resource.py
M src/osmo_gsm_tester/templates/srsue.conf.tmpl
3 files changed, 15 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/example/scenarios/mod-srsue-ncarriers at .conf b/example/scenarios/mod-srsue-ncarriers at .conf
new file mode 100644
index 0000000..bb6409a
--- /dev/null
+++ b/example/scenarios/mod-srsue-ncarriers at .conf
@@ -0,0 +1,3 @@
+modifiers:
+  modem:
+  - num_carriers: ${param1}
diff --git a/src/osmo_gsm_tester/resource.py b/src/osmo_gsm_tester/resource.py
index 3b805ff..bb44f39 100644
--- a/src/osmo_gsm_tester/resource.py
+++ b/src/osmo_gsm_tester/resource.py
@@ -108,6 +108,7 @@
         'modem[].features[]': schema.MODEM_FEATURE,
         'modem[].rf_dev_type': schema.STR,
         'modem[].rf_dev_args': schema.STR,
+        'modem[].num_carriers': schema.STR,
         'modem[].airplane_t_on_ms': schema.INT,
         'modem[].airplane_t_off_ms': schema.INT,
         'osmocon_phone[].serial_device': schema.STR,
diff --git a/src/osmo_gsm_tester/templates/srsue.conf.tmpl b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
index 12081c5..90925b3 100644
--- a/src/osmo_gsm_tester/templates/srsue.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
@@ -31,13 +31,18 @@
 #                     Default is auto (yes for UHD, no for rest)
 #####################################################################
 [rf]
-dl_earfcn = 3400
+% if ue.num_carriers == 2:
+dl_earfcn = 2850,3050
+% else:
+dl_earfcn = 2850
+% endif
 freq_offset = 0
 tx_gain = 80
 #rx_gain = 40
 
 #nof_radios = 1
 nof_antennas = ${ue.num_antennas}
+nof_carriers = ${ue.num_carriers}
 
 device_name = ${ue.rf_dev_type}
 
@@ -138,8 +143,13 @@
 # mbms_service_port: Port of the MBMS service
 #####################################################################
 [rrc]
+% if ue.num_carriers == 2:
+ue_category       = 7
+release           = 10
+% else:
 #ue_category       = 4
 #release           = 8
+% endif
 #feature_group     = 0xe6041000
 #mbms_service_id   = -1
 #mbms_service_port = 4321

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17585
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: I4fa0a0c6e52efb17aa0b07e55abb5470d8028e8b
Gerrit-Change-Number: 17585
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200324/df4e1582/attachment.htm>


More information about the gerrit-log mailing list