- 13
- 0
- 约5.01万字
- 约 49页
- 2016-08-28 发布于贵州
- 举报
基于C 的RS32通信协议模拟终端毕业论文
基于C++的RS232通信
协议模拟终端
Analog Terminal For RS232 Communication
Protocol Based On C++
学 院:
专 业 班 级:
学 号:
学 生 姓 名:
指 导 教 师:
2013 年 06 月摘 要
随着科技的迅猛发展,通信技术已经成为社会经济、环境、生活、工作、学习不可缺少的一部分。通信的方式多种多样,以何种方式实现通信主要取决于通信设备。在工业控制系统和实验室中,由于串行通信具有实现简单、使用灵活方便等优点,串行通信是计算机与外部设备进行数据通信时经常使用的方式之一。
围绕串行通信技术,本文主要介绍了串行通信接口——RS232标准串口,阐述了RS232串行通信基本原理和CRC校验,通过VC界面编程实现串行通信。传输过程中通过CRC对数据进行校验。
在研究RS232串行通信原理中,主要介绍了RS232标准协议、串口以及串口通信原理。详细的分析了几种主要的通信参数。按照其工作原理及RS232串口的标准协议最终采用串行全双工的方式实现其通信,本文中的接口使用的是计算机上的USB口。
在软件实现方面,本设计在比较了多种方法之后,最终选择了基于C++的MFC应用程序。利用 MSComm ActiveX 串行通信控件来实现串行通信。文中详细地介绍了VC下的Windows平台先进的 ActiveX 控件技术,即MSComm控件等。最终实现了两台PC间的串行通信。
串行通信以其成本低、结构简单等优点被人们广泛应用。用RS-232协议实现两台PC机间的串行通信为以后实现更加复杂的设备间通信奠定了基础。
关键词:RS232标准;串行通信;C++;CRC校验
Abstract
With the rapid development of science and technology, communication technology has become an indispensable part of social economy, environment, living and learning. There are many kinds of communication modes. The selection of communication mode mainly depends on the communication equipment. In industrial control systems and laboratory, serial communication is widely used in computer and external equipment due to the simple and flexible advantage.
Around serial communication technology, this paper mainly introduces the serial communication interface - RS232 serial port, and expounds the basic principle of RS232 serial communication and CRC check .It is completed to realize serial communication by VC programming. It can check the data during the process of transmission through the CRC.
In the study of RS232 serial communication principle, this design mainly introduces the principle of serial communication, serial port and RS232 protocol,and analyzes communication parameters in detail. Considering RS232 serial port and working principle, this design adopts serial full-duplex mode to realize communication. In the article, the interface is the USB port on the PC.
In the aspect of software realization, after several m
您可能关注的文档
- 基于Arduin空气质量检测器开发.doc
- 基于ARIMA模上海商品交易所期货交易成交金额的预测课程设计论文.doc
- 基于ARM LIUX的嵌入式探月小车设计报告.doc
- 基于ARM-Liux平台IEEE_802.16_MAC层实现方法研究.doc
- 基于ARM7与D18B20的数字温度计的设计课程设计总结报告.doc
- 基于ARM7微控器的CE芯片安培检测器的研制-电气自动化专业毕业设计.doc
- 基于ARM7微控器的CE芯片安培检测器的研制.doc
- 基于ARM7的LD显示电路仿真课程设计说明书.doc
- 基于ARM920的DMA驱动程序的设计毕业论文.doc
- 基于Arm9的μOS-Ⅱ嵌入式系统移植.doc
- 广东省广州省实验中学教育集团2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州大学附属中学2025-2026学年八年级上学期奥班期中物理试题(解析版).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(含答案).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(解析版).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 2026《中国人寿上海分公司营销员培训体系优化研究》18000字.docx
- 《生物探究性实验教学》中小学教师资格模拟试题.docx
原创力文档

文档评论(0)