CN104865835A - Intelligent household system based on ZigBee - Google Patents

Intelligent household system based on ZigBee Download PDF

Info

Publication number
CN104865835A
CN104865835A CN201510240241.8A CN201510240241A CN104865835A CN 104865835 A CN104865835 A CN 104865835A CN 201510240241 A CN201510240241 A CN 201510240241A CN 104865835 A CN104865835 A CN 104865835A
Authority
CN
China
Prior art keywords
home
node
zigbee
network
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510240241.8A
Other languages
Chinese (zh)
Inventor
黄文准
贾超晨
李梦
王飞飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xijing University
Original Assignee
Xijing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xijing University filed Critical Xijing University
Priority to CN201510240241.8A priority Critical patent/CN104865835A/en
Publication of CN104865835A publication Critical patent/CN104865835A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种基于ZigBee的智能家居系统,包括家居设备节点、家居主节点、家庭网关和智能移动客户端,在家庭环境中布置ZigBee模块作为家居设备节点以无线通信方式组织成网络,家居设备节点负责监测周围一定范围内的环境状态、收发信号并进行数据处理,以ZigBee无线传感器网络作为家庭控制子网,以家用PC机作为家庭网关以及家居控制中心,在Android平台上通过WIFI无线数据通信技术接入家庭子网,实现对家居系统设备的智能控制及远程监控。本发明简便高效、成本低、通用性强、扩展性好。

The invention discloses a smart home system based on ZigBee, which includes a home equipment node, a home master node, a home gateway and an intelligent mobile client. ZigBee modules are arranged in the home environment as home equipment nodes to form a network in a wireless communication manner. The device node is responsible for monitoring the environmental status within a certain range, sending and receiving signals and performing data processing. The ZigBee wireless sensor network is used as the home control subnet, and the home PC is used as the home gateway and home control center. On the Android platform, the wireless data is transmitted through WIFI. Communication technology is connected to the home subnet to realize intelligent control and remote monitoring of home system equipment. The invention is simple and efficient, low in cost, strong in versatility and good in expandability.

Description

一种基于ZigBee的智能家居系统A Smart Home System Based on ZigBee

技术领域technical field

本发明涉及一种智能家居系统,具体是一种基于ZigBee的智能家居系统。The invention relates to a smart home system, in particular to a ZigBee-based smart home system.

背景技术Background technique

随着现代科学技术的发展,自动化、智能化的概念已深入人心,各种智能家居产品也开始进入我们的生活。目前各种智能家居体系和产品之间缺乏严格的标准和通用的接口,且受当前技术条件以及经济成本制约,智能家居的具体应用并未得到广泛的普及,如何设计并实现一套简便高效、成本低、通用性强、扩展性好的智能家居系统,对于智能家居在实际应用中的推广使用具有一定的社会价值和经济价值。With the development of modern science and technology, the concepts of automation and intelligence have been deeply rooted in the hearts of the people, and various smart home products have also begun to enter our lives. At present, there is a lack of strict standards and common interfaces between various smart home systems and products, and due to current technical conditions and economic cost constraints, the specific application of smart home has not been widely popularized. How to design and implement a set of simple and efficient, The smart home system with low cost, strong versatility and good scalability has certain social and economic value for the promotion and use of smart home in practical applications.

本作品针对现有智能家居控制系统的特点及不足,提出了以ZigBee无线传感器网络作为家庭控制子网,以家用PC机作为家庭网关以及家居控制中心,在Android平台上通过WIFI无线数据通信技术接入家庭子网,实现对家居系统设备的智能控制及远程监控。Aiming at the characteristics and deficiencies of the existing smart home control system, this work proposes to use the ZigBee wireless sensor network as the home control subnet, and use the home PC as the home gateway and home control center, and connect it through WIFI wireless data communication technology on the Android platform. Enter the home subnet to realize intelligent control and remote monitoring of home system equipment.

首先,深入分析了ZigBee协议标准及相关概念,采用深圳安联德电子公司的2530ZigBee开发模块,设计并实现了网络拓扑结构、网络配置、网络关联、端点绑定及数据传输机制。可完成灯光、窗帘、抽油烟机、温湿度、煤气报警等功能的智能控制。First of all, the ZigBee protocol standard and related concepts are deeply analyzed, and the network topology, network configuration, network association, endpoint binding and data transmission mechanism are designed and realized by using the 2530ZigBee development module of Shenzhen Alliant Electronics Company. It can complete the intelligent control of lighting, curtains, range hood, temperature and humidity, gas alarm and other functions.

其次,基于微软MFC框架的体系结构,探讨了基于MFC框架的PC机应用程序和基于Android平台移动设备应用程序的设计方法,以及MFC框架下WindowsSocket网络通信的实现。研究了WIFI网络的接入手段,实现了家庭网关程序的编写和Android智能手机客户端开发。家庭网关界面简洁,操作方便,且控制可靠。智能手机客户端能实现对家庭环境信息的查看,以及对家电的控制。Secondly, based on the architecture of the Microsoft MFC framework, the design method of the PC application program based on the MFC framework and the mobile device application program based on the Android platform are discussed, as well as the realization of WindowsSocket network communication under the MFC framework. The access means of WIFI network is studied, and the programming of home gateway program and the development of Android smart phone client are realized. The home gateway interface is simple, easy to operate, and reliable in control. The smart phone client can realize the viewing of family environment information and the control of home appliances.

