CN113597059B - Lamp switch control method and device and electronic equipment - Google Patents

Lamp switch control method and device and electronic equipment Download PDF

Info

Publication number
CN113597059B
CN113597059B CN202110841039.6A CN202110841039A CN113597059B CN 113597059 B CN113597059 B CN 113597059B CN 202110841039 A CN202110841039 A CN 202110841039A CN 113597059 B CN113597059 B CN 113597059B
Authority
CN
China
Prior art keywords
lamp
power supply
switch control
adjusting
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110841039.6A
Other languages
Chinese (zh)
Other versions
CN113597059A (en
Inventor
李巨龙
刘素光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110841039.6A priority Critical patent/CN113597059B/en
Publication of CN113597059A publication Critical patent/CN113597059A/en
Application granted granted Critical
Publication of CN113597059B publication Critical patent/CN113597059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the disclosure discloses a lamp switch control method, a device and electronic equipment, when a lamp switch control instruction is received, the adjustment mode for adjusting the current output parameter of a lamp to a target parameter can be determined according to the type indicated by the switch control instruction, and different adjustment modes indicate different adjustment times, namely, a user can select different switch modes of the lamp according to actual needs; thereby improving the applicability of the lamp.

Description

Lamp switch control method and device and electronic equipment
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a lamp switch control method, a lamp switch control device and electronic equipment.
Background
With the development of science and technology, people may use various lamps, such as a desk lamp, during work or life. When people need to use the lamp, the lamp can be turned on, and when the lamp does not need to be used, the lamp can also be turned off.
Disclosure of Invention
This disclosure is provided in part to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a lamp switch control method, a lamp switch control device and electronic equipment, enriches the process of switching on or switching off a lamp, improves the practicability of the lamp, and can enable the lamp to be switched off and switched on slowly, so that eye discomfort caused by large brightness change of the lamp can be avoided.
In a first aspect, an embodiment of the present disclosure provides a method for controlling a switch of a lamp, including: in response to receiving a lamp switch control instruction, determining an adjustment mode for adjusting the current power supply parameters of the lamp to target power supply parameters based on the type of the lamp switch control instruction; wherein, the switch control instruction indicates the target power supply parameter, and different adjusting modes indicate different adjusting times.
In a second aspect, embodiments of the present disclosure provide a lamp switch control device, including: the determining unit is used for determining an adjusting mode for adjusting the current power supply parameters of the lamp to target power supply parameters based on the type of the lamp switch control command in response to receiving the lamp switch control command; wherein, the switch control instruction indicates the target power supply parameter, and different adjusting modes indicate different adjusting times.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the luminaire switching control method as described in the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer readable medium having stored thereon a computer program which when executed by a processor implements the steps of the luminaire switching control method as described in the first aspect.
According to the lamp switch control method, the lamp switch control device and the electronic equipment, after the lamp switch control instruction is received, the adjustment mode for adjusting the current output parameters of the lamp to the target parameters can be determined according to the type indicated by the switch control instruction, and different adjustment modes indicate different adjustment times, namely, a user can select different switch modes of the lamp according to actual needs; thereby improving the applicability of the lamp.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of one embodiment of a luminaire switch control method according to the present disclosure;
FIG. 2A is a schematic illustration of a brightness change during a luminaire turn-on process according to one embodiment of a luminaire turn-on control method of the present disclosure;
FIG. 2B is a schematic illustration of a brightness change during a light extinction process according to another embodiment of a light switch control method of the present disclosure;
FIGS. 2C-2D are schematic luminance variations of a luminaire turning on process according to another embodiment of a luminaire switching control method of the present disclosure;
fig. 2E-2F are schematic views of a luminance change during a light extinction process according to another embodiment of a light switch control method of the present disclosure
FIG. 3 is a schematic diagram of the structure of one embodiment of a luminaire switch control device according to the present disclosure;
FIG. 4 is an exemplary system architecture in which a luminaire switching control method of one embodiment of the present disclosure may be applied;
fig. 5 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Referring to fig. 1, a flow of one embodiment of a luminaire switching control method according to the present disclosure is shown. The lamp switch control method can be applied to terminal equipment, such as lamps. The lamp switch control method as shown in fig. 1 comprises the following steps:
step 101, in response to receiving the lamp switch control command, a manner of adjusting the current power supply parameter of the lamp to the target power supply parameter may be determined based on the type of the lamp switch control command.
Here, the switch control instruction indicates a target power supply parameter. As an example, the target power supply parameter may be understood as a power supply parameter to which the power supply parameter of the luminaire needs to be adjusted.
Here, the lamp switching control instruction may include an instruction for instructing the lamp to turn on or off.
As an example, the light switch control command may be entered when a user needs to turn on the light or turn off the light.
As an example, the types of lamp switch control instructions are more, for example, a lamp switch control instruction for indicating that a lamp is fast turning on a lamp, a lamp switch control instruction for indicating that a lamp is fast turning off a lamp, a lamp switch control instruction for indicating that a lamp is slow turning on a lamp, a lamp switch control instruction for indicating that a lamp is slow turning off a lamp, and the like. And different types of lamp switch control instructions, the adjustment modes for adjusting the current power supply parameters of the lamp to the target power supply parameters may be different.
As an example, in different application scenarios, the manner in which the lamp needs to be turned on or off is different, for example, the user may sometimes want the light of the lamp to be turned on or off quickly (for example, the user may use the lamp to achieve a certain light effect, or simply want to test whether the lamp is normal, etc.), and may sometimes want the light of the lamp to be turned on or off slowly (for example, the user may need the lamp to provide short-term illumination after turning off the lamp, or the brightness of the lamp when it is turned on completely is higher, so as to avoid sudden strong light striking eyes of the user, and the light may also be turned on slowly). Of course, in which application scenarios, the user selects what type of lighting on/off mode, which is not limited herein, and only needs to be reasonably set according to actual situations. And under different application scenes, a user can also select different types of switch control instructions, so that the lamp can be turned on or off in different forms.
Different adjustment modes may indicate different adjustment times. As an example, when a lamp is required to be turned on and off quickly, the number of adjustments may be set smaller, and when a lamp is required to be turned on and off slowly, the number of adjustments may be set larger. That is, the adjustment times can reflect the on/off speed of the lamp to a certain extent.
Here, the power supply parameter may include at least any one of: supply voltage, supply current, etc. Of course, the power supply parameter is not limited to what is specifically, and for example, in some application scenarios, the power supply parameter may be understood as power supply.
As an example, the power supply parameter is related to the luminance value of the luminaire, and the luminance value of the luminaire is different from the power supply parameter.
For example, when the power supply parameter is a power supply voltage, each brightness value of the lamp can correspond to an output voltage, that is, when the output voltage is fixed, the brightness of the lamp is fixed, and when the output voltage is changed, the brightness value of the lamp is correspondingly changed. For example, when the lamp needs to be turned off, the target power supply voltage indicated by the lamp switch control command may be understood as the off voltage (for example, the voltage value of the off voltage is 0, or the voltage value of the off voltage is smaller than the voltage value of the lamp on voltage); when the lamp needs to be turned on, the target power supply voltage indicated by the lamp switch control instruction can be a voltage corresponding to predefined turn-on brightness of the lamp.
It can be seen that in the present application, after receiving the lamp switch control instruction, the adjustment mode for adjusting the current output parameter of the lamp to the target parameter can be determined according to the type indicated by the switch control instruction, and different adjustment modes indicate different adjustment times, that is, the user can select different switch modes of the lamp according to actual needs; thereby improving the applicability of the lamp.
Further, when the adjustment times are set to be more, slow turning on and slow turning off of the lamp can be realized. Namely, slow-on and slow-off of the lamp can be realized.
In some embodiments, the lamp switch control command includes a first type of switch control command, where step 101 (in response to receiving the lamp switch control command, the adjustment mode of the current power supply parameter adjustment value target power supply parameter of the lamp may be determined based on the type of the lamp switch control command) may specifically include:
and in response to receiving the first type lamp switch control instruction, adjusting the current power supply parameters of the lamp at least twice to target power supply parameters.
Here, the target power supply parameter at this time is a power supply parameter indicated by the first-type lamp switch control instruction.
As an example, when the current power supply parameter is adjusted to the target power supply parameter at least twice, it may be characterized that the transition of the luminaire from the current brightness to the target brightness is a gradual process. The brightness corresponding to the target power supply parameter is understood as the target brightness.
In some embodiments, the lamp switch control command includes a second type of switch control command, where step 101 (in response to receiving the lamp switch control command, the adjustment mode of the current power supply parameter adjustment value target power supply parameter of the lamp may be determined based on the type of the lamp switch control command) may specifically include: and in response to receiving the second type switch control instruction, adjusting the current power supply parameters of the lamp to target power supply parameters once.
Here, the target power supply parameter at this time may be understood as a power supply parameter indicated by the second type of switch control instruction.
As an example, when the current power supply parameter is adjusted to the target power supply parameter once, the instantaneous lighting or extinguishing of the lamp can be achieved.
It can be seen that by setting the first type switch control instruction and the second type switch control instruction, not only the slow turning on or off of the lamp can be realized; the lamp can be quickly turned on or off. That is, the lamp can be turned on or off in different manners, so that the practicability of the lamp is improved.
In some embodiments, the at least two adjustments comprise: the current power supply parameters of the lamp can be adjusted to preset power supply parameters through the first adjustment, and the preset power supply parameter adjustment value of the lamp is adjusted to target power supply parameters through the second adjustment.
As an example, the first adjustment may correspond to a first adjustment duration and the second adjustment may correspond to a second adjustment duration, and the first adjustment duration and the second adjustment duration may be different.
As an example, the preset power supply parameter may be understood as a power supply parameter corresponding to a preset brightness value, that is, in a process of adjusting the current power supply parameter of the lamp to the target power supply parameter, the power supply parameter of the lamp needs to be adjusted to the preset power supply parameter, and then the preset power supply parameter is adjusted to the target power supply parameter. The target brightness may be understood herein as the brightness of the lamp when it is normally lit.
For ease of understanding, the preset power supply parameter corresponds to a candela per square meter of brightness value, and the target brightness is b candela per square meter; that is, the brightness change of the lamp during the lighting process of the lamp can be understood as: 0 candela per square meter-a candela per square meter-b candela per square meter, and accordingly, the extinguishing process of the lamp can be understood as: b candela per square meter-a candela per square meter-0 candela per square meter. For ease of understanding, fig. 2A and 2B may be taken to illustrate the change in lamp brightness during lamp startup, with fig. 2A showing a faster change from 0 candela per square meter to a candela per square meter and a smoother change from a candela per square meter to B candela per square meter. Fig. 2B shows the change in luminance of the lamp during the extinguishing of the lamp, and it can be seen from fig. 2B that the change from B candela per square meter to a candela per square meter is relatively gentle, and the change from a candela per square meter to 0 candela per square meter is relatively rapid. By the method, the lighting and extinguishing processes of the lamp can be conducted in an intermediate process, so that the discomfort of the visual angle caused by the sudden lighting or the sudden extinguishing of the lamp can be avoided.
In some embodiments, the first type of switch control instruction may include a light on instruction or a light off instruction, where, in response to receiving the light off instruction, determining that the adjustment mode indicated by the first adjustment is a first linear adjustment mode; and in response to receiving the light fixture turn-on instruction, determining that the adjustment mode indicated by the second adjustment is a second linear adjustment mode.
Here, when the lamp turning-off instruction is received, it may be determined that the adjustment mode indicated by the first adjustment is a first linear adjustment mode, and in this way, the power supply parameter of the lamp may be made to be a linear process from the current power supply parameter to the target power supply parameter, so that the lamp may be uniformly changed from the target brightness to the preset brightness (the brightness corresponding to the current power supply parameter is the target brightness, and the brightness corresponding to the preset power supply parameter is the preset brightness). Correspondingly, when the lamp starting instruction is received, the adjusting mode indicated by the second adjusting mode can be determined to be a second linear adjusting mode, and in this way, the target brightness of the lamp can be changed slowly from the preset brightness (the brightness corresponding to the power supply parameter indicated by the lamp starting instruction is the target brightness).
As an example, the first adjustment rate of the first linear adjustment and the second adjustment rate of the second linear adjustment may be the same, such that the lighting process and the extinguishing process of the luminaire may be two processes that are symmetrical. Of course, in the specific embodiment, only the first adjustment rate and the second adjustment rate need to be set reasonably according to actual conditions, and the size relationship between the first adjustment rate and the second adjustment rate is not limited, for example, the second adjustment rate may be greater than the first adjustment rate, so that the lamp may be turned on faster and turned off slowly.
In some embodiments, the first type of switch control instruction may include a light on instruction or a light off instruction, where, in response to receiving the light off instruction, determining that the adjustment mode indicated by the first adjustment is a first nonlinear adjustment mode; and in response to receiving the lamp opening instruction, determining that the adjustment mode indicated by the second adjustment is a second nonlinear adjustment mode.
As an example, when the lamp turn-off command is received, the adjustment mode indicated by the first adjustment may be determined to be a first nonlinear adjustment mode, and in this way, the power supply parameter of the lamp may be made to be a nonlinear process from the current power supply parameter to the target power supply parameter. For example, the brightness of the luminaire may be made to change faster and faster, or the brightness of the luminaire may be made to change slower and faster. Correspondingly, when the lamp starting instruction is received, the adjusting mode indicated by the second adjusting mode can be determined to be a second nonlinear adjusting mode, and in this way, the brightness of the lamp can be changed faster and faster or the brightness of the lamp can be changed slower and slower. Of course, in the specific embodiment, the nonlinear adjustment modes are numerous, and only need to be reasonably selected according to actual situations, and the specific adjustment modes of the nonlinear adjustment modes are not limited here.
For ease of understanding, the preset power supply parameter corresponds to a candela per square meter of brightness value, and the target brightness is b candela per square meter; that is, the brightness change of the lamp during the lighting process of the lamp can be understood as: 0 candela per square meter-a candela per square meter-b candela per square meter, and accordingly, the extinguishing process of the lamp can be understood as: b candela per square meter-a candela per square meter-0 candela per square meter. Further, referring to fig. 2C-2D, fig. 2C and 2D illustrate the brightness change of the lamp when the first adjustment mode is the first nonlinear adjustment mode. As shown in fig. 2C, the faster the brightness of the lamp changes, so that the user can better adapt to the change of the lamp in the early stage of the brightness change of the lamp, thereby reducing the impact on vision in the process of changing the lamp. As shown in fig. 2D, the brightness of the lamp may also change more and more slowly, so that the brightness of the lamp may reach the vicinity of the target brightness value faster in the early stage of the brightness change of the lamp, and may be turned off quickly in the slow change. Accordingly, the description can be continued with reference to fig. 2E to fig. 2F, where fig. 2E and fig. 2F show the brightness change of the lamp when the second adjustment mode is the second nonlinear adjustment mode. As shown in fig. 2E, the brightness change of the lamp is a gradual and rapid process; therefore, in the early stage of the brightness change of the lamp, the user can adapt to the change of the lamp well, and the impact on vision in the lamp change process is reduced. As shown in fig. 2F, the brightness of the lamp may also change more and more slowly; therefore, the brightness of the lamp can reach the vicinity of the target brightness value faster in the early stage of the brightness change of the lamp, and then the lamp is slowly changed, so that the lamp can be quickly lightened.
In some embodiments, the power supply parameter may include a power supply voltage, and at this time, the preset power supply parameter may be determined as follows: and determining a preset power supply parameter based on the starting voltage of the light-emitting element of the lamp.
As an example, when the power supply voltage of the lamp reaches a certain value, the light emitting element of the lamp can emit light, so that the preset power supply parameter can be determined according to the on voltage of the light emitting element of the lamp. That is, when the power supply parameter is the preset power supply parameter, the light emitting element of the lamp can emit light, and at this time, the lamp is in the darkest state after being lighted.
As an example, the brightness change process of the lighting process of the luminaire may be understood as: the extinction process of the lamp can be understood as follows: the brightness of the lamp when the lamp is normally on-the darkest brightness of the lamp-off.
By way of example, by linearly changing the power supply parameters, a more uniform change in brightness can be realized in the brightness change process of the lamp brightness from the darkest brightness of the lamp to the brightness when the lamp is normally lighted, and correspondingly, by linearly changing the power supply parameters, a more uniform change in brightness can also be realized in the brightness change process of the lamp brightness from the brightness when the lamp is normally lighted to the darkest brightness of the lamp. By the mode, the uniform change of the brightness can be realized in the opening or closing process of the lamp, so that the visual angle pressure caused by the large change of the brightness to a user can be avoided.
In some embodiments, the light fixture may include a first chip and a second chip, where the first chip may be used to process a first type of event, the first chip may also be used to generate light fixture switch control instructions, and the second chip may be used to process a second type of event.
Here, the second type of event may include: and a lamp switch control instruction.
As an example, the second type of event may be understood as: for indicating an event of switching the light fixture. And because the light switch control instructions may be used to indicate the switching of the light, the second type of event may include light switch control instructions.
As an example, a first type of event may be understood as: other events than those used to indicate the light switch, such as a brightness adjustment event for the light, a color temperature adjustment event for the light, etc.
As an example, the first chip may generate a first type of switch control instruction and a second type of switch control instruction, that is, the first type of switch control instruction may be input when the user needs to make the light implement fast on/off, and the second type of switch control instruction may be input when the user needs to make the light implement slow on/off.
As an example, when the light fixture includes a first chip and a second chip, the second chip may be caused to process only switching events of the light fixture, while the first chip processes other events than switching events of the light fixture, thereby distinguishing switching events of the light fixture from other events of the light fixture. In this way, the second chip can only process the switching event of the lamp, namely the processing amount of the second chip is smaller, so that the second chip can rapidly process the switching event of the lamp; meanwhile, the processing pressure of the first chip can be reduced, and the first chip can rapidly process the first type event. It can be seen that in this way, the efficiency of the luminaire to handle events is improved.
In some embodiments, the luminaire further comprises a switch key, at which time a second type of switch control instruction is generated in response to detecting a trigger operation for the switch key.
As an example, the switch key is connected to the second chip.
As an example, when a trigger operation for a switch control is detected, a second type of switch control instruction may be generated.
As an example, in the use process of the lamp, in order to relieve the eye pressure brought to the user by the opening or closing process of the lamp, the default opening of the lamp is usually set to be slow opening, and correspondingly, the default closing process of the lamp can also be set to be slow closing.
That is, when a trigger operation for the switch control is detected, the light fixture may be turned on or off more slowly.
With further reference to fig. 3, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of a lamp switching control device, where the embodiment of the device corresponds to the embodiment of the lamp switching control method shown in fig. 1, and the device may be specifically applied to various electronic devices.
As shown in fig. 3, the lamp switch control device of the present embodiment includes: a determining unit 301, configured to determine, in response to receiving a lamp switch control instruction, an adjustment manner of adjusting a current power supply parameter of the lamp to a target power supply parameter based on a type of the lamp switch control instruction; wherein, the switch control instruction indicates the target power supply parameter, and different adjusting modes indicate different adjusting times.
In some embodiments, the lamp switch control command includes a first type of switch control command, and the determining unit 301 is specifically further configured to adjust the current power supply parameter of the lamp to the target power supply parameter at least twice in response to receiving the first type of lamp switch control command.
In some embodiments, the lamp switching control command includes a second type of switching control command, and the determining unit 301 is specifically further configured to adjust the current power supply parameter of the lamp to the target power supply parameter once in response to receiving the second type of switching control command.
In some embodiments, the luminaire comprises a first chip for processing a first type of event, the first chip further for generating luminaire switching control instructions, and a second chip for processing a second type of event; wherein the second type event includes: and a lamp switch control instruction.
In some embodiments, the at least two adjustments include: the determining unit 301 is specifically further configured to adjust, via the first adjustment, the current power supply parameter of the lamp to a preset power supply parameter, and adjust, via the second adjustment, the preset power supply parameter adjustment value of the lamp to a target power supply parameter.
In some embodiments, the first type of switch control instruction includes a lamp on instruction or a lamp off instruction, and the determining unit 301 is specifically further configured to determine, in response to receiving the lamp off instruction, that the adjustment mode indicated by the first adjustment is a first linear adjustment mode; and the control unit is used for determining that the adjustment mode indicated by the second adjustment is a second linear adjustment mode in response to receiving the lamp starting instruction.
In some embodiments, the power supply parameter includes a power supply voltage, and the determining unit 301 is specifically further configured to determine the preset power supply parameter by: and determining the preset power supply parameter based on the starting voltage of the light-emitting element of the lamp.
In some embodiments, the light fixture includes a switch button, and the determining unit 301 is specifically further configured to generate a second type of switch control instruction in response to detecting a triggering operation for the switch button.
Referring to fig. 4, fig. 4 illustrates an exemplary system architecture in which a light brightness adjustment method of an embodiment of the present disclosure may be applied.
As shown in fig. 4, the system architecture may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 may be used as a medium to provide communication links between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The terminal devices 401, 402, 403 may interact with the server 405 through the network 404 to receive or send messages or the like. Various client applications, such as a web browser application, a search class application, a news information class application, may be installed on the terminal devices 401, 402, 403. The client application in the terminal device 401, 402, 403 may receive the instruction of the user and perform the corresponding function according to the instruction of the user, for example, adding the corresponding information in the information according to the instruction of the user.
The terminal devices 401, 402, 403 may be hardware or software. When the terminal devices 401, 402, 403 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, electronic book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic video expert compression standard audio plane 3), MP4 (Moving Picture Experts Group AudioLayer IV, dynamic video expert compression standard audio plane 4) players, laptop and desktop computers, and the like. When the terminal devices 401, 402, 403 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 405 may be a server that provides various services, for example, receives information acquisition requests sent by the terminal devices 401, 402, 403, and acquires presentation information corresponding to the information acquisition requests in various ways according to the information acquisition requests. And related data showing the information is transmitted to the terminal devices 401, 402, 403.
It should be noted that, the light brightness adjustment method provided by the embodiments of the present disclosure may be executed by the terminal device, and accordingly, the light brightness adjustment device may be provided in the terminal devices 401, 402, 403. In addition, the light brightness adjustment method provided in the embodiment of the present disclosure may also be executed by the server 405, and accordingly, the information processing apparatus may be disposed in the server 405.
It should be understood that the number of terminal devices, networks and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 5, a schematic diagram of a configuration of an electronic device (e.g., a terminal device or server in fig. 4) suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as smart desklamps, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM502, and the RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving a lamp switch control instruction, determining an adjustment mode for adjusting the current power supply parameters of the lamp to target power supply parameters based on the type of the lamp switch control instruction; wherein, the switch control instruction indicates the target power supply parameter, and different adjusting modes indicate different adjusting times.
In some embodiments, the lamp switch control command includes a first type of switch control command, and the determining, in response to receiving the lamp switch control command, an adjustment manner of adjusting the current power supply parameter of the lamp to the target power supply parameter based on a type of the lamp switch control command includes: and in response to receiving a first type lamp switch control instruction, adjusting the current power supply parameters of the lamp at least twice to target power supply parameters.
In some embodiments, the lamp switch control command includes a second type of switch control command, and the determining, in response to receiving the lamp switch control command, an adjustment manner of adjusting the current power supply parameter of the lamp to the target power supply parameter based on the type of the lamp switch control command includes: and in response to receiving a second type switch control instruction, the current power supply parameters of the lamp are adjusted to target power supply parameters once.
In some embodiments, the luminaire comprises a first chip for processing a first type of event, the first chip further for generating luminaire switching control instructions, and a second chip for processing a second type of event; wherein the second type event includes: and a lamp switch control instruction.
In some embodiments, the at least two adjustments include: the first adjusting and the second adjusting, and the adjusting the current power supply parameter of the lamp at least twice to the target power supply parameter, further includes: the current power supply parameters of the lamp are adjusted to preset power supply parameters through first adjustment, and the preset power supply parameters of the lamp are adjusted to target power supply parameters through second adjustment.
In some embodiments, the first type of switch control instruction comprises a light on instruction or a light off instruction, and the method further comprises: in response to receiving a lamp closing instruction, determining that the adjustment mode indicated by the first adjustment is a first linear adjustment mode; and in response to receiving the lamp starting instruction, determining that the adjustment mode indicated by the second adjustment is a second linear adjustment mode.
In some embodiments, in response to receiving a light fixture turn-off instruction, determining that the adjustment mode indicated by the first adjustment is a first nonlinear adjustment mode; and in response to receiving the lamp starting instruction, determining that the adjustment mode indicated by the second adjustment is a second nonlinear adjustment mode.
In some embodiments, the power supply parameters include a power supply voltage, and the preset power supply parameters are determined by: and determining the preset power supply parameter based on the starting voltage of the light-emitting element of the lamp.
In some embodiments, the luminaire includes a switch key, and the method further includes: and generating a second type switch control instruction in response to detecting the triggering operation of the switch key.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit is not limited to the unit itself in some cases, and for example, the determining unit 301 may also be described as "a unit that determines an adjustment manner of adjusting the current power supply parameter of the above-described lamp to the target power supply parameter".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (9)

