首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到15条相似文献,搜索用时 218 毫秒
1.
MQTT协议在Android平台上的研究与应用   总被引:1,自引:0,他引:1  
MQTT是一种基于发布/订阅的轻量级消息传输协议,它的出现为Android平台上实现消息推送提供了新的途径. 针对Android平台消息推送协议的需求,研究了MQTT协议的结构及消息格式,对比分析了Android平台上其他消息推送方案,设计并实现了一款基于MQTT协议的即时通信应用,完成了登录/注册、即时通信、好友管理等功能. 测试结果表明此应用能够满足即时通信应用的基本功能及需求.  相似文献   

2.
伴随着互联网的飞速发展,特别是在近几年中,移动互联网的发展更为迅猛.在移动互联网中,消息推送是其中很重要的一部分,它是手机客户端信息发布和通信的重要方式.MQTT协议是Android系统中消息推送的实现技术之一,由于其具有低功耗、节省流量和可扩展性强的优点,目前已得到了众多应用.同时,RocketMQ作为一种分布式消息队列,在服务器分布式部署上具有很大优势,具有高性能、高可靠、高实时、分布式特点.本文介绍了MQTT协议与RocketMQ的这种开源项目的应用,并通过RocketMQ与Mosquitto相结合的方式,实现了一种基于RocketMQ的MQTT消息推送服务器及其分布式部署.  相似文献   

3.
消息推送系统在实现企业办公自动化方面有着重要的作用,通信协议和系统架构的设计是企业消息推送系统性能优化的关键因素.传统的标准化协议方案在移动互联网领域的应用存在着实现复杂和流量消耗大等缺点.针对这一问题,结合企业消息推送系统的特点,采用物联网领域的轻量级协议MQTT来设计企业消息推送系统的通信协议,通过设计MQTT话题区分社交通知、即时消息和状态呈现等功能,在满足了应用需求的同时保证了协议的简单易实现和流量消耗小等适用于移动互联网的优势.另一方面,在传统的对称和非对称设计的服务器架构之上,提出了信息上非对称和功能上对称的系统架构,为企业消息推送系统的构建提供了一个详细的解决方案.该方案在满足系统设计需求的同时提高了系统的可扩展性.  相似文献   

4.
为改善传统智能家居客户端功能单一、操作繁琐、不易推广等不足,设计并实现了基于Android系统平台集内外网对智能家居控制、智能配对、动态添加设备和房间、多用户共享数据、消息推送等关键技术的智能家居客户端。通过云服务器转发消息,客户端实现了外网与网关通信。网关保存所有智能家居信息,客户端通过查询网关获取信息,实现多用户数据共享。采用基于MQTT协议的消息推送机制,实现当设备状态改变时,设备信息能被及时推送给每一个用户。经测试,多用户均可从网关获取设备等信息,并对设备进行控制,是一款性能良好、界面友善的智能家居客户端软件。  相似文献   

5.
蒋鹏  袁嵩 《现代计算机》2014,(4):11-15,21
推送技术在移动开发中被广泛使用,然而目前推送体系过于依赖网络,在网络中断或故障的情况下,会给消息推送带来极大的困扰。对目前常用的推送方式进行分析和研究,通过补充和完善MQTT推送协议,综合网络、邮件、短信等多种通信方式,优化服务器传输机制,并加入消息过滤层过滤垃圾信息,组建更为智能、高效、安全的推送系统。  相似文献   

6.
为实现海洋观测数据的及时推送,设计了一种数据推送系统,目的是将各个观测船、浮标和水下观测网等采集到的海洋观测数据推送到手机客户端,并实现异常数据的报警。提出了一种基于MQTT协议的数据推送方案,在加密与验证方面对MQTT协议进行改进。此外,设计了安全认证机制与消息管理模块,保证了消息在传输中不被篡改或者丢失。测试结果证明,该方案安全性较高,服务权限设计合理,费用方面也具有较大的优势。  相似文献   

7.
近年来,宽带接入技术正以十分惊人的速度发展.与此同时,移动互联网技术也日益成熟,即时消息业务已成为移动互联时代的应用热点.在互联网中XMPP和SIMPLE被广泛使用,但其并不能很好的适用于移动互联网.采用发布/订阅模型的MQTT协议是一种轻量级的消息传输协议,具有低功耗、节省流量和可扩展性强的优点.本文首先分析了XMPP和SIMPLE协议的不足之处,研究了MQTT协议的消息格式以及协议的使用方式,之后对即时消息业务进行了设计和实现.并在功能和性能上进行了相关的测试和分析.  相似文献   

8.
文中将ZigBee无线传感器网络、MQTT消息代理以及WebSocket技术相结合,设计实现了一个适用于小到家庭大到工业园区的实时远程监测控系统,以减少不必要的电能浪费,同时有效地节省人力物力。系统后台利用ZigBee无线传感器网络采集用电信息;中间层利用MQTT消息代理将采集到的用电信息以消息的格式统一管理,并为用户预留创建新消息的接口,便于系统的扩展;前端采用B/S模式增强其通用性,采用WebSocket技术将Web服务器得到的消息实时地推送到客户端浏览器,提高了系统的实时性。结果表明该系统在可扩展性、通用性、实时性等方面都有所改进。  相似文献   

