|
|
|
@ -388,6 +388,22 @@ int main(int argc, char** argv)
|
|
|
|
|
}
|
|
|
|
|
// set coreset0 bandwidth (it is used in RA when ss_type = common3)
|
|
|
|
|
dci_cfg.coreset0_bw = coreset_n_rb;
|
|
|
|
|
|
|
|
|
|
// SCH configuration parameters
|
|
|
|
|
if (pdsch_time_ra_start >= 0 && pdsch_time_ra_length >= 0) {
|
|
|
|
|
auto last_pdsch_symbol = (uint16_t)(pdsch_time_ra_start + pdsch_time_ra_length);
|
|
|
|
|
|
|
|
|
|
if (last_pdsch_symbol > SRSRAN_NSYMB_PER_SLOT_NR) {
|
|
|
|
|
ERROR("incorrect PDSCH start symbol or length provided");
|
|
|
|
|
return clean_exit(ret);
|
|
|
|
|
}
|
|
|
|
|
uint32_t sliv = srsran_sliv_from_s_and_l(SRSRAN_NSYMB_PER_SLOT_NR, pdsch_time_ra_start, pdsch_time_ra_length);
|
|
|
|
|
|
|
|
|
|
pdsch_hl_cfg.nof_dedicated_time_ra = 1;
|
|
|
|
|
pdsch_hl_cfg.dedicated_time_ra[0].mapping_type = srsran_sch_mapping_type_A;
|
|
|
|
|
pdsch_hl_cfg.dedicated_time_ra[0].k = 0;
|
|
|
|
|
pdsch_hl_cfg.dedicated_time_ra[0].sliv = sliv;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
char coreset_info[512] = {};
|
|
|
|
@ -412,22 +428,6 @@ int main(int argc, char** argv)
|
|
|
|
|
pdcch_cfg.ra_search_space = *search_space;
|
|
|
|
|
pdcch_cfg.ra_search_space.type = srsran_search_space_type_common_1;
|
|
|
|
|
|
|
|
|
|
// SCH configuration parameters
|
|
|
|
|
if (pdsch_time_ra_start >= 0 && pdsch_time_ra_length >= 0) {
|
|
|
|
|
auto last_pdsch_symbol = (uint16_t) (pdsch_time_ra_start + pdsch_time_ra_length);
|
|
|
|
|
|
|
|
|
|
if (last_pdsch_symbol > SRSRAN_NSYMB_PER_SLOT_NR) {
|
|
|
|
|
ERROR("incorrect PDSCH start symbol or length provided");
|
|
|
|
|
return clean_exit(ret);
|
|
|
|
|
}
|
|
|
|
|
uint32_t sliv = srsran_sliv_from_s_and_l(SRSRAN_NSYMB_PER_SLOT_NR, pdsch_time_ra_start, pdsch_time_ra_length);
|
|
|
|
|
|
|
|
|
|
pdsch_hl_cfg.nof_dedicated_time_ra = 1;
|
|
|
|
|
pdsch_hl_cfg.dedicated_time_ra[0].mapping_type = srsran_sch_mapping_type_A;
|
|
|
|
|
pdsch_hl_cfg.dedicated_time_ra[0].k = 0;
|
|
|
|
|
pdsch_hl_cfg.dedicated_time_ra[0].sliv = sliv;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (srsran_ue_dl_nr_init(&ue_dl, buffer, &ue_dl_args)) {
|
|
|
|
|
ERROR("Error UE DL");
|
|
|
|
|
return clean_exit(ret);
|
|
|
|
|