CN105120504A - ZIGBEE dynamic address networking control method and system - Google Patents

ZIGBEE dynamic address networking control method and system Download PDF

Info

Publication number
CN105120504A
CN105120504A CN 201510417466 CN201510417466A CN105120504A CN 105120504 A CN105120504 A CN 105120504A CN 201510417466 CN201510417466 CN 201510417466 CN 201510417466 A CN201510417466 A CN 201510417466A CN 105120504 A CN105120504 A CN 105120504A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
device
zigbee
node
central controller
control
Prior art date
Application number
CN 201510417466
Other languages
Chinese (zh)
Inventor
庞桂伟
李吉兰
王明洪
庞桂兑
楚阿真
刘小林
庞结莲
陈麟
曾庆春
王林东
Original Assignee
深圳市通普科技有限公司
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Abstract

The invention discloses a ZIGBEE dynamic address networking control method and system. An equipment networking part in the method comprises the following steps: a central controller reads an equipment serial-number mapping list and waits access of a ZIGBEE node, the ZIGBEE node sends a networking request instruction and an equipment serial number of the ZIGBEE node to the central controller; the central controller judges whether the received equipment serial number of the ZIGBEE node is an initial value; if the received equipment serial number of the ZIGBEE node is the initial value, an idle equipment serial number is assigned to the ZIGBEE node according to the equipment serial-number mapping list, a mapping relationship is established between the idle equipment serial number and a short address of the ZIGBEE node, and the mapping relationship is saved in the equipment serial-number mapping list; and, if the received equipment serial number of the ZIGBEE node is not the initial value, a corresponding mapping relationship in the equipment serial-number mapping list is updated according to the received equipment serial number of the ZIGBEE node and the short address. Automatic networking of the whole ZIGBEE equipment system is achieved, a user does can obtain the latest equipment networking condition without any networking operation and can control new added equipment.

Description

一种ZIGBEE动态地址组网控制方法和系统 ZIGBEE network address of one kind of dynamic control method and system

技术领域 FIELD

[0001] 本发明涉及ZIGBEE组网控制技术,具体涉及一种ZIGBEE动态地址组网控制方法和系统。 [0001] The present invention relates to control technology ZIGBEE network, particularly to a dynamic address ZIGBEE network control method and system.

背景技术 Background technique

[0002] ZIGBEE是基于IEEE802.15.4标准的低功耗个域网协议,根据这个协议规定的技术是一种短距离、低功耗的无线通信技术。 [0002] ZIGBEE IEEE802.15.4 standard is based on low-power personal area network protocol, in accordance with this technique a predetermined protocol is a short-range, low-power wireless communication technology. ZigBee技术自问世以来,就被寄予厚望,特别是现在,更被冠以物联网的准标准这一称号,由此可见ZigBee的潜力之大。 ZigBee technology since its inception, it was high hopes, especially now, has become known as the pre-standard things that title, we can see great potential of ZigBee. 2012年全球ZigBee芯片的销售额已达3.5亿美元,而我国物联网产业规模也达到3650亿元。 2012 global sales of ZigBee chips reached $ 350 million, while China's Internet of Things industry scale reached 365 billion yuan. 未来ZigBee市场规模将达到千亿级别。 Future ZigBee market will reach 100 billion level. 围绕如此大的市场,各大芯片厂商纷纷布局。 Around such a large market, major chip manufacturers have layout. 以TI为代表的一批厂商通过提供全套的解决方案,迅速占领了大片市场。 TI representative of a group to manufacturers by offering a full range of solutions, quickly occupied the large market. 而TI提供的Z-Stack也成为多数开发者首选的ZigBee协议栈。 The Z-Stack TI provides developers has become the first choice of the majority of ZigBee protocol stack.

[0003] 虽然ZigBee发展了很多年,而且有众多厂商的支持,但由于ZigBee协议本身的复杂性,导致ZigBee技术在消费应用领域中还是具有一些不方便的地方。 [0003] Although ZigBee development for many years, and have the support of many manufacturers, but due to the complexity of the ZigBee protocol itself, leading ZigBee technology in the field of consumer applications still have some inconvenient places. 例如,市面上有一些采用ZigBee自组网模块的LED控制系统,如PHILIPS的HUE,包含一个中央控制器和若干个(目前最多50个)LED灯泡组成,通过ZigBee网络进行连接和维护。 For example, there are some on the market use an LED module ZigBee MANET control system, such as the PHILIPS the HUE, comprising a central controller and a number (currently up to 50) LED light bulbs, and maintain the connection via the ZigBee network. 第一次组网的时候,需要用户手动控制中央控制器进行组网,系统才可以识别新加入的LED灯具。 The first network when the user is required to manually control the central controller for networking, the system will recognize the new addition of LED lamps. 而且当中央控制器重新上电的时候,用户需要再次重新进行组网,才可以实现组网控制,过程较为繁琐,不够智能化和人性化。 And when re-power the central controller, users need to re-networking again, we can achieve network control, process more cumbersome, less intelligent and humane.

发明内容 SUMMARY

[0004] 为了克服现有技术的不足,本发明的目的在于提供一种ZIGBEE动态地址组网控制方法和系统,实现整个ZIGBEE设备系统全自动组网,用户无需任何组网操作便可以在控制终端获取最新的设备组网情况,并可对新加入的设备进行控制。 [0004] In order to overcome the deficiencies of the prior art, an object of the present invention is to provide a dynamic address ZIGBEE network control method and system, the entire system is automated ZIGBEE network device, the user can operate without any network control terminal get the latest networking equipment, and for new entrants to control the device.

