| With the advent of the 5G era,the interconnection of all things has become a trend.As a branch of the Internet of Things industry,smart homes have developed rapidly in recent years,bringing people a more convenient and comfortable life.However,there are also some problems.The current smart home industry lacks effective management and there is no unified standard in the industry,which leads to major platform manufacturers fighting separately,the ecology is not perfect,and the price of smart devices is expensive,which hinders the large-scale promotion of smart homes.In order to solve these problems,it is necessary to continuously expand the ecology of the smart home platform.A series of typical smart home devices based on Bluetooth Mesh(BLE Mesh)can better expand the ecology.These typical devices use RT-Thread,the domestic Io T operating system as a system-level platform,and design and implement some smart devices: smart lights,smart wireless buttons,smart temperature and humidity meters,and smart heart rate meters,and connect smart devices through the BLE Mesh protocol.The Tmall Genie smart home open platform enables smart devices to support mobile phone control,voice control and scene linkage control.In addition,a middleware is designed on the Bluetooth host controller interface(HCI)transport layer to facilitate Bluetooth protocol stack transplantation and multi-chip adaptation,and on the basis of the middleware,the BTstack open source Bluetooth protocol stack is transplanted,which is RT-Thread.A weaker Bluetooth development environment contributed.A smart home hardware expansion board is designed,which integrates the sensors required by smart home devices: RGB lights,buttons,temperature and humidity sensor DHT11 and Maxim Semiconductor’s heart rate and blood oxygen saturation sensor MAX30102.On this basis,the device is connected to the Tmall Genie smart home platform through the Generic On Off model,Light HSL model and Ali Genie custom model in the BLE Mesh protocol,so that these smart devices can enjoy the mobile phone control provided by Tmall Genie.The control method expands the ecology of the Tmall Genie platform.After testing,these smart devices can work stably and have a good experience.The typical smart home devices have contributed to the Bluetooth development environment of the RT-Thread open source operating system,expanding the ecology of the Tmall Genie smart home platform,with high security and practicability. |