摘要
多串口通讯技术的可靠性、稳定性将直接影响到组合导航系统数据源的准确和安全,在工程控制上有一定困难,体现在数据竞争、数据保护和时间同步等问题的处理上;进行了基于WINDOWS NT的组合导航计算机中所采用的通讯技术的分析,重点分析了程序实现的核心问题自定义系统通讯类的设计工作,建立了基于Windows API函数和Pcomm函数库串行通信类设计方法,讨论了多线程控制及同步技术、多缓冲的数据保护技术、Pcomm函数使用方式、各数据时间同步修正等问题;实现了系统10串口的双向通讯功能,传输数据高效、稳定和可靠。
The reliability and stability in Multi-Serial port communication technique is one of the main techniques in integrated navigation system, which influence directly the accuracy and security of data source in integrated navigation system (INS). It is difficult in dealing with the problem of data hazard, data protection and time synchronization. A new way based on WINDOWS NT and Pcomm function with the design of self-defined serial communication class in programming proposed is used in INS. Multiple threads control, synchronization technique, data protection technique with multi--buffer, use of Pcomm function and time synchronization modifying are discussed mainly. Using this new method, 10 serial port bidirectional communication in INS is implemented. This method is proved to be more compact, reliable and scalable in the programming of high-speed multi-port communication for an INS system.
出处
《计算机测量与控制》
CSCD
北大核心
2009年第6期1163-1165,1189,共4页
Computer Measurement &Control
基金
国家杰出青年科学基金项目(40125013)