节点文献
基于BLE Mesh的智能家居通信网络设计与实现
Design and Implementation of Smart Home Communication Network Based on BLE Mesh
【作者】 王震;
【导师】 王宏;
【作者基本信息】 东北大学 , 机械工程, 2022, 硕士
【摘要】 近年来,随着社会经济水平的发展,伴随着通信技术、物联网技术的进步。“万物互联”已不再是简单的设想,人们也对居家生活的条件提出了更高的要求,所以智能家居的概念开始进入普通家庭的视野,并迅速发展。但目前智能家居领域还有许多技术不完善,如不同企业开发的智能家居系统的兼容性欠佳,这在一定程度上限制了智能家居行业的发展。本文设计了一套用于智能家居系统的通信网络,选择具有更高兼容性的BLE Mesh(Bluetooth Low Energy Mesh,低功耗蓝牙Mesh)作为终端通信协议,采用Nordic公司出品的nRF52832芯片作为终端节点的控制与通信核心。网络拓扑结构为Mesh形式,相较于星型或者树形结构,具有自组网、自修复、没有单点故障的特点。本文使用nRF52832芯片作为核心,设计了温湿度传感器、彩色灯具、无线开关等节点,为了尽可能提高节点兼容性,上述节点均采用SIG Model设计。同时本文设计了 Alive Model等Vendor Model,在SIG Mesh标准之上弥补了原生协议的限制也扩展了网络的功能。为了使智能家居系统支持远程访问,本文基于MQTT(Message Queuing Telemetry Transport,消息队列遥测传输)协议设计了运行在云端的服务器和运行在本地的蓝牙网关。蓝牙网关使用STM32F407作为核心,运行FreeRTOS,与服务器使用MQTT协议通信。蓝牙网关作为局域网和广域网之间的桥梁,负责BLE Mesh报文与MQTT报文的转换和监控本地网络。云端服务器以EMQX为核心,蓝牙网关与用户均使用MQTT协议与EMQ X建立连接,EMQ X使用插件将事件通知到HTTP(Hyper Text Transfer Protocol,超文本传输协议)服务器。HTTP服务器使用Node.js开发,对MQTT网络内的事件进行处理,并为用户和系统运行人员提供了接口。为了便于用户使用智能家居系统,本文设计了一个用户操作终端,基于Android开发。充分运用BLE Mesh协议特性,为用户提供了本地和远程两种操控模式。最后通过实验,对系统进行联合测试,验证了系统在多种工作模式下的稳定性和准确性。
【Abstract】 In recent years,with the development of social economic level and the progress of communication and Internet of things technology,"Interconnection of all Things" is no longer a impossible idea.People also put forward higher requirements for the conditions of home life.Therefore,the concept of smart home began to enter the vision of ordinary families and developed rapidly.At present,the smart home industry lacks unified standards,and different enterprises often have different implementations for different Internet of things protocols,which could limits the development of the smart home industry.This paper designs a communication network for smart home system,selects BLE Mesh(Bluetooth Low Energy Mesh)with higher compatibility as the terminal communication protocol,and uses nrf52832 SOC produced by Nordic company as the control and communication core of the terminal node.The network topology is in the form of mesh.Compared with the star or tree structure,it has the characteristics of ad hoc network,self repair and no single point of failure.This paper uses nrf52832 chip as the core,and designs nodes such as temperature and humidity sensor,color lamp,wireless switch and more.In order to improve node compatibility as much as possible,the above nodes work with SIG Models.At the same time,this paper designs Vendor Models such as Alive Models,which makes up for the limitations of native protocols and expands the functions of the network.In order to make the smart home system support remote access,this paper builds a server running in the cloud and a Bluetooth gateway running locally based on MQTT(Message Queuing Telemetry Transport)protocol.The Bluetooth gateway uses STM32f407 as the core,runs FreeRTOS,and communicates with the server using MQTT protocol.As a bridge between LAN and WAN,Bluetooth gateway is responsible for the conversion of BLE Mesh message and MQTT message and monitoring the local network.The cloud server takes EMQ X as the core.The Bluetooth gateways and users use MQTT protocol to establish connections with EMQ X.EMQ X uses plug-ins to notify events to the HTTP(Hyper Text Transfer Protocol)server.The HTTP server uses Node.js development,handle events in MQTT network,and provide interfaces for users and system operators.In order to facilitate users to use this smart home system,this paper designs a user operation interface,which is developed based on Android.Make full use of the characteristics of BLE Mesh protocol to provide users with local and remote control modes.Finally,through experiments,the system is jointly tested to verify the stability and accuracy of the system under various working conditions.
【Key words】 Smart home system; BLE Mesh; MQTT; Internet of Things; Android;
- 【网络出版投稿人】 东北大学 【网络出版年期】2025年 04期
- 【分类号】TN92