[0005] 为解决上述问题,本发明所采用的技术方案如下: [0005] In order to solve the above problem, the technical solution employed in the present invention is as follows:

[0006]方案一: [0006] Scheme I:

[0007] 一种ZIGBEE动态地址组网控制方法,包括设备组网部分和/或设备控制部分;设备组网部分包括以下步骤: [0007] A dynamic address ZIGBEE network control method, comprising the networking apparatus portion and / or the device control section; network apparatus part comprising the steps of:

[0008] S1:中央控制器读取设备编号映射列表,等待ZIGBEE节点发起组网请求; [0008] S1: The central controller reads the device ID mapping list, waiting ZIGBEE network node initiating a request;

[0009] S2 =ZIGBEE节点启动并搜索范围内的中央控制器,向搜索到的中央控制器发送组网请求指令和自身的设备编号; [0009] S2 = ZIGBEE node and the central controller to start the search range, network transmission request command and its own device ID to the central controller to the search;

[0010] S3:中央控制器判断接收到的ZIGBEE节点的设备编号是否为初始值,若是,则执行步骤S4,否则执行步骤S5; [0010] S3: The central controller determines ZIGBEE node receives the device number if the initial value, if yes, performing step S4, otherwise, to step S5;

[0011] S4:根据设备编号映射列表向该ZIGBEE节点分配空闲的设备编号,将该空闲的设备编号与该ZIGBEE节点的短地址建立映射关系并保存至设备编号映射列表中; [0011] S4: device number assigned device number mapping list ZIGBEE node according to the idle, the idle device ID mapping relationship between the short ZIGBEE node address and the device number saved in the mapping list;

[0012] S5:根据接收到的该ZIGBEE节点的设备编号和短地址更新设备编号映射列表中相应的映射关系; [0012] S5: device number corresponding mapping mapping list ZIGBEE node number of the apparatus is received and a short address update;

[0013] 设备控制部分包括以下步骤: [0013] Device control section comprising the steps of:

[0014] S6:中央控制器将设备编号映射列表中的设备编号发送至控制终端中; [0014] S6: a central controller device ID number mapping list transmitted to the control device of the terminal;

[0015] S7:控制终端接收用户对某个设备的控制指令,并将该控制指令和相应的设备编号发送至中央控制器; [0015] S7: a control terminal receiving a user control command to a device, and the control command and transmits the appropriate device number to the central controller;

[0016] S8:中央控制器根据该设备编号获取相应的短地址,通过该短地址向相应的ZIGBEE节点发送控制指令,以控制对应于该ZIGBEE节点的设备。 [0016] S8: The central controller acquires the device ID corresponding short address to send control commands to the respective ZIGBEE node through the short address to control ZIGBEE node corresponding to the device.

[0017] 优选的,设备编号映射列表存储于中央控制器的非易失存储区。 [0017] Preferably, the mapping list is stored in the device number of the central controller non-volatile memory area.

[0018] 优选的,ZIGBEE节点包括路由节点和设备节点,路由节点用于在设备节点与中央控制器之间建立固定的通信通道,设备节点用于控制相应的受控设备。 [0018] Preferred, the ZIGBEE node comprising a routing node and a node device, a fixed routing node for establishing a communication channel between the node devices and the central controller for controlling the device node corresponding controlled apparatus.

[0019] 优选的,在步骤S6中,中央控制器通过内部的WIFI模块将设备编号映射列表中的设备编号发送至控制终端中。 [0019] Preferably, in step S6, the central controller through the WIFI module inside the device ID transmission device ID list mapped to the control terminal.

[0020] 优选的,所述控制终端为智能手机、智能平板或者计算机。 [0020] Preferably, the control terminal is a smart phone, a smart pad or a computer.

[0021]方案二: [0021] Scheme II:

[0022] 一种ZIGBEE动态地址组网控制系统,包括设备组网部分和/或设备控制部分;设备组网部分包括以下模块: [0022] A dynamic address ZIGBEE network control system comprising a networking apparatus portion and / or the device control section; network device section includes the following modules:

[0023] 等待组网模块:设于中央控制器,用于读取设备编号映射列表,等待ZIGBEE节点发起组网请求; [0023] Wait networking module: the central controller is provided, for reading the mapping list device number, wait ZIGBEE network node initiating a request;

[0024] 组网请求模块:设于ZIGBEE节点,用于启动并搜索范围内的中央控制器,向搜索到的中央控制器发送组网请求指令和自身的设备编号; [0024] Network requesting module: ZIGBEE node is provided, the central controller for starting and search range, network transmission request command and its own device ID to the central controller to the search;

[0025] 设备判断模块:设于中央控制器,用于判断接收到的ZIGBEE节点的设备编号是否为初始值,若是,则执行建立映射关系模块,否则执行更新映射关系模块; [0025] Device determining module: the central controller is provided for determining whether the device number ZIGBEE node determines the received initial value, if yes, performs mapping relationship module, otherwise, execute the update module mapping relationship;

