CN116056292A - Light control method, device and equipment - Google Patents

Light control method, device and equipment Download PDF

Info

Publication number
CN116056292A
CN116056292A CN202211667620.1A CN202211667620A CN116056292A CN 116056292 A CN116056292 A CN 116056292A CN 202211667620 A CN202211667620 A CN 202211667620A CN 116056292 A CN116056292 A CN 116056292A
Authority
CN
China
Prior art keywords
dimming
group
color temperature
light
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211667620.1A
Other languages
Chinese (zh)
Inventor
周荣辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ezviz Software Co Ltd
Original Assignee
Hangzhou Ezviz Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Ezviz Software Co Ltd filed Critical Hangzhou Ezviz Software Co Ltd
Priority to CN202211667620.1A priority Critical patent/CN116056292A/en
Publication of CN116056292A publication Critical patent/CN116056292A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/155Coordinated control of two or more light sources
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application provides a light control method, a device and equipment, wherein the method comprises the following steps: determining K dimming control parameters corresponding to the K dimming groups, wherein the dimming groups correspond to the dimming control parameters one by one, and the dimming control parameters corresponding to different dimming groups are the same or different; and sending control information to the plurality of light controllers, wherein the control information comprises the K dimming control parameters, so that each light controller analyzes the dimming control parameters corresponding to the dimming group where the light controller is located from the control information, and performs light control based on the dimming control parameters. Through the technical scheme of the application, the control message is only needed to control all the light controllers, unified control of a plurality of light controllers can be realized, the control success rate and the control efficiency are improved, the number of the control messages is greatly reduced, and the risk of network storm is reduced.

Description

