基于单片机的远程数据网关开发
基于单片机的远程数据网关开发(任务书,开题报告,论文11000字)
摘要
一个多世纪以来,社会制度和科学技术得到了迅猛发展,由于环境、效率等问题,国家对各类大型企业(尤其是工业和重工业)的控制力度的日益加重,迫切需要控制控制的数据种类以及数量增多,多种数据协议也相继增加。但企业家要追求效率以及利润,于是就产生了能否进行多对一协议转换以及效率高低的问题。
为了解决这种问题,我们选用单片机作为中转平台,用来实现多种协议数据采集网关,并且改进升级现今的协议转换模式,把传统的“单对单”传输方式升级为“多对单”模式,进而解决数据堵塞,延迟等问题。
为了方便操作,便于理解,提升效率等问题,可以吧协议转换,网关参数和监测模块合为一个整体的系统。而且单片机成本低廉,性能能够满足工业需要,用于网关设计的性价比很高。
关键词:协议转换网关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. [来源:http://www.doc163.com]
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 conversiongatewayModbus
目录
摘要...............................................................I
Abstract...........................................................II
第一章 绪论.......................................................1
1.1课题研究背景.................................................1 [资料来源:Doc163.com]
1.2研究目的和意义...............................................1
1.3国外研究现状.................................................2
1.4国内研究现状.................................................2
第二章 STM32开发板.............................................5
2.1采用STM32背景..............................................5
2.2STM32简介..................................................5
2.2.1STM32芯片架构.........................................6
2.2.2STM32芯片系统结构......................................6
2.2.3STM32电路原理图........................................7
2.2.4 STM32实物图...........................................8
2.3CRC计算单元(CRC)........................................9
2.3.1CRC简介................................................9
2.3.2CRC主要特性...........................................10
2.3.3CRC功能描述...........................................10
2.3.4CRC寄存器.............................................10
[来源:http://www.doc163.com]
第三章 通信方法.................................................13
3.1 循环 .....................................................13
3.2 时钟.......................................................13
3.2.1时钟简介...............................................13
3.2.2RTC结构图............................................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.2GPIO..................................................17
3.4.3USART简介............................................19
3.4.4 串口通信配置步骤.......................................19 [资料来源:www.doc163.com]
3.5 消息机制...................................................20
3.6 消息机制的应用.............................................21
第四章 Modbus协议.............................................22
4.1Modbus协议简介............................................22
4.1.1在Modbus网络上转输 .........................................22
4.1.2 在其他类型网络上传输.................................22
4.1.3查询和回应的周期 ....................................22
4.2ModbusRTU................................................23
4.2.1Modbus数据传输方式.................................23
4.2.2Modbus 消息帧结构...................................23
4.3协议转换原理...............................................24
4.4 程序设计...................................................24
4.5 输出结果展示...............................................26
第五章 总结与展望...............................................23
5.1 总结.......................................................30 [资料来源:http://Doc163.com]
5.2 展望.......................................................30
参考文献.........................................................31
致谢..............................................................33 [来源:http://Doc163.com]