Tdd configuration and a small fix for get_band() for FR2
This commit is contained in:
@@ -687,13 +687,6 @@ int main( int argc, char **argv ) {
|
|||||||
fapi_nr_config_request_t *nrUE_config = &UE[CC_id]->nrUE_config;
|
fapi_nr_config_request_t *nrUE_config = &UE[CC_id]->nrUE_config;
|
||||||
nr_init_frame_parms_ue(frame_parms[CC_id],nrUE_config,NORMAL);
|
nr_init_frame_parms_ue(frame_parms[CC_id],nrUE_config,NORMAL);
|
||||||
|
|
||||||
// Overwrite DL frequency (for FR2 testing)
|
|
||||||
if (downlink_frequency[0][0]!=0){
|
|
||||||
frame_parms[CC_id]->dl_CarrierFreq = downlink_frequency[0][0];
|
|
||||||
if (frame_parms[CC_id]->frame_type == TDD)
|
|
||||||
frame_parms[CC_id]->ul_CarrierFreq = downlink_frequency[0][0];
|
|
||||||
}
|
|
||||||
|
|
||||||
init_nr_ue_vars(UE[CC_id],frame_parms[CC_id],0,abstraction_flag);
|
init_nr_ue_vars(UE[CC_id],frame_parms[CC_id],0,abstraction_flag);
|
||||||
|
|
||||||
UE[CC_id]->mac_enabled = 1;
|
UE[CC_id]->mac_enabled = 1;
|
||||||
@@ -752,8 +745,14 @@ int main( int argc, char **argv ) {
|
|||||||
UE[CC_id]->N_TA_offset = (int)(N_TA_offset * factor);
|
UE[CC_id]->N_TA_offset = (int)(N_TA_offset * factor);
|
||||||
LOG_I(PHY,"UE %d Setting N_TA_offset to %d samples (factor %f, UL Freq %lu, N_RB %d)\n", UE[CC_id]->Mod_id, UE[CC_id]->N_TA_offset, factor, UE[CC_id]->frame_parms.ul_CarrierFreq, N_RB);
|
LOG_I(PHY,"UE %d Setting N_TA_offset to %d samples (factor %f, UL Freq %lu, N_RB %d)\n", UE[CC_id]->Mod_id, UE[CC_id]->N_TA_offset, factor, UE[CC_id]->frame_parms.ul_CarrierFreq, N_RB);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
// Overwrite DL frequency (for FR2 testing)
|
||||||
|
if (downlink_frequency[0][0]!=0){
|
||||||
|
frame_parms[CC_id]->dl_CarrierFreq = downlink_frequency[0][0];
|
||||||
|
if (frame_parms[CC_id]->frame_type == TDD)
|
||||||
|
frame_parms[CC_id]->ul_CarrierFreq = downlink_frequency[0][0];
|
||||||
|
}
|
||||||
|
}
|
||||||
// printf("tx_max_power = %d -> amp %d\n",tx_max_power[0],get_tx_amp(tx_max_poHwer,tx_max_power));
|
// printf("tx_max_power = %d -> amp %d\n",tx_max_power[0],get_tx_amp(tx_max_poHwer,tx_max_power));
|
||||||
init_openair0();
|
init_openair0();
|
||||||
// init UE_PF_PO and mutex lock
|
// init UE_PF_PO and mutex lock
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ void config_common_ue(NR_UE_MAC_INST_t *mac,
|
|||||||
uint16_t band;
|
uint16_t band;
|
||||||
int32_t offset;
|
int32_t offset;
|
||||||
|
|
||||||
get_band((cfg->carrier_config.dl_frequency)*1000,
|
get_band((uint64_t)(cfg->carrier_config.dl_frequency)*1000,
|
||||||
&band,
|
&band,
|
||||||
&offset,
|
&offset,
|
||||||
&frame_type);
|
&frame_type);
|
||||||
|
|||||||
@@ -170,11 +170,11 @@ gNBs =
|
|||||||
# pattern1
|
# pattern1
|
||||||
# dl_UL_TransmissionPeriodicity
|
# dl_UL_TransmissionPeriodicity
|
||||||
# 0=ms0p5, 1=ms0p625, 2=ms1, 3=ms1p25, 4=ms2, 5=ms2p5, 6=ms5, 7=ms10
|
# 0=ms0p5, 1=ms0p625, 2=ms1, 3=ms1p25, 4=ms2, 5=ms2p5, 6=ms5, 7=ms10
|
||||||
dl_UL_TransmissionPeriodicity = 5;
|
dl_UL_TransmissionPeriodicity = 3;
|
||||||
nrofDownlinkSlots = 10;
|
nrofDownlinkSlots = 7;
|
||||||
nrofDownlinkSymbols = 0;
|
nrofDownlinkSymbols = 6;
|
||||||
nrofUplinkSlots = 10;
|
nrofUplinkSlots = 2;
|
||||||
nrofUplinkSymbols = 0;
|
nrofUplinkSymbols = 4;
|
||||||
|
|
||||||
ssPBCH_BlockPower = 10;
|
ssPBCH_BlockPower = 10;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user