Driver power supply system, control method, electronic device and lamp of a lamp

By introducing power-loss detection module and control module into the lamp drive power supply system, the preset waveform signal is used to determine whether to send control signals in real time, which solves the problem of lamp control delay and improves the user experience.

CN115052400BActive Publication Date: 2025-05-30OPPLE LIGHTING CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210655312.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2025-05-30
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

There is a time delay problem in the control of the lamp, resulting in a decrease in user experience.

Method used

Design a lamp driving power supply system, including AC-DC power supply and control module, use the power-deletion detection module to detect the power state in real time, and determine whether to send a control signal through the preset waveform signal.

Benefits of technology

By transmitting power status information in real time, the delay time of lamp control is shortened and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115052400B_ABST
    Figure CN115052400B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a driving power supply system, a control method, an electronic device, and a lamp for the lamp. The driving power supply system of the lamp includes an AC-DC power supply and a control module; the AC-DC power supply includes a power-on / power-off detection module; wherein: the AC-DC power supply is connected to the control module and is used to supply power to the control module; the power-on / power-off detection module is used to output a first waveform signal to the control module when the AC-DC power supply loses power, and is used to convert the received AC signal into a second waveform signal and send it to the control module when the AC-DC power supply is powered on; the control module is used to determine whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold. In this way, the detection result of the power-on / power-off state of the AC-DC power supply is transmitted to the control module in real time, and the control operation of the lamp is realized quickly and sensitively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of electronic technologies, and in particular, to a driving power supply system, a control method, an electronic device, and a lamp for a lamp. Background Art

[0002] With the development of electronic technologies, lamps are used more and more commonly, and people have put forward higher requirements for the timeliness of lamp control. In the driving power supply and control module of a lamp, there are often multiple energy storage electronic devices. The energy storage electronic devices store energy when the power supply is powered on and discharge when the power supply is powered off. The energy storage electronic devices may cause a time delay between the time point when a user performs a lamp control operation and the time point when the lamp performs the corresponding control operation, reducing the user experience. Summary of the Invention

[0003] Embodiments of the present application provide a driving power supply system, a control method, an electronic device, and a lamp for a lamp to solve the problem of how to shorten the delay time of lamp control.

[0004] In a first aspect, one or more embodiments of this specification provide a driving power supply system for a lamp. The driving power supply system for the lamp includes an AC-DC power supply and a control module; the AC-DC power supply includes a power-on-power-off detection module; wherein:

[0005] The AC-DC power supply is connected to the control module and is used to supply power to the control module;

[0006] When the AC-DC power supply is powered off, the power-on-power-off detection module is used to output a first waveform signal to the control module, and when the AC-DC power supply is powered on, the power-on-power-off detection module is used to convert the received AC signal into a second waveform signal and send it to the control module;

[0007] The control module is used to determine whether to send a control signal to a lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signals are formed by the alternately appearing first waveform and the second waveform.

[0008] In a second aspect, one or more embodiments of this specification provide a control method for a lamp, which is applied to the driving power supply system for a lamp as described in the first aspect. The control method for the lamp includes:

[0009] The AC-DC power supply supplies power to the control module;

[0010] The power-on / power-off detection module outputs a first waveform signal to the control module when the AC-DC power supply loses power, and converts the received AC signal into a second waveform signal and sends it to the control module when the AC-DC power supply is powered on;

[0011] The control module determines whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signal is formed by the alternately appearing first waveform and the second waveform.

[0012] In a third aspect, one or more embodiments of the present specification provide an electronic device, a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the lamp control method described in the second aspect are implemented.

[0013] In a fourth aspect, one or more embodiments of the present specification provide a lamp, and the lamp includes a driving power supply system of the lamp described in the first aspect.

[0014] In the embodiments of the present specification, the driving power supply system of the lamp includes an AC-DC power supply and a control module; the AC-DC power supply includes a power-on / power-off detection module; wherein: the AC-DC power supply is connected to the control module and is used to supply power to the control module; the power-on / power-off detection module is used to output a first waveform signal to the control module when the AC-DC power supply loses power, and is used to convert the received AC signal into a second waveform signal and send it to the control module when the AC-DC power supply is powered on; the control module is used to determine whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold. The preset waveform signal is formed by the alternately appearing first waveform signal and the second waveform signal. In this way, the detection result of the power-on and power-off state of the AC-DC power supply is transmitted to the control module in real time, shortening the delay time of lamp control and improving the user experience. Description of the Drawings

[0015] In order to more clearly illustrate the technical solutions in one or more embodiments of the present specification or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present specification. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings;

[0016] Figure 1 It is a schematic structural diagram of a driving power supply system of a lamp provided by one or more embodiments of the present specification;

[0017] Figure 2 Structural schematic diagram of a power-on / power-off detection module provided for one or more embodiments of this specification;

[0018] Figure 3 Another structural schematic diagram of a power-on / power-off detection module provided for one or more embodiments of this specification;

[0019] Figure 4 Schematic diagram of a voltage signal for characterizing the detection result of a power-on / power-off detection module provided for one or more embodiments of this specification;

[0020] Figure 5 Structural schematic diagram of a control module provided for one or more embodiments of this specification;

[0021] Figure 6 Schematic flow diagram of a control method for a lamp provided for one or more embodiments of this specification;

[0022] Figure 7 Structural schematic diagram of an electronic device provided for one or more embodiments of this specification.

[0023] Figure 8 Structural schematic diagram of a lamp provided for one or more embodiments of this specification.

[0024] Description of reference numerals:

[0025] 101 - AC-DC power supply, 102 - control module, 103 - power-on / power-off detection module;

[0026] 1031 - first voltage-dividing load, 1032 - second voltage-dividing load, 1033 - first filter capacitor, 1034 - second filter capacitor, 1035 - triode, 1036 - optocoupler, 1037 - current-limiting load;

[0027] 1041 - first rectifier diode, 1042 - second rectifier diode, 1043 - third voltage-dividing load, and 1044 - fourth voltage-dividing load;

[0028] 1021 - control chip, 1022 - third filter capacitor, 1023 - fourth filter capacitor, 1024 - power supply pin, 1025 - receiving pin 1035;

[0029] 701 - processor, 702 - memory, 703 - power supply, 704 - wired / wireless network interface, 705 - input / output interface, 706 - keyboard;

[0030] 800 - lamp, 801 - driving power supply system of the lamp. Detailed implementation manners

[0031] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the accompanying drawings in one or more embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this document.

[0032] In practical applications, the drive power supply system of a lamp often includes multiple energy storage electronic devices, such as capacitors, inductors, etc. Energy storage electronic devices have the characteristics of charging or discharging under different circumstances. Taking a capacitor as an example, a capacitor is a passive device that stores energy in the form of an electric field. When a capacitor is connected to a circuit powered by a DC power supply, charging and discharging processes may occur under different circumstances: If the capacitor is connected to the DC power supply and DC current passes through the capacitor, then the two plates of the capacitor will respectively obtain equal amounts of opposite charges. At this time, the capacitor is charging, and the potential difference across its two ends gradually increases until it is the same as the voltage value of the DC power supply. The capacitor is fully charged and no more DC current passes through the capacitor; If the connection between the capacitor and the DC power supply is cut off, the capacitor can discharge through the connected load, and the voltage value between the two plates of the capacitor will gradually drop to zero.

