blob: 05c6c5572341057eae9764ddcd88931527b40434 [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
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010041freq_offset = 0
Pau Espin Pedrola6d63042020-04-20 15:14:51 +020042tx_gain = ${ue.tx_gain}
43rx_gain = ${ue.rx_gain}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010044
45#nof_radios = 1
Pau Espin Pedrolf796ad02020-03-09 15:50:57 +010046nof_antennas = ${ue.num_antennas}
Andre Puschmannd61613a2020-03-24 12:05:05 +010047nof_carriers = ${ue.num_carriers}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010048
Pau Espin Pedrola9a2fe22020-02-13 19:29:55 +010049device_name = ${ue.rf_dev_type}
50
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010051# For best performance in 2x2 MIMO and >= 15 MHz use the following device_args settings:
52# USRP B210: num_recv_frames=64,num_send_frames=64
53
54# For best performance when BW<5 MHz (25 PRB), use the following device_args settings:
55# USRP B210: send_frame_size=512,recv_frame_size=512
56
Pau Espin Pedrola9a2fe22020-02-13 19:29:55 +010057device_args = ${ue.rf_dev_args}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010058#time_adv_nsamples = auto
59#burst_preamble_us = auto
60#continuous_tx = auto
61
62
63#####################################################################
64# Packet capture configuration
65#
66# Packet capture is supported at both MAC and NAS layers.
67# MAC-layer packets are captured to file in the compact format
68# decoded by the Wireshark mac-lte-framed dissector.
69# To use this dissector, edit the preferences for DLT_USER to
70# add an entry with DLT=147, Payload Protocol=mac-lte-framed.
71# For more information see: https://wiki.wireshark.org/MAC-LTE
72# NAS-layer packets are dissected with DLT=148, and
73# Payload Protocol = nas-eps.
74#
75# enable: Enable MAC layer packet captures (true/false)
76# filename: File path to use for MAC packet captures
77# nas_enable: Enable NAS layer packet captures (true/false)
78# nas_filename: File path to use for NAS packet captures
79#####################################################################
80[pcap]
Pau Espin Pedrol1e81b5a2020-03-16 12:42:17 +010081enable = ${'true' if ue.enable_pcap else 'false'}
Pau Espin Pedrol0e6ab422020-04-16 15:40:22 +020082filename = ${ue.pcap_filename}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +010083nas_enable = false
84nas_filename = /tmp/nas.pcap
85
86#####################################################################
87# Log configuration
88#
89# Log levels can be set for individual layers. "all_level" sets log
90# level for all layers unless otherwise configured.
91# Format: e.g. phy_level = info
92#
93# In the same way, packet hex dumps can be limited for each level.
94# "all_hex_limit" sets the hex limit for all layers unless otherwise
95# configured.
96# Format: e.g. phy_hex_limit = 32
97#
98# Logging layers: rf, phy, mac, rlc, pdcp, rrc, nas, gw, usim, all
99# Logging levels: debug, info, warning, error, none
100#
101# filename: File path to use for log output. Can be set to stdout
102# to print logs to standard output
103# file_max_size: Maximum file size (in kilobytes). When passed, multiple files are created.
104# If set to negative, a single log file will be created.
105#####################################################################
106[log]
Andre Puschmann82ced3f2020-06-18 14:52:39 +0200107all_level = ${ue.log_all_level}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100108phy_lib_level = none
109all_hex_limit = 32
Pau Espin Pedrol0e6ab422020-04-16 15:40:22 +0200110filename = ${ue.log_filename}
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100111file_max_size = -1
112
113#####################################################################
114# USIM configuration
115#
116# mode: USIM mode (soft/pcsc)
117# algo: Authentication algorithm (xor/milenage)
118# op/opc: 128-bit Operator Variant Algorithm Configuration Field (hex)
119# - Specify either op or opc (only used in milenage)
120# k: 128-bit subscriber key (hex)
121# imsi: 15 digit International Mobile Subscriber Identity
122# imei: 15 digit International Mobile Station Equipment Identity
123# pin: PIN in case real SIM card is used
124# reader: Specify card reader by it's name as listed by 'pcsc_scan'. If empty, try all available readers.
125#####################################################################
126[usim]
127mode = soft
128algo = ${ue.auth_algo}
Pau Espin Pedrol0f7f2652020-07-13 12:01:10 +0200129% if ue.opc is not None:
130opc = ${ue.opc}
131% endif
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100132k = ${ue.ki}
133imsi = ${ue.imsi}
134imei = 353490069873319
135#reader =
136#pin = 1234
137
138#####################################################################
139# RRC configuration
140#
141# ue_category: Sets UE category (range 1-5). Default: 4
142# release: UE Release (8 to 10)
143# feature_group: Hex value of the featureGroupIndicators field in the
144# UECapabilityInformation message. Default 0xe6041000
145# mbms_service_id: MBMS service id for autostarting MBMS reception
146# (default -1 means disabled)
147# mbms_service_port: Port of the MBMS service
148#####################################################################
149[rrc]
Andre Puschmann59c83a22020-07-03 12:53:59 +0200150% if int(ue.num_carriers) > 1:
Andre Puschmannd61613a2020-03-24 12:05:05 +0100151ue_category = 7
152release = 10
153% else:
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100154#ue_category = 4
155#release = 8
Andre Puschmannd61613a2020-03-24 12:05:05 +0100156% endif
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100157#feature_group = 0xe6041000
158#mbms_service_id = -1
159#mbms_service_port = 4321
160
161#####################################################################
162# NAS configuration
163#
164# apn: Set Access Point Name (APN)
165# apn_protocol: Set APN protocol (IPv4, IPv6 or IPv4v6.)
166# user: Username for CHAP authentication
167# pass: Password for CHAP authentication
168# force_imsi_attach: Whether to always perform an IMSI attach
169# eia: List of integrity algorithms included in UE capabilities
170# Supported: 1 - Snow3G, 2 - AES
171# eea: List of ciphering algorithms included in UE capabilities
172# Supported: 0 - NULL, 1 - Snow3G, 2 - AES
173#####################################################################
174[nas]
175#apn = internetinternet
176#apn_protocol = ipv4
177#user = srsuser
178#pass = srspass
179#force_imsi_attach = false
180#eia = 1,2
181#eea = 0,1,2
182
183#####################################################################
184# GW configuration
185#
186# netns: Network namespace to create TUN device. Default: empty
187# ip_devname: Name of the tun_srsue device. Default: tun_srsue
188# ip_netmask: Netmask of the tun_srsue device. Default: 255.255.255.0
189#####################################################################
190[gw]
191#netns =
192#ip_devname = tun_srsue
193#ip_netmask = 255.255.255.0
194
195#####################################################################
196# GUI configuration
197#
198# Simple GUI displaying PDSCH constellation and channel freq response.
199# (Requires building with srsGUI)
200# enable: Enable the graphical interface (true/false)
201#####################################################################
202[gui]
203enable = false
204
205#####################################################################
206# Channel emulator options:
207# enable: Enable/Disable internal Downlink/Uplink channel emulator
208#
209# -- Fading emulator
210# fading.enable: Enable/disable fading simulator
211# fading.model: Fading model + maximum doppler (E.g. none, epa5, eva70, etu300, etc)
212#
213# -- Delay Emulator delay(t) = delay_min + (delay_max - delay_min) * (1 + sin(2pi*t/period)) / 2
214# Maximum speed [m/s]: (delay_max - delay_min) * pi * 300 / period
215# delay.enable: Enable/disable delay simulator
216# delay.period_s: Delay period in seconds.
217# delay.init_time_s: Delay initial time in seconds.
218# delay.maximum_us: Maximum delay in microseconds
219# delay.minumum_us: Minimum delay in microseconds
220#
221# -- Radio-Link Failure (RLF) Emulator
222# rlf.enable: Enable/disable RLF simulator
223# rlf.t_on_ms: Time for On state of the channel (ms)
224# rlf.t_off_ms: Time for Off state of the channel (ms)
225#
226# -- High Speed Train Doppler model simulator
227# hst.enable: Enable/Disable HST simulator
228# hst.period_s: HST simulation period in seconds
229# hst.fd_hz: Doppler frequency in Hz
230# hst.init_time_s: Initial time in seconds
231#####################################################################
232[channel.dl]
233#enable = false
234
235[channel.dl.fading]
236#enable = false
237#model = none
238
239[channel.dl.delay]
240#enable = false
241#period_s = 3600
242#init_time_s = 0
243#maximum_us = 100
244#minimum_us = 10
245
246[channel.dl.rlf]
247#enable = false
248#t_on_ms = 10000
249#t_off_ms = 2000
250
251[channel.dl.hst]
252#enable = false
253#period_s = 7.2
254#fd_hz = 750.0
255#init_time_s = 0.0
256
257[channel.ul]
258#enable = false
259
260[channel.ul.fading]
261#enable = false
262#model = none
263
264[channel.ul.delay]
265#enable = false
266#period_s = 3600
267#init_time_s = 0
268#maximum_us = 100
269#minimum_us = 10
270
271[channel.ul.rlf]
272#enable = false
273#t_on_ms = 10000
274#t_off_ms = 2000
275
276[channel.ul.hst]
277#enable = false
278#period_s = 7.2
279#fd_hz = -750.0
280#init_time_s = 0.0
281
282#####################################################################
283# PHY configuration options
284#
285# rx_gain_offset: RX Gain offset to add to rx_gain to calibrate RSRP readings
286# prach_gain: PRACH gain (dB). If defined, forces a gain for the tranmsission of PRACH only.,
287# Default is to use tx_gain in [rf] section.
288# cqi_max: Upper bound on the maximum CQI to be reported. Default 15.
289# cqi_fixed: Fixes the reported CQI to a constant value. Default disabled.
290# snr_ema_coeff: Sets the SNR exponential moving average coefficient (Default 0.1)
291# snr_estim_alg: Sets the noise estimation algorithm. (Default refs)
292# Options: pss: use difference between received and known pss signal,
293# refs: use difference between noise references and noiseless (after filtering)
294# empty: use empty subcarriers in the boarder of pss/sss signal
295# pdsch_max_its: Maximum number of turbo decoder iterations (Default 4)
Andre Puschmanna7b21a82020-07-21 12:01:01 +0200296# nof_phy_threads: Selects the number of PHY threads (maximum 4, minimum 1, default 3)
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100297# equalizer_mode: Selects equalizer mode. Valid modes are: "mmse", "zf" or any
298# non-negative real number to indicate a regularized zf coefficient.
299# Default is MMSE.
300# sfo_ema: EMA coefficient to average sample offsets used to compute SFO
301# sfo_correct_period: Period in ms to correct sample time to adjust for SFO
302# sss_algorithm: Selects the SSS estimation algorithm. Can choose between
303# {full, partial, diff}.
304# estimator_fil_auto: The channel estimator smooths the channel estimate with an adaptative filter.
305# estimator_fil_stddev: Sets the channel estimator smooth gaussian filter standard deviation.
306# estimator_fil_order: Sets the channel estimator smooth gaussian filter order (even values perform better).
307# The taps are [w, 1-2w, w]
308#
309# snr_to_cqi_offset: Sets an offset in the SNR to CQI table. This is used to adjust the reported CQI.
310#
311# pregenerate_signals: Pregenerate uplink signals after attach. Improves CPU performance.
312#
313# interpolate_subframe_enabled: Interpolates in the time domain the channel estimates within 1 subframe. Default is to average.
314#
315# sic_pss_enabled: Applies Successive Interference Cancellation to PSS signals when searching for neighbour cells.
316# Must be disabled if cells have identical channel and timing, for instance if generated from
317# the same source.
318#
319# pdsch_csi_enabled: Stores the Channel State Information and uses it for weightening the softbits. It is only
320# used in TM1. It is True by default.
321#
322# pdsch_8bit_decoder: Use 8-bit for LLR representation and turbo decoder trellis computation (Experimental)
323# 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)
324#
325#####################################################################
326[phy]
327#rx_gain_offset = 62
328#prach_gain = 30
329#cqi_max = 15
330#cqi_fixed = 10
331#snr_ema_coeff = 0.1
332#snr_estim_alg = refs
333#pdsch_max_its = 8 # These are half iterations
Andre Puschmanna7b21a82020-07-21 12:01:01 +0200334#nof_phy_threads = 3
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100335#equalizer_mode = mmse
336#sfo_ema = 0.1
337#sfo_correct_period = 10
338#sss_algorithm = full
339#estimator_fil_auto = false
340#estimator_fil_stddev = 1.0
341#estimator_fil_order = 4
342#snr_to_cqi_offset = 0.0
343#interpolate_subframe_enabled = false
344#sic_pss_enabled = true
345#pregenerate_signals = false
346#pdsch_csi_enabled = true
347#pdsch_8bit_decoder = false
348#force_ul_amplitude = 0
349
350#####################################################################
Andre Puschmann35234f22020-03-23 18:52:41 +0100351# Simulation configuration options
352#
353# The UE simulation supports turning on and off airplane mode in the UE.
354# The actions are carried periodically until the UE is stopped.
355#
356# airplane_t_on_ms: Time to leave airplane mode turned on (in ms)
357#
358# airplane_t_off_ms: Time to leave airplane mode turned off (in ms)
359#
360#####################################################################
361[sim]
362airplane_t_on_ms = ${ue.airplane_t_on_ms}
363airplane_t_off_ms = ${ue.airplane_t_off_ms}
364
365#####################################################################
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100366# General configuration options
367#
368# metrics_csv_enable: Write UE metrics to CSV file.
369#
370# metrics_period_secs: Sets the period at which metrics are requested from the UE.
371#
372# metrics_csv_filename: File path to use for CSV metrics.
373#
374#####################################################################
375[general]
Pau Espin Pedrola0319952020-03-02 11:06:51 +0100376metrics_csv_enable = true
Pau Espin Pedrolc8b0f932020-02-11 17:45:26 +0100377#metrics_period_secs = 1
Pau Espin Pedrol0e6ab422020-04-16 15:40:22 +0200378metrics_csv_filename = ${ue.metrics_filename}