| Industrial Wireless Sensor Networks(IWSNs)as one of the important branches of the Internet of Things(IoT)is a system that contains many wireless nodes.These nodes form a multi-hop,self-organizing network through radio frequency communication.Due to its flexibility,easy deployment and low power consumption,it has become one of the research hotspots in the field of industrial measurement and control and automation.Data acquisition mainly refers to a process of collecting,identifying and filtering data from data sources such as sensors or devices.At present,data acquisition systems in the industrial field still face many challenges in terms of flexibility,coverage,real-time performance,and data services.In this paper,IWSNs are applied in data acquisition system to realize industrial field data acquisition network system based on Internet of Things,and research and implementation are carried out around key technologies such as software and hardware modularization,dual-mode transmission,backup mechanism and unified data service.First,the entire data acquisition network system architecture is analyzed,and the whole system is divided into data acquisition layer,data transmission layer and data service layer.The main design and implementation of each layer is as follows:In the data acquisition layer,for the difference between the hardware interface and the communication protocol,on the hardware,the collection node is divided into a communication module,a processing module,and an interface module,through the design of interface module,the difference of hardware interface is solved,and the hardware flexibility is improved;on the software,the processing flow is divided into data acquisition module,data processing module and data forwarding module.The workflow of each module is designed and implemented,and the corresponding interfaces are provided,by extending the corresponding interfaces,different communication protocols are coped with,and the extensibility is improved.In the data transmission layer,in order to be able to encapsulate the difference of the underlying data,to achieve consistent and efficient processing of the upper layer,the unified data format to the data service layer is implemented by MQTT;for the complexity of the industrial environment,dual-mode transmission through Internet and IWSNs are designed and implemented based on OpenWrt;for high availability of IWSNs,based on Keepalived and Heartbeat,the gateway and centralized control server backup mechanism is designed to achieve timely switching.In the data service layer,the message publishing and subscription system is used to realize unified management and service of data,and corresponding design and implementation are implemented for Topic services,data interface services and data applications.Finally,the corresponding modules in the data acquisition network system implemented are tested to verify the basic functions of the data acquisition network system designed and implemented in this paper.The research results have comprehensive functions such as measurement,record analysis and real-time monitoring on industrial site equipment,which is of great significance for industrial green production. |