[0033] If an energy storage electronic device is connected and conducted to the output terminal of a DC power supply with a constant voltage / current value and an unchanged direction, and is powered by this DC power supply, when this DC power supply is powered on, the energy storage electronic device charges to store a large amount of electrical energy. When this DC power supply is powered off, the energy storage electronic device discharges, and it is necessary to release the large amount of electrical energy stored through the connected load. Releasing electrical energy may cause a delay in signal transmission, thereby increasing the delay time of lamp control and reducing the user experience.

[0034] The above-mentioned DC power supply being powered on can be that the DC power supply is inserted into a power strip to receive mains power, thereby converting the mains power into DC voltage or DC current and outputting it; the above-mentioned DC power supply being powered off can be that a closing operation is performed on the lamp switch for controlling the corresponding lamp, or when the DC power supply is pulled out of the power strip, or during a power outage of the mains, or in other cases where the connection between the DC power supply and the mains is disconnected, the DC power supply does not receive mains power and does not output any current or voltage.

[0035] Mains electricity is industrial frequency alternating current, which can be characterized by the three common quantities of alternating current: voltage, current, and frequency. The common industrial frequency of alternating current in countries around the world is 50Hz or 60Hz, and the distribution of civil alternating current voltage ranges from 100V to 380V. In the embodiments of this specification, no special restrictions are imposed on the value of mains electricity.

[0036] To overcome the above problems, an embodiment of a driving power supply system for a lamp is provided in this specification:

[0037] Figure 1 A schematic structural diagram of a driving power supply system for a lamp provided for one or more embodiments of this specification. As Figure 1 shown, the driving power supply system of the lamp includes an AC-DC power supply 101 and a control module 102; the AC-DC power supply 101 includes a power-on / power-off detection module 103; where: the AC-DC power supply 101 is connected to the control module 102 and is used to supply power to the control module 102; the power-on / power-off detection module 103 is used to output a first waveform signal to the control module 102 when the AC-DC power supply 101 loses power, and is used to convert the received alternating current signal into a second waveform signal and send it to the control module 102 when the AC-DC power supply 101 gets power; the control module 102 is used to determine whether to send a control signal to the lamp connected to the control module 102 according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signal is formed by alternately appearing first waveform signals and second waveform signals.

[0038] The power supply driving system of the lamp provided by the embodiments of this application can be connected to the lamp to supply power to the connected lamp, or can send a control signal to the connected lamp through the control module to control the connected lamp to perform a preset operation corresponding to the control signal.

[0039] The AC-DC power supply 101 can be an AC-DC (Alternating Current-Direct Current) power supply, which is used to convert alternating current into direct current with a constant value. The value of the direct current obtained through the conversion of the AC-DC power supply 101 can be 24V, or 48V, or other preset values.

[0040] For example, the AC-DC power supply 101 can be inserted into an electric socket to convert mains electricity, for example, 220V, 50Hz alternating current, into 24V direct current.

[0041] The control module 102 can be a component for controlling a lamp. For example, the lamp can be a magnetic adsorption lamp, and the control module 102 can be a magnetic adsorption guide rail control box of the magnetic adsorption lamp. The power-on / off detection module 103 can be a preset circuit structure for detecting whether the AC-DC power supply 101 is powered on.

[0042] In specific implementation, the AC-DC power supply 101 is inserted into a power strip so that the AC-DC power supply 101 receives the AC power signal of the mains power, converts the AC power signal into a DC voltage signal or a DC current signal and outputs it. In this case, the AC-DC power supply 101 is in a powered-on state, that is, the AC-DC power supply 101 is powered on.

[0043] If an off operation is performed on the lamp switch for controlling the target lamp, or the AC-DC power supply 101 is pulled out of the power strip, or the mains power is cut off, or there is a disconnection between the AC-DC power supply 101 and the mains power in other cases, in these multiple cases, the AC-DC power supply 101 does not receive any AC power signal and does not output any DC current signal or DC voltage signal. In this case, the AC-DC power supply 101 is in a powered-off state, that is, the AC-DC power supply 101 is powered off.

[0044] The AC-DC power supply 101 includes the power-on / off detection module 103. Specifically, the input end of the AC-DC power supply 101 can be connected to the mains power, and the output end of the AC-DC power supply 101 can be connected to the control module 102; the input end of the power-on / off detection module 103 can be connected to the mains power, and the output end of the power-on / off detection module 103 can be connected to the control module 102.

[0045] The first waveform signal includes but is not limited to: high-level signal, low-level signal, square wave signal, triangular wave signal, sine wave signal, cosine wave signal, etc. The second waveform signal includes but is not limited to: high-level signal, low-level signal, square wave signal, triangular wave signal, sine wave signal, cosine wave signal, etc. The first waveform signal and the second waveform signal can be signals of different waveforms. Here, the "first" and "second" are only used to distinguish different waveform signals transmitted by the power-on / off detection module 103 to the control module 102 in two different cases and do not have actual meanings.

[0046] High level refers to a high voltage relative to low level, which is a term in electronic engineering. In logic levels, the minimum input high level allowed to ensure that the input of a logic gate is at high level. When the input level is higher than the input high voltage, the input level is considered to be at high level. Low level refers to the maximum input low level allowed to ensure that the input of a logic gate is at low level. When the input level is lower than the low level, the input level is considered to be at low level. Low level is a low voltage relative to high level, which is a term in electronic engineering. In digital logic circuits, low level represents 0 and high level represents 1.

[0047] A square wave signal is a special pulse signal, and the square wave signal has the characteristic that the ratio of the pulse width to the period is 1:2. The pulse width can be the duration of the high level.

[0048] A pulse signal is a discrete signal with various shapes. Compared with ordinary analog signals (such as sine waves), the waveforms are discontinuous on the Y-axis (there are obvious intervals between waveforms), but having a certain periodicity is its characteristic. A pulse signal can be formed by alternately appearing high level signals and low level signals.

[0049] In the case where the AC-DC power supply 101 loses power, for example, when the AC-DC power supply 101 is unplugged from the power strip, the input end of the AC-DC power supply 101 does not receive the corresponding AC power signal from the mains, and the input end of the power-on / off detection module 103 located inside the AC-DC power supply 101 also does not receive this AC power signal. In the case where the power-on / off detection module 103 does not receive the AC power signal, it outputs a first waveform signal to the control module 102.

[0050] When the AC-DC power supply 101 is powered on, for example, when the AC-DC power supply 101 is plugged into the power strip, the input end of the AC-DC power supply 101 receives the corresponding AC power signal from the mains, and the input end of the power-on / off detection module 103 located inside the AC-DC power supply 101 also receives this AC power signal. In the case where the power-on / off detection module 103 receives the AC power signal, it converts the received AC power signal into a second waveform signal and outputs this second square wave signal to the control module 102.

[0051] The preset time range can be determined by the preset time length and the time point when the control module 102 receives the first waveform signal or the second waveform signal.

[0052] For example, the lamp has an operating state and a closed state. When the lamp remains in the closed state for at least a seconds, all the signals received by the control module 102 in the driving power supply system of the lamp are first waveform signals. After the lamp remains in the closed state for at least a seconds and then switches to the operating state, when the control module 102 first detects that the received signal is a second waveform signal, the time point when the control module 102 first receives the second waveform signal can be determined as the starting time point b1 of the preset time range. If the preset time length is b2 seconds, the preset time range can be [b1, b1 + b2]. The aforementioned a and b2 can be any non - negative real numbers set in advance, and the aforementioned b1 can be any time point.