Light control method, device and equipment
Technical Field
The application relates to the technical field of intelligent home, in particular to a light control method, a light control device and light control equipment.
Background
The intelligent home can also be called as an intelligent home, the intelligent home takes the home as a platform, and facilities related to home life are integrated by utilizing comprehensive wiring technology, network communication technology, security management technology, automatic control technology, audio and video technology and the like, so that an efficient management system for home facilities and family schedule matters is constructed, the home security, convenience, comfort and artistry are improved, and the environment-friendly and energy-saving living environment is realized.
Dimming applications are an important component of smart home, that is, automatic control of light can be achieved based on smart home, for example, a control message can be sent to a light controller, and the light controller performs light control based on the control message, for example, light is turned on based on the control message or light is turned off based on the control message.
However, when the number of light controllers is relatively large, it is necessary to individually control each light controller, resulting in high control complexity, and it is necessary to complete light control through a large number of control messages.
Disclosure of Invention
The application provides a light control method, a plurality of light controllers in a target scene are divided into K dimming groups, K is a positive integer greater than 1, and the method is applied to gateway equipment and comprises the following steps:
determining K dimming control parameters corresponding to the K dimming groups, wherein the dimming groups correspond to the dimming control parameters one by one, and the dimming control parameters corresponding to different dimming groups are the same or different;
and sending control information to the plurality of light controllers, wherein the control information comprises the K dimming control parameters, so that each light controller analyzes the dimming control parameters corresponding to the dimming group where the light controller is located from the control information, and performs light control based on the dimming control parameters.
The application provides a light control device, a plurality of light controllers in the target scene are divided into K group of adjusting luminance, K is the positive integer that is greater than 1, and the device is applied to gateway equipment, and the device includes:
the determining module is used for determining K dimming control parameters corresponding to the K dimming groups, the dimming groups are in one-to-one correspondence with the dimming control parameters, and the dimming control parameters corresponding to different dimming groups are the same or different;
and the sending module is used for sending control messages to the plurality of light controllers, wherein the control messages comprise the K dimming control parameters, so that each light controller analyzes the dimming control parameters corresponding to the dimming group where the light controller is located from the control messages, and performs light control based on the dimming control parameters.
The application provides an electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; the processor is configured to execute machine executable instructions to implement the light control method of the above example.
As can be seen from the above technical solution, in the embodiment of the present application, the same control message may be sent to all light controllers, where the control message includes K dimming control parameters corresponding to K dimming groups, so that each light controller may parse the dimming control parameters corresponding to the dimming group where the light controller is located from the control message, and perform light control based on the dimming control parameters. The unified control of a plurality of light controllers can be realized, the network interference of dimming control to other devices can be effectively reduced, and the overall intelligent home network environment is improved. The whole service scene switching can be completed through one control message, different dimming control parameters of a plurality of dimming groups can be controlled uniformly, uniform gapless control among different dimming groups can be completed, the control success rate and the control efficiency can be improved, the number of the control messages can be greatly reduced, and therefore the network storm risk is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will briefly describe the drawings that are required to be used in the embodiments of the present application or the description in the prior art, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may also be obtained according to these drawings of the embodiments of the present application for a person having ordinary skill in the art.
FIG. 1 is a flow chart of a light control method in one embodiment of the present application;
FIG. 2 is a networking schematic of a target scenario in one embodiment of the present application;
FIG. 3 is a schematic diagram of partitioning of dimming groups in one embodiment of the present application;
FIG. 4 is a flow chart of a light control method in one embodiment of the present application;
fig. 5 is a schematic structural view of a light control device according to an embodiment of the present application;
fig. 6 is a hardware configuration diagram of an electronic device in an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to any or all possible combinations including one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. Depending on the context, furthermore, the word "if" used may be interpreted as "at … …" or "at … …" or "in response to a determination".
In this embodiment of the present application, a light control method is provided, where a plurality of light controllers in a target scene are divided into K dimming groups, where K may be a positive integer greater than 1, and the method may be applied to a gateway device, as shown in fig. 1, and is a flow diagram of the method, and the method may include:
step 101, determining K dimming control parameters corresponding to the K dimming groups, wherein the dimming groups correspond to the dimming control parameters one by one, and the dimming control parameters corresponding to different dimming groups are the same or different.
Step 102, a control message is sent to a plurality of light controllers, where the control message may include K dimming control parameters, so that each light controller parses, from the control message, a dimming control parameter corresponding to a dimming group in which the light controller is located, and performs light control based on the dimming control parameter.
In one possible implementation, for each dimming group, the dimming control parameter corresponding to the dimming group may include: the group identification corresponding to the dimming group and the switch state corresponding to the dimming group are in an on state or an off state, wherein the on state is used for indicating to turn on the light, and the off state is used for indicating to turn off the light; if the switch state is the on state, the dimming control parameters corresponding to the dimming group may further include: and the brightness parameter value and/or the color temperature parameter value corresponding to the dimming group.
For example, for each dimming group, if the dimming control parameter corresponding to the dimming group includes a brightness parameter value, the brightness parameter value corresponding to the dimming group may be determined as follows: acquiring an initial brightness proportion corresponding to the configured dimming group, wherein the initial brightness proportion is a proportion between an actual brightness value and a brightness maximum value; an actual luminance value (i.e., a luminance parameter value) corresponding to the dimming group is determined based on the initial luminance proportion and the luminance maximum value, and the actual luminance value is used to control the actual luminance of the lamp light.
For example, for each dimming group, if the dimming control parameter corresponding to the dimming group includes a color temperature parameter value, the color temperature parameter value corresponding to the dimming group may be determined as follows: acquiring a target color temperature value corresponding to the configured dimming group; determining a target color temperature value as a color temperature parameter value corresponding to the dimming group; or converting the target color temperature value into a mapped color temperature value in a target value area based on the configured target mapping relation, and determining the mapped color temperature value as a color temperature parameter value corresponding to the dimming group. If the color temperature parameter value is a target color temperature value, the light controller controls the actual color temperature of the light based on the target color temperature value; if the color temperature parameter value is a mapped color temperature value, the lamp light controller controls an actual color temperature of the lamp light based on the target color temperature value after converting the mapped color temperature value into the target color temperature value based on the target mapping relation.
In one possible implementation, before determining K dimming control parameters corresponding to the K dimming groups, the plurality of light controllers in the target scene may be further divided into the K dimming groups based on the configured group division information, and a group identifier may be set for each dimming group. On the basis, for each dimming group, an identification setting message can be sent to the light controllers in the dimming group, and the identification setting message can comprise the group identification corresponding to the dimming group, so that the light controllers analyze and store the group identification corresponding to the dimming group where the light controllers are located from the identification setting message.
In one possible implementation manner, after determining K dimming control parameters corresponding to the K dimming groups, the K dimming control parameters may be encrypted by using the target key to obtain encrypted K dimming control parameters; based on this, the control message may include K encrypted dimming control parameters, and after each light controller receives the control message, the target key is used to decrypt the K encrypted dimming control parameters, so as to obtain the dimming control parameters corresponding to the dimming group where the light controller is located.
For example, before determining K dimming control parameters corresponding to the K dimming groups, user key data may also be obtained from the application platform, and a first key setting message may be sent to all light controllers, where the first key setting message may include the user key data, so that each light controller parses and stores the user key data from the first key setting message. And, a random number may also be generated and a target key is generated based on the random number and the user key data; a second key set message is sent to all of the light controllers, the second key set message may include the random number, such that each light controller parses the random number from the second key set message and generates a target key based on the random number and the user key data.
As can be seen from the above technical solution, in the embodiment of the present application, the same control message may be sent to all light controllers, where the control message includes K dimming control parameters corresponding to K dimming groups, so that each light controller may parse the dimming control parameters corresponding to the dimming group where the light controller is located from the control message, and perform light control based on the dimming control parameters. The unified control of a plurality of light controllers can be realized, the network interference of dimming control to other devices can be effectively reduced, and the overall intelligent home network environment is improved. The whole service scene switching can be completed through one control message, different dimming control parameters of a plurality of dimming groups can be controlled uniformly, uniform gapless control among different dimming groups can be completed, the control success rate and the control efficiency can be improved, the number of the control messages can be greatly reduced, and therefore the network storm risk is reduced.
The above technical solutions of the embodiments of the present application are described below with reference to specific application scenarios.
Referring to fig. 2, a networking schematic diagram of a target scene is shown, where the target scene may be any scene of the smart home, which is not limited. The target scene may include a gateway device 21 (such as an intelligent gateway) and a plurality of light controllers 22 (for example, 6 light controllers are shown in fig. 2, and the number of light controllers may be more or less, which is not limited thereto), and may include other types of devices, which are not limited thereto.
The gateway device 21 is configured to implement management of a plurality of light controllers 22, and can implement light control in cooperation with the light controllers 22. The light controller 22 may be integrated on the lamp for light control. For example, the light controller 22 may be integrated on the LED lamp to perform light control on the LED lamp, the light controller 22 may be integrated on the color lamp to perform light control on the color lamp, the light controller 22 may be integrated on the color temperature lamp to perform light control on the color temperature lamp, and of course, the above is just a few examples, which is not limited thereto.
The gateway device 21 and the light controller 22 need to support the same wireless protocol to communicate wirelessly based on the wireless protocol, which may include, but is not limited to: the type of the Zigbee wireless protocol, bluetooth wireless protocol, wiFi wireless protocol, Z-Wave wireless protocol, etc. is not limited.
In one possible implementation, the gateway device 21 may divide all light controllers within the target scene into K dimming groups based on the configured group division information, where K may be a positive integer greater than 1. The group division information is used to represent the division policy of all the light controllers, and may be group division information configured by a user, or may be group division information autonomously generated by the gateway device 21, which is not limited. When all light controllers in the target scene are divided into K dimming groups, the light controllers can only be divided into one dimming group and cannot be simultaneously divided into a plurality of dimming groups for each light controller.
For example, the group division information is used to indicate that the light controllers in the same room are divided into the same dimming group, and if the target scene has three rooms, the gateway device 21 may divide the light controllers in the first room into the dimming group a1, may divide the light controllers in the second room into the dimming group a2, and may divide the light controllers in the third room into the dimming group a3.
For another example, the group division information is used to indicate that the light controller 22-1 and the light controller 22-2 are divided into the same dimming group, the light controller 22-3 and the light controller 22-4 are divided into the same dimming group, and the light controller 22-5 and the light controller 22-6 are divided into the same dimming group, and then, based on the group division information, the gateway device 21 may divide the light controller 22-1 and the light controller 22-2 into the dimming group a1, may divide the light controller 22-3 and the light controller 22-4 into the dimming group a2, and may divide the light controller 22-5 and the light controller 22-6 into the dimming group a3.
Of course, the above is merely an example, and the following procedure takes the dimming group a1 including the light controller 22-1 and the light controller 22-2, the dimming group a2 including the light controller 22-3 and the light controller 22-4, and the dimming group a3 including the light controller 22-5 and the light controller 22-6 as an example.
After dividing all the light controllers into K dimming groups, the gateway device 21 may also set a group identifier for each dimming group, which is not limited in the setting manner, as long as the group identifiers corresponding to different dimming groups are different, that is, the group identifiers have uniqueness. For example, the group identifier set by the gateway device 21 for the dimming group a1 is 00 (binary value), the group identifier set by the gateway device 21 for the dimming group a2 is 01, and the group identifier set by the gateway device 21 for the dimming group a3 is 10.
After the gateway device 21 sets the group identifier for each dimming group, the gateway device 21 may send an identifier setting message to each light controller in the dimming group, where the identifier setting message may include the group identifier corresponding to the dimming group, so that the light controller parses and stores the group identifier corresponding to the dimming group where the light controller is located from the identifier setting message.
For example, the gateway device 21 transmits an identification setting message based on a wireless protocol (such as Zigbee, bluetooth, wiFi, Z-Wave, etc.) to the light controller 22-1, the identification setting message may include the group identification 00 of the dimming group a1, and the light controller 22-1 may parse the group identification 00 of the dimming group a1 from the identification setting message after receiving the identification setting message, and store the group identification 00 of the dimming group a1 in a designated storage area. Similarly, the light controller 22-2 may store the group identification 00 of the dimming group a1, the light controller 22-3 may store the group identification 01 of the dimming group a2, the light controller 22-4 may store the group identification 01 of the dimming group a2, the light controller 22-5 may store the group identification 10 of the dimming group a3, and the light controller 22-6 may store the group identification 10 of the dimming group a 3.
In summary, each light controller may store the group identifier corresponding to the dimming group where the light controller is located, as shown in fig. 3, the dimming group a1 includes the light controller 22-1 and the light controller 22-2, the dimming group a2 includes the light controller 22-3 and the light controller 22-4, the dimming group a3 includes the light controller 22-5 and the light controller 22-6, the light controller 22-1 and the light controller 22-2 store the group identifier 00 of the dimming group a1, the light controller 22-3 and the light controller 22-4 store the group identifier 01 of the dimming group a2, and the light controller 22-5 and the light controller 22-6 store the group identifier 10 of the dimming group a 3.
In one possible implementation, if the division policy of all light controllers changes, that is, the dimming groups need to be re-divided, the gateway device 21 may divide all light controllers in the target scene into M dimming groups based on the reconfigured group division information, where M may be a positive integer greater than 1, and M and K may be the same or different. After dividing all the light controllers into M dimming groups, the gateway device 21 may further set a group identifier for each dimming group, and for each dimming group, the gateway device 21 may send an identifier setting message to each light controller in the dimming group, where the identifier setting message may include a group identifier corresponding to the dimming group, so that the light controller parses and stores the group identifier corresponding to the dimming group where the light controller is located from the identifier setting message.
Based on the above application scenario, taking an example that a plurality of light controllers in a target scenario are divided into K dimming groups as an illustration, in this embodiment of the present application, a light control method is provided, as shown in fig. 4, and is a schematic flow chart of the light control method, where the light control method may include the following steps:
In step 401, the gateway device determines K dimming control parameters corresponding to the K dimming groups, where the dimming groups correspond to the dimming control parameters one by one, and the dimming control parameters corresponding to different dimming groups are the same or different.
For example, the gateway device 21 determines a dimming control parameter b1 corresponding to the dimming group a1, a dimming control parameter b2 corresponding to the dimming group a2, and a dimming control parameter b3 corresponding to the dimming group a 3; the dimming control parameter b1 is the same as or different from the dimming control parameter b2, the dimming control parameter b1 is the same as or different from the dimming control parameter b3, and the dimming control parameter b2 is the same as or different from the dimming control parameter b 3.
In one possible implementation, for each dimming group, the dimming control parameter corresponding to the dimming group may include a group identifier corresponding to the dimming group, and a switch state corresponding to the dimming group, where the switch state is an on state or an off state. If the switch state is the on state, the dimming control parameter corresponding to the dimming group may further include a brightness parameter value and/or a color temperature parameter value corresponding to the dimming group.
For example, since the dimming control parameters corresponding to each dimming group are obtained in the same manner, step 401 is described taking the dimming control parameter b1 corresponding to the dimming group a1 as an example for convenience of description. For example, the following steps may be adopted to obtain the dimming control parameter b1 corresponding to the dimming group a 1:
In step 4011, the gateway device 21 obtains the group identifier corresponding to the dimming group a 1.
For example, since the gateway device 21 can store the group identifier corresponding to each dimming group, the gateway device 21 can obtain the group identifier corresponding to the dimming group a1, i.e., the group identifier 00.
In step 4012, gateway device 21 obtains the switch state corresponding to dimming group a 1.
For example, the gateway device 21 may receive configuration information (such as configuration information sent by the user to the gateway device 21 through the mobile terminal, or configuration information input by the user on the gateway device 21, etc., without limitation), where the configuration information may include a switch state corresponding to the dimming group a 1. Assuming that the user wishes to turn ON the lights for each light controller in dimming group a1, the switch state may be an ON state (i.e., an ON state), in which case further steps need to be performed to continue to obtain dimming control parameters. Assuming that the user wishes to turn OFF the lights of the light controllers within the dimming group a1, the switch state may be an OFF state (i.e., an OFF state), in which case no further steps are performed, and the dimming control parameter b1 corresponding to the dimming group a1 has been obtained, and the dimming control parameter b1 includes the group identification 00 and the OFF state.
In step 4013, the gateway device 21 obtains the brightness parameter value corresponding to the dimming group a 1.
For example, the gateway device 21 may receive configuration information (such as configuration information sent by the user to the gateway device 21 through the mobile terminal, or configuration information input by the user on the gateway device 21, etc.), where the configuration information may include an initial brightness ratio (i.e., a configured initial brightness ratio) corresponding to the dimming group a1, where the initial brightness ratio may be a ratio between an actual brightness value and a brightness maximum value, such as 50%, 70%, 80%, etc., where 50% represents a ratio between the actual brightness value and the brightness maximum value of 50%, and so on.
After obtaining the initial luminance proportion, the gateway apparatus 21 may determine an actual luminance value corresponding to the dimming group a1 based on the initial luminance proportion and the luminance maximum value, the actual luminance value being used to control the actual luminance of the lamp light, and then determine the actual luminance value as a luminance parameter value corresponding to the dimming group a 1.
For example, the gateway apparatus 21 may determine the actual brightness value corresponding to the dimming group a1 using the following formula (1), and of course, the following formula (1) is merely an example, and the determination manner is not limited.
P actual =(P initial *P max ) 100% formula (1)
In formula (1), P actual Represents the actual brightness value corresponding to the dimming group a1, P initial Represents the initial brightness ratio, such as 50%, P, corresponding to the dimming group a1 max Representing the brightness maximum.
For example, assume that the actual brightness value interval is 0-254, i.e. the dimming range of the light controllerAround 0-254, then the brightness maximum P max May be 254. On this basis, if the initial luminance ratio corresponding to the dimming group a1 is 50%, it is determined that the actual luminance value corresponding to the dimming group a1 is 127 (254×0.5), that is, the luminance parameter value corresponding to the dimming group a1 is 127. If the initial brightness ratio corresponding to the dimming group a1 is 70%, it is determined that the actual brightness value corresponding to the dimming group a1 is 178 (254×0.7), that is, the brightness parameter value corresponding to the dimming group a1 is 178, and so on.
In summary, the gateway device 21 may obtain the brightness parameter value corresponding to the dimming group a 1.
In step 4014, the gateway device 21 obtains the color temperature parameter value corresponding to the dimming group a 1.
For example, the gateway device 21 may receive configuration information (such as configuration information sent by the user to the gateway device 21 through the mobile terminal, or configuration information input by the user on the gateway device 21, etc.), where the configuration information may include a target color temperature value (i.e., a configured target color temperature value) corresponding to the dimming group a1, where the target color temperature value is used to control an actual color temperature of the light, for example, the target color temperature value may be 2700K, 4000K, etc.
The range of the target color temperature value may be [2700k,6500k ], that is, any color temperature value in [2700k,6500k ] may be configured as the target color temperature value, and the value of the target color temperature value is not limited.
In one possible embodiment, after obtaining the target color temperature value corresponding to the dimming group a1, the target color temperature value may be used as the color temperature parameter value corresponding to the dimming group a1, that is, the color temperature parameter value is the target color temperature value.
In another possible embodiment, after obtaining the target color temperature value corresponding to the dimming group a1, the gateway device 21 may convert the target color temperature value into a mapped color temperature value in the target value region based on the configured target mapping relationship (i.e., the target function relationship), and use the mapped color temperature value as the color temperature parameter value corresponding to the dimming group a1, that is, the color temperature parameter value is the mapped color temperature value. In this embodiment, the number of transmission bits is reduced by converting the target color temperature value into a mapped color temperature value in the target numerical value region, saving network resources.
For example, assuming that the color temperature parameter value is transmitted through 1 byte (8 bits), the target value region may be 0-255, i.e., 1 byte may represent only 256 values such as 0-255, and since the target color temperature value is in the range of [2700k,6500k ], it is necessary to map [2700, 6500] to 0-255. On this basis, a target mapping relationship (i.e., a target function relationship) may be configured, and the target mapping relationship is used to convert the target color temperature value of the [2700, 6500] interval into a mapped color temperature value of the 0-255 interval, so long as the target mapping relationship is not limited, and the numerical value of the [2700, 6500] interval can be converted into the numerical value of the 0-255 interval.
For example, an example of the target mapping relationship (i.e., the target function relationship) may be shown in formula (2), and of course, the following formula (2) is only an example, and the target mapping relationship is not limited thereto.
W mapping =1000000/W target -153 formula (2)
In the formula (2), W mapping Represents the mapped color temperature value, W target Representing the target color temperature value. As can be seen from the formula (2), the range of the target color temperature value is [2700K,6500K]When the target color temperature value is 6500, the mapped color temperature value is 1000000/6500-153, namely the mapped color temperature value is 0, when the target color temperature value is 2700, the mapped color temperature value is 1000000/2700-153, namely the mapped color temperature value is 217, obviously, the target mapping relation can be represented by [2700, 6500]The target color temperature value of the interval is converted into a mapped color temperature value of the interval 0-255.
For example, assuming that the target color temperature value corresponding to the dimming group a1 is 4000K, it is determined that the mapped color temperature value corresponding to the dimming group a1 is 97, that is, the color temperature parameter value corresponding to the dimming group a1 is 97.
In summary, the gateway device 21 may obtain the color temperature parameter value corresponding to the dimming group a 1.
In step 4015, the gateway device 21 obtains the dimming control parameter b1 corresponding to the dimming group a1, where the dimming control parameter b1 includes the group identifier and the off state corresponding to the dimming group a 1. Or, the dimming control parameter b1 includes a group identifier, an on state, a brightness parameter value and a color temperature parameter value corresponding to the dimming group a 1.
Thus, step 401 is completed, and K dimming control parameters corresponding to the K dimming groups may be obtained.
Step 402, the gateway device sends a control message to a plurality of light controllers (i.e., all light controllers in all dimming groups), where the control message may include K dimming control parameters.
For example, after obtaining K dimming control parameters corresponding to the K dimming groups, the gateway device 21 may generate a control message, where the control message may be a broadcast packet, such as a broadcast packet based on a wireless protocol (e.g. Zigbee, bluetooth, wiFi, Z-Wave, etc.), and the format of the control message is not limited, so long as the control message includes K dimming control parameters. For example, referring to table 1, this is an example of the control message, and of course, table 1 is merely taken as an example, and the content of the control message is not limited.
TABLE 1
Figure BDA0004015077650000111
In table 1, cmd ID is a binary identification, which may be 2 bytes, for indicating that the current control message is a control message carrying dimming control parameters, and that the current control message may be distinguished from other types of messages by Cmd ID. NUM is a 1 byte value that is used to indicate the number of dimming control parameters that the current control message carries, as indicated by 3 (00000011) to carry 3 dimming control parameters.
For the first dimming control parameter (i.e., dimming control parameter b1 corresponding to dimming group a 1), the dimming control parameter includes group identification 00, switch state ON, brightness parameter value 127 (which may be represented in binary in table 1), and color temperature parameter value 97 (which may be represented in binary in table 1). The group identifier, the switch state, the brightness parameter value and the color temperature parameter value may be 1 byte.
For a second dimming control parameter (i.e. dimming control parameter b2 corresponding to dimming group a 2), the dimming control parameter comprises a group identification 01, a switch state ON, a brightness parameter value 178 (which may be represented in binary in table 1) and a color temperature parameter value 217 (which may be represented in binary in table 1).
For the third dimming control parameter (i.e. the dimming control parameter b3 corresponding to the dimming group a 3), the dimming control parameter comprises a group identification 10, a switch state OFF, a brightness parameter value and a color temperature parameter value being null.
After obtaining the control message shown in table 1, the gateway device may send the control message to all light controllers in all dimming groups, such as light controller 22-1, light controller 22-2, light controller 22-3, light controller 22-4, light controller 22-5, light controller 22-6, and so on.
Step 403, for each light controller, the light controller analyzes the dimming control parameter corresponding to the dimming group where the light controller is located from the control message, for example, based on the group identifier stored by the light controller, the dimming control parameter corresponding to the group identifier is analyzed from the control message.
Illustratively, the light controller 22-1 has previously stored the group identifier 00 of the dimming group a1, so that, after receiving the control message, the light controller 22-1 may parse the first dimming control parameter (i.e., the dimming control parameter b1 corresponding to the dimming group a 1) from the control message, that is, since the group identifier 00 in the dimming control parameter is identical to the group identifier 00 stored in advance by the light controller 22-1, the first dimming control parameter may be parsed, where the dimming control parameter includes the group identifier 00, the ON-off state, the brightness parameter value 127, and the color temperature parameter value 97. Similarly, the light controller 22-2 may parse the first dimming control parameter b1 from the control message after receiving the control message, the light controller 22-3 may parse the second dimming control parameter b2 from the control message after receiving the control message, the light controller 22-4 may parse the second dimming control parameter b2 from the control message after receiving the control message, the light controller 22-5 may parse the third dimming control parameter b3 from the control message after receiving the control message, and the light controller 22-6 may parse the third dimming control parameter b3 from the control message after receiving the control message.
And 404, the light controller performs light control based on the analyzed dimming control parameters.
For example, if the on-OFF state in the dimming control parameter is an OFF state (OFF state) for indicating turning OFF of the lamp, the lamp controller turns OFF the lamp based on the dimming control parameter.
For example, if the ON state in the dimming control parameter is an ON state (ON state) for indicating to turn ON the light, the light controller turns ON the light based ON the dimming control parameter.
When the light controller starts the light based on the dimming control parameter, the light control can be performed based on the brightness parameter value and the color temperature parameter value. For example, the luminance parameter value is an actual luminance value for controlling the actual luminance of the lamp, and thus the lamp controller may adjust the lamp to the actual luminance value.
For example, if the color temperature parameter value is a target color temperature value, the target color temperature value is used for controlling the actual color temperature of the light, so that the light controller controls the actual color temperature of the light based on the target color temperature value, that is, the light controller can adjust the actual color temperature of the light to the target color temperature value. Or if the color temperature parameter value is a mapped color temperature value, the light controller may convert the mapped color temperature value into a target color temperature value based on the target mapping relationship, and after converting the mapped color temperature value into the target color temperature value, the light controller may control an actual color temperature of the light based on the target color temperature value, that is, the light controller may adjust the actual color temperature of the light to the target color temperature value.
Wherein the light controller may maintain a target mapping relationship that is the same as the target mapping relationship maintained by the gateway device 21, based on which the light controller may convert the mapped color temperature value into a target color temperature value. For example, referring to the target mapping relationship shown in the formula (2), the target color temperature value can be obtained after substituting the mapped color temperature value into the target mapping relationship shown in the formula (2).
In one possible implementation manner, when the gateway device sends the control message to all the light controllers in a broadcast manner, there is a risk of losing the control message in a scene of large interference environment, so the gateway device may start a timer after sending the control message. And before the timer is overtime, if the response messages returned by all the light controllers are received, closing the timer. When the timer times out, if a certain light controller or response messages returned by certain light controllers are not received, the gateway equipment independently sends control messages to the light controllers which do not return the response messages until response messages returned by all the light controllers are received, and the control messages are stopped from being sent so as to ensure that all the light controllers receive the control messages.
For each light controller, after receiving the control message sent by the gateway device, a reply message may be returned to the gateway device, where the reply message indicates that the light controller has correctly received the control message.
In a possible implementation manner, after obtaining the K dimming control parameters, the gateway device may further encrypt the K dimming control parameters with the target key to obtain the encrypted K dimming control parameters before step 402. For example, the entire content of the control message shown in table 1 may be encrypted, and for example, only K dimming control parameters may be encrypted, which is not limited.
Based on this, in step 402, when the gateway device sends a control message to all light controllers in all dimming groups, the control message may include K dimming control parameters after encryption.
In step 403, after receiving the control message, each light controller decrypts the K encrypted dimming control parameters by using the target key, and then, the light controller parses the dimming control parameters corresponding to the dimming group in which the light controller is located from the K decrypted dimming control parameters.
The target key may be a symmetric key based on AES, DES, 3DES, IDEA, RC5, RC6, or the like, or an asymmetric key, for example, and the type of the target key is not limited.
Illustratively, the gateway device and all of the light controllers need to obtain the target key, and the target key obtained by the gateway device and the target key obtained by each of the light controllers may be the same.
In one possible implementation, in order to make the target key obtained by the gateway device and the target key obtained by each light controller the target key may be obtained as follows:
step S11, the gateway equipment acquires the user key data from the application platform.
Step S12, the gateway device sends a first key setting message to all light controllers, where the first key setting message may include user key data. For each light controller, after receiving the first key setup message, the light controller parses and stores the user key data from the first key setup message.
Illustratively, the gateway device needs to obtain user key data from the application platform before the light control process, i.e. before step 401 is performed. For example, the user may register on the application platform, and register own user information (such as user identification, mobile phone number, etc., without limitation) on the application platform, and the application platform may generate user key data based on the user information, without limitation.
The user may also register information of the gateway device with the application platform, and the application platform may send user key data to the gateway device based on the information of the gateway device after learning the information of the gateway device.
After obtaining the user key data, the gateway device may store the user key data and send a first key setup message based on a wireless protocol (e.g., zigbee, bluetooth, wiFi, Z-Wave, etc.) to the light controllers, e.g., send the first key setup message to each light controller individually, where the first key setup message may include the user key data. After receiving the first key setting message, the light controller may parse the user key data from the first key setting message and store the user key data.
The gateway device, for example, need only acquire the user key data once and store the user key data, and the subsequent process need not repeatedly acquire the user key data from the application platform. The light controller only needs to acquire the user key data once and store the user key data, and the follow-up process does not need to repeatedly acquire the user key data from the gateway equipment. In summary, the user key data is not changed after being stored.
Step S13, the gateway equipment generates a random number and generates a target key based on the random number and user key data.
Step S14, the gateway device sends a second key setting message to all light controllers, where the second key setting message may include the random number. For each light controller, after receiving the second key set message, the light controller parses the random number from the second key set message and generates a target key based on the random number and user key data (i.e., user key data stored locally by the light controller).
In one possible implementation, the gateway device may generate a random number, and the generation manner of the random number is not limited. After obtaining the random number, the gateway device may generate a target key based on the random number and the user key data, for example, the random number and the user key data may be combined into the target key, the random number may be deformed or the user key data may be deformed and then combined into the target key, without limitation.
The gateway device may also send a second key setup message based on a wireless protocol (e.g., zigbee, bluetooth, wiFi, Z-Wave, etc.) to the light controllers after obtaining the random number, e.g., send the second key setup message to each light controller individually, where the second key setup message may include the random number.
For the light controller, after receiving the second key setting message, the light controller may parse the random number from the second key setting message and generate a target key based on the random number and the user key data, for example, the random number and the user key data may be combined into the target key, the random number may be deformed or the user key data may be deformed, and then the target key may be combined, which is not limited.
In summary, the gateway device may obtain the target key, each light controller may obtain the target key, and the target key obtained by the gateway device is the same as the target key obtained by each light controller.
In another possible implementation, the gateway device may generate a random number, and the generation manner of the random number is not limited. After obtaining the random number, the gateway device may encrypt the random number with the user key data to obtain the local key, and then generate the target key based on the local key and the user key data, for example, the local key and the user key data may be combined into the target key, the local key may be deformed or the user key data may be deformed, and then the target key may be combined, which is not limited.
The gateway device may also send a second key setup message based on a wireless protocol (e.g., zigbee, bluetooth, wiFi, Z-Wave, etc.) to the light controllers after obtaining the local key, e.g., send the second key setup message to each light controller individually, where the second key setup message may include the local key.
For the light controller, after receiving the second key setting message, the light controller may parse the local key from the second key setting message and generate a target key based on the local key and the user key data, for example, the local key and the user key data may be combined into the target key, the local key may be deformed or the user key data may be deformed and then combined into the target key, which is not limited.
In summary, the gateway device may obtain the target key, each light controller may obtain the target key, and the target key obtained by the gateway device is the same as the target key obtained by each light controller.
Illustratively, after the target key is generated, the target key will not change unless the gateway device completely deletes the light controller, e.g., the gateway device resets, clearing the local key.
According to the technical scheme, in the embodiment of the application, all the light controllers can be controlled by only one control message, even if the number of the light controllers is relatively large, the light control can be realized by one control message, and each light controller does not need to be independently controlled, so that the control complexity is low, and a large number of control messages are not needed. Through the cooperation of gateway equipment and light controller, can realize the unified control of a plurality of light controllers, also can effectively reduce the network interference of dimming control to other equipment, improve whole intelligent house network environment, realize intelligent house, thing intercommunication, happy comfortable life of sharing. The whole service scene switching can be completed through one control message, different dimming control parameters of a plurality of dimming groups can be controlled uniformly, uniform gapless control among different dimming groups can be completed, the control success rate and the control efficiency can be improved, the number of the control messages can be greatly reduced, and therefore the network storm risk is reduced.
Based on the same application concept as the above method, in this embodiment of the present application, a light control device is provided, where a plurality of light controllers in a target scene are divided into K dimming groups, where K is a positive integer greater than 1, and referring to fig. 5, a schematic structural diagram of the device is shown, and the device is applied to a gateway device, where the device includes: the determining module 51 is configured to determine K dimming control parameters corresponding to the K dimming groups, where the dimming groups correspond to the dimming control parameters one by one, and the dimming control parameters corresponding to different dimming groups are the same or different; and the sending module 52 is configured to send a control message to the plurality of light controllers, where the control message includes the K dimming control parameters, so that each light controller parses, from the control message, a dimming control parameter corresponding to a dimming group in which the light controller is located, and performs light control based on the dimming control parameter.
For each dimming group, the dimming control parameters corresponding to the dimming group include: the dimming system comprises a group identifier corresponding to the dimming group and a switch state corresponding to the dimming group, wherein the switch state is an on state or an off state, the on state is used for indicating to turn on lamplight, and the off state is used for indicating to turn off lamplight; if the switch state is an on state, the dimming control parameters corresponding to the dimming group further include: and the brightness parameter value and/or the color temperature parameter value corresponding to the dimming group.
For example, for each dimming group, if the dimming control parameter corresponding to the dimming group includes a brightness parameter value, the determining module 51 determines the brightness parameter value corresponding to the dimming group in the following manner: acquiring an initial brightness proportion corresponding to the configured dimming group, wherein the initial brightness proportion is a proportion between an actual brightness value and a brightness maximum value; and determining an actual brightness value corresponding to the dimming group based on the initial brightness proportion and the brightness maximum value, wherein the actual brightness value is used for controlling the actual brightness of the lamplight.
For example, for each dimming group, if the dimming control parameter corresponding to the dimming group includes a color temperature parameter value, the determining module 51 determines the color temperature parameter value corresponding to the dimming group in the following manner: acquiring a target color temperature value corresponding to the configured dimming group; determining a target color temperature value as a color temperature parameter value corresponding to the dimming group; or converting the target color temperature value into a mapped color temperature value in a target numerical value area based on the configured target mapping relation, and determining the mapped color temperature value as a color temperature parameter value corresponding to the dimming group; if the color temperature parameter value is a target color temperature value, the light controller controls the actual color temperature of the light based on the target color temperature value; and if the color temperature parameter value is the mapped color temperature value, the lamplight controller controls the actual color temperature of lamplight based on the target color temperature value after converting the mapped color temperature value into the target color temperature value based on the target mapping relation.
Illustratively, the apparatus further comprises a partitioning module and a setting module; the dividing module is used for dividing the plurality of light controllers in the target scene into K dimming groups based on the configured group dividing information; the setting module is used for setting group identification for each dimming group; the sending module 52 is further configured to send, for each dimming group, an identifier setting message to a light controller in the dimming group, where the identifier setting message includes a group identifier corresponding to the dimming group, so that the light controller parses and stores, from the identifier setting message, a group identifier corresponding to the dimming group in which the light controller is located.
Illustratively, the apparatus further includes an encryption module; the encryption module is used for encrypting the K dimming control parameters by adopting a target key to obtain K dimming control parameters after encryption; and after each lamplight controller receives the control message, decrypting the K encrypted dimming control parameters by adopting a target key to obtain the dimming control parameters corresponding to the dimming group where the lamplight controller is located.
Illustratively, the sending module 52 is further configured to obtain user key data from an application platform, and send a first key setting message to all light controllers, where the first key setting message includes the user key data, so that each light controller parses and stores the user key data from the first key setting message; the sending module 52 is further configured to generate a random number, and generate the target key based on the random number and the user key data; and sending a second key setting message to all the light controllers, wherein the second key setting message comprises the random number, so that each light controller analyzes the random number from the second key setting message, and generates the target key based on the random number and the user key data.
Based on the same application concept as the above method, an electronic device (such as a gateway device or a light controller) is provided in the embodiment of the present application, and referring to fig. 6, the electronic device includes a processor 61 and a machine-readable storage medium 62, where the machine-readable storage medium 62 stores machine-executable instructions that can be executed by the processor 61; the processor 61 is configured to execute machine-executable instructions to implement the light control method disclosed in the above example.
Based on the same application concept as the above method, the embodiment of the application further provides a machine-readable storage medium, where a plurality of computer instructions are stored on the machine-readable storage medium, and when the computer instructions are executed by a processor, the light control method disclosed in the above example of the application can be implemented.
Wherein the machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information, such as executable instructions, data, or the like. For example, a machine-readable storage medium may be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, a storage drive (e.g., hard drive), a solid state drive, any type of storage disk (e.g., optical disk, dvd, etc.), or a similar storage medium, or a combination thereof.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer entity or by an article of manufacture having some functionality. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Moreover, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A light control method, wherein a plurality of light controllers in a target scene are divided into K dimming groups, K being a positive integer greater than 1, the method being applied to a gateway device, the method comprising:
determining K dimming control parameters corresponding to the K dimming groups, wherein the dimming groups correspond to the dimming control parameters one by one, and the dimming control parameters corresponding to different dimming groups are the same or different;
and sending control information to the plurality of light controllers, wherein the control information comprises the K dimming control parameters, so that each light controller analyzes the dimming control parameters corresponding to the dimming group where the light controller is located from the control information, and performs light control based on the dimming control parameters.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
for each dimming group, the dimming control parameters corresponding to the dimming group include: the dimming system comprises a group identifier corresponding to the dimming group and a switch state corresponding to the dimming group, wherein the switch state is an on state or an off state, the on state is used for indicating to turn on lamplight, and the off state is used for indicating to turn off lamplight;
if the switch state is an on state, the dimming control parameters corresponding to the dimming group further include: and the brightness parameter value and/or the color temperature parameter value corresponding to the dimming group.
3. The method of claim 2, wherein the step of determining the position of the substrate comprises,
for each dimming group, if the dimming control parameter corresponding to the dimming group includes a brightness parameter value, determining the brightness parameter value corresponding to the dimming group by adopting the following manner:
acquiring an initial brightness proportion corresponding to the configured dimming group, wherein the initial brightness proportion is a proportion between an actual brightness value and a brightness maximum value; and determining an actual brightness value corresponding to the dimming group based on the initial brightness proportion and the brightness maximum value, wherein the actual brightness value is used for controlling the actual brightness of the lamplight.
4. The method of claim 2, wherein the step of determining the position of the substrate comprises,
for each dimming group, if the dimming control parameter corresponding to the dimming group includes a color temperature parameter value, determining the color temperature parameter value corresponding to the dimming group by adopting the following manner:
acquiring a target color temperature value corresponding to the configured dimming group;
determining the target color temperature value as a color temperature parameter value corresponding to the dimming group; or alternatively, the process may be performed,
converting the target color temperature value into a mapped color temperature value in a target numerical value area based on the configured target mapping relation, and determining the mapped color temperature value as a color temperature parameter value corresponding to the dimming group;
If the color temperature parameter value is a target color temperature value, the light controller controls the actual color temperature of the light based on the target color temperature value; if the color temperature parameter value is a mapped color temperature value, the lamp light controller controls an actual color temperature of the lamp light based on the target color temperature value after converting the mapped color temperature value into the target color temperature value based on the target mapping relation.
5. The method according to any one of claims 1-4, wherein prior to determining K dimming control parameters for the K dimming groups, the method further comprises:
dividing a plurality of light controllers in the target scene into K dimming groups based on the configured group division information, and setting group identification for each dimming group;
and sending an identification setting message to the light controllers in the dimming groups aiming at each dimming group, wherein the identification setting message comprises group identifications corresponding to the dimming groups, so that the light controllers analyze and store the group identifications corresponding to the dimming groups in which the light controllers are positioned from the identification setting message.
6. The method according to any one of claims 1-4, wherein after determining K dimming control parameters corresponding to the K dimming groups, the method further comprises: encrypting the K dimming control parameters by adopting a target key to obtain K dimming control parameters after encryption;
And after each lamplight controller receives the control message, decrypting the K encrypted dimming control parameters by adopting a target key to obtain the dimming control parameters corresponding to the dimming group where the lamplight controller is located.
7. The method of claim 6, wherein the step of providing the first layer comprises,
before determining the K dimming control parameters corresponding to the K dimming groups, the method further includes: acquiring user key data from an application platform, and sending a first key setting message to all light controllers, wherein the first key setting message comprises the user key data so that each light controller can analyze and store the user key data from the first key setting message;
generating a random number, generating the target key based on the random number and the user key data, and sending a second key setting message to all light controllers, wherein the second key setting message comprises the random number, so that each light controller analyzes the random number from the second key setting message, and generating the target key based on the random number and the user key data.
8. A light control apparatus, wherein a plurality of light controllers in a target scene are divided into K dimming groups, K being a positive integer greater than 1, the apparatus being applied to a gateway device, the apparatus comprising:
the determining module is used for determining K dimming control parameters corresponding to the K dimming groups, the dimming groups are in one-to-one correspondence with the dimming control parameters, and the dimming control parameters corresponding to different dimming groups are the same or different;
and the sending module is used for sending control messages to the plurality of light controllers, wherein the control messages comprise the K dimming control parameters, so that each light controller analyzes the dimming control parameters corresponding to the dimming group where the light controller is located from the control messages, and performs light control based on the dimming control parameters.
9. The apparatus of claim 8, wherein the device comprises a plurality of sensors,
wherein, for each dimming group, the dimming control parameters corresponding to the dimming group include: the dimming system comprises a group identifier corresponding to the dimming group and a switch state corresponding to the dimming group, wherein the switch state is an on state or an off state, the on state is used for indicating to turn on lamplight, and the off state is used for indicating to turn off lamplight; if the switch state is an on state, the dimming control parameters corresponding to the dimming group further include: brightness parameter values and/or color temperature parameter values corresponding to the dimming groups;
For each dimming group, if the dimming control parameter corresponding to the dimming group includes a brightness parameter value, the determining module determines the brightness parameter value corresponding to the dimming group by adopting the following manner: acquiring an initial brightness proportion corresponding to the configured dimming group, wherein the initial brightness proportion is a proportion between an actual brightness value and a brightness maximum value; determining an actual brightness value corresponding to the dimming group based on the initial brightness proportion and the brightness maximum value, wherein the actual brightness value is used for controlling the actual brightness of the lamplight;
for each dimming group, if the dimming control parameter corresponding to the dimming group includes a color temperature parameter value, the determining module determines the color temperature parameter value corresponding to the dimming group in the following manner: acquiring a target color temperature value corresponding to the configured dimming group; determining the target color temperature value as a color temperature parameter value corresponding to the dimming group; or converting the target color temperature value into a mapped color temperature value in a target numerical value area based on the configured target mapping relation, and determining the mapped color temperature value as a color temperature parameter value corresponding to the dimming group; if the color temperature parameter value is a target color temperature value, the light controller controls the actual color temperature of the light based on the target color temperature value; if the color temperature parameter value is a mapped color temperature value, the lamplight controller converts the mapped color temperature value into a target color temperature value based on a target mapping relation and then controls the actual color temperature of lamplight based on the target color temperature value;
The device further comprises a dividing module and a setting module; the dividing module is used for dividing the plurality of light controllers in the target scene into K dimming groups based on the configured group dividing information; the setting module is used for setting group identification for each dimming group; the sending module is further configured to send, for each dimming group, an identifier setting message to a light controller in the dimming group, where the identifier setting message includes a group identifier corresponding to the dimming group, so that the light controller parses and stores, from the identifier setting message, a group identifier corresponding to the dimming group where the light controller is located;
wherein the device further comprises an encryption module; the encryption module is used for encrypting the K dimming control parameters by adopting a target key to obtain K dimming control parameters after encryption; the control message comprises the K encrypted dimming control parameters, and after each lamplight controller receives the control message, the K encrypted dimming control parameters are decrypted by adopting a target key to obtain dimming control parameters corresponding to a dimming group where the lamplight controller is located;
The sending module is further configured to obtain user key data from an application platform, and send a first key setting message to all light controllers, where the first key setting message includes the user key data, so that each light controller parses and stores the user key data from the first key setting message; the sending module is further configured to generate a random number, and generate the target key based on the random number and the user key data; and sending a second key setting message to all the light controllers, wherein the second key setting message comprises the random number, so that each light controller analyzes the random number from the second key setting message, and generates the target key based on the random number and the user key data.
10. An electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; wherein the processor is configured to execute machine executable instructions to implement the method of any of claims 1-7.
CN202211667620.1A 2022-12-23 2022-12-23 Light control method, device and equipment Pending CN116056292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211667620.1A CN116056292A (en) 2022-12-23 2022-12-23 Light control method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211667620.1A CN116056292A (en) 2022-12-23 2022-12-23 Light control method, device and equipment