再次,本系统采用三星公司的ARM9S3C2440最小系统板,基于嵌入式Linux操作系统,在开发板上搭建BOA服务器,利用摄像头采集实时视频数据,实现远程无线可移动的视频监控,并且在客户端上利用客户端界面或浏览器通过无线网络访问开发板,实现客户端的实时监控功能。Again, this system adopts Samsung's ARM9S3C2440 minimum system board, based on the embedded Linux operating system, builds a BOA server on the development board, uses the camera to collect real-time video data, realizes remote wireless mobile video monitoring, and uses The client interface or browser accesses the development board through the wireless network to realize the real-time monitoring function of the client.

最后,本系统采用NXP公司的MFRC522非接触刷卡模块以及步进电机实现了智能门禁功能。并采用GSM模块SIM900A实现了非家人进入房间时的短信提醒。Finally, the system uses NXP's MFRC522 non-contact card swiping module and stepper motor to realize the intelligent access control function. And the GSM module SIM900A is used to realize the SMS reminder when non-family members enter the room.

基于ZigBee技术的智能家居系统是一个功能强大,性能优越的系统。该系统能克服现有的智能家居系统中普遍存在的一些问题,但对于智能家居系统的整体实现与应用以及智能家居的普及来讲,还有许多地方需要改进和扩展。例如:家庭控制子网协议仅涉及较为简单的模拟量和开关量信号,对于数字电视机顶盒等较为复杂的设备缺乏相应的支持。The smart home system based on ZigBee technology is a powerful system with superior performance. This system can overcome some common problems in existing smart home systems, but for the overall realization and application of smart home systems and the popularization of smart homes, there are still many places to be improved and expanded. For example: the home control subnet protocol only involves relatively simple analog and switch signals, and lacks corresponding support for relatively complex devices such as digital TV set-top boxes.

发明内容Contents of the invention

本发明的目的在于提供一种基于ZigBee的智能家居系统,以解决上述背景技术中提出的问题。The purpose of the present invention is to provide a ZigBee-based smart home system to solve the problems raised in the above-mentioned background technology.

为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种基于ZigBee的智能家居系统,包括家居设备节点、家居主节点、家庭网关和智能移动客户端,所述家居设备节点和家庭网关之间通过家居主节点进行无线连接。A ZigBee-based smart home system includes a home device node, a home master node, a home gateway and an intelligent mobile client, and the home device node and the home gateway are wirelessly connected through the home master node.

作为本发明进一步的方案:所述家居设备节点包括射频收发模块、运算和控制单元、传感和执行模块,所述家居设备节点的硬件核心为基于CC2530的ZigBee无线收发模块,所述家居设备节点的底层终端主要包括三表计量节点、环境温度湿度监测和控制节点、报警信号采集节点、家电控制节点、灯光控制节点。As a further solution of the present invention: the home appliance node includes a radio frequency transceiver module, an operation and control unit, a sensing and execution module, the hardware core of the home appliance node is a ZigBee wireless transceiver module based on CC2530, and the home appliance node The underlying terminals of the system mainly include three-meter metering nodes, ambient temperature and humidity monitoring and control nodes, alarm signal collection nodes, home appliance control nodes, and lighting control nodes.

作为本发明再进一步的方案:所述家居设备节点采用ZigBee精简型设备,所述家居主节点采用全能型设备。As a further solution of the present invention: the home appliance node adopts a ZigBee simplified device, and the home master node adopts an all-around device.

作为本发明再进一步的方案:所述家居主节点包括至少一个ZigBee网络的FFD设备。As a further solution of the present invention: the home master node includes at least one FFD device of the ZigBee network.

作为本发明再进一步的方案:所述家居主节点的工作过程包括:(1)系统初始化;(2)网络拓扑结构更新;(3)节点通信。As a further solution of the present invention: the working process of the home master node includes: (1) system initialization; (2) network topology update; (3) node communication.

作为本发明再进一步的方案:在家庭环境中布置ZigBee模块作为家居设备节点以无线通信方式组织成网络,家居设备节点负责监测周围一定范围内的环境状态、收发信号并进行数据处理,以ZigBee无线传感器网络作为家庭控制子网,以家用PC机作为家庭网关以及家居控制中心,在Android平台上通过WIFI无线数据通信技术接入家庭子网,实现对家居系统设备的智能控制及远程监控。As a further solution of the present invention: arranging ZigBee modules in the home environment is organized into a network as home equipment nodes in a wireless communication mode, and the home equipment nodes are responsible for monitoring the environmental status within a certain range around, sending and receiving signals and performing data processing. The sensor network is used as the home control subnet, and the home PC is used as the home gateway and home control center. On the Android platform, it is connected to the home subnet through WIFI wireless data communication technology to realize intelligent control and remote monitoring of home system equipment.

与现有技术相比,本发明的有益效果是:简便高效、成本低、通用性强、扩展性好。Compared with the prior art, the beneficial effects of the present invention are: simple and efficient, low cost, strong versatility and good expansibility.

特色与创新Features and Innovation

(1)基于ZigBee技术实现了智能家居系统的家电控制、家庭环境监测、安防等功能,并实现了远程监控。(1) Based on ZigBee technology, the home appliance control, home environment monitoring, security and other functions of the smart home system are realized, and remote monitoring is realized.

(2)该系统在实际应用时,家里有人可采用室内终端模式,由家庭网关或智能终端进行操控;离开家时可采用外出模式,此时可借助智能终端进行监测与控制。(2) When the system is actually applied, someone at home can use the indoor terminal mode, which is controlled by the home gateway or smart terminal; when leaving home, it can use the going out mode, and at this time, the smart terminal can be used for monitoring and control.

