Adding band information

This commit is contained in:
Sébastien Dudek 2023-02-19 12:02:57 +01:00
parent 199c6076e8
commit 86a921c94a
2 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,7 @@ int main(int argc, char** argv)
if (ret == SRSRAN_UE_MIB_FOUND) {
cellog_fifo = open(fifo_file, O_WRONLY);
printf("Found CELL ID %d. %d PRB, %d ports\n", cell.id, cell.nof_prb, cell.nof_ports);
sprintf(logstr, "[CellInfo]:CID=%d;DL_EARFCN=%d;FREQ=%.1f MHz;POWER=%.1f dBm\n", cell.id, channels[freq].id, channels[freq].fd, srsran_convert_power_to_dB(found_cells[i].peak));
sprintf(logstr, "[CellInfo]:CID=%d;DL_EARFCN=%d;FREQ=%.1f MHz;BAND=%d;POWER=%.1f dBm\n", cell.id, channels[freq].id, channels[freq].fd, band, srsran_convert_power_to_dB(found_cells[i].peak));
write(cellog_fifo, logstr, strlen(logstr)+1);
close(cellog_fifo);
if (cell.nof_ports > 0) {

View File

@ -69,6 +69,7 @@ struct cells results[1024];
float rf_gain = 70.0;
char* rf_args = "";
char* rf_dev = "";
bool scan_raster_offset = false;
void usage(char* prog)
{