| With the rapid development of society and the improvement of residents’ living standards,it is difficult for traditional home lifestyle to meet people’s needs.At the same time,smart home,as an important application of Internet of Things,is gradually getting people’s extensive attention and research.As the core of smart home system,the gateway is the link connecting the perception layer and the application layer of the Internet of Things.It mainly completes the collection of the underlying sensor data and uploads the data to the cloud platform according to a protocol format.Aiming at data acquisition,intelligent terminal control,protocol conversion,data uploading and other issues,this paper analyzes the smart home system and builds the gateway business system and hardware framework.And it solves the complex problem of access to the underlying devices.At the same time,the middleware is designed to realize the system software platform.Finally,the Internet of Things platform is used to complete the data presentation function.The main research work is as follows:(1)Overall design of gateway system.Firstly,this paper defines the design idea and analyzes the requirements of smart home gateway system.Then the overall structure framework of the system is proposed.The system includes four parts: intelligent sensor terminal,gateway,cloud platform and control terminal.Finally,the data transmission process is analyzed.(2)Hardware design of gateway platform.The hardware design of smart home gateway adopts the form of "core + peripheral".In this paper,Cortex-A8 development board is used as the implementation platform of gateway and AM335 X is used as the main processor chip.The hardware design includes power circuit,serial port circuit,LCD interface circuit,USB interface circuit and so on.The hardware framework of the gateway system consists of the development platform and peripheral circuits.It provides the hardware foundation for the operation of smart home system.(3)Design of heterogeneous information middleware.Firstly,this paper configures the cross-compilation environment and Linux system to build a platform for software development.Modbus communication protocol is used to arrange the data structure.It can ensure the integrity of the data information to the greatest extent.At the same time,it solves the problem of various sensors and devices incompatibility,which lead to the occurrence of multi-source heterogeneous data.Secondly,this paper analyzes the process of docking between gateway and cloud platform.Through the design of the database,the transmission of data from the sensors to the cloud is realized.The timing polling function is added to push the information set by the user to the gateway through the MQTT protocol.BOA + CGI program technology is used to realize remote access to the gateway.Finally,the business architecture of the cloud platform is designed and implemented.Users can browse the list of devices、device status、historical data in the cloud and control the devices in real time.In this paper,a test platform was set up to verify the gateway function in laboratory environment and application environment.The tests show that the gateway works well.Users can control the smart home terminal locally or on the mobile side.Through the design of the gateway system and the integration of intelligent hardware devices,the problem of interconnection of heterogeneous devices is solved,and the universality and expansibility of the gateway in application scenarios are improved. |