一种新的NMEA0183协议解析方法实现

A New Method of NMEA0813 Protocol Parsing

  • 摘要:       NMEA0183 协议解析模块是导航系统中至关重要的软件模块,该模块的健壮性和高效性直接关系到整个导航系统的性能。为了能及时并高效解析NMEA数据流,分开处理NMEA数据流解析与数据显示,降低解析模块与显示模块的耦合性,提出一种基于正则表达式和MVC架构的NMEA0183协议解析方法。整个解析模块可分为四个阶段,原始NMEA数据流存储,NMEA数据流高效解析,NMEA数据校验,NMEA数据显示。目前该方法已应用到GPS 导航产品中,实测表明,该解析模块高效可靠,数据流解析显示实时性好。

     

    Abstract:   NMEA0183 protocol parsing module is crucial in a navigation system software module, the module of the robustness and efficiency is directly related to the performance of the whole navigation system. In order to timely and effective resolution NMEA data flow, separate processing NMEA data flow analysis and data display, reduce the coupling of parsing module and display module, put forward a kind of based on regular expressions, and based on the MVC architecture of NMEA0183 protocol parsing methods.The whole parsing module can be divided into four stages, the original NMEA data stream storage, NMEA data flow efficient parsing, NMEA data validation, NMEA data show.At present the method has been applied to the GPS navigation products, the measured show that the analytical module, high efficiency and reliable data flow analysis showed good realtime.

     

/

返回文章
返回