| With the improvement of people’s living standard,home devices are becoming more and more intelligent,and IP-based smart home has received great attention.In 2015,the Thread Alliance launched the Thread protocol,which includes a 6Lo WPAN adaptation layer,an IPv6 network layer and a UDP transport layer.The 6Lo WPAN adaptation layer enables IPv6 packets to be transmitted in low-rate Personal Area Network.What’s more,the Thread protocol can support for Mesh network and IP,which promotes the better development of smart home.However,the Thread protocol lacks an application layer which is indispensable for device communication.Based on this,this paper proposes and completes the design of the Thread application layer protocol based on the Thread protocol.At the same time,this paper designs and implements a smart home system based on the remote control and security requirements of the smart home.The main work of this paper includes the following points:(1)By analyzing the application requirements of the smart home system and comparing common wireless communication technologies,this paper proposes and implements a smart home system solution based on the Thread protocol.At the same time,this paper introduces the system structure,the overall system hardware scheme and the Thread application layer protocol scheme in detail.(2)This paper designs and implements the multiple hardware circuits of the system,including handheld remote controller,sensing remote node and Thread border router.Among these,the handheld remote controller realizes the human-computer interaction function,while the sensing remote node realizes the functions of weak photoelectric energy collection,sensing environmental information and full coverage infrared control,the Thread border router realizes the communication between internal network and external network,data storage,security alarm and other functions of smart home.(3)In order to solve the problem that Thread protocol lacks application layer,the design of Thread application layer protocol is proposed and completed,which enables application-level interoperability between devices.At the same time,this paper introduces the commands of Thread application layer protocol,such as joining network,leaving network,battery voltage query and device discovery.(4)This paper implements the software modules of the smart home system,including the Thread application layer protocol data transmission mechanism,the learnable infrared remote control method based on the semantics of infrared signals,and the program of each intelligent hardware of the system.Finally,the results of the tests of networking,single point of failure,unicast delay,and communication between Thread nodes and external IP networks show that the IP-based Thread network has good network performance such as no single point of failure and low unicast delay.On this basis,this paper conducts system tests on the designed Thread application layer protocol and smart home system,which show that the smart home system based on Thread protocol designed and implemented in this paper is reasonable and effective. |