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