
基于MQTT协议的智能家居模块化拓展系统
Intelligent home modular expansion system based on MQTT protocol
为增强智能家居系统的便捷性,不破坏原有智能家居系统的结构便可增加新用户、新终端设备,设计了一种基于MQTT协议的智能家居模块化拓展系统。系统选用MQTT协议统一管理网关和用户,网关选用STM32F103RCT6作为微处理器统一管理终端设备。同时,云平台、微信小程序、网关通信选用MQTT协议实现远程传输,实现应用端微信小程序对家居设备状态可视化展示和控制管理的功能。实验结果表明,增加新用户、新终端设备操作简单,经济高效,为用户节省了大量资金。
In order to enhance the convenience of smart home system and not destroy the structure of the original smart home system,new users and new terminal equipment can be added,a modular expansion system of smart home based on MQTT protocol is designed.The system uses MQTT protocol to manage gateway and users in a unified manner,and STM32F103RCT6 as a unified management terminal device for the gateway.At the same time,the cloud platform,WeChat mini program and gateway communication use the MQTT protocol to achieve remote transmission,and realize the function of the application side WeChat mini program for visual display and control management of home equipment status.The experiment results show that adding new users and new terminal equipment are simple,economical and efficient,and saves a lot of money for users.
MQTT协议 / STM32F103RCT6 / 微信小程序 {{custom_keyword}} /
MQTT protocol / STM32F103RCT6 / WeChat mini program {{custom_keyword}} /
薛士然 {{custom_editor}},
表1 网关协议转换表Table 1 Gateway protocol conversion table |
网关收到设备层 状态信息 | 功能 | 通过网关协议 转换后格式 |
---|---|---|
FF0108800DD | 手动调节窗帘 位置到88% | FF1085003770880000DD |
FE1308500DD | 手动调整亮度到85% | |
FE0037700DD | 环境亮度 | |
FD210000DD | 打开门锁 | |
FC310000DD | 预留 |
表2 数据帧结构Table 2 Data frame structure |
帧头 | 设备信息内容 | 帧尾 | ||||
---|---|---|---|---|---|---|
FF | 门锁 | 灯光亮度 | 环境亮度 | 窗帘位置 | 预留 | DD |
1 | 085 | 377 | 088 | 0000 |
表3 指令数据包Table 3 Instruction data packets |
指令内容 | 指令数据包 | 类型 | 指令数据包含义 |
---|---|---|---|
01 | FF0108800DD | 控制指令 | 手动调整窗帘开合度为88% |
11 | FF1100000DD | 控制指令 | 开灯(进入自动模式) |
12 | FF1200000DD | 控制指令 | 关灯 |
13 | FF1308500DD | 控制指令 | 手动调节灯光亮度为85% |
21 | FF2100000DD | 控制指令 | 打开门锁 |
31 | FF3100000DD | 控制指令 | 预留 |
AA | FFAA0000DD | 刷新指令 | 刷新设备信息 |
[1] |
彭松. 基于MQTT的物联网安全技术研究与应用[D]. 北京: 北京邮电大学, 2019.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[2] |
陈文艺, 梁宁宁, 杨辉. 基于MQTT的物联网网关双向通信系统设计[J]. 传感器与微系统, 2022, 41(8):100-103.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[3] |
曹小华, 李泊桓, 徐上尉. 基于MQTT协议的物联网岸电监控系统[J]. 计算机应用与软件, 2023, 40(3):11-16,27.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[4] |
Research on automated domestic appliances, categorized as Smart Home Technology (SHT), has increased exponentially over the last decade and has taken various guises, from qualitative descriptive investigation to empirically based analysis. Given the unresolved uncertainties surrounding the SHT acceptance literature and concern regarding the relatively low smart home device uptake, there is a need to reappraise the existing literature to delve deeper and search for solutions. Based on the research method PRISMA, a systematic literature review on SHT acceptance was undertaken to evaluate its different models and develop a hypothetical model. Twenty-three papers were selected in the review, and the results indicate that the Technological Acceptance Model was the most applied model when investigating SHT acceptance. Moreover, the most significant variables used to measure SHT acceptance were compatibility and perceived usefulness. The systematic literature review also revealed some significant patterns including the uptake of non-Western research and the use of sales and market share as a metric of SHT acceptance. Future directions on how researchers, smart home developers and governmental agencies can utilize the findings conclude the systematic review.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[5] |
何鑫宇. 基于ARM的智能家居监控系统的设计与实现[D]. 南京: 南京邮电大学, 2022.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[6] |
程学农, 李学明. 基于阿里云平台的智能门锁系统[J]. 单片机与嵌入式系统应用, 2020, 20(9):75-78.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[7] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[8] |
顾新萍. 基于微信小程序的智能家居控制系统设计与实现[D]. 青岛: 青岛大学, 2020.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[9] |
葛天雄. 基于MQTT的通用物联网安全系统框架[D]. 杭州: 浙江大学, 2021.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[10] |
郭翠娟, 暴宁, 荣锋. 基于MQTT的物联网平台研究与设计[J]. 计算机工程与设计, 2022, 43(8):2378-2384.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[11] |
赵星泽. 基于MQTT的物联网云平台设计与实现[D]. 唐山: 华北理工大学, 2019.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[12] |
孙磊. 基于MQTT协议的物联网消息系统的设计与实现[D]. 南京: 东南大学, 2021.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[13] |
荣锋, 孟环环. 基于MQTT协议的智能网关设计[J]. 现代电子技术, 2023, 46(2):75-79.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
{{custom_ref.label}} |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
/
〈 |
|
〉 |