2020-02-11 16:45:26 +00:00
|
|
|
#####################################################################
|
|
|
|
# srsUE configuration file
|
|
|
|
#####################################################################
|
|
|
|
|
|
|
|
[rf]
|
2021-04-19 13:57:08 +00:00
|
|
|
% if int(ue.tx_gain) > 0:
|
|
|
|
tx_gain = ${ue.tx_gain}
|
|
|
|
% endif
|
|
|
|
% if int(ue.rx_gain) > 0:
|
|
|
|
rx_gain = ${ue.rx_gain}
|
|
|
|
% endif
|
|
|
|
|
|
|
|
freq_offset = ${ue.freq_offset}
|
|
|
|
|
|
|
|
nof_antennas = ${ue.num_antennas}
|
|
|
|
|
2021-04-27 20:16:38 +00:00
|
|
|
% if "x300" in ue.rf_dev_args:
|
|
|
|
srate = 23.04e6
|
|
|
|
% endif
|
|
|
|
|
2021-04-19 13:57:08 +00:00
|
|
|
device_name = ${ue.rf_dev_type}
|
|
|
|
device_args = ${ue.rf_dev_args},${ue.rf_dev_sync}
|
|
|
|
|
|
|
|
[rat.eutra]
|
2020-06-23 13:58:38 +00:00
|
|
|
% if int(ue.num_carriers) == 4:
|
|
|
|
dl_earfcn = 2850,3050,3250,3350
|
|
|
|
% elif int(ue.num_carriers) == 2:
|
2020-03-24 11:05:05 +00:00
|
|
|
dl_earfcn = 2850,3050
|
|
|
|
% else:
|
|
|
|
dl_earfcn = 2850
|
|
|
|
% endif
|
2021-03-18 16:06:08 +00:00
|
|
|
% if ue.get('dl_freq', -1) != -1:
|
|
|
|
dl_freq = ${ue.dl_freq}
|
|
|
|
% endif
|
|
|
|
% if ue.get('ul_freq', -1) != -1:
|
|
|
|
ul_freq = ${ue.ul_freq}
|
|
|
|
% endif
|
2020-02-11 16:45:26 +00:00
|
|
|
|
2020-03-24 11:05:05 +00:00
|
|
|
nof_carriers = ${ue.num_carriers}
|
2020-02-11 16:45:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
[pcap]
|
2021-03-02 10:48:47 +00:00
|
|
|
enable = ${'mac' if ue.enable_pcap else 'none'}
|
|
|
|
mac_filename = ${ue.pcap_filename}
|
|
|
|
mac_nr_filename = /tmp/ue_mac_nr.pcap
|
|
|
|
nas_filename = /tmp/ue_nas.pcap
|
2020-02-11 16:45:26 +00:00
|
|
|
|
2021-04-19 13:57:08 +00:00
|
|
|
|
2020-02-11 16:45:26 +00:00
|
|
|
[log]
|
2020-06-18 12:52:39 +00:00
|
|
|
all_level = ${ue.log_all_level}
|
2020-02-11 16:45:26 +00:00
|
|
|
phy_lib_level = none
|
|
|
|
all_hex_limit = 32
|
2020-04-16 13:40:22 +00:00
|
|
|
filename = ${ue.log_filename}
|
2020-02-11 16:45:26 +00:00
|
|
|
file_max_size = -1
|
2021-02-23 10:47:53 +00:00
|
|
|
nas_level = ${ue.log_nas_level}
|
2020-02-11 16:45:26 +00:00
|
|
|
|
2021-04-19 13:57:08 +00:00
|
|
|
|
2020-02-11 16:45:26 +00:00
|
|
|
[usim]
|
|
|
|
mode = soft
|
|
|
|
algo = ${ue.auth_algo}
|
2020-07-13 10:01:10 +00:00
|
|
|
% if ue.opc is not None:
|
|
|
|
opc = ${ue.opc}
|
|
|
|
% endif
|
2020-02-11 16:45:26 +00:00
|
|
|
k = ${ue.ki}
|
|
|
|
imsi = ${ue.imsi}
|
|
|
|
imei = 353490069873319
|
|
|
|
|
2021-04-19 13:57:08 +00:00
|
|
|
|
2020-02-11 16:45:26 +00:00
|
|
|
[rrc]
|
2020-12-10 20:11:02 +00:00
|
|
|
% if "dl_qam256" in ue.features or "ul_qam64" in ue.features:
|
2020-11-16 11:39:43 +00:00
|
|
|
ue_category = 8
|
2020-11-07 12:51:54 +00:00
|
|
|
release = 13
|
|
|
|
ue_category_dl = 14
|
2020-11-16 11:39:43 +00:00
|
|
|
ue_category_ul = 5
|
2020-12-10 20:11:02 +00:00
|
|
|
% elif int(ue.num_carriers) > 1:
|
|
|
|
ue_category = 7
|
|
|
|
release = 10
|
2020-03-24 11:05:05 +00:00
|
|
|
% else:
|
2020-02-11 16:45:26 +00:00
|
|
|
#ue_category = 4
|
|
|
|
#release = 8
|
2020-03-24 11:05:05 +00:00
|
|
|
% endif
|
2020-02-11 16:45:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
[phy]
|
2021-01-25 09:44:17 +00:00
|
|
|
% if ue.rf_dev_type == 'zmq':
|
|
|
|
nof_phy_threads = 2
|
|
|
|
% endif
|
2021-03-14 14:38:23 +00:00
|
|
|
% if float(ue.force_ul_amplitude) > 0:
|
|
|
|
force_ul_amplitude = ${ue.force_ul_amplitude}
|
|
|
|
% endif
|
2020-02-11 16:45:26 +00:00
|
|
|
|
2021-04-19 13:57:08 +00:00
|
|
|
|
2020-03-23 17:52:41 +00:00
|
|
|
[sim]
|
|
|
|
airplane_t_on_ms = ${ue.airplane_t_on_ms}
|
|
|
|
airplane_t_off_ms = ${ue.airplane_t_off_ms}
|
|
|
|
|
2021-04-19 13:57:08 +00:00
|
|
|
|
2020-02-11 16:45:26 +00:00
|
|
|
[general]
|
2020-03-02 10:06:51 +00:00
|
|
|
metrics_csv_enable = true
|
2020-04-16 13:40:22 +00:00
|
|
|
metrics_csv_filename = ${ue.metrics_filename}
|
2020-12-16 11:17:15 +00:00
|
|
|
|
|
|
|
% if ue.rf_dev_type == 'zmq':
|
|
|
|
[stack]
|
|
|
|
have_tti_time_stats = false
|
2021-04-19 13:57:08 +00:00
|
|
|
% endif
|