In the mine drainage system,the drainage system directly affects the mine operation safety.There are many shortcomings in the traditional mine drainage system.The rapid development of computer promotes the automation,intelligence and informatization of mine drainage system.The water pump Internet of things system can realize the remote monitoring of the drainage system working conditions and system operation data.In this paper,the mine drainage system as the research object,the pump drainage system for system modeling,experimental platform building,bottom data collection function development,remote control and other work.In order to reduce the coupling degree,this paper uses XML document to describe the data format and content.The information sharing among systems provides a reliable theoretical basis for system optimization and system analysis.In this paper,the subsystem based on My SQL database can realize the function of system related data from Mysql to report system.At the same time,binlog log is used to realize data backup and data loss recovery.In this paper,an experimental platform for remote control of water pump is built.S3C2440 is used as the embedded controller to develop the Internet of things system of water pump control based on Linux embedded system.The remote control program and the bottom data collection program of water pump are compiled.The remote control function and data collection function of the client can be realized through the combination of software and hardware.This paper mainly makes the following aspects:(1)The three-dimensional modeling of the pump control system and the construction of the actual platform are completed.(2)Based on the architecture and working principle of the Internet of things network,S3C2440 chip is used as the main controller,and Linux system with open source code is used to build the embedded system to complete the u-boot migration,Linux kernel cutting and migration,network card driver development,RS485 driver and other contents.Porting Linux system to the core development board S3C2440,using C language to write the terminal program,testing the function of the corresponding modules.(3)RS485 communication protocol is adopted to realize the function of data receiving and sending of water pump system.The combination of Wi Fi communication and wired network communication ensures the real-time push and remote control of sensor data.(4)The data structure and content are described based on XML document,and the content of XML data is parsed by tinyxl2 parsing tool.In this paper,the scheme of creating multithread and calling epoll function is used to improve the real-time and concurrency of server system.(5)The My SQL database is installed on the server side to store the terminal data in the database.The use of the log file binlog realizes the functions of data backup and database change recording. |