| Greenhouses play an important role in the process of agricultural modernization.As a key technology for greenhouse control,intelligent regulation of greenhouse environmental parameters directly affects the income of greenhouse crops.In recent years,with the rapid development of sensor technology and network communication technology,the cloud computing-centric greenhouse control system has been rapidly applied,and its shortcomings are gradually exposed: the autonomy of the on-site system is weak;the reusability of the public interface of terminal equipment is poor,and remote maintenance is difficult;The control algorithm is simple and so on.In response to the appeal,this paper studies and designs a set of middleware from the terminal hardware layer to the edge application layer based on edge computing and proposes a greenhouse environment control algorithm.Combined with the cloud,the entire system can realize on-site localized operation.The same edge gateway can monitor and intelligently control multiple greenhouses at the same time.Under the framework of edge computing middleware,it can also remotely drive and drive the terminal public interface.Switch,thereby improving the versatility of the terminal in the system and simplifying the remote maintenance process of the terminal.The main work of this paper is as follows:(1)Demand analysis and overall plan design.Combined with the current situation at home and abroad,based on the real agricultural Internet of Things project,the demand for the greenhouse control system is analyzed,and the software and greenhouse control algorithm between the terminal hardware layer and the edge application layer are used as a breakthrough,and the edge computing-based slave terminal hardware layer is designed.To the middleware between the edge application layers,a two-level combined fuzzy control algorithm is proposed,and the overall system design is completed on this basis.(2)Edge computing middleware design.According to the specific requirements of the edge computing middleware in the overall system plan,formulate the edge computing middleware standard protocol to realize the unification of the internal protocol;design the virtual data soft bus across the physical connection to control the on-chip peripheral resources and on-board peripheral resources for the terminal,Access to the edge gateway for unified management and provide a standard way;then implement the details of the middleware into the terminal firmware and edge gateway applications,and complete the terminal general firmware,non-feedback controller drive logic,and feedback controller drive logic respectively The design of edge gateway hardware resource management module and application container management module.(3)Research on greenhouse environment control algorithm.By analyzing the mutual influence of the target control parameters in the control process,the controller design plan is formulated.Completed the two-stage combined fuzzy controller 0 design for controlling the temperature,humidity and illuminance of the greenhouse,the fuzzy controller 1 design for carbon dioxide concentration control,and the lighting time system design to ensure reasonable crop light time and limit the turn-on of the fill light.Subsequently,the feasibility of the two sets of combined fuzzy control algorithms was verified using MATLAB through a simple greenhouse environment model and real measured external environment data.(4)System testing and analysis.According to the expected design indicators and the actual use requirements of the greenhouse control system,complete the system test plan design,and then complete the terminal hardware design required for the test and have user hardware management,terminal execution model configuration,edge application deployment,and edge application information Cloud interactive UI design for monitoring and other functions.Subsequently,the virtual data soft bus test and edge application deployment test were carried out in the laboratory environment,and the control effect test was carried out for multiple consecutive days in the field environment,and the test results were recorded and analyzed.The results show that the greenhouse control system constructed based on the edge computing middleware and greenhouse control algorithm designed in this paper achieves stable control of the greenhouse temperature,humidity,light intensity and carbon dioxide concentration,and the system has good reliability and is under the framework of edge computing middleware.It has realized the remote driver of the terminal public interface and the remote switch of the driver,and the multi-application deployment capability with isolation characteristics.The edge computing middleware and greenhouse control algorithm researched and designed in this paper have certain advancement,and they also have high reference value and economic benefits for the control of other agricultural scenes. |