| With the Internet of things,high-precision sensors and other technologies matures,the demand for pest forecasting can also be obtained with the solution,the traditional forecasting program has been far from meeting the needs of automation,intelligent pest forecasting system has become the current Of the urgent need.In view of this situation,based on the wireless sensor network,and based on the network protocol theory of ZigBee star network topology,a pest forecasting system is developed,which can measure the temperature and humidity of the monitoring area and the pest data in real time.Real-time acquisition,processing,display,storage and query functions.The system is divided into terminal,gateway,cloud server,client four parts.The experimental results show that the system is feasible and practicable based on wireless sensor networks.The contents of this paper are as follows:(1)Terminal node consists of PIC microcontroller,data acquisition module,433 MHz wireless module,which is responsible for collecting the temperature and humidity data,pest data stored in the node,while 433 MHz wireless module automatically sent to the gateway.(2)The gateway node is composed of STC MCU,433 MHz wireless module and GPRS wireless module.The node collects the data of the terminal node through the 433 MHz wireless module,establishes the TCP / IP connection with the GPRS wireless module and the network debugging assistant in the cloud server,Through the GPRS network to upload data,to achieve the effect of transparent transmission.(3)cloud server to Ali cloud ECS as a platform,including network debugging assistant,WampServer two parts,including WampServer provides PHP operating environment and MySQL database.Network debugging assistant to receive gateway data,TXT text format to save,PHP dynamic read TXT text data,convert it to a string stored in the MySQL database,while responding to client data requests.(4)the client using dynamic web technology,dynamic access to the database data to refresh the current page humidity,temperature and pest data and the terminal node ID and so on.When the pest data exceeds the set threshold,the system will automatically activate the alarm function to remind the personnel to take the appropriate pest control measures. |