Font Size: a A A

Design And Implementation Of Server On The Cloud Platform For Grain Monitoring System

Posted on:2017-03-16Degree:MasterType:Thesis
Country:ChinaCandidate:Y P ChengFull Text:PDF
GTID:2308330485463745Subject:Communication and Information System
Abstract/Summary:PDF Full Text Request
Grain has always been a basic condition for the human beings’ survival and development, dating back to ancient times. Grain security is not only related to the survival of individuals, but also the country. Ensuring grain security is conducive to social stability and building a harmonious society. The grain storage is an important part of grain security. In order to reduce the loss of grain in storage, users need know the quality of grain in storage in real time. With the rapid development of information technology, the industry of granary monitoring system has been influenced in some extents. The users have more requirements of the measurement and control systems used in grain storage. According to today’s measurement and control systems used in grain storage, most of them use the local computer to install the software. Users can only use the software in the local computer, not remotely. Some of the measurement and control systems used in grain storage usually use the local database to manage the data of grain via the Internet. So it is difficult to achieve the goal of managing a wide range of granary.In order to achieve the sharing of data and remote operation of the grain monitoring system, it designs the server on the cloud platform in this thesis. This design of the server relies on the cloud services. The server is the core of data processing and affairs management and can meet the requirements of multi-users online at the same time viewing the grain monitoring data and monitoring the grain. The main function includes accessing the system, synchronizing message, sending instructions, and the timing. In order to facilitate the development, maintenance and expansion of the program, it uses a layered way to design the server. It includes the network layer, the business logic layer and data access layer. The main work of this thesis is presented as follows:(1) At the network layer, it completes the design of TCP(Transmission Control Protocol) server and UDP(User Datagram Protocol) server, and the program of the thread pool to realize the network communication. The server uses the way of TCP communicating with the client to ensure the reliability of the transmission; and the way of UDP collecting data to ensure the real-time transmission. In addition, it uses asynchronous I/O(input/output) model and thread pool technology to realize asynchronous communication, which can improve the speed and efficiency of data transmission, and the performance of the server to handle concurrent tasks.(2) Function of the server is designed in a modular way at the business logic layer. It uses the asynchronous callback mechanism to implement monitoring business. And it designs the data processing module. The function of the network layer is called for I/O communication which is conducive to improve the efficiency of the server.(3) It uses OTL(Oracle,Odbc and DB2-CLI Template Library) technology to connect the database which can add, delete, change, select the data of the database at data access layer. In addition, it uses MD5(Message Digest Algorithm 5) technology to ensure the safety of users’information.(4) The main function of the server is encapsulated, and DLL(Dynamic Linkable Library) interfaces are wrote for clients to call which can help with software development and maintenance. And each function of the server are tested.The server’s biggest feature designing in this thesis is combined with cloud service. In the cloud, it builds a unified platform for data processing. Data will be converged from different places, which can achieve the sharing of data and can be used for a wide range of granary management. In addition, the server designed in this thesis can connect with a variety of client. It can allow multi-users to use the system anywhere, which can break the equipment limitations and geographical limitations.
Keywords/Search Tags:grain monitoring system, server, layered architecture, cloud service
PDF Full Text Request
Related items