咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >Design & Implementation of Dat... 收藏
Design & Implementation of Data Communication Server in Far...

Design & Implementation of Data Communication Server in Farming Machinery Supervision System

作     者:LIU Yongsheng 1 2 CHENG Liping 2 CHEN Tianen 2 YAO Guangqiang 2 1College of Information Engineering Capital Normal University Beijing 100037 China 2National Engineering Research Center for Information Technology in Agriculture Beijing 100097 China 

会议名称:《亚洲精细农业与计算机农业应用联合大会》

会议日期:2009年

学科分类:082804[工学-农业电气化与自动化] 08[工学] 0828[工学-农业工程] 

关 键 词:Data communication server Thread pool I/O Multiplexing Sockets Communication protocols 

摘      要:In order to supervise the working process of the remote farming machinery on a large scale, it is necessary to deal with the real-time data such as oil consumption, speed and location coordinates of many farming machines effectively. Because of the following reasons, the data communication server which takes the charge of data processing and communicating has always been the performance bottleneck of the farming machinery supervision system. The first reason is that the amount of real-time data is large and the second reason is that the processing of real-time data must be in time. This paper uses the object-oriented programming method to design and implement a data communication server which is based on the sockets communication, thread pool and I/O multiplexing. In this paper, the multi-connection TCP communication and the high-speed concurrency processing of large amount of real-time data are subtly resolved. The circular queue data structure, the multiple thread technology and I/O multiplexing are used in the server to accept, process and store the farming machines’ real-time data. The constant thread pool and temporary thread pool are used to provide data for monitoring centre which are used to display the farming machines’ working status and the result of statistical analysis. The expansive communication protocols of application layer are designed in this paper to increase the ability of the communication among different models in the farming machinery supervision system. The class hierarchy is built up to increase the ability of code reuse. The data communication server as a primary part of the farming machinery supervision system has been tested in Beijing Xing Lu He Farming Machine Server Company. The result indicates that the server’s stability and the efficiency of the real-time data processing can meet the requirement to supervise the working process of the remote farming machinery on a large scale.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分