Font Size: a A A

Research And Design Of Message Push System Based On MQTT

Posted on:2018-01-01Degree:MasterType:Thesis
Country:ChinaCandidate:C C XiaFull Text:PDF
GTID:2428330620457782Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
With the rapid development of Internet technology and the continuous improvement of hardware technology,in rencent years,the representative of the mobile intelligent terminal equipment like iPad,iPhone and Android has achieved great development,the number of users is growing rapidly.The traditional pull way can't satisty the actual application of the access to information timeliness,power consumption and the requirements of the network environment,we need to use the push way to replace the traditional pull way to transfer messages,MQTT(Message Queuing Telemetry Transport)protocol is a messaging protocol which designed for this kind of situation.This dessertation researched and designed a message push system based on the MQTT protocol.publisher client development based on Windows platform,the subscriber client development based on the Android platform,because of different platforms adopt different encoding,It will appear word compatibility problem like Chinese and other languages during the message push,as the MQTT protocol is designed to be a lightweight transport protocol,it does not have a encrypt control during the message push,so the system has a certain degree of security issues.The main work of this dessertation is as follows:(1)First,this dessertation focused on study the working principle of MQTT protocol,then studied mainstream message middleware technologies,finally,decided to use Apache Apollo as the message push server,using J2 SE technology to write the publisher client code,using Android technology to write the subscriber client code,because of Eclipse Paho open source project provides an implementation of the MQTT protocol,therefore,this dessertation focuses on the Eclipse Paho open source project,and using the API interface provided by Eclipse Paho to complete message push function.Aiming at the word compatibility problem of different platforms,using the unified character encoding way can solve the word compatibility problem of different platform in the process of system developing.(2)for the lightweight encryption problem,because of the MQTT protocol takes the lightweight requirements into account,and use the direct transmission original byte code way instead of use the built-in encryption way,so there is a security problem.Considering the two problems of lightweight and encryption,this dessertation introduced a lightweight encryption algorithm TEA algorithm,TEA algorithm can effectively compatible with lightweight demand and encryption requirements,it used 32 different rounds of shift and or operation to encrypt data,and the size of encrypted data will be not more than 8 bytes large than the size of original text data,it is very good to meet the demand of lightweight encryption.This dessertation introduced TEA encryption algorithm to improve the system,make the system have a certain security.Finally,the server and client functions are implemented on the message push platform,and the function of the system is verified by experiments.The results show that the word compatibility problem has been solved by using unified character encoding way to develop system,after the introduction of the TEA algorithm,the data transmitted in the network is encrypted data,which improves the security of the system to a certain extent.
Keywords/Search Tags:MQTT, Android, message push, TEA algorithm
PDF Full Text Request
Related items