面向物联网智能家居网关的设计与实现  被引量:1

Design and Implementation of Intelligent Home Gateway for Internet of Things

在线阅读下载全文

作  者:马永斌[1] 杨瑞丽 MA Yong-bin;YANG Rui-li(Shangqiu Institute of Technology,Shangqiu Henan 476000,China)

机构地区:[1]商丘工学院,河南商丘476000

出  处:《新一代信息技术》2020年第1期21-32,共12页New Generation of Information Technology

基  金:河南省高等学校重点科研项目(项目编号:20B520026)。

摘  要:本文介绍了一款基于STM32单片机、DM9000以太网控制器和LwIP协议栈的智能家居网关通信系统的设计。该系统设计主要用于检测家中各类传感器的工作状态,当家中出现危险状况时系统能够自主控制并解除家中危险,并且将传感器检测到的实时数据上报给用户,实现用户对家中电器的控制。硬件方面,该系统由供电模块、时钟模块、SWD仿真模块、SRAM模块、按键模块、报警模块、网络通信模块、USB转串口模块等组成。该网关系统的主控芯片采用功能强大、价格低廉、基于RAM32位CortexTM-M3的STM32F103ZET6,它主要负责对家居环境参数的检测、智能控制;网络通信模块采用DM9000作为主控芯片,由时钟电路、RJ45网络变压器组成,该芯片主要实现TCP/IP协议中的PHY和MAC层。软件方面,智能家居网关采用Keil开发环境,采用LwIP网络协议栈为运行环境,结合C语言共同完成网络通信的软件控制工作。Keil开发环境用来编辑程序、编译程序、烧录程序以及调试程序;LwIP协议栈短小精悍,小型轻量,可以实现无操作系统运行,并且LwIP协议栈对主控芯片的资源占用很少,适合在低端嵌入式设备中使用。This paper introduces a smart home gateway communication system based on STM32 microcontroller,DM9000 Ethernet controller and LwIP protocol stack.This system is designed to detect the working status of various sensors in the home.When a dangerous situation occurs in the home,the system can independently control and release the danger in the home,and report the real-time data detected by the sensor to the user to realize the user’s control of the home appliance.In terms of hardware,the system consists of a power supply module,a clock module,an SWD simulation module,an SRAM module,a button module,an alarm module,a network communication module,and an USB to serial port module.The main control chip of the gateway system adopts powerful and low-cost STM32F103ZET6 based on RAM 32-bit CortexTM-M3,which is mainly responsible for detecting and intelligently controlling home environment parameters;the network communication module adopts DM9000 as the main control chip,and the clock circuit and the RJ45 network transformer is composed of a PHY and MAC layer in the TCP/IP protocol.In terms of software,the smart home gateway adopts the Keil development environment,adopts the LwIP network protocol stack as the running environment,and combines the C language to complete the software control of network communication.The Keil development environment is used to edit programs,compile programs,burn programs,and debug programs.The LwIP protocol stack is short and compact,small and lightweight,and can be run without operating system.The LwIP protocol stack occupies very little resources on the main control chip.It is suitable to be in low-end embedded devices.

关 键 词:智能家居 STM32 以太网 LWIP协议栈 DM9000 

分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象