mirror of https://github.com/PentHertz/srsLTE.git
Add CC, PCI and earfcn
This commit is contained in:
parent
568dbdb6d6
commit
78463b8092
|
@ -77,7 +77,8 @@ void metrics_csv::set_metrics(const ue_metrics_t& metrics, const uint32_t period
|
|||
pthread_mutex_lock(&mutex);
|
||||
if (file.is_open() && ue != NULL) {
|
||||
if (n_reports == 0) {
|
||||
file << "time;cc;pci;rsrp;pl;cfo;dl_mcs;dl_snr;dl_turbo;dl_brate;dl_bler;ul_ta;ul_mcs;ul_buff;ul_brate;ul_bler;"
|
||||
file << "time;cc;pci;earfcn,rsrp;pl;cfo;dl_mcs;dl_snr;dl_turbo;dl_brate;dl_bler;ul_ta;ul_mcs;ul_buff;ul_brate;ul_"
|
||||
"bler;"
|
||||
"rf_o;rf_"
|
||||
"u;rf_l;is_attached\n";
|
||||
}
|
||||
|
@ -85,6 +86,11 @@ void metrics_csv::set_metrics(const ue_metrics_t& metrics, const uint32_t period
|
|||
for (uint32_t r = 0; r < metrics.phy.nof_active_cc; r++) {
|
||||
file << (metrics_report_period * n_reports) << ";";
|
||||
|
||||
// CC and PCI
|
||||
file << r << ";";
|
||||
file << metrics.phy.info[r].pci << ";";
|
||||
file << metrics.phy.info[r].dl_earfcn << ";";
|
||||
|
||||
// Print PHY metrics for first CC
|
||||
file << float_to_string(metrics.phy.dl[r].rsrp, 2);
|
||||
file << float_to_string(metrics.phy.dl[r].pathloss, 2);
|
||||
|
|
Loading…
Reference in New Issue