Illumination system control method and device, electronic equipment and storage medium
By generating and utilizing the historical light source sequence of the lighting system, and automatically finding and turning on the light source, the operation inconvenience caused by the fixed position of the light source switch in the existing lighting system is solved, and the convenience and autonomous response capabilities of the lighting system are improved.
Patent Information
- Application Number
- CN202510432152.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-06-27
AI Technical Summary
In the existing lighting system, the switches of the light source are set in a fixed position, and users need to use tactile or memory positioning switches in a light-free environment, which is inconvenient to operate.
By obtaining the historical opening time of the light source, a historical light source sequence is generated, and a target light source sequence is found in the historical light source sequence in response to the light source opening signal, and a light source opening command is generated to automatically turn on the light source.
It improves the convenience of the lighting system, reduces the frequency of manual operation of users, and significantly improves the autonomous response capability of the lighting system.
Smart Images

Figure CN120224531A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of lighting control, and particularly to a lighting system control method and apparatus, an electronic device, and a storage medium. Background Art
[0002] A lighting system is an infrastructure that drives light sources through electric energy or other energy sources and combines control technologies to adjust the ambient light. Currently, the switches of light sources in the lighting system are set at fixed positions, and users need to locate the switches by touch or memory in a dark environment, which is inconvenient to operate. Therefore, how to improve the convenience of the lighting system has become a technical problem to be solved urgently. Summary of the Invention
[0003] The main purpose of the embodiments of this application is to propose a lighting system control method and apparatus, an electronic device, and a storage medium, aiming to improve the convenience of the lighting system.
[0004] To achieve the above object, a first aspect of the embodiments of this application proposes a lighting system control method, and the method includes:
[0005] Obtain the historical turn-on times of at least two light sources, and generate a historical light source sequence based on the historical turn-on times; the historical light source sequence represents the turn-on order of the light sources; the at least two light sources include a first light source;
[0006] In response to a first light source turn-on signal, search for the light source sequence containing the first light source in the historical light source sequence to obtain a target light source sequence;
[0007] Generate a light source turn-on instruction according to the target light source sequence to obtain a first instruction.
[0008] In some embodiments, the at least two light sources further include a second light source; the target light source sequence does not contain the second light source; after generating the light source turn-on instruction according to the target light source sequence to obtain the first instruction, it further includes:
[0009] In response to a second light source turn-on signal, search for the light source sequence containing the second light source in the historical light source sequence to obtain an updated light source sequence; generate a light source turn-on instruction according to the updated light source sequence to obtain a second instruction;
[0010] Replace the first instruction with the second instruction to turn on the light source.
[0011] In some embodiments, the step of in response to a first light source turn-on signal, search for the light source sequence containing the first light source in the historical light source sequence to obtain a target light source sequence includes:
[0012] In response to the first light source turning-on signal, search for the light source sequence containing the first light source in the historical light source sequence to obtain a candidate light source sequence;
[0013] Obtain the real-time turning-on time of the first light source;
[0014] Obtain the historical turning-on time of the first light source in the candidate light source sequence;
[0015] Calculate the difference between the real-time turning-on time and the historical turning-on time to obtain a time deviation value as the sequence recommendation value;
[0016] According to the sequence recommendation value, screen the candidate light source sequence to obtain the target light source sequence.
[0017] In some embodiments, the step of, in response to the first light source turning-on signal, searching for the light source sequence containing the first light source in the historical light source sequence to obtain the target light source sequence includes:
[0018] In response to the first light source turning-on signal, search for the light source sequence containing the first light source in the historical light source sequence to obtain a candidate light source sequence;
[0019] Calculate the usage frequency of the candidate light source sequence as the sequence recommendation value;
[0020] According to the sequence recommendation value, screen the candidate light source sequence to obtain the target light source sequence.
[0021] In some embodiments, the step of obtaining the historical turning-on times of at least two light sources and generating a historical light source sequence based on the historical turning-on times includes:
[0022] Obtain the historical turning-on times of at least two light sources, and calculate the turning-on time intervals of different light sources based on the historical turning-on times;
[0023] Generate a historical light source sequence based on the turning-on time intervals; the turning-on time intervals between adjacent light sources in the historical light source sequence are less than a time threshold.
[0024] In some embodiments, before the step of, in response to the first light source turning-on signal, searching for the light source sequence containing the first light source in the historical light source sequence to obtain the target light source sequence, it further includes:
[0025] Obtain a human body position signal through a sensor; if the human body position signal indicates that a human body enters the sensing area, send the first light source turning-on signal.
[0026] In some embodiments, it further includes:
[0027] Obtain the human body position signal through a sensor; if the human body position signal indicates that the human body has left the sensing area, send a light source off signal.
[0028] To achieve the above object, a second aspect of the embodiments of the present application provides a lighting system control device, the device includes:
[0029] A historical light source sequence generation module, configured to obtain the historical turn-on times of at least two light sources, and generate a historical light source sequence based on the historical turn-on times; the historical light source sequence represents the light source turn-on order; the at least two light sources include a first light source;
[0030] A target light source sequence search module, configured to, in response to a first light source turn-on signal, search for a light source sequence including the first light source in the historical light source sequence to obtain a target light source sequence;
[0031] A light source turn-on instruction generation module, configured to generate a light source turn-on instruction according to the target light source sequence to obtain a first instruction.
[0032] To achieve the above object, a third aspect of the embodiments of the present application provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect above is implemented.
[0033] To achieve the above object, a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.
[0034] The lighting system control method, device, electronic device, and storage medium provided by the present application generate a historical light source sequence according to the historical turn-on times of the light sources, and the obtained historical light source sequence reflects the user's historical action trajectory; after the first light source is turned on, by searching for a target light source signal including the first light source in the historical light source sequence to generate a light source turn-on instruction, it realizes the prediction of personalized light source requirements based on the user's historical behavior trajectory, automatically turns on the light source for the user, significantly improves the autonomous response ability of the lighting system, reduces the frequency of user manual operations, and has high operation convenience. Description of the Drawings
[0035] Figure 1 is a flowchart of the lighting system control method provided by the embodiments of the present application;
[0036] Figure 2 is Figure 1 a flowchart of step S101 in
[0037] Figure 3 is Figure 1The flowchart of step S102 in
[0038] Figure 4 is Figure 1 The flowchart of step S102 in
[0039] Figure 5 Another flowchart of the lighting system control method provided by the embodiments of the present application;
[0040] Figure 6 The structural schematic diagram of the lighting system control device provided by the embodiments of the present application;
[0041] Figure 7 The hardware structural schematic diagram of the electronic device provided by the embodiments of the present application. Detailed implementation manners
[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. 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.
[0043] It should be noted that although functional module division is performed in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the flowchart in the flowchart. Terms such as "first" and "second" in the description, claims and the above drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0045] In the related art, non-contact switches such as voice control switches, induction switches, and remote control switches are used to improve the convenience of light source control. However, the induction range and induction accuracy of non-contact switches are limited, and there are still inconveniences. For example, remote control switches need to turn on devices one by one through remote control devices such as mobile phones and tablets, and the cost of laying remote control switches over a large area is relatively high; voice control switches cannot accurately control light sources within a specific range.
[0046] Based on this, the embodiments of the present application provide a lighting system control method, device, electronic device and storage medium, aiming to improve the convenience of the lighting system.
[0047] The lighting system control method, device, electronic device and storage medium provided by the embodiments of the present application will be specifically described through the following embodiments. First, the lighting system control method in the embodiments of the present application will be described.
[0048] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results.
[0049] Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technologies mainly include several major directions such as computer vision technology, robotics, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0050] The lighting system control method provided by the embodiments of the present application relates to the field of lighting control technology. The lighting system control method provided by the embodiments of the present application can be applied to a terminal, or to a server side, or can also be software running on a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can also be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the lighting system control method, etc., but is not limited to the above forms.
[0051] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0052] It should be noted that in each specific embodiment of the present application, when it comes to relevant processing based on data related to the user's identity or characteristics, such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first. Moreover, the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiments of the present application need to obtain the user's sensitive personal information, the user's separate permission or separate consent will be obtained through methods such as pop-up windows or redirecting to a confirmation page. After clearly obtaining the user's separate permission or separate consent, the necessary user-related data for the normal operation of the embodiments of the present application will be obtained.
[0053] Figure 1 is an optional flowchart of the lighting system control method provided by the embodiments of the present application. Figure 1 The method in may include but is not limited to steps S101 to S103.
[0054] Step S101, obtain the historical activation times of at least two light sources, and based on the historical activation times, generate a historical light source sequence; the historical light source sequence represents the order of light source activation; the at least two light sources include a first light source.
[0055] Step S102, in response to a first light source activation signal, search for the light source sequence containing the first light source in the historical light source sequence to obtain a target light source sequence.
[0056] Step S103, generate a light source activation instruction according to the target light source sequence to obtain a first instruction.
[0057] It is easy to understand that the historical light source sequence includes several light source identifiers, and the light source identifiers are sorted according to the activation time. The historical light source sequence may also include the historical activation time of the first light source.
[0058] Steps S101 to S103 illustrated in the embodiments of the present application generate a historical light source sequence according to the historical activation times of the light sources. The obtained historical light source sequence reflects the user's historical action trajectory. After the first light source is activated, by searching for the target light source signal containing the first light source in the historical light source sequence to generate a light source activation instruction, the personalized light source demand prediction based on the user's historical behavior trajectory is realized, and the light source is automatically activated for the user, significantly improving the autonomous response ability of the lighting system, reducing the frequency of user manual operations, and having high operation convenience.
[0059] In step S101 of some embodiments, the light source can be an inductive light source. The inductive light source has a human body sensing function. By integrating an infrared pyroelectric sensor, a microwave radar, or an ultrasonic detection module, it can monitor the human body position signal in a preset sensing area in real time. When a human body is detected to enter the sensing range, it automatically triggers the light source to turn on. The light source can also be a non-inductive light source, which is triggered to turn on by a switch signal or an intelligent terminal instruction. This is not limited to this.
[0060] In step S101 of some embodiments, after a preset condition is met, a historical light source sequence is generated. The preset condition can be a preset period. The historical record of the turned-on light source is collected according to the preset period to generate a historical light source sequence. For example, a historical light source sequence is generated every hour or every day. The preset condition can also be a threshold value of the number of times the light source is turned on. After the number of times the light source is turned on exceeds the threshold value of the number of times the light source is turned on, a historical light source sequence is generated. For example, after the number of times the light source is turned on exceeds 100 times, a historical light source sequence is generated.
[0061] Please refer to Figure 2 , in some embodiments, step S101 includes:
[0062] Step S201, obtaining the historical turn-on times of at least two light sources, and calculating the turn-on time intervals of different light sources based on the historical turn-on times;
[0063] Step S202, generating a historical light source sequence based on the turn-on time intervals; the turn-on time intervals between adjacent light sources in the historical light source sequence are less than a time threshold.
[0064] It is easy to understand that if it is detected that several light sources are turned on in sequence and the interval time is less than the time threshold, then these several light sources are arranged in sequence according to the turn-on order to obtain a historical light source sequence. The following is an example: It is detected that several light sources are turned on in sequence due to the approach of a human body. The light sources are turned on in order and the interval time is not long, for example, within 10 seconds. These several light sources that are turned on in sequence are recorded as a historical light source sequence.
[0065] Steps S201 to S202 shown in the embodiments of the present application calculate the turn-on time intervals of different light sources according to the historical turn-on times of the light sources. The obtained turn-on time intervals characterize the continuity of user operations; the historical light source sequence generated based on the turn-on time intervals can accurately reflect the user's action trajectory in a certain period of time and provide a high-quality light source sequence template for the follow-up.
[0066] In step S202 of some embodiments, the time threshold can be 10 seconds, 1 minute, etc. This is not limited to this.
[0067] In step S102 of some embodiments, search for a light source sequence starting from or with the first light source as the middle point in the historical light source sequence. This is not limited to this.
[0068] In some embodiments, before the step S102, the lighting system control method further includes:
[0069] Obtaining a human body position signal through a sensor; if the human body position signal indicates that a human body enters the sensing area, sending a first light source turning-on signal.
[0070] In the embodiment of the present application, a human body position signal is obtained through a sensor, and it is determined whether a human body enters the sensing area according to the human body position signal, so as to send a first light source turning-on signal, which can automatically trigger the light source control process based on human body sensing and improve convenience.
[0071] Please refer to Figure 3 , in some embodiments, the step S102 includes:
[0072] Step S301, in response to the first light source turning-on signal, searching for a light source sequence containing the first light source in the historical light source sequence to obtain a candidate light source sequence;
[0073] Step S302, calculating the usage frequency of the candidate light source sequence as a sequence recommendation value;
[0074] Step S303, screening the candidate light source sequence according to the sequence recommendation value to obtain the target light source sequence.
[0075] Steps S301 to S303 illustrated in the embodiment of the present application quantify the user habit intensity through the historical usage frequency of the candidate light source sequence, preferentially select the candidate light source sequence with a high frequency to generate a light source turning-on instruction, improve the prediction accuracy of the user intention, obtain a more accurate target light source sequence, and further improve the operation convenience.
[0076] In step S302 of some embodiments, the quantity proportion of the candidate light source sequence in the historical light source sequence can be calculated as the usage frequency; an aging attenuation factor (such as a daily attenuation coefficient of 0.99) can also be set for the usage times of each light source sequence to automatically reduce the weight of the historical sequence that has not been triggered for a long time and avoid interference from stale data; the present invention is not limited thereto.
[0077] Please refer to Figure 4 , in some embodiments, the step S102 includes:
[0078] Step S401, in response to the first light source turning-on signal, searching for a light source sequence containing the first light source in the historical light source sequence to obtain a candidate light source sequence;
[0079] Step S402, obtaining the real-time turning-on time of the first light source;
[0080] Step S403: Obtain the historical turn-on time of the first light source in the candidate light source sequence;
[0081] Step S404: Calculate the difference between the real-time turn-on time and the historical turn-on time to obtain a time deviation value as the sequence recommendation value;
[0082] Step S405: Screen the candidate light source sequence according to the sequence recommendation value to obtain the target light source sequence.
[0083] In the steps S401 to S405 illustrated in the embodiments of the present application, the historical turn-on time of the first light source and the real-time turn-on time of the first light source in the candidate light source sequence are obtained, and the difference between the two is calculated to obtain a time deviation value. The time deviation value quantifies the deviation degree between the user's current operation trend and the historical action trajectory. The candidate light source sequence is screened through the time deviation value to improve the prediction accuracy of the user's intention, obtain a more accurate target light source sequence, and further improve the operation convenience.
[0084] Understandably, the smaller the time deviation value, the larger the sequence recommendation value. For example, there are two candidate light source sequences, where the historical turn-on times of the first light source are 02:20:04 on a certain day and 2:50:12 on a certain day respectively, and the real-time turn-on time is 02:25:00. Then the sequence recommendation value of the candidate light source sequence with 02:20:04 is higher.
[0085] In step S405 of some embodiments, the candidate light source sequence with the smallest time deviation value can be selected as the target light source sequence, or the sequence recommendation value can be calculated by comprehensively considering the time deviation value and the usage frequency, and the candidate light source sequence with the largest sequence recommendation value can be selected as the target light source sequence.
[0086] In step S103 of some embodiments, all the light sources in the target light source sequence can be turned on simultaneously through a first instruction, or the next light source can be turned on sequentially after a certain time interval through the first instruction.
[0087] Please refer to Figure 5 , in some embodiments, after the step S103, the lighting system control method further includes:
[0088] Step S501: In response to the second light source turn-on signal, search for the light source sequence containing the second light source in the historical light source sequence to obtain an updated light source sequence;
[0089] Step S502: Generate a light source turn-on instruction according to the updated light source sequence to obtain a second instruction; the target light source sequence does not include the second light source;
[0090] Step S503: Use the second instruction to replace the first instruction to turn on the light source.
[0091] Understandably, if it is detected that a second light source not in the target light source sequence is turned on, a light source sequence starting from or with the second light source as the midpoint is searched for in the historical light source sequence as the updated light source sequence. For example, the historical light source sequence includes the first sequence: Light source 1, Light source 2, Light source 3, Light source 6, Light source 9; the second sequence: Light source 1, Light source 2, Light source 5, Light source 12; the second sequence: Light source 1, Light source 4, Light source 7. In response to the turning on of Light source 1, the first sequence is selected as the target light source sequence, and Light source 1, Light source 2, Light source 3, Light source 6, and Light source 9 are turned on. If the user passes by Light source 1 and Light source 2 in sequence and then manually turns on Light source 5; when it is detected that Light source 5 is turned on, a light source sequence including Light source 1, Light source 2, and Light source 5, that is, the second sequence, is searched for as the updated light source sequence, Light source 12 is turned on, and Light source 3, Light source 6, and Light source 9 are turned off.
[0092] In the embodiments of the present application, for steps S501 to S503 shown, after the second light source not in the target light source sequence is turned on, by searching for a light source sequence including the second light source in the historical light source sequence, an updated light source sequence is obtained to generate a second instruction; the updated light source sequence reflects the user's new behavior trend, and the first instruction is replaced with the second instruction to improve the control accuracy and user intention following ability in complex scenarios.
[0093] In some embodiments, step S501 includes the following steps:
[0094] In response to the second light source turning on signal, search for a light source sequence including the second light source in the historical light source sequence to obtain an alternative sequence;
[0095] In some embodiments, step S501 includes the following steps:
[0096] In response to the second light source turning on signal, search for a light source sequence including the second light source in the historical light source sequence to obtain an alternative sequence;
[0097] In some embodiments, after step 103, the lighting system control method further includes:
[0098] Obtain a human body position signal through a sensor; if the human body position signal indicates that the human body has left the sensing area, send a light source turn-off signal.
[0099] In the embodiments of the present application, a human body position signal is obtained through a sensor, and based on the human body position signal, it is judged whether the human body has entered the sensing area, so as to send a light source turn-off signal, which can automatically trigger the light source turn-off process based on human body sensing and improve convenience.
[0100] Please refer to Figure 6, The embodiments of the present application also provide a lighting system control device that can implement the above lighting system control method. The device includes:
[0101] A historical light source sequence generation module, configured to obtain the historical turn-on times of at least two light sources, and generate a historical light source sequence based on the historical turn-on times; the historical light source sequence represents the turn-on order of the light sources; the at least two light sources include a first light source;
[0102] A target light source sequence search module, configured to, in response to a first light source turn-on signal, search for a light source sequence containing the first light source in the historical light source sequence to obtain a target light source sequence;
[0103] A light source turn-on instruction generation module, configured to generate a light source turn-on instruction according to the target light source sequence to obtain a first instruction.
[0104] The specific implementation manner of this lighting system control device is basically the same as the specific embodiments of the above lighting system control method, and will not be elaborated here.
[0105] The embodiments of the present application also provide an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the above lighting system control method is implemented. The electronic device can be any intelligent terminal including a tablet computer, an in-vehicle computer, etc.
[0106] Please refer to Figure 7 , Figure 7 illustrates the hardware structure of an electronic device according to another embodiment. The electronic device includes:
[0107] A processor 901, which can be implemented in a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is configured to execute relevant programs to implement the technical solutions provided by the embodiments of the present application;
[0108] A memory 902, which can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 902 can store an operating system and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 902 and are called by the processor 901 to execute the lighting system control method of the embodiments of the present application;
[0109] An input / output interface 903 for implementing information input and output;
[0110] A communication interface 904 for implementing communication interaction between this device and other devices, which can achieve communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WI-FI, Bluetooth, etc.);
[0111] A bus 905 for transmitting information between various components of the device (such as a processor 901, a memory 902, an input / output interface 903, and a communication interface 904);
[0112] Among them, the processor 901, the memory 902, the input / output interface 903, and the communication interface 904 achieve communication connections with each other inside the device through the bus 905.
[0113] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the above-mentioned lighting system control method.
[0114] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory can include high-speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely set relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include but are not limited to the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof.
[0115] The lighting system control method, lighting system control device, electronic device, and storage medium provided by the embodiment of the present application generate a historical light source sequence according to the historical turn-on time of the light source, and the obtained historical light source sequence reflects the user's historical action trajectory; after the first light source is turned on, by searching for a target light source signal containing the first light source in the historical light source sequence, a light source turn-on instruction is generated to realize personalized light source demand prediction based on the user's historical behavior trajectory, automatically turn on the light source for the user, significantly improve the autonomous response ability of the lighting system, reduce the frequency of user manual operations, and have high operation convenience.
[0116] The embodiments described in the embodiments of the present application are for more clearly explaining the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0117] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figures, or combine some steps, or different steps.
[0118] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and their appropriate combinations.
[0120] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0121] It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or a similar expression means any combination of these items, including any combination of single items (ones) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0122] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.
[0123] The units described above as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store programs.
[0126] The preferred embodiments of the embodiments of the present application have been described above with reference to the drawings, and thus do not limit the scope of rights of the embodiments of the present application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of rights of the embodiments of the present application.
Claims
1. A lighting system control method, characterized in that: The method comprises: Acquire historical start-up times of at least two light sources, and generate a historical light source sequence based on the historical start-up times; the historical light source sequence represents a start-up order of the light sources; the at least two light sources include a first light source; In response to a first light source start-up signal, searching for a light source sequence including the first light source in the historical light source sequence to obtain a target light source sequence; A light source start instruction is generated according to the target light source sequence to obtain a first instruction.
2. The method according to claim 1, characterized in that The at least two light sources also include a second light source; the target light source sequence does not include the second light source; after generating a light source start instruction according to the target light source sequence and obtaining a first instruction, the method further includes: In response to the second light source start-up signal, searching the historical light source sequence for a light source sequence including the second light source to obtain an updated light source sequence; generating a light source start-up instruction according to the updated light source sequence to obtain a second instruction; The first instruction is replaced by the second instruction to turn on the light source.
3. The lighting system control method according to claim 1, characterized in that: The step of searching, in response to the first light source start-up signal, a light source sequence including the first light source in the historical light source sequence to obtain a target light source sequence comprises: In response to a first light source start-up signal, searching for a light source sequence including the first light source in the historical light source sequence to obtain a candidate light source sequence; Obtaining the real-time start time of the first light source; Acquire a historical start time of the first light source in the candidate light source sequence; Calculate the difference between the real-time opening time and the historical opening time to obtain a time deviation value as a sequence recommendation value; The candidate light source sequence is screened according to the sequence recommendation value to obtain the target light source sequence.
4. The method according to claim 1, characterized in that: The step of searching, in response to the first light source start-up signal, a light source sequence including the first light source in the historical light source sequence to obtain a target light source sequence comprises: In response to a first light source start-up signal, searching for a light source sequence including the first light source in the historical light source sequence to obtain a candidate light source sequence; Calculating the usage frequency of the candidate light source sequence as a sequence recommendation value; The candidate light source sequence is screened according to the sequence recommendation value to obtain the target light source sequence.
5. The method according to claim 1, characterized in that The acquiring of historical start-up times of at least two light sources and generating a historical light source sequence based on the historical start-up times includes: Acquire historical start-up times of at least two light sources, and calculate start-up time intervals of different light sources based on the historical start-up times; A historical light source sequence is generated based on the activation time interval; the activation time interval of adjacent light sources in the historical light source sequence is less than a time threshold.
6. The method according to any one of claims 1 to 5, characterized in that: Before the step of searching the historical light source sequence for a light source sequence including the first light source in response to the first light source start-up signal to obtain a target light source sequence, the step further includes: A human body position signal is obtained through a sensor; if the human body position signal indicates that a human body has entered a sensing area, a first light source start-up signal is sent.
7. The method according to any one of claims 1 to 5, characterized in that: Also includes: A human body position signal is obtained through a sensor; if the human body position signal indicates that the human body has left the sensing area, a light source shut-off signal is sent.
8. A lighting system control device, characterized in that: The device comprises: A historical light source sequence generation module, used to obtain historical start-up time of at least two light sources, and generate a historical light source sequence based on the historical start-up time; the historical light source sequence represents the order in which the light sources are turned on; the at least two light sources include a first light source; a target light source sequence search module, configured to search for a light source sequence including the first light source in the historical light source sequence in response to a first light source start-up signal, to obtain a target light source sequence; The light source start-up instruction generating module is used to generate a light source start-up instruction according to the target light source sequence to obtain a first instruction.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the lighting system control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the lighting system control method according to any one of claims 1 to 7 is implemented.