A lighting control method, device, terminal equipment and storage medium
By introducing a countdown mechanism for overriding control time in the lighting control device, the problem that the lighting control device cannot resume automatic operation on its own in the prior art is solved, and a high degree of automation lighting control is achieved.
Patent Information
- Application Number
- CN202110551159.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-20
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2041-05-20
AI Technical Summary
During the automated operation of existing lighting control devices, if there are human control factors, the automation operation logic will be stopped and cannot be restored by itself, and the degree of automation will be low.
By introducing an overlord control time countdown mechanism into the lighting control device, when a dimming command is received, the movement sensing function and the illuminance sensing function are suspended, and the overlord control time countdown is enabled. After the countdown is over, turn off the countdown, restore the movement sensing function and illuminance sensing function, and realize self-recovery of automated operation.
After artificial dimming, the lighting control device can automatically restore the automated operation logic, which improves the degree of automation and avoids the steps that require manual recovery.
Smart Images

Figure CN115379614B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of lighting control technology, and in particular, relates to a lighting control method, device, terminal equipment and storage medium. Background Art
[0002] During the automatic operation of current lighting control devices, if human control factors (for example, turning on or off lights, adjusting brightness, triggering scenes, etc.) occur, the automatic operation logic will be stopped and the current state will be maintained. The automatic operation cannot be restored on its own and must be restored through manual control. The degree of automation is low. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a lighting control method, device, terminal equipment and storage medium to solve the problem that in the process of automatic operation of existing lighting control devices, if human control factors occur, the automatic operation logic will be stopped and maintained in the current state. The automatic operation logic cannot be restored by itself and must be restored through manual control, resulting in a low degree of automation.
[0004] A first aspect of an embodiment of the present application provides a lighting control method, including:
[0005] If a dimming command is received in the idle state, the motion sensing function and the illumination sensing function are suspended, the system enters the use state, and the unauthorized control time countdown is started;
[0006] If a dimming command is received during use, the motion sensing function and the illumination sensing function will be suspended, and the countdown for the unauthorized control time will be started;
[0007] If a dimming command is received in standby mode, the motion sensing function and the illumination sensing function are suspended, the standby time countdown function is turned off, and the overriding control time countdown is turned on;
[0008] After the unauthorized control time countdown ends, the unauthorized control time countdown is turned off, and the motion sensing function and the illumination sensing function are restored;
[0009] The motion sensing function is to detect whether there is someone in the current environment. If it is detected that there is someone in the current environment, the use event is received and the use state is entered;
[0010] The illumination sensing function is to detect the illumination of the current environment when in use, and adjust the constant illumination of the current environment according to the illumination;
[0011] The standby time countdown function is to receive an idle event, enter the standby state and start the standby time countdown if no one is detected in the current environment within a preset time. If no use event is received during the standby time countdown, the idle state is entered after the standby time countdown ends.
[0012] A second aspect of an embodiment of the present application provides a lighting control device, including:
[0013] The first dimming unit is used for suspending the motion sensing function and the illumination sensing function, entering the use state, and starting the countdown of the unauthorized control time if a dimming instruction is received in the idle state;
[0014] The second dimming unit is used to suspend the motion sensing function and the illumination sensing function and start the countdown of the unauthorized control time if a dimming command is received in the use state;
[0015] The third dimming unit is used for suspending the motion sensing function and the illumination sensing function, turning off the standby time countdown function, and turning on the overriding control time countdown if a dimming command is received in the standby state;
[0016] An automatic recovery unit is used to turn off the countdown of the unauthorized control time after the countdown of the unauthorized control time ends, and to restore the motion sensing function and the illumination sensing function;
[0017] The motion sensing function is to detect whether there is someone in the current environment. If it is detected that there is someone in the current environment, the use event is received and the use state is entered;
[0018] The illumination sensing function is to detect the illumination of the current environment when in use, and adjust the brightness of the lamp according to the illumination so that the illumination of the current environment is greater than the preset illumination value;
[0019] The standby time countdown function is to receive an idle event, enter the standby state and start the standby time countdown if no one is detected in the current environment within a preset time. If no use event is received during the standby time countdown, the idle state is entered after the standby time countdown ends.
[0020] The third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the lighting control method provided in the first aspect of the embodiment of the present application when executing the computer program.
[0021] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by at least one processor, the steps of the lighting control method provided in the first aspect of the embodiment of the present application are implemented.
[0022] A first aspect of an embodiment of the present application provides a lighting control method, which, if a dimming instruction is received in an idle state, suspends a motion sensing function and an illumination sensing function, enters a use state, and starts a countdown for an unauthorized control time; if a dimming instruction is received in a use state, suspends a motion sensing function and an illumination sensing function, and starts a countdown for an unauthorized control time; if a dimming instruction is received in a standby state, suspends a motion sensing function and an illumination sensing function, turns off a countdown for a standby time, and starts a countdown for an unauthorized control time; after the countdown for the unauthorized control time ends, turns off the countdown for the unauthorized control time, and restores a motion sensing function and an illumination sensing function. The automatic operation logic can be automatically restored after manual dimming, and the degree of automation is high.
[0023] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 This is a first flow chart of the lighting control method provided in the embodiment of the present application;
[0026] Figure 2 is a graph of the level output to the lamp by the terminal device under different working conditions provided by the embodiment of the present application;
[0027] Figure 3 is a second flow chart of the lighting control method provided in the embodiment of the present application;
[0028] Figure 4 This is a third flow chart of the lighting control method provided in the embodiment of the present application;
[0029] Figure 5 This is a fourth flow chart of the lighting control method provided in the embodiment of the present application;
[0030] Figure 6 This is a schematic diagram of the structure of the lighting control device provided in the embodiment of the present application.
[0031] Figure 7 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0033] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0034] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0035] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0036] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0037] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0038] The embodiment of the present application provides a lighting control method, which can be applied to any terminal device including a light source or capable of driving and controlling a light source, such as an LED lamp, an LED driver, or a computing device with data processing and control functions connected to the LED lamp or LED driver by wired or wireless communication. The computing device can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.
[0039] like Figure 1 As shown, the lighting control method provided in the embodiment of the present application includes the following steps S101 to S104:
[0040] Step S101: If a dimming instruction is received in an idle state, the motion sensing function and the illumination sensing function are suspended, the system enters a use state, and a countdown of the unauthorized control time is started;
[0041] Step S102: If a dimming instruction is received in the use state, the motion sensing function and the illumination sensing function are suspended, and the overriding control time countdown is started;
[0042] Step S103: if a dimming instruction is received in the standby state, the motion sensing function and the illumination sensing function are suspended, the standby time countdown function is turned off, and the overriding control time countdown is turned on;
[0043] Step S104: after the unauthorized control time countdown ends, the unauthorized control time countdown is turned off, and the motion sensing function and the illumination sensing function are restored;
[0044] The motion sensing function is to detect whether there is someone in the current environment. If it is detected that there is someone in the current environment, the use event is received and the use state is entered;
[0045] The illumination sensing function is to detect the illumination of the current environment when in use, and adjust the constant illumination of the current environment according to the illumination.
[0046] The standby time countdown function is to receive an idle event, enter the standby state and start the standby time countdown if no one is detected in the current environment within a preset time. If no use event is received during the standby time countdown, the idle state is entered after the standby time countdown ends.
[0047] In the application, the terminal device stops constant illumination adjustment after suspending the motion sensing function and the illumination sensing function in the use state, the standby state and the idle state.
[0048] In the application, the motion sensing function can specifically be to detect whether there is someone in the current environment through a motion sensing sensor set on the terminal device or connected to the terminal device by wire or wireless communication. If the motion sensing sensor detects that there is someone in the current environment, the motion sensing sensor reports a use event to the terminal device, and the terminal device enters the use state after receiving the use event reported by the motion sensing sensor. The motion sensing sensor can be a camera with face recognition function, a thermal infrared human body sensor, a distance sensor, a proximity sensor, an ultrasonic sensor, etc., and the specific type of the motion sensing sensor is not limited in this embodiment.
[0049] In the application, the illumination sensing function can specifically be that when the terminal device is in use, the illumination of the current environment is detected by an ambient illumination sensor provided on the terminal device or connected to the terminal device by wired or wireless communication, and the illumination sensor reports the illumination to the terminal device. When the terminal device receives the illumination reported by the ambient illumination sensor, it adjusts the current environment to a constant illumination according to the illumination. Constant illumination adjustment specifically refers to adjusting the brightness of the lamp so that the illumination of the current environment is greater than the preset illumination value. The illumination sensor may report the illumination only once when the same illumination is continuously detected, and after detecting a change in illumination, report the illumination after the change. The ambient illumination sensor can be a light sensor, a light meter, a camera, etc., wherein the camera obtains the illumination of the environment by capturing an image of the environment and then obtaining the illumination of the environment based on the average brightness of each pixel in the image.
[0050] In the application, the standby time countdown function can be specifically to detect whether there is someone in the current environment through a mobile sensing sensor set on the terminal device or connected to the terminal device by wired or wireless communication. If the mobile sensing sensor does not detect that there is someone in the current environment within a preset time, the mobile sensing sensor reports an idle event to the terminal device. After receiving the idle event reported by the mobile sensing sensor, the terminal device enters the standby state and starts the standby time countdown. If the terminal device does not receive the usage event reported by the mobile sensing sensor when it detects that there is someone in the current environment during the standby time countdown, it enters the idle state after the standby time countdown ends.
[0051] In the application, the standby countdown time and the over-authorized control time can be set according to actual needs. For example, the over-authorized control time should be set to be greater than the interval between two consecutive manual control operations of the user, so as to reserve sufficient manual control time for multiple manual operations of the user, where multiple means at least twice.
[0052] like Figure 2As shown, a curve diagram of the level output to the lamp by the terminal device in the use state, the standby state and the idle state is exemplarily shown, and the level is used to adjust the constant illumination of the current environment.
[0053] like Figure 3 As shown, in one embodiment, the lighting control method provided in the embodiment of the present application further includes the following steps S301 to S303:
[0054] Step S301: If a scene control instruction is received in the idle state, the motion sensing function and the illumination sensing function are suspended, and the use state is entered. After the scene lighting control of the lamp is completed, the overriding control time countdown is started;
[0055] Step S302: If a scene control instruction is received in the use state, the motion sensing function and the illumination sensing function are suspended, and after the scene lighting control of the lamp is completed, the overriding control time countdown is started;
[0056] Step S303: if a scene control instruction is received in the standby state, the motion sensing function and the illumination sensing function are suspended, the standby time countdown function is turned off, and after the scene lighting control of the lamp is completed, the overriding control time countdown is turned on;
[0057] The scene control instruction is a scene light on instruction, a scene light off instruction or a scene dimming instruction, and the scene lighting is to create a specific scene atmosphere by adjusting the brightness of lamps.
[0058] In the application, the scene light-on command is used to trigger the terminal device to create a specific scene atmosphere by adjusting the brightness of the lamp when turning on the light; the scene light-off command is used to trigger the terminal device to create a specific scene atmosphere by adjusting the brightness of the lamp when turning off the light; the scene dimming command is used to trigger the terminal device to create a specific scene atmosphere by adjusting the brightness of the lamp when dimming. The specific scene atmosphere can include brightness gradient, flickering, color change, brightness or color periodic change, etc.
[0059] like Figure 4 As shown, in one embodiment, the lighting control method provided in the embodiment of the present application further includes the following steps S401 to S403:
[0060] S401, if a light-on command is received in an idle state, the motion sensing function and the illumination sensing function are restored and the use state is entered;
[0061] S402: If a light-on command is received during use, the motion sensing function and the illumination sensing function are restored;
[0062] S403: If a light-on command is received in the standby state, the motion sensing function and the illumination sensing function are restored, and the standby time countdown function is turned on.
[0063] In the application, when the terminal device receives a light-on command in the idle state, it outputs the usage status level to the lamp to control the lamp to light up, and at the same time restores the motion sensing function and the illumination sensing function, and enters the use state; when the terminal device receives a light-on command in the use state, it outputs the final level to the lamp to control the lamp to light up, and at the same time restores the motion sensing function and the illumination sensing function, and restores the constant illumination adjustment; when the terminal device receives a light-on command in the standby state, it outputs the final level to the lamp to control the lamp to light up, and at the same time restores the motion sensing function and the illumination sensing function, and starts the standby time countdown function.
[0064] like Figure 5 As shown, in one embodiment, the lighting control method provided in the embodiment of the present application further includes the following steps S501 to S503:
[0065] Step S501: If a light-off instruction is received in an idle state, the motion sensing function and the illumination sensing function are suspended;
[0066] Step S502: If a light-off instruction is received in the use state, the motion sensing function and the illumination sensing function are suspended;
[0067] Step S503: If a light-off instruction is received in the standby state, the motion sensing function and the illumination sensing function are suspended, and the standby time countdown function is turned off.
[0068] In the application, when the terminal device receives a light-off command while in use, it suspends the motion sensing function and the illumination sensing function and stops the constant illumination adjustment.
[0069] In one embodiment, the lighting control method provided by the embodiment of the present application further includes:
[0070] If a one-key recovery command is received, the unauthorized control time countdown will be turned off and the motion sensing function and illumination sensing function will be restored.
[0071] In the application, after the automatic operation logic of the terminal device is interrupted by the corresponding command input by the user through manual control, the terminal device can not only restore the motion sensing function and the illumination sensing function by turning on the overauthorized control time and turning off the overauthorized control time countdown after the overauthorized control time countdown ends, but also the user can input a one-key recovery command through manual control to turn off the overauthorized control time countdown and restore the motion sensing function and the illumination sensing function.
[0072] In the application, the user can input various instructions through the human-computer interaction device of the terminal device to directly control the terminal device to drive and control the lamps according to various instructions; the user can also control the user terminal to send various instructions to the terminal device through the human-computer interaction device of the user terminal to indirectly control the terminal device to drive and control the lamps according to various instructions, and the user terminal can communicate with the terminal device.
[0073] In the application, the human-computer interaction device of the terminal device may include at least one of a physical button, a touch sensor, a gesture recognition sensor and a voice recognition unit, so that the user can input motion control instructions through the corresponding touch mode, gesture control mode or voice control mode. The physical button and the touch sensor can be set at any position of the terminal device, for example, a control panel. The touch mode of the physical button can be specifically pressing or toggling. The touch mode of the touch sensor can be specifically pressing or touching. The gesture recognition sensor can be set at any position outside the shell of the terminal device. The gestures used to control the terminal device can be customized by the user according to actual needs or the factory default settings can be used. The voice recognition unit may include a microphone and a voice recognition chip, or may only include a microphone and the voice recognition function is realized by the processor of the terminal device. The voice used to control the terminal device can be customized by the user according to actual needs or the factory default settings can be used.
[0074] In the application, the user terminal can be a remote control, a mobile phone, a smart bracelet, a tablet computer, a laptop computer, a netbook, a personal digital assistant (PDA), a computer, a server, or other computing device with wireless or wired communication functions that can communicate with the terminal device. The embodiment of the present application does not impose any restrictions on the specific type of the user terminal. The human-computer interaction device of the user terminal can be the same as the terminal device, which will not be repeated here.
[0075] The lighting control method provided in the embodiment of the present application can automatically restore the automatic operation logic after manual dimming, and has a high degree of automation.
[0076] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0077] like Figure 6 As shown, the embodiment of the present application also provides a lighting control device for executing the steps in the above lighting control embodiment. The lighting control device can be a virtual appliance in a terminal device, which is run by a processor of the terminal device, or it can be the terminal device itself.
[0078] like Figure 6 As shown, the lighting control device 100 provided in the embodiment of the present application includes:
[0079] The first dimming unit 101 is used for suspending the motion sensing function and the illumination sensing function, entering the use state, and starting the countdown of the unauthorized control time if a dimming instruction is received in the idle state;
[0080] The second dimming unit 102 is used to suspend the motion sensing function and the illumination sensing function and start the countdown of the unauthorized control time if a dimming instruction is received in the use state;
[0081] The third dimming unit 103 is used to suspend the motion sensing function and the illumination sensing function, turn off the standby time countdown function, and start the overriding control time countdown if a dimming command is received in the standby state;
[0082] The automatic recovery unit 104 is used to turn off the unauthorized control time countdown after the unauthorized control time countdown ends, and to recover the motion sensing function and the illumination sensing function.
[0083] In one embodiment, the first dimming unit is further used to suspend the motion sensing function and the illumination sensing function if a scene control instruction is received in an idle state, enter a use state, and start a countdown of the overriding control time after the scene lighting control of the lamp is completed;
[0084] The second dimming unit is further used to suspend the motion sensing function and the illumination sensing function if a scene control instruction is received in the use state, and start the countdown of the overriding control time after the scene lighting control of the lamp is completed;
[0085] The third dimming unit is also used to suspend the motion sensing function and the illumination sensing function if a scene control instruction is received in the standby state, turn off the standby time countdown function, and start the over-authorization control time countdown after the scene lighting control of the lamp is completed.
[0086] In one embodiment, the first dimming unit is further used to restore the motion sensing function and the illumination sensing function and enter the use state if a light-on command is received in the idle state;
[0087] The first dimming unit is further used to restore the motion sensing function and the illumination sensing function if a light-on command is received in the use state;
[0088] The third dimming unit is also used to restore the motion sensing function and the illumination sensing function and start the standby time countdown function if a light-on command is received in the standby state.
[0089] In one embodiment, the first dimming unit is further configured to suspend the motion sensing function and the illumination sensing function if a light-off instruction is received in an idle state;
[0090] The second dimming unit is further used to suspend the motion sensing function and the illumination sensing function if a light-off instruction is received in the use state;
[0091] The third dimming unit is also used to suspend the motion sensing function and the illumination sensing function and turn off the standby time countdown function if a light-off command is received in the standby state.
[0092] In application, each module in the lighting control device may be a software program module, or may be implemented by different logic circuits integrated in a processor, or may be implemented by multiple distributed processors.
[0093] like Figure 7 As shown, the embodiment of the present application also provides a terminal device 200 including: at least one processor 201 ( Figure 7 Only one processor is shown in the figure), a memory 202, and a computer program 203 stored in the memory 202 and executable on at least one processor 201. When the processor 201 executes the computer program 203, the steps in the above-mentioned lighting control method embodiments are implemented.
[0094] In the application, the terminal device may be an LED lamp, an LED driver, or a computing device with data processing and control functions connected to the LED lamp or LED driver by wire or wireless communication. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 7 It is only an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input and output devices, network access devices, timers, etc. The input and output devices may include the aforementioned human-computer interaction devices, and may also include a display screen for displaying the working parameters of the terminal device. The network access device may include a communication module for the terminal device to communicate with the user terminal.
[0095] In applications, the processor may be a central processing unit (CPU), which may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0096] In applications, the memory may be an internal storage unit of a terminal device in some embodiments, such as a hard disk or memory of the terminal device. In other embodiments, the memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0097] In applications, the display screen can be a thin film transistor liquid crystal display (TFT-LCD), a liquid crystal display (LCD), an organic electroluminesence display (OLED), a quantum dot light emitting diode (QLED) display screen, a seven-segment or eight-segment digital tube, etc.
[0098] In the application, the communication module can be set to any device that can directly or indirectly communicate with the client over a long distance by wire or wireless communication according to actual needs. For example, the communication module can provide communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth, Zigbee, mobile communication networks, global navigation satellite systems (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to network devices. The communication module may include an antenna, which may have only one array element or an antenna array including multiple array elements. The communication module may receive electromagnetic waves through the antenna, frequency modulate and filter the electromagnetic wave signals, and send the processed signals to the processor. The communication module may also receive the signal to be sent from the processor, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0099] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0100] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The functional modules in the embodiment can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. In addition, the specific names of the functional modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0101] An embodiment of the present application also provides a terminal device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in the above-mentioned lighting control method embodiments when executing the computer program.
[0102] The embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned lighting control method embodiments can be implemented.
[0103] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned lighting control method embodiments when executing the computer program product.
[0104] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0105] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0106] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0107] In the embodiments provided in the present application, it should be understood that the disclosed terminal device and method can be implemented in other ways. For example, the terminal device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0108] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0109] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A lighting control method, It is characterized in that include: If a dimming command is received in the idle state, the motion sensing function and the illumination sensing function are suspended, the system enters the use state, and the unauthorized control time countdown is started; If a dimming command is received during use, the motion sensing function and the illumination sensing function will be suspended, and the countdown for the unauthorized control time will be started; If a dimming command is received in standby mode, the motion sensing function and the illumination sensing function are suspended, the standby time countdown function is turned off, and the overriding control time countdown is turned on; After the over-authorized control time countdown ends, the over-authorized control time countdown is turned off, and the motion sensing function and the illumination sensing function are restored to automatically restore the automatic operation logic after manual dimming; If a light-on command is received in the idle state, the motion sensing function and the illumination sensing function are restored and the device enters the use state; If a light-on command is received during use, the motion sensing function and the illumination sensing function are restored; If a light-on command is received in standby mode, the motion sensing function and the illumination sensing function are restored, and the standby time countdown function is turned on; If a light-off command is received in idle state, the motion sensing function and the illumination sensing function are suspended; If a light-off command is received during use, the motion sensing function and the illumination sensing function are suspended; If a light-off command is received in standby mode, the motion sensing function and the illumination sensing function are suspended, and the standby time countdown function is turned off; The motion sensing function is to detect whether there is someone in the current environment. If it is detected that there is someone in the current environment, the use event is received and the use state is entered; The illumination sensing function is to detect the illumination of the current environment when in use, and adjust the constant illumination of the current environment according to the illumination; The standby time countdown function is to receive an idle event, enter the standby state and start the standby time countdown if no one is detected in the current environment within a preset time. If no use event is received during the standby time countdown, the idle state is entered after the standby time countdown ends.
2. The lighting control method according to claim 1, It is characterized in that Also includes: If a scene control command is received in the idle state, the motion sensing function and the illumination sensing function are suspended and the system enters the use state. After the scene lighting control of the lamp is completed, the overriding control time countdown is started; If a scene control command is received during use, the motion sensing function and the illumination sensing function will be suspended, and after the scene lighting control of the lamp is completed, the overriding control time countdown will be started; If a scene control command is received in the standby state, the motion sensing function and the illumination sensing function are suspended, the standby time countdown function is turned off, and after the scene lighting control of the lamp is completed, the overriding control time countdown is turned on; The scene control instruction is a scene light on instruction, a scene light off instruction or a scene dimming instruction, and the scene lighting is to create a specific scene atmosphere by adjusting the brightness of lamps.
3. The lighting control method according to claim 2, It is characterized in that The specific scene atmosphere includes brightness gradient.
4. The lighting control method according to any one of claims 1 to 3, It is characterized in that The motion sensing function is to detect whether there is anyone in the current environment through a motion sensing sensor. If it is detected that there is someone in the current environment, the use event reported by the motion sensing sensor is received and the use state is entered; The illumination sensing function is to detect the illumination of the current environment through the ambient illumination sensor in the use state, receive the illumination reported by the ambient illumination sensor, and adjust the constant illumination of the current environment according to the illumination; The standby time countdown function is that if no one is detected in the current environment by the motion sensing sensor within a preset time, the idle event reported by the motion sensing sensor is received, the standby state is entered and the standby time countdown is started; if no use event is received during the standby time countdown, the idle state is entered after the standby time countdown ends.
5. The lighting control method according to any one of claims 1 to 3, It is characterized in that Also includes: If a one-key recovery command is received, the unauthorized control time countdown will be turned off and the motion sensing function and illumination sensing function will be restored.
6. A lighting control device, It is characterized in that include: The first dimming unit is used for suspending the motion sensing function and the illumination sensing function, entering the use state, and starting the countdown of the unauthorized control time if a dimming instruction is received in the idle state; The second dimming unit is used to suspend the motion sensing function and the illumination sensing function and start the countdown of the unauthorized control time if a dimming command is received in the use state; The third dimming unit is used for suspending the motion sensing function and the illumination sensing function, turning off the standby time countdown function, and turning on the overriding control time countdown if a dimming command is received in the standby state; The automatic recovery unit is used to turn off the over-authorized control time countdown after the over-authorized control time countdown ends, and restore the motion sensing function and the illumination sensing function, so as to automatically restore the automatic operation logic after manual dimming; The first dimming unit is further used to restore the motion sensing function and the illumination sensing function and enter the use state if a light-on command is received in the idle state; The first dimming unit is further used to restore the motion sensing function and the illumination sensing function if a light-on command is received in the use state; The third dimming unit is further used to restore the motion sensing function and the illumination sensing function and start the standby time countdown function if a light-on command is received in the standby state; The first dimming unit is further used to suspend the motion sensing function and the illumination sensing function if a light-off instruction is received in an idle state; The second dimming unit is further used to suspend the motion sensing function and the illumination sensing function if a light-off instruction is received in the use state; The third dimming unit is further used for suspending the motion sensing function and the illumination sensing function and turning off the standby time countdown function if a light-off command is received in the standby state; The motion sensing function is to detect whether there is someone in the current environment. If it is detected that there is someone in the current environment, the use event is received and the use state is entered; The illumination sensing function is to detect the illumination of the current environment when in use, and adjust the brightness of the lamp according to the illumination so that the illumination of the current environment is greater than the preset illumination value; The standby time countdown function is to receive an idle event, enter the standby state and start the standby time countdown if no one is detected in the current environment within a preset time. If no use event is received during the standby time countdown, the idle state is entered after the standby time countdown ends.
7. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the lighting control method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by at least one processor, the steps of the lighting control method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Control method and system of intelligent induction lamp, storage medium and controller
CN109729631A
Intelligent table lamp system based on module recognition
CN110708798A