[0026] 创建映射关系模块:设于中央控制器,用于根据设备编号映射列表向该ZIGBEE节点分配空闲的设备编号,将该空闲的设备编号与该ZIGBEE节点的短地址建立映射关系并保存至设备编号映射列表中; [0026] The mapping between a module: the central controller is provided for the dispensing device to the number of idle apparatus ZIGBEE node ID mapping list, the short address with the device number idle ZIGBEE node and save the mapping relationship to mapping device number list;

[0027] 更新映射关系模块:设于中央控制器,用于根据接收到的该ZIGBEE节点的设备编号和短地址更新设备编号映射列表中相应的映射关系; [0027] updating the mapping relationship module: the central controller is provided for updating the corresponding mapping mapping device number of the list based on the device number received ZIGBEE node and short address;

[0028] 设备控制部分包括以下模块: [0028] The device control section includes the following modules:

[0029] 设备编号发送模块:设于中央控制器,用于将设备编号映射列表中的设备编号发送至控制终端中; [0029] Device ID module transmits: the central controller is provided for transmitting the device ID in device ID list mapped to the control terminal;

[0030] 控制指令发送模块:设于控制终端,用于接收用户对某个设备的控制指令,并将该控制指令和相应的设备编号发送至中央控制器; [0030] The control command transmitting module: is provided to a control terminal for receiving a user control command to a device, and the control command and the corresponding device ID is transmitted to the central controller;

[0031] 设备控制模块:设于中央控制器,用于根据该设备编号获取相应的短地址,通过该短地址向相应的ZIGBEE节点发送控制指令,以控制对应于该ZIGBEE节点的设备。 [0031] The device control module: the central controller is provided, to obtain the corresponding short address number according to the apparatus, a control instruction corresponding to this short address ZIGBEE node to control ZIGBEE node corresponding to the device.

[0032] 优选的,设备编号映射列表存储于中央控制器的非易失存储区。 [0032] Preferably, the mapping list is stored in the device number of the central controller non-volatile memory area.

[0033] 优选的,ZIGBEE节点包括路由节点和设备节点,路由节点用于在设备节点与中央控制器之间建立固定的通信通道,设备节点用于控制相应的受控设备。 [0033] Preferred, the ZIGBEE node comprising a routing node and a node device, a fixed routing node for establishing a communication channel between the node devices and the central controller for controlling the device node corresponding controlled apparatus.

[0034] 优选的,在设备编号发送模块中,中央控制器通过内部的WIFI模块将设备编号映射列表中的设备编号发送至控制终端中。 [0034] Preferably, in the device ID transmission module, the central controller through the WIFI module inside the device ID transmission device ID list mapped to the control terminal.

[0035] 优选的,所述控制终端为智能手机、智能平板或者计算机。 [0035] Preferably, the control terminal is a smart phone, a smart pad or a computer.

[0036] 相比现有技术,本发明的有益效果在于:实现整个ZIGBEE设备系统全自动组网,用户无需任何组网操作便可以在控制终端获取最新的设备组网情况,并可对新接入的设备进行控制。 [0036] compared to the prior art, the beneficial effects of the present invention is: to achieve overall automated device system ZIGBEE network, network operation without any user can obtain the latest network device where the control terminal, and the new access the control device. 另外,中央控制器为每个ZIGBEE节点分配唯一的设备编号,并且实时更新设备编号与对应设备的短地址的映射关系,保证接入中央控制器的ZIGBEE节点与中央控制器之间的通信通道是准确的。 Further, the central controller to assign a unique ID to each ZIGBEE node device, and the device is updated real-time mapping between device numbers corresponding to the short address, to ensure that the ZIGBEE communication channel between the access node and the central controller is a central controller precise.

附图说明 BRIEF DESCRIPTION

[0037] 图1为本发明ZIGBEE动态地址组网控制方法中设备组网部分的流程图。 [0037] FIG. 1 is a flowchart of a dynamic network address part of the apparatus ZIGBEE network control method of the present invention.

[0038] 图2为本发明ZIGBEE动态地址组网控制方法中设备控制部分的流程图。 [0038] FIG 2 is a flowchart of the device control section ZIGBEE network address dynamic control method of the present invention.

具体实施方式 detailed description

[0039] 下面,结合附图以及具体实施方式,对本发明做进一步描述: [0039] Next, in conjunction with the accompanying drawings and specific embodiments of the present invention will be further described:

[0040] 参考图1和图2为本发明的一种ZIGBEE动态地址组网控制方法,包括设备组网部分和/或设备控制部分;设备组网部分包括以下步骤: [0040] Referring to Figures 1 and control method for a dynamic network address ZIGBEE FIG. 2 of the present invention, the device comprises a network part and / or the device control section; network apparatus part comprising the steps of:

[0041] S1:中央控制器读取设备编号映射列表,等待ZIGBEE节点发起组网请求。 [0041] S1: The central controller reads the device ID mapping list, waiting ZIGBEE node initiates a network request.

[0042] S2 =ZIGBEE节点启动并搜索范围内的中央控制器,向搜索到的中央控制器发送组网请求指令和自身的设备编号。 [0042] S2 = ZIGBEE node and the central controller to start the search range, the central controller transmits the search request command and its own network device number.

[0043] S3:中央控制器判断接收到的ZIGBEE节点的设备编号是否为初始值,若是,则执行步骤S4,否则执行步骤S5。 [0043] S3: The central controller determines ZIGBEE node receives the device number if the initial value, if yes, execute step S4, or step S5.