(3)通过修改视频服务器MJPG的源码,实现多平台移植,可同时移植到LINUX\UNIX\WINDOWS;视频采集接入设备可同时兼容USB和COMS设备。(3) By modifying the source code of the video server MJPG, multi-platform transplantation can be realized, which can be transplanted to LINUX\UNIX\WINDOWS at the same time; the video acquisition access device can be compatible with USB and COMS devices at the same time.

(4)客户端软件基于Android4.0Socket编程,结合自行设计的手机专用视频控件,可以在任意一台连接网的PC机和手机上进行实时信息监控与控制。(4) The client software is based on Android4.0Socket programming, combined with the self-designed mobile phone dedicated video control, it can monitor and control real-time information on any PC or mobile phone connected to the network.

本发明针对现有智能家居控制系统的特点及不足,提出了以ZigBee无线传感器网络作为家庭控制子网,以家用PC机作为家庭网关以及家居控制中心,在Android平台上通过WIFI无线数据通信技术接入家庭子网,实现对家居系统设备的智能控制及远程监控。Aiming at the characteristics and deficiencies of the existing smart home control system, the present invention proposes to use the ZigBee wireless sensor network as the home control subnet, use the home PC as the home gateway and home control center, and use the WIFI wireless data communication technology to connect to the system on the Android platform. Enter the home subnet to realize intelligent control and remote monitoring of home system equipment.

首先,深入分析了ZigBee协议标准及相关概念,设计并实现了网络拓扑结构、网络配置、网络关联、端点绑定及数据传输机制。可完成灯光、窗帘、抽油烟机、温湿度、煤气报警以及人体红外等功能的智能控制。First of all, the ZigBee protocol standard and related concepts are deeply analyzed, and the network topology, network configuration, network association, endpoint binding and data transmission mechanism are designed and implemented. It can complete the intelligent control of functions such as lights, curtains, range hoods, temperature and humidity, gas alarms, and human infrared.

其次,基于微软MFC框架的体系结构,探讨了基于MFC框架的PC机应用程序和基于Android平台移动设备应用程序的设计方法,以及MFC框架下WindowsSocket网络通信的实现。研究了WIFI网络的接入手段,实现了家庭网关程序的编写和Android智能手机客户端开发。使得家庭网关不仅界面简洁,操作方便,且控制可靠。智能手机客户端可实现对家庭各种信息的查看和控制。Secondly, based on the architecture of the Microsoft MFC framework, the design method of the PC application program based on the MFC framework and the mobile device application program based on the Android platform are discussed, as well as the realization of WindowsSocket network communication under the MFC framework. The access means of WIFI network is studied, and the programming of home gateway program and the development of Android smart phone client are realized. The home gateway not only has a simple interface, but also is easy to operate and reliable in control. The smart phone client can realize the viewing and control of various information of the family.

再次,本系统采用三星公司的ARM9S3C2440最小系统板,基于嵌入式Linux操作系统,在开发板上搭建BOA服务器,利用摄像头采集实时视频数据,实现远程无线可移动的视频监控,并且在客户端利用客户端界面或浏览器通过无线网络访问开发板,实现客户端的实时监控功能。Again, this system adopts Samsung’s ARM9S3C2440 minimum system board, based on the embedded Linux operating system, builds a BOA server on the development board, uses the camera to collect real-time video data, realizes remote wireless mobile video monitoring, and uses the client’s The terminal interface or browser accesses the development board through the wireless network to realize the real-time monitoring function of the client.

最后,本系统采用NXP公司的MFRC522非接触刷卡模块以及步进电机实现了智能门禁功能。并采用GSM模块SIM900A实现了非家人进入房间时的短信提醒,使门禁系统可进行远程操控。Finally, the system uses NXP's MFRC522 non-contact card swiping module and stepper motor to realize the intelligent access control function. And the GSM module SIM900A is used to realize the SMS reminder when non-family members enter the room, so that the access control system can be controlled remotely.

基于ZigBee技术的智能家居系统虽然是一个功能强大,性能优越的系统。但对于智能家居系统的整体实现与应用以及智能家居的普及来讲,还有许多地方需要改进和扩展。这将会是我们未来发展的方向与目标。Although the smart home system based on ZigBee technology is a powerful system with superior performance. But for the overall implementation and application of the smart home system and the popularization of smart home, there are still many places to be improved and expanded. This will be the direction and goal of our future development.

意义:智能家居的设计是为了让人们过上更舒适、更安全、更便捷的生活方式的一种设计。它不仅仅是一项技术的创新与科技的进步,更是人们对更高层次生活的向往与追求。因此,智能家居的设计与未来的发展将会成为人类追求更高级生活方式的目标。它将对人类的未来生活产生深远的意义。Significance: The design of smart home is a design for people to live a more comfortable, safer and more convenient lifestyle. It is not only a technical innovation and technological progress, but also people's yearning and pursuit of a higher level of life. Therefore, the design and future development of smart home will become the goal of human beings to pursue a more advanced lifestyle. It will have profound significance for the future life of human beings.

附图说明Description of drawings

图1为基于ZigBee的智能家居系统的总体框图。Figure 1 is an overall block diagram of a ZigBee-based smart home system.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参阅图1,本发明实施例中,一种基于ZigBee的智能家居系统,包括家居设备节点、家居主节点、家庭网关和智能移动客户端。Please refer to FIG. 1 , in an embodiment of the present invention, a ZigBee-based smart home system includes a home device node, a home master node, a home gateway and an intelligent mobile client.

