Esempio n. 1
0
        public ActionResult HandoverAnalyze()
        {
            using (HttpFileImporter importer = new HttpFileImporter(Request.Files["fileUpload"]))
            {
                if (!importer.Success)
                {
                    TempData["error"] = "请选择合适的路测数据导入!";
                }
                else
                {
                    LogRecordRepository recordRepository = new LogRecordRepository
                    {
                        LogRecordList = CsvContext.Read<LogRecord>(
                            new StreamReader(importer.FilePath),
                            CsvFileDescription.TabDescription).ToList().Merge()
                    };
                    recordRepository.GetHandoverInfoList();

                    ViewBag.Title = "导入路测数据:" + importer.FileName;
                }
            }
            return View("HandoverImport");
        }
Esempio n. 2
0
 public void TestHandoverSuccess_SuccessInSameInstance()
 {
     testInput = @"Index	Time	Longitude	Latitude	eNodeBID	SectorID	PCI	RSRP (dBm)	SINR (dB)	WideBand CQI	MCS Average UL /s	MCS Average DL /s	PDCP Throughput DL (bps)	PDCP Throughput UL (bps)	PDSCH BLER	EARFCN DL	Event	Message Type
     72101	10:07:53:281	114.301087675439	22.7195692105263	489215	0	210	-101.06	10.90	7	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72102	10:07:53:343	114.301086403509	22.7195703508772	489215	0	210	-101.06	10.90	7	10	8	24645808	358616	8.50	100		LTE_PDCCH_Result
     72103	10:07:53:343	114.301085131579	22.7195714912281	489215	0	210	-101.06	10.90	7	10	8	24645808	358616	8.50	100		LTE ML1 PUSCH power control
     72104	10:07:53:343	114.301083859649	22.7195726315789	489215	0	210	-101.06	10.90	7	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72105	10:07:53:406	114.301082587719	22.7195737719298	489215	0	210	-101.06	10.90	7	10	8	24645808	358616	8.50	100		LTE LL1 PSS results
     72106	10:07:53:406	114.301081315789	22.7195749122807	489215	0	210	-101.06	10.90	7	10	8	24645808	358616	8.50	100		LTE LL1 SSS results
     72107	10:07:53:406	114.30108004386	22.7195760526316	489215	0	210	-101.06	10.90	7	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72108	10:07:53:406	114.30107877193	22.7195771929825	489215	0	210	-101.06	10.90	6	10	8	24645808	358616	8.50	100		LTE LL1 PUCCH CSF log
     72109	10:07:53:500	114.3010775	22.7195783333333	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE_Cell_List
     72110	10:07:53:500	114.30107622807	22.7195794736842	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72111	10:07:53:562	114.30107495614	22.7195806140351	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72112	10:07:53:562	114.301073684211	22.719581754386	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE_PUCCH_Result
     72113	10:07:53:562	114.301072412281	22.7195828947368	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE RRC-->Measurement Report
     72114	10:07:53:625	114.301071140351	22.7195840350877	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100	RRC Connection ReconfigurationLTE Handover Request;	LTE RRC-->RRC Connection Reconfiguration
     72115	10:07:53:625	114.301069868421	22.7195851754386	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 Serving Cell Information log packet
     72116	10:07:53:625	114.301068596491	22.7195863157895	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 downlink common configuration
     72117	10:07:53:625	114.301067324561	22.7195874561404	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 downlink dedicated configuration
     72118	10:07:53:625	114.301066052632	22.7195885964912	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE MAC configuration
     72119	10:07:53:625	114.301064780702	22.7195897368421	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 PRACH configuration
     72120	10:07:53:625	114.301063508772	22.719590877193	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE RLC DL configuration
     72121	10:07:53:625	114.301062236842	22.7195920175439	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE RLC UL configuration
     72122	10:07:53:625	114.301060964912	22.7195931578947	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE PDCP DL config
     72123	10:07:53:625	114.301059692982	22.7195942982456	489215	0	210	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE PDCP UL config
     72124	10:07:53:625	114.301058421053	22.7195954385965			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100	RRC Connection Reconfiguration CompleteLTE Handover Success;	LTE RRC-->RRC Connection Reconfiguration Complete
     72125	10:07:53:625	114.301057149123	22.7195965789474			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 random access request (MSG1) report
     72126	10:07:53:625	114.301055877193	22.7195977192982			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100	LTE Random Access Msg1	Prach: MSG1(RA)
     72127	10:07:53:625	114.301054605263	22.7195988596491			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE LL1 RACH Tx report
     72128	10:07:53:625	114.301053333333	22.7196			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 Serving Cell Information log packet
     72129	10:07:53:625	114.301052061404	22.7196011403509			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE LL1 PBCH decoding results
     72130	10:07:53:625	114.301050789474	22.7196022807018			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 random access response (MSG2) report
     72131	10:07:53:625	114.301049517544	22.7196034210526			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100	LTE Random Access Msg2	Prach: MSG2(RAR)
     72132	10:07:53:625	114.301048245614	22.7196045614035			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 UE identification message (MSG3) Report
     72133	10:07:53:625	114.301046973684	22.7196057017544			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100	LTE Random Access Msg3	Prach: MSG3
     72134	10:07:53:625	114.301045701754	22.7196068421053			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72135	10:07:53:625	114.301044429825	22.7196079824561			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 Serving Cell Information log packet
     72136	10:07:53:625	114.301043157895	22.719609122807			212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE MIB message
     72137	10:07:53:625	114.301041885965	22.7196102631579	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE RRC-->System Information Block Type 1
     72138	10:07:53:625	114.301040614035	22.7196114035088	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE_DCI_Info
     72139	10:07:53:625	114.301039342105	22.7196125438597	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100	RRC Connection Reconfiguration	LTE RRC-->RRC Connection Reconfiguration
     72140	10:07:53:625	114.301038070175	22.7196136842105	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 grant manager dedicated configuration
     72141	10:07:53:625	114.301036798246	22.7196148245614	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100	RRC Connection Reconfiguration Complete	LTE RRC-->RRC Connection Reconfiguration Complete
     72142	10:07:53:687	114.301035526316	22.7196159649123	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE RRC-->System Information Blocks
     72143	10:07:53:687	114.301034254386	22.7196171052632	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE serving cell info
     72144	10:07:53:687	114.301032982456	22.719618245614	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 downlink common configuration
     72145	10:07:53:687	114.301031710526	22.7196193859649	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 grant manager common configuration
     72146	10:07:53:687	114.301030438596	22.7196205263158	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE NAS EMM state
     72147	10:07:53:687	114.301029166667	22.7196216666667	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100	RRC Connection Reconfiguration	LTE RRC-->RRC Connection Reconfiguration
     72148	10:07:53:687	114.301027894737	22.7196228070175	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE MAC configuration
     72149	10:07:53:687	114.301026622807	22.7196239473684	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 PRACH configuration
     72150	10:07:53:687	114.301025350877	22.7196250877193	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100	RRC Connection Reconfiguration Complete	LTE RRC-->RRC Connection Reconfiguration Complete
     72151	10:07:53:687	114.301024078947	22.7196262280702	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 PUCCH power control
     72152	10:07:53:687	114.301022807018	22.7196273684211	489215	2	212	-101.43	10.40	6	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72153	10:07:53:687	114.301021535088	22.7196285087719	489215	2	212	-100.31	9.50	6	10	8	24645808	358616	8.50	100		LTE_Cell_List
     72154	10:07:53:687	114.301020263158	22.7196296491228	489215	2	212	-100.31	9.50	6	10	8	24645808	358616	8.50	100		LTE RRC-->Measurement Report
     72155	10:07:53:781	114.301018991228	22.7196307894737	489215	2	212	-100.31	9.50	6	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72156	10:07:53:781	114.301017719298	22.7196319298246	489215	2	212	-100.31	9.50	6	10	8	24645808	358616	8.50	100		LTE LL1 PCFICH decoding results
     72157	10:07:53:843	114.301016447368	22.7196330701754	489215	2	212	-100.31	9.50	6	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72158	10:07:53:906	114.301015175439	22.7196342105263	489215	2	212	-100.31	9.50	6	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72159	10:07:53:906	114.301013903509	22.7196353508772	489215	2	212	-95.25	10.50	6	10	8	24645808	358616	8.50	100		LTE_Cell_List
     72160	10:07:53:906	114.301012631579	22.7196364912281	489215	2	212	-95.25	10.50	6	10	8	24645808	358616	8.50	100		LTE_PDCCH_PHICH
     72161	10:07:53:906	114.301011359649	22.719637631579	489215	2	212	-95.25	10.50	6	10	8	24645808	358616	8.50	100		LTE LL1 PSS results
     72162	10:07:53:906	114.301010087719	22.7196387719298	489215	2	212	-95.25	10.50	6	10	8	24645808	358616	8.50	100		LTE LL1 SSS results
     72163	10:07:53:953	114.301008815789	22.7196399122807	489215	2	212	-95.25	10.50	6	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72164	10:07:53:953	114.30100754386	22.7196410526316	489215	2	212	-95.25	10.50	11	10	8	24645808	358616	8.50	100		LTE LL1 PUCCH CSF log
     72165	10:07:53:953	114.30100627193	22.7196421929825	489215	2	212	-95.25	10.50	11	10	8	24645808	358616	8.50	100		LTE ML1 PUSCH power control
     72166	10:07:54:015	114.301005	22.7196433333333	489215	2	212	-95.25	10.50	11	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication
     72167	10:07:54:078	114.301002681159	22.7196452173913	489215	2	212	-95.25	10.50	11	10	8	24645808	358616	8.50	100		LTE ML1 Uplink PKT build indication";
     recordRepository = new LogRecordRepository
     {
         LogRecordList = CsvContext.ReadString<LogRecord>(testInput, fileDescription_namesUs).ToList().Merge()
     };
     List<HandoverInfo> handoverInfoList = recordRepository.GetHandoverInfoList();
     Assert.IsNotNull(handoverInfoList);
     Assert.AreEqual(recordRepository.LogRecordList.Count, 13);
     Assert.AreEqual(handoverInfoList.Count, 1);
     Assert.AreEqual(handoverInfoList[0].PciBefore, 210);
     Assert.AreEqual(handoverInfoList[0].PciAfter, 212);
 }