| With the continuous improvement of the living standards of residents,the number of access to smart devices has shown an explosive growth trend,making smart products gradually form a huge consumer market.The traditional intelligent products can only meet the single needs of consumers in a single scenario.The synergy and scene construction between smart items is the core requirement of smart home in the future.In the future,the smart devices in the family should not be just a single island-shaped smart item,but can be interconnected with other smart home products to form an organic whole smart home system.Therefore,as the core of smart home system,the reliability of its design,the richness of its functions,the security of its devices and the flexibility of its use scenarios have become enormous problems.However,the complexity of the underlying data transmission protocol caused by the diversity of devices in smart home has become a great challenge for gateway data fusion.Firstly,this paper starts from the hardware system design,combines the actual functional requirements of the smart home application,proposes the hardware construction scheme of the intelligent gateway,and on this basis,completes the transplantation and construction of the software operating system.The S5PV210 development board is connected to the ZigBee coordinator through the serial port,and a new version of the BSP port is transplanted for the hardware platform,and the software system platform based on the uboot as the boot program and the Linux kernel is built.The in-depth research and detailed introduction of the new version of the uboot(u-boot-2018.05)migration method based on the S5PV210 development board has reference and reference value for the cross-platform uboot transplantation of the same version and the subsequent transplantation of the new version of the same platform.Secondly,for the complex business interaction logic of the smart home system,this paper virtualizes the hardware operation interface and forms a complete gateway software development kit(SDK).This paper designs and implements the intelligent gateway data communication interface,summarizes the basic types of data interaction,s the interaction process of data reporting and device deregistration,and solves the problem of intelligent gateway and ZigBee device in the communication underlying details when implementing smart home system development.Too complicated to facilitate the design and implementation of smart home applications built on the software operating system.Finally,the intelligent gateway design of the master-slave structure is proposed and the complete smart home system is finally realized.The typical scenario linkage example is used to test and verify the practicability and effectiveness of the system.In this paper,the intelligent gateway of the master-slave structure is constructed.The host state gateway acts as the proxy of the slave state gateway,completes the data reporting of the slave state gateway and forwards the control commands sent by the server to the slave state gateway.From the software system architecture level,the system is layered and designed according to multiple levels,and functions are divided and encapsulated by multiple modules to complete the decoupling between functional modules,which is beneficial to the function expansion and post maintenance of the system.Through the use of HTTPS and MQTTS security protocols and device activation certification process design,it meets the requirements of high security and high reliability in modern smart home systems.This paper establishes a communication protocol based on the roles of the APP,the server,the intelligent gateway,and the ZigBee device.The data information collected by the ZigBee device is encapsulated to complete the unified hardware protocols of the ZigBee device.The scenario of being close to the user in the actual application scenario is created.The linkage mechanism finally realizes the original intention of the design of the system. |