摘要
首先介绍了串行通信的一般概念,然后说明了利用RS-232口进行串行通信的一般步骤,并介绍了三种用VC++实现串行通信的具体方式:使用VC++提供的MSComm控件实现串口通信、利用API函数实现串口通信和多线程下实现串行通信方法,最后比较了三种方法的利与弊。
This paper introduces the universal of serial communication at first. Then the steps of the serial communication am explained. And also the three ways to achieve the serial communication am discussed, that is, the way based on the MSComm of VC + + , the way based on the API function and the way of multithreading. At last the three ways are compared.
出处
《舰船电子工程》
2006年第1期94-97,共4页
Ship Electronic Engineering
关键词
串行通信
VC++
多线程
serial communication, VC ++ , multithreading