家居设备节点包括以下三部分部件:射频收发模块、运算和控制单元、传感和执行模块。射频收发模块作为系统中各网络节点的通信接口,进行网络中各节点设备的网络无线连接和无线数据或指令的收发。节点终端的传感和执行模块,主要进行非法闯入或者有毒气体等意外灾难情况的探测、三表数据的采集、对各种网络家电的控制。这种控制或者检测功能需要通过运算和控制单元操作完成。在本系统中家居设备节点的硬件核心为基于CC2530的ZigBee无线收发模块。CC2530可以用于的应用包括远程控制、消费型电子、家庭控制、计量和智能能源、楼宇自动化、医疗以及更多领域。The home equipment node includes the following three parts: radio frequency transceiver module, computing and control unit, sensing and execution module. As the communication interface of each network node in the system, the radio frequency transceiver module performs network wireless connection of each node device in the network and transmits and receives wireless data or instructions. The sensing and execution module of the node terminal is mainly used for the detection of unexpected disasters such as illegal intrusion or toxic gas, the collection of three meter data, and the control of various network appliances. This control or detection function needs to be completed through the operation of the calculation and control unit. The hardware core of the home equipment node in this system is the ZigBee wireless transceiver module based on CC2530. Applications where the CC2530 can be used include remote control, consumer electronics, home control, metering and smart energy, building automation, medical and more.

在家庭子网中网络协调器FFD设备充当家居主节点,FFD负责监督网络的正常运行,由它主导ZigBee无线传感器网络的建立,完成网络的初始化、设备控制、数据采集等功能。子网中精简功能设备充当家居设备节点,主要完成传感采集、查询响应等功能,家居设备节点相互之间不能进行通信,只能与家居主节点进行通信。家居主节点与家庭网关之间使用串口连接,可将数据上传到家庭网关中。家庭网关是智能家居控制系统的核心部分,主要完成家庭内部网络各种设备之间的信息交换和信息共享,以及同外部通信网络之间的数据交换功能。所述家居设备节点的底层终端主要包括三表计量节点、环境温度湿度监测和控制节点、报警信号采集节点、家电控制节点、灯光控制节点。In the home subnet, the network coordinator FFD device acts as the main node of the home. FFD is responsible for supervising the normal operation of the network. It leads the establishment of the ZigBee wireless sensor network and completes network initialization, device control, data collection and other functions. The simplified function devices in the subnet act as home device nodes, which mainly complete functions such as sensor collection and query response. The home device nodes cannot communicate with each other, but can only communicate with the home master node. The home master node is connected to the home gateway through a serial port, and data can be uploaded to the home gateway. The home gateway is the core part of the smart home control system. It mainly completes the information exchange and information sharing between various devices in the home network, as well as the data exchange function with the external communication network. The underlying terminals of the household equipment nodes mainly include three-meter metering nodes, ambient temperature and humidity monitoring and control nodes, alarm signal collection nodes, home appliance control nodes, and lighting control nodes.

由于每个ZigBee节点设备在网络中只能与家居控制中心进行通信,通常既可以由ZigBee全能型设备但当,又可以由精简型设备但当。在本发明的系统中一个子网的设备个数不多于254个。每个家居节点设备在同一时刻只能与一个上层节点进行通信,这个上层节点即家居主节点由全能型设备构成。家居主节点在网络的建立与管理中作为协调器存在,由于家居设备节点在网络中不需要与邻近的节点之间进行协调,因此家居主节点不支持路由功能。终端节点在网络建立完成后即可关闭收发器进入节电模式,开始离线工作,且不影响网络的连通性。家居设备节点在ZigBee网络中作为终端设备,由嵌入到家电设备中的ZigBee通信模块、传感器、执行器等单元共同构成。本发明中家居设备节点采用ZigBee精简型设备,家居主节点采用全能型设备。Because each ZigBee node device can only communicate with the home control center in the network, usually it can be operated by both ZigBee omnipotent devices and simplified devices. In the system of the present invention, the number of devices in a subnet is not more than 254. Each home node device can only communicate with one upper node at the same time, and this upper node, the home master node, is composed of all-round devices. The home master node exists as a coordinator in the establishment and management of the network. Since the home device node does not need to coordinate with adjacent nodes in the network, the home master node does not support the routing function. After the network is established, the terminal node can turn off the transceiver and enter the power saving mode, and start working offline without affecting the connectivity of the network. The home equipment node is used as a terminal equipment in the ZigBee network, which is composed of ZigBee communication modules, sensors, actuators and other units embedded in the home appliances. In the present invention, the household equipment node adopts the ZigBee streamlined equipment, and the household main node adopts the omnipotent equipment.

家居主节点是家庭控制网络的主控设备,要求必须由至少一个ZigBee网络的FFD设备组成,一方面它主导家庭内部网络建立的整个过程,主要包括系统初始化、网络的建立、地址的分配和成员的加入、节点设备数据的更新、数据转发表、设备关联表等几个方面,另一方面作为家庭网关和设备节点之间的桥梁,完成家庭网关和家居设备节点的通信。The home master node is the main control device of the home control network. It must be composed of at least one FFD device of the ZigBee network. On the one hand, it leads the entire process of establishing the home internal network, mainly including system initialization, network establishment, address allocation and membership. On the other hand, as a bridge between the home gateway and the device node, it completes the communication between the home gateway and the home device node.

