/* lteenb configuration file version ##VERSION## * Copyright (C) 2015-2026 Amarisoft */ { #define N_CELL 2 #define NR_TDD 1 // Values: 0 (FDD), 1(TDD) #define RX_ANTENNA 1 // Values: 0 (use TX connector as RX antenna in TDD), 1(use RX connector as RX antenna in TDD) #define N_RB_DL 50 // Values: 6 (1.4MHz), 25 (5MHz), 50 (10MHz), 75 (15MHz), 100 (20MHz) #define NR_BANDWIDTH 20 #define N_ANTENNA_DL 2 // Values: 1 (SISO), 2 (MIMO 2x2), 4 (MIMO 4x4) #define N_ANTENNA_UL 1 // Values: 1, 2 #define N_NR_ANTENNA_DL 2 #define CHANNEL_SIM 0 // Values: 0 (channel simulator disabled), 1 (channel simulator enabled) #define CONDITIONAL_HO 0 #define LTM 1 /* Log filter: syntax: layer.field=value[,...] Possible layers are phy, mac, rlc, pdcp, rrc, nas, s1ap, x2ap, gtpu and all. The 'all' layer is used to address all the layers at the same time. field values: - 'level': the log level of each layer can be set to 'none', 'error', 'info' or 'debug'. Use 'debug' to log all the messages. - 'max_size': set the maximum size of the hex dump. 0 means no hex dump. -1 means no limit. */ //log_options: "all.level=debug,all.max_size=1", log_options: "all.level=warn,all.max_size=0,nas.level=debug,nas.max_size=1,phy.level=debug,phy.max_size=1,rrc.level=debug,rrc.max_size=1,mac.level=debug,mac.max_size=1", log_filename: "/tmp/enb0.log", /* Enable remote API and Web interface */ com_addr: "0.0.0.0:9001", include "rf_driver/config.cfg", tx_gain: 70, rx_gain: 10, #if CHANNEL_SIM == 1 rf_ports: [ { channel_dl: { type: "awgn", snr: 30, }, } ], #endif amf_list: [ { /* address of AMF for NGAP connection. Must be modified if the AMF runs on a different host. */ amf_addr: "127.0.1.100", }, ], /* GTP bind address (=address of the ethernet interface connected to the AMF). Must be modified if the AMF runs on a different host. */ gtp_addr: "127.0.1.1", gnb_id_bits: 28, gnb_id: 0x12345, nr_support: true, /* list of cells */ cell_list: [], #ifndef FR2 #define FR2 0 #endif #ifndef CONDITIONAL_HO #define CONDITIONAL_HO 0 #endif #ifndef LTM #define LTM 0 #endif nr_cell_list: [ { rf_port: 0, cell_id: 0x01, n_id_cell: 501, band: 78, dl_nr_arfcn: 625400, /* 3489.42 MHz */ ssb_nr_arfcn: 625400, #if LTM == 1 ltm: { configuration_trigger: "immediate", report: { type: "periodic", quantity: "ssb_Index_RSRP", period: 80, }, cell_switch: { ltm4: { threshold: -55, count: 2, } }, candidate_list: [ { cell_id: 2, } ] }, ltm_target: { candidate_config: { csi_resource_type: "csi_ssb" } }, #else ncell_list: [ { cell_id: 2, #if CONDITIONAL_HO == 1 conditional_handover_target: true, #endif } ] #endif }, { rf_port: 1, cell_id: 0x02, band: 78, dl_nr_arfcn: 626400, ssb_nr_arfcn: 626400, n_id_cell: 502, #if LTM == 1 ssb_pos_bitmap: "11110000", ssb_precoding: [[0, 0],[0.1, 0.1],[0.2, 0.2],[1.0, 1.0]], cell_gain: -20, ltm: { configuration_trigger: "immediate", report: { type: "periodic", quantity: "ssb_Index_RSRP", period: 80, }, cell_switch: { ltm4: { threshold: -55, count: 2, } }, candidate_list: [ { cell_id: 1 } ] }, ltm_target: { candidate_config: { csi_resource_type: "csi_ssb" } }, #else ncell_list: [ { cell_id: 1, #if CONDITIONAL_HO == 1 conditional_handover_target: true, #endif } ] #endif } ], /* nr_cell_list */ nr_cell_default: { ssb_subcarrier_spacing: 30, /* KHz */ subcarrier_spacing: 15*2, /* kHz */ bandwidth: 20, /* MHz */ n_antenna_dl: 2, n_antenna_ul: 1, #if !defined(TDD_CONFIG) #define TDD_CONFIG 0 #endif #if NR_TDD == 1 /* force the timing TA offset (optional) */ // n_timing_advance_offset: 39936, tdd_ul_dl_config: { pattern1: { #if TDD_CONFIG == 0 period: 10/2, /* in ms */ dl_slots: 7, dl_symbols: 6, ul_slots: 2, ul_symbols: 1, #elif TDD_CONFIG == 1 //some config #endif }, }, #endif #if NR_TDD == 1 ssb_pos_bitmap: "10000000", #else ssb_pos_bitmap: "1000", #endif ssb_period: 20, /* in ms */ plmn_list: [ { tac: 100, plmn: "00101", reserved: false, }, ], cell_barred: false, intra_freq_reselection: true, q_rx_lev_min: -70, q_qual_min: -20, p_max: 10, /* dBm */ si_window_length: 40, root_sequence_index: 1, /* PRACH root sequence index */ /* Scheduling request period (slots). */ sr_period: 40, dmrs_type_a_pos: 2, /* to limit the number of HARQ feedback in UL, use pdsch_harq_ack_max; allows to workaround issues with SM-G977N for example pdsch_harq_ack_max: 2, */ prach: { #if NR_TDD == 1 prach_config_index: 160, /* format B4, subframe 9 */ msg1_subcarrier_spacing: 15*2, /* kHz */ #else prach_config_index: 16, #endif msg1_fdm: 1, msg1_frequency_start: 0, zero_correlation_zone_config: 15, preamble_received_target_power: -110, /* in dBm */ preamble_trans_max: 7, power_ramping_step: 4, /* in dB */ ra_response_window: 20, /* in slots */ restricted_set_config: "unrestricted_set", ra_contention_resolution_timer: 64, /* in ms */ ssb_per_prach_occasion: 1, cb_preambles_per_ssb: 8, }, pdcch: { n_rb_coreset0: 24, n_symb_coreset0: 2, offset_rbs_coreset0: 2, search_space0_index: 0, dedicated_coreset: { rb_start: -1, /* -1 to have the maximum bandwidth */ l_crb: -1, /* -1 means all the bandwidth */ duration: 0, /* 0 means to automatically set it from the coreset bandwidth */ precoder_granularity: "sameAsREG_bundle", }, css: { n_candidates: [ 0, 0, 4, 0, 0 ], }, rar_al_index: 2, si_al_index: 2, uss: { n_candidates: [ 0, 4, 0, 0, 0 ], dci_0_1_and_1_1: true, }, al_index: 1, }, pdsch: { mapping_type: "typeA", start_symb: 1, n_symb: 13, dmrs_add_pos: 1, dmrs_type: 1, dmrs_max_len: 1, mcs_table: "qam64", /* k0 delay in slots from DCI to PDSCH: automatic setting */ /* k1 delay in slots from PDSCH to PUCCH/PUSCH ACK/NACK: automatic setting */ mcs_table: "qam256", rar_mcs: 2, si_mcs: 6, /* If defined, force the PDSCH MCS for all UEs. Otherwise it is computed * based on DL channel quality estimation */ /* mcs: 24, */ }, csi_rs: { resource_auto: { nzp_csi_rs_period: 80, #if LTM ssb_set: true #endif #if FR2 trs_presence: false, #endif }, csi_report_config: [ { report_config_type: "periodic", period: 80, #if LTM report_quantity: "CRI_RI_PMI_CQI", #endif }, ], }, pucch: { pucch_group_hopping: "neither", hopping_id: -1, /* -1 = n_cell_id */ p0_nominal: -90, #if 0 pucch0: { initial_cyclic_shift: 1, n_symb: 1, }, #else pucch1: { n_cs: 3, n_occ: 3, freq_hopping: true, }, #endif #if 0 pucch2: { n_symb: 2, n_prb: 1, freq_hopping: true, }, #endif #if 0 pucch3: { bpsk: false, additional_dmrs: false, freq_hopping: true, n_prb: 1, }, #endif #if 1 pucch4: { occ_len: 4, bpsk: false, additional_dmrs: false, freq_hopping: true, }, #endif }, pusch: { mapping_type: "typeA", n_symb: 14, dmrs_add_pos: 1, dmrs_type: 1, dmrs_max_len: 1, tf_precoding: false, mcs_table: "qam64", /* without transform precoding */ mcs_table_tp: "qam64", /* with transform precoding */ ldpc_max_its: 5, p0_nominal_with_grant: -90, msg3_mcs: 4, msg3_delta_power: 0, /* in dB */ beta_offset_ack_index: 9, beta_offset_csi_part1_index: 7, beta_offset_csi_part2_index: 7, /* if defined, force the PUSCH MCS for all UEs. Otherwise it is computed from the last received PUSCH. */ /* mcs: 16, */ }, /* MAC configuration */ mac_config: { msg3_max_harq_tx: 5, ul_max_harq_tx: 5, /* max number of HARQ transmissions for uplink */ dl_max_harq_tx: 5, /* max number of HARQ transmissions for downlink */ ul_max_consecutive_retx: 30, /* disconnect UE if reached */ dl_max_consecutive_retx: 30, /* disconnect UE if reached */ periodic_bsr_timer: 20, retx_bsr_timer: 320, periodic_phr_timer: 500, prohibit_phr_timer: 200, phr_tx_power_factor_change: "dB3", sr_prohibit_timer: 0, /* in ms, 0 to disable the timer */ sr_trans_max: 64, }, cipher_algo_pref: [], integ_algo_pref: [2, 1], inactivity_timer: 10000, drb_config: "drb_nr.cfg", /* measurement configuration */ meas_config_desc: { a1_report_type: "rsrp", a1_rsrp: -60, a1_hysteresis: 10, a1_time_to_trigger: 100, a2_report_type: "rsrp", a2_rsrp: -70, a2_hysteresis: 0, a2_time_to_trigger: 100, nr_handover: { a3_report_type: "rsrp", a3_offset: 6, hysteresis: 0, time_to_trigger: 100 }, #if CONDITIONAL_HO == 1 nr_conditional_handover: { activation_trigger: { a2_report_type: "rsrp", a2_rsrp: -60, a2_hysteresis: 0, a2_time_to_trigger: 256, }, measurement_trigger: { a3_report_type: "rsrp", a3_offset: 6, hysteresis: 0, time_to_trigger: 100, } }, #endif //ssb_rsrq_filter_coeff: 3, //ssb_sinr_filter_coeff: 5 }, meas_gap_config: { pattern_id: 0 }, }, }