范文编号:ZD911 范文字数:16162,页数:44 摘 要 串口通信因其通信线路简单、使用灵活方便 ,在许多领域应用广泛。本文主要介绍如何实现PC机与PC机之间的通信。PC机的程序设计使用VC++实现,PC机调用通用程序,控制RS-232串口,从而实现数据的收发功能。为了保证数据通信的可靠性,要制定标准的通信协议。基于串口通信和MSComm控件原理 ,详细介绍了利用VC6.0编程实现发送接收字符,并给出了具体程序和解释。设计成功后,通过PC机的一个界面上的一个按钮就能实现接收和发送,并能看到接收到的数据。不但如此,该设计还能完成别的功能,比如发送文件,自动发送数据,统计总共收发的字符或字节数以及保存文件到指定位置。 ABSTRACT Serial communication lines of communication because of its simple, flexible and easy to use, widely used in many fields. This paper mainly introduces how to realize the PC computer and the communication between PC. PC-programming using VC + + to achieve, PC machine called generic procedures, control RS-232 serial port, send and receive data in order to achieve function. In order to ensure the reliability of data communications, it is necessary to the development of communication protocol standards. MSComm on serial communication and control theory, detailed information on programming using VC6.0 Send receive characters, and gives the specific procedures and interpretation. After the success of the design through a PC-interface will be able to achieve a button to receive and send and receive data to see. Not only that, but also the completion of the design of other features, such as send files, automatically send data to send and receive statistics on the total number of characters or bytes, as well as to save the file to the specified location.
目录
|
上一篇:西门子LOGO!通用逻辑控制模块的.. | 下一篇:基于GSM MODEM的综合信息服务平台 |
点击查看关于 基于 串行 通信软件 设计 的相关范文题目 | 【返回顶部】 |