标签:
LteRrcSap::ReportConfigEutra config; config.eventId = LteRrcSap::ReportConfigEutra::EVENT_A1; config.threshold1.choice = LteRrcSap::ThresholdEutra::THRESHOLD_RSRP; config.threshold1.range = 41; config.triggerQuantity = LteRrcSap::ReportConfigEutra::RSRP; config.reportInterval = LteRrcSap::ReportConfigEutra::MS480; std::vector<uint8_t> measIdList; NetDeviceContainer::Iterator it; for (it = devs.Begin (); it != devs.End (); it++) { Ptr<NetDevice> dev = *it; Ptr<LteEnbNetDevice> enbDev = dev->GetObject<LteEnbNetDevice> (); Ptr<LteEnbRrc> enbRrc = enbDev->GetRrc (); uint8_t measId = enbRrc->AddUeMeasReportConfig (config); measIdList.push_back (measId); // remember the measId created enbRrc->TraceConnect ("RecvMeasurementReport", "context", MakeCallback (&RecvMeasurementReportCallback)); }
void RecvMeasurementReportCallback (std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti, LteRrcSap::MeasurementReport measReport);
参考文献
LTE Module User Documentation(翻译11)——配置用户测量
标签:
原文地址:http://www.cnblogs.com/alice123/p/5503146.html