关于本站
人大经济论坛-经管之家:分享大学、考研、论文、会计、留学、数据、经济学、金融学、管理学、统计学、博弈论、统计年鉴、行业分析包括等相关资源。
经管之家是国内活跃的在线教育咨询平台!
经管之家新媒体交易平台
提供"微信号、微博、抖音、快手、头条、小红书、百家号、企鹅号、UC号、一点资讯"等虚拟账号交易,真正实现买卖双方的共赢。【请点击这里访问】
TOP热门关键词
坛友互助群![]() |
扫码加入各岗位、行业、专业交流群![]() |
目 录
引言1
1 绪论2
1.1 本课题的研究意义2
1.2 本课题的发展现状以及趋势2
1.3 本课题的主要研究工作和各章内容安排2
2 相关技术和基础理论介绍4
2.1 RS-485总线概述4
2.1.1 RS-485的接口标准4
2.1.2 RS-485驱动芯片及应用接口5
2.1.3 RS-485通信协议及规则6
2.2 主要器件及应用7
2.2.1MAX232芯片7
2.2.2MAX485芯片9
2.2.3 AT89S5210
3 系统总体设计15
3.1 系统要求15
3.2 通信实施方案的选择15
4 系统硬件设计17
4.1PC机通信接口电路设计17
4.2下位机模块设计18
4.2.1电源模块18
4.2.2信号采集模块19
5 系统软件设计20
5.1通信原理20
5.2PC机与多单片机的多机通信原理20
5.3 通信协议21
5.3.1信息格式21
5.3.2定时与重发22
5.4通信过程22
5.5程序框图23
6 上位机软件设计25
6.1通信控件MSComm简介25
6.1.1MSComm的属性25
6.1.2MSComm的事件25
6.2PC与单片机间通信界面26
6.2.1正确使用MSComm控件26
6.2.2通信协议及通信程序代码27
7 电路布板,调试及故障分析30
7.1 布板30
7.2 电路的调试及故障分析31
7.3 试验结果31
8 可靠性、抗干扰措施及容错设计32
8. 1 硬件线路上的考虑32
8. 2 软件设计上的考虑32
9总结33
谢辞34
参考文献35
附录:程序36
摘 要
随着数据通信技术的发展,采用PC 与多台单片机构成的分布式系统、工业控制系统、数据传输系统等越来越受到广泛应用。本课题在国内外已受到非常多的关注与研究,并且不断的得到改进,在实际应用中也取到了较好的效果,具有非常好的应用推广价值。
本课题的主要研究工作是在PC机与单片机的数据通信中采用RS485 总线组建的远程双向数据通信系统的系统结构、硬件设计。因此本文主要介绍了基于RS485总线的远程双向数据通信系统平台构成,描述了上位PC机负责通信(包括与单片机之间的串行通信和数据的远程通信)、数据处理以及用VB6.0建立在Window2000/ XP 环境下的计算机端通信软件和用单片机KeilC51 编写的下位机通信软件等工作。另外,也对本系统所采用的可靠性、抗干扰措施和容错设计作了一些介绍.在本系统中,上位机以PC和Windows操作系统为软、硬件资源;下位机采用ATMEL公司89S52,总线标准采用的是测控系统常用的RS-485。
将该系统运用到宾馆客房环境监测系统中,下位机的温湿度传感器SHT11和烟雾传感器MQ-N5采集数据到数据后,通过此485总线系统能将测量数据(温湿度)传送到PC机上显示,对检测到烟雾起报警作用。试验结果最终表明,该系统整体实现了实时性较好,运行稳定可靠。
关键词:串行通信;RS-485总线;VB6.0; 89S52;远程双向数据通信;
Abstract
With the development of digital communication technology,the distribute-type systems, industrial control systems, data transmission systems,.etc, which adopts PC to constitute with many microcontrollers to be subjected to more and more extensively applied. This topic is continuously having already been subjected to quite a few concern and research at home and abroad, and getting a continuous improvement, also taking better result in physical application, having very nice expansion value.
The main research work of this topic is the system structure, hardware design in the PC and SCM data communications,which is using Long-range two-way data communication system established by RS-485 . So this text mainly introduced the terrace according to the constitute of the Long-range two-way data communication system established by RS-485 ,describing the place of honor PC machine to be responsible for correspondence (including with the line correspondence to scm and data in the long-disdance correspondence), data processing , using VB6.0 builds the computer software and communications - SCM software prepared with KeilC51 in Window2000 / XP environment and so on. Moreover, also making some introduction to the credibility, anti- interference measure and the system-permitted- wrong design .In this system ,the honor PC machine uses PC and Windows operating system for software and hardware resources ; the lower computer adopts 89S51 which is produced by ATMEL Corporation, Bus standard adopts the monitoring system that is commonly used RS-485 .
Make use of that system to the environment monitor of the hotel room in the system, , after the temperature and humidity sensor SHT11 and smoke senstor MQ-N5 of the lower PC collecting the data to the data,can send measurement data(temperature and humidity) to the PC by 485 bus system , it rightly plays an alarm starting role to the process that detects smoke . Final test results show that the system achieved a better real-time, stable and reliable operation as a whole.
Keyword: Serial Communication ; RS-485 bus ;VB6.0; 89S52; Long-range two-way data communication ;
![](https://bbs-cdn.datacourse.cn/2020/assoQRcodeNew2022.png)
免流量费下载资料----在经管之家app可以下载论坛上的所有资源,并且不额外收取下载高峰期的论坛币。
涵盖所有经管领域的优秀内容----覆盖经济、管理、金融投资、计量统计、数据分析、国贸、财会等专业的学习宝库,各类资料应有尽有。
来自五湖四海的经管达人----已经有上千万的经管人来到这里,你可以找到任何学科方向、有共同话题的朋友。
经管之家(原人大经济论坛),跨越高校的围墙,带你走进经管知识的新世界。
扫描下方二维码下载并注册APP
![](static/2016/reg/jgewm.png)
您可能感兴趣的文章
本站推荐的文章
- 考博 | 南大考博经济类资料
- 考博 | 考博英语10000词汇MP3
- 考博 | 如果复旦、南大这样的学校考博也 ...
- 考博 | 有谁知道春招秋季考博的学校吗
- 考博 | 工作与考博?到底怎么办?
- 考博 | 考博应该如何选择院校?
- 考博 | 考博失败了
- 考博 | 考博考研英语作文万能公式
人气文章
本文标题:基于RS485总线的远程双向数据通信系统的设计_电子机电论文
本文链接网址:https://bbs.pinggu.org/jg/lunwen_dianzijidianlunwen_94948_2.html
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。