| In recent years,information technology and agricultural production have been highly effective combination,and the level of agricultural production has been rapidly improved.The real-time monitoring of data information in the canopy is an important link to realize agricultural production informatization.By combining sensor sensing technology,computer control technology,fieldbus technology and cloud platform technology,the environmental factors such as soil,air and light in the canopy can be acquired,which will help to carry out all-round development of agricultural shed High efficiency production monitoring.In the greenhouse intelligent monitoring system of Internet of things,the gateway of Internet of things is the core equipment,it connects the sensor of perception layer downward and connects to the cloud platform through the transport layer upward,which provides the basis for the system to monitor all kinds of data information.Therefore,the key task of building greenhouse monitoring system is the development of IOT gateway platform,which is also the main research goal of this paper.On the basis of the gateway platform,the greenhouse remote monitoring system is built.Based on the analysis of the architecture of the Agricultural Internet of things,this paper studies the Agricultural Internet of things gateway from three different levels of the corresponding technology.According to the function and performance requirements,the selection of core devices,the construction of gateway system based on STM32 and the software design are completed.The hardware system circuit of the gateway is mainly composed of the core circuit and the peripheral communication circuit,and the communication interface is adjusted according to the sensor and cloud platform;The software design includes communication design based on Modbus protocol,at command control,communication mechanism of mqtt protocol and communication flow of socket connection.By transforming the data collected by the front-end sensing network into TCP / IP packets,the4 G communication module is used to transmit data between the mqtt protocol and various cloud platforms used in the test,and the diversified interconnection between the physical layer and the terminal platform is realized.Finally,the function test and system joint debugging of each module are carried out,and the upload and storage of the monitoring parameters required by the target scene and the command distribution are completed.After testing,the gateway of Internet of things designed in this paper runs stably,realizes the basic functions of Agricultural Internet of things gateway,and meets the design requirements.Through the Internet of things gateway,it provides technical support for the greenhouse remote monitoring system. |