| With the development of IoT technology,the development trend of modern agriculture is gradually changing to precision agriculture.Compared with the traditional farmland environmental monitoring methods,modern farmland environmental monitoring methods based on the IoT technology have great advantages and improvements in terms of cost,convenience,real-time and easy-using.Therefore,the research and development of orchard environmental monitoring system based on Internet of things technology has a good practical value.This thesis studies and implements an orchard environment monitoring system based on 4G network,which has the characteristics of real time,high efficiency and convenience.It can provide orchard environment monitoring services for various users.The main work of the thesis includes:(1)The thesis firstly designed the overall structure of the orchard environmental monitoring system and divided it into data acquisition layer,data service layer and system application layer.Thereinto,the data acquisition layer collects and uploads the orchard environmental data through intelligent collection nodes,the data service layer receives the orchard environmental data uploaded by the smart collection node and stores it in the database,The system application layer uses two ways of Web applications and APP applications to provide users service functions such as information inquiry,planting consultation and communication.At the same time,the system-related implementation technologies were introduced,such as 4G network communication,message queue,and Spring MVC,and so forth.(2)Aiming at the problems of collection,pretreatment and transmission of orchard environmental monitoring data,the thesis research and develop an environment intelligent acquisition node based on 4G network,it is used to receive and pretreat environment data such as soil temperature and soil moisture collected by nine environmental sensors.The thesis introduces the overall structure of the node,which focuses on the design and implementation of modules such as data parsing,early warning processing and data transmission.Among them,the data parsing module is responsible for filtering the invalid data packets,parsing the effective data.The early warning processing module is used to analyze the effective data,generating early warning information,and then assemble the data in a fixed format together with the node analysis data.The data transmission module is responsible for sending the assembled protocol packets to the data acquisition server by TCP.Through deployment test,the intelligent collection node developed in this thesis can complete the automatic collection,processing and uploading of the orchard environment data in a complex operating environment.The configuration management is simple and convenient,and has a good application value.(3)In addition,in order to improve the concurrent processing ability of the server to upload data to the intelligent acquisition node,this thesis designs and develops a data acquisition server based on Asynchronous I/O(AIO)model,optimizes server performance in multiple aspects such as message queue,session connection pool and dynamic buffer,and improves communication efficiency.At the same time,this thesis tests the development of the acquisition server,using throughput and response time as the evaluation index to test the best and maximum number of concurrent processing of the server.Experiments show that the server performs well in dealing with high concurrent data upload requests,and it can better meet the application requirements of the system.(4)Finally,on the basis of the above research,this thesis designed and implemented an orchard environmental monitoring and application system,which including orchard environmental monitoring web application system and Android application,to provide orchard environmental monitoring services for three user roles,including fruit growers,experts,and administrators.The system data service interface is designed and developed by using lightweight Spring MVC framework,and business logic is unified.The system is based on the WebSocket protocol for message communication,which facilitates the online technical communication and consultation between the orchard users and the orchard experts. |