[0044] S4:根据设备编号映射列表向该ZIGBEE节点分配空闲的设备编号,将该空闲的设备编号与该ZIGBEE节点的短地址建立映射关系并保存至设备编号映射列表中。 [0044] S4: device number assigned device number mapping list ZIGBEE node according to the idle, the idle short address with the device number ZIGBEE node and save the mapping relationship between the device number to map list.

[0045] S5:根据接收到的该ZIGBEE节点的设备编号和短地址更新设备编号映射列表中相应的映射关系。 [0045] S5: device number corresponding mapping mapping list ZIGBEE node number of the device according to the received short address and updates.

[0046] 通过上述步骤,在中央控制器的控制覆盖范围内,ZIGBEE节点会主动向中央控制器发送组网请求和自身的设备编号,其中,中央控制器中与ZIGBEE节点进行通信的模块为ZIGBEE控制模块,可以是CC2530型号的ZIGBEE控制模块。 [0046] within the coverage of the control of the central controller, ZIGBEE node sends to the network central controller through the above steps and its own device ID request, wherein the central controller means for communicating with the nodes ZIGBEE ZIGBEE the control module can be CC2530 models ZIGBEE control module. ZIGBEE节点包括路由节点和设备节点,路由节点在设备节点与中央控制器之间建立固定的通信通道,即作为一个通信中转节点,设备节点用于控制相应的手控设备,例如,设备节点可以是一个LED灯节点,即该节点为控制LED灯工作状态的节点。 ZIGBEE node comprises routing node and a node device, the route node to establish a communication channel between a fixed device and the central node controller, i.e. as a communication relay node, a node device for controlling the respective manual device, e.g., device nodes may be an LED nodes, i.e. the node is a control node LED lamp operating condition.

[0047] 中央控制器接收到某个ZIGBEE节点所发送的设备编号后,首先判断该设备编号是否为初始值,初始值是指该设备为出厂状态,没有与中央控制器连接过,初始值可以是O或者其他标识,以初始值为O为例,若为0,则表示该ZIGBEE节点为新的节点,此时便根据设备编号映射列表随机分配一个空闲的设备编号至该ZIGBEE节点,并且将刚分配的设备编号与该ZIGBEE节点的短地址建立映射关系并保存至设备编号映射列表中,设备编号映射列表存储于中央控制器的非易失存储区,即中央控制器断电后该设备编号映射列表也不会消失。 [0047] After the central controller receives a device ID transmitted ZIGBEE node first determines whether the device number as an initial value, the initial value refers to the delivery state of the device, have not connected with the central controller, the initial value can be is O or other identifier, an initial value of O as an example, if it is 0, it indicates that the ZIGBEE node is a new node, then an idle will be randomly assigned to the device ID according to device number ZIGBEE node mapping list, and device number just assigned short address mapping relation with the ZIGBEE node and stored in the mapping list to the device number, device number list memory mapped region in the nonvolatile memory of the central controller, i.e., after the central controller is not powered device number mapping list will not disappear. 完成后就表示该ZIGBEE节点已经与中央控制器建立了关联关系,其中,中央控制器为一个ZIGBEE节点分配了一个设备编号后,会将该设备编号发送至该ZIGBEE节点中进行保存;若设备编号不为0,则表示该ZIGBEE节点是已经与中央控制器建立关联关系的,但是由于ZIGBEE节点的短地址可能会产生变更,因此,中央控制器会根据接收到的设备编号在编号映射列表中找到相应的映射关系,然后将接收到的短地址替换映射关系中的短地址,即进行一次设备编号与短地址映射关系的更新。 After completion indication after ZIGBEE node has established the relationship with the central controller, wherein the central controller is a ZIGBEE node is assigned a device number, the device sends the ZIGBEE node ID to be stored; if the device number it is not 0, it indicates that the ZIGBEE node is already established relationship with the central controller, but due to the short address ZIGBEE node may produce change, therefore, the central controller can be found in the map list numbered according to the device number received corresponding mapping, then the received short address replacement short address mapping relationship, i.e., update the mapping relationship primary device number and a short address. 当然,中央控制器也可以设置一个判断逻辑,当接收到的短地址与映射关系中的短地址没有发生变更时,则不用替换,否则就进行替换。 Of course, the central controller may be provided with a decision logic, when the short address mapping relationship in the received short address not changed, without replacing it, or to be replaced.

[0048] 通过执行设备组网部分的步骤,能够实时保证接入中央控制器的ZIGBEE节点与中央控制器之间的通信通道是正确的。 [0048] By performing the step portion of the network equipment, to ensure real-time communication channel between the central controller ZIGBEE node access the central controller is correct.

[0049] 设备控制部分包括以下步骤: [0049] The device control portion comprises the steps of:

[0050] S6:中央控制器将设备编号映射列表中的设备编号发送至控制终端中; [0050] S6: a central controller device ID number mapping list transmitted to the control device of the terminal;

[0051] S7:控制终端接收用户对某个设备的控制指令,并将该控制指令和相应的设备编号发送至中央控制器; [0051] S7: a control terminal receiving a user control command to a device, and the control command and transmits the appropriate device number to the central controller;

[0052] S8:中央控制器根据该设备编号获取相应的短地址,通过该短地址向相应的ZIGBEE节点发送控制指令,以控制对应于该ZIGBEE节点的设备。 [0052] S8: The central controller acquires the device ID corresponding short address to send control commands to the respective ZIGBEE node through the short address to control ZIGBEE node corresponding to the device.

