blob: a9534594af329da7cd13ad9dd6afa7120037a1b5 [file] [log] [blame]
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +01001#####################################################################
2# srsUE configuration file
3#####################################################################
4
5#####################################################################
6# RF configuration
7#
8# dl_earfcn: Downlink EARFCN code.
9# freq_offset: Uplink and Downlink optional frequency offset (in Hz)
10# tx_gain: Transmit gain (dB).
11# rx_gain: Optional receive gain (dB). If disabled, AGC if enabled
12#
13# Optional parameters:
14# dl_freq: Override DL frequency corresponding to dl_earfcn
15# ul_freq: Override UL frequency corresponding to dl_earfcn
16# nof_radios: Number of available RF devices
17# nof_rf_channels: Number of RF channels per radio
18# nof_rx_ant: Number of RX antennas per channel
19# device_name: Device driver family. Supported options: "auto" (uses first found), "UHD" or "bladeRF"
20# device_args: Arguments for the device driver. Options are "auto" or any string.
21# Default for UHD: "recv_frame_size=9232,send_frame_size=9232"
22# Default for bladeRF: ""
23# device_args_2: Arguments for the RF device driver 2.
24# device_args_3: Arguments for the RF device driver 3.
25# time_adv_nsamples: Transmission time advance (in number of samples) to compensate for RF delay
26# from antenna to timestamp insertion.
27# Default "auto". B210 USRP: 100 samples, bladeRF: 27.
28# burst_preamble_us: Preamble length to transmit before start of burst.
29# Default "auto". B210 USRP: 400 us, bladeRF: 0 us.
30# continuous_tx: Transmit samples continuously to the radio or on bursts (auto/yes/no).
31# Default is auto (yes for UHD, no for rest)
32#####################################################################
33[rf]
Andre Puschmann9df7cd02020-06-23 15:58:38 +020034% if int(ue.num_carriers) == 4:
35dl_earfcn = 2850,3050,3250,3350
36% elif int(ue.num_carriers) == 2:
Andre Puschmannd61613a2020-03-24 12:05:05 +010037dl_earfcn = 2850,3050
38% else:
39dl_earfcn = 2850
40% endif
Andre Puschmanne3a19102020-10-06 09:52:46 +020041freq_offset = ${ue.freq_offset}
Andre Puschmann1bba2892021-03-10 21:27:59 +010042% if int(ue.tx_gain) > 0:
Pau Espin Pedrola6d63042020-04-20 15:14:51 +020043tx_gain = ${ue.tx_gain}
Andre Puschmann1bba2892021-03-10 21:27:59 +010044% endif
45% if int(ue.rx_gain) > 0:
Pau Espin Pedrola6d63042020-04-20 15:14:51 +020046rx_gain = ${ue.rx_gain}
Andre Puschmann1bba2892021-03-10 21:27:59 +010047% endif
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010048
49#nof_radios = 1
Pau Espin Pedrolf796ad02020-03-09 15:50:57 +010050nof_antennas = ${ue.num_antennas}
Andre Puschmannd61613a2020-03-24 12:05:05 +010051nof_carriers = ${ue.num_carriers}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010052
Pau Espin Pedrola9a2fe22020-02-13 19:29:55 +010053device_name = ${ue.rf_dev_type}
54
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010055# For best performance in 2x2 MIMO and >= 15 MHz use the following device_args settings:
56# USRP B210: num_recv_frames=64,num_send_frames=64
57
58# For best performance when BW<5 MHz (25 PRB), use the following device_args settings:
59# USRP B210: send_frame_size=512,recv_frame_size=512
60
Andre Puschmannb5f04442020-10-12 16:57:10 +020061device_args = ${ue.rf_dev_args},${ue.rf_dev_sync}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010062#time_adv_nsamples = auto
63#burst_preamble_us = auto
64#continuous_tx = auto
65
66
67#####################################################################
68# Packet capture configuration
69#
70# Packet capture is supported at both MAC and NAS layers.
71# MAC-layer packets are captured to file in the compact format
72# decoded by the Wireshark mac-lte-framed dissector.
73# To use this dissector, edit the preferences for DLT_USER to
74# add an entry with DLT=147, Payload Protocol=mac-lte-framed.
75# For more information see: https://wiki.wireshark.org/MAC-LTE
76# NAS-layer packets are dissected with DLT=148, and
77# Payload Protocol = nas-eps.
78#
79# enable: Enable MAC layer packet captures (true/false)
80# filename: File path to use for MAC packet captures
81# nas_enable: Enable NAS layer packet captures (true/false)
82# nas_filename: File path to use for NAS packet captures
83#####################################################################
84[pcap]
David Rupprechtf4ff0582021-03-02 11:48:47 +010085enable = ${'mac' if ue.enable_pcap else 'none'}
86mac_filename = ${ue.pcap_filename}
87mac_nr_filename = /tmp/ue_mac_nr.pcap
88nas_filename = /tmp/ue_nas.pcap
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010089
90#####################################################################
91# Log configuration
92#
93# Log levels can be set for individual layers. "all_level" sets log
94# level for all layers unless otherwise configured.
95# Format: e.g. phy_level = info
96#
97# In the same way, packet hex dumps can be limited for each level.
98# "all_hex_limit" sets the hex limit for all layers unless otherwise
99# configured.
100# Format: e.g. phy_hex_limit = 32
101#
102# Logging layers: rf, phy, mac, rlc, pdcp, rrc, nas, gw, usim, all
103# Logging levels: debug, info, warning, error, none
104#
105# filename: File path to use for log output. Can be set to stdout
106# to print logs to standard output
107# file_max_size: Maximum file size (in kilobytes). When passed, multiple files are created.
108# If set to negative, a single log file will be created.
109#####################################################################
110[log]
Andre Puschmann82ced3f2020-06-18 14:52:39 +0200111all_level = ${ue.log_all_level}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100112phy_lib_level = none
113all_hex_limit = 32
Pau Espin Pedrol0e6ab422020-04-16 15:40:22 +0200114filename = ${ue.log_filename}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100115file_max_size = -1
Andre Puschmannc487f742021-02-23 11:47:53 +0100116nas_level = ${ue.log_nas_level}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100117
118#####################################################################
119# USIM configuration
120#
121# mode: USIM mode (soft/pcsc)
122# algo: Authentication algorithm (xor/milenage)
123# op/opc: 128-bit Operator Variant Algorithm Configuration Field (hex)
124# - Specify either op or opc (only used in milenage)
125# k: 128-bit subscriber key (hex)
126# imsi: 15 digit International Mobile Subscriber Identity
127# imei: 15 digit International Mobile Station Equipment Identity
128# pin: PIN in case real SIM card is used
129# reader: Specify card reader by it's name as listed by 'pcsc_scan'. If empty, try all available readers.
130#####################################################################
131[usim]
132mode = soft
133algo = ${ue.auth_algo}
Pau Espin Pedrol0f7f2652020-07-13 12:01:10 +0200134% if ue.opc is not None:
135opc = ${ue.opc}
136% endif
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100137k = ${ue.ki}
138imsi = ${ue.imsi}
139imei = 353490069873319
140#reader =
141#pin = 1234
142
143#####################################################################
144# RRC configuration
145#
146# ue_category: Sets UE category (range 1-5). Default: 4
147# release: UE Release (8 to 10)
148# feature_group: Hex value of the featureGroupIndicators field in the
149# UECapabilityInformation message. Default 0xe6041000
150# mbms_service_id: MBMS service id for autostarting MBMS reception
151# (default -1 means disabled)
152# mbms_service_port: Port of the MBMS service
153#####################################################################
154[rrc]
Andre Puschmann507c60c2020-12-10 21:11:02 +0100155% if "dl_qam256" in ue.features or "ul_qam64" in ue.features:
Andre Puschmann3166b632020-11-16 12:39:43 +0100156ue_category = 8
Nils Fürste1e736ea2020-11-07 13:51:54 +0100157release = 13
158ue_category_dl = 14
Andre Puschmann3166b632020-11-16 12:39:43 +0100159ue_category_ul = 5
Andre Puschmann507c60c2020-12-10 21:11:02 +0100160% elif int(ue.num_carriers) > 1:
161ue_category = 7
162release = 10
Andre Puschmannd61613a2020-03-24 12:05:05 +0100163% else:
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100164#ue_category = 4
165#release = 8
Andre Puschmannd61613a2020-03-24 12:05:05 +0100166% endif
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100167#feature_group = 0xe6041000
168#mbms_service_id = -1
169#mbms_service_port = 4321
170
171#####################################################################
172# NAS configuration
173#
174# apn: Set Access Point Name (APN)
175# apn_protocol: Set APN protocol (IPv4, IPv6 or IPv4v6.)
176# user: Username for CHAP authentication
177# pass: Password for CHAP authentication
178# force_imsi_attach: Whether to always perform an IMSI attach
179# eia: List of integrity algorithms included in UE capabilities
180# Supported: 1 - Snow3G, 2 - AES
181# eea: List of ciphering algorithms included in UE capabilities
182# Supported: 0 - NULL, 1 - Snow3G, 2 - AES
183#####################################################################
184[nas]
185#apn = internetinternet
186#apn_protocol = ipv4
187#user = srsuser
188#pass = srspass
189#force_imsi_attach = false
190#eia = 1,2
191#eea = 0,1,2
192
193#####################################################################
194# GW configuration
195#
196# netns: Network namespace to create TUN device. Default: empty
197# ip_devname: Name of the tun_srsue device. Default: tun_srsue
198# ip_netmask: Netmask of the tun_srsue device. Default: 255.255.255.0
199#####################################################################
200[gw]
201#netns =
202#ip_devname = tun_srsue
203#ip_netmask = 255.255.255.0
204
205#####################################################################
206# GUI configuration
207#
208# Simple GUI displaying PDSCH constellation and channel freq response.
209# (Requires building with srsGUI)
210# enable: Enable the graphical interface (true/false)
211#####################################################################
212[gui]
213enable = false
214
215#####################################################################
216# Channel emulator options:
217# enable: Enable/Disable internal Downlink/Uplink channel emulator
218#
219# -- Fading emulator
220# fading.enable: Enable/disable fading simulator
221# fading.model: Fading model + maximum doppler (E.g. none, epa5, eva70, etu300, etc)
222#
223# -- Delay Emulator delay(t) = delay_min + (delay_max - delay_min) * (1 + sin(2pi*t/period)) / 2
224# Maximum speed [m/s]: (delay_max - delay_min) * pi * 300 / period
225# delay.enable: Enable/disable delay simulator
226# delay.period_s: Delay period in seconds.
227# delay.init_time_s: Delay initial time in seconds.
228# delay.maximum_us: Maximum delay in microseconds
229# delay.minumum_us: Minimum delay in microseconds
230#
231# -- Radio-Link Failure (RLF) Emulator
232# rlf.enable: Enable/disable RLF simulator
233# rlf.t_on_ms: Time for On state of the channel (ms)
234# rlf.t_off_ms: Time for Off state of the channel (ms)
235#
236# -- High Speed Train Doppler model simulator
237# hst.enable: Enable/Disable HST simulator
238# hst.period_s: HST simulation period in seconds
239# hst.fd_hz: Doppler frequency in Hz
240# hst.init_time_s: Initial time in seconds
241#####################################################################
242[channel.dl]
243#enable = false
244
245[channel.dl.fading]
246#enable = false
247#model = none
248
249[channel.dl.delay]
250#enable = false
251#period_s = 3600
252#init_time_s = 0
253#maximum_us = 100
254#minimum_us = 10
255
256[channel.dl.rlf]
257#enable = false
258#t_on_ms = 10000
259#t_off_ms = 2000
260
261[channel.dl.hst]
262#enable = false
263#period_s = 7.2
264#fd_hz = 750.0
265#init_time_s = 0.0
266
267[channel.ul]
268#enable = false
269
270[channel.ul.fading]
271#enable = false
272#model = none
273
274[channel.ul.delay]
275#enable = false
276#period_s = 3600
277#init_time_s = 0
278#maximum_us = 100
279#minimum_us = 10
280
281[channel.ul.rlf]
282#enable = false
283#t_on_ms = 10000
284#t_off_ms = 2000
285
286[channel.ul.hst]
287#enable = false
288#period_s = 7.2
289#fd_hz = -750.0
290#init_time_s = 0.0
291
292#####################################################################
293# PHY configuration options
294#
295# rx_gain_offset: RX Gain offset to add to rx_gain to calibrate RSRP readings
296# prach_gain: PRACH gain (dB). If defined, forces a gain for the tranmsission of PRACH only.,
297# Default is to use tx_gain in [rf] section.
298# cqi_max: Upper bound on the maximum CQI to be reported. Default 15.
299# cqi_fixed: Fixes the reported CQI to a constant value. Default disabled.
300# snr_ema_coeff: Sets the SNR exponential moving average coefficient (Default 0.1)
301# snr_estim_alg: Sets the noise estimation algorithm. (Default refs)
302# Options: pss: use difference between received and known pss signal,
303# refs: use difference between noise references and noiseless (after filtering)
304# empty: use empty subcarriers in the boarder of pss/sss signal
305# pdsch_max_its: Maximum number of turbo decoder iterations (Default 4)
Andre Puschmanna7b21a82020-07-21 12:01:01 +0200306# nof_phy_threads: Selects the number of PHY threads (maximum 4, minimum 1, default 3)
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100307# equalizer_mode: Selects equalizer mode. Valid modes are: "mmse", "zf" or any
308# non-negative real number to indicate a regularized zf coefficient.
309# Default is MMSE.
310# sfo_ema: EMA coefficient to average sample offsets used to compute SFO
311# sfo_correct_period: Period in ms to correct sample time to adjust for SFO
312# sss_algorithm: Selects the SSS estimation algorithm. Can choose between
313# {full, partial, diff}.
314# estimator_fil_auto: The channel estimator smooths the channel estimate with an adaptative filter.
315# estimator_fil_stddev: Sets the channel estimator smooth gaussian filter standard deviation.
316# estimator_fil_order: Sets the channel estimator smooth gaussian filter order (even values perform better).
317# The taps are [w, 1-2w, w]
318#
319# snr_to_cqi_offset: Sets an offset in the SNR to CQI table. This is used to adjust the reported CQI.
320#
321# pregenerate_signals: Pregenerate uplink signals after attach. Improves CPU performance.
322#
323# interpolate_subframe_enabled: Interpolates in the time domain the channel estimates within 1 subframe. Default is to average.
324#
325# sic_pss_enabled: Applies Successive Interference Cancellation to PSS signals when searching for neighbour cells.
326# Must be disabled if cells have identical channel and timing, for instance if generated from
327# the same source.
328#
329# pdsch_csi_enabled: Stores the Channel State Information and uses it for weightening the softbits. It is only
330# used in TM1. It is True by default.
331#
332# pdsch_8bit_decoder: Use 8-bit for LLR representation and turbo decoder trellis computation (Experimental)
333# force_ul_amplitude: Forces the peak amplitude in the PUCCH, PUSCH and SRS (set 0.0 to 1.0, set to 0 or negative for disabling)
334#
335#####################################################################
336[phy]
337#rx_gain_offset = 62
338#prach_gain = 30
339#cqi_max = 15
340#cqi_fixed = 10
341#snr_ema_coeff = 0.1
342#snr_estim_alg = refs
343#pdsch_max_its = 8 # These are half iterations
Andre Puschmann7aa14e42021-01-25 10:44:17 +0100344% if ue.rf_dev_type == 'zmq':
345nof_phy_threads = 2
346% endif
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100347#equalizer_mode = mmse
348#sfo_ema = 0.1
349#sfo_correct_period = 10
350#sss_algorithm = full
351#estimator_fil_auto = false
352#estimator_fil_stddev = 1.0
353#estimator_fil_order = 4
354#snr_to_cqi_offset = 0.0
355#interpolate_subframe_enabled = false
356#sic_pss_enabled = true
357#pregenerate_signals = false
358#pdsch_csi_enabled = true
359#pdsch_8bit_decoder = false
Andre Puschmannfcdff4b2021-03-14 15:38:23 +0100360% if float(ue.force_ul_amplitude) > 0:
361force_ul_amplitude = ${ue.force_ul_amplitude}
362% endif
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100363
364#####################################################################
Andre Puschmann35234f22020-03-23 18:52:41 +0100365# Simulation configuration options
366#
367# The UE simulation supports turning on and off airplane mode in the UE.
368# The actions are carried periodically until the UE is stopped.
369#
370# airplane_t_on_ms: Time to leave airplane mode turned on (in ms)
371#
372# airplane_t_off_ms: Time to leave airplane mode turned off (in ms)
373#
374#####################################################################
375[sim]
376airplane_t_on_ms = ${ue.airplane_t_on_ms}
377airplane_t_off_ms = ${ue.airplane_t_off_ms}
378
379#####################################################################
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100380# General configuration options
381#
382# metrics_csv_enable: Write UE metrics to CSV file.
383#
384# metrics_period_secs: Sets the period at which metrics are requested from the UE.
385#
386# metrics_csv_filename: File path to use for CSV metrics.
387#
388#####################################################################
389[general]
Pau Espin Pedrola0319952020-03-02 11:06:51 +0100390metrics_csv_enable = true
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100391#metrics_period_secs = 1
Pau Espin Pedrol0e6ab422020-04-16 15:40:22 +0200392metrics_csv_filename = ${ue.metrics_filename}
Andre Puschmann1d1c0bf2020-12-16 12:17:15 +0100393
394% if ue.rf_dev_type == 'zmq':
395[stack]
396have_tti_time_stats = false
397% endif