Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
In embodiments of the present invention, instruct at least one the illuminating lamp transmit button instruction or the light modulation that link with it by controlling party, so that after described illuminating lamp receives switch command or light modulation instruction, carry out switching manipulation or light modulation operation according to switch command or light modulation instruction, make the user can control switch and the light modulation operation of a plurality of illuminating lamps, save user's operating time, thereby improved user's operating efficiency.
Embodiment 1:
Fig. 1 shows the realization flow of a kind of illuminating lamp control method that the embodiment of the invention provides, and details are as follows:
In step S101, controlling party is obtained the control information of user's input.
In the present embodiment, the mode that controlling party is manually imported by the user, finish the obtaining of control information of user input, particularly, controlling party receives user's button operation by key-press module, obtaining the control information of user input, described button operation comprise long by, short by, long by number of times, short in number of times.
In step S102, according to control information generation switch command or the light modulation instruction of user's input.
In the present embodiment, control information according to user's input generates switch command or light modulation instruction, when controlling party is passed through manually input, inquiry switch command or the light modulation instruction corresponding with button operation in the corresponding relation between the button operation and instruction of storage in advance, particularly, corresponding relation between the button operation and instruction can be stored in the form of mapping table in the terminal, mapping table has comprised the corresponding relation of button operation and switch command or light modulation instruction, thereby can inquire about the switch command corresponding with button operation or light modulation instruction in the corresponding relation between the button operation and instruction.
In the present embodiment, corresponding relation between the button operation and instruction, be defaulted as when button operation for short during by one time, short is switch command by once corresponding instruction, long is the light modulation instruction by once corresponding instruction, particularly, weak point is by being for the first time the instruction of opening illuminating lamp in the switch command, and is short in be the instruction of closing illuminating lamp in the switch command next time; When button operation was pressed one time for length, long was the light modulation instruction by once corresponding instruction.
In step S103, controlling party is at least one the illuminating lamp transmit button instruction that links with it or light modulation instruction, so that after described illuminating lamp receives switch command or light modulation instruction, carry out switching manipulation or light modulation operation according to switch command or light modulation instruction.
In the present embodiment, controlling party is at least one the selected illuminating lamp transmit button instruction or the light modulation instruction that link with it.In the present embodiment, selected illuminating lamp, the illuminating lamp tabulation that can show at the display interface of controlling party, because illuminating lamp is many, can be by draw an illuminating lamp tabulation at the interface, and by the selected mode of presetting of illuminating lamp information, selected illuminating lamp is so that the operation that the user selectes.
In the present embodiment, the user is selected illuminating lamp information in the illuminating lamp tabulation, and mode selected includes but not limited to touch or button, by the selected operation detection to the user, receives user's selected result,
In the present embodiment, the user also can select a plurality of illuminating lamps, to improve operating efficiency simultaneously by default multiselect operation.
Preferably, in the present embodiment, also can set up related with at least one button that is positioned at controlling party at least one geocoding and/or at least one group address coding and the record storage, so that controlling party can be selected operation according to the button of pressing, described selected operation comprises that single button is selected single illuminating lamp, single button is selected a plurality of illuminating lamps, a plurality of buttons are selected single illuminating lamp, and it is at least a that the selected a plurality of illuminating lamps of a plurality of buttons are operated.
For ease of explanation, particularly, when a geocoding and the button that is positioned at controlling party are set up when related, the button of pressing is selected and is operating as single button and selectes single illuminating lamp; When at least one group address coding and a button that is positioned at controlling party are set up when related, the button of pressing is selected and is operating as single button and selectes a plurality of illuminating lamps; When a geocoding and a plurality of buttons that are positioned at controlling party are set up when related, a plurality of buttons of pressing are selected and are operating as a plurality of buttons and select single illuminating lamp; When a plurality of described geocodings and a plurality of buttons that are positioned at controlling party are set up when related, a plurality of buttons of pressing are selected and are operating as the selected a plurality of illuminating lamp operations of the selected a plurality of buttons of single illuminating lamp of a plurality of buttons, with the transmission object of selected illuminating lamp as controlling party, but so that at least one illuminating lamp transmit button instruction or light modulation instruction that controlling party Xiang Yuqi links.
What need describe is, because the partial illumination lamp does not have light modulating device, therefore illuminating lamp in the present embodiment can be regarded as the illuminating lamp that possesses light modulating device, as the LED illuminating lamp.
Controlling party is instructed at least one the illuminating lamp transmit button instruction or the light modulation that link with it by built-in wire communication module or wireless communication module, described wire communication module comprises the RS485 communication module, controlling party can send data to illuminating lamp by the RS485 bus, with the control illuminating lamp.Described wireless communication module comprises at least a in bluetooth communication, wireless local area network communications module, the infrared communication module.Pass through above-mentioned steps, controlling party is obtained the illuminating lamp of appointment in the illuminating lamp tabulation, avoided illuminating lamp all illuminating lamps of tabulating are all carried out the situation of transmit button instruction or light modulation instruction, thereby both satisfied user's self demand, also saved the transmission time of data.
In the present embodiment, owing to controlling party can be instructed at least one illuminating lamp transmit button instruction or light modulation, thereby can once close a plurality of illuminating lamps, or once a plurality of illuminating lamps are adjusted to the brightness that limits in the controlling party.
Embodiment 2:
Present embodiment has mainly been given unnecessary details the concrete implementing procedure of selected at least one illuminating lamp, and details are as follows:
Detect the button that the user presses in controlling party, according to selected at least one illuminating lamp of described button.
In the present embodiment, detecting the button that the user presses in controlling party, specifically is to detect by the interrupt signal that button generates, and when button was pressed by the user, the expression user had selected at least one illuminating lamp of this button correspondence.
In the present embodiment, the controlling party button operation is selected at least one illuminating lamp, has avoided to the illuminating lamp all situations of transmit button instruction or light modulation instruction of all illuminating lamps of tabulating, thereby has both satisfied user's self demand, has also saved the transmission time of data.
What need describe is, when the button on controlling party is pressed by the user, represent that just the user has selected at least one illuminating lamp of this button correspondence, do not represent that the user has carried out long operation or short operation by once by once, long by or short by action need be in the time of pressing according to button and judge.
Embodiment 3:
Present embodiment has mainly been given unnecessary details the detailed process of distributing unique geocoding and/or group address coding, and details are as follows:
At least one illuminating lamp that Xiang Yuqi links distributes unique geocoding and/or group address coding, and described geocoding and/or group address coding are corresponding with described illuminating lamp;
Set up related with at least one button that is positioned at controlling party at least one described geocoding and/or at least one group address coding and the record storage, so that controlling party can be selected operation according to the button of pressing, described selected operation comprises that single button is selected single illuminating lamp, single button is selected a plurality of illuminating lamps, a plurality of buttons are selected single illuminating lamp, and it is at least a that the selected a plurality of illuminating lamps of a plurality of buttons are operated.
In the present embodiment, at least one illuminating lamp that Xiang Yuqi links distributes unique geocoding and/or group address coding, can a unique geocoding and/or group address coding be set for the pulse-modulated signal port of each illuminating lamp by button operation, so that geocoding and/or group address coding are corresponding with described illuminating lamp.
In the present embodiment, set up related with at least one button that is positioned at controlling party at least one described geocoding and/or at least one group address coding and the record storage, so that controlling party can be selected operation according to the button of pressing, described selected operation comprises that single button is selected single illuminating lamp, single button is selected a plurality of illuminating lamps, a plurality of buttons are selected single illuminating lamp, and it is at least a that the selected a plurality of illuminating lamps of a plurality of buttons are operated.For ease of explanation, particularly, when a geocoding and the button that is positioned at controlling party are set up when related, the button of pressing is selected and is operating as single button and selectes single illuminating lamp; When at least one group address coding and a button that is positioned at controlling party are set up when related, the button of pressing is selected and is operating as single button and selectes a plurality of illuminating lamps; When a geocoding and a plurality of buttons that are positioned at controlling party are set up when related, a plurality of buttons of pressing are selected and are operating as a plurality of buttons and select single illuminating lamp; When a plurality of described geocodings and a plurality of buttons that are positioned at controlling party are set up when related, a plurality of buttons of pressing select and are operating as the selected a plurality of buttons of single illuminating lamp of a plurality of buttons and select a plurality of illuminating lamps and operate.
Embodiment 4:
Present embodiment has mainly been given unnecessary details at least one described geocoding and/or at least one group address coding has been set up concrete implementing procedure related and the record storage with at least one button that is positioned at controlling party, and details are as follows:
Show the geocoding tabulation, described geocoding tabulation comprises geocoding and/or the group address coding of at least one illuminating lamp;
Detect geocoding and/or the group address coding of user's appointment in described geocoding tabulation;
Detect the button of user's input in described geocoding tabulation;
Set up related with at least one button of the input that is positioned at controlling party at least one described geocoding and/or at least one group address coding and the record storage.
In the present embodiment, the demonstration geocoding tabulation that can show at the display interface of controlling party, because geocoding and group address encoding ratio are more, can be by draw an illuminating lamp tabulation at the interface, and the default specific mode by illuminating lamp information, specify illuminating lamp, so that the user carries out the operation of appointment.
In the present embodiment, the geocoding of user's appointment in showing the geocoding tabulation and/or group address coding, the mode of appointment includes but not limited to touch or button, detect by the assigned operation to the user, receive user's designated result, detect the button of user's input in the geocoding tabulation again, set up related with at least one button of the input that is positioned at controlling party at least one described geocoding and/or at least one group address coding and the record storage.
Embodiment 5:
Present embodiment mainly describes the concrete implementing procedure of illuminating lamp according to switch command or light modulation instruction execution switching manipulation or light modulation operation, and details are as follows:
Obtain the on off state of illuminating lamp;
When illuminating lamp is in opening, in Preset Time, reduce brightness gradually by the descending luminance parameter, until the zero luminance of illuminating lamp, to close described illuminating lamp;
When illuminating lamp is in closed condition, in Preset Time, increase brightness gradually by the brightness parameter of progressively increasing, until the brightness of illuminating lamp for default brightness, to open described illuminating lamp.
In the present embodiment, illuminating lamp comprises control unit and Transmit-Receive Unit, Transmit-Receive Unit is connected with control unit, Transmit-Receive Unit receiving key instruction or light modulation instruction and send self geocoding and on off state to controlling party, control unit outputs a control signal to the lamp module of illuminating lamp.
In the present embodiment, obtain the state of a control of illuminating lamp, the on off state that can send by the Transmit-Receive Unit that receives illuminating lamp is to judge that illuminating lamp is in opening or closed condition.
In the present embodiment, progressively increase parameter and default brightness of descending luminance parameter, brightness can be system default from establishing also for the user, does not limit at this.
Brightness when preferably, default brightness was closed for the illuminating lamp last time.
In the present embodiment, described light modulation instruction comprises the brightness of light;
Described execution light modulation operation is specially:
Obtain the brightness of light in the light modulation instruction;
Carry out the light modulation operation according to the brightness of light.
In the present embodiment, illuminating lamp comprises control unit and Transmit-Receive Unit, Transmit-Receive Unit is connected with control unit, Transmit-Receive Unit receives the light modulation instruction, the light modulation instruction is resolved, obtain the brightness of light in the light modulation instruction, the signal of the brightness of control unit output control light is to the lamp module of illuminating lamp, so that this illuminating lamp receives this signal, and light fixture is adjusted to the brightness of corresponding light.
In the present embodiment, owing to controlling party can be instructed at least one illuminating lamp transmit button instruction or light modulation, thereby can once close a plurality of illuminating lamps, or once a plurality of illuminating lamps are adjusted to the brightness that limits in the controlling party.
Embodiment 6:
For ease of explanation, present embodiment has been given unnecessary details at the preferable implementing procedure of practical application, and details are as follows:
In the present embodiment, to distribute unique geocoding and/or group address to be encoded to example to 8 illuminating lamps that link with it, at this moment, in button operation, short in being for the first time the instruction of opening illuminating lamp in the switch command, short in be the instruction of closing illuminating lamp in the switch command next time, when button operation is pressed one time for length, long is the light modulation instruction by once corresponding instruction, particularly, distribute geocoding to 8 illuminating lamps, can also can be system assignment by manual allocation, preferably, adopt manual allocation at this, the geocoding of 8 illuminating lamps is respectively A1, A2, A3, A4, B1, B2, B3, B4, simultaneously, A1, A3, A4 also is assigned group address coding a, and the group address a that encodes is associated with the button 1 that the user imports.
Because group address coding a is associated with the button 1 of user's input, therefore whether controlling party can detect button 1 and pressed by the user, when detecting button 1 and be pressed, the illuminating lamp that the expression user need select is A1, A3, A4, and detect button 1 be short by or long by, when button 1 is to lack on time, detect the button 1 short number of times of pressing, when button 1 is when lacking by one time, be A1 wherein to geocoding, A3, the illuminating lamp of A4 sends the instruction of opening illuminating lamp, so that geocoding is A1, A3, the illuminating lamp of A4 receives the instruction of opening illuminating lamp, opens illuminating lamp by driver module; When button 1 is short during by secondary, be that the illuminating lamp of A1, A3, A4 sends the instruction of closing illuminating lamp to geocoding, so that being the illuminating lamp of A1, A3, A4, geocoding receives the instruction of closing illuminating lamp, close illuminating lamp by driver module; When button 1 is to grow on time, be that the illuminating lamp of A1, A3, A4 sends the light modulation instruction to geocoding, receive the light modulation instruction so that geocoding is the illuminating lamp of A1, A3, A4, regulate the luminous power of light source in the illuminating lamp by driver module, finish the light modulation operation of illuminating lamp.
Embodiment 7:
Fig. 2 shows the embodiment of the invention preferable connection layout of illuminating lamp control device in actual applications.
In the present embodiment, MCU module 21: handle the information data collection between each module, can receive many group push button signallings and export many group pulses width modulated control signal;
LED driver module 22: receive the pulse width modulation control signal of MCU, the required constant current of output LED light fixture;
LED light fixture 23: the lighting of being formed by led light source;
Key-press module 24: receive user's operation, support to click, double-click, long by operation;
Display module 25: the operation information of display system;
Communication module 26: adopt the RS485 bus to communicate between a plurality of control system;
Power module 27: suitable supply voltage is provided for each intermodule.
Embodiment 8:
Fig. 3 shows the embodiment of the invention at the preferable implementing procedure of practical application, and details are as follows:
S301, each module initialization of controlling party;
S302, controlling party receives button operation;
S303, controlling party is selected light fixture;
S304, controlling party arranges system parameters;
S305, controlling party transmits control signal at least one illuminating lamp;
S306, illuminating lamp processing control signals, control LED light fixture.
Embodiment 9:
Fig. 4 shows the structured flowchart of a kind of illuminating lamp control device that the embodiment of the invention provides, this illuminating lamp control device can be controlled the various light fixtures that link with it, include but not limited to LED lamp, electricity-saving lamp, desk lamp, explosion-proof lamp, signal lamp, flood light etc., for convenience of explanation, only show the part relevant with present embodiment.
With reference to Fig. 4, this illuminating lamp control device comprises dispensing device 41 and receiving system 42, and this dispensing device comprises acquiring unit 411, generation unit 412, transmitting element 413, and this receiving system 42 comprises performance element 421,
This acquiring unit 411 is used for the control information that controlling party is obtained user's input;
This generation unit 412 is used for generating switch command or light modulation instruction according to the control information of user's input;
This transmitting element 413 is used for controlling party at least one the illuminating lamp transmit button instruction or the light modulation instruction that link with it;
This performance element 421 is carried out switching manipulation or light modulation operation according to switch command or light modulation instruction after receiving switch command or light modulation instruction for described illuminating lamp.
Further, in this device, this dispensing device also comprises:
At least one illuminating lamp for detection of the button that the user presses in controlling party, is selected according to described button in selected unit.
Further, in this device, this dispensing device also comprises:
Allocation units are used for distributing unique geocoding or group address coding at least one illuminating lamp that links with it, and described geocoding and/or group address coding are corresponding with described illuminating lamp;
Associative cell, be used for setting up related with at least one button that is positioned at controlling party at least one described geocoding and/or at least one group address coding and the record storage, so that controlling party can be selected operation according to the button of pressing, described selected operation comprises that single button is selected single illuminating lamp, single button is selected a plurality of illuminating lamps, a plurality of buttons are selected single illuminating lamp, and it is at least a that the selected a plurality of illuminating lamps of a plurality of buttons are operated.
Particularly, this associative cell comprises:
Show subelement, be used for showing the geocoding tabulation, described geocoding tabulation comprises geocoding and/or the group address coding of at least one illuminating lamp;
First detection sub-unit is for detection of geocoding and/or the group address coding of user's appointment in described geocoding tabulation;
Second detection sub-unit is for detection of the button of user's input in described geocoding tabulation;
Related subelement is used for setting up related with at least one button of the input that is positioned at controlling party at least one described geocoding and/or at least one group address coding and the record storage.
Further, in this device, this performance element comprises:
Obtain subelement, be used for obtaining the on off state of illuminating lamp;
Close subelement, be used for when illuminating lamp is in opening, in Preset Time, reducing brightness gradually by the descending luminance parameter, until the zero luminance of illuminating lamp, to close described illuminating lamp;
Open subelement, be used for when illuminating lamp is in closed condition, in Preset Time, increase brightness gradually by the brightness parameter of progressively increasing, until the brightness of illuminating lamp for presetting brightness, to open described illuminating lamp.
In embodiments of the present invention, instruct at least one the illuminating lamp transmit button instruction or the light modulation that link with it by controlling party, so that after described illuminating lamp receives switch command or light modulation instruction, carry out switching manipulation or light modulation operation according to switch command or light modulation instruction, make the user can control switch and the light modulation operation of a plurality of illuminating lamps, save user's operating time, thereby improved user's operating efficiency.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.