From cf5a6f058061f92f01962dc04044ba0fccd24d7c Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 5 Jul 2018 14:09:46 +0200 Subject: [PATCH] Increased PUCCH RLF threshold and default number of errors --- srsenb/hdr/phy/phch_worker.h | 2 +- srsenb/src/main.cc | 2 +- srsenb/src/upper/rrc.cc | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/srsenb/hdr/phy/phch_worker.h b/srsenb/hdr/phy/phch_worker.h index a0ee6fd91..776ba0a1b 100644 --- a/srsenb/hdr/phy/phch_worker.h +++ b/srsenb/hdr/phy/phch_worker.h @@ -71,7 +71,7 @@ public: private: const static float PUSCH_RL_SNR_DB_TH = 1.0; - const static float PUCCH_RL_CORR_TH = 0.1; + const static float PUCCH_RL_CORR_TH = 0.15; void work_imp(); diff --git a/srsenb/src/main.cc b/srsenb/src/main.cc index e9b94d531..a993ebd3e 100644 --- a/srsenb/src/main.cc +++ b/srsenb/src/main.cc @@ -167,7 +167,7 @@ void parse_args(all_args_t *args, int argc, char* argv[]) { "Number of PHY threads") ("expert.link_failure_nof_err", - bpo::value(&args->expert.mac.link_failure_nof_err)->default_value(50), + bpo::value(&args->expert.mac.link_failure_nof_err)->default_value(100), "Number of PUSCH failures after which a radio-link failure is triggered") ("expert.max_prach_offset_us", diff --git a/srsenb/src/upper/rrc.cc b/srsenb/src/upper/rrc.cc index 642a515af..3a9bbd0f2 100644 --- a/srsenb/src/upper/rrc.cc +++ b/srsenb/src/upper/rrc.cc @@ -557,7 +557,7 @@ void rrc::parse_ul_dcch(uint16_t rnti, uint32_t lcid, byte_buffer_t *pdu) void rrc::process_rl_failure(uint16_t rnti) { - if (users.count(rnti) == 0) { + if (users.count(rnti) == 1) { uint32_t n_rfl = users[rnti].rl_failure(); if (n_rfl == 1) { rrc_log->info("Radio-Link failure detected rnti=0x%x\n", rnti); @@ -573,6 +573,8 @@ void rrc::process_rl_failure(uint16_t rnti) } else { rrc_log->info("%d Radio-Link failure detected rnti=0x%x\n", n_rfl, rnti); } + } else { + rrc_log->error("Radio-Link failure detected for uknown rnti=0x%x\n", rnti); } }