srsRAN_4G icon indicating copy to clipboard operation
srsRAN_4G copied to clipboard

ue earfcn list iteration issue

Open jgiovatto opened this issue 2 years ago • 2 comments

Issue Description

setting ue.conf dl_earfcn = 2850,3050

Does not work as expected.

Expected Behavior

Expect to change frequency during cell search .

Actual Behaviour

Uses the first entry only.

Additional Information

Proposed fix:

''' diff --git a/srsue/src/phy/sync.cc b/srsue/src/phy/sync.cc index c346d2cf3..905aece2d 100644 --- a/srsue/src/phy/sync.cc +++ b/srsue/src/phy/sync.cc @@ -290,7 +290,7 @@ rrc_interface_phy_lte::cell_search_ret_t sync::cell_search_start(phy_cell_t* fou }

cellsearch_earfcn_index++;

  • if (cellsearch_earfcn_index >= worker_com->args->dl_earfcn_list.size() or earfcn < 0) {
  • if (cellsearch_earfcn_index >= worker_com->args->dl_earfcn_list.size() or earfcn == 0) { Info("Cell Search: No more frequencies in the current EARFCN set"); cellsearch_earfcn_index = 0; ret.last_freq = rrc_interface_phy_lte::cell_search_ret_t::NO_MORE_FREQS; '''

jgiovatto avatar May 04 '23 14:05 jgiovatto

Did you solve this?

therustyalex avatar Sep 10 '24 12:09 therustyalex

Did anyone find a solution for changing parameters in real time?

stackprogramer avatar Nov 08 '24 17:11 stackprogramer