Publications (1)

Publication Number Publication Date
CN116056292A true CN116056292A (en) 2023-05-02

Family

ID=86113971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211667620.1A Pending CN116056292A (en) 2022-12-23 2022-12-23 Light control method, device and equipment

Country Status (1)

Country Link
CN (1) CN116056292A (en)

Similar Documents

Publication Publication Date Title
JP5850948B2 (en) Control of network lighting system
US20160143069A1 (en) System and method for multiple wi-fi devices automatically connecting to specified access point
EP1748597A1 (en) Method for managing hidden stations in a centrally controlled network
CN104871647A (en) Decentralized intelligent nodal lighting system
JP2017517994A (en) Wireless node with security key
CN111176130B (en) Equipment control method, equipment control method and equipment control system
US10172216B2 (en) Control of networked lighting devices
US10833885B2 (en) Efficient multicast group creation
JP5472389B2 (en) Wireless communication apparatus and wireless communication system
CN104994530A (en) Group gang control system and method based on group MAC (Media Access Control) address for plurality of pieces of Wi-Fi Internet of things equipment
CN111010324A (en) Household appliance ad hoc network method and system based on BLE MESH network protocol
WO2017101050A1 (en) Control method, control panel and control system for a smart home device
US11019045B2 (en) Secure group communication
US11576105B2 (en) Network message transmissions reduction systems and methods
US10447497B2 (en) Lighting network
KR102052483B1 (en) Seed code transmission method and system for location-based password service using evolved multimedia broadcast multicast services system in a cellular iot network
CN110609534A (en) Intelligent household control method and system
EP3345461B1 (en) Installing and commissioning transceivers coupled to loads
CN116056292A (en) Light control method, device and equipment
US11882207B2 (en) Method for securely transmitting lighting scenes over a computer network with cloud setup and authentication
CN114189399A (en) Intelligent household system based on LoRa and local mutual control method thereof
US11540107B2 (en) Commissioning method and apparatus with controlled joining mode
US20200374692A1 (en) System and Method for Processing of Private Beacons in a Mesh Network
CN112672335B (en) Bluetooth broadcast encryption communication method and system
JP6545224B2 (en) Communication apparatus, control method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination