- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于串口通信文件传输的实现
基于串口通信文件传输的实现
摘 要
计算机和计算机终端之间的数据传输,可以采用串行通信、并行通信和网卡通
信等方式,由于串口通信使用线路较少、成本较低,因此在远程监控、工业自动控
制和数据采集领域被广泛采用。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
您可能关注的文档
最近下载
- 7.1《短歌行》课件(共56张PPT)2024-2025学年统编版高中语文必修上册.pptx VIP
- 《GB/T 18281.7-2024医疗保健产品灭菌 生物指示物 第7部分:选择、使用和结果判断指南》.pdf
- 微科安装使用说明书调皮%时间.pdf VIP
- HG_T 5171-2017 粒状中微量元素肥料.docx
- 检验检测机构管理评审参考.doc VIP
- 自由体位分娩理论考核试题及答案.docx VIP
- PyQt5入门教程实用知识库分享20240314102955.pdf VIP
- JJF 2182-2024 农灌机井取水量计量监测方法.pdf VIP
- 企业一站式数据开发与治理平台解决方案(35页).pptx VIP
- 新能源汽车检测与维修技术专业人才培养方案.docx VIP
文档评论(0)