所述家居主节点作为协调器,处于ZigBee网络的最上层,系统上电后,家居主节点首先选择一个空闲信道,采集活动节点信息,并为之分配一个唯一的节点号,完成系统地址表的初始化。系统运行过程中,所述家居主节点要与所述家居设备节点进行通信,并对它们进行相应的控制。所述家居主节点必须能发现网络拓扑结构的改变,如设备节点的插入和拆除,修改和维护网络地址表的信息,实现网络的自组织功能。所述家居主节点的具体工作过程如下:The home master node, as a coordinator, is at the top of the ZigBee network. After the system is powered on, the home master node first selects an idle channel, collects active node information, and assigns a unique node number to it to complete the system address table. initialization. During the operation of the system, the main home node communicates with the home device nodes and controls them accordingly. The home master node must be able to discover changes in the network topology, such as the insertion and removal of device nodes, modify and maintain the information in the network address table, and realize the self-organizing function of the network. The specific working process of the home master node is as follows:

(1)系统初始化(1) System initialization

系统上电以后,家居主节点选择网络中的空闲信道,以广播的方式通知已上电运行的设备节点初始化。所述家居设备节点收到所述家居主节点的数据帧之后,产生一个0-255的随机数,这个随机数用于计算本节点的时延,每个节点等待随机时延后向协调器发出入网请求,延时时间由随机数与时延基数相乘得出,所述家居主节点收到所述家居设备节点的请求后分配给所述家居设备节点一个16位的网络地址,并将所述家居设备节点的相关信息记录在地址表中,进行网络设备关联,若家居设备节点向家居主节点发送入网请求后一分钟内没有得到回应,则重新产生一个随机数,等待随机时延再次向家居主节点发送入网请求。家所述居主节点完成所有上电的家居设备节点初始状态的采集,完成网络的组建与配置过程。After the system is powered on, the home master node selects an idle channel in the network, and notifies the device nodes that have been powered on to initialize by broadcasting. After the home equipment node receives the data frame of the home master node, it generates a random number of 0-255. This random number is used to calculate the time delay of the node, and each node waits for the random time delay before sending a message to the coordinator. For the network access request, the delay time is obtained by multiplying the random number and the delay base number. After receiving the request from the home equipment node, the home master node assigns a 16-bit network address to the home equipment node, and sends the The relevant information of the home device node is recorded in the address table, and the network device is associated. If the home device node does not get a response within one minute after sending the network access request to the home master node, a random number is regenerated, and the random number is waited for. The home master node sends a network access request. The home master node completes the collection of the initial state of all powered-on home device nodes, and completes the network establishment and configuration process.

(2)网络拓扑结构更新(2) Network topology update

当网络拓扑结构发生变化时,所述家居主节点必须具有能够发现这种变化并修改地址表信息的功能。设备节点的接入和拆除会引起网络拓扑结构发生变化。ZigBee网络具有自组织功能。When the network topology changes, the home master node must have the function of being able to discover this change and modify the address table information. The access and removal of device nodes will cause changes in the network topology. ZigBee network has self-organization function.

家居设备节点的插入:在网络运行中,新的家居设备节点通电后会主动发送入网请求,所述家居主节点首先判断该新的家居设备节点是否存在于地址列表中,如果该新的家居设备节点不在当前的网络地址列表中,即该新的家居设备节点当前不在网,同时网络中的设备节点数还没有超过网络最大容量,则家居主节点记录该新的家居设备节点的初始信息,并给该新的家居设备节点分配一个唯一的节点号。如果新的家居设备节点的入网请求在规定时间内没有得到回应,则等待随机时延后重新发送入网请求。这样就完成了节点的插入。Insertion of home device nodes: During network operation, a new home device node will actively send a network access request after it is powered on. The home master node first determines whether the new home device node exists in the address list. If the new home device node The node is not in the current network address list, that is, the new home device node is not currently on the network, and the number of device nodes in the network has not exceeded the maximum capacity of the network, the home master node records the initial information of the new home device node, and Assign a unique node number to the new home device node. If the network access request of the new home device node does not get a response within the specified time, wait for a random time delay and resend the network access request. This completes the insertion of the node.

家居设备节点的拆除:家居设备节点的拆除根据发起者的不同分为两种情况。一种是家居设备节点请求拆除。家居主节点收到节点拆除请求命令后,修改地址表中对应该节点的信息,回收节点号,并告知节点拆除操作成功。另一种拆除是由家居主节点主动发起。如果家居主节点和家居设备节点3次通信均不成功,家居主节点将拆除该节点,如果该节点向家居主节点发送了3次入网请求都没有得到回应,则该节点需重新发送新的入网请求,以获得新的网络节点号。Removal of home device nodes: The removal of home device nodes can be divided into two situations depending on the initiator. One is that the home device node requests removal. After receiving the node removal request command, the home master node modifies the information corresponding to the node in the address table, recycles the node number, and informs the node that the removal operation is successful. Another kind of demolition is initiated by the home master node. If the communication between the home master node and the home equipment node fails for three times, the home master node will dismantle the node. If the node has not responded to the network access request sent to the home master node for three times, the node needs to resend a new network access request request to obtain a new network node number.

(3)节点通信功能(3) Node communication function

家居设备节点只能与家居主节点通信,设备节点相互之间不能进行信息交互。根据节点输出的数据类型不同,家居主节点把它们分成两类。一类节点的数据需要周期性的进行采集,对于这里节点,家居主节点以轮询的方式周期性的与它们进行通信。另一类设备节点只在报警时才输出数据,这类传感器的输出将以中断的方式触发它们和家居主节点之间的通信。The home device node can only communicate with the home master node, and the device nodes cannot exchange information with each other. According to the different types of data output by the nodes, the home master node divides them into two categories. The data of a class of nodes needs to be collected periodically. For these nodes, the home master node communicates with them periodically in a polling manner. Another type of device node only outputs data when an alarm occurs. The output of this type of sensor will trigger communication between them and the home master node in an interrupted manner.

