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 realtime.
-
Key words:
- GPS /
- NMEA0183 /
- parsing /
- Regular expressions /
- MVC
-
[1] 李长真.GPS 全球定位系统[J].现代物理知识,2000,12(C00):90292. [2] JAMES BAO-YEN TSUI. GPS软件接收机基础[M]. 2版. 北京: 电子工业出版社, 2008: 68-76. [3] 张文军.GPS与嵌入式系统软硬件接口及导航信息提取软件[J].计算机工程,2005,31 (18):2102212. [4] The National Marine Electronics Association.NMEA 0183 standard for interfacing marine electronic devices [EB/OL]. 1998-03-30. http://www.nmea.org/. [5] 曹婷婷,高玉.GPS中NMEA-0183协议的应用[J].电子工程师,2006,32(10):8-11. [6] LIGER F,QUEEN C M,WILTON P. C#字符串和正则表达式参考手册[M].刘乐亭,译.北京:清华大学出版,2003. [7] 王映辉,王英杰,王彦君,等.基于MVC的软件界面体系结构研究与实现[J].计算机应用研究,2004(9):188-190. -

计量
- 文章访问数: 637
- HTML全文浏览量: 64
- PDF下载量: 128
- 被引次数: 0