没有合适的资源?快使用搜索试试~ 我知道了~
首页基于云平台智能家居的研究与设计
资源详情
资源评论
资源推荐

科研训报 IV 告
目录
摘 要.......................................................................................................... I
ABSTRACT................................................................................................II
第一章 绪论.................................................................................................. 1
1.2.1 1.2.1 国外研究现状...............................................................................2
1.2.2 1.2.2 国内研究现状...............................................................................2
1.2.3 1.3.1 云计算发展现状.............................................................................4
1.2.4 1.3.2 综合布线技术发展现状.....................................................................5
1.2.5 1.3.3 微信平台发展现状..........................................................................6
1.2.6 1.3.4 智能家居存在的问题.......................................................................6
第二章 总体设计............................................................................................9
1.2.7 2.1.1 系统功能概述...............................................................................9
1.2.8 2.1.2 系统总体架构设计........................................................................10
1.2.9 2.1.3 系统设计目标.............................................................................10
1.2.10 2.2.1 云计算服务模式分类....................................................................11
1.2.11 2.2.2 云平台选型..............................................................................11
1.2.12 2.2.3 新浪 SAE 架构分析.....................................................................12
1.2.13 2.3.1 微信数据交互流程......................................................................15
1.2.14 2.3.2 微信界面设计............................................................................17
1.2.15 2.3.3 SYNC 协议介绍........................................................................18
1.2.16 2.4.1 网络通信模块设计......................................................................19
1.2.17 2.4.2TCP/IP 协议分析.......................................................................20
1.2.18 2.4.3 无线通信模块设计......................................................................21
1.2.19 2.4.4 ZIGBEE 协议分析.....................................................................21
1.2.20 3.1.1 创建应用.................................................................................23
1.2.21 3.1.2 代码部署.................................................................................24
1.2.22 3.1.3 数据库建立..............................................................................25
1.2.23 3.1.4 微信公众平台接入......................................................................26
1.2.24 3.3.1TOKEN 验证............................................................................27
1.2.25 3.3.2 解析 XML 数据.........................................................................28

武汉工程大学 科研训练报告
1.2.26 3.3.3 回复信息.................................................................................28
第四章 网关硬件系统设计................................................................................30
1.2.27 4.1.1ARDUINO ETHERNET 参数........................................................30
1.2.28 4.1.2ATMEGA328 最小系统设计..........................................................31
1.2.29 4.1.3W5100 网络芯片参数.................................................................32
第五章 网关软件系统设计................................................................................35
1.2.30 5.1.1ARDUINO IDE 简介..................................................................35
1.2.31 5.1.2 网络通信程序设计......................................................................36
1.2.32 5.2.1CUBESUITE+开发工具介绍.........................................................37
1.2.33 5.2.2 无线通信模块主程序设计..............................................................37
1.2.34 5.2.3 显示程序设计............................................................................37
1.2.35 5.2.4 按键程序设计............................................................................37
1.2.36 5.2.5 脉冲宽度调制程序设计.................................................................38
参考文献................................................................................................... 43

- I -
科研训报 IV 告
摘 要
随着人们物质生活水平的不断提升,对家电智能化控制的要求也逐渐提高。目前
的智能家居系统主要通过家庭网关对家电进行室内控制,无法实现远程遥控,家电的
使用情况也无法联网查询。虽然用户可以使用手机直接控制家中电器,但是需要安装
众多的控制软件,无形中增加了手机的负担。
针对以上智能家居系统存在的问题,本文设计了一款基于云平台的智能家居控制
系统,重点完成云平台和家庭网关两部分的设计。在云平台上建立 MySQL 数据库实现
存储控制信息的功能,使用 PHP 语言编写云端与微信后台、家庭网关通信的代码并且
将其部署到云平台上。家庭网关的设计主要分为网络通信模块和 ZigBee 通信模块两部
分。网络通信模块使用 Arduino 平台搭建,通过集成了 TCP/IP 协议栈的 W5100 网络接
口芯片接入因特网,通过编程实现以 HTTP 协议访问云平台的功能。ZigBee 通信模块
使用瑞萨 RL78/I1A 单片机作为主控芯片,以鼎泰克公司生产的 DRF1607H 模块实现室
内 ZigBee 无线通信的组网,使用触摸屏进行室内控制。本文设计了 ZigBee 通信模块的
硬件电路并且制作了 PCB 板,通过编程实现以 PWM 波形式调节吸顶灯的亮度及颜色
的功能。
经过测试与调试,使用吸顶灯作为电器终端对该控制系统的功能进行了验证,可
以通过微信实现远程控制,并且能够在网上查询电器信息,整套系统工作稳定。
关键词:云平台;微信平台;智能家居;家庭网关;Arduino

