Design and implementation of data processing server in farm wireless sensor network
-
Graphical Abstract
-
Abstract
Wireless sensor network is an effective method to gather the remote information and also the important part of whole wireless sensor network application system to accept and process the farmland information which is gathered by wireless sensor network. Aiming at the characteristics of data acquisition using wireless sensor network, the construction of the data processing server for the system was studied. A data processing server based on the non-blocking I/O sockets communication was designed and implemented. The server utilized the technologies of thread pool and I/O multiplexing. Cyclic queue was adopted as the data buffer, which could better solve the problems such as the multi-connection TCP communication and the high-speed concurrent processing performance of a large number of real-time monitoring data. Through using the object-oriented programming method, the class hierarchy was built up to increase the ability of code reuse.
-
-