| Smart home refers to the home as a whole,which means integrating various smart devices in the home with wireless transmission,intelligent control and other technologies into a system.The smart home can realize the function of controlling smart devices through a control terminal,and also meets the requirements of providing a safe,convenient and suitable living environment.This article confirms the overall design of the smart home control system based on EdgeX Foundry through analyzing the development background and current status of smart home and edge computing,investigates user needs.The main tasks completed are as follows:1.Hardware design and implementation of smart home system based on EdgeX Foundry.The hardware of the smart home system is composed of a main control module,a wireless communication module and node modules.Among them,the main control module uses the cost-effective and powerful MarsBoard A20 Lite,which is mainly responsible for the scheduling and intelligent control of intelligent devices.The wireless communication module uses the CC2530 communication module with low cost and strong performance.It mainly communicates with the main control module through the serial port,and controls the node module through the Zigbee network.The node modules mainly include equipment such as lights,curtains,temperature and humidity sensors,air conditioners and smoke alarms.2.Software design and implementation of smart home system based on EdgeX Foundry.First,this article analyzes software requirements for smart home systems.Then,this article designs a smart home system software framework based on the EdgeX Foundry edge computing framework.Next,this article defines a model of device information and creates a device table based on the device model in the database,and saves the device information.Finally,Complete the code writing of the device service layer and service support layer communicating with the device and the export service layer communicating with the control interface.3.Interface Design and Implementation of Each Terminal of Smart Home System Based on EdgeX Foundry.The control interface design is implemented in iOS device terminal,WeChat applet terminal and web terminal.Among them,the iOS device terminal and WeChat mini-program terminal are mainly used for the control of smart devices,and in addition to the functions of smart device control,the web terminal can also be used for smart device management,device addition,and device network access. |