9.
Android平台基于MQTT协议的推送机制   总被引:2,自引:0,他引:2  
Android平台的迅速崛起对消息推送技术提出了更严峻的挑战.传统的推送通知方式主要有Polling,SMSPush,IP Push三种,但对Android平台上的应用来说,这些推送方式都有各自的短板.针对该情况,首先对Android平台上几种推送机制进行了分析,之后着重对基于MQTT协议的推送机制进行研究,最后借助IBM提供的开源工具Mosquitto通过编码加以实现.经实验测试,证明基于MQTT协议的推送机制效率高,功耗低,可以稳定地用于Android平台上的应用.  相似文献   

10.
近年来即时通信在Internet上得到了越来越广泛的应用,传统服务器所遵循的"拉取"方式并不能很好地满足实际应用中信息获取实时性、用户请求高并发等方面的需求。为了改善上述问题,以"推送"方式进行实时消息传递成为研究热点。通过采用WebSocket技术,以Node.js、Redis、RabbitMQ等开源项目为基础,设计实现一个WebSocket服务器,能够对大量不同用户的订阅请求提供实时消息推送服务,并改进了Node.js多进程管理模块。实验结果表明,单个WebSocket服务器在处理1000以上的并发连接时,错位率在1.52%左右,有效地实现了WebSocket服务器的高并发与稳定性。  相似文献   

11.
The arising of the Internet of Things (IoT) is enabling new service provisioning paradigms, able to leverage heterogeneous devices and communication technologies. Efficient and secure communication mechanisms represent a key enabler for the wider adoption and diffusion of IoT systems. One of the most widely employed protocols in IoT and machine-to-machine communications is the Message Queue Telemetry Transport (MQTT), a lightweight publish/subscribe messaging protocol designed for working with constrained devices. In MQTT messages are assigned to a specific topic to which users can subscribe. MQTT presents limited security support. In this paper we present a secure publish/subscribe system extending MQTT by means of a key management framework and a policy enforcement one. In this way the flow of information in MQTT-powered IoT systems can be flexibly controlled by means of flexible policies. The solution presented is released as open source under Apache v.2 license.  相似文献   

12.
实现一种采用MQTT协议、通过安卓/iOS APP对基于开源硬件-WRTnode的移动智能监控设备(如智能设备,机器人等)进行远程控制的方案.采用开源MQTT服务器框架-mosquitto作为MQTT broker,通过APP发布控制指令主题,监控设备订阅该主题并根据控制指令执行操作,监控设备发布需要上报的监控数据主题,APP订阅该主题后将接收到监控数据.通过双向的发布-订阅模式,实现多功能智能监控过程.  相似文献   

13.
Media distribution over the Internet is a fact. Finding a way to protect content streaming is a hot topic. This paper presents both a new and efficient key multicasting protocol based on the use of orthogonal systems in vector spaces, and its scalable implementation by means of a platform independent server. The protocol outstands in exchanging a small number of tiny messages which helps the server to scale when facing a huge number of legitimate users.  相似文献   

14.
《Computer Networks》2007,51(13):3715-3726
Most users have multiple accounts on the Internet where each account is protected by a password. To avoid the headache in remembering and managing a long list of different and unrelated passwords, most users simply use the same password for multiple accounts. Unfortunately, the predominant HTTP basic authentication protocol (even over SSL) makes this common practice remarkably dangerous: an attacker can effectively steal users’ passwords for high-security servers (such as an online banking website) by setting up a malicious server or breaking into a low-security server (such as a high-school alumni website). Furthermore, the HTTP basic authentication protocol is vulnerable to phishing attacks because a client needs to reveal his password to the server that the client wants to login.In this paper, we propose a protocol that allows a client to securely use a single password across multiple servers, and also prevents phishing attacks. Our protocol achieves client authentication without the client revealing his password to the server at any point. Therefore, a compromised server cannot steal a client’s password and replay it to another server.Our protocol is simple, secure, efficient and user-friendly. In terms of simplicity, it only involves three messages. In terms of security, the protocol is secure against the attacks that have been discovered so far including the ones that are difficult to defend, such as the malicious server attacks described above and the recent phishing attacks. Essentially our protocol is an anti-phishing password protocol. In terms of efficiency, each run of our protocol only involves a total of four computations of a one-way hash function. In terms of usability, the protocol requires a user to remember only one password consisting of eight (or more) random characters, and this password can be used for all of his accounts.  相似文献   

15.
HTTP协议建立在互联网通信协议TCP / IP 上,由于开发成本低,开放性高,许多厂商正在开发基于HTTP协议的物联网系统;但在资源紧缺型的嵌入式系统中或网络带宽非常昂贵的环境中,HTTP协议并不适用。MQTT协议具有功耗低、开放性好、简单、轻量级及易于实现的优点,即使在资源有限的环境中也可以使用。本文讨论并通过实验对比了HTTP协议和MQTT协议在智能家居领域的应用,测试结果表明MQTT在降低功耗和推送功能开发上优势明显。  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号