Debug logs added
This commit is contained in:
committed by
Anes Rose Rigiel Antony
parent
991e5ad49a
commit
46dcf9406a
@@ -1167,7 +1167,7 @@ int get_nr_prach_info_from_index(uint8_t index,
|
|||||||
if (table_6_3_3_2_4_prachConfig_Index[index][1] != -1)
|
if (table_6_3_3_2_4_prachConfig_Index[index][1] != -1)
|
||||||
format2 = (uint8_t) table_6_3_3_2_4_prachConfig_Index[index][1];
|
format2 = (uint8_t) table_6_3_3_2_4_prachConfig_Index[index][1];
|
||||||
*format = ((uint8_t) table_6_3_3_2_4_prachConfig_Index[index][0]) | (format2<<8);
|
*format = ((uint8_t) table_6_3_3_2_4_prachConfig_Index[index][0]) | (format2<<8);
|
||||||
LOG_D(MAC,"Frame %d slot %d: Getting PRACH info from index %d absoluteFrequencyPointA %u mu %u frame_type %u start_symbol %u N_t_slot %u N_dur %u \n", frame,
|
LOG_D(MAC,"Frame %d slot %d: Getting PRACH info from index %d absoluteFrequencyPointA %u mu %u frame_type %u start_symbol %u N_t_slot %u N_dur %u N_RA_slot %u RA_sfn_index %u\n", frame,
|
||||||
slot,
|
slot,
|
||||||
index,
|
index,
|
||||||
pointa,
|
pointa,
|
||||||
@@ -1175,7 +1175,9 @@ int get_nr_prach_info_from_index(uint8_t index,
|
|||||||
unpaired,
|
unpaired,
|
||||||
*start_symbol,
|
*start_symbol,
|
||||||
*N_t_slot,
|
*N_t_slot,
|
||||||
*N_dur);
|
*N_dur,
|
||||||
|
*N_RA_slot,
|
||||||
|
*RA_sfn_index);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -1213,7 +1215,7 @@ int get_nr_prach_info_from_index(uint8_t index,
|
|||||||
if (table_6_3_3_2_3_prachConfig_Index[index][1] != -1)
|
if (table_6_3_3_2_3_prachConfig_Index[index][1] != -1)
|
||||||
format2 = (uint8_t) table_6_3_3_2_3_prachConfig_Index[index][1];
|
format2 = (uint8_t) table_6_3_3_2_3_prachConfig_Index[index][1];
|
||||||
*format = ((uint8_t) table_6_3_3_2_3_prachConfig_Index[index][0]) | (format2<<8);
|
*format = ((uint8_t) table_6_3_3_2_3_prachConfig_Index[index][0]) | (format2<<8);
|
||||||
LOG_D(MAC,"Frame %d slot %d: Getting PRACH info from index %d (col 6 %lu) absoluteFrequencyPointA %u mu %u frame_type %u start_symbol %u N_t_slot %u N_dur %u \n", frame,
|
LOG_D(MAC,"Frame %d slot %d: Getting PRACH info from index %d (col 6 %lu) absoluteFrequencyPointA %u mu %u frame_type %u start_symbol %u N_t_slot %u N_dur %u N_RA_slot %u RA_sfn_index %u \n", frame,
|
||||||
slot,
|
slot,
|
||||||
index, table_6_3_3_2_3_prachConfig_Index[index][6],
|
index, table_6_3_3_2_3_prachConfig_Index[index][6],
|
||||||
pointa,
|
pointa,
|
||||||
@@ -1221,7 +1223,9 @@ int get_nr_prach_info_from_index(uint8_t index,
|
|||||||
unpaired,
|
unpaired,
|
||||||
*start_symbol,
|
*start_symbol,
|
||||||
*N_t_slot,
|
*N_t_slot,
|
||||||
*N_dur);
|
*N_dur,
|
||||||
|
*N_RA_slot,
|
||||||
|
*RA_sfn_index);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ float ssb_per_rach_occasion[8] = {0.125,0.25,0.5,1,2,4,8};
|
|||||||
|
|
||||||
int16_t ssb_index_from_prach(module_id_t module_idP,
|
int16_t ssb_index_from_prach(module_id_t module_idP,
|
||||||
frame_t frameP,
|
frame_t frameP,
|
||||||
sub_frame_t slotP,
|
sub_frame_t slotP,
|
||||||
uint16_t preamble_index,
|
uint16_t preamble_index,
|
||||||
uint8_t freq_index,
|
uint8_t freq_index,
|
||||||
uint8_t symbol) {
|
uint8_t symbol) {
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ int16_t ssb_index_from_prach(module_id_t module_idP,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_D(MAC, "Frame %d, Slot %d: Prach Occasion id = %d ssb per RO = %f index = %d \n", frameP, slotP, prach_occasion_id, num_ssb_per_RO, index);
|
LOG_D(MAC, "Frame %d, Slot %d: Prach Occasion id = %d ssb per RO = %f number of active SSB %u index = %d fdm %u symbol index %u freq_index %u\n", frameP, slotP, prach_occasion_id, num_ssb_per_RO, num_active_ssb, index, fdm, start_symbol_index, freq_index);
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
//Compute Total active SSBs and RO available
|
//Compute Total active SSBs and RO available
|
||||||
@@ -180,7 +180,7 @@ void find_SSB_and_RO_available(module_id_t module_idP) {
|
|||||||
cc->total_prach_occasions = total_RA_occasions - unused_RA_occasion;
|
cc->total_prach_occasions = total_RA_occasions - unused_RA_occasion;
|
||||||
cc->num_active_ssb = num_active_ssb;
|
cc->num_active_ssb = num_active_ssb;
|
||||||
|
|
||||||
LOG_D(MAC, "Total available RO %d, num of active SSB %d: unused RO = %d \n", cc->total_prach_occasions, cc->num_active_ssb, unused_RA_occasion);
|
LOG_D(MAC, "Total available RO %d, num of active SSB %d: unused RO = %d max_association_period %u\n", cc->total_prach_occasions, cc->num_active_ssb, unused_RA_occasion, max_association_period);
|
||||||
}
|
}
|
||||||
|
|
||||||
void schedule_nr_prach(module_id_t module_idP, frame_t frameP, sub_frame_t slotP) {
|
void schedule_nr_prach(module_id_t module_idP, frame_t frameP, sub_frame_t slotP) {
|
||||||
@@ -365,7 +365,7 @@ void nr_schedule_msg2(uint16_t rach_frame, uint16_t rach_slot,
|
|||||||
}
|
}
|
||||||
// *msg2_slot = start_next_period + last_dl_slot_period; // initializing scheduling of slot to next mixed (or last dl) slot
|
// *msg2_slot = start_next_period + last_dl_slot_period; // initializing scheduling of slot to next mixed (or last dl) slot
|
||||||
*msg2_frame = (*msg2_slot>(rach_slot))? rach_frame : (rach_frame +1);
|
*msg2_frame = (*msg2_slot>(rach_slot))? rach_frame : (rach_frame +1);
|
||||||
|
|
||||||
switch(response_window){
|
switch(response_window){
|
||||||
case NR_RACH_ConfigGeneric__ra_ResponseWindow_sl1:
|
case NR_RACH_ConfigGeneric__ra_ResponseWindow_sl1:
|
||||||
slot_window = 1;
|
slot_window = 1;
|
||||||
@@ -429,8 +429,8 @@ void nr_initiate_ra_proc(module_id_t module_idP,
|
|||||||
|
|
||||||
uint8_t index = ssb_index_from_prach(module_idP,
|
uint8_t index = ssb_index_from_prach(module_idP,
|
||||||
frameP,
|
frameP,
|
||||||
slotP,
|
slotP,
|
||||||
preamble_index,
|
preamble_index,
|
||||||
freq_index,
|
freq_index,
|
||||||
symbol);
|
symbol);
|
||||||
|
|
||||||
@@ -515,13 +515,14 @@ void nr_initiate_ra_proc(module_id_t module_idP,
|
|||||||
SSB_list->SSB_UE_list[UE_id].active = true;
|
SSB_list->SSB_UE_list[UE_id].active = true;
|
||||||
SSB_list->num_UEs += 1;
|
SSB_list->num_UEs += 1;
|
||||||
|
|
||||||
LOG_I(MAC,"[gNB %d][RAPROC] CC_id %d Frame %d Activating Msg2 generation in frame %d, slot %d using RA rnti %x\n",
|
LOG_I(MAC,"[gNB %d][RAPROC] CC_id %d Frame %d Activating Msg2 generation in frame %d, slot %d using RA rnti %x SSB index %u\n",
|
||||||
module_idP,
|
module_idP,
|
||||||
CC_id,
|
CC_id,
|
||||||
frameP,
|
frameP,
|
||||||
ra->Msg2_frame,
|
ra->Msg2_frame,
|
||||||
ra->Msg2_slot,
|
ra->Msg2_slot,
|
||||||
ra->RA_rnti);
|
ra->RA_rnti,
|
||||||
|
SSB_list->ssb_index);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user