摘要
阐述了WIN32下基于RS232C协议的串口通信方式,提出了三种可行的串口通信方法,详细地探讨了它们的通信特征,研究了各自的通信适用范围,并在性能上比较了这几种方法的优缺点.结合实际应用,在约定双方串口通信协议的基础上,选取MSComm控件实现在实际系统中的应用,完成控制终端和主控台的串口数据通信.实践证明,采用这种通信模式,能有效地改善整个系统的效率及实现系统在功能扩展上的灵活性.
This paper introduced serial communication mode based on RS232C protocol under win32. Firstly it proposed three programming methods for serial communication port ,and particularly discussed their communicational features ,analysed their applicable field and then compared the above three ways . Finally according to the need of actual system ,MSComm control was chose to realize serial communication between the control terminal and the main control platform. It proved that this communication mode greatly improved the efficiency of the system and was good for the extension in system capabilities.
出处
《南昌大学学报(工科版)》
CAS
2005年第3期71-75,共5页
Journal of Nanchang University(Engineering & Technology)
基金
"十五"国防科技预研基金资助项目
作者简介
陈传波(1956-),男,教授,博导。