Improved NR PHY logging info

master
Xavier Arteaga 3 years ago
parent b3a844c533
commit 3c40cd2840

@ -63,6 +63,7 @@ SRSRAN_API int srsran_gnb_ul_get_pucch(srsran_gnb_ul_t* q,
SRSRAN_API uint32_t srsran_gnb_ul_pucch_info(srsran_gnb_ul_t* q, SRSRAN_API uint32_t srsran_gnb_ul_pucch_info(srsran_gnb_ul_t* q,
const srsran_pucch_nr_resource_t* resource, const srsran_pucch_nr_resource_t* resource,
const srsran_uci_data_nr_t* uci_data, const srsran_uci_data_nr_t* uci_data,
const srsran_csi_trs_measurements_t* csi,
char* str, char* str,
uint32_t str_len); uint32_t str_len);

@ -302,6 +302,7 @@ int srsran_gnb_ul_get_pucch(srsran_gnb_ul_t* q,
uint32_t srsran_gnb_ul_pucch_info(srsran_gnb_ul_t* q, uint32_t srsran_gnb_ul_pucch_info(srsran_gnb_ul_t* q,
const srsran_pucch_nr_resource_t* resource, const srsran_pucch_nr_resource_t* resource,
const srsran_uci_data_nr_t* uci_data, const srsran_uci_data_nr_t* uci_data,
const srsran_csi_trs_measurements_t* csi,
char* str, char* str,
uint32_t str_len) uint32_t str_len)
{ {
@ -311,10 +312,11 @@ uint32_t srsran_gnb_ul_pucch_info(srsran_gnb_ul_t* q,
uint32_t len = 0; uint32_t len = 0;
len += srsran_pucch_nr_info(resource, uci_data, str, str_len - len); len += srsran_pucch_nr_info(resource, uci_data, &str[len], str_len - len);
len = srsran_print_check( len += srsran_csi_meas_info_short(csi, &str[len], str_len - len);
str, str_len, len, "snr=%+.1f valid=%c", q->chest_pucch.snr_db, uci_data->value.valid ? 'y' : 'n');
len = srsran_print_check(str, str_len, len, "valid=%c ", uci_data->value.valid ? 'y' : 'n');
return len; return len;
} }

@ -195,6 +195,7 @@ bool slot_worker::work_ul()
srsran_gnb_ul_pucch_info(&gnb_ul, srsran_gnb_ul_pucch_info(&gnb_ul,
&pucch.candidates[0].resource, &pucch.candidates[0].resource,
&pucch_info[best_candidate].uci_data, &pucch_info[best_candidate].uci_data,
&pucch_info[best_candidate].csi,
str.data(), str.data(),
(uint32_t)str.size()); (uint32_t)str.size());

@ -161,20 +161,13 @@ void cc_worker::decode_pdcch_dl()
if (logger.debug.enabled()) { if (logger.debug.enabled()) {
for (uint32_t i = 0; i < ue_dl.pdcch_info_count; i++) { for (uint32_t i = 0; i < ue_dl.pdcch_info_count; i++) {
const srsran_ue_dl_nr_pdcch_info_t* info = &ue_dl.pdcch_info[i]; const srsran_ue_dl_nr_pdcch_info_t* info = &ue_dl.pdcch_info[i];
logger.debug( std::array<char, 512> dci_ctx;
"PDCCH: dci=%s, %s-rnti=%x, crst_id=%d, ss_type=%s, ncce=%d, al=%d, EPRE=%+.2f, RSRP=%+.2f, corr=%.3f; " srsran_dci_ctx_to_str(&info->dci_ctx, dci_ctx.data(), (uint32_t)dci_ctx.size());
"evm=%f; nof_bits=%d; crc=%s;", logger.debug("PDCCH: %sEPRE=%+.2f, RSRP=%+.2f, corr=%.3f nof_bits=%d crc=%s",
srsran_dci_format_nr_string(info->dci_ctx.format), dci_ctx.data(),
srsran_rnti_type_str_short(info->dci_ctx.rnti_type),
info->dci_ctx.rnti,
info->dci_ctx.coreset_id,
srsran_ss_type_str(info->dci_ctx.ss_type),
info->dci_ctx.location.ncce,
info->dci_ctx.location.L,
info->measure.epre_dBfs, info->measure.epre_dBfs,
info->measure.rsrp_dBfs, info->measure.rsrp_dBfs,
info->measure.norm_corr, info->measure.norm_corr,
info->result.evm,
info->nof_bits, info->nof_bits,
info->result.crc ? "OK" : "KO"); info->result.crc ? "OK" : "KO");
} }

Loading…
Cancel
Save