[0053] For another example, when the lamp remains in the operating state for at least c seconds, all the signals received by the control module 102 in the driving power supply system of the lamp are second waveform signals. After the lamp remains in the operating state for at least c seconds and then switches to the closed state, when the control module 102 first detects that the received signal is a first waveform signal, the time point when the control module 102 first receives the first waveform signal can be determined as the starting time point d1 of the preset time range. If the preset time length is d2 seconds, the preset time range can be [d1, d1 + d2]. The aforementioned c and d2 can be any non - negative real numbers set in advance, and the aforementioned d1 can be any time point.

[0054] The preset quantity threshold can be custom - set according to the lamp control requirements.

[0055] The preset waveform signal can be formed by the alternately appearing first waveform signal and second waveform signal. For example, when the first waveform signal is a high - level signal and the second waveform signal is a square - wave signal, the preset waveform signal can be a kind of pulse signal formed by the alternately appearing high - level signal and square - wave signal. The period and pulse width of this pulse signal are determined by the signal parameters of the high - level signal and the square - wave signal.

[0056] For example, when the high - level signal and a square - wave signal appear alternately, the time length of each appearance of the high - level signal is T1, and the period of the square - wave signal is T2. Then the period of the corresponding formed pulse signal is (T1 + T2), and the pulse width is (T1+T2 / 2).

[0057] The control module 102 can determine to send a control signal to the lamp connected to the control module 102 when the number of preset waveform signals received within the preset time range is greater than the preset quantity threshold, and can determine not to send a control signal to the lamp connected to the control module 102 when the number of preset waveform signals received within the preset time range is less than or equal to the preset quantity threshold. The role of the preset time range is to determine that consecutive power - on and power - off switches occur within a short period of time.

[0058] The function of the preset quantity threshold is to set a corresponding control signal based on the number of user operations within a preset time range. Specifically, the preset quantity threshold can prevent the control module 102 from erroneously triggering the sending of a reset control signal to the connected lamp.

[0059] For example, the user can perform lamp turning-on operations and lamp turning-off operations on the wall switch alternately multiple times to reset the lamp. However, in actual applications, there may be some accidental touch situations. For example, when children play near the wall switch and collide with the wall switch multiple times. In this case, by setting the preset quantity threshold, accidental touches can be avoided. If the preset quantity threshold is 10, and the number of preset waveform signals received by the control module 102 within the preset time range is 6, since 6 is less than 10, the control module 102 determines not to send a reset control signal to the connected lamp.

[0060] During specific implementation, the control module 102 may or may not have established a connection with the lamp to be controlled. Whether the control module 102 has established a connection with the lamp does not affect the signal transmission between the power-on / off detection module 103 and the control module 102.

[0061] When there is no connection established between the AC-DC power supply 101 and the lamp to be controlled, that is, when the AC-DC power supply 101 has no load, the control module 102 can also determine the power-on / off state of the AC-DC power supply 101 based on the received voltage signal.

[0062] In actual applications, for example, when the user is unaware that the lamp connected to the AC-DC power supply 101 is in a damaged state, the user performs a lamp turning-on operation on the wall switch and then performs a turning-off operation after finding that the lamp does not light up. After receiving the voltage signal output by the power-off / power-on detection module 103, the control module 102 can send accurate power switch record information to a server that is not a load of the AC-DC power supply 101 through the network. Optionally, the control signal includes at least one of the following: a reset control signal, a scene switching control signal, a brightness control signal, and a color control signal.

[0063] The reset control signal can be used to control the lamp to perform a reset operation. Reset can be understood as a kind of initialization. For example, the lamp is pre-configured with an initialization state, and in this initialization state, the state parameters of the lamp can be represented by x1. The state parameters include but are not limited to: lamp power, lamp brightness, the light-emitting area in a single lamp, the on / off states of each sub-lamp in a lamp including multiple sub-lamps, the lamp emission color, and the lamp emission effect. The above working parameters are merely illustrative and do not impose special limitations on the lamps provided in the embodiments of the present application.

[0064] In practical applications, the current state of the lamp is likely to be different from the initialization state, and the state parameter of the lamp in the current state can be represented by x2. When the user controls the lamp to perform a reset operation through a reset control signal, the state parameter of the lamp can be switched from x2 to x1.

[0065] Taking a magnetic adsorption lamp group as an example of the lamp, the reset is described below. For example, the magnetic adsorption lamp group includes magnetic adsorption lamp 1, magnetic adsorption lamp 2, and magnetic adsorption lamp 3. In the initialization state of the magnetic adsorption lamp group, magnetic adsorption lamp 1 is on, magnetic adsorption lamp 2 is off, and magnetic adsorption lamp 3 is off. However, in the current state, magnetic adsorption lamp 1, magnetic adsorption lamp 2, and magnetic adsorption lamp 3 in the magnetic adsorption lamp group are all on. When the user controls the lamp to perform a reset operation through a reset control signal, magnetic adsorption lamp 1, magnetic adsorption lamp 2, and magnetic adsorption lamp 3 turn on and off simultaneously N times, and then change to magnetic adsorption lamp 1 being on, magnetic adsorption lamp 2 being off, and magnetic adsorption lamp 3 being off. Among them, before changing back to the initialization state, each magnetic adsorption lamp turns on and off N times to enable the user to intuitively feel that the magnetic adsorption lamp group is performing a reset operation.

[0066] It should be emphasized that the reset control signal is a preferred implementation manner of the control signal in the embodiments of the present application. The specific reasons are stated below:

[0067] In the actual application process of the lamp, the on / off operation of the lamp has a high usage frequency. Relatively speaking, the usage frequency of the reset operation is relatively low. For example, when the lamp has some faults, the user can solve the fault by switching the current state of the lamp back to the initialization state through a reset operation. On this basis, by setting a preset time range and a preset number threshold, the triggering method of the reset operation is set to continuously switch the lamp on and off multiple times within a short period. On the one hand, the reuse of the lamp switch can be realized, so that the lamp switch can be used not only to trigger the on / off operation of the lamp but also to trigger the reset operation of the lamp; on the other hand, the on / off operation of the lamp has a high usage frequency and can be achieved by simply touching the lamp switch once, while the usage frequency of the reset operation of the lamp is relatively low and requires continuously switching the lamp on and off multiple times within a short period, so the possibility of mis-triggering is relatively low. Therefore, in practical applications, the triggering method of the reset operation of the lamp is often set to continuously switch the lamp on and off multiple times within a short period.

[0068] Furthermore, when the control module 102 is triggered to send a reset control signal by continuously switching the lamp on and off multiple times within a short period, whether the timing of the control module 102 sending the reset control signal accurately corresponds to the actual user operation will affect the user experience.

[0069] If there is a time delay between the output signal and the input signal of the power-on - power-off detection module 103, it may cause the lamp not to start flashing immediately after the user switches the lamp on and off multiple times in a short period, but to start flashing after a few seconds. This delay may make the user mistakenly think that their operation is ineffective, reducing the user experience.

