| The development of Internet of Things technology has enabled the ubiquitous connection between things and things,and between things and people,which has enriched and facilitated human life to a large extent.Nowadays,smarter,healthier and safer smart homes have become an indispensable part of a high quality of life.Smart home is the result of the integration of items involved in life into Internet technology,through the use of Internet technology,Internet of Things technology and wireless communication technology,connecting various devices in different scenarios respectively,providing a full range of information interaction means more efficiently and collaboratively,improving the ability of occupants to sense and control different devices and enhancing the intelligence of the home.In today’s smart home systems,the process of implementing remote home monitoring functions is more complex.Take the traditional remote home monitoring function as an example,the home system deploys most of its function implementation software on the local home server,the amount of data stored on the home server is low,the response delay of the communication connection is high,the software update iteration and expansion is difficult,the remote control means of smart devices are complex to implement,the communication protocol between systems is not uniform,the system products with similar functions are not compatible with each other,the same environment The high reuse of a particular sensor in the same environment increases the power consumption of the system and raises the cost of use.In order to solve the above problems,this thesis proposes a home environment monitoring system with low cost of use,high accuracy of environmental indicators detection,safer communication process and more stable data transmission.The process.The user can realize the real-time monitoring of the indoor environment based on the browser client in the terminal and application software such as APP.When the user gives a capture command,the detection system drives the OV7670 camera module to capture the indoor environment and the device provides a peripheral interface to take action on relays in real time according to changes in the detection data.The system structure designed in the thesis is divided into a host system and a slave system: the host system has a master chip model STM32F103ZET6 microcontroller,which forms a subnet with Wi Fi module ESP8266 and builds a wireless connection with the slave system to receive the data transmitted by the slave system and display it in real time,and when the slave system detects a dangerous situation such as a fire in the room,it sends an alarm notification to the user remotely through 4G module Air724UG;the master chip of the slave system is STM32F103ZET6 microcontroller,and it distributes several slave devices of the same structure and thus enables the control of different sensors to achieve the collection and detection of environmental indicators such as temperature,humidity,illumination,various gases and smoke in the home environment.In order to realize the remote monitoring function in the smart home system,the data transmission protocols used for the home monitoring applications in the smart home system are unified under different platforms.The 4G communication module Air724 UG is used in the host system to build the communication process between the host system and the Io T cloud platform One NET,using the MQTT protocol to transfer the collected data to the cloud platform for storage,and the display format is in the form of a graph,which facilitates the user itself to select the corresponding home control method in the Io T cloud platform according to the environmental indicators detected.After several functional tests under different platforms,the smart home monitoring system proposed in this paper can run stably for a long time,with high accuracy of each environmental indicator monitoring function,and can realize real-time monitoring of home environment,alarm prompting and real-time adjustment of home equipment control methods remotely.The system has a simple operation interface,rich environmental indicators,good system compatibility,low cost of use and strong value of use. |