摘要
在现代的实时监控系统和工业自动化领域系统中,Windows下利用VC++对RS-232串口编程是经常采用的方法。在这篇文章中,首先介绍了串口通信的原理;其次,分析了在Visual C++6.0环境下开发串行通信程序的两种主要方法,同时指出了它们各自的优缺点;最后,详细阐述了在工程应用中如何使用这两种方法的部分关键代码实现过程。
In modern real-time monitoring system and industry automatic system,using Visual C++ to develop RS-232 serial programming under Windows environment is a method frequently used.In this paper,the principle of serial-port communication based on RS-232 protocol was firstly introduced.Secondly,two main methods about developing serial communication programming which is under Visual C++ were analyzed ;In the meantime,their advantages and disadvantages were put forward.Finally,it was expounded about how to use the two methods in the practical application in detail.
出处
《科技信息》
2010年第01X期39-40,78,共3页
Science & Technology Information
关键词
串口通信
RS-232接口
API
Serial-port communication
RS-232 interface
Application Programming Interface