[0070] The power-off - power-off detection module 103 provided by the embodiments of the present application can receive an alternating current signal. The waveform of the alternating current signal is a sine wave, and the current in the positive and negative directions alternates, so that a large amount of electrical energy will not be stored in energy storage electronic devices such as capacitors in the power-off - power-off detection module 103. Even if the power-off - power-off detection module 103 is powered on and off quickly in a short period, the energy storage electronic devices may only need to release a small amount of electrical energy, which can be ignored. Then, the first waveform signal or the second waveform signal output by the power-off - power-off detection module can reflect the real-time power-on and power-off state of the AC - DC power supply 101, and there is almost no time delay.

[0071] The lamp can be pre-configured with multiple lamp working scenarios. For example, a rest scenario, a workshop scenario, an open-air scenario, etc. The scenario switching control signal can be used to control the lamp to switch among the working modes corresponding to each lamp working scenario. For example, before the control module 102 sends a scenario switching control signal to the lamp, the working mode of the lamp is working mode 1, which corresponds to the rest scenario. When the control module 102 sends a scenario switching control signal carrying the scenario identifier of the workshop scenario to the connected lamp, the working mode of the lamp switches from working mode 1 to working mode 2 corresponding to the workshop scenario.

[0072] The brightness control signal can be used to control the lamp to change its own luminous brightness.

[0073] The color control signal can be used to control the lamp to change its own luminous color.

[0074] The above control signals are only exemplary. In the driving power supply system of the lamp provided by the embodiments of the present application, the control signal sent by the control module to the connected lamp can also be any other control signal for changing at least one state parameter of the current lamp, etc.

[0075] In specific implementation, the driving power supply system of the lamp can be an integrated structure that integrates the DC - AC power supply 101 and the control module 102, or two independent structures of the DC - AC power supply 101 and the control module 102 are connected together.

[0076] Next, each structure included in the driving power supply system of the lamp can be further specifically described.

[0077] Optionally, the drive power supply system of the lamp provided by the embodiments of the present application further includes a lamp switch; the lamp switch is connected to the AC-DC power supply 101 and controls the AC-DC power supply 101 to be turned on or off, so that when the AC-DC power supply 101 is turned on, the AC-DC power supply 101 and the power-on / power-off detection module 103 are powered on simultaneously, and when the AC-DC power supply 101 is turned off, the AC-DC power supply 101 and the power-on / power-off detection module 103 are powered off simultaneously.

[0078] The lamp switch can be a wall switch or other control switches used to control the switching of the lamp between the working state and the off state.

[0079] For example, when the user touches the lamp switch lightly for the first time, the lamp that was originally in the working state is switched to the off state and the lamp goes out. When the user touches the lamp switch lightly for the second time, the lamp in the off state is switched to the working state and the lamp lights up.

[0080] In specific implementation, the user operation on the lamp switch can be obtained, and according to this user operation, the AC-DC power supply 101 connected to the lamp switch is controlled to be turned on or off, so that when the AC-DC power supply 101 is turned on, the AC-DC power supply 101 and the power-on / power-off detection module 103 are powered on simultaneously, and when the AC-DC power supply 101 is turned off, the AC-DC power supply 101 and the power-on / power-off detection module 103 are powered off simultaneously. The user operation can include a lamp turn-on operation and a lamp turn-off operation. The lamp turn-on operation and the lamp turn-off operation can be the same or different. The user operation can be a light touch of the lamp switch, or a long press of the lamp switch for y seconds, where y is a non-zero real number, or other pre-set operations.

[0081] In practical applications, the user operation corresponding to the reset control signal can be that the user alternately performs the lamp turn-on operation and the lamp turn-off operation M times continuously within a preset time length t. M can be a natural number greater than 0 set in advance. For example, the user touches the wall switch 2M times to trigger the corresponding lamp to perform a reset operation.

[0082] When the user resets the lamp through the drive power supply system of the lamp provided by the embodiments of the present application, for example, the user can perform the user operation for resetting the lamp at time point T3. For example, touch the wall switch 10 times continuously, and the lamp can perform the reset operation at time point T4. For example, after the lamp flashes continuously 3 times, the light color changes from the milky white in the current state to the orange yellow corresponding to the initialization state. The time difference between T3 and T4 is less than or equal to the preset time difference threshold.

[0083] In the driving power supply system of the lamp provided by the embodiment of the present application, the power-on / power-off detection module 103 receives an alternating current signal when the direct current-alternating current power supply 101 is powered on, and does not receive an alternating current signal when the direct current-alternating current power supply 101 is powered off. The alternating current signal has the characteristic of periodically changing the direction of voltage / current. Furthermore, when the direction of the alternating current signal input to the power-on / power-off detection module 103 changes, each energy storage electronic device in the driving power supply system switches between the charging state and the discharging state, and the state switching is very frequent. Therefore, it is difficult for each energy storage electronic device to store a large amount of electric energy. Therefore, when the direct current-alternating current power supply 101 is powered off, each energy storage electronic device only releases a very small amount of electric energy, which can be ignored, and the process of releasing electric energy will not cause signal transmission delay of the power-on / power-off detection module 103. Accordingly, when the power-on / power-off detection module 103 receives an alternating current signal, the power-on / power-off detection module 103 can transmit the corresponding second waveform signal to the control module 102 in real time. When the power-on / power-off detection module 103 does not receive an alternating current signal, the power-on / power-off detection module 103 can transmit the corresponding first waveform signal to the control module 102 in real time, shortening the delay time of lamp control and improving the user experience.

[0084] The embodiments of other control signals are similar to those of the reset control signal, and can be referred to the corresponding description part, which will not be elaborated here.

[0085] Optionally, the power-on / power-off detection module 103 includes a first voltage-dividing load 1031, a second voltage-dividing load 1032, a first filter capacitor 1033, a second filter capacitor 1034, a triode 1035, an optocoupler 1036, and a current-limiting load 1037. The input end of the first voltage-dividing load 1031 is used to receive an alternating current signal when the alternating current-direct current power supply 101 is powered on. The output end of the first voltage-dividing load 1031 is respectively connected to the first end of the second voltage-dividing load 1032, the first end of the first filter capacitor 1033, and the input end of the triode 1035. The second voltage-dividing load 1032 is connected in parallel with the first filter capacitor 1033. The second end of the second voltage-dividing load 1032 is grounded. The first output end of the triode 1035 is grounded. The second output end of the triode 1035 is connected to the first input end of the optocoupler 1036. The output end of the alternating current-direct current module 101 is connected to the second input end of the optocoupler 1036. The first output end of the optocoupler 1036 is respectively connected to the first end of the second filter capacitor 1034 and the control module 102. The second output end of the optocoupler 1036 is grounded. The second end of the second filter capacitor 1034 is grounded.

[0086] The optocoupler 1036 is an electro-optical-electrical conversion device that transmits electrical signals through light. It consists of a light-emitting source and a light-receiving device. The light-emitting source and the light-receiving device are assembled in the same sealed housing and isolated from each other by a transparent insulator. The pins of the light-emitting source are the input terminals, and the pins of the light-receiving device are the output terminals. Common light-emitting sources are light-emitting diodes, and light-receiving devices are photodiodes, phototransistors, etc.

[0087] Next, it can be combined with Figure 2 to jointly illustrate a specific structure of the power-on / power-off detection module. Figure 2 The structural schematic diagram of a power-on / power-off detection module provided by one or more embodiments of this specification.