家居主节点不仅要完成设备节点的信息采集,还要实现对节点的控制。包括节点的设置、节点操作和节点重启等。所谓节点设置,就是家居主节点对节点的某个参数值进行设定,譬如说烟雾传感器报警的门限值。节点操作主要是家居主节点控制相应的家居设备节点,譬如进行报警的撤防、灯光控制等等。节点重启就是当控制中心发现某节点上传的数据出现连续错误时,可以关闭该节点再重新启动实现复位功能。The home master node not only completes the information collection of the device nodes, but also realizes the control of the nodes. Including node settings, node operations, and node restarts. The so-called node setting means that the home master node sets a certain parameter value of the node, such as the threshold value of the smoke sensor alarm. The node operation is mainly that the home master node controls the corresponding home device nodes, such as alarm disarming, lighting control and so on. Node restart means that when the control center finds that the data uploaded by a certain node has continuous errors, it can shut down the node and restart it to realize the reset function.

系统运行过程中还有需要注意的其他问题。首先,传感器电源的监测是个重要的问题。如果传感器电源电压过低,它可能输出错误的信息,家居主节点不能发现这种情况,则不能保证采集的数据的正确性。因此,家庭网关必须要监测设备节点的电量,发现节点电量低时应发出相应的警报、拆除该节点并将相应的信息发送到远程管理终端。其次,为了降低设备节点上的功耗,当无数据通信时,让节点进入等待或休眠等低功耗模式。家居主节点必须记录该节点的状态,并能够以适当的方式唤醒该传感器节点。智能家居系统的ZigBee网络就是通过这样的方式组建。There are other issues that need attention during system operation. First, the monitoring of the sensor power supply is an important issue. If the sensor power supply voltage is too low, it may output wrong information, and the home master node cannot find this situation, so the correctness of the collected data cannot be guaranteed. Therefore, the home gateway must monitor the power of the device node, and when it finds that the power of the node is low, it should issue a corresponding alarm, remove the node and send the corresponding information to the remote management terminal. Secondly, in order to reduce the power consumption on the device node, when there is no data communication, let the node enter a low power consumption mode such as waiting or sleeping. The home master node must record the state of the node and be able to wake up the sensor node in an appropriate way. The ZigBee network of the smart home system is established in this way.

本发明在家庭环境中布置ZigBee模块作为家居设备节点以无线通信方式组织成网络,家居设备节点负责监测周围一定范围内的环境状态、收发信号并进行数据处理,以ZigBee无线传感器网络作为家庭控制子网,以家用PC机作为家庭网关以及家居控制中心,在Android平台上通过WIFI无线数据通信技术接入家庭子网,实现对家居系统设备的智能控制及远程监控。The present invention arranges ZigBee modules in the home environment as home equipment nodes and organizes them into a network in a wireless communication manner. The home equipment nodes are responsible for monitoring the environmental status within a certain range around, sending and receiving signals and performing data processing. The ZigBee wireless sensor network is used as a home control subnet. Network, using the home PC as the home gateway and home control center, accessing the home subnet through WIFI wireless data communication technology on the Android platform to realize intelligent control and remote monitoring of home system equipment.

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned.

此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described according to implementation modes, not each implementation mode only contains an independent technical solution, and this description in the specification is only for clarity, and those skilled in the art should take the specification as a whole , the technical solutions in the various embodiments can also be properly combined to form other implementations that can be understood by those skilled in the art.

Claims (6)

1.一种基于ZigBee的智能家居系统,其特征在于,包括家居设备节点、家居主节点、家庭网关和智能移动客户端,所述家居设备节点和家庭网关之间通过家居主节点进行无线连接。1. A smart home system based on ZigBee, characterized in that, comprises a home equipment node, a home master node, a home gateway and an intelligent mobile client, and is wirelessly connected between the home equipment node and the home gateway by the home master node. 2.根据权利要求1所述的基于ZigBee的智能家居系统,其特征在于,所述家居设备节点包括射频收发模块、运算和控制单元、传感和执行模块,所述家居设备节点的硬件核心为基于CC2530的ZigBee无线收发模块,所述家居设备节点的底层终端主要包括三表计量节点、环境温度湿度监测和控制节点、报警信号采集节点、家电控制节点、灯光控制节点。2. The ZigBee-based smart home system according to claim 1, wherein the home appliance node includes a radio frequency transceiver module, a computing and control unit, a sensor and an execution module, and the hardware core of the home appliance node is Based on the ZigBee wireless transceiver module of CC2530, the bottom terminal of the home equipment node mainly includes three-meter metering nodes, ambient temperature and humidity monitoring and control nodes, alarm signal collection nodes, home appliance control nodes, and lighting control nodes. 3.根据权利要求1所述的基于ZigBee的智能家居系统,其特征在于,所述家居设备节点采用ZigBee精简型设备,所述家居主节点采用全能型设备。3. The ZigBee-based smart home system according to claim 1, wherein the home appliance node adopts a ZigBee simplified device, and the home master node adopts an all-around device. 4.根据权利要求1所述的基于ZigBee的智能家居系统,其特征在于,所述家居主节点包括至少一个ZigBee网络的FFD设备。4. The smart home system based on ZigBee according to claim 1, wherein said home master node comprises at least one FFD device of ZigBee network. 5.根据权利要求1所述的基于ZigBee的智能家居系统,其特征在于,所述家居主节点的工作过程包括:(1)系统初始化;(2)网络拓扑结构更新;(3)节点通信。5. The ZigBee-based smart home system according to claim 1, wherein the working process of the home master node comprises: (1) system initialization; (2) network topology update; (3) node communication. 6.一种如权利要求1-5任一所述的基于ZigBee的智能家居系统的制备方法,其特征在于,在家庭环境中布置ZigBee模块作为家居设备节点以无线通信方式组织成网络,家居设备节点负责监测周围一定范围内的环境状态、收发信号并进行数据处理,以ZigBee无线传感器网络作为家庭控制子网,以家用PC机作为家庭网关以及家居控制中心,在Android平台上通过WIFI无线数据通信技术接入家庭子网,实现对家居系统设备的智能控制及远程监控。6. A preparation method based on the ZigBee-based smart home system according to any one of claims 1-5, characterized in that, arranging ZigBee modules in the home environment is organized into a network as a home equipment node in a wireless communication mode, and the home equipment The nodes are responsible for monitoring the environmental status within a certain range, sending and receiving signals and performing data processing. The ZigBee wireless sensor network is used as the home control subnet, and the home PC is used as the home gateway and home control center. The Android platform communicates through WIFI wireless data. The technology is connected to the home subnet to realize intelligent control and remote monitoring of home system equipment.
CN201510240241.8A 2015-05-12 2015-05-12 Intelligent household system based on ZigBee Pending CN104865835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510240241.8A CN104865835A (en) 2015-05-12 2015-05-12 Intelligent household system based on ZigBee

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510240241.8A CN104865835A (en) 2015-05-12 2015-05-12 Intelligent household system based on ZigBee