[0053] 通过上述设备控制部分的步骤,中央控制器读取最新的设备编号映射列表,通过中央控制器中的WIFI模块将其中的设备编号发送至控制终端中,控制终端可以是智能手机、智能平板或者计算机。 [0053] By the above-described step portion of the control apparatus, the central controller reads the latest mapping list numbering device, wherein the device transmits the ID to the control terminal via the central controller WIFI module, the control terminal can be a smart phone, a smart tablet or computer. 控制终端根据接收到的设备编号更新APP中的可控制设备列表,用户可通过APP向控制终端发送针对某个设备的控制指令,控制终端接收到控制指令后,将该控制指令和相应的设备编号发送至中央控制器中的WIFI模块,由WIFI模块通过UART透传指令发送至ZIGBEE控制模块进行处理,中央控制器中的ZIGBEE控制模块根据接收到的设备编号获取相应的短地址,通过该短地址向相应的ZIGBEE节点发送该控制指令,达到控制对应于该ZIGBEE节点的设备工作状态的目的,例如控制某个LED灯的开关状态。 APP updates the control terminal ID received in the controlled device list, a user can send to the control terminal in accordance with a control command for APP by a device, the control terminal receives the control command, the control command corresponding to the device number and transmitted to the central controller WIFI module, a WIFI module UART ZIGBEE passthrough command to the control module for processing, in the central controller the control module ZIGBEE obtain the corresponding short address number according to the received device, by which the short address ZIGBEE node sends the corresponding control command, corresponding to the purpose of controlling the operating state of the device ZIGBEE node, such as control of a switching state of the LED lamp.

[0054] 另外,每个ZIGBEE节点中均设有重置按键,通过重置按键可以使该ZIGBEE节点的设备编号重置为初始值。 [0054] Further, each ZIGBEE node has a reset button, the device can reset the number ZIGBEE node as an initial value by a reset button.

[0055] 通过本发明的ZIGBEE动态地址组网控制方法,实现整个ZIGBEE设备系统全自动组网,用户无需任何组网操作便可以在控制终端获取最新的设备组网情况,并可对新接入的设备进行控制。 [0055] The dynamic address via ZIGBEE network control method of the present invention, to achieve overall automated device system ZIGBEE network, network operation without any user can obtain the latest network device where the control terminal, and the new access device control. 另外,中央控制器为每个ZIGBEE节点分配唯一的设备编号,并且实时更新设备编号与对应设备的短地址的映射关系,保证接入中央控制器的ZIGBEE节点与中央控制器之间的通信通道是准确的。 Further, the central controller to assign a unique ID to each ZIGBEE node device, and the device is updated real-time mapping between device numbers corresponding to the short address, to ensure that the ZIGBEE communication channel between the access node and the central controller is a central controller precise.

[0056] 本发明还公开了一种ZIGBEE动态地址组网控制系统,包括设备组网部分和/或设备控制部分;设备组网部分包括以下模块: [0056] The present invention also discloses a dynamic address ZIGBEE network control system comprising a networking apparatus portion and / or the device control section; network device section includes the following modules:

[0057] 等待组网模块:设于中央控制器,用于读取设备编号映射列表,等待ZIGBEE节点发起组网请求; [0057] Wait networking module: the central controller is provided, for reading the mapping list device number, wait ZIGBEE network node initiating a request;

[0058] 组网请求模块:设于ZIGBEE节点,用于启动并搜索范围内的中央控制器,向搜索到的中央控制器发送组网请求指令和自身的设备编号; [0058] Network requesting module: ZIGBEE node is provided, the central controller for starting and search range, network transmission request command and its own device ID to the central controller to the search;

[0059] 设备判断模块:设于中央控制器,用于判断接收到的ZIGBEE节点的设备编号是否为初始值,若是,则执行建立映射关系模块,否则执行更新映射关系模块; [0059] Device determining module: the central controller is provided for determining whether the device number ZIGBEE node determines the received initial value, if yes, performs mapping relationship module, otherwise, execute the update module mapping relationship;

[0060] 创建映射关系模块:设于中央控制器,用于根据设备编号映射列表向该ZIGBEE节点分配空闲的设备编号,将该空闲的设备编号与该ZIGBEE节点的短地址建立映射关系并保存至设备编号映射列表中; [0060] The mapping between a module: the central controller is provided for the dispensing device to the number of idle apparatus ZIGBEE node ID mapping list, the short address with the device number idle ZIGBEE node and save the mapping relationship to mapping device number list;

[0061] 更新映射关系模块:设于中央控制器,用于根据接收到的该ZIGBEE节点的设备编号和短地址更新设备编号映射列表中相应的映射关系; [0061] The mapping relationship updating module: the central controller is provided for updating the corresponding mapping mapping device number of the list based on the device number received ZIGBEE node and short address;

[0062] 设备控制部分包括以下模块: [0062] The device control section includes the following modules:

[0063] 设备编号发送模块:设于中央控制器,用于将设备编号映射列表中的设备编号发送至控制终端中; [0063] Device ID module transmits: the central controller is provided for transmitting the device ID in device ID list mapped to the control terminal;

