基于STM32智能家居的无线网关设计与实现

发布时间:2018-01-19 01:18

  本文关键词: 智能家居 STM32 ZigBee CC2530 WiFi ESP8266 uC/OS-Ⅱ 出处:《浙江理工大学》2017年硕士论文 论文类型:学位论文


【摘要】:经济的发展与技术的进步带动着人们更加渴望高品质的生活质量,作为当今产业大热门的智能家居逐渐成为市场关注的焦点,很多科技公司纷纷开发出自己的产品。不过由于浮夸的宣传,不合理的定位和高昂的价格,导致了消费者纷纷对智能家居产品望而却步,行业呈现出叫好不叫卖的现象。鉴于此种情况,本文定位于智能家居中低端产业,开发设计出一款简单实用、价格低廉的智能家居控制网关系统,目的是在于让普通人也可以享受科技发展的成果。该网关系统综合了电子技术、计算机技术、通信技术等多种技术,从硬件和软件两个方面对控制网关进行深入研究,最终实现对家居环境远程监测的目的。在硬件方面,该控制网关系统采用以单片机为硬件控制平台,以供电模块、时钟模块、EEPROM模块等众多外围电路模块为辅助,结合ZigBee与WiFi无线通讯技术,完成对智能家居网关系统的搭建工作。该网关系统的单片机采用功能强大、价格低廉基于ARM 32位Cortex?-M3的STM32F103RCT6,它主要负责对家居环境的任务调度,智能控制;ZigBee部分采用主芯片为CC2530的无线通信模块,该模块主要包括两个部分:协调器和终端节点,终端节点除了通信部分,还包括温湿度传感器、光线传感器、烟感传感器等部分,它负责完成对数据的采集、打包和发送工作,协调器则负责把终端节点发送的数据进行重新打包然后通过串口传送给主控模块;WiFi部分采用的是价格低廉、功能实用的ESP8266WiFi通信模块,该模块有三种工作模式:STA、AP和STA/AP,使得WiFi部分兼具连接热点和发送热点两种功能,该模块负责智能家居控制单元和外界通信的工作,它通过串口和控制单元通信,然后通过WiFi网络发送接收信息。在软件方面,控制网关采用以Keil和IAR为开发环境,以uC/OS-Ⅱ操作系统为程序运行环境,结合C语言及少量汇编语言,共同完成系统的软件控制工作。Keil和IAR作为开发环境可以进行程序检测、烧录等辅助工作,大大减轻了工作量;uC/OS-Ⅱ操作系统短小精炼、功能强大的特点,使得硬件资源可以更加合理的利用,有助于节约成本,同时也让控制网关系统可以实时多任务执行,增强了系统功能;此外充分合理利用了网络库函数资源,大大节约了学习与开发进度。设计的智能家居网关系统关键在于构建一个智能家居技术平台,实现对家居内温度、湿度、光线强度和烟雾浓度等家居环境数据的采集与发送,实用性强、成本低廉是它的特色,完成这个平台的搭建,以后进行系统升级将会非常简单。不过课题主要是研究智能家居的下位机部分,对于远程数据的发送与接收则采用网络调试助手工具。
[Abstract]:With the development of economy and the progress of technology, people are eager for high quality of life. As a hot industry, smart home has gradually become the focus of attention in the market. Many technology companies have developed their own products, but because of grandiose publicity, unreasonable positioning and high prices, consumers have been deterred by smart home products. In view of this situation, this paper focuses on the low-end industry of smart home, and develops and designs a simple and practical intelligent home control gateway system with low price. The goal is to enable ordinary people to enjoy the fruits of the development of science and technology. The gateway system integrates electronic technology, computer technology, communication technology and other technologies. From the hardware and software aspects of the control gateway in-depth study, and finally achieve the purpose of remote monitoring of the home environment. In hardware, the control gateway system uses single-chip microcomputer as the hardware control platform. With power supply module, clock module, EEPROM module and other peripheral circuit modules as assistance, combined with ZigBee and WiFi wireless communication technology. To complete the building of smart home gateway system. The single chip microcomputer of the gateway system is powerful and cheap based on ARM 32-bit Cortex-based. M3 STM32F103RCT6, it is mainly responsible for the home environment task scheduling, intelligent control; The ZigBee part uses the main chip as the CC2530 wireless communication module, this module mainly includes two parts: the coordinator and the terminal node, the terminal node in addition to the communication part, also includes the temperature and humidity sensor. Light sensor, smoke sensor and other parts, it is responsible for data collection, packaging and sending work. The coordinator is responsible for repackaging the data sent by the terminal node and transmitting it to the main control module through the serial port. The WiFi part uses the low-cost, functional ESP8266WiFi communication module, this module has three working modes: STAAP and STA/AP. The WiFi part has two functions of connecting hot spot and sending hot spot. The module is responsible for the communication between the intelligent home control unit and the outside world. The module communicates with the control unit through the serial port. In software, the control gateway adopts Keil and IAR as the development environment and UC / OS- 鈪,

本文编号:1442008

资料下载
论文发表

本文链接:https://www.wllwen.com/shoufeilunwen/xixikjs/1442008.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户01166***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com