根据现代温室监控与管理需求,基于物联网技术框架,设计并实现了一种基于物联网的温室智能监控系统。系统由现场监控子系统、远程监控子系统和数据库3部分组成。采用基于分布式CAN总线的硬件系统实现环境数据的实时采集与设备控制,将分布图法应用于采集系统离异数据的在线检测。为了提高远程监控子系统的响应速度与交互性,采用了基于异步Java Script和XML技术(Ajax)的Web数据交互方式。结合温室环境调控的特点,将基于混杂自动机模型的温室温度系统智能控制算法应用于实际系统,实现了温室环境的自动调控。为保证设备控制的安全性,采用轮询法实现了现场监控子系统和远程监控子系统中设备状态的同步,并将基于Zernike矩的图像识别技术应用于双向型设备的状态检测,实现设备的自动校准。试验表明系统数据传输稳定,环境调控可靠,满足现代温室智能监控的需求。
According to the monitoring and management needs of the modern greenhouse, a modern greenhouse intelligent monitoring system was designed based on the internet of things. The system was consisted of local monitoring subsystem, remote monitoring subsystem and database. The local monitoring subsystem was developed under the construction of Client/Server, but the remote monitoring subsystem with the construction of Browser/Server, and the database is the bridge between them. The hardware system based on distributed CAN bus was applied to realize the real-time greenhouse environment data acquisition and equipment control. Also, the error data of the data acquisition system was on-line checked by distributing diagram. In order to improve the response and interactivity of the remote monitoring subsystem, the Ajax-based Web data interactive way was applied. Combing the devices' features, the temperature system intelligent control based on hybrid automata was applied to realize the automatic control of the greenhouse environment. The image recognition technology based on Zernike moments was applied to realize the automatic calibration. The infrared network camera was used to acquire the real-time images of the ventilation, and Zernike moments were utilized to extract the image features, identifying the current state of ventilation by comparing with the pre-set states of the system. Then the runtime could be calculated from the current state to full closed state of the ventilation. The tests showed that the system could provide stable data transmission and reliable control, satisfying the intelligent monitoring of the modern greenhouse.