Publications (1)

Publication Number Publication Date
CN104865835A true CN104865835A (en) 2015-08-26

Family

ID=53911748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510240241.8A Pending CN104865835A (en) 2015-05-12 2015-05-12 Intelligent household system based on ZigBee

Country Status (1)

Country Link
CN (1) CN104865835A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105717897A (en) * 2016-04-01 2016-06-29 深圳市益光实业有限公司 Automatic environment monitoring system
CN106131199A (en) * 2016-07-15 2016-11-16 深圳市丰巨泰科电子有限公司 A kind of intelligent home control system based on android system and control method
CN106302049A (en) * 2016-08-18 2017-01-04 衢州学院 A kind of intelligent domestic system based on ZigBee technology
CN106341292A (en) * 2016-02-01 2017-01-18 广州华睿电子科技有限公司 Multi-point networking communication system
CN106789614A (en) * 2017-01-13 2017-05-31 南宁市黑晶信息技术有限公司 A kind of intelligent domestic gateway
CN107179699A (en) * 2017-06-15 2017-09-19 深圳源广安智能科技有限公司 Smart home appliance system
CN107844100A (en) * 2016-09-18 2018-03-27 杭州植嘉科技有限公司 A kind of intelligent home control system and method based on ZigBee technology
CN107945473A (en) * 2016-10-12 2018-04-20 常州市小先信息技术有限公司 Intelligent home control system and its method based on wireless radio frequency modules
CN108536028A (en) * 2018-05-24 2018-09-14 夏文才 A kind of intelligent domestic system and smart home warm-keeping quilt
CN108549247A (en) * 2018-05-23 2018-09-18 文丹 Intelligent home remote monitoring system based on Internet of things
CN109246253A (en) * 2018-11-21 2019-01-18 大连大学 A kind of intelligent building safe protection of building site system based on ZigBee-WiFi
CN109377741A (en) * 2018-10-30 2019-02-22 四川长虹电器股份有限公司 A kind of self-checking system and method for the smoke alarm based on Zigbee network
CN109474716A (en) * 2018-12-05 2019-03-15 张洋 Sensor Accreditation System, method and apparatus based on universal serial bus
CN109932918A (en) * 2019-03-26 2019-06-25 陕西科技大学 A smart home control system
CN110996306A (en) * 2019-11-12 2020-04-10 天津康汇医疗科技股份有限公司 Multichannel signal acquisition communication protocol based on ZigBee
CN111413880A (en) * 2020-03-30 2020-07-14 重庆特斯联智慧科技股份有限公司 Intelligent home configuration method and system based on cloud computing

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201690612U (en) * 2009-12-08 2010-12-29 中兴通讯股份有限公司 Family network system
CN102158376A (en) * 2011-01-28 2011-08-17 田进 Wireless intelligent home security system and control method thereof
KR101248072B1 (en) * 2006-11-30 2013-03-27 에스케이텔레콤 주식회사 ZigBee network system and method using moving Gateway
CN103019181A (en) * 2012-11-20 2013-04-03 程亮 Intelligent internet-of-things home system based on ZigBee wireless communication protocol
CN103596294A (en) * 2013-11-25 2014-02-19 吉林大学 Smart home wireless sensor network based on ZigBee
CN104007707A (en) * 2013-02-21 2014-08-27 徐成琦 Wireless sensor network intelligent home
CN104135408A (en) * 2014-08-05 2014-11-05 健雄职业技术学院 System for intelligent home wireless control and method using the system
CN104483939A (en) * 2014-12-09 2015-04-01 上海电机学院 Remote intelligent household wireless monitoring system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101248072B1 (en) * 2006-11-30 2013-03-27 에스케이텔레콤 주식회사 ZigBee network system and method using moving Gateway
CN201690612U (en) * 2009-12-08 2010-12-29 中兴通讯股份有限公司 Family network system
CN102158376A (en) * 2011-01-28 2011-08-17 田进 Wireless intelligent home security system and control method thereof
CN103019181A (en) * 2012-11-20 2013-04-03 程亮 Intelligent internet-of-things home system based on ZigBee wireless communication protocol
CN104007707A (en) * 2013-02-21 2014-08-27 徐成琦 Wireless sensor network intelligent home
CN103596294A (en) * 2013-11-25 2014-02-19 吉林大学 Smart home wireless sensor network based on ZigBee
CN104135408A (en) * 2014-08-05 2014-11-05 健雄职业技术学院 System for intelligent home wireless control and method using the system
CN104483939A (en) * 2014-12-09 2015-04-01 上海电机学院 Remote intelligent household wireless monitoring system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
熊茂华 等: "《无线传感器网络技术及应用》", 31 January 2014, 西安电子科技大学出版社 *
赵虹钧: "基于Zi}Bee技术的智能家居系统的设计", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *
陈峰: "基于ARM的移动式远程视频监控系统设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341292A (en) * 2016-02-01 2017-01-18 广州华睿电子科技有限公司 Multi-point networking communication system
CN105717897A (en) * 2016-04-01 2016-06-29 深圳市益光实业有限公司 Automatic environment monitoring system
CN106131199A (en) * 2016-07-15 2016-11-16 深圳市丰巨泰科电子有限公司 A kind of intelligent home control system based on android system and control method
CN106302049A (en) * 2016-08-18 2017-01-04 衢州学院 A kind of intelligent domestic system based on ZigBee technology
CN107844100A (en) * 2016-09-18 2018-03-27 杭州植嘉科技有限公司 A kind of intelligent home control system and method based on ZigBee technology
CN107945473A (en) * 2016-10-12 2018-04-20 常州市小先信息技术有限公司 Intelligent home control system and its method based on wireless radio frequency modules
CN106789614A (en) * 2017-01-13 2017-05-31 南宁市黑晶信息技术有限公司 A kind of intelligent domestic gateway
CN107179699B (en) * 2017-06-15 2020-07-21 众业建设集团有限公司 Intelligent household appliance system
CN107179699A (en) * 2017-06-15 2017-09-19 深圳源广安智能科技有限公司 Smart home appliance system
CN108549247A (en) * 2018-05-23 2018-09-18 文丹 Intelligent home remote monitoring system based on Internet of things
CN108536028A (en) * 2018-05-24 2018-09-14 夏文才 A kind of intelligent domestic system and smart home warm-keeping quilt
CN109377741A (en) * 2018-10-30 2019-02-22 四川长虹电器股份有限公司 A kind of self-checking system and method for the smoke alarm based on Zigbee network
CN109246253A (en) * 2018-11-21 2019-01-18 大连大学 A kind of intelligent building safe protection of building site system based on ZigBee-WiFi
CN109474716A (en) * 2018-12-05 2019-03-15 张洋 Sensor Accreditation System, method and apparatus based on universal serial bus
CN109932918A (en) * 2019-03-26 2019-06-25 陕西科技大学 A smart home control system
CN110996306A (en) * 2019-11-12 2020-04-10 天津康汇医疗科技股份有限公司 Multichannel signal acquisition communication protocol based on ZigBee
CN110996306B (en) * 2019-11-12 2021-07-27 天津康汇医疗科技股份有限公司 ZigBee-based multi-channel signal acquisition communication method
CN111413880A (en) * 2020-03-30 2020-07-14 重庆特斯联智慧科技股份有限公司 Intelligent home configuration method and system based on cloud computing
CN111413880B (en) * 2020-03-30 2023-05-12 重庆特斯联智慧科技股份有限公司 Smart home configuration method and system based on cloud computing

