基于MQTT协议的智能家居数据传输系统

打开文本图片集
摘要:智能家居系统使用STM32单片机对SHT20温湿度模块和光敏模块协议的数据进行采集、存储,同时将采集的数据通过MQTT传输至服务器[1]。使用QT设计的PC端上位机通过MQTT访问服务器,读取环境的温湿度、亮度数据并显示。上位机也能控制终端的RGB灯、风扇等设备。
关键词:智能家居;MQTT;数据采集;STM32
doi:10.3969/J.ISSN.1672-7274.2023.07.015
中图分类号:TP 309.7,TU 855 文献标志码:A 文章编码:1672-7274(2023)07-00-03
Intelligent Home Data Transmission System Based on MQTT
CHEN Luyao1, LIN Feng1, GUO Qingfeng2
(1. School of Optoelectronics and Communication Engineering, Xiamen Institute of Technology, Xiamen 361000, China; 2. Hennessen (Xiamen) Data Co., Ltd., Xiamen 361000, China)
Abstract: The smart home system uses an STM32 microcontroller to collect and store data from the SHT20 temperature and humidity module and the photosensitive module, while transmitting the collected data to the server through MQTT. The PC terminal host computer designed using QT accesses the server through MQTT, reads and displays ambient temperature, humidity, and brightness data. The upper computer can also control the RGB lights, fans, and other devices of the terminal.
Key words: smart home; MQTT; data collection; STM32
1 研究背景及意义
自智能家居问世以来,人们对于家居环境提出了越来越高的要求。(剩余3409字)