| With the realization of a well-off society for all and the improvement of living standards,people’s standards for the quality of living environment are gradually improved,and they pay more attention to smart home products and begin to pursue a safe,comfortable and healthy living environment.In recent years,the domestic Internet of Things has developed rapidly,and smart home products have swept the market rapidly.However,at present,most of the products on the market are single control products,and there are few integrated products.It is complicated to realize remote control programming of smart home products,which is not conducive to the development of smart home.Therefore,this paper designs a smart home master control system based on OneNET cloud platform and ai to realize the monitoring of environmental information such as bedroom and kitchen and the intelligent control of home appliances.The design of the system is mainly based on the OneNET cloud platform of China Mobile,which realizes the two-way communication between the perception layer and the user layer.A smart home app is developed on WxBit graphical programming platform system(ai),which can control multiple STM32 hardware systems by multithreading,and realize the function of controlling multiple hardware systems by one mobile phone software.The OneNET cloud platform is used as a data transfer station to realize two-way communication between mobile phone software and home kitchen hardware system and bedroom hardware system,and the data stream information received by OneNET cloud platform is stored in the database for record.In the hardware system,STM32F103C8T6 chip is selected as the main controller,and environmental data such as temperature,humidity,light intensity and smoke concentration are collected by sensors,which are linked with other electrical appliances to realize automatic control.The voice module LD3320 is connected with the serial port of the main controller to realize voice control and liberate users’ hands;Use keys to control each terminal component to realize manual control;ESP8266 module realizes two-way communication with OneNET cloud platform through WiFi6 generation technology and EDP transmission protocol.The trigger function is designed on the OneNET cloud platform.When there is a fire or natural gas leakage in the home,an early warning email will be sent immediately,and users can take timely hedging measures according to the email.At the same time,the database is developed in C#language on Microsoft Visual studio software,and the real-time information of OneNET cloud platform data stream is read and recorded in the database file.The design of this paper mainly starts from the general control of multiple systems,and uses a single mobile phone app to control multiple hardware integrated systems,instead of a mobile phone app to control one hardware integrated system,which fully meets the convenience and comfort requirements of users in the use process.The smart home master control system has been debugged for many times,and the system design meets the needs of users.The electrical appliances run stably and the functions of each module are realized accurately.Users can control home equipment and monitor home environment information anytime and anywhere according to mobile phone software.This paper innovatively adopts the control scheme of "STM32 dual hardware system+WiFi 6th generation communication technology+China Mobile OneNET cloud platform+EDP protocol+smart home app+timer polling database".Meet the needs of users,reduce the development cost of enterprises and shorten the development cycle.The system can not only be used as a product of smart home,but also be applied to various scenes such as intelligent general control of buildings and agricultural greenhouses after improvement. |