Similar Documents

Publication Publication Date Title
CN104865835A (en) Intelligent household system based on ZigBee
CN203984447U (en) A kind of system for Smart Home controlled in wireless
CN203178784U (en) Intelligent household control system based on Internet of Things
CN104135408A (en) System for intelligent home wireless control and method using the system
CN103235581B (en) Electrical equipment control system based on wireless handheld terminal
CN104483939A (en) Remote intelligent household wireless monitoring system
CN104125125A (en) Intelligent housing system and control method
CN108234562B (en) Equipment control method, control equipment and controlled equipment
CN204044598U (en) LED light device and intelligent home control system
CN110045629A (en) A kind of intelligent security guard house control system
CN203324759U (en) Electrical equipment control system based on wireless handheld terminal
CN112153090A (en) Control method and device of Internet of things equipment, gateway and readable storage medium
CN204089846U (en) A smart home system
CN103713605A (en) Intelligent control platform and method
KR102626524B1 (en) System and method for collecting and analyzing the state of the system
CN105262599B (en) A kind of remote power-supply control system based on WiFi
CN110045705B (en) Intelligent home control method, device and system adopting heterogeneous wireless network
CN106249608A (en) Solution scheme using mobile phone or tablet computer as smart home center
CN104731072A (en) Domestic appliance control system
CN202978995U (en) Intelligent household system integrated access and control device
CN105867154A (en) Device and system for controlling home device network
CN205581536U (en) Smart home system
CN107219832A (en) A kind of intelligent appliance and access control system based on technology of Internet of things
CN205318139U (en) Intelligent electrical devices
CN104240475A (en) Smart home monitoring system and smart home monitoring method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150826

RJ01 Rejection of invention patent application after publication