基于消息过滤算法实现MQTT协议智能家居的识别Smart home identification based on MQTT protocol and message filtering algorithm
邱雨,彭大芹,梁吉申,林峰,项磊
摘要(Abstract):
随着智能家居的迅猛发展,使其在高、中、低不同市场上都存在着很多竞争。Yun OS智能操作系统的推出也加快了智能家居行业的发展。Message Queuing Telemetry Transport(MQTT)协议是为大量计算能力有限,并且工作在低带宽、不可靠的网络的远程传感器和控制设备通信而设计的协议。由于开销小,适用小型传输,在智能家居中得到大量运用。通过对MQTT协议结构以及关键字段的研究,并从实际环境中抓取到的智能家居中Packet Capture(PCAP)包进行分析,提出一种改进型的消息过滤算法将MQTT协议中订阅的主题与智能家居品牌联系起来,实现识别智能家居设备厂商的目的。
关键词(KeyWords): 智能家居;MQTT;消息过滤算法;小型传输;PCAP包;关键字段
基金项目(Foundation): 重庆市教委科学技术研究项目(KJ1500427)~~
作者(Author): 邱雨,彭大芹,梁吉申,林峰,项磊
DOI: 10.16652/j.issn.1004-373x.2018.16.016
参考文献(References):
- [1]LUZURIAGA J E,CANO J C,CALAFATE C,et al.Handling mobility in Io T applications using the MQTT protocol[C]//Proceedings of International Conference on Internet Technologies&Applications.Wrexham:IEEE,2015:245-250.
- [2]蒋鹏,袁嵩.基于MQTT协议的综合消息推送[J].现代计算机,2014(11):11-15.JIANG Peng,YUAN Song.Integrated message push based on MQTT protocol[J].Modern computer,2014(11):11-15.
- [3]YASSEIN M B,SHATNAWI M,ALJWARNEH S,et al.Internet of Things:survey and open issues of MQTT protocol[C]//Proceedings of International Conference on Engineering&MIS.Monastir:IEEE,2017:1-5.
- [4]LEE S,KIM H,HONG D K,et al.Correlation analysis of MQTT loss and delay according to Qo S level[C]//Proceedings of International Conference on Information Networking.Bangkok:IEEE,2013:714-717.
- [5]IBM,Eurotech.MQTT V3.1 protocol specification[S/OL].[2011-02-28].https://wenku.baidu.com/view/dedf6ed9d15abe23482f4d65.html.
- [6]NAIK N.Choice of effective messaging protocols for Io T systems:MQTT,Co AP,AMQP and HTTP[C]//Proceedings of IEEE International Systems Engineering Symposium.Vienna:IEEE,2017:1-7.
- [7]HUNKELER U,TRUONG H L,STANFORD-CLARK A.MQTT-S:A publish/subscribe protocol for wireless sensor networks[C]//Proceedings of 3rd International Conference on Communication Systems Software and Middleware and Workshops.Bangalore:IEEE,2008:791-798.
- [8]许金喜,张新有.Android平台基于MQTT协议的推送机制[J].计算机系统应用,2015,24(1):185-190.XU Jinxi,ZHANG Xinyou.Push mechanism on Android plat-form based on MQTT protocol[J].Computer systems&applica-tions,2015,24(1):185-190.
- [9]明廷堂.BF与KMP模式匹配算法的实现与应用[J].电脑编程技巧与维护,2013(23):24-28.MING Tingtang.Implementation and application of BF and KMP pattern matching algorithm[J].Computer programming skills&maintenance,2013(23):24-28.
- [10]顾亚文.基于MQTT协议的通用智能家居系统设计与实现[D].西安:西安电子科技大学,2014.GU Yawen.Design and implementation of general smart homesystem based on MQTT protocol[D].Xi’an:Xidian Universi-ty,2014.