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.orgsrs_andre has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24140 ) Change subject: amarisoftue: solve conflict of sample rate param in rf_driver ...................................................................... amarisoftue: solve conflict of sample rate param in rf_driver move sample_rate setting into rf_driver template that is shared between enb and ue Change-Id: Icc8042c3eec2a1e8bfc6823c06430c1cb18355b7 --- M src/osmo_gsm_tester/templates/amarisoft_lteue.cfg.tmpl M src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl 2 files changed, 22 insertions(+), 10 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/40/24140/1 diff --git a/src/osmo_gsm_tester/templates/amarisoft_lteue.cfg.tmpl b/src/osmo_gsm_tester/templates/amarisoft_lteue.cfg.tmpl index f9b2933..448c23c 100644 --- a/src/osmo_gsm_tester/templates/amarisoft_lteue.cfg.tmpl +++ b/src/osmo_gsm_tester/templates/amarisoft_lteue.cfg.tmpl @@ -10,12 +10,7 @@ }, %endif -% if ue.rf_dev_type == 'zmq': - /* Force sampling rate (if uncommented) */ - sample_rate: ${ue.sample_rate}, -% else: bandwidth: ${ue.bandwidth}, -%endif // log_options: "all.level=debug,all.max_size=32", log_options: "all.level=error,all.max_size=0,nas.level=debug,nas.max_size=1,rrc.level=debug,rrc.max_size=1", 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 f2942d7..fbf90c2 100644 --- a/src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl +++ b/src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl @@ -15,8 +15,12 @@ tx_gain: ${trx.tx_gain}, /* TX gain (in dB) B2x0: 0 to 89.8 dB */ rx_gain: ${trx.rx_gain}, /* RX gain (in dB) B2x0: 0 to 73 dB */ +// Only SDR and ZMQ devices require dedicated rf_port parameters +% if trx.rf_dev_type != 'uhd': + rf_ports: [ % if trx.rf_dev_type == 'sdr': + // NSA specific configuration { sample_rate: 23.04, }, @@ -26,15 +30,28 @@ ul_freq: 3502.8, // Moves NR UL LO frequency -5.76 MHz } % else: + // default case for UHD and ZMQ usage + <% + # determine ports and sample rate from either eNB or UE object + num_ports = 1 + try: + obj_sample_rate = enb.sample_rate + num_ports = int(enb.num_cells) + except AttributeError: + obj_sample_rate = ue.sample_rate + %> + + %for port in range(num_ports): { - sample_rate: ${enb.sample_rate}, + sample_rate: ${obj_sample_rate}, }, - { - sample_rate: ${enb.sample_rate}, - } - % endif + %endfor + + % endif ], +% endif + // only the B210 requires a sample offset % if "b200" in trx.rf_dev_args: tx_time_offset: -150, -- To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24140 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: Icc8042c3eec2a1e8bfc6823c06430c1cb18355b7 Gerrit-Change-Number: 24140 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/20210505/b932ea4d/attachment.htm>