[0088] As Figure 2 shown, the triode 1035 includes an input terminal and two output terminals. For easy distinction, the two output terminals of the triode 1035 can be respectively called the first output terminal of the triode 1035 and the second output terminal of the triode 1035. The first output terminal of the triode 1035 is Figure 2 the end of the triode 1035 marked with an arrow in Figure 2 and the second output terminal of the triode 1035 is the other output terminal of the triode 1035 outside the corresponding first output terminal. The optocoupler 1036 includes two input terminals and two output terminals. For easy distinction, the two input terminals of the optocoupler 1036 can be respectively called the first input terminal of the optocoupler 1036 and the second input terminal of the optocoupler 1036, and the two output terminals of the optocoupler 1036 can be called the first output terminal of the optocoupler 1036 and the second output terminal of the optocoupler 1036. The first input terminal and the second input terminal of the optocoupler 1036 can be two different pins of the light-emitting source, and the light-emitting source can be a light-emitting diode. The first output terminal and the second output terminal of the optocoupler 1036 can be two different pins of the light-receiving device, and the light-receiving device can be electronic devices such as photodiodes and phototransistors.

[0089] The input end of the first voltage-dividing load 1031 is connected to the mains power supply, and can be used to receive an alternating current signal when the AC-DC power supply 101 is powered on, and not receive an AC signal when the AC-DC power supply 101 loses power. The output end of the first voltage-dividing load 1031 is respectively connected to the first end of the second voltage-dividing load 1032, the first end of the first filter capacitor 1033, and the input end of the triode 1035; the second voltage-dividing load 1032 is connected in parallel with the first filter capacitor 1033; the second end of the second voltage-dividing load 1032 is grounded; the second end of the first filter capacitor 1033 is grounded; the first output end of the triode 1035 is grounded; the second output end of the triode 1035 is connected to the first input end of the optocoupler 1036; the output end of the AC-DC module 101 is connected to the second input end of the optocoupler 1036; the first output end of the optocoupler 1036 is respectively connected to the first end of the second filter capacitor 1034 and the control module 102; the second output end of the optocoupler 1036 is grounded; the second end of the second filter capacitor 1034 is grounded.

[0090] Among them, the AC-DC module 101 can be used to supply power to the optocoupler 1036. The first voltage-dividing load 1031 and the second voltage-dividing load 1032 can be used for voltage division, so that the voltage value received at the input end of the triode 1035 is less than the voltage value of the alternating current signal received at the input end of the first voltage-dividing load 1031, and the ratio between the voltage value received at the input end of the triode 1035 and the voltage value of the alternating current signal is determined by the impedances of the first voltage-dividing load 1031 and the second voltage-dividing load 1032.

[0091] Figure 2 The GND (Ground, wire grounding end) in it represents the ground wire. Figure 2 The SGND (Signal Ground, signal grounding end) in it.

[0092] It should be noted that the "first", "second", "third", etc. mentioned in this specification are only for the convenience of distinguishing different electronic devices when stating, and do not have actual meanings, and will not be elaborated below.

[0093] The first voltage-dividing load 1031 can be replaced by a series connection of multiple load electronic devices, and the second voltage-dividing load 1032 can also be replaced by a series connection of multiple load electronic devices. The load electronic devices can be resistors, or other electronic devices with impedance such as capacitors and inductors. The first filter capacitor 1033 is used to filter the interference signals of the power-on / power-off detection module 103 for the mains input, and the second filter capacitor 1034 is used to filter the interference signals in the voltage signals transmitted from the optocoupler 1036 to the control module 102. The triode 1035 is used to conduct or cut off when the voltage values received at the input end of the triode 1035 are different, so as to change the signal sent from the second output end of the triode 1035 to the optocoupler 1036. The current-limiting resistor 1037 is used to limit the magnitude of the current between the AC-DC power supply 101 and the optocoupler 1036. The optocoupler 1036 is used to determine whether the light source emits light according to whether there is a voltage difference between the first input end and the second input end, and then determine the on / off state of the light receiver according to whether the light source emits light, thereby changing the voltage signal sent from the first output end of the optocoupler 1036 to the control module 102.

[0094] Optionally, the power-on / power-off detection module 103 further includes a first rectifying diode 1041, a second rectifying diode 1042, a third voltage-dividing load 1043, and a fourth voltage-dividing load 1044; the first end of the first rectifying diode 1041 is connected to the live wire of the mains; the first end of the second rectifying diode 1042 is connected to the neutral wire of the mains; the second end of the first rectifying diode 1041 is connected to the first end of the third voltage-dividing load 1043; the second end of the second rectifying diode 1042 is connected to the first end of the fourth voltage-dividing load 1044; the second ends of the third voltage-dividing load 1043 and the fourth voltage-dividing load 1044 are respectively connected to the first end of the first voltage-dividing load 1031.

[0095] Next, it can be combined with Figure 3 to jointly illustrate a specific structure of the power-on / power-off detection module. Figure 3 It is a schematic structural diagram of another power-on / power-off detection module provided for one or more embodiments of this specification.

[0096] As Figure 3 shown, the power-on / power-off detection module 103 is similar in structure to the power-on / power-off detection module 103 in Figure 2 , the difference is that in Figure 2 , the live wire and the neutral wire of the mains are not distinguished. When the DC-AC power supply is powered on, the input end of the first voltage-dividing load 1031 is used to receive the corresponding AC signal of the mains; in Figure 3In it, the first end of the first voltage-dividing load 1031 is connected in series with the third voltage-dividing load 1043 and the first rectifying diode 1041 to the live wire of the mains power supply. Moreover, the first end of the first voltage-dividing load 1031 is also connected in series with the fourth voltage-dividing load 1044 and the second rectifying diode 1042 to the neutral wire of the mains power supply. The mains power supply can transmit corresponding alternating current signals to the power-on / power-off detection module 103 through the neutral wire and the live wire respectively.

[0097] As Figure 3 shown, the first end of the first rectifying diode 1041 is connected to the live wire of the mains power supply; the first end of the second rectifying diode 1042 is connected to the neutral wire of the mains power supply; the second end of the first rectifying diode 1041 is connected to the first end of the third voltage-dividing load 1043; the second end of the second rectifying diode 1042 is connected to the first end of the fourth voltage-dividing load 1044; the second ends of the third voltage-dividing load 1043 and the fourth voltage-dividing load 1044 are respectively connected to the first end of the first voltage-dividing load 1031; the second end of the first voltage-dividing load 1031 is respectively connected to the first end of the second voltage-dividing load 1032, the first end of the first filter capacitor 1033, and the input end of the triode 1035; the second voltage-dividing load 1032 is connected in parallel with the first filter capacitor 1033; the second end of the second voltage-dividing load 1032 is grounded; the second end of the first filter capacitor 1033 is grounded; the first output end of the triode 1035 is grounded; the second output end of the triode 1035 is connected to the first input end of the optocoupler 1036; the output end of the AC-DC module 101 is connected to the second input end of the optocoupler 1036; the first output end of the optocoupler 1036 is respectively connected to the first end of the second filter capacitor 1034 and the control module 102; the second output end of the optocoupler 1036 is grounded; the second end of the second filter capacitor 1034 is grounded.

[0098] Figure 3 The GND (Ground, wire grounding end) in Figure 3 represents the ground wire. The SGND (Signal Ground, signal grounding end) in

[0099] Optionally, the first waveform signal is a high-level signal; the second waveform signal is a square wave signal; when the AC-DC power supply 101 is powered on, the triode 1035 conducts and disconnects alternately according to a preset time period, and the first output end of the optocoupler 1036 outputs a square wave signal to the control module 102; when the AC-DC power supply 101 is powered off, the triode 1035 disconnects, and the first output end of the optocoupler 1036 outputs a high-level signal to the control module 102.

