Design and development of real time data push in web-based automatic irrigation control system

被引:0
作者
Li, Shuhua [1 ,3 ,4 ,5 ]
Hao, Xingyao [2 ,3 ,4 ,5 ]
Zhou, Qingbo [1 ]
Pan, Yuchun [2 ,3 ,4 ,5 ]
机构
[1] Institute of Agricultural Resources and Regional Planning, Chinese Academy of Agricultural Sciences, Beijing
[2] Beijing Research Center for Information Technology in Agriculture, Beijing
[3] National Engineering Research Center for Information Technology in Agriculture, Beijing
[4] Key Laboratory of Agri-informatics, Ministry of Agriculture, Beijing
[5] Beijing Engineering Research Center of Agricultural Internet of Things, Beijing
来源
Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering | 2015年 / 31卷 / 15期
关键词
Data acquisition; Data push; Design; Irrigation; Irrigation control; Observer pattern; Real time;
D O I
10.11975/j.issn.1002-6819.2015.15.018
中图分类号
学科分类号
摘要
The automatic irrigation control system based on web is a main trend of current water-saving technology development. In order to provide personalized irrigation control scheme and precise water metering, the system needs higher real-time data transmission performance. The real-time performance of web application is currently poor, and difficult to meet the needs of accurate irrigation control. Aiming at this problem, in this paper, the structure and bottleneck of real-time data transmission of web-based automatic irrigation control system was analyzed, and the data push scheme of improving the real-time performance was proposed. Based on observer pattern, the data push mode between data layer and logic layer, and that between logic layer and presentation layer were specifically designed. In the former data transmission process, the observed object is database table, and the observer is Web server monitoring program. After the data is inserted into the data table, the database immediately triggers the stored procedure to notify the relevant Web service program and executes updating data subject. In the latter data transmit process, the observed object is program object running on the Web server, and the observer is client program object running on the browser. Because the Web service program cannot directly initiate data connection to the client program. Therefore, in order to implement the observer pattern, it is essential to establish a real-time tow-way data connection in the client program loading process. Then through subscribing a group of data subjects, the client program can receive real-time data push as soon as the data subjects are updated. The connection between client and Web server is established and maintained by client connect request, then a streaming connection is evoked by client through which Web server streams data down to the client with no poll overhead. But these client-to-server messages are not sent over the streaming connection, instead an internal HTTP connection was used to send data for the duration of the operation. Through database, server and client programming, the construction of web-based irrigation control system and the realization of the real time data push mechanism were implemented. Then tests were carried out to quantitatively assess real-time performance of data acquisition and instruction sending process. The result showed that: the average delay of the data acquisition process was 1.7 seconds, the average delay of the control process was 3.4 seconds, and the real-time performance could basically meet the needs of equipment control and irrigation decision-making. The average delay of one-way data transmission in the software system was no more than 130 milliseconds. The delay factors of the data pull mode were totally eliminated, and this improvement plays an important role in enhancing overall real-time performance of system. The results of this paper showed that, through the reasonable design and development, the real-time performance of the Web based irrigation control system can reach the level of desktop control system. When the system is accessed through internet or 4G mobile communication network, the delay is on the hundreds milliseconds level, which has little effect on the real-time performance of the system. The data push scheme can also be applied to other related monitoring and control software system in internet of things, which can improve the real-time performance with low cost. ©, 2015, Chinese Society of Agricultural Engineering. All right reserved.
引用
收藏
页码:133 / 139
页数:6
相关论文
共 17 条
[1]  
Shan F., Zhou J., Zheng W., Et al., Automatic irrigation system for park based on configuration software and modbus protocal, China Rural Water and Hydropower, 4, pp. 36-38, (2010)
[2]  
Kuang Y., Shen Y., Duan J., Et al., Application of fuzzy control to automatic water-saving irrigation of rice, Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 27, 4, pp. 18-21, (2011)
[3]  
Xu Z., Pan W., Shi H., Application of automatic irrigation control system, Beijing Water, 5, pp. 48-51, (2010)
[4]  
Yue X., Liu Y., Hong T., Et al., Design and experiment of automatic irrigation control system based on soil moisture meter, Transactions of the CSAM, 44, pp. 241-246, (2013)
[5]  
Li N., Liu C., Li Y., Et al., Development of remote monitoring system for soil moisture based on 3S technology alliance, Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 26, 4, pp. 169-174, (2010)
[6]  
Chen S., Gui W., Study on real-time characteristic of process control remote monitoring and control system based on internet, Infomation Technology, 3, pp. 31-33, (2008)
[7]  
Jia Y., Liu Z., Duan C., Et al., The remote real-time monitoring implementing technology based on the Web, Microcomputer Information, 22, 8, pp. 89-91, (2006)
[8]  
Zhou Z., Bian F., WebGIS real-time monitoring system based on socket, Science of Surveying and Mapping, 31, 4, pp. 88-89, (2006)
[9]  
Jiang H., Mao J., Xu X., Et al., Support system for wheat production management based on service-oriented architecture and WebGIS, Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 28, 8, pp. 159-166, (2012)
[10]  
Guo X., Xu X., Cao W., Et al., Web service integration method of crop model system, Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 29, 22, pp. 162-170, (2013)