- II -
科研训报 IV 告
Abstract
With the improvement of people’s living standard, the requirements of intelligent control
of home appliances are also increased. Currently, when using the smart home system, people
can control the home appliances through the gateway in the house. But remote control can not
be achieved and the information of the home appliances can not be queried through the
Internet. Though users can control home appliances via their mobile phone, a variety of
software need be installed to their mobile phone. the mobile phone will be overloaded.
To cope with these problems, a control system of smart home based on the cloud
platform is designed. The thesis focuses on the design of the cloud platform and the home
gateway. MySQL database is established to realize the function of storing control information
on the cloud platform. The code is written using PHP language to realize the communication
through the cloud platform, WeChat and the home gateway. The code is deployed on the cloud
platform. The home gateway consists of two parts: network communication module and
ZigBee communication module. The home gateway is based on the Arduino platform. The
W5100 module can support TCP/IP protocol stack and it can be used to access to the Internet.
The HTTP protocol is used to write the code to access to the cloud platform. RL78/I1A is
used as the main control chip to build the ZigBee communication module. The touch screen is
designed to control the system. The network of wireless communication is realized by the
DRF1607H module produced by DTK company. The circuit of ZigBee communication
module is designed and the PCB board is made. The code is written to realize the function of
adjusting the brightness and color of the ceiling lamp by PWM wave.
After testing and debugging, the function of the control system is verified on ceiling
lamp. WeChat can be used to realize remote control and the control information can be find
through the cloud platform. The whole system works stably.
Keywords: Cloud Platform; WeChat; Smart Home; Home Gateway; Arduino

1
科研训报 IV 告
第一章 绪论
随着时代的发展,物联网技术的发展则变得越来越重要,而智能家居则是物联网
发展的一个重要方向
[1]
。智能家居是以家庭住宅为应用背景,通过有线和无线组合的方
式连接可控的智能终端产品。使用优质高效的智能家居产品可以使得我们的生活水平
得到质的提高,从而提高人们的生活舒适感。
1.1 1.1 课题研究背景与意义
物联网技术是新一代信息技术的重要组成部分,它将各种智能硬件诸如传感设备、
智能家居、工业自动化系统等接入互联网实现远程控制与监控等功能,是嵌入式技术
与互联网技术相互结合的产物
[1]
。它所形成的巨大的无形的网络实现了人与物,物与物
的连接,方便了人们对联网物品的管理和控制。
智能家居是以家庭住宅为平台,以家居生活为应用背景,通过结合嵌入式、互联
网、智能硬件、控制自动化等技术,实现家居设备的综合管理,最终目的是实现家居
的自动化以及智能化
[2]
。智能家居产品的特点主要包括两方面:一是家居产品自动化,
二是家居产品网络化。具体而言,相较于传统家居产品的简单使用功能,智能家居产
品通过融合一定程度的自动化技术,同时具备环境信息的采集能力和数据交互能力。
用户可以通过客户端设备对家居终端设备运行状态进行监控,并可以根据采集到的环
境信息及时对终端设备进行调整
[3]
,从而提高生活环境的舒适度。
近年来,智能家居在全球智能化的浪潮中得到发展,建立方便快捷的家居环境是
大势所趋。为了提高营业额,美国运营商
[4]
在 2010 年底提出了远程智能应用。Comcast
提 出 了 “ Home Security&Automation” 服 务 ; Venzon 也 随 之 推 出 “ Connected Home
Service”,他们共同为美国远程智能应用拉开序幕
[5]
。在我国,各大通信设备商比如中
兴、华为,以及各大通信运营商包括移动、联通,也纷纷挖掘到了物联网这块前景广
阔的市场,开始陆续加入并且针对智能家居有所动作。足以看出,智能家居的研宄方
向正在从控制方面向网络方面而转变
[6]
,新兴无线通信技术的发展使用户可以在室内搭
建自己的无线智能家居网络。
云计算作为作为当前以及未来最有发展潜力的计算平台,可以为用户远程提供各
种基于网络的服务,其大规模的服务器集群通过冗余配置,轻松为用户提供高可用性
和高可靠性的软件服务。云计算技术使得用户无需花大价钱耗费精力搭建私人服务器,
只需要少量的支出,便可以享受到云计算平台所提供的各种优质服务。
综上,研宄云平台和智能家居的相关技术、产品具有非常重要的战略意义。从全
球范围来看,各国都在大力发展智能家居的相关技术,谁能提出更好地更符合市场需
剩余47页未读,继续阅读



















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0