CN103781259B - A kind of wireless lighting control system and Intelligent lightening device - Google Patents
A kind of wireless lighting control system and Intelligent lightening device Download PDFInfo
- Publication number
- CN103781259B CN103781259B CN201410065432.0A CN201410065432A CN103781259B CN 103781259 B CN103781259 B CN 103781259B CN 201410065432 A CN201410065432 A CN 201410065432A CN 103781259 B CN103781259 B CN 103781259B
- Authority
- CN
- China
- Prior art keywords
- zigbee
- network
- intelligent
- bridge
- intelligent lighting
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 claims description 11
- 230000006855 networking Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 claims description 3
- 238000005286 illumination Methods 0.000 claims 3
- 230000007246 mechanism Effects 0.000 abstract description 6
- 230000007547 defect Effects 0.000 abstract description 3
- 230000010354 integration Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 239000007769 metal material Substances 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
本发明公开了一种无线照明控制系统及智能照明装置,包括初始化控制器、智能照明网桥和智能照明装置;在智能照明网桥内设置一个TCP/IP Webserver微控制单元并连接至路由器,将智能照明网桥作为TCP/IP的网络服务器;同时将ZigBee协调器微控制单元置于智能照明网桥内,集成度高;更为关键的是增加一个初始化控制器,此设备可在ZigBee信号覆盖范围内以优先级高于智能照明网桥的方式控制该ZigBee无线模块所属的智能装置,配合智能网桥上ZigBee网络设备功能按键和TCP/IP网络设备功能按键,通过特殊的系统网络处理机制巧妙地解决了当智能照明网桥失效后智能照明设备无法选择性地加入新网络的缺陷。
The invention discloses a wireless lighting control system and an intelligent lighting device, including an initialization controller, an intelligent lighting network bridge and an intelligent lighting device; a TCP/IP Webserver micro-control unit is arranged in the intelligent lighting network bridge and connected to a router, and the The intelligent lighting bridge acts as a TCP/IP network server; at the same time, the ZigBee coordinator micro-control unit is placed in the intelligent lighting bridge, which has a high degree of integration; the more critical thing is to add an initialization controller, which can be covered by ZigBee signals Within the range, control the smart device to which the ZigBee wireless module belongs with a priority higher than that of the smart lighting bridge. Cooperate with the ZigBee network device function buttons and TCP/IP network device function buttons on the smart bridge, through a special system network processing mechanism. It solves the defect that the intelligent lighting equipment cannot selectively join the new network when the intelligent lighting bridge fails.
Description
技术领域technical field
本发明涉及ZigBee短距离无线网络技术、TCP/IP网络传输控制技术以及一种基于ZigBee和LED色彩管理的无线照明控制系统及智能照明装置。The invention relates to ZigBee short-distance wireless network technology, TCP/IP network transmission control technology, a wireless lighting control system and an intelligent lighting device based on ZigBee and LED color management.
背景技术Background technique
中国专利CN201947492U公开一种集控式家居照明控制系统,该系统包括照明灯具和灯遥控装置,其中灯遥控装置包括手机、家庭网桥、无线协调器;家庭网桥具有WiFi无线模块和ZigBee模块;照明灯具的灯座内设有ZigBee模块;手机与家庭网桥的WiFi无线模块无线连接;家庭网桥的ZigBee模块与无线协调器连接;无线协调器分别与各照明灯具的ZigBee模块无线连接;来自手机的指令信号依次经由家庭网桥的WiFi无线模块、家庭网桥的ZigBee模块、无线协调器到达照明灯具的灯座内的ZigBee模块以控制照明灯具。现有的这种集控式家居照明控制系统的智能照明设备一般是不存在可用于复位的按键或是自供电系统,一般存在两种逻辑问题:1、如果照明设备连接了一个家用网桥A之后,每次设备上电就只能与家用网桥A相连,那这样万一家用网桥A失效损坏之后,照明设备将无法加入新的网桥;2、但如果选择照明设备不区分网桥,即通过某种机制自动的选择了网桥A或B或C,这样可以避免上述情况的发生,但是可以想象邻居家也购买有一个照明网桥,自己家的照明设备会不加区分的选择受邻居家照明网桥的控制,这也是不合适的。Chinese patent CN201947492U discloses a centralized control home lighting control system, the system includes a lighting fixture and a light remote control device, wherein the light remote control device includes a mobile phone, a home network bridge, and a wireless coordinator; the home network bridge has a WiFi wireless module and a ZigBee module; The lamp holder of the lighting fixture is equipped with a ZigBee module; the mobile phone is wirelessly connected to the WiFi wireless module of the home network bridge; the ZigBee module of the home network bridge is connected to the wireless coordinator; The command signal of the mobile phone reaches the ZigBee module in the lamp socket of the lighting fixture through the WiFi wireless module of the home network bridge, the ZigBee module of the home network bridge, and the wireless coordinator in order to control the lighting fixture. The existing smart lighting equipment of this centralized home lighting control system generally does not have a reset button or a self-powered system. Generally, there are two logical problems: 1. If the lighting equipment is connected to a home network bridge A After that, every time the device is powered on, it can only be connected to the home network bridge A, so that if the home network bridge A fails and is damaged, the lighting device will not be able to join the new network bridge; , that is, the network bridge A, B or C is automatically selected through a certain mechanism, which can avoid the occurrence of the above situation, but it is conceivable that the neighbor’s house also buys a lighting bridge, and the lighting equipment of your own home will be selected indiscriminately. It is also inappropriate to be controlled by the lighting bridge of the neighbor's house.
发明内容Contents of the invention
要解决的技术问题:针对现有技术的不足,本发明提出一种无线照明控制系统及智能照明装置,在照明设备不需要自供电系统的条件下,解决现有技术中存在的因智能照明设备中缺乏复位按键导致原有的智能网桥失效后智能照明设备无法选择性地加入新的智能网桥的技术缺陷。Technical problem to be solved: Aiming at the deficiencies of the prior art, the present invention proposes a wireless lighting control system and an intelligent lighting device. Under the condition that the lighting equipment does not need a self-power supply system, it solves the problems existing in the prior art due to the intelligent lighting equipment. The lack of a reset button in the smart lighting device caused the technical defect that the smart lighting equipment could not selectively join the new smart bridge after the original smart bridge failed.
技术方案:为解决上述技术问题,本发明采用以下技术方案:Technical solution: In order to solve the above-mentioned technical problems, the present invention adopts the following technical solutions:
一种无线照明控制系统及智能照明装置,包括智能照明网桥、智能照明装置和初始化控制器;A wireless lighting control system and an intelligent lighting device, including an intelligent lighting bridge, an intelligent lighting device and an initialization controller;
所述智能照明网桥内设有TCP/IP Webserver微控制单元、ZigBee协调器微控制单元和网桥天线模块;所述TCP/IP Webserver微控制单元通过路由器连入以太网,并完成TCP/IP协议栈实现以及Webserver应用服务器的架设;所述ZigBee协调器微控制单元与TCP/IP Webserver微控制单元连接,所述ZigBee协调器微控制单元作为ZigBee网络的协调器完成ZigBee网络的举起与协调工作;所述ZigBee协调器微控制单元通过网桥天线模块向外发射ZigBee网络信号;The intelligent lighting bridge is provided with a TCP/IP Webserver micro-control unit, a ZigBee coordinator micro-control unit and a bridge antenna module; the TCP/IP Webserver micro-control unit is connected to Ethernet through a router, and completes the TCP/IP Protocol stack realization and the erection of Webserver application server; Described ZigBee coordinator micro-control unit is connected with TCP/IP Webserver micro-control unit, and described ZigBee coordinator micro-control unit completes lifting and coordination of ZigBee network as the coordinator of ZigBee network Work; the ZigBee coordinator microcontroller unit transmits ZigBee network signals outwards through the bridge antenna module;
所述智能照明网桥上设有以太网设备入网控制开关,所述智能照明网桥周边设有以太网终端,所述以太网终端与智能照明网桥共处于同一局域网中;所述以太网设备入网开关按下后智能照明网桥向局域网内所有以太网终端不断重复广播发送消息,以太网终端接收到该消息后返回应答信息,当智能照明网桥接收到应答信息后完成以太网终端与以太网终端的TCP/IP网络连接;An Ethernet device network access control switch is provided on the intelligent lighting bridge, and an Ethernet terminal is arranged around the intelligent lighting bridge, and the Ethernet terminal and the intelligent lighting bridge are in the same local area network; the Ethernet device After the network access switch is pressed, the intelligent lighting bridge repeatedly broadcasts and sends messages to all Ethernet terminals in the LAN. After receiving the message, the Ethernet terminal returns a response message. TCP/IP network connection of network terminal;
所述智能照明网桥上还设有ZigBee设备入网控制开关,所述ZigBee设备入网控制开关按下后,智能照明网桥在设定的时间内向外发射入网邀请信号;The intelligent lighting network bridge is also provided with a ZigBee device network access control switch, and after the ZigBee device network access control switch is pressed, the intelligent lighting network bridge sends out a network connection invitation signal within a set time;
所述初始化控制器内设有ZigBee无线控制芯片和控制器天线模块所述ZigBee无线控制芯片举起另一个ZigBee网络并通过控制器天线模块向外发射ZigBee网络信号;所述ZigBee无线控制芯片上设有配对控制按键和初始化控制按键;所述配对控制按键触发后ZigBee无线控制芯片通过控制器天线模块向外发出配对邀请信号;所述初始化控制按键触发后ZigBee无线控制芯片通过控制器天线模块向外发射初始化命令信号;Described initialization controller is provided with ZigBee wireless control chip and described ZigBee wireless control chip of controller antenna module lifts another ZigBee network and outwardly transmits ZigBee network signal by controller antenna module; Set on the described ZigBee wireless control chip There are pairing control buttons and initialization control buttons; after the pairing control buttons are triggered, the ZigBee wireless control chip sends out a pairing invitation signal through the controller antenna module; after the initialization control buttons are triggered, the ZigBee wireless control chip sends out a pairing invitation signal through the controller antenna module Transmitting an initialization command signal;
所述智能照明装置包含ZigBee无线模块、LED驱动模块和LED灯板;所述智能照明装置通过LED驱动模块连接至电源供电,所述LED驱动模块将电源所供电压经调制后输送给ZigBee无线模块和LED灯板用于通电;所述ZigBee无线模块用于接收通过ZigBee网络发送来的信号;The intelligent lighting device comprises a ZigBee wireless module, an LED driver module and an LED light board; the intelligent lighting device is connected to a power supply through the LED driver module, and the LED driver module delivers the voltage supplied by the power supply to the ZigBee wireless module after being modulated and the LED light board are used for powering on; the ZigBee wireless module is used for receiving signals sent through the ZigBee network;
所述智能照明装置包含非初始状态和初始状态;所述智能照明装置若加入过ZigBee网络则处于非初始化状态,在非初始化状态下智能照明装置通电后ZigBee无线模块自动寻找并加入以前加入过的ZigBee网络并在ZigBee协议的控制下保持在ZigBee网络内自身网络地址不变;所述智能照明装置若未加入过任何ZigBee网络或者ZigBee无线模块接收到初始化命令后则处于初始化状态;在初始化状态下,当智能照明装置接收到入网邀请信号后即加入传输该信号的ZigBee网络;ZigBee无线模块接收到自身所在的ZigBee网络传来的初始化命令信号后,智能照明装置脱离原加入的ZigBee网络变为初始化状态;The intelligent lighting device includes a non-initial state and an initial state; if the intelligent lighting device has joined the ZigBee network, it is in a non-initialized state. After the intelligent lighting device is powered on in the non-initialized state, the ZigBee wireless module automatically finds and joins the previously added ZigBee network and under the control of the ZigBee protocol, keep its own network address in the ZigBee network unchanged; if the intelligent lighting device has not joined any ZigBee network or the ZigBee wireless module is in the initialization state after receiving the initialization command; in the initialization state , when the smart lighting device receives the network invitation signal, it will join the ZigBee network that transmits the signal; after the ZigBee wireless module receives the initialization command signal from the ZigBee network where it is located, the smart lighting device will leave the originally joined ZigBee network and become initialized. state;
无论智能照明装置处于何种状态,当ZigBee无线模块接收到由初始化控制器发出的配对邀请信号后智能照明装置即加入ZigBee无线控制芯片所举起的ZigBee网络与初始化控制器进行配对并仅受初始化控制器控制。No matter what state the smart lighting device is in, when the ZigBee wireless module receives the pairing invitation signal sent by the initialization controller, the smart lighting device will join the ZigBee network raised by the ZigBee wireless control chip to pair with the initialization controller and is only subject to initialization Controller control.
功能上智能照明网桥在以太网上实现了一个TCP/IP网页服务器,在ZigBee网络中作为协调器存在。初始化控制器与智能照明网桥没有任何联系,可以配对任何已经加入或没加入智能照明网桥的智能照明装置。当配对完成后可以通过初始化按键使智能照明装置初始化,该功能解决了万一智能照明网桥失效而导致智能照明装置无法加入其它网桥的问题。Functionally, the intelligent lighting bridge implements a TCP/IP web server on the Ethernet, and exists as a coordinator in the ZigBee network. The initialization controller has no connection with the smart lighting bridge, and can be paired with any smart lighting device that has joined or not joined the smart lighting bridge. After the pairing is completed, the smart lighting device can be initialized by pressing the initialization button. This function solves the problem that the smart lighting device cannot join other bridges in case the smart lighting bridge fails.
进一步的,在本发明中,所述初始化控制器发出配对邀请后,选择距离最近的一个智能照明设备或者预先设定好的一个智能照明装置进行配对。设定这样的配对机制,方便操作者将想要控制的智能照明装置与初始化控制器配对起来。Further, in the present invention, after the initialization controller sends out the pairing invitation, it selects a smart lighting device with the closest distance or a preset smart lighting device for pairing. Setting such a pairing mechanism facilitates the operator to pair the intelligent lighting device to be controlled with the initialization controller.
作为优选的,在本发明中,配对成功的智能照明装置发出闪灯确认配对成功。给操作者一个回馈信号,提示配对操作成功。Preferably, in the present invention, the smart lighting device that has been successfully paired sends out a flashing light to confirm that the pairing is successful. Give the operator a feedback signal, indicating that the pairing operation is successful.
更为细致的,在本发明中,所述智能照明网桥通过RJ45网口或无线接口与路由器连接。RJ45网口和无线接口均为常用的网络连接端口,可以方便快捷地与路由器相连。More specifically, in the present invention, the intelligent lighting bridge is connected to a router through an RJ45 network port or a wireless interface. Both the RJ45 network port and the wireless port are commonly used network connection ports, which can be connected to the router conveniently and quickly.
进一步的,在本发明中,所述TCP/IP Webserver微控制单元和ZigBee协调器微控制单元通过串口、I2C、SPI中任意一种方式连接,并通过设定的通信协议进行通信。通过上述方法实现TIP/IP网络与ZigBee网络的桥接工作。Further, in the present invention, the TCP/IP Webserver micro-control unit and the ZigBee coordinator micro-control unit are connected through any one of serial port, I2C, and SPI, and communicate through a set communication protocol. The bridging work between the TIP/IP network and the ZigBee network is realized through the above method.
更为具体的,在本发明中,所述初始化控制器内还设有色彩管理功能按键,所述色彩管理功能按键中设有色度、亮度、饱和色按键,所述色彩管理功能按键连接至ZigBee无线控制芯片向外发送灯光调制信号。当智能照明装置与初始化控制器配对成功后便受控于初始化控制器,此时有了色彩管理功能按键,便可以直接通过初始化控制器来控制智能照明装置的灯光的不同属性;与色彩管理功能按键相应的控制软件均为本领域内现有技术。More specifically, in the present invention, the color management function button is also provided with the color management function button in the described initialization controller, and the chroma, brightness and saturation color buttons are arranged in the color management function button, and the color management function button is connected to the ZigBee The wireless control chip sends light modulation signals to the outside. When the intelligent lighting device is successfully paired with the initialization controller, it will be controlled by the initialization controller. At this time, with the color management function button, you can directly control the different attributes of the light of the smart lighting device through the initialization controller; and the color management function The corresponding control software of the buttons is the prior art in the art.
进一步的,在本发明中,所述ZigBee无线模块接收到ZigBee网络传输来的灯光调制信号后,ZigBee无线模块向LED灯板发送PWM调制信号改变LED灯板的照明属性。这里的智能照明网桥和初始化控制器均可发出灯光调制信号来控制与其处于同一网络中的智能照明装置3。智能照明装置内部的ZigBee无线模块控制LED灯板的工作模式为本领域内现有技术。Further, in the present invention, after the ZigBee wireless module receives the light modulation signal transmitted from the ZigBee network, the ZigBee wireless module sends a PWM modulation signal to the LED light board to change the lighting properties of the LED light board. Both the intelligent lighting bridge and the initialization controller here can send out light modulation signals to control the intelligent lighting device 3 in the same network. The ZigBee wireless module inside the intelligent lighting device controls the working mode of the LED lamp board is the prior art in this field.
一种无线照明控制系统及智能照明装置的控制方法,包括下述两个过程:A wireless lighting control system and a control method for an intelligent lighting device, including the following two processes:
过程一、智能照明装置加入智能照明网桥所举起的ZigBee网络:所述智能照明装置通电后,根据自身状态,若处于非初始化状态,则不断寻找以前加入过的智能照明网桥所举起的ZigBee网络直到成功寻找到并加入并受控于该智能照明网桥;若处于初始化状态,当一旦接收到入网邀请信号便加入传输该入网邀请信号的ZigBee网络中并受控于举起该ZigBee网络的智能照明网桥;Process 1. The smart lighting device joins the ZigBee network raised by the smart lighting bridge: After the smart lighting device is powered on, according to its own state, if it is in a non-initialized state, it will continue to search for the smart lighting bridge that it has joined before. The ZigBee network until it successfully finds and joins and is controlled by the intelligent lighting bridge; if it is in the initialization state, once it receives the network invitation signal, it will join the ZigBee network that transmits the network invitation signal and is controlled by the ZigBee network that lifts the network invitation signal. Smart lighting bridge for the network;
过程二、智能照明装置与初始化控制器配对:在过程一进行过程中,所述初始化控制器向智能照明装置发出配对邀请信号,所述智能照明装置接收到该配对邀请信号后无论是否已经加入ZigBee网络均断开原有网络而与初始化控制器配对并受初始化控制器控制;此后一旦初始化控制器向智能照明装置发出初始化命令信号,所述智能照明装置接收到初始化命令信号后变为初始化状态,不再受初始化控制器控制。Process 2: Pairing between the intelligent lighting device and the initialization controller: during process 1, the initialization controller sends a pairing invitation signal to the intelligent lighting device, and the intelligent lighting device receives the pairing invitation signal regardless of whether it has joined ZigBee The network is disconnected from the original network and paired with the initialization controller and controlled by the initialization controller; after that, once the initialization controller sends an initialization command signal to the intelligent lighting device, the intelligent lighting device becomes the initialization state after receiving the initialization command signal, No longer controlled by the initialization controller.
有益效果:Beneficial effect:
本发明揭示了一个针对智能家庭照明的高效率组网发现机制,包括ZigBee智能照明设备和以太网设备对智能照明网桥识别配对方式等,最终实现一种强制复位、实时入网、自动选择的智能照明组网机制;The present invention discloses a high-efficiency networking discovery mechanism for smart home lighting, including ZigBee smart lighting devices and Ethernet devices to identify and pair smart lighting bridges, etc., and finally realizes a smart device with forced reset, real-time network access, and automatic selection. Lighting networking mechanism;
在本发明中将ZigBee网络的协调器即ZigBee协调器微控制单元置于智能照明网桥内部,而不作为单独的设备存在,集成度高;In the present invention, the coordinator of the ZigBee network, that is, the ZigBee coordinator micro-control unit is placed inside the intelligent lighting bridge instead of existing as a separate device, and the integration degree is high;
通过在智能照明网桥内而由一个带TCP/IP协议MAC层的微控制单元举起一个TCP/IP协议,并且连接一个TCP/IP物理层芯片,直接由RJ45接口或无线连接至路由器,并将智能照明网桥作为TCP/IP的网络服务器而不代替路由器的作用,为其他以太网终端如手机、平板等等提供基于TCP/IP协议的应用服务;In the intelligent lighting bridge, a TCP/IP protocol is raised by a micro control unit with TCP/IP protocol MAC layer, and a TCP/IP physical layer chip is connected, directly connected to the router through the RJ45 interface or wirelessly, and Use the intelligent lighting bridge as a TCP/IP network server instead of a router to provide application services based on the TCP/IP protocol for other Ethernet terminals such as mobile phones, tablets, etc.;
更为关键的是增加一个初始化控制器,此设备是一个独立于智能照明网桥的ZigBee网络设备,通过在近距离与一个ZigBee无线模块配对后,可在ZigBee信号覆盖范围内以优先级高于智能照明网桥的方式控制该ZigBee无线模块所属的智能装置,进行包括初始化、智能装置控制等操作,故在智能照明设备中不包含内置自供电系统的情况下,依靠初始化控制器的控制机制,巧妙地解决了当智能照明网桥失效后智能照明设备无法选择性地加入新网络的缺陷。降低了智能照明设备与智能照明网桥之间的依赖性,使得智能照明设备即使在智能照明网桥失效的情况下仍可正常被使用。What is more critical is to add an initialization controller, which is a ZigBee network device independent of the intelligent lighting bridge. After pairing with a ZigBee wireless module at a short distance, it can be in the ZigBee signal coverage area with priority higher than The smart lighting bridge controls the smart device to which the ZigBee wireless module belongs, and performs operations including initialization and smart device control. Therefore, when the smart lighting device does not include a built-in self-power supply system, relying on the control mechanism of the initialization controller, It cleverly solves the defect that the intelligent lighting equipment cannot selectively join the new network when the intelligent lighting bridge fails. The dependence between the intelligent lighting equipment and the intelligent lighting bridge is reduced, so that the intelligent lighting equipment can still be used normally even when the intelligent lighting bridge fails.
附图说明Description of drawings
图1是本发明装置的整体架构;Fig. 1 is the overall framework of device of the present invention;
图2初始化控制器的硬件架构;Fig. 2 initializes the hardware architecture of the controller;
图3智能照明网桥的硬件架构;Figure 3 The hardware architecture of the intelligent lighting bridge;
图4初始化控制器使用功能示意图;Figure 4 is a schematic diagram of the function of the initialization controller;
图5智能照明装置结构示意图;Figure 5 is a schematic structural diagram of an intelligent lighting device;
图6智能照明装置ZigBee模块、LED驱动模块以及LED灯之间的连接关系图;Fig. 6 is a diagram of the connection relationship between the ZigBee module of the intelligent lighting device, the LED driver module and the LED lamp;
图7智能照明装置加入智能照明网桥的ZigBee网络的流程图;Fig. 7 is a flowchart of the ZigBee network where the intelligent lighting device joins the intelligent lighting bridge;
图8智能照明装置与初始化控制器配对的流程图。Figure 8 is a flow chart of pairing an intelligent lighting device with an initialization controller.
具体实施方式detailed description
下面结合附图对本发明作更进一步的说明。The present invention will be further described below in conjunction with the accompanying drawings.
如图1所示,一种无线照明控制系统及智能照明装置,包括智能照明网桥2、智能照明装置3和初始化控制器1;As shown in Figure 1, a wireless lighting control system and an intelligent lighting device, including an intelligent lighting bridge 2, an intelligent lighting device 3 and an initialization controller 1;
如图3所示,所述智能照明网桥2内设有TCP/IP Webserver微控制单元21、ZigBee协调器微控制单元22和网桥天线模块23;所述TCP/IP Webserver微控制单元21通过RJ45网口24与路由器4连接,再通过路由器5连入以太网6,并完成TCP/IP协议栈实现以及Webserver应用服务器的架设;所述ZigBee协调器微控制单元22与TCP/IPWebserver微控制单元21通过SPI总线连接并通过设定的通信协议进行通信,且二者均通过电源模块27进行供电,这里完成了TCP/IP协议与ZigBee协议的转换。所述ZigBee协调器微控制单元22作为ZigBee网络的协调器完成ZigBee网络的举起与协调工作;所述ZigBee协调器微控制单元22通过网桥天线模块23向外发射ZigBee网络信号。As shown in Figure 3, described intelligent lighting bridge 2 is provided with TCP/IP Webserver micro-control unit 21, ZigBee coordinator micro-control unit 22 and bridge antenna module 23; Described TCP/IP Webserver micro-control unit 21 passes RJ45 network port 24 is connected with router 4, then connects into Ethernet 6 by router 5, and completes the realization of TCP/IP protocol stack and the erection of Webserver application server; Described ZigBee coordinator micro-control unit 22 and TCP/IPWebserver micro-control unit 21 is connected through the SPI bus and communicates through the set communication protocol, and both are powered by the power module 27, and the conversion between the TCP/IP protocol and the ZigBee protocol is completed here. The ZigBee coordinator micro-control unit 22 as the coordinator of the ZigBee network completes the lifting and coordination work of the ZigBee network; the ZigBee coordinator micro-control unit 22 transmits the ZigBee network signal through the bridge antenna module 23 .
所述智能照明网桥2上设有以太网设备入网控制开关25,所述智能照明网桥周边设有以太网终端5,所述以太网终端5与智能照明网桥共处于同一局域网中;所述以太网设备入网开关按下后智能照明网桥2向局域网内所有以太网终端5不断重复广播发送消息,以太网终端5接收到该消息后返回应答信息,当智能照明网桥2接收到应答信息后完成以太网终端5与以太网终端5的TCP/IP网络连接。智能照明网桥2通过路由器4连入以太网6,在以太网6中作为一个网络终端,由路由器4分配IP地址等网络参数,功能上表现为一个TCP/IP网络服务器,为其他以太网终端5如手机、平板等提供基于TCP/IP协议的应用如HTTP、TELNET等应用层服务。The intelligent lighting bridge 2 is provided with an Ethernet device network access control switch 25, and the periphery of the intelligent lighting bridge is provided with an Ethernet terminal 5, and the Ethernet terminal 5 and the intelligent lighting bridge are in the same local area network; After the Ethernet device network access switch is pressed, the intelligent lighting bridge 2 repeatedly broadcasts and sends messages to all Ethernet terminals 5 in the local area network. After receiving the message, the Ethernet terminal 5 returns a response message. When the intelligent lighting bridge 2 receives the response Complete the TCP/IP network connection between Ethernet terminal 5 and Ethernet terminal 5 after the information. The intelligent lighting bridge 2 is connected to the Ethernet 6 through the router 4, and is used as a network terminal in the Ethernet 6, and the network parameters such as IP addresses are assigned by the router 4. Functionally, it is a TCP/IP network server, serving as a server for other Ethernet terminals. 5 Such as mobile phones, tablets, etc. provide applications based on TCP/IP protocols such as HTTP, TELNET and other application layer services.
所述智能照明网桥2上还设有ZigBee设备入网控制开关26,所述ZigBee设备入网控制开关26按下后,智能照明网桥2在设定的时间内向外发射入网邀请信号。The intelligent lighting bridge 2 is also provided with a ZigBee device network access control switch 26. After the ZigBee device network access control switch 26 is pressed, the intelligent lighting network bridge 2 sends out a network access invitation signal within a set time.
如图2所示,所述初始化控制器1内设有ZigBee无线控制芯片13和控制器天线模块14,所述ZigBee无线控制芯片13由内置电池15供电后举起另一个ZigBee网络并通过控制器天线模块14向外发射ZigBee网络信号;所述ZigBee无线控制芯片13上设有配对控制按键11和初始化控制按键12;所述配对控制按键11触发后ZigBee无线控制芯片13通过控制器天线模块14向外发出配对邀请信号,所述初始化控制器1发出配对邀请后,选择距离最近的一个智能照明设备3进行配对;配对完成后初始化控制器1直接可控制智能照明设备3,在初始化控制器1上设有色彩管理功能按键16,该色彩管理功能按键16连接至ZigBee无线控制芯片13通过其发射灯光调制信号,具体包括色度、亮度、饱和色按键,可通过这些按键直接对智能照明设备的照明属性进行控制,当然也可以根据需要增设其他功能按键连接至ZigBee无线控制芯片13。As shown in Figure 2, ZigBee wireless control chip 13 and controller antenna module 14 are provided in the described initialization controller 1, and described ZigBee wireless control chip 13 lifts another ZigBee network after being powered by built-in battery 15 and passes controller Antenna module 14 outwardly transmits ZigBee network signal; Described ZigBee wireless control chip 13 is provided with pairing control button 11 and initialization control button 12; ZigBee wireless control chip 13 passes controller antenna module 14 to Send out a pairing invitation signal, and after the initialization controller 1 sends out the pairing invitation, select the nearest intelligent lighting device 3 for pairing; after the pairing is completed, the initialization controller 1 can directly control the intelligent lighting device 3, There is a color management function button 16, the color management function button 16 is connected to the ZigBee wireless control chip 13 to transmit light modulation signals through it, specifically including chroma, brightness, saturation color buttons, and the lighting of the intelligent lighting equipment can be directly controlled by these buttons. properties, and of course other function keys can be added as required to be connected to the ZigBee wireless control chip 13.
所述初始化控制按键12触发后ZigBee无线控制芯片13通过控制器天线模块14向外发射初始化命令信号。After the initialization control button 12 is triggered, the ZigBee wireless control chip 13 transmits an initialization command signal to the outside through the controller antenna module 14 .
如图5和图6所示,所述智能照明装置3包含ZigBee无线模块33、LED驱动模块32和LED灯板34,其中ZigBee无线模块33和LED驱动模块32嵌在智能照明装置3的灯具底座31上,这里的灯具底座需要使用非金属材料制作或者留有一定缝隙保证内置的ZigBee无线模块33能够正常收发信号,这里LED灯板34作为光源,并设置混色灯罩35形成均匀可变的灯光。所述智能照明装置3通过LED驱动模块32连接至电源供电,所述LED驱动模块32将电源所供电压经调制后输送给ZigBee无线模块33和LED灯板34用于通电;所述ZigBee无线模块33用于接收通过ZigBee网络发送来的信号,如ZigBee无线模块33接收到ZigBee网络传输来的灯光调制信号后,ZigBee无线模块33会向LED灯板34发送PWM调制信号改变LED灯板34的照明属性。这里的智能照明网桥2和初始化控制器1均可发出灯光调制信号来控制与其处于同一网络中的智能照明装置3。As shown in Figures 5 and 6, the intelligent lighting device 3 includes a ZigBee wireless module 33, an LED driver module 32 and an LED lamp board 34, wherein the ZigBee wireless module 33 and the LED driver module 32 are embedded in the lamp base of the intelligent lighting device 3 31, the lamp base here needs to be made of non-metallic material or leave a certain gap to ensure that the built-in ZigBee wireless module 33 can send and receive signals normally. Here, the LED lamp board 34 is used as a light source, and a mixed-color lampshade 35 is set to form uniform and variable light. Described intelligent lighting device 3 is connected to power supply by LED driver module 32, and described LED driver module 32 is delivered to ZigBee wireless module 33 and LED light panel 34 after the voltage supplied by power supply is used for electrification; Said ZigBee wireless module 33 is used to receive signals sent through the ZigBee network, such as after the ZigBee wireless module 33 receives the light modulation signal transmitted by the ZigBee network, the ZigBee wireless module 33 will send a PWM modulation signal to the LED light board 34 to change the lighting of the LED light board 34 Attributes. Both the intelligent lighting bridge 2 and the initialization controller 1 here can send light modulation signals to control the intelligent lighting device 3 in the same network.
所述智能照明装置3包含非初始状态和初始状态;所述智能照明装置3若加入过ZigBee网络则处于非初始化状态,在非初始化状态下智能照明装置3通电后ZigBee无线模块33自动寻找并加入以前加入过的ZigBee网络并在ZigBee协议的控制下保持在ZigBee网络内自身网络地址不变,智能照明网桥2可向智能照明装置3传输灯光调制信号等控制智能照明装置3;所述智能照明装置3若未加入过任何ZigBee网络或者ZigBee无线模块33接收到初始化命令后则处于初始化状态;在初始化状态下,当智能照明装置3接收到入网邀请信号后即加入传输该信号的ZigBee网络;ZigBee无线模块33接收到自身所在的ZigBee网络传来的初始化命令信号后,智能照明装置3脱离原加入的ZigBee网络变为初始化状态。因智能照明网桥2可以发出初始化命令信号,初始化控制器1也可以发出初始化命令信号,故只要智能照明装置3受控于某个智能照明网桥2并或者且该智能照明网桥2发出初始化命令信号,则智能照明装置3变为初始化状态,同理只要智能照明装置3与某个初始化控制器1配对且该初始化控制器1发出初始化命令信号,则智能照明装置3变为初始化状态。The intelligent lighting device 3 includes a non-initial state and an initial state; if the intelligent lighting device 3 has joined the ZigBee network, it is in a non-initialized state. After the intelligent lighting device 3 is powered on, the ZigBee wireless module 33 automatically finds and joins in the non-initialized state. The ZigBee network that has joined in the past keeps its own network address in the ZigBee network under the control of the ZigBee protocol. The intelligent lighting bridge 2 can transmit light modulation signals to the intelligent lighting device 3 to control the intelligent lighting device 3; If the device 3 has not joined any ZigBee network or the ZigBee wireless module 33 is in the initialization state after receiving the initialization command; in the initialization state, when the intelligent lighting device 3 receives the network invitation signal, it joins the ZigBee network that transmits the signal; ZigBee After the wireless module 33 receives the initialization command signal from the ZigBee network where it is located, the intelligent lighting device 3 leaves the original ZigBee network and enters the initialization state. Since the intelligent lighting bridge 2 can send an initialization command signal, the initialization controller 1 can also send an initialization command signal, so as long as the intelligent lighting device 3 is controlled by a certain intelligent lighting bridge 2 and the intelligent lighting bridge 2 sends an initialization Command signal, the intelligent lighting device 3 becomes the initialization state, similarly as long as the intelligent lighting device 3 is paired with a certain initialization controller 1 and the initialization controller 1 sends the initialization command signal, the intelligent lighting device 3 becomes the initialization state.
无论智能照明装置3处于何种状态,当ZigBee无线模块33接收到配对邀请信号后,配对成功的智能照明装置3发出闪灯确认配对成功,智能照明装置3即加入ZigBee无线控制芯片13所举起的ZigBee网络与初始化控制器1进行配对并仅受初始化控制器1控制。即当手持这个初始化控制器1靠近某个智能照明设备3时如距离2米内,可以用相当于比智能照明网桥2更高的优先级对智能照明设备进行配对和控制。No matter what state the smart lighting device 3 is in, when the ZigBee wireless module 33 receives the pairing invitation signal, the smart lighting device 3 that has been successfully paired will send out a flashing light to confirm that the pairing is successful, and the smart lighting device 3 will be added to the ZigBee wireless control chip 13. The ZigBee network is paired with the initialization controller 1 and is only controlled by the initialization controller 1. That is, when the initialization controller 1 is held close to a smart lighting device 3 within 2 meters, the smart lighting device can be paired and controlled with a higher priority than the smart lighting bridge 2 .
如图4所示,图中有A、B、C三个智能照明装置且原先均加入了智能照明网桥2中,现在若需要重新控制其中的A智能照明装置,则需要握持初始化控制器1靠近A智能照明装置,按下配对控制按键11,配对完成后,A智能照明装置即与原先的智能照明网桥2断开,加入初始化控制器1中ZigBee无线控制芯片13所举起的ZigBee网络中并受控于初始化控制器,而此时没有和初始化控制器1配对其余两个智能照明装置仍然在原先的智能照明网桥2所举起的ZigBee网络中。As shown in Figure 4, there are three smart lighting devices A, B, and C in the figure and they were all added to the smart lighting bridge 2. Now if you need to re-control the smart lighting device A, you need to hold the initialization controller 1 Get close to the smart lighting device A, press the pairing control button 11, after the pairing is completed, the smart lighting device A is disconnected from the original smart lighting bridge 2, and joins the ZigBee wireless control chip 13 in the initialization controller 1. The network is controlled by the initialization controller, but at this time the other two intelligent lighting devices are not paired with the initialization controller 1 and are still in the ZigBee network raised by the original intelligent lighting bridge 2 .
在本发明中,针对智能照明家庭网络的实际情况,加入了初始化控制器1,它是一个高权限有复位功能的控制器,可以实现在智能照明网桥失效情况下对智能照明设备的控制。本发明装置具体工作时,根据不同的情况主要具有2个工作流程,即为本装置的控制方法,分别见图7和图8。In the present invention, aiming at the actual situation of the intelligent lighting home network, an initialization controller 1 is added, which is a controller with high authority and reset function, which can realize the control of the intelligent lighting equipment when the intelligent lighting bridge fails. When the device of the present invention works specifically, it mainly has two work processes according to different situations, which are the control methods of the device, as shown in Fig. 7 and Fig. 8 respectively.
如图7所示,为智能照明装置3加入智能照明网桥的ZigBee网络的流程图。当智能照明装置3上电后,判断其是处于初始化状态还是处于非初始化状态,若判断是处于初始化状态后则等待智能照明网桥2的邀请,进而加入发出邀请的智能照明网桥2并受控于该智能照明网桥2;若判断是处于非初始化状态,则自动寻找原先加入的智能照明网桥2,若此时能找到原先加入的智能照明网桥2则自动加入并继续受控于原智能照明网桥2,若此时无法找到原先加入的智能照明网桥2,则不断重复寻找原先的智能照明网桥2直到找到该原先加入的该智能照明网桥2。As shown in FIG. 7 , it is a flow chart of adding the smart lighting device 3 to the ZigBee network of the smart lighting bridge. After the intelligent lighting device 3 is powered on, it is judged whether it is in the initialization state or in the non-initialization state. If it is judged to be in the initialization state, it waits for the invitation of the intelligent lighting bridge 2, and then joins the inviting intelligent lighting bridge 2 and receives the invitation. Controlled by the intelligent lighting bridge 2; if it is judged to be in a non-initialized state, it will automatically search for the previously added intelligent lighting bridge 2, and if it can find the previously added intelligent lighting bridge 2 at this time, it will automatically join and continue to be controlled by If the original intelligent lighting bridge 2 cannot find the original intelligent lighting bridge 2 at this time, it will continue to search for the original intelligent lighting bridge 2 until the original intelligent lighting bridge 2 is found.
如图8所示,为智能照明装置3与初始化控制器1配对的流程图。当智能照明装置3上电后,若此时初始化控制器1未发出配对邀请,则保持原有的网络状态不变;若此时初始化控制器1发出了配对邀请,比如说原先的智能照明网桥2失效了,此时智能网桥2上的指示灯28会显示不正常,需要利用初始化控制器1来控制智能照明装置3重新选择加入新的智能照明网桥2,若发出的配对邀请在预设范围内,如2m内,则此时智能照明装置3与初始化控制器1配对成功并通过闪烁等方式给予确认。智能照明装置3断开原先的智能照明网桥2的ZigBee网络而受控于初始化控制器1,之后初始化控制器1再向智能照明装置3发出初始化命令,则智能照明装置3的将状态改变为初始化状态,之后便不再受初始化控制器控制,则转入图6中位于初始化状态的工作情形。As shown in FIG. 8 , it is a flow chart of pairing the intelligent lighting device 3 with the initialization controller 1 . When the intelligent lighting device 3 is powered on, if the initialization controller 1 does not issue a pairing invitation at this time, the original network status will remain unchanged; if the initialization controller 1 has issued a pairing invitation at this time, for example, the original intelligent lighting network Bridge 2 fails. At this time, the indicator light 28 on the smart network bridge 2 will display abnormally. It is necessary to use the initialization controller 1 to control the smart lighting device 3 to re-select to join the new smart lighting bridge 2. If the pairing invitation sent is in Within the preset range, for example, within 2m, the smart lighting device 3 is successfully paired with the initialization controller 1 at this time and confirmed by blinking. The intelligent lighting device 3 disconnects the original ZigBee network of the intelligent lighting bridge 2 and is controlled by the initialization controller 1, and then the initialization controller 1 sends an initialization command to the intelligent lighting device 3, then the state of the intelligent lighting device 3 is changed to In the initialization state, after that, it is no longer controlled by the initialization controller, and then it turns to the working situation in the initialization state in Fig. 6 .
以上所述仅是本发明的优选实施方式,应当指出:对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications are also possible. It should be regarded as the protection scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410065432.0A CN103781259B (en) | 2014-02-26 | 2014-02-26 | A kind of wireless lighting control system and Intelligent lightening device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410065432.0A CN103781259B (en) | 2014-02-26 | 2014-02-26 | A kind of wireless lighting control system and Intelligent lightening device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103781259A CN103781259A (en) | 2014-05-07 |
CN103781259B true CN103781259B (en) | 2016-09-14 |
Family
ID=50572927
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410065432.0A Active CN103781259B (en) | 2014-02-26 | 2014-02-26 | A kind of wireless lighting control system and Intelligent lightening device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103781259B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107432071B (en) * | 2015-03-17 | 2019-12-03 | 飞利浦灯具控股公司 | Lighting mains |
CN106656685A (en) * | 2015-11-01 | 2017-05-10 | 朱星曈 | Internet-of-things coupler |
CN108432346A (en) * | 2015-12-04 | 2018-08-21 | 飞利浦照明控股有限公司 | Debugging device and method for debugging new device into system |
CN108184221B (en) * | 2017-12-26 | 2021-03-23 | 温州力沃电器有限公司 | Composite exchange method for zigbee node control data |
CN111742610B (en) * | 2018-02-12 | 2024-07-09 | 昕诺飞控股有限公司 | Debugging method and lamp equipment using controlled joining mode |
US11496932B2 (en) * | 2018-03-05 | 2022-11-08 | Signify Holding B.V. | Beacon-based handover option for commissioning and control of wireless network devices |
CN109151207A (en) * | 2018-09-20 | 2019-01-04 | 深圳中泰智丰物联网科技有限公司 | A kind of smart lock method of network entry based on Zigbee |
CN111610724B (en) * | 2020-07-10 | 2024-01-09 | 广州博冠智能科技有限公司 | Smart home smart device control method, device, equipment and storage medium |
CN112002117A (en) * | 2020-08-28 | 2020-11-27 | 江苏徐工信息技术股份有限公司 | Fire fighting truck water monitor control system and method based on ZigBee frequency hopping spread spectrum technology |
Citations (5)
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 |
CN101662868A (en) * | 2009-09-24 | 2010-03-03 | 北京诺和远东科技有限公司 | Wireless intelligent light control system |
US20100060181A1 (en) * | 2008-09-05 | 2010-03-11 | Seoul Semiconductor Co., Ltd. | Ac led dimmer and dimming method thereby |
CN201766739U (en) * | 2009-12-28 | 2011-03-16 | 天津工业大学 | Smart home LED lighting system based on ZigBee and ARM technology |
WO2013007787A1 (en) * | 2011-07-14 | 2013-01-17 | Softkinetic Sensors Nv | Driver circuit for leds for time-of-flight calculation |
-
2014
- 2014-02-26 CN CN201410065432.0A patent/CN103781259B/en active Active
Patent Citations (5)
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 |
US20100060181A1 (en) * | 2008-09-05 | 2010-03-11 | Seoul Semiconductor Co., Ltd. | Ac led dimmer and dimming method thereby |
CN101662868A (en) * | 2009-09-24 | 2010-03-03 | 北京诺和远东科技有限公司 | Wireless intelligent light control system |
CN201766739U (en) * | 2009-12-28 | 2011-03-16 | 天津工业大学 | Smart home LED lighting system based on ZigBee and ARM technology |
WO2013007787A1 (en) * | 2011-07-14 | 2013-01-17 | Softkinetic Sensors Nv | Driver circuit for leds for time-of-flight calculation |
Also Published As
Publication number | Publication date |
---|---|
CN103781259A (en) | 2014-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103781259B (en) | A kind of wireless lighting control system and Intelligent lightening device | |
US11521482B2 (en) | Network access coordination of load control devices | |
US12368791B2 (en) | Multiple network access load control devices | |
US11690157B2 (en) | Commissioning and controlling load control devices | |
CN106465514A (en) | Wireless and power line light pairing dimming and control | |
US12048058B2 (en) | Automatic adjustment of a discovery range for discovering wireless control devices | |
WO2016138808A1 (en) | Method and system for switching bluetooth connection | |
CN106900130A (en) | A kind of DALI systems expanding unit and DALI system extended methods based on Bluetooth communication | |
EP3817514A1 (en) | Wireless lighting control system with automatic emergency mode exit network protocol | |
CN104320877A (en) | Smart LED Control Terminal | |
CN104981081A (en) | Wireless light control system and control method of the wireless light control system | |
CN108093541A (en) | Lighting device control system | |
CN205356758U (en) | DALI and WiFi integrated wireless LED lamps | |
CN221329181U (en) | Constant-illumination indoor illumination control system based on Bluetooth Mesh ad hoc network | |
CN106385749A (en) | Ad-hoc network wireless lighting control system | |
CN105554949B (en) | L ED system based on wireless radio frequency module application and dimming method | |
CN107861484A (en) | A kind of intelligent household management system and illuminator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |