The wireless lighting brightness controlling device of network enabled Long-distance Control and method
Technical field
The present invention relates to lighting control technology field, especially utilize the light regulation technology of short-distance wireless communication means, be specifically related to a kind of wireless lighting brightness controlling device and method of network enabled Long-distance Control.
Background technology
In lighting control technology, some research using less radio-frequency and general purpose network protocol (as TCP/IP) to control and method are there is in recent years, such as, application number is 200710177536.0, denomination of invention is " regulate the method for lamplight brightness, system, control end and lamp holder end " Chinese patent, propose a kind of method regulating lamplight brightness, system, control end and lamp holder end, be applied to the system comprising control end and lamp holder end, its control command can use ICP/IP protocol to be sent to lamp holder end from control end by local area network (LAN), but its basic control system uses wired network components to build, lamp holder end adds holding net mounting due to needs, its lower deployment cost and volume are all relatively large.And for example application number is 01107531.7, name is called the Chinese patent of " network radio remote light controller and communicating control method thereof ", disclose a kind of network radio remote light controller and communicating control method thereof, light receiving system by power circuit, Ethernet control circuit, main control microprocessor circuit, light adjusting circuit, remote-control receiving circuit by power line and separately holding wire be electrically connected mutually and form, unit or house light can be controlled by network data transmission, realize intelligent control and control; This patent devises Digiplex simultaneously, can be used for sending data to signal light control receiving circuit, realize signal light control, but the receiving system of its actual use Ethernet control circuit is still wireline mode, Digiplex belongs to traditional proprietary radio frequency control protocol method, the ICP/IP protocol that can not use in internet compatible, its control range is limited to the transmitting range of its wireless remote controller, automatically hierarchical network can not be formed, carry out system extension, and can not avoid disposing the costs such as netting twine based on the control method of wired ethernet, the system expandability is not high.
In prior art, there is the defects such as difficulty of construction is large, controllable lamp number is limited, control range is little, system shortage extensibility in the lighting control system in units of family, venue, square etc., the present invention considers that current lamplight brightness controls the mode that many employings have single lamp single control such as line traffic control or infrared remote control, its objective is the wireless lighting brightness controlling device and method that provide a kind of network enabled Long-distance Control.
According to an aspect of the present invention, provide a kind of wireless lighting brightness controlling device of network enabled Long-distance Control, comprise system main-control device, lamp dimmer and the remote control module based on intelligent terminal, wherein:
Described system main-control device, comprise master control end central data processing unit and master control end power control unit, also comprise the WIFI radio frequency unit, master control end Zigbee radio frequency unit, Ethernet unit, master control end central data storage unit, display unit, the button control unit that are connected with described master control end central data processing unit, wherein: described WIFI radio frequency unit and Ethernet unit are used for from the described control message of remote control module receiving target lamp control device based on intelligent terminal and the control message of target lamp; Described master control end Zigbee radio frequency unit is used for the control message sending described target lamp with broadcast mode to described Light Control Unit, and receives the back message sent from described Light Control Unit; Described master control end power control unit is used for providing power supply for the unit in described system main-control device;
Described Light Control Unit, comprise light end central data processing unit and light end power control unit, also comprise the lamplight brightness regulon, light end central data storage unit and the light end Zigbee radio frequency unit that are connected with described light end central data processing unit, wherein: described light end Zigbee radio frequency unit receives the control message of the described target lamp sent from described system main-control device, and sends described back message to described system main-control device; Described lamplight brightness regulon is for controlling the brightness of lamp; Described light end power control unit is used for providing power supply for the unit in described Light Control Unit.
Preferably, the quantity of described Light Control Unit is multiple, wherein:
After non-targeted Light Control Unit receives the control message of described target lamp control device and the control message of target lamp, extract the sequence of message number controlling message, if this sequence of message number can be inquired in local cache district, do not broadcast the control message of described target lamp control device and the control message of target lamp, if search less than this sequence of message number in local cache district, broadcast the control message of described target lamp control device and the control message of target lamp and this sequence of message number is entered into local cache district;
After target lamp light control device receives the control message of described target lamp control device and the control message of target lamp, extract the sequence of message number controlling message, if this sequence of message number can be inquired in local cache district, do not respond, if search less than this sequence of message number in local cache district, send back message and this sequence of message number is entered into local cache district.
Preferably, the control message of described target lamp is setting type message, and described setting type message comprises brightness value, and described Light Control Unit extracts described brightness value from the control message of described target lamp, and according to described brightness value independent start line process control lamp.
Preferably, the control message of described target lamp is scheme type message, described scheme type message comprises light and regulates information, described light regulates information to comprise scheme duration, cycle-index, word circulation hop count, segmentation brightness array and split time array, described Light Control Unit extracts described light and regulates information from the control message of described target lamp, and regulates information to start separately thread according to described light to carry out the parsing of program type message and final formation a set ofly can reflect that the executable command of scheme control logic removes control objectives lamp.
Preferably, described host computer comprises smart machine and/or computer, and described host computer sends the control message of described target lamp control device and the control message of target lamp in TCP/IP mode to described system main-control device by the Internet and/or local area network (LAN); Described host computer is after transmission controls message, according to the state of target lamp standing state target of prediction lamp after receiving this control message that this locality stores, feedback result if predict the outcome and in target light controller institute back message is inconsistent, then resend control message.
According to another aspect of the present invention, a kind of wireless lighting brightness control method of network enabled Long-distance Control is provided, comprises the steps:
Step 1: deployment system master control device and Light Control Unit;
Step 2: by described system main-control device with WIFI or ethernet communication mode the control message from host computer receiving target lamp control device and the control message of target lamp, then utilize described system main-control device to broadcast the control message of described target lamp to described Light Control Unit in Zigbee communication mode according to the control message of described control device;
Step 3: target lamp light control device receives the control message of the described target lamp sent from described system main-control device, and sends described back message in Zigbee communication mode to described system main-control device;
Step 4: described system main-control device receives described back message, and with WIFI communication mode or Ethernet mode, described back message is sent to described host computer;
Step 5: described host computer determines whether to resend the control message of described target lamp control device and the control message of target lamp according to described back message.
Preferably, the quantity of described Light Control Unit is multiple, and described system main-control device forwards the control message of described target lamp control device and the control message of target lamp by non-targeted Light Control Unit to target lamp light control device, wherein:
After non-targeted Light Control Unit receives the control message of described target lamp control device and the control message of target lamp, extract the sequence of message number controlling message, if this sequence of message number can be inquired in local cache district, do not broadcast the control message of described target lamp control device and the control message of target lamp, if search less than this sequence of message number in local cache district, broadcast the control message of described target lamp control device and the control message of target lamp and this sequence of message number is entered into local cache district;
After target lamp light control device receives the control message of described target lamp control device and the control message of target lamp, extract the sequence of message number controlling message, if this sequence of message number can be inquired in local cache district, do not respond, if search less than this sequence of message number in local cache district, send back message and this sequence of message number is entered into local cache district.
Preferably, the control message of described target lamp is setting type message, and described setting type message comprises brightness value, and described Light Control Unit extracts described brightness value from the control message of described target lamp, and according to described brightness value independent start line process control lamp.
Preferably, the control message of described target lamp is scheme type message, described scheme type message comprises light and regulates information, described light regulates information to comprise scheme duration, cycle-index, word circulation hop count, segmentation brightness array and split time array, described Light Control Unit extracts described light and regulates information from the control message of described target lamp, and regulates information to start separately thread according to described light to carry out the parsing of program type message and final formation a set ofly can reflect that the executable command of scheme control logic removes control objectives lamp.
Preferably, described host computer comprises smart machine and/or computer, and described host computer sends the control message of described target lamp control device and the control message of target lamp in TCP/IP mode to described system main-control device by the Internet and/or local area network (LAN); If predicting the outcome of described host computer is inconsistent with the feedback result of back message, then resend control message.
Wherein, the described remote control module based on intelligent terminal can be preferably that the intelligence such as computer or smart mobile phone can networked devices.
Compared with prior art, the present invention has following beneficial effect:
1. the present invention uses controlled silicon chip and MCU process chip to construct and can realize the light brightness regulating apparatus that accurate digitlization lamplight brightness sets and digitlization regulates continuously.
2. the lamplight modulation system constructed by the present invention, adopt total control equipment to add the system configuration of multilayer light control device, light controller has the function of brilliance control and control data message repeating simultaneously.Therefore, the system expandability is strong, and the control command that total control equipment sends does not limit by the transmitting range of wireless radio frequency modules, can carry out " relay-type " and control message transmission.
3. system tries out the pattern of WIFI and Zigbee mixed networking, by total control equipment access to LAN or the Internet, achieves other computers or smart machine carries out remote control function by standard ICP/IP protocol.And light controller is to adopting Zigbee radio communication pattern, without the need to supporting Ethernet or WIFI network, just can carry out normal network remote control by total control equipment, its energy consumption is little, and cost is low, and is easy to dispose installation.
4. control command method provided by the invention, containing single setting type and scheme type periodic Control two type.For the periodicity demand for control of complexity, scheme type control command can in single packet the basic logic demand in lighting tube brightness transformation period and brightness value of expressed intact rhythmic light brightness adjustment scheme, send and realize complicated periodicity without the need to carrying out continual single control command as the remote equipment in traditional mode and control to renew, this technical advantage significantly decreases data traffic volume in remote control process and network data transmission packet loss is the inaccuracy that signal light control brings.
5. the invention provides total control equipment to light controller, with remote computer or smart machine to the control method of total control equipment, all have employed the command execution confirmation method of prediction-feedback contrast, namely order transmitting terminal is while transmission control data message, the state of target controlled device and target lamp and brightness are predicted, and after target controlled device receives control command and performs, this controlled plant uses and controls feedback message reports self state and target lamp brightness to remote control terminal, inconsistent with feedback result if predict the outcome, then resend control message, ensure the correctness of remote wireless control.
Summary of the invention
Accompanying drawing explanation
By reading the detailed description done non-limiting example with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 is system configuration principle schematic of the present invention;
Fig. 2 is the structural representation of Light Control Unit in the wireless lighting brightness controlling device according to network enabled Long-distance Control provided by the invention;
Fig. 3 is the structural representation of system main-control device in the wireless lighting brightness controlling device according to network enabled Long-distance Control provided by the invention;
Fig. 4 is the method flow diagram of Light Control Unit automatic networking in the present invention;
Fig. 5 is the flow chart that in the wireless lighting brightness control method according to network enabled Long-distance Control provided by the invention, system main-control device is controlled Light Control Unit by Zigbee wireless link;
Fig. 6 is the form schematic diagram of setting type message;
Fig. 7 is the form schematic diagram of scheme type message;
Fig. 8 is the parsing of Light Control Unit to lamplight brightness adjusting command and the flow chart of execution in the wireless lighting brightness control method according to network enabled Long-distance Control provided by the invention;
Fig. 9 be in the wireless lighting brightness control method according to network enabled Long-distance Control provided by the invention Light Control Unit to the flow chart of the execution of scheme type message;
Figure 10 be in the wireless lighting brightness control method according to network enabled Long-distance Control provided by the invention Light Control Unit to the flow chart of the execution of setting type message;
Figure 11 is the overview flow chart of the wireless lighting brightness control method according to network enabled Long-distance Control provided by the invention.
In figure:
10 is system main-control device,
101 is light end central data storage unit,
102 is light end Zigbee radio frequency unit,
103 is light end central data processing unit,
104 is light end power control unit,
105 is lamplight brightness regulon,
20 is system main-control device,
201 is master control end central data storage unit,
202 is master control end central data processing unit,
203 is master control end power control unit,
204 is WIFI radio frequency unit,
205 is master control end Zigbee radio frequency unit,
206 is Ethernet unit,
207 is button control unit,
208 is display unit,
32 is wireless router,
33 is system Intranet intelligent terminal,
34 is system inner net computer,
41 is remote computer,
42 is remote intelligent terminal.
Embodiment
Below in conjunction with specific embodiment, the present invention is described in detail.Following examples will contribute to those skilled in the art and understand the present invention further, but not limit the present invention in any form.It should be pointed out that to those skilled in the art, without departing from the inventive concept of the premise, some distortion and improvement can also be made.These all belong to protection scope of the present invention.
The invention provides the wireless lighting brightness single-lamp controller based on discrete digitized adjustment and wireless many lamps master control device, adopt the mode of WIFI and Zigbee mixed communication, there is provided by the long-range method of carrying out lamplight brightness control of LAN and internet, the advantage of the wireless lighting tube brightness control system that the present invention builds comprises: single lamp brightness can discrete digitizedly regulate, and can support brightness exact numerical, number range and programmable scheme three kinds of regulative modes; Controlled single lamp number is unrestricted; Control range can level be expanded; Cost of deploying to ensure effective monitoring and control of illegal activities is little; Hold the advantages such as network remote control, manipulated by the Internet by computer or mobile phone etc.
As shown in Figure 1, the wireless lighting brightness controlling device of the network enabled Long-distance Control provided according to a first embodiment of the present invention, comprises system main-control device and lamp dimmer.The quantity of described Light Control Unit is multiple, wherein: after non-targeted Light Control Unit receives the control message of described target lamp control device and the control message of target lamp, extract the sequence of message number controlling message, if this sequence of message number can be inquired in local cache district, do not broadcast the control message of described target lamp control device and the control message of target lamp, if search less than this sequence of message number in local cache district, broadcast the control message of described target lamp control device and the control message of target lamp and this sequence of message number is entered into local cache district, after target lamp light control device receives the control message of described target lamp control device and the control message of target lamp, extract the sequence of message number controlling message, if this sequence of message number can be inquired in local cache district, do not respond, if search less than this sequence of message number in local cache district, send back message and this sequence of message number is entered into local cache district.
Further, described host computer comprises smart machine (mobile phone, PDA etc.) and/or computer, and described host computer sends the control message of described target lamp control device and the control message of target lamp in TCP/IP mode to described system main-control device by the Internet and/or local area network (LAN); If predicting the outcome of described host computer is inconsistent with the feedback result of back message, then resend control message.
More specifically, as shown in Figure 2, described Light Control Unit, comprise light end central data processing unit and light end power control unit, also comprise the lamplight brightness regulon, light end central data storage unit and the light end Zigbee radio frequency unit that are connected with described light end central data processing unit, wherein: described light end Zigbee radio frequency unit receives the control message of the described target lamp sent from described system main-control device, and sends described back message to described system main-control device; Described lamplight brightness regulon is for controlling the brightness of lamp; Described light end power control unit is used for providing power supply for the unit in described Light Control Unit.
As shown in Figure 3, described system main-control device, comprise master control end central data processing unit and master control end power control unit, also comprise the WIFI radio frequency unit, master control end Zigbee radio frequency unit, Ethernet unit, master control end central data storage unit, display unit, the button control unit that are connected with described master control end central data processing unit, wherein: described WIFI radio frequency unit is used for from the control message of host computer receiving target lamp control device and the control message of target lamp; Described master control end Zigbee radio frequency unit is used for the control message sending described target lamp with broadcast mode to described Light Control Unit, and receives the back message sent from described Light Control Unit; Described master control end power control unit is used for providing power supply for the unit in described system main-control device.
In a preference of the present embodiment, the control message of described target lamp is setting type message, described setting type message comprises brightness value, and described Light Control Unit extracts described brightness value from the control message of described target lamp, and according to described brightness value independent start line process control lamp.
In another preference of the present embodiment, the control message of described target lamp is scheme type message, described scheme type message comprises light and regulates information, described light regulates information to comprise scheme duration, cycle-index, word circulation hop count, segmentation brightness array and split time array, described Light Control Unit extracts described light and regulates information from the control message of described target lamp, and regulates information independent start line process control lamp according to described light.
As shown in figure 11, the wireless lighting brightness control method of the network enabled Long-distance Control provided according to a second embodiment of the present invention, comprises the steps:
Step 1: deployment system master control device and Light Control Unit;
Step 2: by described system main-control device with the control message of WIFI communication mode from host computer receiving target lamp control device and the control message of target lamp, then utilizes described system main-control device to broadcast the control message of described target lamp to described Light Control Unit in Zigbee communication mode according to the control message of described control device;
Step 3: target lamp light control device receives the control message of the described target lamp sent from described system main-control device, and sends described back message in Zigbee communication mode to described system main-control device;
Step 4: described system main-control device receives described back message, and with WIFI communication mode, described back message is sent to described host computer;
Step 5: described host computer determines whether to resend the control message of described target lamp control device and the control message of target lamp according to described back message.
Further, described host computer comprises smart machine and/or computer, and described host computer sends the control message of described target lamp control device and the control message of target lamp in TCP/IP mode to described system main-control device by the Internet and/or local area network (LAN); If predicting the outcome of described host computer is inconsistent with the feedback result of back message, then resend control message.
More specifically, the quantity of described Light Control Unit is multiple, described system main-control device sends the control message of described target lamp control device and the control message of target lamp by non-targeted Light Control Unit to target lamp light control device, wherein: after non-targeted Light Control Unit receives the control message of described target lamp control device and the control message of target lamp, extract the sequence of message number controlling message, if this sequence of message number can be inquired in local cache district, do not broadcast the control message of described target lamp control device and the control message of target lamp, if search less than this sequence of message number in local cache district, broadcast the control message of described target lamp control device and the control message of target lamp and this sequence of message number is entered into local cache district, after target lamp light control device receives the control message of described target lamp control device and the control message of target lamp, extract the sequence of message number controlling message, if this sequence of message number can be inquired in local cache district, do not respond, if search less than this sequence of message number in local cache district, send back message and this sequence of message number is entered into local cache district.
In a preference of the present embodiment, the control message of described target lamp is setting type message, described setting type message comprises brightness value, and described Light Control Unit extracts described brightness value from the control message of described target lamp, and according to described brightness value independent start line process control lamp.
In another preference of the present embodiment, the control message of described target lamp is scheme type message, described scheme type message comprises light and regulates information, described light regulates information to comprise scheme duration, cycle-index, word circulation hop count, segmentation brightness array and split time array, described Light Control Unit extracts described light and regulates information from the control message of described target lamp, and regulates information independent start line process control lamp according to described light.
Above specific embodiments of the invention are described.It is to be appreciated that the present invention is not limited to above-mentioned particular implementation, those skilled in the art can make various distortion or amendment within the scope of the claims, and this does not affect flesh and blood of the present invention.