- 1、本文档共105页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 人力资源优化配置模型(数模论文).docx
- 建筑构造重点_答案已标注(可编辑).doc
- 建筑混凝土班组施工合同.doc
- 企业经营模拟实验报告(采购经理).doc
- 企业经营模拟实验报告(采购经理).doc
- 计算机操作系统课程设计报告《存储管理——动态分区分配算法的模拟》.doc
- 基于目标管理的绩效考核体系设计研究.docx
- 人教新起点英语三年级上册复习题.pdf
- 三年级科学卷面分析.docx
- 计算机组成原理课程设计说明书.doc
- 2025年高级社会工作者考试真题及答案.docx
- 2025年感染科实习生出科考试试题(附答案).docx
- 2025年高校教师岗前培训高等教育心理学知识竞赛考试题库50题及答案.docx
- 2021-2022学年吉林省辉南县第六中学高二周测(十五)物理试题.doc
- 2025年高校教师职业资格考纲分析试题(附答案).docx
- 2025年高级生命支持(ACLS)理论考核试题库及答案.docx
- 2025年高空作业安全知识题库附答案.docx
- 2025年高校教师岗前培训高等教育心理学知识竞赛考试题库及答案.docx
- 2025年高中学生写的保证书.docx
- 2021-2022学年吉林省长春希望高中高二上学期期末考试物理试题 解析版.doc
文档评论(0)