Change in osmo-gsm-tester[master]: enb_amarisoft: add "sdr" as rf_dev_type and rx_ant parameter

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

pespin gerrit-no-reply at lists.osmocom.org
Mon May 3 12:22:40 UTC 2021


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

Change subject: enb_amarisoft: add "sdr" as rf_dev_type and rx_ant parameter
......................................................................

enb_amarisoft: add "sdr" as rf_dev_type and rx_ant parameter

this allows to use the Amarisoft PCIe cards with OGT

Change-Id: Ia373a78f59538d6dfca390431f85a7af26c9d914
---
M src/osmo_gsm_tester/obj/enb_amarisoft.py
M src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl
2 files changed, 4 insertions(+), 1 deletion(-)

Approvals:
  pespin: Looks good to me, approved; Verified



diff --git a/src/osmo_gsm_tester/obj/enb_amarisoft.py b/src/osmo_gsm_tester/obj/enb_amarisoft.py
index 65c94dd..405ed68 100644
--- a/src/osmo_gsm_tester/obj/enb_amarisoft.py
+++ b/src/osmo_gsm_tester/obj/enb_amarisoft.py
@@ -37,7 +37,7 @@
     schema.register_config_schema('amarisoftenb', config_schema)
 
 def rf_type_valid(rf_type_str):
-    return rf_type_str in ('uhd', 'zmq')
+    return rf_type_str in ('uhd', 'zmq', 'sdr')
 
 class AmarisoftENB(enb.eNodeB):
 
diff --git a/src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl b/src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl
index 05689c7..2587f97 100644
--- a/src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl
@@ -2,6 +2,9 @@
     name: "${trx.rf_dev_type}",
     args: "${trx.rf_dev_args}",
     sync: "${trx.rf_dev_sync}",
+% if trx.get('rx_ant', None) != None:
+    rx_antenna: "${trx.rx_ant}",
+% endif
 
 % if trx.rf_dev_type == 'zmq':
     dl_sample_bits: 16,

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


More information about the gerrit-log mailing list