Summary of the invention
The technical problem to be solved in the present invention provides a kind of quick method to set up of intelligent lighting control script, utilize this set method, can be easily and flexibly the control program of that preset or personalized sight light be set in the sight lighting system and goes, make this set method to be accepted by domestic consumer and to use, the intelligent scene lighting system of She Zhiing by this method, can be taken into account with the multiple different sight demand of lighting system user according to the lighting system installation environment, be realized arbitrary light on and off light control and color light photocontrol based on sight.
The above-mentioned technical problem of the present invention is to realize like this, construct a kind of intelligent lighting system control program method to set up, described system comprises and the unit is set or/and main control unit, performance element and operating unit, the described unit that is provided with can be included in the main control unit, it also can be device based on microprocessor with the main control unit data communication, described performance element is one or more luminescent devices, described operating unit comprises push-button unit and sensing unit, it is characterized in that, by being set, the unit carries out following steps: a) Auto-Sensing: to the performance element in the current system, operating unit carries out Auto-Sensing, the detecting step comprises, starts hardware wizard; Connect communication port; The system that is provided with covers the room relevant information; Send the order of Request System ID to main control unit; Obtain system identifier from main control unit; Send request hardware cell information by main control unit; Need to obtain the hardware cell information of login; B) distribute identifying information: quantity, parameter and spatial configuration to each unit of detecting are confirmed, and are distributed identifying information; C) contextual model is determined in man-machine interaction: set up the sight table; The light source of sight and the parameter value of control port thereof are formed in configuration; Whether the test sight is satisfied with; Reconfigure and test as dissatisfied; If satisfied, then determine whether to set up new sight table; D) Control Parameter setting: the contextual model according to selected, carry out the Control Parameter setting to each performance element in the current system configuration or operating unit; E) storage and communications of control data: with the operating unit that sets or the identifying information and the Control Parameter thereof of performance element, store into the unit is set in, be sent to each performance element and main control unit in wireless or wired mode.
Above-mentioned according to method to set up of the present invention in, described distribution identifying information may further comprise the steps: information gathering; Unit (ONU) registration; Unit testing; The performance element login; With the operating unit login, wherein, the performance element login comprises the identifying information that each control port of performance element is set, and the operating unit login comprises the identifying information of each button on the setting operation unit.
Above-mentioned according to method to set up of the present invention in, described unit (ONU) registration may further comprise the steps: check hardware cell information; If belong to native system then fill in unit identification information; As not belonging to native system, then it is deleted from native system.
Above-mentioned according to method to set up of the present invention in, described unit (ONU) registration may further comprise the steps: check hardware cell information; If belong to native system then fill in unit identification information; As not belonging to native system, then it is deleted from native system.
Above-mentioned according to method to set up of the present invention in, described unit testing may further comprise the steps: select to-be-measured cell; Send test command; The judgement test result correctly denys; If incorrect, then test; If test result is correct, then write down the identifying information of this unit; Finish up to whole unit testings; With the hardware identification information that comprises performance element, operating unit that has write down, store into the unit is set in, be sent to each performance element and main control unit in wireless or wired mode.
Above-mentioned according to method to set up of the present invention in, determine to may further comprise the steps in the step of lamp light mode in described man-machine interaction: select one or the existing lamp light mode of order demonstration; From the lamp light mode of demonstration, select or define new lamp light mode as current lamp light mode.
Above-mentioned according to method to set up of the present invention in, selection operation unit class button is selected a certain button in this unit; Choose the sight table that desire is distributed; Setting completed for key assignments not; Operating unit distributes not, assigns up to each button setting.Above-mentioned according to method to set up of the present invention in, described operating unit comprises button generic operation unit, described button generic operation unit comprises fixed controller and portable remote controller, sight of the button of each button class unit and the sight table of control unit or sight parameter association.
Above-mentioned according to method to set up of the present invention in, described operating unit comprises transducer generic operation unit.
Implement intelligent lighting system control method provided by the invention, utilize communication, control and computer technology, in the intelligent lighting system of a flexible arrangement, communication facilitation, realize pressing the sight setting and descending biography of light control script, concrete be exactly by the sight table, set up and be provided with association between performance element, the operating unit by key table, to realize selecting the automatic control of light under the different sights by operating unit.
Embodiment
As shown in Figure 1, use the inventive method intelligent lighting system to comprise unit 1, main control unit 2, performance element 3, operating unit are set, wherein, operating unit comprises push-button unit 4 and sensing unit 5, push-button unit can be the remote controller form, also can peg button controller form, and sensing unit 5 can be a light sensor, also can be infrared proximity transducer; Wherein, the unit is set can be included in the main control unit 2, it also can be device 6 based on microprocessor with main control unit 2 data communication, wherein, performance element 3 is the main body of lighting system, i.e. controlling object, a lighting system can have a plurality of dissimilar performance elements, each performance element 3 is called ID. so long as unified controlled one or more luminescent devices just distribute a unique identification number
As shown in Figure 2, the setting up procedure of control program is such: by the unit being set at frame 21 Auto-Sensings, performance element, operating unit in the current system are carried out Auto-Sensing, in frame 22, carry out identifying information and distribute, quantity, parameter and the spatial configuration of each unit of detecting are confirmed and distributed each unit identification information; In frame 23, carry out contextual model and determine, determine the information such as title of contextual model; In frame 24, be provided with each performance element under each sight Control Parameter and with the relation of operating unit, the contextual model according to selected carries out the Control Parameter setting to each performance element in the current system configuration, operating unit; In frame 25 storage and communications of control data: with the operating unit that sets, the identifying information and the Control Parameter thereof of performance element, store into the unit is set in, be sent to each performance element and main control unit in wireless or wired mode.Wherein, 1) Auto-Sensing comprises: start hardware wizard; Connect communication port; The system that is provided with covers the room relevant information; Send the order of Request System ID to main control unit; Obtain system identifier from main control unit; Send request hardware cell information by main control unit to each unit; Need to obtain the hardware cell information of login.2) distribute identifying information to comprise: information gathering; Unit (ONU) registration; Unit testing; Performance element login: the identifying information that each performance element port is set; Operating unit login: the identifying information of setting operation unit; 3) man-machine interaction determines that lamp light mode comprises: select one or the existing lamp light mode of order demonstration; From existing lamp light mode, select or define new lamp light mode as current lamp light mode; 4) storage and communications of control data: with the operating unit that sets, the hardware identification information and the Control Parameter thereof of performance element, store into the unit is set in, be sent to each performance element and main control unit in wireless or wired mode.
See more intuitively, unit 1 is set between operating unit 2 and performance element 3, one or more groups association is set by setting program, a sight light of the related formation of each group control table 6, become a sight, for example, sight can greet a guest, the sight of seing a visitor out, the sight light of different characteristics such as leisure sight, each sight produces one group of association, shows as the sight control table.Listed the sight control table of four kinds of sights below.
Sight number: 1 sight name: receive a visitor
Sight number: 2 sight names: have dinner
Sight number: 3 sight names: amusement
Sight number: 4 sight name: TV
More than four kinds of sights a sight number is respectively arranged respectively, under a sight name or sight number, the performance element of diverse location is had different running parameter settings.For example, in sight number 1, sight name: in the sight control table of receiving a visitor, relate to 6 performance elements, be K11, K12, K13, K14, K15, K16, the brightness variation of each lamp is normal, and brightness value is 1, has only performance element K13 to have 2 seconds time-delay to be arranged.And sight number is 2, in the sight sight control table of having dinner by name, have only 3 performance elements selected, K12, K1 and K16.The rest may be inferred by analogy for it.After these sights have set, also need the related of setting operation unit button and sight number, shown as following sight-press key table.
Sight-press key table
The button of above-mentioned sight-provided by key table operating unit 4 is related with the sight control table, for example, after the button that the button name that is in the parlor is called " 4 " is pressed, will activate the sight light of sight " receiving a visitor " by name. all the other are similar. and above-mentioned the setting can be finished when dispatching from the factory, also can when selling, be provided with or after sale the back be provided with at any time or change at any time according to user's requirement and be provided with. finish above-mentioned setting, promptly be equivalent to related with sight and button, sight and light fixture running parameter related all is stored in the nonvolatile storage of performance element. at this moment, the user is by the push-button unit 4 of operating unit, just selected the sight light of this key correspondence, promptly started the performance element that this sight light is provided with regulation and carried out work according to predetermined operating state. in other words, by after the next operating key, each performance element 3 receives that the instruction back is luminous according to each luminescent device in the sight light control table predetermined parameter driving light fixture that is preset in the nonvolatile storage. as above shown in the table, operating unit can also be inductive switch or transducer 5.
In the overall flow schematic diagram of an embodiment of the control program method to set up of the present invention of the realization shown in Fig. 3, comprise following each link: collect hardware information and the stage (frame 301) is set; Start hardware wizard (frame 302); Connect communication port (frame 303); The unit is set information (frame 304) such as room are installed;
Ask for system identifier number order (frame 305) to main control unit; Obtain system identifier number (frame 306); Ask for hardware cell (frame 307) to main control unit; Obtain the hardware cell (frame 308) of login, frame 302-frame 308 configuration informations are collected; Check the unit log-on message at frame 309, reject non-native system unit; At frame 310, fill in unit identification information; Frame 309-310 constitutes the unit (ONU) registration link; Frame 311 is a unit (ONU) registration, and frame 312 is for distributing and pass down the address of performance element, operating unit, and frame 311-312 constitutes unit testing; In frame 313, it is the light fixture login that the performance element port identification information is set; The push-button unit identifying information is set, i.e. push-button unit login in frame 314.
In the hardware login process schematic diagram shown in Fig. 4, comprise following link: start login (frame 41), login hardware cell (frame 42), check hardware cell, judge whether finish (frame 43) logined in all hardware unit, if not then the link (frame 42) of getting back to the login hardware cell, up to whole logins finish (frame 44).
In the schematic flow sheet of the software startup shown in Fig. 5, comprise login system (frame 51), communication port information (frame 52) is set and selects respective menu steps such as (frames 53) as required.
In the unit testing schematic flow sheet shown in Fig. 6, may further comprise the steps: select to-be-measured cell (frame 61); Send test command (frame 62); Test result correctly denys (frame 63); If incorrect, then judge whether to resurvey (frame 64), as resurvey and then get back to frame 61; If test result is correct, then write down the identifying information number (frame 65) of this unit; Judge whether that at frame 66 test finishes, as do not finish, return frame 61, finish (frame 67) up to whole unit testings; With the hardware identification information that comprises performance element, operating unit that has write down, store into the unit is set in, be sent to each performance element and main control unit in wireless or wired mode.
In the sight configuration phase schematic flow sheet shown in Fig. 7, may further comprise the steps: set up the sight project at frame 71, set up the sight table; Automatically distribute sights number at frame 72, form the light fixture of sight and the parameter value of control port thereof in frame 73 configurations, satisfied at frame 74 test sights, unsatisfied words are got back to frame 72 and are reconfigured, and when satisfied this sight disposes, judge whether set up next sight table at frame 75, as needs, restart to set up the sight table, as need not to build again, then finish sight table configuration (frame 76).
In the sight allocated phase schematic flow sheet shown in Fig. 8, may further comprise the steps: at frame 81; Set up sight by key table; In frame 82 selection key generic operation unit, at frame 83, select a certain button in this unit, choose desire at frame 84 and distribute the sight table name, promptly distribute contextual model, set up button-sight correspondence table, judge that at frame 86 the key assignments setting is over not at frame 85, if no, then come back to the step of selecting this a certain button in unit; If button has divided, then judge that at frame 87 push-button unit distributes not, as not divided, then get back to the step of selection key class unit, distribute contextual model to finish up to button generic operation unit, just finish sight and distribute (frame 84).
Under the sight shown in Fig. 9, pass in the stage schematic flow sheet, may further comprise the steps: preserve the sight configuration files at frame 91,, pass for 93 times at frame and press key table, finish biography (frame 94) down at last in the frame scape control table that conveys feelings for 92 times.
In the schematic flow sheet after the performance element that links to each other with light fixture through control program method to set up of the present invention setting shown in Figure 10 is being received control command, as shown, in frame 101, intercept automatically the performance element in the current system, operating unit are carried out Auto-Sensing; At frame 102, the sight control command that comprises institute's button key number that receives that operating units such as remote controller, sight controller, recombiner unit send; Look into by key table at frame 103; Then do not return frame 101 as finding corresponding sight at frame 104; Then obtain and parse the data that this sight comprises as find corresponding sight table at frame 104, comprise parameters such as channel number, brightness value, change ray velocity, time-delay numerical value at frame 107; At frame 108 according to the content of operation that comprises in the key number, as sight open, sight closes, go up light modulation, light modulation down, carries out operation accordingly; At frame 109,, calculate the delay value of transmitting performed order and start time-delay, and get back to frame 101. according to self address