mobile-insight / mobileinsight-core

Mobile Network Intelligence Made Easy -- MobileInsight core functionalities
http://www.mobileinsight.net
Other
106 stars 82 forks source link

LTE bandwidth predictor fix #127

Open Codeman-from-unknown-city opened 1 year ago

Codeman-from-unknown-city commented 1 year ago

This fix make LTE bandwidth predictor works.

What changed:

TrackCellInfoAnalyzer notifier method:

    def __callback_mib_cell(self, msg):
        self.__mib_antenna = msg.data['Number of Antenna']
        self.__mib_dl_bandwidth = msg.data['DL BW']
        self.__mib_cell_id = msg.data['Physical Cell ID']
        self.__mib_freq = msg.data['Freq']
        event = Event(None, 'MIB_CELL', None)   # sends event with
        self.send(event)                        # 'None' in data field

Event is filtered in Analyzer base method:

    def recv(self, module, event):
        ...
        if not event.data:  # the event is dropped here
            return
        ...

In result the LteBandwidthPredictor never starts.