rrc: include pci when logging serving cell measurement

this should facilitate easier log parsing and plotting
if the cell measurements _always_ include the PCI, even
in the case of the serving cell

15:49:11.357447 [RRC ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-11.52 dBm, cfo=+0.1 Hz
15:49:11.391610 [RRC ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-11.52 dBm, cfo=-0.4 Hz
15:49:11.427325 [RRC ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-11.52 dBm, cfo=-0.6 Hz
15:49:11.463101 [RRC ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-11.52 dBm, cfo=-0.7 Hz
15:49:11.499817 [RRC ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-11.51 dBm, cfo=+0.1 Hz
15:49:11.499828 [RRC ] [I] MEAS:  New measurement neighbour cell: earfcn=2850, pci=0, rsrp=-12.16 dBm, cfo=-0.8 Hz
15:49:11.535027 [RRC ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-11.46 dBm, cfo=-0.8 Hz
15:49:11.571707 [RRC ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-11.46 dBm, cfo=-0.9 Hz
15:49:11.607932 [RRC ] [I] MEAS:  New measurement serving cell: earfcn=0, pci=1, rsrp=-11.52 dBm, cfo=-0.8 Hz
master
Andre Puschmann 4 years ago
parent 6e0abd30dd
commit 0ef8e1fdac

@ -66,7 +66,6 @@ using srslte::byte_buffer_t;
namespace srsue { namespace srsue {
class phy_controller; class phy_controller;
class rrc : public rrc_interface_nas, class rrc : public rrc_interface_nas,

@ -403,16 +403,13 @@ bool meas_cell_list::process_new_cell_meas(const std::vector<phy_meas_t>&
neighbour_added |= add_meas_cell(m); neighbour_added |= add_meas_cell(m);
} }
if (is_serving_cell) { log_h->info("MEAS: New measurement %s cell: earfcn=%d, pci=%d, rsrp=%.2f dBm, cfo=%+.1f Hz\n",
log_h->info("MEAS: New measurement serving cell: rsrp=%.2f dBm.\n", m.rsrp); is_serving_cell ? "serving" : "neighbour",
} else {
log_h->info("MEAS: New measurement neighbour cell: earfcn=%d, pci=%d, rsrp=%.2f dBm, cfo=%+.1f Hz\n",
m.earfcn, m.earfcn,
m.pci, m.pci,
m.rsrp, m.rsrp,
m.cfo_hz); m.cfo_hz);
} }
}
return neighbour_added; return neighbour_added;
} }

Loading…
Cancel
Save