1. A lamp switching control method, comprising:
in response to receiving a lamp switch control instruction, determining an adjustment mode for adjusting the current power supply parameter of the lamp to a target power supply parameter based on the type of the lamp switch control instruction;
wherein, the switch control instruction indicates a target power supply parameter, and different adjusting modes indicate different adjusting times;
the lamp switch control instruction comprises a first type switch control instruction, and the determining, based on the type of the lamp switch control instruction, an adjustment mode for adjusting the current power supply parameter of the lamp to a target power supply parameter in response to receiving the lamp switch control instruction comprises: responding to a received first type lamp switch control instruction, and adjusting the current power supply parameters of the lamp at least twice to target power supply parameters;
The at least two adjustments include: the first adjusting and the second adjusting, and the adjusting the current power supply parameter of the lamp at least twice to the target power supply parameter, further includes: the current power supply parameters of the lamp are adjusted to preset power supply parameters through first adjustment, and the preset power supply parameters of the lamp are adjusted to target power supply parameters through second adjustment;
the power supply parameters include a power supply voltage, and the preset power supply parameters are determined by: and determining the preset power supply parameter based on the starting voltage of the light-emitting element of the lamp.
2. The method of claim 1, wherein the light fixture switch control command comprises a second type of switch control command, and wherein the determining, in response to receiving the light fixture switch control command, a manner of adjusting the current power supply parameter of the light fixture to a target power supply parameter based on the type of the light fixture switch control command comprises:
and in response to receiving a second type switch control instruction, adjusting the current power supply parameters of the lamp to target power supply parameters once.
3. The method of claim 1, wherein the light fixture comprises a first chip for processing a first type of event and a second chip for processing a second type of event, the first chip further for generating light fixture switch control instructions;
Wherein the second type of event comprises: and a lamp switch control instruction.
4. The method of claim 1, wherein the first type of switch control command comprises a light on command or a light off command, and wherein the method further comprises:
in response to receiving a lamp closing instruction, determining that the adjustment mode indicated by the first adjustment is a first linear adjustment mode;
and in response to receiving a lamp opening instruction, determining that the adjustment mode indicated by the second adjustment is a second linear adjustment mode.
5. The method of claim 1, wherein the first type of switch control command comprises a light on command or a light off command, and wherein the method further comprises:
in response to receiving a lamp closing instruction, determining that the adjustment mode indicated by the first adjustment is a first nonlinear adjustment mode;
and in response to receiving the lamp opening instruction, determining that the adjustment mode indicated by the second adjustment is a second nonlinear adjustment mode.
6. The method of claim 2, wherein the light fixture comprises a switch key, and wherein the method further comprises:
and generating a second type switch control instruction in response to detecting the triggering operation of the switch key.
7. A lamp switching control device, comprising:
the determining unit is used for determining an adjusting mode for adjusting the current power supply parameters of the lamp to target power supply parameters based on the type of the lamp switch control command in response to receiving the lamp switch control command; wherein, the switch control instruction indicates a target power supply parameter, and different adjusting modes indicate different adjusting times;
the lamp switch control instruction comprises a first type switch control instruction, and the determining unit is further used for adjusting the current power supply parameter of the lamp to a target power supply parameter at least twice in response to receiving the first type switch control instruction;
the at least two adjustments include: the first adjusting unit is used for adjusting the current power supply parameter of the lamp to a preset power supply parameter through the first adjusting unit, and adjusting the preset power supply parameter of the lamp to a target power supply parameter through the second adjusting unit;
the power supply parameters include a power supply voltage, and the preset power supply parameters are determined by: and determining the preset power supply parameter based on the starting voltage of the light-emitting element of the lamp.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN202110841039.6A 2021-07-23 2021-07-23 Lamp switch control method and device and electronic equipment Active CN113597059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110841039.6A CN113597059B (en) 2021-07-23 2021-07-23 Lamp switch control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110841039.6A CN113597059B (en) 2021-07-23 2021-07-23 Lamp switch control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113597059A CN113597059A (en) 2021-11-02
CN113597059B true CN113597059B (en) 2023-04-28

