| Our country is a large agricultural nation, greenhouse planting has become a major economic source in some areas. Continuous improvement of greenhouse technology has improved the digitalization and automation level of agriculture. Internet of Things combines the wireless sensors, RFID, embedded system and computer network to produce a new technology, the field of agricultural production combined with Internet of things is a relatively new topic in our country.In order to ensure that the wireless sensor network nodes can be effective and reasonable distribution in large-scale greenhouse, this paper analyzes the relationship between the transmission distance and the residual energy of sensor nodes. Through MATLAB simulation, and the results are analyzed, the improved algorithm of LEACH routing protocol can extend the network life cycle, and improve the communication efficiency of the whole network. The energy consumption model of a greenhouse is also established to provide a theoretical basis for the selection of network topology in the greenhouse.The system uses Zig Bee technology to form a wireless sensor network, to achieve the information acquisition and transmission of greenhouse temperature, humidity, CO2 concentration and light and plant growth, and wireless remote control of the pumps, lighting and ventilation equipment. Embedded gateway is the control center of the whole intelligent remote monitoring system, it is consist of tiny6410 development board, Zig Bee module and GPRS module and so on, mainly to receive data acquisition from the sensor terminal, and send and receive control instruction of the terminal, and timely send alarm messages in the abnormal condition. It uses Linux as the operating system on the embedded platform. Firstly, the embedded environment is build, then make configuration and transplantation of the bootloader, kernel, and the root file system, then transplanted the boa server, SQLite database, Mjpg-streamer etc.. The HTML static monitoring is prepared, and using the B/S model and dynamic CGI interface between static web and Boa server data exchange. At the same time, the system uses USB camera, through the PC browser for real-time dynamic monitoring of the greenhouse, realize to view the growth condition of plants and pests etc. in the remote and online way. When the whole monitoring system is built, the system can realize the automatic control of greenhouse environment without manual intervention using the key linkage function. The users login monitor web browser on the PC side, click on the corresponding button and can realize open or close of the corresponding equipment in the greenhouse. When the environment parameters in the greenhouse are abnormal, the system can send text messages to prompt the users through the GPRS module. Finally, through the overall test, the system can basically achieve the expected design goals. |