摘要
为了解析GPS接收器的数据信息,利用VB 6.0编写串口程序,提取和分析GPS语句及其字段值,获得运动或静止的GPS模块的单点(非差分)定位数据语句信息,其中详细分析了GPS语句中的$GPGGA和$GPRMC语句,通过解析这两条语句各字段值,显示数据信息到窗口界面中,GPS数据信息包括基于WGS-84坐标系的经纬度、高度、速度、时间、运动方向等参数。所设计的算法可以应用到利用单片机开发车载GPS中。实验表明,系统运行稳定、简便、准确、实时性高。
A kind of feasible arithmetic is introduced to develop serial procedures for parsing and capturing GPS data information from GPS receiver based on Visual Basic language. Available GPS sentences and field values are pick-up and analyzed. And dynamic or static single-point (non-differential) GPS module positioning data information is captured. Thereinto, the $ GPGGA sentence and $ GPRMC sentence are analyzed in detail, and the fields values of these two statements are parsed to show the GPS location information. The GPS information, which includes latitude and longitude coordinates based on WGS-84, altitude, speed, time, direction of movement and so on, is displayed on the window interface. Tests show that the system is running with stable, simple, accurate and high real-time.
出处
《计算机与现代化》
2010年第5期92-95,共4页
Computer and Modernization