节点文献

基于MQTT协议的信息推送平台系统的设计与实现

Design And Implementation of Information Push Platform System Based on MQTT Protocol

【作者】 杨鹏

【导师】 陆鑫; 陈榕;

【作者基本信息】 电子科技大学 , 软件工程(专业学位), 2015, 硕士

【摘要】 随着移动互联网技术的迅速发展以及智能移动终端的普及,人们的生活变得更加便捷、丰富,无论是个人还是企业都已受到移动互联网带来的深刻影响,越来越多的行业也希望利用移动互联网的优势达到降低人力成本、提高工作效率的目的。在其中的教育行业,师生间存在信息传递不及时、沟通不畅等问题,影响着教学质量和管理效率,因此提出能及时、可靠、精准地推送多媒体信息的需求,本项目正是根据某教育学院客户这样的需求提供的一种解决方案。通过对客户需求的分析以及国内外相关案例和技术的研究,论证需求的可行性,设计出“基于MQTT(Message Queuing Telemetry Transport)协议的信息推送平台系统的设计与实现”的方案,该系统结合B/S结构与C/S结构的架构模式,将总体架构细分为服务端、代理端和客户端三个子系统,采用基于MQTT协议的推送技术来实现信息的传播,突出及时、精准送达信息的特点。其中,服务端分为前端服务器和Web服务器,前者使用Nginx,提供反向代理和负载均衡的功能,后者采用Play Framework框架来开发,服务端的数据管理由MySQL数据库提供支持;代理端基于C语言版的Mosquitto工程来开发,从而提高开发和运行效率;客户端采用Android系统平台开发,从而支持使用最广泛的智能终端用户群。在开发工具方面,服务端和客户端工程在Eclipse上进行开发,代理端工程开发采用Sublime Text 2。在功能定义方面,服务端子系统具有内容管理、用户管理、处理反馈信息等功能;代理端子系统具有发布消息、持久连接用户终端等功能,提供对MySQL数据库操作的支持,改进MQTT协议从而实现个性化消息推送机制;客户端子系统具有消息接收、消息展示、信息反馈、附件下载等功能。通过对本系统的一系列测试,结果证明实现的功能符合要求,系统的可用性得到验证,系统总体上满足客户的需求。本项目的开发应用,使得MQTT协议的应用领域得到扩展,也使得本系统成为行业信息推送领域的成功解决方案之一。

【Abstract】 As the rapid development of mobile Internet technology and the popularity of smart mobile devices, people’s life become more convenient and richer. Whether individuals or companies have been deeply affected by mobile Internet, and more and more industries want to take advantage of the mobile Internet to reduce labor costs, improve work efficiency. In the education industry, between teachers and students exist these problems which not timely transmission of information and poor communication. These issues are affecting the quality of teaching and management efficiency, so they put the needs of push timely, reliable, precise multimedia information. This paper provides a solution which based on such needs of an educational institute customer.Through analysis of customer requirements and research related technical at home and abroad, then demonstrate the feasibility of demand, finally we design the scheme which build a platform of information push system based on the MQTT(Message Queuing Telemetry Transport) protocol. The software system’s overall architecture combined with the browser-server model and the client-server model, and divided into three parts of server, broker and client.This system’s information dissemination use push technology which based on MQTT protocol, the push mechanism has the advantage of push information timely and precisely. The server subsystem is divided into front-end server and Web server, former running Nginx to provides the capability of reverse proxy and load balancing, and the latter uses Play Framework. Server’s data management function supported by MySQL database. The development of broker subsystem is based on the Mosquitto project which can provide high efficiency. The development of client subsystem uses Android plateform which supports the most common smart devices. In the aspect of system’s development tools, both server and client use Eclipse, and the broker development tool is Sublime Text 2. In the aspect of system’s function module definition, the server subsystem defined these function modules such as content management, user management, feedback information processing. The broker subsystem contains these features which message publishing, persistent connection, database operation by MySQL, and personalized message push mechanism by improve MQTT protocol. The client subsystem has these features such as message receiving, message display, information feedback, download attachments.Through a series of tests of this system, the test report shows the realization of all the features to meet the customer’s requirements, and proved the availability of this system. The meaning of this project successful development widen the MQTT protocol’s application field, and also makes this system become one of the successful solutions in the field of industry’s information push.

  • 【分类号】TP311.52
  • 【被引频次】49
  • 【下载频次】1374
节点文献中: 

本文链接的文献网络图示:

本文的引文网络