Light control method and device and storage medium
Through the linkage control of decoding spatial identification and control cores, combined with priority management and gradient instructions, the problem of insufficient flexibility and accuracy of traditional lighting control solutions in complex scenarios is solved, and efficient lighting management in smart home and smart office environments is realized.
Patent Information
- Application Number
- CN202510742425.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-06-05
Smart Images

Figure CN120264551A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electric communication technologies, and in particular, to a lighting control method, device, and storage medium. Background Art
[0002] In the fields of smart home and intelligent building, lighting control technologies are continuously developing towards the direction of intelligence and convenience. Currently, common lighting control mostly adopts a wired control method. For example, the on / off and brightness of lamps are directly controlled through physical switches on the wall, or a simple wireless remote control is used to achieve basic control of a single lamp. However, when controlling lights with traditional solutions, the control instructions are relatively single and the association with the lamps is fixed and cannot be changed. It lacks flexibility in complex scenarios and is difficult to meet diverse lighting control requirements, resulting in obvious deficiencies in the accuracy and flexibility of lighting control.
[0003] The above content is only used to assist in understanding the technical solution of this application, and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] This application provides a lighting control method, device, and storage medium, aiming to solve the problem of insufficient accuracy and flexibility in lighting control by traditional solutions.
[0005] To achieve the above objective, a lighting control method provided by this application includes the following steps: Receive a wireless control instruction sent by a control terminal based on a preset protocol; Determine a decoding strategy matching the preset protocol, and decode a space identifier and lighting control parameters from the wireless control instruction through the decoding strategy; Determine a matching control core according to 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 a lighting control operation corresponding to the area information based on the lighting control parameters.
[0006] In one embodiment, the step of determining a matching control core according to the space identifier further includes: Obtain a plurality of sets of subspace identifiers bound to the control core; Determine whether the space identifier has an inclusion and / or subordination relationship with any of the subspace identifiers. If there is a space subordination relationship, the space identifier matches the control core.
[0007] In one embodiment, after the step of sending the lighting control parameters to the control core so that the control core performs a lighting control operation corresponding to the area information based on the lighting control parameters, the method further includes: After receiving the target wireless control instruction, determine the target priority identifier in the target wireless control instruction; Compare the priority of the target priority identifier with the current priority identifier corresponding to the currently executed lighting control operation; If the priority of the target priority identifier is higher than that of the current priority identifier, generate a synchronous gradual change instruction based on the difference between the current lighting parameters and the target parameters, in combination with the time policy parameters, where the target parameters are the parameters carried by the target wireless control instruction; Execute the parameter gradual change operation of the current lighting parameters according to the synchronous gradual change instruction, so that the target parameters gradually cover the current lighting parameters.
[0008] In one embodiment, the step of, if the priority of the target priority identifier is higher than that of the current priority identifier, generating a synchronous gradual change instruction based on the difference between the current lighting parameters and the target parameters, in combination with the time policy parameters, includes: During the execution of the parameter gradual change operation, detect whether there is a newly received new instruction; If a new instruction carrying a higher priority identifier is detected, abort the parameter gradual change operation and re-determine the target synchronization instruction according to the new instruction; If the new instruction does not carry a higher priority identifier, continue to execute the parameter gradual change operation.
[0009] In one embodiment, after the step of comparing the priority of the target priority identifier with the current priority identifier corresponding to the currently executed lighting control operation, further includes: When it is detected that the target priority identifier is the same as the current priority identifier, extract the scene type identifier in the target wireless control instruction; According to the preset conflict resolution strategy, select to continue executing the current scene or switch to a new scene, where the conflict resolution strategy includes a scene type priority comparison table.
[0010] In one embodiment, the step of generating a synchronous gradual change instruction based on the difference between the current lighting parameters and the target parameters, in combination with the time policy parameters, includes: Obtain the response speed parameter and network delay index of the lighting device associated with the control core; Calculate and generate an adaptive gradual change time coefficient according to the comprehensive evaluation value of the device response speed and network delay; Multiply the gradual change time coefficient by the preset basic transition duration to obtain the time policy parameter.
[0011] In one embodiment, after the step of determining the decoding strategy that matches the preset protocol and decoding the space identifier and the lighting control parameters from the wireless control instruction by using the decoding strategy, the method further includes: Obtaining a personnel position distribution matrix through a radar, and collecting spectral energy distribution data of indoor natural light through a spectral sensor; Inputting the personnel position distribution matrix into an optical field propagation model, and combining the spectral energy distribution data to simulate an illumination coverage map of the current space, and generating a set of candidate control strategies including brightness gradient values and color temperature deviation values; Invoking a reinforcement learning model to perform iterative optimization on the set of candidate control strategies, wherein the reinforcement learning model dynamically updates the policy weight parameters in the reinforcement learning model based on user stay position data and historical lighting adjustment records within a preset duration; Injecting the optimal control strategy parameters after iterative optimization into the lighting control parameters, so that the lighting control process includes the characteristics of the spatial light field distribution.
[0012] In one embodiment, after the step of 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, the method further includes: Detecting the power input state 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; Probing adjacent nodes of the control core at a preset scanning period, and when a communication link interruption is detected, determining the comprehensive weight value of the candidate relay nodes, and reconstructing the mesh network routing table of the control core based on the comprehensive weight value; Performing data encapsulation on the pulse control parameter matrix and the updated mesh network routing table to generate an enhanced broadcast instruction, so that the lighting device performs network self-healing cooperation operations based on the enhanced broadcast instruction while maintaining the lamp control parameters.
[0013] In addition, to achieve the above object, the present application further provides a lighting control device, where the lighting control device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the lighting control method as described above.
[0014] In addition, to achieve the above object, the present application further provides a storage medium, where the storage medium is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the lighting control method as described above are implemented.
[0015] The present application provides a lighting control method, a lighting control device, and a storage medium. By receiving a wireless control instruction sent by a control terminal based on a preset protocol, determining a decoding strategy matching the preset protocol, decoding a space identifier and lighting control parameters from the wireless control instruction through the decoding strategy, then determining a matching control core according to the space identifier, determining area information associated with the control core, and finally sending the lighting control parameters to the control core, so that the control core performs a lighting control operation corresponding to the area information based on the lighting control parameters. Through the linkage control between the space identifier and the control core, the present application improves the accuracy and flexibility of lighting control. Description of the Drawings
[0016] The drawings herein are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0017] To more clearly illustrate the technical solutions in the embodiments of the present application or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 It is a schematic flowchart of the first embodiment of the lighting control method of the present application; Figure 2 It is a schematic flowchart of the second embodiment of the lighting control method of the present application; Figure 3 It is a schematic flowchart of the third embodiment of the lighting control method of the present application; Figure 4 It is a schematic flowchart of the fourth embodiment of the lighting control method of the present application; Figure 5 It is a schematic architecture diagram of the hardware operating environment of the lighting control device involved in the embodiments of the present application.
[0019] The realization of the purpose, functional features, and advantages of the present application will be further described with reference to the embodiments and the drawings. Detailed Embodiments
[0020] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0021] To better understand the above technical solution, the exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present application can be understood more thoroughly and the scope of the present application can be fully communicated to those skilled in the art.
[0022] To better understand the above technical solution, the above technical solution will be described in detail below in combination with the accompanying drawings of the specification and specific implementation manners.
[0023] The main solution of the present application is: receiving a wireless control instruction sent by a control terminal based on a preset protocol; determining a decoding strategy matching the preset protocol, and decoding a space identifier and lighting control parameters from the wireless control instruction through the decoding strategy; determining a matching control core according to the space identifier, and determining area information associated with the control core; sending the lighting control parameters to the control core, so that the control core performs a lighting control operation corresponding to the area information based on the lighting control parameters.
[0024] Currently, common lighting control mostly adopts a wired control method. For example, the on / off and brightness of a lamp are directly controlled through a physical switch on the wall, or a simple wireless remote control is used to achieve basic control of a single lamp. However, when controlling lights with traditional solutions, the control instructions are relatively single and the association with the lamps is fixed and cannot be changed. It lacks flexibility in complex scenarios and is difficult to meet diverse lighting control requirements, resulting in obvious deficiencies in the accuracy and flexibility of lighting control.
[0025] In the present application, a wireless control instruction sent by a control terminal based on a preset protocol is received, then a decoding strategy matching the preset protocol is determined, and a space identifier and lighting control parameters are decoded from the wireless control instruction through the decoding strategy. Then, a matching control core is determined according to the space identifier, and area information associated with the control core is determined. Finally, the lighting control parameters are sent to the control core, so that the control core performs a lighting control operation corresponding to the area information based on the lighting control parameters. Through the linkage control of the space identifier and the control core, the accuracy and flexibility of lighting control are improved.
[0026] Embodiment 1 Based on this, an embodiment of the present application provides a lighting control method, referring to Figure 1 , Figure 1 is a schematic flowchart of the first embodiment of the lighting control method of the present application. The lighting control method includes steps S10 to S40: Step S10: Receive a wireless control instruction sent by a control terminal based on a preset protocol.
[0027] In this embodiment, the lighting control system performs processing actions. The lighting control system is deployed in a lighting control device, connected to the control terminal. The control core can be set on the lighting control device or communicatively connected to the lighting control device. The preset protocol is a pre-set data transmission rule and convention, used to ensure that the communication between the control terminal and the lighting control system can be carried out accurately and efficiently. For example, in this embodiment, the preset protocol can be a wireless communication protocol such as the ZigBee protocol, the Bluetooth protocol or the Wi-Fi protocol, or a set of communication protocols defined by the user. Control terminals such as smart speakers, mobile phone APPs, etc. convert the user's lighting control intention into a wireless control instruction according to the preset protocol and send it out.
[0028] Specifically, the lighting control system first needs to establish a wireless communication receiving module. This module turns on 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 a wireless signal receiving antenna and converts it into an electrical signal and passes it into the system. For example, when the user clicks to send an instruction to turn on the living room lights on the mobile phone APP, the APP encapsulates the instruction according to the preset ZigBee protocol and then sends it out through the wireless transmission module of the mobile phone. After the receiving module of the lighting control system receives this ZigBee signal, the step of receiving the wireless control instruction sent by the control terminal based on the preset protocol is completed.
[0029] Step S20: Determine a decoding strategy matching the preset protocol, and decode a space identifier and lighting control parameters from the wireless control instruction through the decoding strategy.
[0030] In this embodiment, the decoding strategy is a method of using corresponding algorithms and rules to extract useful information from the received wireless control instruction for a specific preset protocol. Different communication protocols have different decoding methods. For example, the ZigBee protocol has its specific data frame format. When decoding, the source address needs to be extracted according to its frame structure, which can be used as part of the information of the space identifier, the destination port, the data content (including lighting control parameters), etc.
[0031] Specifically, after the decoding module inside the lighting control system receives a wireless control instruction, it first identifies the type of preset protocol followed by the instruction. For example, it identifies that the data packet follows the ZigBee protocol. Then, according to the decoding strategy of the ZigBee protocol and in accordance with the format of its data frame, it sequentially parses out the information of each field from the frame header to the frame tail. For example, in a ZigBee data frame, the source address field can represent the spatial location (i.e., spatial identifier) where the terminal sending the instruction is located, and the data payload part contains lighting control parameters such as the brightness and color temperature of the light. Through a series of bit operations and data extraction operations, this information is separated and decoded from the original wireless control instruction data.
[0032] Step S30: Determine the matching control core according to the spatial identifier, and determine the area information associated with the control core.
[0033] The spatial identifier is an identifier used to determine a physical space or area, which can help the system identify the specific location where the user wants to control the lights. The control core is the core processing unit in the lighting control system responsible for processing the lighting control of a specific area, and each control core is associated with specific area information. For example, in a large building, different floors and different rooms can be regarded as different spaces, and each space has a corresponding control core to manage the lights in that area.
[0034] As an alternative implementation, there is a mapping table of spatial identifiers and control cores inside the lighting control system. When the spatial identifier is decoded, the control system finds the control core that matches the spatial identifier by looking up this mapping table. At the same time, each control core will be associated with the area information it manages during initialization. For example, control core A manages the living room area, including all the lighting device information in the living room and their layout positions, etc. By accessing the attribute configuration file or database record of the control core, the detailed area information associated with the control core is determined.
[0035] As an alternative implementation, the method of determining the matching control core according to the spatial identifier and determining the area information associated with the control core can also first determine the area information associated with each control core, then determine the target area information containing the spatial identifier according to the area information, and determine the target control core corresponding to the target area information as the control core that matches the spatial identifier.
[0036] In this embodiment, at least one of the above-mentioned area information is associated with the control core, and there is at least one control core. The area information associated with the control core refers to the physical space range and its corresponding attribute information under the jurisdiction of each control core. For example, control core A can be associated with the living room area, or it can be associated with the bedroom and balcony areas. Determining the area information associated with each control core is to obtain the corresponding spatial data of all control cores in the system. The spatial identifier is used to uniquely identify a physical space or area, the target area information is the complete area data corresponding to the spatial identifier, and the target control core is the control core associated with the target area information.
[0037] Specifically, after the configuration management module inside the lighting control system receives the instruction to determine the area information, this module stores the association records between each control core and the area information. First, it will wake up the storage unit and retrieve the pre-configured correspondence table between the control core and the area information. Then, through data reading operations, the area information corresponding to each control core is completely extracted and temporarily stored in the buffer area of the system for subsequent steps. This process queries specific records from the database, aiming to provide basic data support for subsequent matching of control cores based on the spatial identifier. When the spatial identifier is decoded, the system compares this spatial identifier with the area information associated with each extracted control core one by one. For example, if the spatial identifier is "Living Room 001", the system will check which of the area information associated with each control core contains the identifier "Living Room 001". Assuming that the area information associated with control core A contains "Living Room 001", then the system determines that control core A is the target control core matching this spatial identifier and records this corresponding relationship.
[0038] After determining the target control core, the system encapsulates the lighting control parameters into a data frame format that conforms to the preset protocol. For example, if the preset protocol is the TCP / IP protocol based on Wi-Fi, the system will first convert the lighting control parameters into a binary data format, then add necessary information such as the source address, destination address, and port number according to the header information format of the TCP / IP protocol, and finally send the encapsulated data frame through the wireless sending module. After the control core receives the data frame, it will perform de-encapsulation according to the same preset protocol to extract the lighting control parameters.
[0039] The above solution further improves the intelligence and accuracy of the lighting control system by determining and matching the area information associated with each control core and sending the lighting control parameters according to the preset protocol. In large and complex lighting environments, such as smart home systems and intelligent office buildings, it can quickly and accurately send the user's control instructions to the control cores of the corresponding spaces, realizing independent and efficient control of the lights in different areas and enhancing the user experience.
[0040] As another alternative implementation, the step of determining a matching control core according to the spatial identifier further includes: Obtain multiple sets of subspace identifiers bound to the control core; determine whether the spatial identifier has an inclusion and / or subordination relationship with any of the subspace identifiers. If there is a spatial subordination relationship, the spatial identifier matches the control core.
[0041] Specifically, the multiple sets of subspace identifiers bound to the control core mean that a control core can be associated with multiple finer-grained subspaces, and each subspace has its unique identifier. These identifiers together form the set of subspace identifiers of the control core. For example, a control core manages the entire living room, and the living room can be further divided into multiple subspaces such as a sofa area and a TV area, and each subspace has a corresponding identifier. The inclusion relationship means that the spatial identifier directly exists in a certain set of subspace identifiers; the subordination relationship means that the space corresponding to the spatial identifier belongs to the higher-level space range corresponding to a certain subspace. For example, the subspace "Sofa Area 001" is subordinate to the living room space. When the spatial identifier is "Living Room 001" or "Sofa Area 001", there is a subordination or inclusion relationship with the corresponding subspace identifier.
[0042] The configuration management module in the lighting control system is responsible for storing the binding relationship between the control core and the set of subspace identifiers. When it is necessary to obtain the set of subspace identifiers, the configuration management module first queries the configuration file of the control core, which records the association information between the control core and each subspace identifier. Through data reading operations, these subspace identifiers are extracted one by one and organized into a set. Then the system compares the decoded spatial identifier with the sets of subspace identifiers of each obtained control core one by one. First, check whether the spatial identifier directly exists in a certain set of subspace identifiers, that is, whether there is an inclusion relationship. If it exists, it is directly determined that the spatial identifier matches the corresponding control core. If there is no inclusion relationship, further determine whether the space corresponding to the spatial identifier belongs to the higher-level space range where a certain subspace is located, that is, whether there is a subordination relationship. By obtaining the set of subspace identifiers bound to the control core and judging the inclusion and subordination relationships between the spatial identifier and the subspace identifier, the refined control ability of the lighting control system is enhanced. In multi-space and multi-level lighting scenarios, it can accurately identify the user's lighting control intention for different levels of space, realize the precise matching and control of space lighting, and improve the user's satisfaction with the lighting system and the practicality of the system.
[0043] Exemplarily, assume that the spatial identifier is "Living Room 001", and the subspace "Sofa Area 001" in a certain set of subspace identifiers is subordinate to "Living Room 001", then it is considered that there is a spatial subordination relationship, and thus it is determined that the spatial identifier matches the corresponding control core.
[0044] Step S40: Send 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.
[0045] In this embodiment, the light control parameters are parameters specifically used to control the lights, such as brightness value (0 - 100%), color temperature value (numerical range from warm white to cold white), switch state (on or off), etc. After receiving these parameters, the control core controls the corresponding lights according to the lighting device situation recorded in the area information. For example, the area information indicates that the living room managed by this control core has chandeliers, wall lights and table lamps, and the light control parameters are to adjust the brightness to 80%, the color temperature to 4000K and turn on all the lights.
[0046] As an optional implementation manner, the control system encapsulates the decoded light control parameters into a control instruction data packet and sends it to the corresponding control core through the internal communication bus. After receiving the data packet, the control core parses out parameters such as brightness and color temperature, and then sends control signals to each light within its jurisdiction according to the preset light control algorithm.
[0047] Exemplarily, for dimmable lights, the control core adjusts the driving current of the lights according to the brightness parameter, thereby changing the brightness; for lights with variable color temperature, the internal color temperature adjustment circuit is adjusted according to the color temperature parameter to achieve color temperature change. Finally, the lights in this area perform corresponding lighting, dimming, color changing and other operations according to the instructions sent by the user through the control terminal.
[0048] In the technical solution provided in this embodiment, by receiving the wireless control instruction sent by the control terminal based on the preset protocol, then determining the decoding strategy matching the preset protocol, decoding the space identifier and the light control parameters from the wireless control instruction through the decoding strategy, then determining the matching control core according to the space identifier, determining the area information associated with the control core, and finally 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 solution of this embodiment improves the accuracy and flexibility of light control through the linkage control between the space identifier and the control core.
[0049] In addition, this embodiment can also ensure the accuracy and reliability of communication by using the preset protocol and decoding strategy; through the association between the space identifier, the control core and the area information, the target area can be quickly located, and the corresponding light operations can be performed according to the light control parameters, which not only improves the convenience and flexibility of light control, but also is applicable to various complex scenarios, such as the intelligent management of lights in smart home, smart office and other environments, effectively improving the user experience and the comfort of the lighting environment.
[0050] Embodiment Two Based on any one of the embodiments, the present application further provides a second embodiment. Refer to Figure 2 , Figure 2 which is a schematic flowchart of the second embodiment of the lighting control method of the present application. After step S40, steps S50 to S80 are further included: Step S50: After receiving the target wireless control instruction, determine the target priority identifier in the target wireless control instruction.
[0051] In this embodiment, the target priority identifier in the target wireless control instruction is a flag field used to indicate the priority of the instruction, which can be a numerical value or a specific code, specifically representing the execution priority order of the instruction in the lighting control system. For example, the priority identifier can be divided into three levels: high, medium, and low, which are represented by the numbers 1, 2, and 3 respectively. The smaller the number, the higher the priority.
[0052] It should be noted that the target wireless control instruction is a newly received control instruction after the lighting control system receives the wireless control instruction, that is, the second control instruction issued by the control terminal. When the lighting control system receives the target wireless control instruction, the instruction parsing module first performs a preliminary parsing on the instruction and extracts the target priority identifier field in the instruction.
[0053] Specifically, the instruction is a data packet encapsulated according to a specific protocol, and there is a fixed byte position for storing the priority identifier. The parsing module reads the value of this field according to the byte position specified by the protocol and converts it into a priority identifier format that can be recognized by the system internally, and records it in the instruction buffer area of the lighting control system.
[0054] Step S60: Compare the target priority identifier with the current priority identifier corresponding to the currently executed lighting control operation.
[0055] In this embodiment, the current priority identifier refers to the priority flag corresponding to the currently executed lighting control operation. After extracting the target priority identifier, the lighting control system compares it with the current priority identifier corresponding to the currently executed lighting control operation. The comparison process is responsible for the priority management module provided in the lighting control system. The priority management module will retrieve the priority identifier value of the currently executed operation and compare it with the target priority identifier value according to the preset comparison rules.
[0056] Step S70: If the priority of the target priority identifier is higher than that of the current priority identifier, generate a synchronous gradual change instruction based on the difference between the current lighting parameters and the target parameters, where the target parameters are the parameters carried by the target wireless control instruction.
[0057] In this embodiment, the synchronous gradual change instruction is an instruction used to control the smooth transition of lighting parameters from the current state to the target state. Specifically, it combines the difference between the current lighting parameters and the target parameters and the time strategy parameters, enabling a stepless change in the lighting state. If the current lighting brightness is 50% and the target brightness is 80%, and the time strategy parameter is set to 5 seconds, then the synchronous gradual change instruction will control the lighting to smoothly increase from 50% brightness to 80% brightness within 5 seconds.
[0058] Specifically, when it is determined 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, according to the preset time strategy parameters, if the set transition time is 5 seconds, the lighting control system will generate a synchronous gradual change 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. Then, these calculation results are encapsulated into a synchronous gradual change instruction, including information such as the starting parameters, target parameters, change rate, total time, etc., and are passed to the control core, which executes the synchronous gradual change instruction.
[0059] Optionally, in this embodiment, step S70 includes: During the execution of the parameter gradual change operation, it is detected whether there is a newly received new instruction; if a new instruction carrying a higher priority identifier is detected, the parameter gradual change operation is aborted and the target synchronous instruction is re-determined according to the new instruction; if the new instruction does not carry a higher priority identifier, the parameter gradual change operation continues to be executed.
[0060] 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 gradual change operation. These instructions can come from the same or different control terminals and are used for further control operations on the lighting. A new instruction carrying a higher priority identifier refers to an instruction in which the priority identifier value is higher than the priority identifier value of the instruction corresponding to the currently executing parameter gradual change operation (according to the preset priority comparison rule), which means that this new instruction needs to be executed prior to the current operation. A new instruction not carrying a higher priority identifier refers to an instruction in which the priority identifier value is less than or equal to the priority identifier value of the instruction corresponding to the currently executing parameter gradual change operation. According to the priority comparison rule, this new instruction does not need to be executed prior to the current operation.
[0061] Specifically, during the execution of the parameter gradual change operation, the lighting control system maintains the detection state of the wireless receiving module, and the wireless receiving module will detect in real time whether a new wireless signal arrives. When a new wireless signal is detected, the receiving module converts it into an electrical signal and transmits it into the interior of the lighting control system. The lighting control system makes a preliminary judgment on the newly incoming signal to confirm whether it is a valid instruction. If it is confirmed to be a valid new instruction, it will be temporarily stored in a special new instruction buffer area, and an interrupt signal will be triggered to notify the module that is executing the parameter gradual change operation that a new instruction has arrived and further processing is required.
[0062] Then, the lighting control system will extract the priority identifier in the new instruction and compare it with the priority identifier of the corresponding instruction of the currently executing parameter gradual change operation. If the priority identifier of the new instruction is higher, the system will immediately send an abort signal to the parameter gradual change execution module. After receiving the abort signal, the parameter gradual change execution module stops the current parameter gradual change 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 re-determining the target parameters, calculating the difference from the current lighting parameters, generating a new synchronization gradual change instruction by combining the time policy parameters, etc., to prepare for executing the new lighting control operation.
[0063] If, after comparison, the priority identifier of the new instruction is not higher than the priority identifier of the currently executing instruction, the system will temporarily store the new instruction in the general instruction buffer area and wait for further processing after the current parameter gradual change operation is completed. During the process of the parameter gradual change execution module continuing to execute the current operation, information such as the arrival time of the new instruction will be recorded.
[0064] By detecting new instructions during the parameter gradual change process and deciding whether to abort the current operation according to the priority of the new instruction, the real-time performance and dynamic adaptability of the lighting control system are further enhanced. In lighting scenarios with multi-user interaction and frequent instruction changes, such as intelligent exhibition hall lighting control and multi-area linkage light shows in smart homes, it can ensure that high-priority instructions take effect in a timely manner, while ensuring the orderly processing of low-priority instructions, enabling the lighting control system to flexibly handle various complex situations and improving user satisfaction with lighting control.
[0065] Furthermore, in this embodiment, after the step S60, the following is further included: When it is detected that the target priority identifier is the same as the current priority identifier, extract the scene type identifier in the target wireless control instruction; according to the preset conflict resolution strategy, select to continue executing the current scene or switch to a new scene, where the conflict resolution strategy includes a scene type priority comparison table.
[0066] 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 combination of lighting parameters (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. At this time, it is necessary to further process 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 stipulates the priority relationship between different scene types. For example, the reading scene can have a higher priority than the movie-watching scene because reading requires more stable lighting.
[0067] When it is determined that the target priority identifier is the same as the current priority identifier, a scene extraction signal is triggered. After the lighting control system receives this scene extraction signal, it further deeply analyzes the target wireless control instruction. According to the position of the pre-set scene type identifier field in the instruction, the scene type identifier is extracted. Then, according to the pre-set 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 executed 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 responsible for the conflict resolution management module of the system. It will generate corresponding execution decision signals according to the rules in the comparison table and the extracted scene type identifier, and send them to the control core for execution.
[0068] By introducing the scene type identifier and the conflict resolution strategy, the problem of lighting control instruction conflicts in the case of the same priority is solved. In a lighting environment with frequent multi-scene switching, it can reasonably continue to execute or switch scenes according to the actual scene requirements, improving the intelligent decision-making ability of lighting control, meeting the personalized lighting needs of users in different scenes, and making the lighting control system more practical.
[0069] As another alternative implementation manner, in this embodiment, the step of generating a synchronous gradual change instruction by combining the difference between the current lighting parameters and the target parameters with the time strategy parameter includes: Obtain the response speed parameter and network delay index of the lighting device associated with the control core; calculate and generate an adaptive gradual change time coefficient according to the comprehensive evaluation value of the device response speed and network delay; multiply the gradual change time coefficient by the pre-set basic transition duration to obtain the time strategy parameter.
[0070] Specifically, the response speed parameter of the lighting device refers to the speed index at which lighting parameters (such as brightness, color temperature, etc.) start to change after the lighting device receives a control signal, usually expressed in the number of parameter units changed per second. The network delay index refers to the time delay between the sending of a control instruction and the receipt of the instruction by the lighting device, usually measured in milliseconds (ms). The device response speed and network delay are values obtained by weighted calculation of the response speed parameter and network delay index of the lighting device, characterizing the time characteristics during the execution of lighting control operations. The gradient time coefficient is a coefficient dynamically adjusted according to the comprehensive evaluation value, used to determine the relative time length of the gradual change of lighting parameters. The basic transition duration is a preset basic lighting parameter transition time of the system, usually a time benchmark set under ideal conditions.
[0071] In this embodiment, the device management module is used to obtain the response speed parameters of each lighting device under the jurisdiction of the control core. These parameters can be reported by the device itself to the lighting control system during device initialization, or can be obtained by the lighting management system through historical data statistics. At the same time, the network delay index can be obtained by a delay detection mechanism built into the network communication module. According to a preset weight formula, the obtained response speed parameters and network delay index of the lighting device are weighted calculated. 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 gradient time coefficient calculation model, such as the gradient 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 gradient time coefficient K.
[0072] Finally, the preset basic transition duration and the calculated gradient time coefficient are obtained, and through calculation, the time strategy parameter T = K×T0 is calculated. The calculated time strategy parameter T will be used to generate a synchronous gradient instruction to control the gradual change process of lighting parameters.
[0073] Exemplarily, 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 parameters will complete the gradual change from the current value to the target value within 4.5 seconds.
[0074] Step S80: Execute the parameter gradual change operation of the current lighting parameter according to the synchronous gradient instruction, so that the target parameter gradually covers the current lighting parameter.
[0075] In this embodiment, the parameter gradual change operation refers to the process of gradually adjusting the lighting parameters according to the requirements of the synchronous gradient instruction, so that they smoothly change from the current value to the target value.
[0076] After receiving the synchronous gradual change instruction, first parse the information such as the starting parameters, target parameters, change rate, and total time in the instruction. Then, based on this information, start a timer and a counter, and gradually adjust the lighting parameters at the set change rate.
[0077] Exemplarily, for the case where the brightness increases from 50% to 80% and the time is set to 5 seconds, every 1 / 6 second (because the brightness changes 6 units per second and there is a total change of 30 units, so the time interval is 5 / 30 = 1 / 6 second), increase the brightness parameter by 1 unit and send a corresponding control signal to the lamp to make the lamp work according to the new brightness parameter. This process will continue until the brightness parameter reaches the target value of 80%.
[0078] In the technical solution provided in this embodiment, through the priority identifier and the synchronous gradual change instruction, the priority management and smooth transition of the lighting control operation are realized. In a lighting environment with frequent multi-user operations and scene switches, such as conference room lighting control and multi-area lighting linkage in smart homes, it can ensure that high-priority lighting control instructions take effect in a timely manner. At the same time, by means of gradual change, it avoids the discomfort and lamp damage caused by sudden changes in the lighting state, improves the intelligence level and user experience of the lighting control system, and makes the lighting control system more in line with the human use requirements.
[0079] Embodiment Three Based on any of the embodiments, the present application further provides a third embodiment. Refer to Figure 3 , Figure 3 which is a schematic flowchart of the third embodiment of the lighting control method of the present application. After step S20, it further includes steps S90 to S120: Step S90: Obtain the personnel position distribution matrix through radar and collect the spectral energy distribution data of indoor natural light through a spectral sensor.
[0080] Step S100: Input the personnel position distribution matrix into the light field propagation model, and combine the spectral energy distribution data to simulate the lighting coverage map of the current space, and generate a set of candidate control strategies including brightness gradient values and color temperature deviation values.
[0081] Step S110: Call the reinforcement learning model to perform iterative optimization on the set of candidate control strategies, where the reinforcement learning model dynamically updates the policy weight parameters in the reinforcement learning model based on the user stay position data and historical lighting adjustment records within a preset time period.
[0082] Step S120: Inject the optimal control strategy parameters after iterative optimization into the lighting control parameters.
[0083] In this embodiment, the radar obtains the personnel position distribution matrix by using radar technology to scan and locate the positions of personnel in space, and presents the position information of the personnel in the form of a matrix. The spectral energy distribution data of the indoor natural light collected by the spectral sensor is the energy distribution of the indoor natural light detected by the spectral sensor at different wavelengths. The light field propagation model is a model that describes the propagation law of light in space. Through this light field propagation model, the distribution and change of light in space can be simulated.
[0084] In addition, the light coverage map is a visual representation of the light situation in space simulated based on the light field propagation model and the spectral energy distribution data, and contains information such as brightness gradient values and color temperature deviation values. The reinforcement learning model is a machine learning method based on the interaction and learning between the agent and the environment, and learns the optimal behavior strategy through continuous trial and error. Iterative optimization refers to continuously evaluating and selecting the optimal control strategy in the candidate control strategy set through the reinforcement learning model. The optimal control strategy parameters refer to the best lighting control parameters obtained after iterative optimization by the reinforcement learning model, including the optimal settings in aspects such as brightness and color temperature.
[0085] Specifically, first install the radar device and the spectral sensor in the space where the lights need to be controlled. The radar device detects the position information of the personnel in the space by transmitting and receiving electromagnetic waves, sorts out the position data of multiple detected personnel into a personnel position distribution matrix and sends it to the lighting control system. At this time, the spectral sensor detects the spectral energy distribution of the indoor natural light in real time, and digitally processes the detected data to obtain the spectral energy distribution data.
[0086] Then input the personnel position distribution matrix into the light field propagation model, combine the spectral energy distribution data, and generate the light coverage map of the current space through numerical calculation and simulation analysis. Then, according to the light situation in the light coverage map, generate multiple candidate control strategy sets containing different brightness gradient values and color temperature deviation values. Then call the reinforcement learning model and use the candidate control strategy set as the input of the model. The reinforcement learning model evaluates and selects the candidate control strategies according to the preset reward function and policy update algorithm. In each iteration process, dynamically update the policy weight parameters in the reinforcement learning model according to the user's staying position data and the historical lighting adjustment records, and gradually find the optimal control strategy. Finally, integrate the optimal control strategy parameters after iterative optimization with the original lighting control parameters, replace some of the original parameters, so that the lighting control parameters contain the characteristics of the spatial light field distribution. In the subsequent lighting control process, the control core will execute the lighting control operation according to the new lighting control parameters.
[0087] As an alternative implementation, it is also possible to collect ambient light intensity data in real time through a light sensor, convert it into an electrical signal and send it to the sensor management module. The received data is digitally processed to obtain the value of the ambient light intensity. At the same time, the human activity sensor sends the detected human activity signal (such as the change in the human infrared signal) to the sensor management module, and the management module analyzes the signal to calculate the frequency of human activities. The ambient light sensor collects the ambient light intensity value once per second, records the data of multiple consecutive sampling points, calculates the change amount between adjacent sampling points and takes the average to obtain the ambient light intensity change rate; the human activity sensor sends a pulse signal to the management module every time a human movement is detected, and counts the number of pulse signals within a unit time to obtain the human activity frequency.
[0088] Then, according to the preset parameter adjustment rules, reduce the light brightness parameter; when the human activity frequency increases, appropriately increase the light brightness parameter; when the ambient light intensity change rate is negative and the human activity frequency is low, further reduce the brightness to save energy, etc. The algorithm module calculates the adjustment amount of the light control parameter according to these rules and modifies the original light control parameter.
[0089] Finally, the adjusted light control parameter is encapsulated into a data frame format according to the address information and communication protocol of the control core and sent to the control core. After receiving the data frame, the control core performs a deframing operation, extracts the adjusted light control parameter, and updates the internal control parameter configuration to prepare for executing a new light control operation.
[0090] In the technical solution provided in this embodiment, the personnel position distribution matrix is obtained through radar and the spectral energy distribution data is collected by the spectral sensor. Through the iterative optimization of the light field propagation model and the reinforcement learning model, the optimized adjustment of the light control parameter is realized. In scenarios such as smart home and smart office, it is possible to automatically adjust the lights according to the personnel position and natural lighting conditions, providing a more comfortable and energy-saving lighting environment, and improving the intelligent level and user experience of the lighting control system.
[0091] Embodiment 4 Based on any of the embodiments, the present application also provides a fourth embodiment. Refer to Figure 4 , Figure 4 which is the flow schematic diagram of the fourth embodiment of the light control method of the present application. After step S40, steps S130 to S150 are further included: Step S130: Detect the power input state of the control core. When the power voltage is lower than the safety threshold, trigger an emergency instruction and convert the emergency instruction into a pulse control parameter matrix according to a preset coding mode.
[0092] Step S140: Detect the adjacent nodes of the control core at a preset scanning period. When a communication link interruption is detected, determine the comprehensive weight value of the candidate relay nodes, and reconstruct the mesh network routing table of the control core based on the comprehensive weight value.
[0093] Step S150: Perform data encapsulation on the pulse control parameter matrix and the updated mesh network routing table to generate an enhanced broadcast instruction, so that the lighting device can perform network self-healing collaborative operations based on the enhanced broadcast instruction while maintaining the lamp control parameters.
[0094] In this embodiment, the power input state refers to the real-time situation of the power voltage received by the control core. The pulse control parameter matrix is a parameter representation form that converts the emergency instruction into a pulse signal, and includes information such as a pulse frequency vector, a duty cycle gradient value, and an 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 various performance indicators of the candidate relay nodes, including signal strength, bandwidth, stability, etc. The mesh network routing table is a table that records the node connection relationships and routing information in the network, and is used to guide the data transmission path in the network. Data encapsulation refers to combining 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, which can carry more control information and network configuration information, and can send instructions to multiple lighting devices at the same time.
[0095] Specifically, the detection module in the lighting control system detects the power input voltage of the control core. When the detected voltage is lower than the set safety threshold, an emergency instruction is triggered. After the emergency instruction is triggered, the lighting control system converts the emergency instruction into a pulse control parameter matrix according to a preset coding mode. The preset coding mode can map different operation requirements of the emergency instruction to different parameters of the pulse control parameter matrix. For example, different pulse frequencies correspond to different emergency operation levels. The specific coding mode can be Morse code or binary coding.
[0096] Next, the lighting control system regularly detects the adjacent nodes of the control core at a preset scanning period to check the status of the communication link. When a communication link interruption is detected, the node with the highest comprehensive weight value is determined from the candidate relay nodes. According to the comprehensive weight value, the mesh network routing table of the control core is reconstructed to update the routing information.
[0097] As an optional implementation, a reasonable scanning period duration can be set according to factors such as network scale, service requirements, and node resources. For example, in some small local area networks, it can be set to scan once every 10 seconds, and for large and complex networks, the period can be appropriately extended. At the beginning of each scanning period, the control core sends probe messages to its adjacent nodes. These messages contain the identification information, timestamp, etc. of the control core itself. After receiving the probe messages, the adjacent nodes will respond according to the preset rules and return a response message containing their own status and link quality information. The control core records the time when the probe message is sent and starts a timeout timer. If the response message from the adjacent node is not received within the specified time, it is considered that the communication link may be interrupted. And a sequence number is added to the probe message, and the adjacent node echoes this sequence number in the response message.
[0098] By checking whether the sequence numbers of the received response messages are continuous, if it is found that the sequence numbers are not continuous or there are jumps, it is determined that the link is interrupted. The control core detects these link layer state change events. Once it detects that the link state becomes down, it determines that the communication link is interrupted. After detecting the interruption of the communication link, potential alternative relay nodes are searched in the network. Relevant information of these nodes is collected, such as the hardware resources (CPU, memory, storage, etc.) of the nodes, the quality of the transmission medium, transmission delay, bandwidth, signal strength, load, etc.
[0099] According to the network performance requirements and service characteristics, the key factors affecting the comprehensive weight value of the alternative relay nodes are determined as weight factors. Common weight factors include hop count, signal strength, bandwidth, load, etc., and a weight coefficient is assigned to each weight factor. Then, the values of each weight factor of the collected alternative relay nodes are substituted into the pre-determined comprehensive weight calculation formula to calculate the comprehensive weight value of each alternative relay node. Then, a new routing table is created or the existing routing table is backed up and initialized. According to the comprehensive weight value of the alternative relay nodes, starting from the source node, the best relay node path is searched hop by hop. The alternative relay node with the highest comprehensive weight value is selected as the next-hop node to construct a path from the source node to the destination node. Then, the determined best path information is updated to the routing table, including information such as the source node, destination node, next-hop node, comprehensive weight value, etc. For each destination node, multiple possible paths are recorded, and the path with the highest comprehensive weight value is selected as the default path. When the network topology structure and node status are relatively stable, the routing table is optimized to merge duplicate or redundant path entries. At the same time, according to the sorting of the comprehensive weight values, one or several backup paths are set for each default path so that it can be quickly switched when new changes occur in the network.
[0100] Finally, the pulse control parameter matrix and the updated mesh network routing table are combined and encapsulated according to the data format to generate an enhanced broadcast instruction. The enhanced broadcast instruction contains the information of the network self-healing cooperation operation that the lighting device needs to execute while maintaining the current lamp control parameters.
[0101] In this embodiment, through steps such as detecting the power input status, detecting adjacent nodes, and data encapsulation, the emergency response and network self-healing functions of the lighting control system are realized. In the case of power anomalies or communication link interruptions, etc., measures can be taken in a timely manner to ensure the stable operation and reliability of the lighting control system. This can effectively avoid lighting interruptions caused by system failures in some places with high requirements for lighting control.
[0102] This 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 first embodiment above.
[0103] Refer to the following Figure 5 , which shows a schematic structural diagram of a lighting control device suitable for implementing the 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, Personal Digital Assistants), tablet computers (PADs, Portable Application Descriptions), portable multimedia players (PMPs, Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The lighting control device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
[0104] As shown in Figure 5As shown, the lighting control device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. In the random access memory 1004, various programs and data required for the operation of the lighting control device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the lighting control device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a lighting control device having various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or had alternatively.
[0105] Specifically, 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, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through the communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above functions defined in the methods of the embodiments disclosed in the present application are executed.
[0106] The lighting control device provided in the present application adopts the lighting control method in the above embodiments, and can solve the technical problem that the traditional solution has deficiencies in the accuracy and flexibility of lighting control. Compared with the prior art, the beneficial effects of the lighting control device provided in the present application are the same as those of the lighting control method provided in the above embodiments, and other technical features in the lighting control device are the same as those disclosed in the method of the previous embodiment, and will not be elaborated here.
[0107] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0108] As described above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed in this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
[0109] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the lighting control method in the above embodiments.
[0110] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or combined with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination of the above.
[0111] The above computer-readable storage medium can be included in the lighting control device; it can also exist alone without being assembled into the lighting control device.
[0112] The above computer-readable storage medium carries one or more programs. When the one or more programs are executed by a lighting control device, the lighting control device is caused to: receive a wireless control instruction sent by a control terminal based on a preset protocol; determine a decoding strategy matching the preset protocol, and decode a space identifier and lighting control parameters from the wireless control instruction through the decoding strategy; determine a matching control core according to the space identifier, and determine area information associated with the control core; and send the lighting control parameters to the control core so that the control core performs a lighting control operation corresponding to the area information based on the lighting control parameters.
[0113] Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, by connecting through an Internet service provider using the Internet).
[0114] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0115] The modules involved in the embodiments of the present application can be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the unit itself.
[0116] The readable storage medium provided by the present application is a computer-readable storage medium, and the computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned lighting control method, which can solve the technical problem that the traditional solution has deficiencies in the accuracy and flexibility of lighting control. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the lighting control method provided by the above embodiments, and will not be elaborated here.
[0117] An embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the lighting control method as described above are implemented.
[0118] The computer program product provided by the present application can solve the technical problem that the traditional solution has deficiencies in the accuracy and flexibility of lighting control. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiments of the present application are the same as those of the lighting control method provided by the above embodiments, and will not be elaborated here.
[0119] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent scope of the present application.
Claims
1. A lighting control method, characterized in that, The described lighting control method includes the following steps: Receiving a wireless control instruction sent by a control terminal based on a preset protocol; Determining a decoding strategy matching the preset protocol, and decoding a space identifier and lighting control parameters from the wireless control instruction through the decoding strategy; Determining a matching control core according to the space identifier, and determining area information associated with the control core; Sending the lighting control parameters to the control core, so that the control core performs a lighting control operation corresponding to the area information based on the lighting control parameters.
2. The method according to claim 1, characterized in that The step of determining a matching control core according to the space identifier includes: Obtaining a plurality of sub-space identifier sets bound to the control core; Judging whether the space identifier has an inclusion and / or subordination relationship with any sub-space identifier. If there is a space subordination relationship, the space identifier matches the control core.
3. The method according to claim 1, wherein After the step of sending the lighting control parameters to the control core, so that the control core performs a lighting control operation corresponding to the area information based on the lighting control parameters, the method further includes: After receiving a target wireless control instruction, determining a target priority identifier in the target wireless control instruction; Comparing the priority of the target priority identifier with the current priority identifier corresponding to the currently executed lighting control operation; If the priority of the target priority identifier is higher than the current priority identifier, generating a synchronous gradual change instruction based on the difference between the current lighting parameters and the target parameters, in combination with a time strategy parameter, where the target parameters are the parameters carried by the target wireless control instruction; Performing a parameter gradual change operation on the current lighting parameters according to the synchronous gradual change instruction, so that the target parameters gradually cover the current lighting parameters.
4. The method according to claim 3, characterized in that, The step of, if the priority of the target priority identifier is higher than the current priority identifier, generating a synchronous gradual change instruction based on the difference between the current lighting parameters and the target parameters, in combination with a time strategy parameter, includes: During the execution of the parameter gradual change operation, detecting whether there is a newly received new instruction; If a new instruction carrying a higher priority identifier is detected, aborting the parameter gradual change operation and re-determining a target synchronization instruction according to the new instruction; If the new instruction does not carry a higher priority identifier, continuing to execute the parameter gradual change operation.
5. The method according to claim 3, characterized in that After the step of comparing the priority of the target priority identifier with the current priority identifier corresponding to the currently executed lighting control operation, the method further includes: When it is detected that the target priority identifier is the same as the current priority identifier, extracting a scene type identifier in the target wireless control instruction; Selecting to continue executing the current scene or switching to a new scene according to a preset conflict resolution strategy, where the conflict resolution strategy includes a scene type priority comparison table.
6. The method according to claim 3, wherein The step of generating a synchronous gradual change instruction based on the difference between the current lighting parameters and the target parameters, in combination with a time strategy parameter, includes: Obtaining a response speed parameter and a network delay index of a lighting device associated with the control core; Calculating and generating an adaptive gradual change time coefficient according to a comprehensive evaluation value of device response speed and network delay; Multiply the gradient time coefficient by a preset basic transition duration to obtain the time strategy parameter.
7. The method according to claim 1, characterized in that, After the step of determining the decoding strategy matching the preset protocol and decoding the space identifier and the lighting control parameters from the wireless control instruction through the decoding strategy, the method further includes: Obtain a personnel position distribution matrix through radar, and collect spectral energy distribution data of indoor natural light through a spectral sensor; Input the personnel position distribution matrix into a light field propagation model, and simulate the lighting 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; Call a reinforcement learning model to perform iterative optimization on the set of candidate control strategies, where the reinforcement learning model dynamically updates the policy weight parameters in the reinforcement learning model based on user stay position data and historical lighting adjustment records within a preset duration; Inject the optimally controlled policy parameters after iterative optimization into the lighting control parameters.
8. The method according to claim 1, characterized in that After the step of 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, the method further includes: Detect the power input state of the control core. When the power voltage is lower than the safety threshold, trigger an emergency instruction and convert the emergency instruction into a pulse control parameter matrix according to a preset encoding mode; Detect adjacent nodes of the control core at a preset scanning period. When a communication link interruption is detected, determine the comprehensive weight value of the candidate relay nodes, and reconstruct the mesh network routing table of the control core based on the comprehensive weight value; Perform data encapsulation on the pulse control parameter matrix and the updated mesh network routing table to generate an enhanced broadcast instruction, so that the lighting device performs network self-healing collaborative operations based on the enhanced broadcast instruction while maintaining the lighting control parameters.
9. A lighting control device, characterized in that, The lighting control device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the lighting control method according to any one of claims 1 to 8.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, it implements the steps of the lighting control method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Intelligent household control system
CN105159114A
Smart home equipment control method based on regional grouping
CN114637219A
Smart home light control method and system
CN118647116A
Cross-space cooperative illumination control method, sound box, system and medium
CN119729958A
Location-based interaction method and interactive system
WO2020244577A1
Cited By
Landscape light artificial intelligence distribution method and system
CN120857327A
A method and system for artificial intelligence-based allocation of landscape lighting
CN120857327B