首页 | 本学科首页   官方微博 | 高级检索  
     

基于Modbus协议的多路数据采集器
引用本文:秦天柱,张伟刚,瞿少成.基于Modbus协议的多路数据采集器[J].电子测量技术,2017,40(11):175-178.
作者姓名:秦天柱  张伟刚  瞿少成
作者单位:华中师范大学 物理科学与技术学院 武汉 430079,华中师范大学 物理科学与技术学院 武汉 430079,华中师范大学 物理科学与技术学院 武汉 430079
摘    要:为了满足一般中远距离工业现场数据采集的要求,基于Modbus通信协议,设计了一种光照度、温湿度数据采集器系统.硬件方面,以STM32作为主控制器,采用传感器BH1750与DHT11分别采集光照信息与温湿度;软件方面,基于I2C协议读取光照度,并通过单总线协议读取温湿度,基于Modbus协议的RTU工作模式实现了与上位机的通信.系统测试表明,数据采集器运行稳定,与上位机间的通信准确可靠,且该多路数据采集器已成功应用于广西某段高速公路隧道照明系统.

关 键 词:Modbus协议    STM32    数据采集

Multi channel data collector based on modbus protocol
Qin Tianzhu,Zhang Weigang and Qu Shaocheng.Multi channel data collector based on modbus protocol[J].Electronic Measurement Technology,2017,40(11):175-178.
Authors:Qin Tianzhu  Zhang Weigang and Qu Shaocheng
Affiliation:College of Physical Science and Technology, Central China Normal University, Wuhan 430079, China,College of Physical Science and Technology, Central China Normal University, Wuhan 430079, China and College of Physical Science and Technology, Central China Normal University, Wuhan 430079, China
Abstract:In order to meet the requirement of data acquisition in the field of general middle and long distance industrial site,based on the Modbus communication protocol,the light intensity,temperature and humidity data collector is designed.In terms of hardware,STM32 as the main controller,using BH1750 and DHT11 to collect light information and temperature、humidity.In terms of software,reading illuminance based on the I2C protocol,and reading temperature and humidity by the single-wire bus protocol,realizing the communication with the host computer based on the RTU working mode of Modbus protocol.The system test shows that the data collector is stable and the communication between the host computer and the host computer is accurate and reliable,and the multi-channel data acquisition device has been successfully applied to a section of highway tunnel lighting system in Guangxi.
Keywords:Modbus protocol  STM32  data collection
本文献已被 万方数据 等数据库收录!
点击此处可从《电子测量技术》浏览原始摘要信息
点击此处可从《电子测量技术》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号