Font Size: a A A

Design And Application Of Data Communication Framework In Intelligent Monitoring Android Client For Grain Storage

Posted on:2015-02-12Degree:MasterType:Thesis
Country:ChinaCandidate:M NieFull Text:PDF
GTID:2268330428464720Subject:Electronics and Communications Engineering
Abstract/Summary:PDF Full Text Request
Android is a new generation of smart phone platform that advocated and released by Google Company. The platform has aroused extensive attention in the Mobile Phone industry when it is once released. The openness and compatibility of Android platform has been widely acclaimed by people. Because of its high development, now it has become the most popular smart phone operating system. Comprehensive coverage of the3G network promotes the rapid development of mobile Internet. Therefore more and more applications are installed in Android smart terminal. The Android terminal has become the main equipment which people used to obtain information in daily life.Traditional grain monitoring system generally uses a computer which its position is fixed to monitor the granary of environmental information. This way greatly limits the flexibility and mobility of people and it can not meet the needs of obtaining grain information from the distant place. At present, although the handheld terminal can basically get grain information temporarily on the granary site, but it can only be applied to a small site. The handheld terminal not only has low versatility, but also high manufacturing cost. In view of these drawbacks of existing grain monitoring terminal, so this thesis designed an intelligent grain monitoring client which based on the Android platform. The client can get grain information conveniently, and it can break the regional restrictions. It has portability and good mobility, and it can realize the monitoring of grain information anytime and anywhere. Data communication module is the core function module of Android client, and the information interaction between the client and the cloud platform depends on the realization of this module. This thesis focuses on the design and application of data communication framework of the client.The design of data communication framework includes three parts, such as communication module, data encapsulation and analysis module, and data display module. It uses TCP/IP communication protocol to transport the real-time grain information. The communication module is the core part of the data communication framework. It implemented the function which the client can communicate with the cloud platform by using Netty network communication framework and calling the API that provided by Netty. Data encapsulation and analysis module which both based on Google Procotol Buffer message structure realized the serialization and de-serialization of structured data and completed encapsulation and analysis for all communication data. Communication data transmission in accordance with a transmission format custom based on the Protobuf, and the data encapsulation module encapsulates the communication data. Data analysis module is the reverse process of the data encapsulation module. It can extract the valid data according to the same data format. The ultimate goal of data communication framework is to display the grain information to users, and the data display module provides two ways to display the information. One way is to use the form of web pages to display the Grain information dynamically based on WebView, and another way is to use the AchartEngine which is the diagram tool library of Android system to map the temperature trend for each time period.
Keywords/Search Tags:Android, grain monitoring, data communication framework, real-timetransmission, Google Procotol Buffer
PDF Full Text Request
Related items