amarisoftUE: adding basic support for Amarisoft UE
Change-Id: Idda0d3a040663969dd71781814198b47fff7daf3
diff --git a/src/osmo_gsm_tester/templates/amarisoft_lteue.cfg.tmpl b/src/osmo_gsm_tester/templates/amarisoft_lteue.cfg.tmpl
new file mode 100644
index 0000000..fb34917
--- /dev/null
+++ b/src/osmo_gsm_tester/templates/amarisoft_lteue.cfg.tmpl
@@ -0,0 +1,70 @@
+/* UE simulator configuration file version 2018-10-18
+ * Copyright (C) 2015-2018 Amarisoft
+ */
+{
+
+%if ue.license_server_addr != '0.0.0.0':
+ license_server: {
+ server_addr: "${ue.license_server_addr}",
+ name: "amarisoft",
+ },
+%endif
+
+% if ue.rf_dev_type == 'zmq':
+ /* Force sampling rate (if uncommented) */
+ sample_rate: ${ue.sample_rate},
+%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",
+ log_filename: "${ue.log_filename}",
+
+ /* Enable remote API and Web interface */
+ com_addr: "${ue.addr}:9002",
+
+ include "amarisoft_rf_driver.cfg",
+
+ bandwidth: 5,
+
+ /* If true, allow the simulation of several UEs at the same time and
+ allow dynamic UE creation from remote API */
+ multi_ue: false,
+
+ cells: [
+ {
+ dl_earfcn: 3350, /* 2850 MHz (band 7) */
+// dl_earfcn: 40620, /* 3500 MHz (band 41) */
+ n_antenna_dl: 1, /* number of downlink antennas */
+ n_antenna_ul: 1,
+
+ /* must be provided if multi_ue = true */
+ //global_timing_advance: 1,
+ }
+ ],
+
+ ue_list: [
+ {
+ /* UE capabilities */
+ as_release: 8,
+ ue_category: 4,
+
+ /* USIM data */
+ imsi: "${ue.imsi}",
+ K: "${ue.ki}",
+
+ /* If enabled, will try to use external SIM card using libpcsclite */
+ //external_sim: true,
+
+ /* Enable it to create a TUN interface for each UE PDN */
+ //tun_setup_script: "ue-ifup",
+ }
+ ],
+
+ /* If case your system have a high SNR and you are running high number of
+ * UEs, enable this option to optimize PDCCH decoding and save CPU
+ */
+ pdcch_decode_opt: false,
+ pdcch_decode_opt_threshold: 0.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 7f9d929..1e385d0 100644
--- a/src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/amarisoft_rf_driver.cfg.tmpl
@@ -1,10 +1,10 @@
rf_driver: {
- name: "${enb.rf_dev_type}",
- sync: "${'1' if enb.rf_dev_type == 'zmq' else 'none'}",
+ name: "${trx.rf_dev_type}",
+ sync: "${'1' if trx.rf_dev_type == 'zmq' else 'none'}",
/* Use this for b2x0 devices. Bandwidth >= 10 Mhz */
- args: "${enb.rf_dev_args}",
-% if enb.rf_dev_type == 'zmq':
+ args: "${trx.rf_dev_args}",
+% if trx.rf_dev_type == 'zmq':
dl_sample_bits: 16,
ul_sample_bits: 16,
% endif
@@ -12,7 +12,7 @@
tx_gain: 89.0, /* TX gain (in dB) B2x0: 0 to 89.8 dB */
rx_gain: 60.0, /* RX gain (in dB) B2x0: 0 to 73 dB */
-% if enb.rf_dev_type == 'zmq':
+% if trx.rf_dev_type == 'zmq':
tx_time_offset: 0,
% else:
tx_time_offset: -150,