[0064] 控制指令发送模块:设于控制终端,用于接收用户对某个设备的控制指令,并将该控制指令和相应的设备编号发送至中央控制器; [0064] The control command transmitting module: is provided to a control terminal for receiving a user control command to a device, and the control command and the corresponding device ID is transmitted to the central controller;

[0065] 设备控制模块:设于中央控制器,用于根据该设备编号获取相应的短地址,通过该短地址向相应的ZIGBEE节点发送控制指令,以控制对应于该ZIGBEE节点的设备。 [0065] The device control module: the central controller is provided, to obtain the corresponding short address number according to the apparatus, a control instruction corresponding to this short address ZIGBEE node to control ZIGBEE node corresponding to the device.

[0066] 优选的,设备编号映射列表存储于中央控制器的非易失存储区。 [0066] Preferably, the mapping list is stored in the device number of the central controller non-volatile memory area.

[0067] 优选的,ZIGBEE节点包括路由节点和设备节点,路由节点用于在设备节点与中央控制器之间建立固定的通信通道,设备节点用于控制相应的受控设备。 [0067] Preferred, the ZIGBEE node comprising a routing node and a node device, a fixed routing node for establishing a communication channel between the node devices and the central controller for controlling the device node corresponding controlled apparatus.

[0068] 优选的,在设备编号发送模块中,中央控制器通过内部的WIFI模块将设备编号映射列表中的设备编号发送至控制终端中。 [0068] Preferably, in the device ID transmission module, the central controller through the WIFI module inside the device ID transmission device ID list mapped to the control terminal.

[0069] 优选的,所述控制终端为智能手机、智能平板或者计算机。 [0069] Preferably, the control terminal is a smart phone, a smart pad or a computer.

[0070] 对本领域的技术人员来说,可根据以上描述的技术方案以及构思,做出其它各种相应的改变以及形变,而所有的这些改变以及形变都应该属于本发明权利要求的保护范围之内。 [0070] to those skilled in the art that, according to the technical solution described above and the concept, that various other changes and the corresponding deformation, and all such modifications and strain should belong to the scope of the claims of the invention Inside.

