mobile-insight / mobileinsight-core

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

Having a problem to decode a captured log using monitor-example.py on a Quectel EC25 modem #105

Open fjremnav opened 3 years ago

fjremnav commented 3 years ago

I have a Quectel EC25 modem connected to a linux PC. and am able to use monitor-example.py in mobileinsight to capture logs with this. However, python3 ./offline-analysis-example.py monitor-example.mi2log to parse it, I got the following output and it seems not right. The log is the attachment for purpose of reproducing this issue.

[INFO] [OfflineReplayer]: Enable LTE_RRC_OTA_Packet [INFO] [OfflineReplayer]: Enable LTE_RRC_Serv_Cell_Info [INFO] [OfflineReplayer]: Enable LTE_RRC_CDRX_Events_Info [INFO] [WcdmaRrcAnalyzer]: Initialing WcdmaRrcAnalyzer.. [INFO] [OfflineReplayer]: Enable WCDMA_RRC_OTA_Packet [INFO] [OfflineReplayer]: Enable WCDMA_RRC_Serv_Cell_Info [INFO] [OfflineReplayer]: Enable WCDMA_RRC_States [INFO] [OfflineReplayer]: Enable LTE_NAS_ESM_OTA_Incoming_Packet [INFO] [OfflineReplayer]: Enable LTE_NAS_ESM_OTA_Outgoing_Packet [INFO] [OfflineReplayer]: Enable LTE_NAS_EMM_OTA_Incoming_Packet [INFO] [OfflineReplayer]: Enable LTE_NAS_EMM_OTA_Outgoing_Packet [INFO] [OfflineReplayer]: Enable LTE_NAS_EMM_State [INFO] [OfflineReplayer]: Enable LTE_NAS_ESM_State [INFO] [UmtsNasAnalyzer]: Initialing UmtsNasAnalyzer.. [INFO] [OfflineReplayer]: Enable UMTS_NAS_OTA_Packet [INFO] [OfflineReplayer]: Enable UMTS_NAS_GMM_State [INFO] [OfflineReplayer]: Enable UMTS_NAS_MM_State [INFO] [OfflineReplayer]: Enable UMTS_NAS_MM_REG_State [INFO] [OfflineReplayer]: Enable LTE_PHY_PDSCH_Packet [INFO] [OfflineReplayer]: Enable LTE_PHY_PUSCH_CSF [INFO] [OfflineReplayer]: Enable LTE_MAC_UL_Tx_Statistics [INFO] [OfflineReplayer]: Enable LTE_PHY_PUCCH_Tx_Report [INFO] [OfflineReplayer]: Enable LTE_PHY_PUSCH_Tx_Report [INFO] [OfflineReplayer]: Enable LTE_MAC_UL_Buffer_Status_Internal [INFO] [OfflineReplayer]: Enable LTE_PHY_PDSCH_Stat_Indication [INFO] [OfflineReplayer]: STARTED: 1632789290.0979013 [INFO] [OfflineReplayer]: Loading ./offline_log_example.mi2log [INFO] [OfflineReplayer]: Loading: 1632789290.097962 [INFO] [UmtsNasAnalyzer]: Find One UMTS_NAS_MM_State [INFO] [UmtsNasAnalyzer]: MmStatus MM.state=MM_IDLE MM.substate=MM_NO_CELL_AVAILABLE MM.update_status=UPDATED PLMN=unknown LAC=unknown R AC=unknown Network_operation_mode=unknown CS/PS_service_type=unknown [INFO] [UmtsNasAnalyzer]: MM State: MM_IDLE [INFO] [UmtsNasAnalyzer]: Find One UMTS_NAS_GMM_State [INFO] [UmtsNasAnalyzer]: GMM State: GMM_DEREGISTERED [INFO] [LteNasAnalyzer]: EmmStatus EMM.state=EMM_DEREGISTERED EMM.substate=EMM_DEREGISTERED_ATTACH_NEEDED MCC=310 MNC=410 MMEGI=0x50ff M MEC=0x16 TMSI=0x77fd95c0 [INFO] [LteNasAnalyzer]: Call flow status: IDLE [INFO] [LteNasAnalyzer]: EMM state: EMM_DEREGISTERED [INFO] [UmtsNasAnalyzer]: Find One UMTS_NAS_GMM_State [INFO] [UmtsNasAnalyzer]: Find One UMTS_NAS_GMM_State [INFO] [LteRrcAnalyzer]: LteRrcStatus cellID=405 frequency=5780 TAC=34624 connected=False [INFO] [LteNasAnalyzer]: EmmStatus EMM.state=EMM_DEREGISTERED EMM.substate=EMM sub-state = 7 MCC=310 MNC=410 MMEGI=0x50ff MMEC=0x16 TMSI =0x77fd95c0 [INFO] [UmtsNasAnalyzer]: Find One UMTS_NAS_GMM_State [INFO] [UmtsNasAnalyzer]: Find One UMTS_NAS_GMM_State [INFO] [LteNasAnalyzer]: EmmStatus EMM.state=EMM_REGISTERED_INITIATED EMM.substate=EMM_WAITING_FOR_NW_RESPONSE MCC=310 MNC=410 MMEGI=0x5 0ff MMEC=0x16 TMSI=0x77fd95c0 [INFO] [LteNasAnalyzer]: EMM state: EMM_REGISTERED_INITIATED [INFO] [LteNasAnalyzer]: CSFB Capbility: True [INFO] [LteNasAnalyzer]: EsmQos peak_tput=unknown mean_tput=unknown max_bitrate_ulink=unknown max_bitrate_dlink=unknown guaranteed_birat e_ulink=unknown guaranteed_birate_dlink=unknown max_bitrate_ulink_ext=unknown max_bitrate_dlink_ext=unknown guaranteed_birate_ulinkext=unknown guaranteed birate_dlink_ext=unknown [INFO] [LteNasAnalyzer]: EsmQos delivery_order=unknown traffic_class=unknown QCI=unknown delay_class=unknown transfer_delay=unknown resi dual_BER=unknown [INFO] [LtePhyAnalyzer]: PUSCH_TX_POWER: {'tx power': 22, 'timestamp': '2016-03-23 21:55:49.302584'} [INFO] [LtePhyAnalyzer]: PUCCH_TX_POWER: {'tx power': 1, 'timestamp': '2016-03-23 21:55:49.322533'} [INFO] [LtePhyAnalyzer]: PUSCH_TX_POWER: {'tx power': 13, 'timestamp': '2016-03-23 21:55:49.342538'} [INFO] [LtePhyAnalyzer]: PUCCH_TX_POWER: {'tx power': 1, 'timestamp': '2016-03-23 21:55:49.342538'} [INFO] [LtePhyAnalyzer]: SR_EVENT: {'timestamp': '2016-03-23 21:55:49.342538', 'fn and subfn': 5738} [INFO] [LtePhyAnalyzer]: PUSCH_CQI: {'WideBand CQI CW0': '10', 'WideBand CQI CW1': '0'} [INFO] [LtePhyAnalyzer]: PUSCH_TX_POWER: {'tx power': 16, 'timestamp': '2016-03-23 21:55:49.362534'} [INFO] [LtePhyAnalyzer]: PUSCH_TX_POWER: {'tx power': 17, 'timestamp': '2016-03-23 21:55:49.362534'} [INFO] [LtePhyAnalyzer]: PUCCH_TX_POWER: {'tx power': 1, 'timestamp': '2016-03-23 21:55:49.362534'} [INFO] [LtePhyAnalyzer]: PUCCH_TX_POWER: {'tx power': 1, 'timestamp': '2016-03-23 21:55:49.362534'} Init RRC Analyzer Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/MobileInsight-5.0.0-py3.8-linux-x86_64.egg/mobile_insight/monitor/offline_replayer.py", line 209, in run self.send(event) File "/usr/local/lib/python3.8/dist-packages/MobileInsight-5.0.0-py3.8-linux-x86_64.egg/mobile_insight/element.py", line 104, in send self.to_list[i].recv(self, event) File "/usr/local/lib/python3.8/dist-packages/MobileInsight-5.0.0-py3.8-linux-x86_64.egg/mobile_insight/analyzer/analyzer.py", line 234, in recv self.source_callbacki File "/usr/local/lib/python3.8/dist-packages/MobileInsight-5.0.0-py3.8-linux-x86_64.egg/mobile_insight/analyzer/lte_rrc_analyzer.py", line 249, in _rrc filter self.__callback_sib_config(xml_msg) File "/usr/local/lib/python3.8/dist-packages/MobileInsight-5.0.0-py3.8-linux-x86_64.egg/mobile_insight/analyzer/lte_rrc_analyzer.py", line 451, in __call back_sib_config int(field_val['lte-rrc.utra_q_RxLevMin']) * 2, TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

monitor-example.zip

Thanks,