Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The embodiment of the application provides a lamp control method, which is applied to a lamp and can be executed by a driver of the lamp when a computer program is operated. The lamp comprises an LED lamp and a Pulse Width Modulation (PWM) circuit. Lamps and lanterns can set up to the lamps and lanterns of the arbitrary type that have illumination and warning function concurrently according to actual need, for example, household or official working are with transferring ceiling lamp, wall lamp etc. portable civilian or police flashlight, detachable on-vehicle lamps and lanterns etc. and warning function is used for using under the emergency situation that the emergency or arbitrary needs carried out the warning in the fire control, and this application embodiment does not do any restriction to the specific type of lamps and lanterns.
As shown in fig. 1, a lamp control method provided in the embodiment of the present application includes the following steps S101 to S104:
step S101, detecting touch operation of a user on a first key, a second key and a third key.
In application, the driver detects touch operations of a user on the first key, the second key and the third key, and drives the lighting lamp and the warning lamp or adjusts the brightness of the lighting lamp according to the corresponding touch operations.
Step S102, when the touch operation of a user on a first key is detected, controlling an illuminating lamp to enter a writing mode; wherein the brightness of the illuminating lamp in the writing mode is adjustable;
step S103, when the touch operation of the user on the second key is detected, controlling the illuminating lamp to enter a working mode or an energy-saving mode; the working current of the illuminating lamp in the working mode changes in a first current range, the working current of the illuminating lamp in the energy-saving mode changes in a second current range, the upper limit value of the first current range is larger than the upper limit value of the second current range, and the lower limit value of the first current range is larger than the lower limit value of the second current range;
step S104, when the touch operation of the user on the third key is detected, controlling the warning lamp to enter a warning mode; wherein the warning light flashes in the warning mode.
In application, the driver detects touch operations of a user on the first key, the second key and the third key. When the touch control operation of the first key and the second key at the same time is detected, the driver does not execute the control step corresponding to the touch control operation. When the illuminating lamp is in a writing mode and the touch operation of the second key is detected, the driver controls the illuminating lamp to close the writing mode and enter a working mode or an energy-saving mode. When the illuminating lamp is in a working mode or an energy-saving mode and the touch operation of the first key is detected, the driver controls the illuminating lamp to turn off the working mode or the energy-saving mode and enters a writing mode. When the illuminating lamp is turned on and the touch operation of the third key is detected, the driver controls the illuminating lamp to be continuously turned on and controls the warning lamp to enter a warning mode. When the warning lamp is turned on and the touch operation of the first key or the second key is detected, the driver controls the warning lamp to be continuously turned on and controls the illuminating lamp to enter a mode corresponding to the corresponding key.
In application, the key may be a touch key and an entity key, wherein the touch key may be a key device having a touch function, such as a capacitive touch key, a resistive touch key, a surface acoustic wave touch key, an infrared touch key, and the like, and the entity key may be a pressure-triggered key device, such as a silicone key, a mechanical key, and the like.
In application, the illumination lamp may be a color in an RGB color pattern of a combination of red 0 to 255 levels, green 0 to 255 levels, and blue 0 to 255 levels, and may be a white color or a yellow color.
In application, the warning light may be a color or a combination of colors in an RGB color pattern of a combination of red 0 to 255, green 0 to 255 and blue 0 to 255, specifically, a red color, a blue color or a yellow color, a combination of a red color and a blue color, a combination of a red color and a yellow color or a combination of a blue color and a yellow color, or a combination of a red color, a blue color and a yellow color.
As shown in fig. 2, in one embodiment, based on the embodiment corresponding to fig. 1, step S102 includes steps S201 and S205:
step S201, when the touch operation of a user on a first key is detected, controlling an illuminating lamp to enter a writing mode;
and step S202, when the short-press operation of the first key by the user is detected, controlling the illuminating lamp to be turned on at the maximum brightness.
In application, when short-time pressing operation of a user on a first key is detected, a first preset current is output to an illuminating lamp, the duty ratio is adjusted to be 100%, the illuminating lamp is controlled to be turned on at the maximum brightness, and the current of the first preset current is unchanged.
And S203, when the long-press operation of the first key by the user is detected, controlling the brightness of the illuminating lamp to be continuously increased within a preset brightness range along with the duration time of the long-press operation.
In application, the preset brightness range is a lower limit value and an upper limit value, the lower limit value of the preset brightness range can be set according to actual needs, specifically, the preset brightness range can be 0%, 5%, 10%, 15%, 20%, 25% and 30% of the maximum brightness, and the upper limit value of the preset brightness range can be set according to actual needs, specifically, the preset brightness range can be 80%, 85%, 90%, 95% and 100% of the maximum brightness. When the long-press operation of the user on the first key is detected, the driver controls the illuminating lamp to be turned on at the lower limit value of the preset brightness range and continuously increased in the preset brightness range along with the duration time of the long-press operation until the brightness reaches the upper limit value of the preset brightness range.
In one embodiment, step S203 comprises:
and in the duration of the long-press operation, if the brightness of the illuminating lamp is not increased to the upper limit value of the preset brightness range, when the long-press operation of the user on the first key is detected again, controlling the brightness of the illuminating lamp to continue to be increased in the preset brightness range along with the duration of the long-press operation.
And S204, after the brightness of the illuminating lamp is controlled to be continuously increased within a preset brightness range along with the duration time of the long-press operation, and when the long-press operation of the user on the first key is detected again, the brightness of the illuminating lamp is controlled to be continuously decreased within the preset brightness range along with the duration time of the long-press operation.
In application, when the brightness of the illuminating lamp reaches the upper limit value of the preset brightness range, and the long-press operation of the user on the first key is detected again, the brightness of the illuminating lamp is controlled to continuously decrease from the upper limit value of the preset brightness range along with the duration time of the long-press operation until the brightness reaches the lower limit value of the preset brightness range.
In one embodiment, step S204 includes:
and in the duration of the long-press operation, if the brightness of the illuminating lamp is not reduced to the lower limit value of the preset brightness range, when the long-press operation of the user on the first key is detected again, controlling the brightness of the illuminating lamp to continue to be reduced in the preset brightness range along with the duration of the long-press operation.
And S205, after the illumination lamp is controlled to be turned on at the maximum brightness or the brightness of the illumination lamp is controlled to be continuously increased within a preset brightness range along with the duration time of the long pressing operation, when the short pressing operation of the user on the first key is detected again, the illumination lamp is controlled to be turned off.
In application, when the illuminating lamp is turned on and short-press operation of a key by a user is detected, the illuminating lamp is controlled to be turned off.
In application, the driver controls the brightness of the illuminating lamp to be continuously increased or continuously decreased in a preset brightness range by adjusting the duty ratio of the first preset current during the duration of the long pressing operation. The current magnitude of the first preset current is unchanged, the higher the duty ratio of the first preset current is, the higher the illumination lamp brightness is, the lower the duty ratio of the first preset current is, the lower the illumination lamp brightness is, and the corresponding relation between the duty ratio of the first preset current and the illumination lamp brightness is determined by a preset experiment. For example, assuming that the first preset current is 1200mA, when the illumination lamp is not lit and a short-press operation of the first key by the user is detected, the duty ratio is adjusted and the illumination lamp is lit at the maximum brightness; assuming that the first preset current is 1200mA, the lower limit value of the preset brightness range is 10% of the maximum brightness, the upper limit value of the preset brightness range is the maximum brightness, and the duration of the long press operation is 10s, the brightness may be continuously increased from a lower limit value of the preset brightness range to an upper limit value of the preset brightness range, when the illuminating lamp is not lighted and the long-time pressing operation of the first key by the user is detected, the duty ratio is adjusted to light the illuminating lamp with the brightness of 10% of the maximum brightness, if the long-time pressing operation duration is 10s, the duty ratio is adjusted high for a long pressing operation duration of 10s to continuously increase the brightness to the maximum brightness, and if the long pressing operation duration exceeds 10s, the brightness is not changed after the brightness is increased to the maximum brightness within 10s, and if the long pressing operation duration does not exceed 10s, the brightness does not change after the brightness is increased to the brightness at the end of the duration by the long pressing operation duration; the same process is performed when the illumination lamp is lighted up with the maximum brightness and the long-press operation of the user on the first key is detected, and the description is omitted here. Therefore, the brightness of the illuminating lamp can be adjusted steplessly through long-time pressing operation, so that the brightness of the illuminating lamp can be adjusted according to the requirement of a user when the user has writing requirements.
As shown in fig. 3, in an embodiment, based on the embodiment corresponding to fig. 1, steps S301 to S305 are further included after step S103:
step S301, when the touch operation of a user on a second key is detected, outputting the ith current to an illuminating lamp, outputting the (i + 1) th current to the illuminating lamp after the ith time is continued, and controlling the illuminating lamp to enter a working mode; wherein i is 1,2, …, m-1, m is not less than 2 and is a positive integer, and the ith current is greater than the (i + 1) th current;
step S302, when the touch operation of the user on the second key is detected again after the illuminating lamp is controlled to enter the working mode, outputting a j current to the illuminating lamp, outputting a j +1 current to the illuminating lamp after the j time, and controlling the illuminating lamp to enter an energy-saving mode; wherein j is m +1, m +2, …, m + n, which is a positive integer, the jth current > the jth +1 current and the 1 st current > the m +1 current;
step S303, when the touch operation of the user on the second key is detected again after the lighting lamp is controlled to enter the energy-saving mode, the lighting lamp is controlled to be turned off, and the step S304 or the step S305 is executed;
step S304, when the touch operation of the user on the second key is detected again after the preset time after the lighting lamp is turned off, controlling the lighting lamp to enter a working mode, and returning to the step S301;
step S305, when the touch operation of the user on the second key is detected again within the preset time after the illuminating lamp is turned off, controlling the illuminating lamp to enter an energy-saving mode, and returning to the step S302.
In application, the current value corresponding to the duration is set in different durations, so that the current can be adjusted at regular time to adjust the brightness of the illuminating lamp. For example, assuming that m is 3 and n is 2, the 1 st, 2 nd, 4 th, 5 th and 1 st to 6 th currents may be obtained; specifically, assume that when a touch operation of a user on a second key is detected, the first key enters a working mode, a 1 st current of 1000mA is output to an illuminating lamp for a 1 st time of 30 minutes, a 2 nd current of 700mA is output to the illuminating lamp for a 2 nd time of 6 minutes, and a 3 rd current of 350mA is output, when a touch operation of a user on a second key is detected again after the working mode is entered, the energy saving mode is entered, a 4 th current of 450mA is output to the illuminating lamp for a 4 th time of 30 minutes, a 5 th current of 250mA is output for a 5 th time of 6 minutes, and a 6 th current of 135mA is output; assuming that the preset time is one minute, after the lighting lamp is turned off, when the touch operation of the user on the second key is detected again after one minute, the lighting lamp is controlled to enter a working mode, and when the touch operation of the user on the second key is detected again within one minute after the lighting lamp is turned off, the lighting lamp is controlled to enter an energy-saving mode. Therefore, the brightness of the illuminating lamp can be gradually reduced through the preset multistage time to gradually reduce the current of the illuminating lamp, so that the illuminating requirement of a user on soft and long-time light of the lamp in an outdoor application scene is met.
As shown in fig. 4, in an embodiment, based on the embodiment corresponding to fig. 1, the step S104 further includes steps S401 and S402:
step S401, when the touch operation of the user on the third key is detected, outputting a second preset current to a warning lamp, and controlling the warning lamp to flash at a preset frequency;
and S402, when a second preset current is output to the warning lamp, the warning lamp is controlled to flicker at a preset frequency, and when the touch operation of the user on the third key is detected again, the warning lamp is controlled to stop flickering.
In one embodiment, step S402 includes:
when the touch operation of the user on the third key is detected, the warning lamps of the K colors are controlled to flash for a first preset number of times in sequence at a first preset frequency, and then the warning lamps of the K colors are controlled to flash for a second preset number of times at a second preset frequency. And when the touch operation of the user on the third key is detected again, controlling the warning lamp to stop flashing. The first preset frequency and the second preset frequency are determined by the duty ratio of a second preset current input into the warning lamp, the current of the second preset current is unchanged, and K is greater than or equal to 1 and is a positive integer.
In application, when the touch operation of the user on the third key is detected, the warning lamps of the K colors are controlled to flash sequentially for a first preset number of times at a first preset frequency, and then the warning lamps of the K colors are controlled to flash simultaneously for a second preset number of times at a second preset frequency. For example, assume that the K colors of warning lights include red and blue warning lights; specifically, suppose that driver control red warning light and blue warning light are glimmered 3 times by red warning light with 4Hz frequency earlier, after blue warning light glimmered 3 times again, control red warning light and blue warning light and glimmer 3 times simultaneously and carry out the circulation with this scintillation to outdoor warning requirement when making the warning light satisfy emergency operations such as policeman fire control.
As shown in fig. 5, the lamp control method provided in the embodiment of the present application includes the following steps S501 to S512:
step S501, detecting touch operation of a user on a first key, a second key and a third key;
step S502, when the touch operation of a user on a first key is detected, controlling an illuminating lamp to enter a writing mode, and entering step S503 or step S504; wherein the brightness of the illuminating lamp in the writing mode is adjustable;
step S503, when the short-press operation of the first key by the user is detected, controlling the illuminating lamp to be turned on at the maximum brightness;
step S504, when detecting the long press operation of the first key by the user, controlling the brightness of the illuminating lamp to continuously increase within a preset brightness range along with the duration time of the long press operation;
step S505, after the brightness of the illuminating lamp is controlled to be continuously increased within a preset brightness range along with the duration time of the long-press operation, when the long-press operation of the user on the first key is detected again, the brightness of the illuminating lamp is controlled to be continuously decreased within the preset brightness range along with the duration time of the long-press operation;
step S506, after the illumination lamp is controlled to be turned on at the maximum brightness or the brightness of the illumination lamp is controlled to be continuously improved within a preset brightness range along with the duration time of the long pressing operation, when the short pressing operation of the user on the first key is detected again, the illumination lamp is controlled to be turned off;
step S507, when the touch operation of the user on the second key is detected, controlling the illuminating lamp to enter a working mode or an energy-saving mode, and entering step S508; the working current of the illuminating lamp in the working mode changes in a first current range, the working current of the illuminating lamp in the energy-saving mode changes in a second current range, the upper limit value of the first current range is larger than the upper limit value of the second current range, and the lower limit value of the first current range is larger than the lower limit value of the second current range;
step S508, when the touch operation of the user on the second key is detected, outputting the ith current to an illuminating lamp, outputting the (i + 1) th current to the illuminating lamp after the ith time, and controlling the illuminating lamp to enter a working mode; wherein i is 1,2, …, m-1, m is not less than 2 and is a positive integer, and the ith current is greater than the (i + 1) th current;
step S509, when the touch operation of the user on the second key is detected again after the lighting lamp is controlled to enter the working mode, outputting a jth current to the lighting lamp, and outputting a j +1 th current to the lighting lamp after a jth time is continued, so as to control the lighting lamp to enter an energy saving mode; wherein j is m +1, m +2, …, m + n, said n is a positive integer, said j current > said j +1 current and 1 current > m +1 current;
step S510, when the touch operation of the user on the second key is detected again after the lighting lamp is controlled to enter the energy-saving mode, the lighting lamp is controlled to be turned off, and the step S511 or the step S512 is executed;
step S511, when the touch operation of the user on the second key is detected again after the lighting lamp is turned off for a preset time, controlling the lighting lamp to enter a working mode;
step S512, when the touch operation of the user on the second key is detected again within preset time after the illuminating lamp is turned off, controlling the illuminating lamp to enter an energy-saving mode;
step S513, when the touch operation of the user on the third key is detected, controlling the warning lamp to enter a warning mode; wherein the warning light flashes in the warning mode;
step S514, when the touch operation of the user on the third key is detected, outputting a second preset current to the warning lamp, and controlling the warning lamp to flash at a preset frequency;
and step S515, when a second preset current is output to the warning lamp, the warning lamp is controlled to flicker at a preset frequency, and when the touch operation of the user on the third key is detected again, the warning lamp is controlled to stop flickering.
The present embodiment is the same as the three modes in the previous embodiments, and is not described again.
According to the lamp control method, touch operation of a user on the first key, the second key and the third key is detected; when the touch operation of a user on the first key is detected, controlling an illuminating lamp to enter a writing mode; the brightness of the illuminating lamp in a writing mode is adjustable; when the touch operation of the user on the second key is detected, controlling the illuminating lamp to enter a working mode or an energy-saving mode; the working current of the illuminating lamp in the working mode changes within a first current range, the working current of the illuminating lamp in the energy-saving mode changes within a second current range, the upper limit value of the first current range is larger than the upper limit value of the second current range, and the lower limit value of the first current range is larger than the lower limit value of the second current range; when the touch operation of the user on the third key is detected, controlling the warning lamp to enter a warning mode; the warning lamp flickers in the warning mode, the lighting mode of the lamp can be switched through the first key, the second key and the third key, and the lamp is applied to multiple scenes.
In one embodiment, the luminaire control method further comprises: detecting whether the charging interface is connected with the equipment to be charged; and when the charging interface is connected with the equipment to be charged, controlling a battery to charge the equipment to be charged. The battery can be a detachable or non-detachable rechargeable battery, the charging interface can be a USB interface, the device to be charged can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, a netbook, a Personal Digital Assistant (PDA), and the like, and the specific type of the terminal device is not limited at all in the embodiment of the present application. In one embodiment, the luminaire control method further comprises: detecting whether a charging interface is connected with power supply equipment or not; and the charging interface is connected with a power supply to charge the battery. The power supply equipment can be a power socket, and also can be energy storage equipment such as a storage battery or a charger.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
As shown in fig. 6, an embodiment of the present application further provides a luminaire control device, which is used to execute the steps in the luminaire control embodiment. The lighting control device may be a virtual appliance (virtual application) in the terminal device, and is run by a processor of the terminal device, or may be the terminal device itself.
As shown in fig. 6, a luminaire control apparatus 6 with controllable color temperature provided in the embodiment of the present application includes:
the detection module 601 is configured to detect a touch operation of a user on a first key, a second key and a third key;
the first control module 602 is configured to control the illuminating lamp to enter a writing mode when a touch operation of a user on the first key is detected; wherein the brightness of the illuminating lamp in the writing mode is adjustable;
the second control module 603 is configured to control the lighting lamp to enter a working mode or an energy saving mode when a touch operation of a user on a second key is detected; the working current of the illuminating lamp in the working mode changes in a first current range, the working current of the illuminating lamp in the energy-saving mode changes in a second current range, the upper limit value of the first current range is larger than the upper limit value of the second current range, and the lower limit value of the first current range is larger than the lower limit value of the second current range;
a third control module 604, configured to control the warning lamp to enter a warning mode when a touch operation of the user on the third key is detected; wherein the warning light flashes in the warning mode.
In one embodiment, the luminaire control apparatus further includes:
the writing module is used for controlling the illuminating lamp to be lightened at the maximum brightness when the short-time pressing operation of the user on the first key is detected; the long press control device is also used for controlling the brightness of the illuminating lamp to be continuously improved within a preset brightness range along with the duration time of the long press operation; the controller is further used for controlling the brightness of the illuminating lamp to continuously decrease within a preset brightness range along with the duration of the long-press operation when the long-press operation of the user on the first key is detected again after the brightness of the illuminating lamp is continuously increased within the preset brightness range along with the duration of the long-press operation; the first button is used for being pressed for a long time, and the first button is used for being pressed for a long time;
the working energy-saving module outputs ith current to an illuminating lamp and outputs (i + 1) th current to the illuminating lamp after the ith time when the touch operation of the user on the second key is detected, and the illuminating lamp is controlled to enter a working mode; wherein i is 1,2, …, m-1, m is not less than 2 and is a positive integer, and the ith current is greater than the (i + 1) th current; when the touch operation of the user on the second key is detected again after the illuminating lamp is controlled to enter the working mode, j current is output to the illuminating lamp, j +1 current is output to the illuminating lamp after j time, and the illuminating lamp is controlled to enter the energy-saving mode; wherein j is m +1, m +2, …, m + n, said n is a positive integer, said j current > said j +1 current and 1 current > m +1 current; when the touch operation of the user on the second key is detected again after the illuminating lamp is controlled to enter the energy-saving mode, the illuminating lamp is controlled to be turned off; when the touch operation of the user on the second key is detected again after the lighting lamp is turned off for a preset time, the lighting lamp is controlled to enter a working mode; and when the touch operation of the user on the second key is detected again within preset time after the illuminating lamp is turned off, controlling the illuminating lamp to enter an energy-saving mode.
The warning module is used for outputting a second preset current to the warning lamp when the touch operation of the user on the third key is detected, and controlling the warning lamp to flicker at a preset frequency; and the control module is also used for controlling the warning lamp to stop flashing when the touch operation of the user on the third key is detected again after the warning lamp flashes at the preset frequency when a second preset current is output to the warning lamp.
In application, each module in the luminaire control apparatus may be a software program module, may also be implemented by different logic circuits integrated in the driver, and may also be implemented by a plurality of distributed processors.
As shown in fig. 7, the embodiment of the present application further provides a luminaire 7, which includes a driver 74, and a first key 71, a second key 72, a third key 73, an illumination lamp 75, and a warning lamp 76 connected to the driver 74, where the driver 74 is configured to perform the steps in any one of the above embodiments of the luminaire control method.
As shown in fig. 8, the embodiment of the present application further provides a light fixture 8, which includes a driver 84, and a first button 81, a second button 82, a third button 83, a battery 85, a device to be charged 86, an illumination lamp 87, and a warning lamp 88 connected to the driver 84, where the driver 84 is configured to execute the steps in any one of the light fixture control method embodiments.
In an Application, the driver may be a Central Processing Unit (CPU), and the driver may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/modules, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and reference may be made to the part of the embodiment of the method specifically, and details are not described here.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely illustrated, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. Each functional module in the embodiments may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module, and the integrated module may be implemented in a form of hardware, or in a form of software functional module. In addition, specific names of the functional modules are only used for distinguishing one functional module from another, and are not used for limiting the protection scope of the application. The specific working process of the modules in the system may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned each lamp control method embodiment can be implemented.
The embodiments of the present application provide a computer program product, which when running on a luminaire, enables the luminaire to implement the steps in the above-mentioned luminaire control method embodiments when the luminaire is executed.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a photographing terminal device, recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed terminal device and method may be implemented in other ways. For example, the above-described terminal device embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and there may be other divisions when actually implementing, for example, a plurality of modules or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.