Claims (10)

  1. 1.一种ZIGBEE动态地址组网控制方法,其特征在于,包括设备组网部分和/或设备控制部分;设备组网部分包括以下步骤: 51:中央控制器读取设备编号映射列表,等待ZIGBEE节点发起组网请求; 52 =ZIGBEE节点启动并搜索范围内的中央控制器,向搜索到的中央控制器发送组网请求指令和自身的设备编号; 53:中央控制器判断接收到的ZIGBEE节点的设备编号是否为初始值,若是,则执行步骤S4,否则执行步骤S5; 54:根据设备编号映射列表向该ZIGBEE节点分配空闲的设备编号,将该空闲的设备编号与该ZIGBEE节点的短地址建立映射关系并保存至设备编号映射列表中; 55:根据接收到的该ZIGBEE节点的设备编号和短地址更新设备编号映射列表中相应的映射关系; 设备控制部分包括以下步骤: 56:中央控制器将设备编号映射列表中的设备编号发送至控制终端中; 57:控制终端接收用户 A dynamic address ZIGBEE network controlling method, characterized in that the device comprises a network part and / or the device control section; network apparatus part comprising the steps of: 51: central controller reads the device ID mapping list, waiting ZIGBEE Network node initiates a request; 52 = ZIGBEE node and the central controller to start the search range, network transmission request command and its own device ID to the central controller to the search; 53: the central controller determines the node receives ZIGBEE whether the device number as an initial value, if yes, execute step S4, otherwise, executing step S5; 54: mapping list device number assigned to the device number ZIGBEE node according idle, the idle short address with the device number ZIGBEE node to establish and save the mapping relationship to the device ID mapping list; 55: in accordance with the corresponding mapping apparatus ZIGBEE node number of the received short address and updates the device ID mapping list; device control portion comprises the steps of: 56: central controller transmitting device ID device ID list mapped to the control terminal; 57: receiving user control terminal 对某个设备的控制指令,并将该控制指令和相应的设备编号发送至中央控制器; 58:中央控制器根据该设备编号获取相应的短地址,通过该短地址向相应的ZIGBEE节点发送控制指令,以控制对应于该ZIGBEE节点的设备。 A device control command and the control command corresponding to the device number and transmits to the central controller; 58: a central controller number according to obtain the corresponding short address of the device transmits to the control node through the respective short address ZIGBEE instructions to control the device corresponding to ZIGBEE node.
  2. 2.根据权利要求1所述的ZIGBEE动态地址组网控制方法,其特征在于,设备编号映射列表存储于中央控制器的非易失存储区。 The dynamic address ZIGBEE network control method according to claim 1, wherein the mapping list stored in the device number of the central controller non-volatile memory area.
  3. 3.根据权利要求1所述的ZIGBEE动态地址组网控制方法,其特征在于,ZIGBEE节点包括路由节点和设备节点,路由节点用于在设备节点与中央控制器之间建立固定的通信通道,设备节点用于控制相应的受控设备。 The dynamic address ZIGBEE network control method according to claim 1, characterized in that, ZIGBEE node comprises routing node and a node device, a fixed routing node for establishing a communication channel between the nodes and the central control device, the device respective node for controlling the controlled device.
  4. 4.根据权利要求1所述的ZIGBEE动态地址组网控制方法,其特征在于,在步骤S6中,中央控制器通过内部的WIFI模块将设备编号映射列表中的设备编号发送至控制终端中。 The dynamic address ZIGBEE network control method according to claim 1, wherein, in step S6, the central controller transmits the device ID in device ID list mapped to the control terminal through the interior of the WIFI module.
  5. 5.根据权利要求1所述的ZIGBEE动态地址组网控制方法,其特征在于,所述控制终端为智能手机、智能平板或者计算机。 The dynamic address ZIGBEE network control method according to claim 1, characterized in that the control terminal is a smart phone, a smart pad or a computer.
  6. 6.一种ZIGBEE动态地址组网控制系统,其特征在于,包括设备组网部分和/或设备控制部分;设备组网部分包括以下模块: 等待组网模块:设于中央控制器,用于读取设备编号映射列表,等待ZIGBEE节点发起组网请求; 组网请求模块:设于ZIGBEE节点,用于启动并搜索范围内的中央控制器,向搜索到的中央控制器发送组网请求指令和自身的设备编号; 设备判断模块:设于中央控制器,用于判断接收到的ZIGBEE节点的设备编号是否为初始值,若是,则执行建立映射关系模块,否则执行更新映射关系模块; 创建映射关系模块:设于中央控制器,用于根据设备编号映射列表向该ZIGBEE节点分配空闲的设备编号,将该空闲的设备编号与该ZIGBEE节点的短地址建立映射关系并保存至设备编号映射列表中; 更新映射关系模块:设于中央控制器,用于根据接收到的该ZIGBEE节点的设备 A dynamic address ZIGBEE network control system, characterized in that the device comprises a network part and / or the device control section; network device section includes the following modules: Wait networking module: the central controller is provided for reading taking device number mapping list, waiting for requests to initiate ZIGBEE network node; network request module: ZIGBEE node is provided for activating the central controller and the search range, the central controller transmits the search request command and its own network device number; Analyzing device module: the central controller is provided for determining whether the device number ZIGBEE node determines the received initial value, if yes, performs mapping relationship module, otherwise, execute the update module mapping relationship; mapping between modules : disposed in the central controller assigns a device number for idle ZIGBEE node according to the mapping device number list, the short address with the device number idle ZIGBEE node and save the mapping relation to the device ID mapping list; update mapping relationship module: the central controller is provided, the device according to the received ZIGBEE node 号和短地址更新设备编号映射列表中相应的映射关系; 设备控制部分包括以下模块: 设备编号发送模块:设于中央控制器,用于将设备编号映射列表中的设备编号发送至控制终端中; 控制指令发送模块:设于控制终端,用于接收用户对某个设备的控制指令,并将该控制指令和相应的设备编号发送至中央控制器; 设备控制模块:设于中央控制器,用于根据该设备编号获取相应的短地址,通过该短地址向相应的ZIGBEE节点发送控制指令,以控制对应于该ZIGBEE节点的设备。 No short address and update the corresponding mapping mapping device number list; device control section includes the following modules: the device ID transmission module: the central controller is provided for transmitting the device ID in device ID list mapped to the control terminal; a control command transmitting module: is provided to a control terminal for receiving a user control command to a device, and the control command and the corresponding device ID is transmitted to the central controller; device control module: a central controller is provided for obtain the corresponding short address number according to the apparatus, a control instruction corresponding to this short address ZIGBEE node to control ZIGBEE node corresponding to the device.
  7. 7.根据权利要求6所述的ZIGBEE动态地址组网控制系统,其特征在于,设备编号映射列表存储于中央控制器的非易失存储区。 7. ZIGBEE network address dynamic control system according to claim 6, wherein the mapping list stored in the device number of the central controller non-volatile memory area.
  8. 8.根据权利要求6所述的ZIGBEE动态地址组网控制系统,其特征在于,ZIGBEE节点包括路由节点和设备节点,路由节点用于在设备节点与中央控制器之间建立固定的通信通道,设备节点用于控制相应的受控设备。 8. The dynamic address ZIGBEE network control system according to claim 6, characterized in that, ZIGBEE node comprises routing node and a node device, a fixed routing node for establishing a communication channel between the nodes and the central control device, the device respective node for controlling the controlled device.
  9. 9.根据权利要求6所述的ZIGBEE动态地址组网控制系统,其特征在于,在设备编号发送模块中,中央控制器通过内部的WIFI模块将设备编号映射列表中的设备编号发送至控制终端中。 9. The dynamic address ZIGBEE network control system according to claim 6, characterized in that the device number sent in the module, the central controller through the WIFI module inside the device ID transmission device ID list mapped to the control terminal .
  10. 10.根据权利要求6所述的ZIGBEE动态地址组网控制系统,其特征在于,所述控制终端为智能手机、智能平板或者计算机。 10. ZIGBEE network address dynamic control system according to claim 6, characterized in that the control terminal is a smart phone, a smart pad or a computer.
CN 201510417466 2015-07-15 2015-07-15 ZIGBEE dynamic address networking control method and system CN105120504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510417466 CN105120504A (en) 2015-07-15 2015-07-15 ZIGBEE dynamic address networking control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510417466 CN105120504A (en) 2015-07-15 2015-07-15 ZIGBEE dynamic address networking control method and system

Publications (1)

Publication Number Publication Date
CN105120504A true true CN105120504A (en) 2015-12-02

Family

ID=54668329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510417466 CN105120504A (en) 2015-07-15 2015-07-15 ZIGBEE dynamic address networking control method and system

