登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 理工学类 > 自动化 > 正文

基于单片机远程数据网关开发毕业论文

 2020-04-15 09:04  

摘 要

一个多世纪以来,社会制度和科学技术得到了迅猛发展,由于环境、效率等问题,国家对各类大型企业(尤其是工业和重工业)的控制力度的日益加重,迫切需要控制控制的数据种类以及数量增多,多种数据协议也相继增加。但企业家要追求效率以及利润,于是就产生了能否进行多对一协议转换以及效率高低的问题。

为了解决这种问题,我们选用单片机作为中转平台,用来实现多种协议数据采集网关,并且改进升级现今的协议转换模式,把传统的“单对单”传输方式升级为“多对单”模式,进而解决数据堵塞,延迟等问题。

为了方便操作,便于理解,提升效率等问题,可以吧协议转换,网关参数和监测模块合为一个整体的系统。而且单片机成本低廉,性能能够满足工业需要,用于网关设计的性价比很高。

关键词:协议转换 网关 Modbus

Development of Remote Data Gateway Based on MCU

Abstract

Since more than a century, social system and science and technology have developed rapidly. Due to the problems of environment and efficiency, the state's control over large enterprises (especially industry and heavy industry) has been increasing. There is an urgent need to control the increase of data types and quantities, and a variety of data protocols have also increased. But entrepreneurs want to pursue efficiency and profit, so there are questions about whether they can carry out multi-to-one agreement conversion and efficiency.

To solve this problem, we can use MCU as an operation platform to realize a variety of protocol data acquisition gateways, and improve and upgrade the current protocol conversion mode, upgrade the traditional "one-to-one" transmission mode to "many-to-one" mode, and then solve the problems of data jam and delay.

In order to facilitate operation, understand and improve efficiency, we can integrate channel selection, protocol conversion, gateway parameters and monitoring module into a whole system. Moreover, the cost of single-chip computer is low, the performance can meet the industrial needs, and the performance-price ratio for gateway design is high.

Keywords: protocol conversion gateway Modbus

目录

摘要...............................................................I

Abstract...........................................................II

第一章 绪论.......................................................1

1.1课题研究背景.................................................1

1.2研究目的和意义...............................................1

1.3国外研究现状.................................................2

1.4国内研究现状.................................................2

第二章 STM32开发板.............................................5

2.1采用STM32背景..............................................5

2.2 STM32简介..................................................5

2.2.1 STM32芯片架构.........................................6

2.2.2 STM32芯片系统结构......................................6

2.2.3 STM32电路原理图........................................7

2.2.4 STM32 实物图...........................................8

2.3 CRC计算单元(CRC)........................................9

2.3.1 CRC简介................................................9

2.3.2 CRC主要特性...........................................10

2.3.3 CRC功能描述...........................................10

2.3.4 CRC寄存器.............................................10

第三章 通信方法.................................................13

3.1 循环 .....................................................13

3.2 时钟.......................................................13

3.2.1时钟简介...............................................13

3.2.2 RTC结构图............................................14

3.2.3时钟配置步骤...........................................14

3.3 中断.......................................................15

3.3.1中断定义...............................................15

3.3.2中断优先级.............................................15

3.3.3中断配置步骤...........................................16

3.4 串口通信...................................................16

3.4.1 串口通信简介...........................................16

3.4.2 GPIO..................................................17

3.4.3 USART简介............................................19

3.4.4 串口通信配置步骤.......................................19

3.5 消息机制...................................................20

3.6 消息机制的应用.............................................21

第四章 Modbus协议 .............................................22

4.1 Modbus协议简介............................................22 4.1.1 在Modbus网络上转输 .........................................22

4.1.2 在其他类型网络上传输.................................22

4.1.3 查询和回应的周期 ....................................22

4.2 Modbus RTU................................................23

4.2.1 Modbus 数据传输方式.................................23

4.2.2 Modbus 消息帧结构...................................23

4.3协议转换原理...............................................24

4.4 程序设计...................................................24

4.5 输出结果展示...............................................26

第五章 总结与展望...............................................23

5.1 总结.......................................................30

5.2 展望.......................................................30

参考文献.........................................................31

致谢..............................................................33

第一章 绪论

1.1课题研究背景

目前时代的发展方向是自动化和智能化,本世纪以来国家制造业、工业蓬勃发展,尤其是在自动化方面的普及程度急速提高,于是总线这种简单、耐用、方便的技术[1]成了各种工业、制造业的必需品。但如今一种产品的制造流程往往需要多种自动化的设备,这些设备的通信协议可能各不相同,由于这些协议的问题,导致在过程控制方面所需要的总线种类也越来越多[2]。另一方面,在化工厂这类存在 各种爆炸、腐蚀、泄露等危险可能性的地方更需要自动化设备来代替各种工作人员,于是对通信的实时性提出了更高的要求。然而单一协议转换并不能满足上述要求。

1.2研究目的和意义

以上是毕业论文大纲或资料介绍,该课题完整毕业论文、开题报告、任务书、程序设计、图纸设计等资料请添加微信获取,微信号:bysjorg。

相关图片展示:

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图