| As an important part of industrial control system,servo motor has been widely used in machinery,textile,logistics and other fields.In the past,motor monitoring adopted industrial bus,GPRS,3G/4G DTU and other ways,which had certain limitations in use cost,network coverage,information security and other aspects.Combining the rapid development of the Internet of Things technology,this article researched and developed a servo motor running status monitoring system from the perspective of the enterprise’s own equipment network to meet the increasing demand of enterprises for the health management of servo motor equipment.Firstly,the operation scenario of the servo motor is analyzed,and the wireless transmission scheme based on WiFi and LoRa is proposed.Secondly,the cloud server management system is built with the support of C/S mode.Then,the client monitoring software is developed.The whole system consists of three parts: acquisition layer,network layer and user layer.In the acquisition layer,data acquisition nodes integrated with WiFi and LoRa wireless communication modules are designed respectively.Starting from the RS485 interface of the servo drive,the data of motor running state is collected through Modbus protocol,and the data is sent to the gateway in the way of central networking.In network layer,with the core design based on polling ARM board a work way LoRa gateway,LoRa nodes and gateway to networking "three-way handshake" scheme,design the communication protocol between the nodes and gateway,by adding the message boundaries can solve the problem of data stick pack,and designs a message queue can solve the problem of gateway data buffer.Taking MQTT protocol as the transmission format of application data,the communication parameters of MQTT message publisher are designed according to the characteristics of the status monitoring system.Based on cloud server platform,MQTT server EMQ based on message broker and My SQL database server based on data storage are studied.In the application layer,the monitoring software based on PC terminal is designed with Qt Creator as the development environment.The C++11 multithreading technology is used to improve the data processing speed under the condition of multi-task,and the locking mechanism is adopted to avoid the access conflict of multi-thread to critical region resources.Finally,through the establishment of an experimental platform for research,repeated verifications and limit tests were carried out on the predetermined functions of the system.The results show that the various functions of the system have reached the expected requirements of the subject,and have strong concurrent processing capabilities,which meets the demand for simultaneous online monitoring of a large number of servo motors. |