[0100] When the AC-DC power supply 101 is powered on, the triode 1035 conducts and disconnects alternately according to a preset time period. When the triode 1035 conducts, a low-level signal is output at the second output terminal of the triode 1035, and the low-level signal can be represented by "0"; when the triode 1035 disconnects, a high-level signal is output at the second output terminal of the triode 1035, and the high-level signal can be represented by "1". Also, the output terminal of the AC-DC module 101 is connected to the second input terminal of the optocoupler 1036. When the AC-DC power supply 101 is powered on, the AC-DC module 101 can continuously transmit a DC voltage signal with a fixed value to the second input terminal of the optocoupler 1036.

[0101] Furthermore, when the triode 1035 conducts, the light-emitting source in the optocoupler 1036 emits light, and the light-receiving device receives the light energy and converts it into electrical energy, so that conduction occurs between the first output terminal and the second output terminal of the optocoupler 1036. Then, the second output terminal of the optocoupler 1036 is grounded, and the second output terminal of the optocoupler 1036 transmits a low-level signal "0" to the control module 102.

[0102] On the contrary, when the triode 1035 disconnects, the light-emitting source in the optocoupler 1036 does not emit light, and the light-receiving device does not work, so that the connection between the first output terminal and the second output terminal of the optocoupler 1036 is disconnected. Then, the second output terminal of the optocoupler 1036 is not grounded, and the second output terminal of the optocoupler 1036 transmits a high-level signal "1" to the control module 102.

[0103] Therefore, when the triode 1035 conducts and disconnects alternately according to a preset time period, the voltage signal transmitted by the second output terminal of the optocoupler 1036 to the control module 102 can be represented by "1010101010". That is, when it is detected that the mains power is not lost, the second output terminal of the optocoupler 1036 transmits a square wave signal to the control module 102.

[0104] When the AC-DC power supply 101 loses power, the triode 1035 disconnects. Since the AC-DC power supply 101 loses power, the AC-DC module 101 does not transmit any DC voltage signal to the second input terminal of the optocoupler 1036. Then, a high-level signal "1" is output at the second output terminal of the triode 103, and the second input terminal of the optocoupler 1036 can be approximately regarded as a low-level signal "0". Since the light-emitting diode in the optocoupler 1036 has a one-way conductivity, the light-emitting diode as the light-emitting source does not emit light, the light-receiving device does not work, the light-receiving device disconnects, and the first output terminal of the optocoupler 1036 outputs a high-level signal to the control module 102.

[0105] Optionally, when the AC-DC power supply 101 is powered on and the triode 1035 is turned on, the second output terminal of the triode 1035 outputs a low level. There is a voltage difference between the first input terminal and the second input terminal of the optocoupler 1036. The first output terminal of the optocoupler 1036 is connected to the second output terminal of the optocoupler 1036, and the first output terminal of the optocoupler 1036 outputs a low level signal to the control module 102. When the AC-DC power supply 101 is powered on and the triode 1035 is turned off, the second output terminal of the triode 1035 outputs a high level signal. There is no voltage difference between the first input terminal and the second input terminal of the optocoupler 1036. The first output terminal of the optocoupler 1036 is disconnected from the second output terminal of the optocoupler 1036, and the first output terminal of the optocoupler 1036 outputs a high level signal to the control module 102.

[0106] When the AC-DC power supply 101 is powered on and the triode 1035 is turned on, the second output terminal of the triode 1035 outputs a low level. The first input terminal and the second input terminal of the optocoupler 1036 can be two pins of a light-emitting diode, so there is a voltage difference between them. And the voltage value of the DC voltage provided by the AC-DC power supply 101 received by the second input terminal of the optocoupler 1036 is greater than the low level signal "0" output by the second output terminal of the triode 1035 received by the first input terminal of the optocoupler 1036. Then the light-emitting diode is turned on and emits light. The first output terminal and the second output terminal of the optocoupler 1036 can be two pins of a light-receiving device. The light-receiving device can be connected and turned on when the amount of light energy received reaches a preset threshold. Therefore, the first output terminal of the optocoupler 1036 is connected to the second output terminal of the optocoupler 1036. The first output terminal of the optocoupler 1036 can be regarded as grounded. Then the first output terminal of the optocoupler 1036 outputs a low level signal "0" to the control module 102.

[0107] Due to the same or similar technical concept, when the AC-DC power supply 101 is powered on and the triode 1035 is turned off, the second output terminal of the triode 1035 outputs a high level signal "1", making there be no voltage difference between the first input terminal and the second input terminal of the optocoupler 1036. The first output terminal of the optocoupler 1036 is disconnected from the second output terminal of the optocoupler 1036, and the first output terminal of the optocoupler 1036 outputs a high level signal "1" to the control module 102.

[0108] Figure 4 It is a schematic diagram of a voltage signal for characterizing the detection result of the power-on / power-off detection module provided by one or more embodiments of this specification. Specifically,Figure 4 The voltage value of the voltage signal output by the power-on / off detection module 103 to the control module 102 is shown.

[0109] As Figure 4 shown, before the time point t1, the first output terminal of the optocoupler 1036 outputs a low-level signal "0"; from the time point t1 to the time point t4, the first output terminal of the optocoupler 1036 outputs a high-level signal "1"; from the time point t4 to the time point t5, the first output terminal of the optocoupler 1036 outputs a low-level signal "0"; from the time point t5 to the time point t8, the first output terminal of the optocoupler 1036 outputs a high-level signal "1"; from the time point t8 to the time point t9, the first output terminal of the optocoupler 1036 outputs a low-level signal "0"; from the time point t9 to the time point t12, the first output terminal of the optocoupler 1036 outputs a high-level signal "1"; after the time point t12, the first output terminal of the optocoupler 1036 outputs a low-level signal "0".

[0110] From Figure 4 it can be seen that the "01" corresponding to t0 - t2 is a square wave signal, and the "11" corresponding to t2 - t4 are two high-level signals. Then the entire Figure 4 shown voltage signal "011101110111" can be regarded as the alternating appearance of a square wave signal and two high-level signals. According to the Figure 4 shown voltage signal, the number of power-off times can be reflected. For example, from 0 to t12, the power is off 3 times in total.

[0111] Next, in combination with Figure 4 , it will be specifically described how the control module 102 determines to send a control signal to the lamp connected to the control module 102 when the number of preset waveform signals received within a preset time range is greater than a preset number threshold, and determines not to send a control signal to the lamp connected to the control module 102 when the number of preset waveform signals received within a preset time range is less than or equal to the preset number threshold.

[0112] For example: The voltage signal "011011011011" includes four pulse signals, and each pulse signal is formed by a sequentially connected square wave signal and a high-level signal.

[0113] A pulse signal is a discrete signal continuously emitted at a certain voltage amplitude and a certain time interval. Using "0" to represent a low-level signal and "1" to represent a high-level signal, the pulse signal can be "011011011011", etc.

[0114] For example, a series of square wave signals can be represented by "0101010101", where "0" represents a low-level signal and "1" represents a high-level signal. A series of high-level signals can be represented by "1111111".