Country Status (1)

Country Link
CN (1) CN105120504A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763364A (en) * 2016-01-21 2016-07-13 上海岂控信息科技有限公司 2.4G chip-based multi-sub node large-scale networking method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175005A (en) * 2007-10-09 2008-05-07 中兴通讯股份有限公司 System and method for implementing intelligent wireless light control by ZigBee
WO2008096912A1 (en) * 2007-02-04 2008-08-14 Ki-Hyung Kim Method for allowing a family-based address in a wireless sensor network, and method for hierarchical routing a path setting using the same
CN102752881A (en) * 2011-04-21 2012-10-24 佛山市顺德区美的电热电器制造有限公司 Wireless self-networking method of intelligent home system
CN102769555A (en) * 2012-06-27 2012-11-07 喻应东 Intelligent home system
US20120294235A1 (en) * 2011-05-18 2012-11-22 Radius Networks, Inc. System and method for managing content exchanges in a wireless network using a listener module
CN103475703A (en) * 2013-09-06 2013-12-25 四川九洲电器集团有限责任公司 Intelligent home equipment control method based on ZigBee network
CN103713608A (en) * 2013-12-27 2014-04-09 广东康宝电器有限公司 Hierarchical network architecture of wireless Internet-of-Things home system and networking communication method thereof
CN104469986A (en) * 2014-11-28 2015-03-25 四川长虹电器股份有限公司 ZIGBEE equipment networking method
EP3032888A1 (en) * 2007-07-31 2016-06-15 Samsung Electronics Co., Ltd. Channel switching method for switching channels through which content data is received in a zigbee network system, and zigbee network system thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008096912A1 (en) * 2007-02-04 2008-08-14 Ki-Hyung Kim Method for allowing a family-based address in a wireless sensor network, and method for hierarchical routing a path setting using the same
EP3032888A1 (en) * 2007-07-31 2016-06-15 Samsung Electronics Co., Ltd. Channel switching method for switching channels through which content data is received in a zigbee network system, and zigbee network system thereof
CN101175005A (en) * 2007-10-09 2008-05-07 中兴通讯股份有限公司 System and method for implementing intelligent wireless light control by ZigBee
CN102752881A (en) * 2011-04-21 2012-10-24 佛山市顺德区美的电热电器制造有限公司 Wireless self-networking method of intelligent home system
US20120294235A1 (en) * 2011-05-18 2012-11-22 Radius Networks, Inc. System and method for managing content exchanges in a wireless network using a listener module
CN102769555A (en) * 2012-06-27 2012-11-07 喻应东 Intelligent home system
CN103475703A (en) * 2013-09-06 2013-12-25 四川九洲电器集团有限责任公司 Intelligent home equipment control method based on ZigBee network
CN103713608A (en) * 2013-12-27 2014-04-09 广东康宝电器有限公司 Hierarchical network architecture of wireless Internet-of-Things home system and networking communication method thereof
CN104469986A (en) * 2014-11-28 2015-03-25 四川长虹电器股份有限公司 ZIGBEE equipment networking method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763364A (en) * 2016-01-21 2016-07-13 上海岂控信息科技有限公司 2.4G chip-based multi-sub node large-scale networking method

Similar Documents

Publication Publication Date Title
US20070169080A1 (en) Methods and apparatus for use in updating application programs in memory of a network device
US20070105542A1 (en) Over-the-air download (OAD) methods and apparatus for use in facilitating application programming in wireless network devices of ad hoc wireless communication networks
US20120098445A1 (en) Lighting system and method for controlling the same
JP2007040584A (en) Air conditioning system, air conditioning control device, indoor unit, reading device, setting registration method, and setting registration program
US20110205953A1 (en) Information processing system, information processing apparatus and communication process allowing connection to network in accordance with a plurality of communication methods
US20120120934A1 (en) Method for tethering network connection, method for connecting to network, and wireless communication group applying the same
JP2005027280A (en) Bluetooth (r) master selection method, bluetooth master selection program, and bluetooth device
CN103023681A (en) Smart home control device and updating method
CN203178784U (en) Intelligent household control system based on Internet of Things
CN103369790A (en) LED (Light Emitting Diode) illuminating device and illumination control system
JP2010056857A (en) Wireless communication system, wireless base station, wireless relay station, and wireless communication method
CN1949949A (en) LED lamp light wireless controlling system
CN103533706A (en) Wireless LED (Light Emitting Diode) lighting device, wireless lighting control system and control method
CN102186285A (en) Lamp remotely-controlled by mobile phone Bluetooth and control method thereof
CN102612214A (en) Light control system based on android smart cell phone
CN201947492U (en) Centralized Control home lighting control system
CN103327644A (en) Method and equipment for wireless connection
CN102752881A (en) Wireless self-networking method of intelligent home system
CN102238603A (en) Wireless sensor network updating method
CN104317257A (en) System and method for controlling multiple sockets based on wireless internet control
JP2011175757A (en) Lighting control system
CN101014166A (en) Network reprogramming method of wireless sensor network based on priority cluster
CN101018170A (en) The method for supporting the mobile Zifeng radio sensor network system and node mobility
WO2010067246A1 (en) A system and method for copying settings of a device to another device, particularly for copying settings between lamps
CN101444145A (en) Lighting system with linked groups

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
TA01