diff --git a/openair2/RRC/NR_UE/rrc_UE.c b/openair2/RRC/NR_UE/rrc_UE.c index a38c0fded0..e54cccf17b 100644 --- a/openair2/RRC/NR_UE/rrc_UE.c +++ b/openair2/RRC/NR_UE/rrc_UE.c @@ -311,6 +311,7 @@ NR_UE_RRC_INST_t* nr_rrc_init_ue(char* uecap_file, int nb_inst) rrc->uecap_file = uecap_file; memset(&rrc->timers_and_constants, 0, sizeof(rrc->timers_and_constants)); + set_default_timers_and_constants(&rrc->timers_and_constants); for (int i = 0; i < NB_CNX_UE; i++) { rrcPerNB_t *ptr = &rrc->perNB[i]; diff --git a/openair2/RRC/NR_UE/rrc_timers_and_constants.c b/openair2/RRC/NR_UE/rrc_timers_and_constants.c index cd5b79640c..80f7007a2b 100644 --- a/openair2/RRC/NR_UE/rrc_timers_and_constants.c +++ b/openair2/RRC/NR_UE/rrc_timers_and_constants.c @@ -120,11 +120,14 @@ void nr_rrc_handle_timers(NR_UE_RRC_INST_t *rrc) NR_UE_Timers_Constants_t *timers = &rrc->timers_and_constants; bool t300_expired = nr_timer_tick(&timers->T300); - if(t300_expired) + if(t300_expired) { + LOG_W(NR_RRC, "Timer T300 expired\n"); handle_t300_expiry(rrc); + } bool t304_expired = nr_timer_tick(&timers->T304); if(t304_expired) { + LOG_W(NR_RRC, "Timer T304 expired\n"); // TODO // For T304 of MCG, in case of the handover from NR or intra-NR // handover, initiate the RRC re-establishment procedure; @@ -134,6 +137,7 @@ void nr_rrc_handle_timers(NR_UE_RRC_INST_t *rrc) bool t310_expired = nr_timer_tick(&timers->T310); if(t310_expired) { + LOG_W(NR_RRC, "Timer T310 expired\n"); // TODO // handle detection of radio link failure // as described in 5.3.10.3 of 38.331 @@ -142,6 +146,7 @@ void nr_rrc_handle_timers(NR_UE_RRC_INST_t *rrc) bool t311_expired = nr_timer_tick(&timers->T311); if(t311_expired) { + LOG_W(NR_RRC, "Timer T311 expired\n"); // Upon T311 expiry, the UE shall perform the actions upon going to RRC_IDLE // with release cause 'RRC connection failure' nr_rrc_going_to_IDLE(rrc, RRC_CONNECTION_FAILURE, NULL); @@ -577,7 +582,7 @@ void set_default_timers_and_constants(NR_UE_Timers_Constants_t *tac) { // 38.331 9.2.3 Default values timers and constants nr_timer_setup(&tac->T310, 1000, 10); // 10ms step - nr_timer_setup(&tac->T310, 30000, 10); // 10ms step + nr_timer_setup(&tac->T311, 30000, 10); // 10ms step tac->N310_k = 1; tac->N311_k = 1; }