网站大量收购独家精品文档,联系QQ:2885784924

基于串口通信文件传输的实现.doc

  1. 1、本文档共105页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于串口通信文件传输的实现 基于串口通信文件传输的实现 摘 要 计算机和计算机终端之间的数据传输,可以采用串行通信、并行通信和网卡通 信等方式,由于串口通信使用线路较少、成本较低,因此在远程监控、工业自动控 制和数据采集领域被广泛采用。Visual C++由于功能强大、应用灵活,与Microsoft 操作系统的兼容性较好,因此涉及硬件操作的通信编程,采用VC作为开发工具是 值得推荐的。在VC下进行串口编程,既可以使用Win32应用程序接口 API 函数, 也可以使用VC提供的MSComm控件。但是用API编写程序时往往要考虑多线程问题, 编写出的程序十分庞大,而且结构复杂、继承性差。本设计详细地介绍了串口通信 的概念,基本原理,参数,实现方式的基础上,然后自己定义了基于串口的通信协 议,使用VC++编写出测试程序,从而实现了串口与串口之间的文件的传输。 关键词:串口,通信,MSComm I 基于串口通信文件传输的实现 Abstract The data transmission between the computer and computer terminal, It can adapt serial communication, parallel communication and Ethernet communication. It is adapted broadly in the field such as long-range supervisory control, auto industry control and data collection just because it use lower circuit and cost less. Visual C++ shorter forms VC has powerful function and apply nimbly, and has fine compatibility with Microsoft operate system 。So, communication programming relates hardware operating, adopt VC to be exploitation implement is to be worth. Programming under VC, both can use the Win32 application interface function and MSComm that VC provides. It is necessary to often consider the multi-thread problem when you programming use API, the compiling program is big, structure is complicated, and succession is bad. In this article, it introduce that the concept, the basal principle, the parameter, and the realize way of serial communication, and then have defined the communication protocol which based on serial port by myself, write the program with VC++, At last it realize that the file transform between serial port and serial port. Key words :Serial port, Communication, MSCom

文档评论(0)

annylsq + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档