[0115] Exemplarily, within the first time period, the voltage signal received by the control module 102 can be represented by "01010101010101", and thus the number of preset waveform signals received within the first time period is 0; within the second time period, the voltage signal received by the control module 102 can be represented by "11111111111111", and thus the number of preset waveform signals received within the second time period is 0; within the third time period, the voltage signal received by the control module 102 can be represented by "011101110111011101110111", and thus the number of preset waveform signals received within the third time period is 6.

[0116] Referring to Figure 4 as shown, the voltage signal corresponding to the time period t4 - t8 can be regarded as a preset waveform signal, and thus Figure 4 a total of 3 preset waveform signals are shown.

[0117] Next, in combination with Figure 5 the specific structure of the control module 102 will be described. Figure 5 It is a schematic structural diagram of a control module provided by one or more embodiments of this specification.

[0118] As Figure 5 shown, the control module 102 includes a control chip 1021, a third filter capacitor 1022, and a fourth filter capacitor 1023; wherein: the power supply pin 1024 of the control chip 1021 is respectively connected to the first end of the third filter capacitor 1022, the first end of the fourth filter capacitor 1023, and the AC - DC power supply 101; the third filter capacitor 1022 and the fourth filter capacitor 1023 are connected in parallel; the second end of the third filter capacitor 1022 is grounded; the second end of the fourth filter capacitor 1023 is grounded.

[0119] The control chip 1031 can be an MCU (Microcontroller Unit), which appropriately reduces the frequency and specifications of the CPU (Central Process Unit), and integrates memory, counter (Timer), and multiple peripheral interfaces, and even drive circuits on a single chip to form a chip-level computer for different combinations of control in different application scenarios.

[0120] As Figure 5As described above, the control module 102 includes at least a power supply pin 1024 and a receiving pin 1025. The receiving pin 1025 is connected to the power-on / off detection module 103, and the receiving pin 1025 is used to receive a first square wave signal or a second square wave signal.

[0121] Figure 5 In ,

[0121] , and Figure 5 , GND (Ground, the ground terminal of the wire) represents the ground wire.

[0122] The control module 102 may further include a transmitting pin connected to the lamp to be controlled and used for transmitting a control signal.

[0123] The third filter capacitor 1022 and the fourth filter capacitor 1023 are used to filter out the interference signals transmitted from the AC-DC power supply 101 into the control module 102. It should be noted that the third filter capacitor 1022 and the fourth filter capacitor 1023 have no direct relationship with the first filter capacitor 1033 and the second filter capacitor 1034 mentioned above. Their functions are similar, but the third filter capacitor 1022 and the fourth filter capacitor 1023 are electronic devices included in the control module 102, while the first filter capacitor 1033 and the second filter capacitor 1034 are electronic devices included in the power-on / off detection module 103.

[0124] In the embodiment as Figure 1 shown, the driving power supply system of the lamp includes an AC-DC power supply and a control module; the AC-DC power supply includes a power-on / off detection module; wherein: the AC-DC power supply is connected to the control module and used to supply power to the control module; the power-on / off detection module is used to output a first waveform signal to the control module when the AC-DC power supply loses power, and is used to convert the received AC signal into a second waveform signal and send it to the control module when the AC-DC power supply gets power; the control module is used to determine whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold. The preset waveform signal is formed by alternately appearing first waveform signals and second waveform signals. In this way, the detection result of the power-on / off state of the AC-DC power supply is transmitted to the control module in real time, shortening the delay time of lamp control and improving the user experience.

[0125] An embodiment of a control method for a lamp provided in this specification is as follows:

[0126] In the above embodiment, a driving power supply system for a lamp is provided. For the same technical concept, a control method for a lamp is also provided. The following is described in conjunction with Figure 6 for illustration.

[0127] Figure 6 is a schematic flowchart of a control method for a lamp provided in one or more embodiments of this specification.

[0128] Since the method embodiments correspond to the system embodiments, they are described relatively simply. For the relevant parts, please refer to the corresponding descriptions of the system embodiments provided above. The system embodiments described below are merely illustrative.

[0129] This embodiment provides a control method for a lamp, which is applied to the driving power supply system of a lamp as described in any of the foregoing driving power supply system embodiments of the lamp. The control method for the lamp includes:

[0130] Step 602, an AC-DC power supply supplies power to the control module.

[0131] Step 604, the power-on / power-off detection module outputs a first waveform signal to the control module when the AC-DC power supply loses power, and converts the received AC signal into a second waveform signal and sends it to the control module when the AC-DC power supply is powered on.

[0132] Step 606, the control module determines whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signal is formed by alternately appearing first waveform signals and second waveform signals.

[0133] In the embodiment as Figure 6 shown, the AC-DC power supply supplies power to the control module; the power-on / power-off detection module outputs a first waveform signal to the control module when the AC-DC power supply loses power, and converts the received AC signal into a second waveform signal and sends it to the control module when the AC-DC power supply is powered on; the control module determines whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signal is formed by alternately appearing first waveform signals and second waveform signals.. Through this technical solution, the detection result of the power-on / power-off state of the AC-DC power supply can be transmitted to the control module in real time, shortening the delay time of lamp control and improving the user experience.

[0134] An embodiment of an electronic device provided in this specification is as follows:

[0135] Corresponding to the above-described control method for a lamp, based on the same technical concept, one or more embodiments of this specification also provide an electronic device, which is used to execute the above-provided control method for a lamp, Figure 7 which is a schematic structural diagram of an electronic device provided in one or more embodiments of this specification.

[0136] An electronic device provided in this embodiment includes:

[0137] The electronic device may include a processor, a memory, and programs or instructions stored on the memory and executable on the processor. When the programs or instructions are executed by the processor, the steps of the aforementioned control method for the lamp are implemented.

[0138] As Figure 7 shown, the electronic device may vary greatly due to different configurations or performances, and may include one or more processors 701 and a memory 702. One or more stored application programs or data may be stored in the memory 702. Among them, the memory 702 may be short-term storage or persistent storage. The application programs stored in the memory 702 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in the electronic device. Further, the processor 701 may be configured to communicate with the memory 702 and execute a series of computer-executable instructions in the memory 702 on the electronic device. The electronic device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input / output interfaces 705, one or more keyboards 706, etc.

[0139] In a specific embodiment, the electronic device includes a memory and one or more programs. One or more of the programs are stored in the memory, and one or more of the programs may include one or more modules. Each module may include a series of computer-executable instructions for the electronic device and is configured to be executed by one or more processors. The one or more programs include the following computer-executable instructions for:

[0140] The AC-DC power supply supplies power to the control module;

[0141] The power-on / power-off detection module outputs a first waveform signal to the control module when the AC-DC power supply loses power, and converts the received AC signal into a second waveform signal and sends it to the control module when the AC-DC power supply is powered on;

[0142] The control module determines whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signal is formed by alternately appearing first waveform signals and second waveform signals.

[0143] An embodiment of a storage medium provided in this specification is as follows:

[0144] Corresponding to the above-described control method for a lamp, based on the same technical concept, one or more embodiments of this specification also provide a readable storage medium.

[0145] The program or instructions are stored on the readable storage medium provided in this embodiment, and when the program or instructions are executed by the processor, the following processes are implemented:

[0146] The AC-DC power supply supplies power to the control module;

[0147] The power-on and power-off detection module outputs a first waveform signal to the control module when the AC-DC power supply loses power, and converts the received AC signal into a second waveform signal and sends it to the control module when the AC-DC power supply is powered on;

