| With the rapid development of science and technology,smart home has brought great improvement to the living environment of people.In addition,with the rapid increase of the floating population in the city,the traditional security model of the civil defence has been difficult to meet the needs of social security.Therefore,it is necessary to have a set of smart home system to protect the property security of residential residents and prevent the occurrence of theft and robbery.With the development of WLAN,smart home devices based on WLAN communication is more used by people.The identification and control of smart home devices can effectively analyze the state of the devices and realize the control of all smart home devices.It can also achieve the integration of different brands of smart home,and accumulate data for the future unified standard of smart home.Therefor,it is an important subject to realize the identification and control of smart home devices.This paper mainly researches and implements the following three aspects,including identification of smart home devices,fault detection of smart home devices,control of smart home devices.And a control system of smart home devices is designed.The main work of this paper is as follows:Firstly,according to the characteristics of WLAN data traffic of smart home devices,comparing and analyzing a method based on the statistical characteristics and a method based on the signatures of key packets,an identification method combining port number and packet payload length distribution is proposed.Then,the data flow model,identification process,experimental environment and comparative experimental results are analyzed in detail,and the results show that the identification method has high recall and precision.Secondly,the recognised smart home device is further analyzed for its traffic characteristics,and the heartbeat data and control commands of the device are detected.Based on the above analysis,a fault detection method based on throughput and delay distribution is proposed.It is proved that this method can accurately determine whether the smart home device has broken line,devices failure,network signal weak and so on.Then,after detecting the normal operation of the device and analyzing communication process between the home device and the server,a control method based on data transmission is proposed.Analysing the encrypted WLAN and the unencrypted WLAN,the control of home devices is finally realized.Finally,in this paper,the smart home devices control system is constructed.On the basis of the detailed analysis of the requirements of the system,the functional modules are designed and verified.After the user test,the system function meets the actual application requirements. |