Lighting control method, device and storage medium
By receiving wireless control instructions to decode spatial identification and lighting parameters, determine the control core and perform operations, the flexibility and accuracy of traditional lighting control solutions in complex scenarios is solved, and the efficiency and flexibility of intelligent lighting control is achieved, which is suitable for smart homes and smart office environments.
Patent Information
- Application Number
- CN202510742425.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2045-06-05
AI Technical Summary
Traditional lighting control solutions lack flexibility and accuracy in complex scenarios, making it difficult to meet diverse lighting control needs.
By receiving wireless control instructions based on preset protocols of the control terminal, decodes the spatial identification and lighting control parameters, and determines the matching control core based on the spatial identification, sends the lighting control parameters to the control core to perform corresponding operations, and combines priority management and gradient instructions to handle command conflicts, and optimizes the control strategy using radar and spectral sensors.
It improves the accuracy and flexibility of lighting control, is suitable for smart home and smart office environments in complex scenarios, and improves the user experience and comfort of the lighting environment.
Smart Images

Figure CN120264551B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrical communication technology, and in particular to a lighting control method, device, and storage medium. Background Art
[0002] In the field of smart homes and smart buildings, lighting control technology is continuously developing towards intelligent and convenient features. Currently, most common lighting control methods rely on wired control, such as using physical switches on the wall to directly control the on / off and brightness of lamps, or using simple wireless remote controls to achieve basic control of individual lamps. However, traditional lighting control solutions have relatively simple control commands and their association with lamps is fixed and cannot be changed. This lacks flexibility in complex scenarios and makes it difficult to meet diverse lighting control needs. This leads to significant deficiencies in lighting control accuracy and flexibility.
[0003] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0004] The present application provides a lighting control method, device and storage medium, aiming to solve the problem that traditional solutions have insufficient accuracy and flexibility in lighting control.
[0005] To achieve the above objectives, the present application provides a lighting control method, which includes the following steps:
[0006] Receive wireless control instructions sent by the control terminal based on a preset protocol;
[0007] Determining a decoding strategy that matches the preset protocol, and decoding the space identifier and lighting control parameters from the wireless control instruction using the decoding strategy;
[0008] Determining a matching control core according to the spatial identifier, and determining region information associated with the control core;
[0009] The light control parameters are sent to the control core, so that the control core performs a light control operation corresponding to the area information based on the light control parameters.
[0010] In one embodiment, the step of determining a matching control core according to the space identifier further includes:
[0011] Acquire multiple subspace identifier sets bound to the control core;
[0012] It is determined whether the space identifier has a containment and / or affiliation relationship with any subspace identifier; if a space affiliation relationship exists, the space identifier matches the control core.
[0013] In one embodiment, after the step of sending the light control parameters to the control core so that the control core performs the light control operation corresponding to the area information based on the light control parameters, the method further includes:
[0014] After receiving the target wireless control instruction, determining the target priority identifier in the target wireless control instruction;
[0015] Comparing the target priority identifier with the current priority identifier corresponding to the currently executed lighting control operation;
[0016] If the priority of the target priority identifier is higher than the current priority identifier, a synchronous gradient instruction is generated based on the difference between the current lighting parameter and the target parameter in combination with the time strategy parameter, wherein the target parameter is a parameter carried by the target wireless control instruction;
[0017] A parameter gradient operation of the current lighting parameter is performed according to the synchronous gradient instruction, so that the target parameter gradually covers the current lighting parameter.
[0018] In one embodiment, if the priority of the target priority identifier is higher than the current priority identifier, the step of generating a synchronous gradient instruction based on the difference between the current lighting parameters and the target parameters in combination with the time strategy parameters includes:
[0019] During the execution of the parameter gradient operation, detecting whether there is a new instruction received;
[0020] If a new instruction with a higher priority flag is detected, the parameter gradient operation is terminated and the target synchronization instruction is re-determined according to the new instruction;
[0021] If the new instruction does not carry a higher priority flag, the parameter gradient operation continues to be executed.
[0022] In one embodiment, after the step of comparing the target priority identifier with the current priority identifier corresponding to the currently executed light control operation, the method further includes:
[0023] When it is detected that the target priority identifier is the same as the current priority identifier, extracting the scene type identifier in the target wireless control instruction;
[0024] According to a preset conflict resolution strategy, choose to continue executing the current scene or switch to a new scene, wherein the conflict resolution strategy includes a scene type priority comparison table.
[0025] In one embodiment, the step of generating a synchronous gradient instruction based on the difference between the current lighting parameter and the target parameter in combination with the time strategy parameter includes:
[0026] Obtain the response speed parameters and network delay indicators of the lighting devices associated with the control core;
[0027] Calculate and generate an adaptive gradient time coefficient based on the comprehensive evaluation value of device response speed and network delay;
[0028] The time strategy parameter is obtained by multiplying the gradual change time coefficient by a preset basic transition duration.
[0029] In one embodiment, after the steps of determining a decoding strategy that matches the preset protocol and decoding the space identifier and lighting control parameters from the wireless control instruction using the decoding strategy, the method further includes:
[0030] The radar is used to obtain the personnel position distribution matrix, and the spectral energy distribution data of indoor natural light is collected through the spectral sensor;
[0031] Input the personnel position distribution matrix into the light field propagation model, and simulate the light coverage map of the current space in combination with the spectral energy distribution data to generate a set of candidate control strategies including brightness gradient values and color temperature deviation values;
[0032] Invoking a reinforcement learning model to iteratively optimize the candidate control strategy set, wherein the reinforcement learning model dynamically updates strategy weight parameters in the reinforcement learning model based on user location data and historical lighting adjustment records within a preset time period;
[0033] The optimal control strategy parameters after iterative optimization are injected into the lighting control parameters, so that the lighting control process includes spatial light field distribution characteristics.
[0034] In one embodiment, after the step of sending the light control parameters to the control core so that the control core performs the light control operation corresponding to the area information based on the light control parameters, the method further includes:
[0035] Detecting the power input status of the control core, and when the power voltage is lower than a safety threshold, triggering an emergency instruction, and converting the emergency instruction into a pulse control parameter matrix according to a preset coding mode;
[0036] detecting adjacent nodes of the control core at a preset scanning period, determining comprehensive weight values of alternative relay nodes when a communication link interruption is detected, and reconstructing a mesh network routing table of the control core based on the comprehensive weight values;
[0037] The pulse control parameter matrix and the updated mesh network routing table are data-encapsulated to generate enhanced broadcast instructions, so that the lighting equipment performs network self-healing collaborative operations based on the enhanced broadcast instructions while maintaining the light control parameters.
[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a lighting control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the lighting control method described above.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the lighting control method described above are implemented.
[0040] This application provides a lighting control method, lighting control device, and storage medium. These methods receive wireless control instructions sent by a control terminal based on a preset protocol, determine a decoding strategy that matches the preset protocol, and decode the wireless control instructions using the decoding strategy to extract a spatial identifier and lighting control parameters. The method then determines a matching control core based on the spatial identifier and the region information associated with the control core. Finally, the lighting control parameters are sent to the control core, causing it to execute the lighting control operation corresponding to the region information based on the lighting control parameters. This application improves the accuracy and flexibility of lighting control through the coordinated control of the spatial identifier and the control core. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0043] Figure 1 This is a flow chart of the first embodiment of the lighting control method of the present application;
[0044] Figure 2 This is a flow chart of a second embodiment of the lighting control method of the present application;
[0045] Figure 3 This is a flow chart of a third embodiment of the lighting control method of the present application;
[0046] Figure 4 This is a flow chart of a fourth embodiment of the lighting control method of the present application;
[0047] Figure 5 This is a schematic diagram of the architecture of the hardware operating environment of the lighting control device involved in the embodiment of the present application.
[0048] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0050] To better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0051] In order to better understand the above technical solution, the above technical solution will be described in detail below with reference to the accompanying drawings and specific implementation methods.
[0052] The main solution of this application is: receiving wireless control instructions sent by the control terminal based on a preset protocol;
[0053] Determining a decoding strategy that matches the preset protocol, and decoding the space identifier and lighting control parameters from the wireless control instruction using the decoding strategy;
[0054] Determining a matching control core according to the spatial identifier, and determining region information associated with the control core;
[0055] The light control parameters are sent to the control core, so that the control core performs a light control operation corresponding to the area information based on the light control parameters.
[0056] Currently, most common lighting control methods rely on wired control, such as using physical switches on the wall to directly control the on / off and brightness of lamps, or using simple wireless remote controls to achieve basic control of individual lamps. However, these traditional solutions offer relatively simple control commands and their association with lamps is fixed and cannot be changed. This lacks flexibility in complex scenarios and makes it difficult to meet diverse lighting control needs. This results in significant deficiencies in both precision and flexibility.
[0057] This application receives wireless control instructions sent by a control terminal based on a preset protocol, then determines a decoding strategy that matches the preset protocol. Using this decoding strategy, it decodes the space identifier and lighting control parameters from the wireless control instructions. It then determines a matching control core based on the space identifier and the region information associated with the control core. Finally, it sends the lighting control parameters to the control core, causing it to execute the lighting control operation corresponding to the region information based on the light control parameters. This coordinated control of the space identifier and the control core improves the accuracy and flexibility of lighting control.
[0058] Example 1
[0059] Based on this, the embodiment of the present application provides a lighting control method, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of the lighting control method of the present application. The lighting control method includes steps S10 to S40:
[0060] Step S10: receiving a wireless control instruction sent by the control terminal based on a preset protocol.
[0061] In this embodiment, processing actions are performed by a lighting control system, which is deployed in a lighting control device and connected to a control terminal. The control core can be located on the lighting control device or can be connected to the lighting control device in a communication connection. A preset protocol is a set of predefined data transmission rules and conventions used to ensure accurate and efficient communication between the control terminal and the lighting control system. For example, in this embodiment, the preset protocol can be a wireless communication protocol such as ZigBee, Bluetooth, or Wi-Fi, or it can be a user-defined set of communication protocols. A control terminal, such as a smart speaker or mobile phone app, converts the user's lighting control intent into wireless control commands according to the preset protocol and transmits them.
[0062] Specifically, the lighting control system first needs to establish a wireless communication receiving module, which is turned on in the detection state and waits to receive signals from the control terminal. When the control terminal sends a signal, the receiving module captures the signal through the wireless signal receiving antenna and converts it into an electrical signal to transmit it into the system. For example, when a user clicks on the mobile phone app to send a command to turn on the living room lights, the app encapsulates the command according to the preset ZigBee protocol and then sends it through the mobile phone's wireless transmission module. Once the lighting control system's receiving module receives this ZigBee signal, it has completed the step of receiving the wireless control command sent by the control terminal based on the preset protocol.
[0063] Step S20: Determine a decoding strategy that matches the preset protocol, and decode the space identifier and lighting control parameters from the wireless control instruction using the decoding strategy.
[0064] In this embodiment, the decoding strategy is a method that uses algorithms and rules specific to a specific pre-defined protocol to extract useful information from received wireless control commands. Different communication protocols have different corresponding decoding methods. For example, the ZigBee protocol has its own specific data frame format. Decoding requires extracting the source address from the frame structure, which can be used as a spatial identifier, the destination port, and the data content (including lighting control parameters).
[0065] Specifically, upon receiving a wireless control command, the decoding module within the lighting control system first identifies the command's predefined protocol type, such as a ZigBee protocol packet. It then parses the ZigBee data frame, starting from the header and ending with the footer, according to the ZigBee protocol's decoding strategy and the data frame format. For example, in a ZigBee data frame, the source address field indicates the spatial location of the terminal sending the command (i.e., the spatial identifier), while the data payload contains lighting control parameters such as the brightness and color temperature of the light. Through a series of bitwise operations and data extraction operations, this information is separated and decoded from the original wireless control command data.
[0066] Step S30: determining a matching control core according to the space identifier, and determining region information associated with the control core.
[0067] A space identifier is an identifier used to identify a physical space or area, helping the system identify the specific location where a user wishes to control lighting. A control core is the core processing unit in a lighting control system responsible for controlling lighting in a specific area. Each control core is associated with specific area information. For example, in a large building, different floors and rooms can be considered different spaces, each with a corresponding control core to manage the lighting in that area.
[0068] As an optional implementation, the lighting control system maintains a mapping table between space identifiers and control cores. After decoding the space identifier, the control system searches the mapping table to find the control core that matches the space identifier. Furthermore, during initialization, each control core is associated with the area it governs. For example, control core A governs the living room, including information about all living room lighting fixtures and their layout. The control core's associated area information is determined by accessing its attribute configuration file or database records.
[0069] As an optional implementation method, the matching control core is determined according to the spatial identifier, and the area information associated with the control core is determined. Alternatively, the area information associated with each control core can be determined first, and then the target area information containing the spatial identifier is determined based on the area information, and the target control core corresponding to the target area information is determined as the control core matching the spatial identifier.
[0070] In this embodiment, the control core is associated with at least one of the aforementioned regional information, and there is at least one control core. The regional information associated with the control core refers to the physical space range governed by each control core and its corresponding attribute information. For example, control core A can be associated with the living room area, or the bedroom and balcony area. Determining the regional information associated with each control core is to obtain the spatial data corresponding to all control cores in the system. The spatial identifier is an identifier used to uniquely identify a physical space or area. The target regional information is the complete regional data corresponding to the spatial identifier, and the target control core is the control core associated with the target regional information.
[0071] Specifically, after the configuration management module within the lighting control system receives a command requesting zone information, it stores the associations between each control core and zone information. It first awakens the storage unit and retrieves a preconfigured table of control core-zone information correspondences. Then, through a data read operation, the zone information corresponding to each control core is completely extracted and temporarily stored in the system's cache for use in subsequent steps. This process queries a specific record from the database, providing basic data for subsequent control core matching based on the space identifier. After decoding the space identifier, the system compares it with the zone information associated with each control core. For example, if the space identifier is "Living Room 001," the system checks which zone information associated with each control core contains the identifier "Living Room 001." If the zone information associated with control core A contains "Living Room 001," the system identifies control core A as the target control core matching the space identifier and records this correspondence.
[0072] After identifying the target control core, the system encapsulates the lighting control parameters into a data frame format that conforms to the predefined protocol. For example, if the predefined protocol is TCP / IP over Wi-Fi, the system first converts the lighting control parameters into binary data format. It then adds necessary information such as the source address, destination address, and port number according to the TCP / IP header format, and finally transmits the encapsulated data frame via the wireless transmitter. Upon receiving the data frame, the control core decapsulates it according to the same predefined protocol to extract the lighting control parameters.
[0073] This solution further enhances the intelligence and precision of lighting control systems by identifying and matching the associated area information for each control core and sending lighting control parameters according to a pre-set protocol. In large, complex lighting environments, such as smart homes and smart office buildings, user control commands can be quickly and accurately transmitted to the control cores in the corresponding spaces, enabling independent and efficient control of lighting in different areas and improving the user experience.
[0074] As another optional implementation manner, the step of determining a matching control core according to the space identifier further includes:
[0075] Acquire a plurality of subspace identifier sets bound to the control core; determine whether the space identifier has a containment and / or affiliation relationship with any subspace identifier; if a space affiliation exists, the space identifier matches the control core.
[0076] Specifically, the multiple subspace identifier sets bound to a control core mean that a control core can be associated with multiple, finer-grained subspaces, each with its own unique identifier. These identifiers, when collected together, form the subspace identifier set for the control core. For example, a control core manages the entire living room, which can be further divided into multiple subspaces, such as the sofa area and the TV area, each with a corresponding identifier. An inclusion relationship means that a space identifier exists directly in a subspace identifier set; a subordination relationship means that the space corresponding to a space identifier belongs to a higher-level space range corresponding to a subspace. For example, the subspace "sofa area 001" belongs to the living room space. When the space identifier is "living room 001" or "sofa area 001", it has a subordination or inclusion relationship with the corresponding subspace identifier.
[0077] The configuration management module in the lighting control system is responsible for storing the binding relationships between control cores and subspace identifier sets. When a subspace identifier set is needed, the configuration management module first queries the control core configuration file, which records the associations between the control core and each subspace identifier. Through data read operations, these subspace identifiers are extracted one by one and organized into a set. The system then compares the decoded space identifiers with the subspace identifier sets obtained for each control core. First, the system checks whether the space identifier directly exists within a subspace identifier set—in other words, whether a containment relationship exists. If so, the system determines that the space identifier matches the corresponding control core. If not, the system further determines whether the space corresponding to the space identifier belongs to a higher-level space within a subspace—in other words, whether a subspace belongs to a higher-level space. By obtaining the subspace identifier set bound to the control core and determining the containment and subspace identifier relationships between the space identifier and the subspace identifier, the lighting control system's refined control capabilities are enhanced. In multi-space, multi-level lighting scenarios, the system can accurately identify the user's lighting control intent for different levels of the space, enabling precise matching and control of spatial lighting, improving user satisfaction and the system's practicality.
[0078] For example, assuming that the space identifier is "living room 001", and the subspace "sofa area 001" in a certain subspace identifier set belongs to "living room 001", then it is considered that there is a space affiliation relationship, and it is determined that the space identifier matches the corresponding control core.
[0079] Step S40: Sending the light control parameters to the control core, so that the control core performs the light control operation corresponding to the area information based on the light control parameters.
[0080] In this embodiment, lighting control parameters are specific parameters used to control lighting, such as brightness (0-100%), color temperature (ranging from warm white to cool white), and on / off status (on or off). After receiving these parameters, the control core controls the corresponding lighting fixtures based on the lighting fixture information recorded in the zone information. For example, if the zone information indicates that the control core manages a living room with a chandelier, wall lamp, and table lamp, the lighting control parameters are to set the brightness to 80%, the color temperature to 4000K, and turn on all lamps.
[0081] As an optional implementation, the control system encapsulates the decoded lighting control parameters into a control command data packet and sends it to the corresponding control core via the internal communication bus. Upon receiving the data packet, the control core parses the brightness, color temperature, and other parameters and then, based on a pre-set lighting control algorithm, sends control signals to each lamp within its control area.
[0082] For example, for dimming lamps, the control core adjusts the lamp's drive current based on the brightness parameter, thereby changing the brightness. For variable color temperature lamps, the control core adjusts the internal color temperature adjustment circuit based on the color temperature parameter to achieve color temperature changes. Ultimately, the lights in the area will be lit, dimmed, or change color according to the instructions sent by the user through the control terminal.
[0083] In the technical solution provided by this embodiment, a control terminal receives wireless control instructions sent based on a preset protocol, determines a decoding strategy that matches the preset protocol, and uses this decoding strategy to decode the wireless control instructions to obtain a spatial identifier and lighting control parameters. The system then determines a matching control core based on the spatial identifier and the region information associated with the control core. Finally, the lighting control parameters are sent to the control core, which then executes the lighting control operation corresponding to the region information based on the lighting control parameters. This embodiment improves the accuracy and flexibility of lighting control through the coordinated control of the spatial identifier and the control core.
[0084] In addition, this embodiment can also use preset protocols and decoding strategies to ensure the accuracy and reliability of communication; through the association of spatial identification with control core and regional information, it can quickly locate the target area and perform corresponding lighting operations according to the lighting control parameters, which not only improves the convenience and flexibility of lighting control, but also is suitable for various complex scenarios, such as smart lighting management in smart homes, smart offices and other environments, effectively improving the user experience and the comfort of the lighting environment.
[0085] Example 2
[0086] Based on any embodiment, the present application also provides a second embodiment, referring to Figure 2 , Figure 2 This is a flowchart of the second embodiment of the lighting control method of the present application. After step S40, steps S50 to S80 are also included:
[0087] Step S50: After receiving the target wireless control instruction, determine the target priority identifier in the target wireless control instruction.
[0088] In this embodiment, the target priority identifier in the target wireless control command is a flag field used to indicate the priority of the command. It can be a numerical value or a specific code, specifically indicating the priority order of execution of the command in the lighting control system. For example, the priority identifier can be divided into three levels: high, medium, and low, represented by the numbers 1, 2, and 3, respectively, with lower numbers indicating higher priority.
[0089] It should be noted that the target wireless control command is a newly received control command after the lighting control system receives the wireless control command, i.e., the second control command issued by the control terminal. When the lighting control system receives the target wireless control command, the command parsing module first performs a preliminary analysis of the command and extracts the target priority identification field in the command.
[0090] Specifically, an instruction is a data packet encapsulated according to a specific protocol, in which a fixed byte position is used to store a priority identifier. The parsing module reads the value of this field according to the byte position specified by the protocol, converts it into a priority identifier format that can be recognized within the system, and records it in the instruction cache area of the lighting control system.
[0091] Step S60: performing a priority comparison between the target priority identifier and the current priority identifier corresponding to the currently executed lighting control operation.
[0092] In this embodiment, the current priority identifier refers to the priority flag corresponding to the currently executing lighting control operation. After extracting the target priority identifier, the lighting control system compares it with the current priority identifier corresponding to the currently executing lighting control operation. This comparison process is performed by a priority management module within the lighting control system. The priority management module retrieves the priority identifier value of the currently executing operation and compares it with the target priority identifier value according to pre-set comparison rules.
[0093] Step S70: If the priority of the target priority identifier is higher than the current priority identifier, a synchronous gradient instruction is generated based on the difference between the current lighting parameter and the target parameter in combination with the time strategy parameter, wherein the target parameter is the parameter carried by the target wireless control instruction.
[0094] In this embodiment, the synchronized fade command is used to control the smooth transition of lighting parameters from the current state to the target state. It specifically combines the difference between the current and target lighting parameters with the time strategy parameter to achieve a smooth transition of lighting states. For example, if the current light brightness is 50%, the target brightness is 80%, and the time strategy parameter is set to 5 seconds, the synchronized fade command will control the light to smoothly increase from 50% brightness to 80% brightness over 5 seconds.
[0095] Specifically, after determining that the target priority identifier is higher than the current priority identifier, the difference between the current lighting parameters and the target parameters is calculated. At the same time, based on the preset time strategy parameters, if the transition time is set to 5 seconds, the lighting control system will generate a synchronized gradient instruction based on this difference and the time strategy parameters. Specifically, the lighting control system will calculate the rate at which the brightness needs to change per second, that is, 30 / 5=6, so the brightness increases by 6 units per second. These calculation results are then encapsulated into synchronized gradient instructions, including information such as starting parameters, target parameters, change rate, total time, etc., and passed to the control core, which executes the synchronized gradient instructions.
[0096] Optionally, in this embodiment, step S70 includes:
[0097] During the execution of the parameter gradient operation, detect whether there is a new instruction received; if a new instruction with a higher priority identifier is detected, terminate the parameter gradient operation and re-determine the target synchronization instruction based on the new instruction; if the new instruction does not carry a higher priority identifier, continue to execute the parameter gradient operation.
[0098] Specifically, the newly received new instruction refers to other wireless control instructions received by the lighting control system during the execution of the current parameter gradient operation. These instructions can come from the same or different control terminals and are used to perform further control operations on the lights. A new instruction that carries a higher priority identifier means that the priority identifier value in the newly received instruction is higher than the priority identifier value of the instruction corresponding to the parameter gradient operation currently being executed (according to the preset priority comparison rules), which means that the new instruction needs to be executed in priority over the current operation. A new instruction that does not carry a higher priority identifier means that the priority identifier value of the newly received instruction is less than or equal to the priority identifier value of the instruction corresponding to the parameter gradient operation currently being executed. According to the priority comparison rules, the new instruction does not need to be executed in priority over the current operation.
[0099] Specifically, during the parameter gradient operation, the lighting control system maintains monitoring of the wireless receiving module, which detects incoming new wireless signals in real time. Upon detecting a new wireless signal, the receiving module converts it into an electrical signal and transmits it to the lighting control system. The lighting control system then performs a preliminary evaluation of the incoming signal to determine if it is a valid command. If so, it is temporarily stored in a special new command buffer and an interrupt signal is triggered, notifying the module currently executing the parameter gradient operation that a new command has arrived and requires further processing.
[0100] The lighting control system then extracts the priority identifier from the new instruction and compares it with the priority identifier of the instruction corresponding to the currently executing parameter gradient operation. If the new instruction has a higher priority identifier, the system immediately sends a termination signal to the parameter gradient execution module. Upon receiving the termination signal, the parameter gradient execution module stops the current parameter gradient operation and clears the relevant execution status. At the same time, according to the requirements of the new instruction, it re-executes the steps related to determining the target synchronization instruction, including redefining the target parameters, calculating the difference with the current lighting parameters, and generating a new synchronization gradient instruction based on the time strategy parameters, in preparation for executing the new lighting control operation.
[0101] If the new instruction's priority is not higher than the currently executing instruction's priority, the system will temporarily store the new instruction in the general instruction cache and wait until the current parameter gradient operation is completed before processing it. While the parameter gradient execution module continues to execute the current operation, it will record information such as the arrival time of the new instruction.
[0102] By detecting new commands during parameter gradients and deciding whether to terminate the current operation based on the new command's priority, the lighting control system's real-time and dynamic adaptability are further enhanced. In lighting scenarios with multiple users interacting and frequently changing commands, such as smart exhibition hall lighting control and multi-zone interactive light shows in smart homes, this ensures that high-priority commands take effect promptly while ensuring the orderly processing of lower-priority commands. This allows the lighting control system to flexibly respond to various complex situations and improve user satisfaction with lighting control.
[0103] Furthermore, in this embodiment, after step S60, the following steps are further included:
[0104] When it is detected that the target priority identifier is the same as the current priority identifier, the scene type identifier in the target wireless control instruction is extracted; according to the preset conflict resolution strategy, it is selected to continue executing the current scene or switch to a new scene, wherein the conflict resolution strategy includes a scene type priority comparison table.
[0105] Specifically, the scene type identifier is a flag field used to distinguish different types of lighting control scenes. For example, scene types can be divided into reading scenes, movie-watching scenes, party scenes, etc. Each scene has its corresponding unique lighting parameter combination (such as brightness, color temperature, color, etc.). The same priority identifier means that the target wireless control instruction and the currently executed lighting control operation have the same priority, and at this time they need to be further processed through the scene type identifier. The conflict resolution strategy is a pre-set rule. The scene type priority comparison table is part of the conflict resolution strategy, which specifies the priority relationship between different scene types. For example, the reading scene can take precedence over the movie-watching scene because reading requires more stable light.
[0106] When the target priority identifier is determined to be the same as the current priority identifier, a scene extraction signal is triggered. After receiving this scene extraction signal, the lighting control system further analyzes the target wireless control instruction. Based on the preset scene type identifier field position in the instruction, the scene type identifier is extracted. Then, based on the preset conflict resolution strategy, the scene type priority comparison table is queried. The scene type identifier in the target wireless control instruction is compared with the scene type identifier of the currently executing scene. If the priority of the current scene is not lower than that of the target scene, the current scene continues to be executed. This decision-making process is handled by the system's conflict resolution management module. It generates the corresponding execution decision signal based on the rules in the comparison table and the extracted scene type identifier, and sends it to the control core for execution.
[0107] By introducing scene type identification and conflict resolution strategies, the problem of conflicting lighting control commands with the same priority is resolved. In lighting environments with frequent multi-scene switching, the system can rationally continue or switch scenes based on actual scene requirements, improving the intelligent decision-making capabilities of lighting control, meeting users' personalized lighting needs in different scenarios, and making the lighting control system more practical.
[0108] As another optional implementation, in this embodiment, the step of generating a synchronous gradient instruction based on the difference between the current lighting parameter and the target parameter in combination with the time strategy parameter includes:
[0109] Obtain the response speed parameters and network delay indicators of the lighting equipment associated with the control core; calculate and generate an adaptive gradual change time coefficient based on the comprehensive evaluation value of the equipment response speed and network delay; multiply the gradual change time coefficient by the preset basic transition duration to obtain the time strategy parameter.
[0110] Specifically, the response speed parameter of a lighting device refers to an indicator of the speed at which lighting parameters (such as brightness, color temperature, etc.) begin to change after the lighting device receives a control signal, and is usually expressed in the number of parameter units that change per second. The network delay index refers to the time delay between the control instruction being sent and the instruction being received by the lighting device, and is usually expressed in milliseconds (ms). The device response speed and network delay are a numerical value obtained by weighted calculation of the lighting device response speed parameter and the network delay index, which characterizes the time characteristics when performing lighting control operations. The gradient time coefficient is a coefficient that is dynamically adjusted based on the comprehensive evaluation value, and is used to determine the relative time length of the gradient of lighting parameters. The basic transition duration refers to a basic lighting parameter transition time preset by the system, which is usually a time benchmark set under ideal conditions.
[0111] In this embodiment, the response speed parameters of each lighting device under the control of the control core are obtained through the device management module. These parameters can be reported to the lighting control system by the device itself during device initialization, or they can be derived by the lighting management system through historical data statistics. At the same time, the network delay index can be obtained through the delay detection mechanism built into the network communication module. The obtained lighting device response speed parameters and network delay index are weighted and calculated according to a preset weighting formula. For example, assuming the weight of the response speed parameter is 0.6, the weight of the network delay index is 0.4, the response speed parameter is R, and the network delay index is D, then the comprehensive evaluation value Z = 0.6 × R + 0.4 × D. Then, according to a preset gradual change time coefficient calculation model, such as gradual change time coefficient K = a × Z + b (where a and b are model parameters obtained through experimental calibration), the comprehensive evaluation value is substituted into the model to calculate the gradual change time coefficient K.
[0112] Finally, the preset basic transition duration and the calculated gradient time coefficient are obtained and, through operation, the time strategy parameter T = K × T0 is calculated. The calculated time strategy parameter T will be used to generate the synchronous gradient instruction to control the gradient process of the lighting parameters.
[0113] For example, if the basic transition duration is 3 seconds and the gradient time coefficient is 1.5, then the time strategy parameter is 4.5 seconds, and the lighting parameter will complete the gradient from the current value to the target value within 4.5 seconds.
[0114] Step S80: executing a parameter gradient operation of the current lighting parameter according to the synchronous gradient instruction, so that the target parameter gradually covers the current lighting parameter.
[0115] In this embodiment, the parameter gradient operation refers to a process of gradually adjusting the lighting parameters according to the requirements of the synchronous gradient instruction so that the lighting parameters change smoothly from the current values to the target values.
[0116] After receiving the synchronous gradient instruction, the system first analyzes the starting parameters, target parameters, change rate, and total time in the instruction. Then, based on this information, it starts a timer and counter to gradually adjust the lighting parameters according to the set change rate.
[0117] For example, if the brightness increases from 50% to 80% over a 5-second period, the brightness parameter is increased by 1 unit every 1 / 6 second (because the brightness changes by 6 units per second, a total of 30 units change, so the time interval is 5 / 30 = 1 / 6 second). The corresponding control signal is sent to the lamp to operate at the new brightness parameter. This process continues until the brightness parameter reaches 80% of the target value.
[0118] The technical solution provided in this embodiment implements priority management and smooth transitions for lighting control operations through priority identification and synchronized gradual change instructions. In lighting environments with multiple users and frequent scene switching, such as conference room lighting control and multi-zone lighting linkage in smart homes, this ensures that high-priority lighting control instructions take effect promptly. Furthermore, a gradual change method avoids discomfort and fixture damage caused by sudden changes in lighting status, enhancing the intelligence and user experience of the lighting control system and making it more user-friendly.
[0119] Example 3
[0120] Based on any embodiment, the present application also provides a third embodiment, referring to Figure 3 , Figure 3 This is a flowchart of the third embodiment of the lighting control method of the present application. After step S20, steps S90 to S120 are further included:
[0121] Step S90: Acquire a personnel position distribution matrix through radar, and collect spectral energy distribution data of indoor natural light through a spectral sensor.
[0122] Step S100: inputting the personnel position distribution matrix into the light field propagation model, and simulating the light coverage map of the current space in combination with the spectral energy distribution data, and generating a set of candidate control strategies including brightness gradient values and color temperature deviation values.
[0123] Step S110: calling a reinforcement learning model to iteratively optimize the candidate control strategy set, wherein the reinforcement learning model dynamically updates the strategy weight parameters in the reinforcement learning model based on the user's stay location data and historical lighting adjustment records within a preset time period.
[0124] Step S120: injecting the optimal control strategy parameters obtained after iterative optimization into the lighting control parameters.
[0125] In this embodiment, radar acquisition of a occupant location distribution matrix utilizes radar technology to scan and locate occupants within a space, presenting this location information in the form of a matrix. The spectral energy distribution data of indoor natural light collected by the spectral sensor detects the energy distribution of indoor natural light at different wavelengths. The light field propagation model describes the propagation patterns of light in space and can be used to simulate the distribution and variations of light in space.
[0126] In addition, the light coverage map is a visual representation of the lighting conditions in a space, simulated based on the light field propagation model and spectral energy distribution data. It includes information such as brightness gradient values and color temperature deviation values. The reinforcement learning model is a machine learning method based on the interactive learning between the agent and the environment, learning the optimal behavioral strategy through trial and error. Iterative optimization refers to the continuous evaluation and selection of the optimal control strategy from a set of candidate control strategies using the reinforcement learning model. The optimal control strategy parameters are the optimal lighting control parameters obtained through iterative optimization using the reinforcement learning model, including the optimal settings for brightness, color temperature, and other aspects.
[0127] Specifically, a radar device and a spectral sensor are first installed in the space where lighting control is required. The radar device transmits and receives electromagnetic waves to detect the location of people within the space. This data is then compiled into a person location distribution matrix and sent to the lighting control system. Meanwhile, the spectral sensor measures the spectral energy distribution of natural light in the room in real time and digitizes the data to produce spectral energy distribution data.
[0128] The user location distribution matrix is then input into the light field propagation model. Combined with the spectral energy distribution data, numerical calculations and simulation analysis are used to generate a light coverage map for the current space. Based on the lighting conditions in the light coverage map, a set of candidate control strategies with varying brightness gradients and color temperature deviations is generated. The reinforcement learning model is then invoked, taking the candidate control strategies as input. The reinforcement learning model evaluates and selects the candidate control strategies based on a preset reward function and policy update algorithm. During each iteration, the policy weight parameters in the reinforcement learning model are dynamically updated based on user location data and historical lighting adjustment records, gradually identifying the optimal control strategy. Finally, the optimal control strategy parameters from the iterative optimization are integrated with the original lighting control parameters, replacing some of the original parameters so that the lighting control parameters reflect the spatial light field distribution characteristics. In subsequent lighting control operations, the control core executes lighting control operations based on the updated lighting control parameters.
[0129] As an optional implementation, a light sensor can also collect ambient light intensity data in real time, convert it into an electrical signal, and send it to the sensor management module. The received data is digitized to obtain the ambient light intensity value. Simultaneously, the human activity sensor transmits detected human activity signals (such as changes in the human infrared signal) to the sensor management module, which analyzes the signals and calculates the frequency of human activity. The ambient light sensor collects ambient light intensity values once per second, records data from multiple consecutive sampling points, calculates the change between adjacent sampling points, and averages them to obtain the ambient light intensity change rate. Each time the human activity sensor detects human movement, it sends a pulse signal to the management module. The number of pulse signals per unit time is counted to obtain the human activity frequency.
[0130] The algorithm then adjusts the lighting brightness according to pre-set parameter adjustment rules, lowering it appropriately when human activity increases. When the ambient light intensity change rate is negative and human activity is low, the brightness is further reduced to save energy. The algorithm calculates the adjustment amount for the lighting control parameters based on these rules and modifies the original lighting control parameters.
[0131] Finally, the adjusted lighting control parameters are encapsulated into a data frame format based on the control core's address information and communication protocol, and then sent to the control core. After receiving the data frame, the control core performs a de-framing operation, extracts the adjusted lighting control parameters, and updates its internal control parameter configuration, preparing to execute the new lighting control operation.
[0132] The technical solution provided in this embodiment uses radar to obtain a occupant location distribution matrix and a spectral sensor to collect spectral energy distribution data. This, combined with iterative optimization using a light field propagation model and reinforcement learning models, optimizes lighting control parameters. In scenarios such as smart homes and smart offices, lighting can be automatically adjusted based on occupant location and natural lighting conditions, providing a more comfortable and energy-efficient lighting environment and enhancing the intelligence of the lighting control system and user experience.
[0133] Example 4
[0134] Based on any embodiment, the present application also provides a fourth embodiment, referring to Figure 4 , Figure 4 This is a flowchart of the fourth embodiment of the lighting control method of the present application. After step S40, steps S130 to S150 are further included:
[0135] Step S130: Detecting the power input status of the control core, and when the power voltage is lower than a safety threshold, triggering an emergency instruction, and converting the emergency instruction into a pulse control parameter matrix according to a preset coding mode.
[0136] Step S140: detecting the adjacent nodes of the control core in a preset scanning period, determining the comprehensive weight values of the alternative relay nodes when a communication link interruption is detected, and reconstructing the mesh network routing table of the control core based on the comprehensive weight values.
[0137] Step S150: encapsulating the pulse control parameter matrix and the updated mesh network routing table to generate enhanced broadcast instructions, so that the lighting device performs network self-healing collaborative operations based on the enhanced broadcast instructions while maintaining the light control parameters.
[0138] In this embodiment, the power input status refers to the real-time status of the power supply voltage received by the control core. The pulse control parameter matrix is a parameter representation of the emergency command converted into a pulse signal, which contains information such as the pulse frequency vector, duty cycle gradient value and intensity spatial distribution map. Adjacent nodes refer to other network nodes that communicate directly with the control core. The comprehensive weight value is a weight value calculated based on multiple performance indicators of the alternative relay node, including signal strength, bandwidth, stability, etc. The mesh network routing table is a table that records the connection relationship and routing information of the nodes in the network, and is used to guide the transmission path of data in the network. Data encapsulation refers to the combination of the pulse control parameter matrix and the updated mesh network routing table into a complete data packet. The enhanced broadcast instruction is a broadcast instruction with enhanced functions. It can carry more control information and network configuration information, and can send instructions to multiple lighting devices at the same time.
[0139] Specifically, the detection module in the lighting control system monitors the power input voltage of the control core. When the voltage falls below a set safety threshold, an emergency command is triggered. After the emergency command is triggered, the lighting control system converts it into a pulse control parameter matrix based on a preset encoding scheme. This encoding scheme can map different operational requirements of the emergency command to different parameters in the pulse control parameter matrix, such as different pulse frequencies corresponding to different emergency operation levels. The specific encoding scheme can be Morse code or binary code.
[0140] Next, the lighting control system regularly scans the control core's neighboring nodes at a preset scanning cycle to check the status of the communication link. If a communication link interruption is detected, the node with the highest overall weight is selected from the candidate relay nodes. Based on this weight, the control core's mesh network routing table is rebuilt and the routing information is updated.
[0141] As an optional implementation method, a reasonable scanning cycle duration can be set based on factors such as network scale, business needs and node resources. For example, in some small local area networks, it can be set to scan every 10 seconds, and the cycle can be appropriately extended for large and complex networks. At the beginning of each scanning cycle, the control core sends a probe message to its adjacent nodes. These messages contain the control core's own identification information, timestamp, etc. After receiving the probe message, the adjacent node will respond according to the preset rules and return a reply message containing its own status and link quality information. The control core records the time when the probe message is sent and starts a timeout timer. If no reply message is received from the adjacent node within the specified time, it is considered that the communication link may be interrupted. A sequence number is added to the probe message, and the adjacent node responds to the sequence number in the reply message.
[0142] The control core checks the sequence numbers of received reply messages for continuity. If discontinuity or jumps occur, the link is determined to be down. The control core detects these link layer status change events and determines that the communication link is down. Upon detecting a link down, the control core searches the network for potential backup relay nodes. Information about these nodes is collected, including their hardware resources (CPU, memory, storage, etc.), transmission medium quality, transmission delay, bandwidth, signal strength, and load.
[0143] Based on network performance requirements and service characteristics, key factors influencing the comprehensive weight of candidate relay nodes are identified as weight factors. Common weight factors include number of hops, signal strength, bandwidth, and load. A weight coefficient is assigned to each weight factor. The collected weight factor values for each candidate relay node are then substituted into a pre-determined comprehensive weight calculation formula to calculate the comprehensive weight for each candidate relay node. A new routing table is then created or an existing routing table is backed up and initialized. Based on the comprehensive weights of the candidate relay nodes, the optimal relay node path is searched hop by hop, starting from the source node. The candidate relay node with the highest comprehensive weight is selected as the next hop node to construct a path from the source node to the destination node. The optimal path information is then updated in the routing table, including information such as the source node, destination node, next hop node, and comprehensive weight. For each destination node, multiple possible paths are recorded, and the path with the highest comprehensive weight is selected as the default path. When the network topology and node status are relatively stable, the routing table is optimized to merge duplicate or redundant path entries. At the same time, one or more backup paths are set for each default path according to the ranking of the comprehensive weight values, so that rapid switching can be achieved when new changes occur in the network.
[0144] Finally, the pulse control parameter matrix and the updated mesh network routing table are combined and packaged according to the data format to generate enhanced broadcast instructions. The enhanced broadcast instructions contain the network self-healing collaborative operation information that the lighting devices need to perform while maintaining the current light control parameters.
[0145] This embodiment implements emergency response and network self-healing capabilities for the lighting control system by detecting power input status, probing adjacent nodes, and encapsulating data. In the event of power anomalies or communication link interruptions, timely measures can be taken to ensure stable operation and reliability of the lighting control system. This effectively prevents lighting interruptions caused by system failures in locations with demanding lighting control requirements.
[0146] The present application provides a lighting control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the lighting control method in the above-mentioned embodiment 1.
[0147] Reference below Figure 5 , which shows a schematic diagram of the structure of a lighting control device suitable for implementing embodiments of the present application. The lighting control device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The lighting control device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0148] like Figure 5As shown, the lighting control device may include a processing device 1001 (e.g., a core processor, graphics processor, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the lighting control device. Processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to I / O interface 1006: input devices 1007, such as a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008, such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 1003, such as a magnetic tape or hard disk; and communication device 1009. The communication device 1009 can allow the lighting control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a lighting control device with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems can be implemented or have alternatively.
[0149] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are performed.
[0150] The lighting control device provided in this application utilizes the lighting control method described in the aforementioned embodiment, resolving the technical issues with conventional solutions regarding the lack of precision and flexibility in lighting control. Compared to the prior art, the lighting control device provided in this application achieves the same beneficial effects as the lighting control method described in the aforementioned embodiment. Other technical features of the lighting control device are the same as those disclosed in the aforementioned embodiment and are not further elaborated upon here.
[0151] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0152] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0153] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, wherein the computer-readable program instructions are used to execute the lighting control method in the above-mentioned embodiment.
[0154] The computer-readable storage medium provided herein may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including, but not limited to, wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.
[0155] The computer-readable storage medium may be included in the lighting control device, or may exist independently without being incorporated into the lighting control device.
[0156] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the lighting control device, the lighting control device enables the lighting control device to: receive wireless control instructions sent by the control terminal based on a preset protocol; determine a decoding strategy that matches the preset protocol, and decode the space identifier and lighting control parameters from the wireless control instructions through the decoding strategy; determine a matching control core based on the space identifier, and determine the area information associated with the control core; send the lighting control parameters to the control core, so that the control core performs the lighting control operation corresponding to the area information based on the lighting control parameters.
[0157] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of code, and the module, program segment or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.
[0159] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0160] The computer-readable storage medium provided herein stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned lighting control method. This computer-readable storage medium addresses the technical issues inherent in conventional lighting control solutions, which lack precision and flexibility. Compared to existing technologies, the beneficial effects of the computer-readable storage medium provided herein are similar to those of the lighting control method provided in the aforementioned embodiments and are not further elaborated upon here.
[0161] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the above-mentioned lighting control method when executed by a processor.
[0162] The computer program product provided in this application can address the technical issues of traditional solutions for lighting control, which lack precision and flexibility. Compared to the prior art, the beneficial effects of the computer program product provided in this embodiment are the same as those of the lighting control method provided in the above-mentioned embodiment, and are not further elaborated here.
[0163] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A lighting control method, characterized in that: The lighting control method comprises the following steps: Receive wireless control instructions sent by the control terminal based on a preset protocol; Determining a decoding strategy that matches the preset protocol, and decoding the space identifier and lighting control parameters from the wireless control instruction using the decoding strategy; Determining a matching control core according to the spatial identifier, and determining region information associated with the control core; Sending the lighting control parameters to the control core so that the control core performs the lighting control operation corresponding to the area information based on the lighting control parameters; After receiving the target wireless control instruction, determining the target priority identifier in the target wireless control instruction; Comparing the target priority identifier with the current priority identifier corresponding to the currently executed lighting control operation; When it is detected that the target priority identifier is the same as the current priority identifier, extracting the scene type identifier in the target wireless control instruction; According to the preset conflict resolution strategy, choose to continue executing the current scene or switch to a new scene, wherein the conflict resolution strategy includes a scene type priority comparison table; If the priority of the target priority identifier is higher than the current priority identifier, a synchronous gradient instruction is generated based on the difference between the current lighting parameter and the target parameter in combination with the time strategy parameter, wherein the target parameter is a parameter carried by the target wireless control instruction; A parameter gradient operation of the current lighting parameter is performed according to the synchronous gradient instruction, so that the target parameter gradually covers the current lighting parameter.
2. The method according to claim 1, wherein The step of determining a matching control core according to the space identifier includes: Acquire multiple subspace identifier sets bound to the control core; It is determined whether the space identifier has a containment and / or affiliation relationship with any subspace identifier; if a space affiliation relationship exists, the space identifier matches the control core.
3. The method according to claim 1, wherein If the priority of the target priority identifier is higher than the current priority identifier, the step of generating a synchronous gradient instruction based on the difference between the current lighting parameters and the target parameters in combination with the time strategy parameters includes: During the execution of the parameter gradient operation, detecting whether there is a new instruction received; If a new instruction with a higher priority flag is detected, the parameter gradient operation is terminated and the target synchronization instruction is re-determined according to the new instruction; If the new instruction does not carry a higher priority flag, the parameter gradient operation continues to be executed.
4. The method according to claim 1, wherein The step of generating a synchronous gradient instruction based on the difference between the current lighting parameter and the target parameter in combination with the time strategy parameter includes: Obtain the response speed parameters and network delay indicators of the lighting devices associated with the control core; Calculate and generate an adaptive gradient time coefficient based on the comprehensive evaluation value of device response speed and network delay; The time strategy parameter is obtained by multiplying the gradual change time coefficient by a preset basic transition duration.
5. The method according to claim 1, wherein After the steps of determining a decoding strategy matching the preset protocol and decoding the space identifier and lighting control parameters from the wireless control instruction using the decoding strategy, the method further includes: The radar is used to obtain the personnel position distribution matrix, and the spectral energy distribution data of indoor natural light is collected through the spectral sensor; Input the personnel position distribution matrix into the light field propagation model, and simulate the light coverage map of the current space in combination with the spectral energy distribution data to generate a set of candidate control strategies including brightness gradient values and color temperature deviation values; Invoking a reinforcement learning model to iteratively optimize the candidate control strategy set, wherein the reinforcement learning model dynamically updates strategy weight parameters in the reinforcement learning model based on user location data and historical lighting adjustment records within a preset time period; The optimal control strategy parameters after iterative optimization are injected into the lighting control parameters.
6. The method according to claim 1, characterized in that After the step of sending the light control parameters to the control core so that the control core performs the light control operation corresponding to the area information based on the light control parameters, the method further includes: Detecting the power input status of the control core, and when the power voltage is lower than a safety threshold, triggering an emergency instruction, and converting the emergency instruction into a pulse control parameter matrix according to a preset coding mode; detecting adjacent nodes of the control core at a preset scanning period, determining comprehensive weight values of alternative relay nodes when a communication link interruption is detected, and reconstructing a mesh network routing table of the control core based on the comprehensive weight values; The pulse control parameter matrix and the updated mesh network routing table are data-encapsulated to generate enhanced broadcast instructions, so that the lighting devices perform network self-healing collaborative operations based on the enhanced broadcast instructions while maintaining the lighting control parameters.
7. A lighting control device, characterized in that: The lighting control device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the lighting control method according to any one of claims 1 to 6.
8. A storage medium, characterized in that: The storage medium is a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the lighting control method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Intelligent household control system
CN105159114A
Smart home equipment control method based on regional grouping
CN114637219A