Wireless lighting brightness controlling device and the method for network enabled Long-distance Control
Technical field
The present invention relates to the 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
Aspect lighting control technology, some occur in recent years and used research and the method for less radio-frequency and universal network agreement (such as TCP/IP) control, for example, application number is 200710177536.0, denomination of invention is the Chinese patent of " regulating the method for lamplight brightness; system; control end and lamp holder end ", a kind of method of regulating lamplight brightness has been proposed, system, control end and lamp holder end, be applied to comprise the system of control end and lamp holder end, its control command can use ICP/IP protocol to send to lamp holder end from control end by local area network (LAN), but its basic control system is used the cable network component construction, lamp holder end is owing to need to add holding net mounting, and 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 ", a kind of network radio remote light controller and communicating control method thereof are disclosed, the 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 consist of, can be by the network data transmission unit of control or dwelling house light, realize intelligent control control; This patent has designed Digiplex simultaneously, can be used for sending data to light control receiving circuit, the control of realization light, but the receiving system of its actual use Ethernet control circuit is still for there being ray mode, Digiplex belongs to traditional proprietary radio frequency control protocol method, the ICP/IP protocol of using in can not compatible internet, its control range is subject to the transmitting range of its wireless remote controller, can not automatically form the level network, 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.
Summary of the invention
In the prior art, there are the defectives such as difficulty of construction is large, the controllable lamp number is limited, control range is little, system's shortage extensibility in lighting control system take family, venue, square etc. as unit, the present invention considers the present lamplight brightness control modes that single lamp single controls such as line traffic control or infrared remote control are arranged that adopt more, and a kind of wireless lighting of network enabled Long-distance Control brightness controlling device and the method for providing is provided.
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 based on the remote control module of 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 store 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 control message of described 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 sending to described Light Control Unit with broadcast mode the control message of described target lamp, and receives the back message using that sends from described Light Control Unit; Described master control end power control unit is used to the unit in the described system main-control device that power supply is provided;
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 store 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 that sends from described system main-control device, and sends described back message using to described system main-control device; Described lamplight brightness regulon is used for the brightness of control lamp; Described light end power control unit is used to the unit in the described Light Control Unit that power supply is provided.
Preferably, the quantity of described Light Control Unit is a plurality of, wherein:
After non-target lamp light control device receives the control message of the control message of described target lamp control device and target lamp, extract the sequence of message number of control message, number then do not broadcast the control message of described target lamp control device and the control message of target lamp if can inquire in the local cache district this sequence of message, number then broadcast the control message of the control message of described target lamp control device and target lamp and this sequence of message number is entered into the local cache district if search in the local cache district less than this sequence of message;
After the target lamp light control device receives the control message of the control message of described target lamp control device and target lamp, extract the sequence of message number of control message, number then do not respond if can inquire in the local cache district this sequence of message, number then send back message using and this sequence of message number is entered into the local cache district if search in the local cache district less than this sequence of message.
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 starts separately the Thread control lamp according to described brightness value.
Preferably, the control message of described target lamp is scheme type message, described scheme type message comprises light adjusting information, described light adjusting information comprises 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 starts separately parsing and the final cover that forms that thread carries out this scheme type message according to the described light information of regulating and can reflect that the executable command of scheme control logic removes to control target 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 the TCP/IP mode to described system main-control device by the Internet and/or local area network (LAN); Described host computer is after sending the control message, the state of target lamp standing state target of prediction lamp after receiving this control message according to this locality storage, if predict the outcome and target light controller institute back message using in feedback result inconsistent, then resend the control message.
According to another aspect of the present invention, provide a kind of wireless lighting brightness control method of network enabled Long-distance Control, comprise 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 from the control message of 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 with the Zigbee communication mode according to the control message of described control device;
Step 3: the target lamp light control device receives the control message of the described target lamp that sends from described system main-control device, and sends described back message using with the Zigbee communication mode to described system main-control device;
Step 4: described system main-control device receives described back message using, and with WIFI communication mode or Ethernet mode described back message using 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 using.
Preferably, the quantity of described Light Control Unit is a plurality of, and described system main-control device is transmitted the control message of described target lamp control device and the control message of target lamp by non-target lamp light control device to the target lamp light control device, wherein:
After non-target lamp light control device receives the control message of the control message of described target lamp control device and target lamp, extract the sequence of message number of control message, number then do not broadcast the control message of described target lamp control device and the control message of target lamp if can inquire in the local cache district this sequence of message, number then broadcast the control message of the control message of described target lamp control device and target lamp and this sequence of message number is entered into the local cache district if search in the local cache district less than this sequence of message;
After the target lamp light control device receives the control message of the control message of described target lamp control device and target lamp, extract the sequence of message number of control message, number then do not respond if can inquire in the local cache district this sequence of message, number then send back message using and this sequence of message number is entered into the local cache district if search in the local cache district less than this sequence of message.
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 starts separately the Thread control lamp according to described brightness value.
Preferably, the control message of described target lamp is scheme type message, described scheme type message comprises light adjusting information, described light adjusting information comprises 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 starts separately parsing and the final cover that forms that thread carries out this scheme type message according to the described light information of regulating and can reflect that the executable command of scheme control logic removes to control target 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 the 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 using, then resend the control message.
Wherein, but described remote control module based on intelligent terminal preferably can be the intelligence networked devices such as computer or smart mobile phone.
Compared with prior art, the present invention has following beneficial effect:
1. the present invention uses controlled silicon chip and MCU process chip to make up and can realize the light brightness regulating apparatus that accurate digitlization lamplight brightness is set and digitlization is regulated continuously.
2. the constructed light modulating system of the present invention adopts total control equipment to add the system configuration of multilayer light control device, and light controller has the function of brilliance control and control data message forwarding simultaneously.Therefore, the system expandability is strong, and the control command that total control equipment sends is not limited by the transmitting range of wireless radio frequency modules, can carry out the transmission of " relay-type " control message.
3. the pattern of the WIFI on probation of system and Zigbee mixed networking in total control equipment access to LAN or the Internet, has realized that other computers or smart machine carry out remote control function by the standard ICP/IP protocol.And light controller need not to support Ethernet or WIFI network to adopting Zigbee radio communication pattern, just can carry out normal network remote control by total control equipment, and its energy consumption is little, and cost is low, and is easy to dispose installation.
4. control command method provided by the invention contains two types of single setting type and scheme type periodic Control.Periodicity demand for control for complexity, scheme type control command can be in single packet the basic logic demand aspect lighting tube brightness transformation period and brightness value of expressed intact rhythmic light brightness adjustment scheme, need not to carry out the instruction processed of continual single control as the remote equipment in the traditional mode and send and realize that complicated periodicity control renews, it is the inaccuracy of light control tape that this technical advantage has significantly reduced data traffic volume and the network data transmission packet loss in the remote control process.
5. the invention provides total control equipment to light controller, with remote computer or the smart machine control method to total control equipment, all adopted the command execution confirmation method of prediction-feedback contrast, namely order transmitting terminal when sending the control data message, state and brightness to target controlled device and target lamp are predicted, and after the target controlled device is received control command and carried out, this controlled plant uses control feedback message to state and the target lamp brightness of remote control terminal report self, inconsistent with feedback result if predict the outcome, then resend the control message, guarantee the correctness of remote wireless control.
Description of drawings
By reading the detailed description of non-limiting example being done with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 is system configuration principle schematic of the present invention;
Fig. 2 is the structural representation according to Light Control Unit in the wireless lighting brightness controlling device of network enabled Long-distance Control provided by the invention;
Fig. 3 is the structural representation according to system main-control device in the wireless lighting brightness controlling device of network enabled Long-distance Control provided by the invention;
Fig. 4 is the method flow diagram of Light Control Unit automatic networking among the present invention;
The flow chart of Fig. 5 for Light Control Unit being controlled by the Zigbee Radio Link according to system main-control device in the wireless lighting brightness control method of network enabled Long-distance Control provided by the invention;
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 to the flow chart of parsing and the execution of lamplight brightness adjusting command according to Light Control Unit in the wireless lighting brightness control method of network enabled Long-distance Control provided by the invention;
Fig. 9 is to the flow chart of the execution of scheme type message according to Light Control Unit in the wireless lighting brightness control method of network enabled Long-distance Control provided by the invention;
Figure 10 is to the flow chart of the execution of setting type message according to Light Control Unit in the wireless lighting brightness control method of network enabled Long-distance Control provided by the invention;
Figure 11 is the overview flow chart according to the wireless lighting brightness control method of network enabled Long-distance Control provided by the invention.
Among the figure:
10 is the system main-control device,
101 is light end central data store 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 the lamplight brightness regulon,
20 is the system main-control device,
201 is master control end central data store unit,
202 is master control end central data processing unit,
203 is master control end power control unit,
204 is the WIFI radio frequency unit,
205 is master control end Zigbee radio frequency unit,
206 is the Ethernet unit,
207 are the button control unit,
208 is display unit,
32 is wireless router,
33 is system's Intranet intelligent terminal,
34 is system's inner net computer,
41 is remote computer,
42 is remote intelligent terminal.
Embodiment
The present invention is described in detail below in conjunction with specific embodiment.Following examples will help those skilled in the art further to understand the present invention, but not limit in any form the present invention.Should be pointed out that to those skilled in the art, without departing from the inventive concept of the premise, can also make some distortion and improvement.These all belong to protection scope of the present invention.
The invention provides wireless lighting brightness single-lamp controller and wireless many lamps master control device based on the discrete digital adjusting, adopt the mode of WIFI and Zigbee mixed communication, provide 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 makes up comprises: but the adjusting of single lamp brightness discrete digital can be supported the accurate numerical value of brightness, number range and three kinds of regulative modes of programmable scheme; Controlled single lamp number is unrestricted; But control range level expansion; The cost of deploying to ensure effective monitoring and control of illegal activities is little; Hold the advantages such as network remote control, can control 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 that provides according to first embodiment of the invention comprises system main-control device and lamp dimmer.The quantity of described Light Control Unit is a plurality of, wherein: after non-target lamp light control device receives the control message of the control message of described target lamp control device and target lamp, extract the sequence of message number of control message, number then do not broadcast the control message of described target lamp control device and the control message of target lamp if can inquire in the local cache district this sequence of message, number then broadcast the control message of the control message of described target lamp control device and target lamp and this sequence of message number is entered into the local cache district if search in the local cache district less than this sequence of message; After the target lamp light control device receives the control message of the control message of described target lamp control device and target lamp, extract the sequence of message number of control message, number then do not respond if can inquire in the local cache district this sequence of message, number then send back message using and this sequence of message number is entered into the local cache district if search in the local cache district less than this sequence of message.
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 the 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 using, then resend the 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 store 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 that sends from described system main-control device, and sends described back message using to described system main-control device; Described lamplight brightness regulon is used for the brightness of control lamp; Described light end power control unit is used to the unit in the described Light Control Unit that power supply is provided.
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 store 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 sending to described Light Control Unit with broadcast mode the control message of described target lamp, and receives the back message using that sends from described Light Control Unit; Described master control end power control unit is used to the unit in the described system main-control device that power supply is provided.
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 starts separately the Thread control lamp according to described brightness value.
In another preference of the present embodiment, the control message of described target lamp is scheme type message, described scheme type message comprises light adjusting information, described light adjusting information comprises 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 starts separately the Thread control lamp according to the described light information of regulating.
As shown in figure 11, the wireless lighting brightness control method of the network enabled Long-distance Control that provides according to second embodiment of the 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 WIFI communication mode from the control message of 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 with the Zigbee communication mode according to the control message of described control device;
Step 3: the target lamp light control device receives the control message of the described target lamp that sends from described system main-control device, and sends described back message using with the Zigbee communication mode to described system main-control device;
Step 4: described system main-control device receives described back message using, and with the WIFI communication mode described back message using 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 using.
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 the 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 using, then resend the control message.
More specifically, the quantity of described Light Control Unit is a plurality of, described system main-control device sends the control message of described target lamp control device and the control message of target lamp by non-target lamp light control device to the target lamp light control device, wherein: after non-target lamp light control device receives the control message of the control message of described target lamp control device and target lamp, extract the sequence of message number of control message, number then do not broadcast the control message of described target lamp control device and the control message of target lamp if can inquire in the local cache district this sequence of message, number then broadcast the control message of the control message of described target lamp control device and target lamp and this sequence of message number is entered into the local cache district if search in the local cache district less than this sequence of message; After the target lamp light control device receives the control message of the control message of described target lamp control device and target lamp, extract the sequence of message number of control message, number then do not respond if can inquire in the local cache district this sequence of message, number then send back message using and this sequence of message number is entered into the local cache district if search in the local cache district less than this sequence of message.
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 starts separately the Thread control lamp according to described brightness value.
In another preference of the present embodiment, the control message of described target lamp is scheme type message, described scheme type message comprises light adjusting information, described light adjusting information comprises 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 starts separately the Thread control lamp according to the described light information of regulating.
Above specific embodiments of the invention are described.It will be appreciated that, the present invention is not limited to above-mentioned specific implementations, and those skilled in the art can make various distortion or modification within the scope of the claims, and this does not affect flesh and blood of the present invention.