|
|
|
@ -2547,6 +2547,8 @@ void rrc::rrc_meas::calculate_triggers(uint32_t tti)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (std::map<uint32_t, meas_t>::iterator m = active.begin(); m != active.end(); ++m) {
|
|
|
|
|
report_cfg_t *cfg = &reports_cfg[m->second.report_id];
|
|
|
|
|
float hyst = 0.5*cfg->event.hysteresis;
|
|
|
|
@ -2571,13 +2573,19 @@ void rrc::rrc_meas::calculate_triggers(uint32_t tti)
|
|
|
|
|
enter_condition = Mp + hyst < range_to_value(cfg->trigger_quantity, cfg->event.event_a1.eutra.range);
|
|
|
|
|
exit_condition = Mp - hyst > range_to_value(cfg->trigger_quantity, cfg->event.event_a1.eutra.range);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// check only if
|
|
|
|
|
gen_report |= process_event(&cfg->event, tti, enter_condition, exit_condition,
|
|
|
|
|
&m->second, &m->second.cell_values[serving_cell_idx]);
|
|
|
|
|
&m->second, &pcell_measurement);
|
|
|
|
|
|
|
|
|
|
if (gen_report) {
|
|
|
|
|
log_h->info("Triggered by A1/A2 event\n");
|
|
|
|
|
}
|
|
|
|
|
// Rest are evaluated for every cell in frequency
|
|
|
|
|
} else {
|
|
|
|
|
meas_obj_t *obj = &objects[m->second.object_id];
|
|
|
|
|
for (std::map<uint32_t, meas_cell_t>::iterator cell = obj->cells.begin(); cell != obj->cells.end(); ++cell) {
|
|
|
|
|
if (m->second.cell_values.count(cell->second.pci)) {
|
|
|
|
|
float Ofn = obj->q_offset;
|
|
|
|
|
float Ocn = cell->second.q_offset;
|
|
|
|
|
float Mn = m->second.cell_values[cell->second.pci].ms[cfg->trigger_quantity];
|
|
|
|
@ -2609,7 +2617,9 @@ void rrc::rrc_meas::calculate_triggers(uint32_t tti)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (gen_report) {
|
|
|
|
|
log_h->info("Generate report MeasId=%d, from event\n", m->first);
|
|
|
|
|
generate_report(m->first);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2639,6 +2649,7 @@ void rrc::rrc_meas::ho_finish() {
|
|
|
|
|
bool rrc::rrc_meas::timer_expired(uint32_t timer_id) {
|
|
|
|
|
for (std::map<uint32_t, meas_t>::iterator iter = active.begin(); iter != active.end(); ++iter) {
|
|
|
|
|
if (iter->second.periodic_timer == timer_id) {
|
|
|
|
|
log_h->info("Generate report MeasId=%d, from timerId=%d\n", iter->first, timer_id);
|
|
|
|
|
generate_report(iter->first);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
@ -2822,6 +2833,8 @@ void rrc::rrc_meas::parse_meas_config(LIBLTE_RRC_MEAS_CONFIG_STRUCT *cfg)
|
|
|
|
|
remove_meas_id(cfg->meas_id_to_remove_list[i]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
log_h->info("nof active measId=%d\n", active.size());
|
|
|
|
|
|
|
|
|
|
// Measurement identity addition/modification 5.5.2.3
|
|
|
|
|
if (cfg->meas_id_to_add_mod_list_present) {
|
|
|
|
|
for (uint32_t i=0;i<cfg->meas_id_to_add_mod_list.N_meas_id;i++) {
|
|
|
|
@ -2836,8 +2849,9 @@ void rrc::rrc_meas::parse_meas_config(LIBLTE_RRC_MEAS_CONFIG_STRUCT *cfg)
|
|
|
|
|
}
|
|
|
|
|
active[measId->meas_id].object_id = measId->meas_obj_id;
|
|
|
|
|
active[measId->meas_id].report_id = measId->rep_cnfg_id;
|
|
|
|
|
log_h->info("MEAS: %s measId=%d, measObjectId=%d, reportConfigId=%d\n",
|
|
|
|
|
is_new?"Added":"Updated", measId->meas_id, measId->meas_obj_id, measId->rep_cnfg_id);
|
|
|
|
|
log_h->info("MEAS: %s measId=%d, measObjectId=%d, reportConfigId=%d, nof_values=%d\n",
|
|
|
|
|
is_new?"Added":"Updated", measId->meas_id, measId->meas_obj_id, measId->rep_cnfg_id,
|
|
|
|
|
active[measId->meas_id].cell_values.size());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|