摘要: 设计一套基于多线程技术的GPS罗盘数据采集和处理系统,给出GPS姿态测量原理及相关通信协议,在此基础上以SDI-COMPASS为例,采用Win32的API通信函数实现GPS罗盘和PC机之间多线程、非阻塞的串口通信。静态和动态实验表明,该系统可以快速、准确地采集和处理GPS罗盘数据,具有很高的稳定性和灵活性。
关键词:
全球定位系统,
多线程,
串口通信,
数据处理
Abstract: A Global Positioning System(GPS) compass data acquisition and processing system based on multi-thread technology is designed. This paper describes the principle of GPS attitude determination and related communication protocol. With the example of the SDI-COMPASS, a solution based on the API communication function of Win32 is realized, which achieves the multi-thread and overlapped I/O communication between GPS compass and PC via serial port. The static and dynamic experiments show that the system is capable of gathering and processing GPS compass data quickly and correctly, and performs with high stability and flexibility.
Key words:
Global Positioning System(GPS),
multi-thread,
serial communication,
data processing
中图分类号:
刘瑞华, 项文杰. 基于多线程技术的GPS罗盘数据采集与处理[J]. 计算机工程, 2010, 36(15): 219-221.
LIU Rui-Hua, XIANG Wen-Jie. GPS Compass Data Acquisition and Processing Based on Multi-thread Technology[J]. Computer Engineering, 2010, 36(15): 219-221.