write decoded PSSCH symbols to file with PHY debug enabled

This commit is contained in:
Andre Puschmann 2020-04-22 18:56:15 +02:00
parent baf0ad5bf4
commit 955960f22d
1 changed files with 7 additions and 1 deletions

View File

@ -357,7 +357,6 @@ int main(int argc, char** argv)
num_decoded_sci++;
// Decode PSSCH
uint32_t sub_channel_start_idx = 0;
uint32_t L_subCH = 0;
srslte_ra_sl_type0_from_riv(
@ -394,6 +393,13 @@ int main(int argc, char** argv)
srslte_vec_fprint_byte(stdout, tb, pssch.sl_sch_tb_len);
num_decoded_tb++;
}
if (SRSLTE_VERBOSE_ISDEBUG()) {
char filename[64];
snprintf(filename, 64, "pssch_rx_syms_sf%d.bin", num_subframes);
printf("Saving PSSCH symbols (%d) to %s\n", pssch.G / pssch.Qm, filename);
srslte_vec_save_file(filename, pssch.symbols, pssch.G / pssch.Qm * sizeof(cf_t));
}
}
}
}