Disclosure of Invention
The invention aims to solve at least one technical problem in the prior art, and provides a wireless lighting system and a control method thereof, which can conveniently change the associated adjustment mode of a lamp and other equipment.
The technical scheme adopted by the invention for solving the problems is as follows:
in a first aspect of the invention, a control method of a wireless lighting system comprises a mobile control terminal, a lighting main body and a plurality of associated devices, wherein the lighting main body is provided with a control assembly, the mobile control terminal, the control assembly of the lighting main body and the associated devices are provided with communication modules, and the mobile control terminal is in communication connection with the lighting main body and the associated devices respectively;
the control method comprises the following steps:
correspondingly allocating a group address and a physical address to each associated device through a mobile control terminal, wherein the physical addresses of the associated devices are different;
storing a plurality of group addresses or a plurality of physical addresses into the lamplight main body through the mobile control terminal, so that the lamplight main body is associated with the associated equipment allocated with the corresponding group addresses or physical addresses;
synchronous regulation, namely controlling a light main body and a plurality of associated equipment with the same group address or physical address in the light main body to be converted from a communication disconnection state to a communication connection state through a mobile control terminal, and regulating a control assembly of the light main body or sending a regulating signal to the control assembly through the mobile control terminal to realize synchronous regulation of the light main body and the plurality of associated equipment in communication connection with the light;
independently adjusting: the mobile control terminal is used for controlling the light main body and the plurality of associated equipment with the same group address or physical address in the light main body to be converted from a communication connection state to a communication disconnection state, the adjusting control assembly is used for independently adjusting the light main body at the moment, and the mobile control terminal is used for independently adjusting the light main body, adjusting the associated equipment under the same group address according to the group address and independently adjusting each associated equipment according to the physical address.
The control method of the wireless lighting system at least has the following beneficial effects that the connection among the mobile control terminal, the lighting main body and the associated equipment in the system is realized through wireless communication; the light main body and the associated equipment are synchronously controlled by distributing the group address and the physical address, and the combination is changed at will without wiring layout; in addition, the association on-off of the lamplight main body and the association equipment can be remotely controlled, and the synchronous regulation state and the independent regulation state can be switched, so that the wireless lamplight system is more intelligent and humanized.
According to the first aspect of the present invention, the synchronization adjusting step specifically includes the steps of:
controlling a light main body and a plurality of associated devices with the same group address or physical address in the light main body to be converted from a communication disconnection state to a communication connection state through a mobile control terminal;
adjusting a control assembly of the lamplight main body or sending an adjusting signal to the control assembly through a mobile control terminal, reading a group address or a physical address stored in the lamplight main body by the control assembly, and generating and broadcasting a control instruction containing the group address or the physical address;
the associated equipment reads the control instruction and judges whether the group address or the physical address of the control instruction is the same as the group address or the physical address of the associated equipment;
when the judgment result is the same, the associated equipment responds to the control instruction;
and after responding to the control instruction, the associated equipment returns a success result to the lamplight main body, so that the lamplight main body receives the adjusting signal of the control component.
Further, the synchronization adjusting step further includes the steps of: and the associated equipment sends the state result after responding to the control instruction to the mobile control terminal, and the mobile control terminal displays the state result.
According to a first aspect of the invention, the independent adjusting step comprises in particular the steps of:
controlling a light main body and a plurality of associated devices with the same group address or physical address in the light main body to be converted from a communication connection state to a communication disconnection state through a mobile control terminal;
the adjusting control assembly sends an adjusting signal to the lamplight main body and independently adjusts the lamplight main body;
sending an adjusting signal to the lamplight main body through the mobile control terminal, and independently adjusting the lamplight main body;
sending an adjusting signal to a plurality of associated devices under the group address according to the group address through the mobile control terminal, and adjusting the plurality of associated devices under the group address;
and sending an adjusting signal to the single associated equipment corresponding to the physical address according to the physical address through the mobile control terminal, and adjusting the single associated equipment.
According to the first aspect of the invention, the adjusting mode of the lamp main body comprises switch adjustment, brightness adjustment and color temperature adjustment; the adjusting mode of the associated equipment comprises switch adjustment, numerical value adjustment and mode adjustment; in the synchronous adjustment step, the on-off adjustment of the light main body corresponds to the on-off adjustment of the associated equipment, the brightness adjustment of the light main body corresponds to the numerical value adjustment of the associated equipment, the color temperature adjustment of the light main body corresponds to the mode adjustment of the associated equipment, and the adjustment modes corresponding to the light main body and the associated equipment have the same adjustment instruction code.
In a second aspect of the present invention, a wireless lighting system applying the control method of the first aspect of the present invention includes a mobile control terminal, a lighting main body and a plurality of associated devices, where the lighting main body is provided with a control component, the mobile control terminal, the control component of the lighting main body and the associated devices are provided with communication modules, and the mobile control terminal is in communication connection with the lighting main body and the associated devices respectively; the mobile control terminal correspondingly allocates a group address and a physical address to each associated device, and stores a plurality of group addresses or a plurality of physical addresses into the lamplight main body, so that the lamplight main body is associated with the associated devices allocated with the corresponding group addresses or physical addresses, wherein the physical addresses of the associated devices are different; when the mobile control terminal controls a light main body and a plurality of associated equipment with the same group address or physical address in the light main body to be converted from a communication disconnection state to a communication connection state, the control assembly of the light main body or the mobile control terminal sends an adjusting signal to the control assembly, and the light main body and the associated equipment in communication connection with the light realize synchronous adjustment; when the mobile control terminal controls the light main body and the plurality of associated equipment with the same group address or physical address in the light main body to be converted into a communication disconnection state from the communication connection state, the control assembly sends an adjusting signal to the light main body independently to adjust the light main body independently, and the mobile control terminal adjusts the light main body independently, adjusts the associated equipment under the same group address according to the group address and adjusts each associated equipment independently according to the physical address.
The wireless lighting system at least has the advantages that the connection among the mobile control terminal, the lighting main body and the associated equipment in the system is realized through wireless communication; the light main body and the associated equipment are synchronously controlled by distributing the group address and the physical address, and the combination can be changed at will without wiring layout; in addition, the association on-off of the lamplight main body and the association equipment can be remotely controlled, and the synchronous regulation state and the independent regulation state can be switched, so that the wireless lamplight system is more intelligent and humanized.
According to a second aspect of the invention, the associated device is a light strip, a fan, a bath heater or an air conditioner.
According to a second aspect of the invention, the control component is a dimmer.
According to a second aspect of the invention, the communication module is a bluetooth module or a wifi module.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, front, rear, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
Referring to fig. 1 and 3, an embodiment of the present invention provides a control method of a wireless lighting system, where the wireless lighting system includes a mobile control terminal 10, a lighting main body 20, and a plurality of associated devices 30, the lighting main body 20 is provided with a control component 21, the mobile control terminal 10, the control component 21 of the lighting main body 20, and the plurality of associated devices 30 are provided with communication modules, and the mobile control terminal 10 is in communication connection with the lighting main body 20 and the plurality of associated devices 30, respectively; in particular the control component 21 is a dimmer;
the control method comprises the following steps:
step S100, correspondingly allocating a group address and a physical address to each associated device 30 through the mobile control terminal 10, wherein the physical addresses of the associated devices 30 are different;
step S200, storing a plurality of group addresses or a plurality of physical addresses into the light body 20 through the mobile control terminal 10, so that the light body 20 is associated with the associated equipment 30 assigned with the corresponding group address or physical address;
step S310, synchronous adjustment: controlling a light body 20 and a plurality of associated devices 30 with the same group address or physical address in the light body 20 to switch from a communication disconnection state to a communication connection state through a mobile control terminal 10, adjusting a control component 21 of the light body 20 or sending an adjusting signal to the control component 21 through the mobile control terminal 10, so as to synchronously adjust the light body 20 and the plurality of associated devices 30 in communication connection with the light;
step S320, independently adjusting: the light body 20 and the plurality of associated devices 30 having the same group address or physical address in the light body 20 are controlled by the mobile control terminal 10 to be switched from the communication connection state to the communication disconnection state, at which time the adjustment control module 21 independently adjusts the light body 20, and the light body 20 is independently adjusted by the mobile control terminal 10, the associated devices 30 at the same group address are adjusted according to the group address, and each associated device 30 is independently adjusted according to the physical address.
In this embodiment, the connection among the mobile control terminal 10, the light body 20, and the associated device 30 in the system is realized by wireless communication; the light main body 20 and the associated equipment 30 achieve synchronous control by distributing the group address and the physical address, and the combination is changed at will without wiring layout; in addition, the association on-off of the light main body 20 and the association equipment 30 can be remotely controlled, and the synchronous adjustment state and the independent adjustment state can be switched, so that the wireless light system is more intelligent and humanized.
Referring to fig. 2, it should be noted that the number of the light bodies 20 provided with the control assembly 21 can be one or more. When the wireless lighting system includes a plurality of light bodies 20, the group address or the physical address stored in one light body 20 by the mobile control terminal 10 is different from those of the other light bodies 20, so that the non-interference effect can be achieved in the synchronization adjustment step.
Referring to fig. 4, further, the step S310 specifically includes the following steps:
step S311, controlling the light body 20 and a plurality of associated devices 30 with the same group address or physical address in the light body 20 to be converted from a communication disconnection state to a communication connection state through the mobile control terminal 10;
step S312, adjusting the control component 21 of the light body 20 or sending an adjusting signal to the control component 21 through the mobile control terminal 10, wherein the control component 21 reads the group address or the physical address stored in the light body 20, and generates and broadcasts a control instruction containing the group address or the physical address;
step S313, the associated device 30 reads the control instruction, and determines whether the group address or the physical address included in the control instruction is the same as the group address or the physical address of the associated device 30 itself;
step S314, when the determination results are the same, the associated device 30 responds to the control instruction;
in step S315, the associated device 30 returns a success result to the light body 20 after responding to the control instruction, so that the light body 20 receives the adjustment signal of the control component 21.
In this step, the control component 21 broadcasts the control command, and during the broadcasting process, the shortest path communication is adopted. The control command preferentially reaches the associated device 30 with the shortest path; the associated device 30 reads the control instruction, determines whether the group address or the physical address of the control instruction is the same as the group address or the physical address of the associated device 30 itself, responds to the control instruction if the group address or the physical address of the control instruction is the same as the group address or the physical address of the associated device 30 itself, and transmits the control instruction to the next associated device 30 if the group address or the physical address of the control instruction is different from the group address or the physical address of the associated device 30 itself.
In addition, when at least one associated device 30 changes its state in response to the control command and then returns a success result to the light body 20, the light body 20 receives the adjustment signal, and the synchronous adjustment with the associated device 30 is realized. The light body 20 responds to the adjustment signal, and sends a state result to the mobile control terminal 10 after the state change occurs. When the non-associated device 30 returns a successful result, the light body 20 does not receive the adjustment signal and no change is made.
Further, the step S310 further includes the steps of:
step S316, the associated device 30 sends the state result after responding to the control instruction to the mobile control terminal 10, and the mobile control terminal 10 displays the state result and notifies the user of the result of the synchronous adjustment, so that the user can know the state of the associated device 30.
Further, the step S320 specifically includes the following steps:
step S321, controlling the light body 20 and a plurality of associated devices 30 with the same group address or physical address in the light body 20 to be converted from a communication connection state to a communication disconnection state through the mobile control terminal 10;
step S322a, adjusting the control component 21, wherein the control component 21 sends an adjusting signal to the light main body 20 to adjust the light main body 20 independently;
step S322b, sending an adjusting signal to the light body 20 through the mobile control terminal 10, and adjusting the light body 20 independently;
step S322c, sending an adjustment signal to the plurality of associated devices 30 under the group address according to the group address through the mobile control terminal 10, and adjusting the plurality of associated devices 30 under the group address;
step S322d, the individual associated device 30 corresponding to the physical address is adjusted by the mobile control terminal 10 sending an adjustment signal to the individual associated device 30 according to the physical address.
In step S320, the light bodies 20 can be individually adjusted by the control assembly 21; if the associated device 30 has its own control panel, the associated device 30 can be independently adjusted through the control panel, and the two devices do not affect each other. In addition, on the mobile control terminal 10, the light body 20, the associated devices 30 of the same group, or each associated device 30 is independently adjusted. And multiple independent adjusting modes are selected by a user, so that the user can conveniently adjust the wireless lighting system.
Specifically, the adjusting mode of the light main body 20 includes on-off adjustment, brightness adjustment and color temperature adjustment; the adjustment modes of the associated device 30 include on-off adjustment, numerical adjustment and mode adjustment; in the synchronous adjustment step, the on-off adjustment of the light body 20 corresponds to the on-off adjustment of the associated device 30, the brightness adjustment of the light body 20 corresponds to the numerical value adjustment of the associated device 30, the color temperature adjustment of the light body 20 corresponds to the mode adjustment of the associated device 30, and the adjustment modes corresponding to both the light body 20 and the associated device 30 have the same adjustment instruction code.
The wireless lighting system comprises a mobile control terminal 10, a lighting main body 20 and a plurality of associated devices 30, wherein the lighting main body 20 is provided with a control component 21, the mobile control terminal 10, the control component 21 of the lighting main body 20 and the associated devices 30 are respectively provided with a communication module, and the mobile control terminal 10 is in communication connection with the lighting main body 20 and the associated devices 30 respectively; the mobile control terminal 10 correspondingly allocates a group address and a physical address to each associated device 30, and stores a plurality of group addresses or a plurality of physical addresses into the light body 20, so that the light body 20 is associated with the associated devices 30 allocated with the corresponding group addresses or physical addresses, wherein the physical addresses of each associated device 30 are different; when the mobile control terminal 10 controls the light body 20 and the plurality of associated devices 30 with the same group address or physical address in the light body 20 to switch from the communication disconnection state to the communication connection state, at this time, the control component 21 of the light body 20 or the mobile control terminal 10 sends an adjustment signal to the control component 21, and the light body 20 and the plurality of associated devices 30 connected with the light communication realize synchronous adjustment; when the mobile control terminal 10 controls the light body 20 and the plurality of associated devices 30 having the same group address or physical address in the light body 20 to switch from the communication connection state to the communication disconnection state, the control component 21 sends an adjustment signal to the light body 20 individually to adjust the light body 20 individually, and the mobile control terminal 10 adjusts the light body 20 individually, adjusts the associated devices 30 at the same group address according to the group address, and adjusts each associated device 30 individually according to the physical address.
In this embodiment, the connection among the mobile control terminal 10, the light body 20, and the associated device 30 in the system is realized by wireless communication; the light main body 20 and the associated equipment 30 achieve synchronous control by distributing the group address and the physical address, and can be randomly changed and combined without wiring layout; in addition, the association on-off of the light main body 20 and the association equipment 30 can be remotely controlled, and the synchronous adjustment state and the independent adjustment state can be switched, so that the wireless light system is more intelligent and humanized.
In particular, the control component 21 is a dimmer. The communication module is a Bluetooth module or a wifi module.
The associated device 30 is a light strip, a fan, a bathroom heater, or an air conditioner. It should be noted that in other embodiments, the associated device can be an electrical device having two modes of switching, value adjustment, or three modes of switching, value adjustment, and function selection, or three modes of switching, first value adjustment, and second value adjustment.
For example, the adjusting mode of the light body 20 includes on-off adjustment, brightness adjustment and color temperature adjustment; the related device 30 is an air conditioner, the adjusting mode of the air conditioner includes on-off adjustment, temperature adjustment and mode selection, and the mode selection of the air conditioner includes automation, cooling, heating, dust removal and dehumidification. In the step of synchronous adjustment, the on-off adjustment of the light main body 20 corresponds to the on-off adjustment of the air conditioner, the brightness adjustment of the light main body 20 corresponds to the temperature value adjustment of the air conditioner, the color temperature adjustment of the light main body 20 corresponds to the mode adjustment of the air conditioner, and each step of the color temperature of the light main body 20 corresponds to one mode of the air conditioner. The corresponding adjustment modes of both the light body 20 and the associated device 30 have the same adjustment instruction code. The key of the dimmer is lightly pressed, the adjusting instruction code is 0x0012, and the light main body 20 and the air conditioner are synchronously switched on and off. The knob of the dimmer is rotated, the adjustment command is encoded to be 0x0014, and the brightness of the light body 20 and the temperature value of the air conditioner are synchronously increased and decreased. The key of the dimmer is pressed three times quickly, the adjusting instruction code is 0x0016, the color temperature of the light body 20 and the mode of the air conditioner are changed synchronously, and the corresponding relation list of the color temperature of the light body 20 and the mode of the air conditioner is set in the mobile control terminal 10.
In addition, the adjusting mode of the light main body 20 includes on-off adjustment, brightness adjustment and color temperature adjustment; the associated device 30 is a bathroom heater, and the adjustment modes of the bathroom heater include on-off adjustment, water temperature adjustment and water quantity adjustment. In the synchronous adjustment step, the on-off adjustment of the light main body 20 corresponds to the on-off adjustment of the bathroom heater, the brightness adjustment of the light main body 20 corresponds to the water temperature adjustment of the bathroom heater, and the color temperature adjustment of the light main body 20 corresponds to the water volume adjustment of the bathroom heater.
By utilizing the synchronous regulation of the light main body 20 and the associated equipment 30, a unique atmosphere is created for the household life, and more intelligent enjoyment is provided for life.
In addition, the control method of the wireless lighting system can also be applied to the control of the intelligent home system, for example, the lighting main body 20 can be replaced by other home appliances, such as a lighting strip, a fan, a bathroom heater, a shutter or an air conditioner, so that synchronous adjustment and independent adjustment among different intelligent homes are realized.
It should be noted that, a storage medium storing the control method including the wireless lighting system described above also belongs to the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and the present invention shall fall within the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means.