Family

ID=78249491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110841039.6A Active CN113597059B (en) 2021-07-23 2021-07-23 Lamp switch control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113597059B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105034930A (en) * 2015-07-24 2015-11-11 科博达技术有限公司 Light adjusting method for automobile LED headlamp
EP3166370A1 (en) * 2015-11-05 2017-05-10 Zumtobel Lighting GmbH Illumination system with personal control
CN110691451A (en) * 2019-09-10 2020-01-14 珠海格力电器股份有限公司 Intelligent household electrical appliance light control method, equipment and storage medium
CN112601328A (en) * 2020-12-17 2021-04-02 广州彩熠灯光股份有限公司 Lamp control method and device, lamp and storage medium
CN112672464A (en) * 2020-12-29 2021-04-16 深圳市爱图仕影像器材有限公司 Lamp light control method and device of lamp and computer equipment
CN113347768A (en) * 2021-06-04 2021-09-03 深圳市欧瑞博科技股份有限公司 Intelligent light regulation and control method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105034930A (en) * 2015-07-24 2015-11-11 科博达技术有限公司 Light adjusting method for automobile LED headlamp
EP3166370A1 (en) * 2015-11-05 2017-05-10 Zumtobel Lighting GmbH Illumination system with personal control
CN110691451A (en) * 2019-09-10 2020-01-14 珠海格力电器股份有限公司 Intelligent household electrical appliance light control method, equipment and storage medium
CN112601328A (en) * 2020-12-17 2021-04-02 广州彩熠灯光股份有限公司 Lamp control method and device, lamp and storage medium
CN112672464A (en) * 2020-12-29 2021-04-16 深圳市爱图仕影像器材有限公司 Lamp light control method and device of lamp and computer equipment
CN113347768A (en) * 2021-06-04 2021-09-03 深圳市欧瑞博科技股份有限公司 Intelligent light regulation and control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113597059A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
WO2020119240A1 (en) Backlight brightness adjustment method and liquid crystal display device
CN112261226A (en) Horizontal screen interaction method and device, electronic equipment and storage medium
US10785676B2 (en) Electronic device and traffic control method thereof
CN104954558A (en) Display method, display system and mobile terminal
KR102189643B1 (en) Display apparatus and control method thereof
EP4216033A1 (en) Application operation mode switching method and apparatus, electronic device, and storage medium
KR102607647B1 (en) Electronic apparatus and tethering connection method thereof
WO2023001001A1 (en) Light brightness adjustment method and apparatus, and electronic device
JP7461955B2 (en) MEASUREMENT REPORTING METHOD AND DEVICE, TERMINAL DEVICE INFORMATION ACQUISITION METHOD AND DEVICE
CN112562609B (en) Brightness adjusting method, electronic device, display panel and electronic equipment
CN110633126B (en) Information display method and device and electronic equipment
KR102589356B1 (en) Display apparatus and controlling method thereof
KR20210101704A (en) electronic device and method for operating high speed screen of the electronic device
CN111399625A (en) Refreshing frequency switching method and device, readable medium and communication terminal
CN113521728A (en) Cloud application implementation method and device, electronic equipment and storage medium
KR102588235B1 (en) An electronic device and a controlling method thereof
CN113721807B (en) Information display method and device, electronic equipment and storage medium
WO2019201137A1 (en) Processing method for split-screen exiting, storage medium and electronic device
CN110851215A (en) Screen locking interface control method, mobile terminal and computer storage medium
KR102255456B1 (en) Method and apparatus for controlling screen
CN113597059B (en) Lamp switch control method and device and electronic equipment
US20120210277A1 (en) Usage based screen management
CN113573445B (en) Determination method and device for lamp driving parameters and electronic equipment
CN114916114A (en) Street lamp illumination adjusting method and device and computer readable storage medium
KR20150052448A (en) An electronic device with display function and operating method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant