下面是小编为大家整理的毕业论文-基于规则引擎智慧家居网关设计与实现(完整),供大家参考。
I 基于规则引擎的智慧家居网关设计与实现 摘 要 21 世纪以来,随着物联网和自动控制技术的进步,我国的智慧家居行业得到了长足发展。人们对智慧家居的要求和需求量也在不断提高,智慧家居市场发展与挑战并存,目前市面上的智慧家居大多存在着功能单一、智慧化程度不足、终端设备之间无法互联互通等问题。针对上述问题,本文以规则引擎技术为核心设计并实现一种可以对家庭环境综合管理和对终端设备自动控制的智慧家居网关,形成一种将家庭安防、终端设备控制、环境管理等多种功能融为一体的新型智慧家居模式。
本文根据网关的功能需求和性能指标,提出总体设计方案,对规则引擎进行研究,并对网关的软硬件进行详细设计。本文主要工作如下:
1. 规则引擎研究方面,结合实际应用对规则引擎核心算法——Rete 算法做出改进,通过采用节点复用、规则排序、并行化匹配等改进方法提高 Rete 算法的匹配效率,然后对改进后算法进行性能分析,最后分析规则引擎工作原理并对其在智慧家居中应用的可行性进行验证。
2. 硬件设计方面,选用基于 ARM Cortex-A8 内核的处理器 AM3354 作为主控芯片,按照功能模块完成核心电路、电源电路、接口电路的设计以及对网关内部干扰信号的抑制。
3. 软件设计方面,在完成开发平台搭建和驱动移植的基础上,重点设计基于改进 Rete 算法的规则引擎工作流程和各功能模块,同时制定以太网、ZigBee、串口通信三种应用层数据帧格式,实现多通信数据转发功能,设计 ZigBee 网络数据可靠性传输流程。
最后,本文对网关进行详细测试。设计测试方案和测试内容,搭建实验室测试平台,对网关整体功能进行测试与分析,并依据性能指标进行性能测试。测试结果表明:网关能够稳定可靠地运行,满足预期的功能需求和性能指标。
关键词:智慧家居,网关,规则引擎,Rete 算法
II Design and Implementation of SmartHome Gateway based on Rule Engine Abstract Since the 21st century, with the progress of Internet of Things and automatic control technology, the smart home industry has developed rapidly. With development and challenges in smart home industry, people’s demand and requirement towards smart home industry are increasing continually. Currently on the market, most smart home has single function, intelligence level insufficiency, cannot interconnect between terminal equipment and other issues. According to the above problems, based on the rule engine technology, a kind of automatic smart home gateway is designed and implemented, for home environment comprehensive management and terminal equipment automatic control. The thesis’s goal is to form a new kind of mode, which manages and regulates the home environment, and merges security, equipment control, environment management and other functions. According to gateway’s functional requirements and performance index, the overall design of the gateway is put forward, the rule engine is researched, and the hardware and software are designed in detail. This thesis’s main work is shown as follows: 1. In the study of the rule engine, the actual core algorithm – Rete Algorithm – is improved, combining with the practical application. By using node reusing, rules sorting, and parallel matching method, the efficiency of the Rete Algorithm is improved. Then, the performance of the improved Rete algorithm’s analyzed. Finally, the working principle of the rule engine is analyzed and the application feasibility of the rule engine in the smart home system is verified. 2. As for the hardware design, AM3354 processor based on ARM Cortex-A8 kernel is selected as the master control chip. According to the function module, the designing of the core circuit, the power supply circuit and the interface circuit and the inhibition of the internal disturbance signal of the gateway are completed. 3. For the software design, based on the completion of the platform building the drive transplantation, the workflow of the rule engine and the functional modules are
III mainly designed, which is based on the improved Rete algorithm. At the same time, 3 kinds of data frame format in the application layer is formulated, including the Ethernet, ZigBee and serial communication. Multiple communication data forwarding is realized. The process of the reliable transmission of the ZigBee network data. Finally, in this thesis, the gateway is tested in detail. The test plan and content are designed, and the lab test platform is constructed. Based on the test platform, the gateway function is tested and analyzed, and based on the performance indicators, the performance test is completed. The test result shows that the gateway can run stably and reliably, and can satisfy the desired functional requirements and performance indicators.
Keywords: Smart Home, Gateway, Rule Engine, Rete Algorithm
目录 IV 目录 图录 ............................................................................................................................. VIII
表录 ................................................................................................................................. X
注释表 ............................................................................................................................ XI
第 1 章 绪论 .................................................................................................................... 1
1.1 研究背景 ........................................................................................................... 1
1.2 国内外发展现状及趋势 ................................................................................... 3
1.2.1 智慧家居网关国内外发展现状 ............................................................ 3
1.2.2 智慧家居网关发展趋势 ........................................................................ 4
1.2.3 规则引擎研究现状 ................................................................................ 6
1.3 研究内容及意义 ............................................................................................... 7
1.3.1 研究内容 ................................................................................................ 7
1.3.2 研究意义 ................................................................................................ 8
1.4 论文组织结构 ................................................................................................... 8
第 2 章 智慧家居网关总体分析与设计 ...................................................................... 10
2.1 智慧家居系统概述 ......................................................................................... 10
2.2 需求分析 ......................................................................................................... 11
2.2.1 应用场景 .............................................................................................. 11
2.2.2 功能需求 .............................................................................................. 12
2.2.3 性能指标 .............................................................................................. 12
2.3 智慧家居网关方案设计 ................................................................................. 13
2.3.1 总体方案设计 ...................................................................................... 13
2.3.2 硬件方案设计 ...................................................................................... 15
2.3.3 软件方案设计 ...................................................................................... 17
2.4 关键技术分析 ................................................................................................. 18
2.4.1 嵌入式系统抗干扰技术 ...................................................................... 18
2.4.2 规则引擎技术 ...................................................................................... 19
目录 V 2.4.3 多传感器数据联合检测 ...................................................................... 20
2.5 本章小结 ......................................................................................................... 21
第 3 章 Rete 算法及规则引擎研究 .............................................................................. 22
3.1 智慧家居中相关定义与编号 ......................................................................... 22
3.1.1 事件与规则定义 .................................................................................. 22
3.1.2 事件与规则编号 .................................................................................. 22
3.2 Rete 算法介绍 ................................................................................................. 24
3.2.1 Rete 算法模型 ...................................................................................... 24
3.2.2 Rete 算法推理过程 .............................................................................. 26
3.3 改进 Rete 算法研究 ........................................................................................ 29
3.3.1 改进方法 .............................................................................................. 29
3.3.2 性能分析 .............................................................................................. 32
3.4 基于改进 Rete 算法的规则引擎分析 ............................................................ 34
3.5 本章小结 ......................................................................................................... 37
第 4 章 智慧家居网关硬件分析与设计 ...................................................................... 38
4.1 硬件模块电路设计 ......................................................................................... 38
4.1.1 核心电路设计 ...................................................................................... 38
4.1.2 电源电路设计 ...................................................................................... 39
4.1.3 接口电路设计 ...................................................................................... 39
4.1.4 其他电路设计 ...................................................................................... 41
4.2 智慧家居网关抗干扰分析与设计 ................................................................. 41
4.2.1 内部噪声干扰抑制 .............................................................................. 41
4.2.2 电源干扰抑制 ...................................................................................... 42
4.2.3 信号传输通道干扰抑制 ...................................................................... 43
4.2.4 电路板抗干扰设计 .............................................................................. 44
4.3 本章小结 .............................
推荐访问:毕业论文-基于规则引擎智慧家居网关设计与实现 家居 网关 毕业论文