[0148] The control module determines whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signal is formed by alternately appearing first waveform signals and second waveform signals.

[0149] It should be noted that the embodiment of the storage medium in this specification and the embodiment of the control method of the lamp in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method described above, and the repeated parts will not be elaborated.

[0150] An embodiment of a lamp provided in this specification is as follows:

[0151] Corresponding to the drive power supply system of a lamp described above, based on the same technical concept, one or more embodiments of this specification also provide a lamp. Figure 8 It is a schematic structural diagram of a lamp provided by one or more embodiments of this specification.

[0152] A lamp 800 provided in this embodiment includes: a drive power supply system 801 of a lamp provided by any one of the foregoing embodiments of the drive power supply system of a lamp.

[0153] The lamp provided by the embodiment of the present invention can implement each process implemented by the foregoing embodiment of the drive power supply system of the lamp and the embodiment of the control method of the lamp. To avoid repetition, it will not be elaborated here.

[0154] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain implementations, multitasking and parallel processing are also possible or may be advantageous.

[0155] In the 1930s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements to method flows). However, with the development of technology, many method flow improvements today can be regarded as direct improvements to hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement to a method flow cannot be implemented using a hardware entity module. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logical function is determined by the user programming the device. Designers can program themselves to "integrate" a digital system onto a single PLD, without having to ask a chip manufacturer to design and fabricate a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation also has to be written in a specific programming language, which is called a Hardware Description Language (HDL), and there is not just one type of HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be aware that by simply performing a little logical programming on the method flow using the above-mentioned several hardware description languages and programming it into the integrated circuit, it is easy to obtain the hardware circuit that implements the logical method flow.

[0156] The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of the controller include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program code, it is entirely possible to implement the same function by logically programming the method steps so that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded microcontrollers, etc. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be regarded as the structures within the hardware component. Or even, the devices for implementing various functions can be regarded as either software modules for implementing the method or structures within the hardware component.

[0157] The systems, devices, modules, or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0158] For the convenience of description, when describing the above devices, they are described separately as various units according to their functions. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0159] Those skilled in the art should understand that one or more embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of this specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.

[0160] This specification is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It should be understood that each flow and / or block in the flowchart and / or block diagram, and combinations of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable power-off detection devices to produce a machine, such that the instructions executed by the processors of the computer or other programmable power-off detection devices produce means for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.

[0161] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable power-off detection device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce a manufacture including instruction means that implement the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.

[0162] These computer program instructions can also be loaded onto a computer or other programmable power-off detection device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.

[0163] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0164] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of computer-readable media.

[0165] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0166] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0167] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0168] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0169] The above are only examples of this document and are not intended to limit this document. For those skilled in the art, various changes and modifications can be made to this document. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this document shall be included within the scope of the claims of this document.

Claims

1. A driving power supply system for a lighting fixture, characterized in that, it includes an AC-DC power supply and a control module; the AC-DC power supply includes a power-on / power-off detection module; wherein: the AC-DC power supply is connected to the control module and is used to supply power to the control module; the power-on / power-off detection module is used to output a first waveform signal to the control module when the AC-DC power supply loses power, and is used to convert the received AC signal into a second waveform signal and send it to the control module when the AC-DC power supply is powered on; the control module is used to determine whether to send a control signal to the lighting fixture connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signal is formed by the alternately appearing first waveform signal and the second waveform signal; the system further includes a lighting fixture switch; the lighting fixture switch is connected to the AC-DC power supply and controls the AC-DC power supply to be turned on or off, so that when the AC-DC power supply is turned on, the AC-DC power supply and the power-on / power-off detection module are powered on simultaneously, and when the AC-DC power supply is turned off, the AC-DC power supply and the power-on / power-off detection module lose power simultaneously.

2. The system according to claim 1, characterized in that, the power-on / power-off detection module includes a first voltage-dividing load, a second voltage-dividing load, a first filter capacitor, a second filter capacitor, a triode, an optocoupler, and a current-limiting load; wherein, the input end of the first voltage-dividing load is used to receive the AC signal when the AC-DC power supply is powered on; the output end of the first voltage-dividing load is respectively connected to the first end of the second voltage-dividing load, the first end of the first filter capacitor, and the input end of the triode; the second voltage-dividing load is connected in parallel with the first filter capacitor; the second end of the second voltage-dividing load is grounded; the first output end of the triode is grounded; the second output end of the triode is connected to the first input end of the optocoupler; the output end of the AC-DC power supply is connected to the second input end of the optocoupler; the first output end of the optocoupler is respectively connected to the first end of the second filter capacitor and the control module; the second output end of the optocoupler is grounded; the second end of the second filter capacitor is grounded.

3. The system according to claim 2, characterized in that, the power-on / power-off detection module further includes a first rectifier diode, a second rectifier diode, a third voltage-dividing load, and a fourth voltage-dividing load; the first end of the first rectifier diode is connected to the live wire of the mains; the first end of the second rectifier diode is connected to the neutral wire of the mains; the second end of the first rectifier diode is connected to the first end of the third voltage-dividing load; the second end of the second rectifier diode is connected to the first end of the fourth voltage-dividing load; the second ends of the third voltage-dividing load and the fourth voltage-dividing load are respectively connected to the first end of the first voltage-dividing load.

4. The system according to claim 2, characterized in that, The first waveform signal is a high-level signal; the second waveform signal is a square wave signal; When the AC-DC power supply is powered on, the triode conducts and disconnects alternately according to a preset time period, and the first output terminal of the optocoupler outputs the square wave signal to the control module; When the AC-DC power supply loses power, the triode disconnects, and the first output terminal of the optocoupler outputs the high-level signal to the control module.

5. The system according to claim 4, wherein, When the AC-DC power supply is powered on and the triode conducts, the second output terminal of the triode outputs a low level, there is a voltage difference between the first input terminal and the second input terminal of the optocoupler, the first output terminal of the optocoupler is connected to the second output terminal of the optocoupler, and the first output terminal of the optocoupler outputs a low-level signal to the control module; When the AC-DC power supply is powered on and the triode disconnects, the second output terminal of the triode outputs the high-level signal, there is no voltage difference between the first input terminal and the second input terminal of the optocoupler, the first output terminal of the optocoupler is disconnected from the second output terminal of the optocoupler, and the first output terminal of the optocoupler outputs the high-level signal to the control module.

6. The system according to any one of claims 1-5, wherein, The control signal includes at least one of the following: a reset control signal, a scene switching control signal, a brightness control signal, and a color control signal.

7. A control method for a lamp, wherein, Applied to the drive power supply system of the lamp according to any one of claims 1-6, including: The AC-DC power supply supplies power to the control module; The power-on / power-off detection module outputs a first waveform signal to the control module when the AC-DC power supply loses power, and converts the received AC signal into a second waveform signal and sends it to the control module when the AC-DC power supply is powered on; The control module determines whether to send a control signal to the lamp connected to the control module according to whether the number of preset waveform signals received within a preset time range is greater than or equal to a preset number threshold; the preset waveform signal is formed by the alternately appearing first waveform signal and the second waveform signal.

8. An electronic device, wherein, It includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the control method for the lamp according to claim 7 are implemented.

9. A lamp, wherein, It includes the drive power supply system of the lamp according to any one of claims 1-6.

Citation Information

Patent Citations

  • LED driving chip, LED driving power supply system capable of adjusting color temperature, and LED lamp

    CN106341925A