Single hot switch charge and discharge method, system, and apparatus
Patent Information
- Application Number
- CN202211356173.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-01
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2042-11-01
AI Technical Summary
大多无线控制电路的供电有最小输入电压要求,当输入电压小于其要求的最小电压时,其电路将无法正常工作
[0017]在本发明实施例中,通过获取单火线开关的当前上电状态;基于上述当前上电状态,获取目标充电电流,并以上述目标充电电流对上述单火线开关对应的蓄电装置进行充电;获取充电状态下上述蓄电装置的当前电压;将上述蓄电装置的上述当前电压调整至预设电压范围,并以调整后的电压作为放电电压进行放电,达到了根据单火线的当前上电状态控制蓄电装置的充电电流,同时对放电电压进行实时调控,确保单火线开关充放电的稳定性的目的,从而实现了有避免单火线开关在给蓄电装置充电时产生鬼火现象,提升蓄电装置充放电稳定的技术效果,进而解决了相关技术中单火线开关充放电方法存在的单火线开关在给蓄电装置充电时会产生鬼火现象,充放电稳定相差的技术问题。
Smart Images

Figure CN115580001B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of single-wire switch control technology, and more specifically, to a charging and discharging method, system, and device for a single-wire switch. Background Technology
[0002] With the development of the Internet of Things (IoT), smart single-wire devices such as single-wire switches are becoming more widely used. Because single-wire switches draw power from the neutral wire of the mains power supply by connecting the device in series with the load, the current consumed by a traditional smart single-wire switch flows through the light fixture at the load end, causing ghosting (or flickering) in the light fixture, affecting user experience and the lifespan of the light fixture. To solve the power supply problem of single-wire switches, energy storage devices, such as supercapacitors, lithium-ion capacitors, and rechargeable batteries, can be added inside the single-wire switch. For single-wire switches with added energy storage devices, the following two main technical challenges exist:
[0003] Firstly, there's the issue of charging management for energy storage devices. Excessive or unstable charging current from these devices can still cause ghosting (or flickering) at the load end of a single-wire switch. Secondly, there's the problem of energy storage devices supplying power to IoT wireless control circuits such as Wi-Fi and Bluetooth under low-voltage conditions. Most wireless control circuits have minimum input voltage requirements; if the input voltage is lower than this minimum, the circuit will malfunction. Furthermore, when energy storage devices such as supercapacitors, lithium-ion capacitors, and lithium batteries are stored unused, their voltage may drop below the wireless circuit's power supply voltage requirement due to self-discharge, rendering the single-wire switch unusable.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a single-wire switch charging and discharging method, system, and apparatus to at least solve the technical problems in related technologies where the single-wire switch generates ghosting when charging a storage device, and the charging and discharging stability is inconsistent.
[0006] According to one aspect of the present invention, a charging and discharging method for a single-wire switch is provided, comprising: acquiring the current power-on state of the single-wire switch; acquiring a target charging current based on the current power-on state, and charging an energy storage device corresponding to the single-wire switch with the target charging current; acquiring the current voltage of the energy storage device under the charging state; adjusting the current voltage of the energy storage device to a preset voltage range, and discharging with the adjusted voltage as the discharge voltage.
[0007] Optionally, the above-mentioned method of obtaining a target charging current based on the current power-on state and charging the energy storage device corresponding to the single-wire switch using the target charging current includes: when the current power-on state is an off-power state, determining the target charging current as a first constant current and charging the energy storage device using the first constant current; when the current power-on state is a power-on state, determining the target charging current as a second constant current and charging the energy storage device using the second constant current, wherein the second constant current is greater than the first constant current.
[0008] Optionally, adjusting the current voltage of the energy storage device to a preset voltage range and discharging using the adjusted voltage as the discharge voltage includes: when the current voltage is less than the lower limit of the preset voltage range, increasing the current voltage to the lower limit and discharging using the lower limit as the discharge voltage.
[0009] Optionally, the above method further includes: when the current voltage is greater than the upper limit of the preset voltage range, reducing the current voltage to the upper limit of the voltage range, and discharging using the upper limit of the voltage range as the discharge voltage.
[0010] According to another aspect of the present invention, a single-wire switch charging and discharging control system is also provided, comprising: a single-wire power supply circuit module, a charging control circuit module, and a discharging control circuit module, wherein the single-wire power supply circuit module is used to acquire the current power-on state of the single-wire switch; the charging control circuit module is used to acquire a target charging current based on the current power-on state, and use the target charging current to charge the energy storage device corresponding to the single-wire switch; the discharging control circuit module is used to acquire the current voltage of the energy storage device under the charging state, adjust the current voltage of the energy storage device to a preset voltage range, and use the adjusted voltage as the discharging voltage for discharging.
[0011] Optionally, the charging control circuit module includes: a constant current charging circuit module, used to determine the target charging current as a first constant current when the current power-on state is an unpowered state, and to charge the energy storage device with the first constant current; and a fast charging control circuit module, used to determine the target charging current as a second constant current when the current power-on state is a powered-on state, and to control the constant current charging circuit module to charge the energy storage device with the second constant current.
[0012] Optionally, the second constant current is greater than the first constant current, and the first constant current is less than a preset constant current threshold.
[0013] Optionally, the discharge control circuit module includes: a boost circuit module, used to boost the current voltage to the lower voltage limit when the current voltage is less than the lower voltage limit of the preset voltage range, and use the lower voltage limit as the discharge voltage for discharge; and a buck circuit module, used to reduce the current voltage to the upper voltage limit when the current voltage is greater than the upper voltage limit of the preset voltage range, and use the upper voltage limit as the discharge voltage for discharge.
[0014] Optionally, the constant current charging circuit module includes: a first diode, a first resistor, a second resistor, a third resistor, a first transistor, and a second diode. The cathode of the first diode is connected to one end of the first resistor and one end of the second resistor, respectively. The other end of the first resistor is connected to the emitter of the first transistor. The other end of the second resistor is connected to the base of the first transistor. The base of the first transistor is also connected to one end of the third resistor. The collector of the first transistor is connected to the anode of the second diode. The cathode of the second diode is connected to the energy storage device.
[0015] Optionally, the fast charging control circuit module includes: a fourth resistor, a third diode, a metal-oxide-semiconductor (MOS) transistor, a fifth resistor, and a sixth resistor, wherein one end of the fifth resistor is connected to the anode of the first diode; the other end of the fifth resistor is connected to the gate of the MOS transistor and one end of the sixth resistor; the other end of the sixth resistor is connected to the source of the MOS transistor, the anode of the third diode, and one end of the fourth resistor, all of which are grounded; the drain of the MOS transistor, the cathode of the third diode, and the other end of the fourth resistor are all connected together and connected to the other end of the third resistor.
[0016] According to another aspect of the present invention, a single-wire switch charging and discharging device is also provided, comprising: a first acquisition module for acquiring the current power-on state of the single-wire switch; a charging module for acquiring a target charging current based on the current power-on state and charging the energy storage device corresponding to the single-wire switch using the target charging current; a second acquisition module for acquiring the current voltage of the energy storage device under the charging state; and a discharging module for adjusting the current voltage of the energy storage device to a preset voltage range and discharging using the adjusted voltage as the discharging voltage.
[0017] In this embodiment of the invention, the current power-on state of the single-wire switch is obtained; based on the current power-on state, a target charging current is obtained, and the energy storage device corresponding to the single-wire switch is charged with the target charging current; the current voltage of the energy storage device is obtained during the charging state; the current voltage of the energy storage device is adjusted to a preset voltage range, and the adjusted voltage is used as the discharge voltage for discharging. This achieves the purpose of controlling the charging current of the energy storage device according to the current power-on state of the single wire, while simultaneously regulating the discharge voltage in real time, ensuring the stability of the charging and discharging of the single-wire switch. This achieves the technical effect of avoiding the ghosting phenomenon when the single-wire switch charges the energy storage device, improving the charging and discharging stability of the energy storage device, and thus solving the technical problem in the related art where the single-wire switch charging and discharging method generates the ghosting phenomenon when charging the energy storage device, resulting in poor charging and discharging stability. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0019] Figure 1 This is a flowchart of a single-wire switch charging and discharging method according to an embodiment of the present invention;
[0020] Figure 2 This is a schematic diagram of a single-wire switch charging and discharging system according to an embodiment of the present invention;
[0021] Figure 3 This is a schematic diagram of an optional single-wire switch charging and discharging system according to an embodiment of the present invention;
[0022] Figure 4 This is a schematic diagram of an optional charging control circuit according to an embodiment of the present invention;
[0023] Figure 5 This is a schematic diagram of an optional voltage detection circuit according to an embodiment of the present invention;
[0024] Figure 6 This is a schematic diagram of an optional voltage control circuit according to an embodiment of the present invention;
[0025] Figure 7 This is a schematic diagram of an optional single-wire switch charging and discharging device according to an embodiment of the present invention. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] First, to facilitate understanding of the embodiments of the present invention, some terms or nouns involved in the present invention will be explained below:
[0029] Supercapacitors, also known as farad capacitors, utilize a double-layer structure composed of porous activated carbon electrodes and electrolytes to achieve ultra-large capacitance. They are characterized by large capacity, high power density, short charging time, long lifespan, good temperature characteristics, energy saving, and environmental friendliness.
[0030] A single-wire switch is a switch whose input lines consist of only one live wire, while the other neutral wire is directly connected to the load terminal of the switch without passing through it. A single-wire switch controls the on / off state of the load terminal by controlling the flow of this single live wire.
[0031] Will-o'-the-wisp: The phenomenon where a light fixture remains dimly lit or flickers even when the lights are off.
[0032] PNP transistor: A transistor consisting of two N-type semiconductors sandwiching a P-type semiconductor.
[0033] According to an embodiment of the present invention, a method for charging and discharging a single live wire switch is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0034] Figure 1 This is a flowchart of a single-wire switch charging and discharging method according to an embodiment of the present invention, as follows: Figure 1 As shown, the method includes the following steps:
[0035] Step S102: Obtain the current power-on status of the single-wire switch;
[0036] Step S104: Based on the current power-on state, obtain the target charging current and charge the energy storage device corresponding to the single live wire switch with the target charging current.
[0037] Step S106: Obtain the current voltage of the above-mentioned energy storage device during the charging state;
[0038] Step S108: Adjust the current voltage of the above-mentioned energy storage device to a preset voltage range, and use the adjusted voltage as the discharge voltage to discharge.
[0039] Through the above steps, the charging current of the energy storage device can be controlled according to the current power-on state of the single live wire, and the discharge voltage can be adjusted in real time to ensure the stability of the single live wire switch charging and discharging. This achieves the technical effect of avoiding the ghosting phenomenon when the single live wire switch charges the energy storage device and improving the charging and discharging stability of the energy storage device. In turn, it solves the technical problem of the ghosting phenomenon and poor charging and discharging stability of the single live wire switch charging and discharging method in related technologies.
[0040] Optionally, the above-mentioned current power-on state can be either a power-off state or a power-on state. Taking a single-wire switch used for lighting control as an example, when the light is on, the single-wire switch is closed and in a power-on state; when the light is off, the single-wire switch is open and in a power-on state.
[0041] In this embodiment of the invention, the target charging current for charging the energy storage device is determined based on the current power-on state of the single-wire switch. This allows the charging current of the single-wire switch to be adjusted in real time according to the current power-on state, ensuring the operational stability of the single-wire switch while improving the charging efficiency of the energy storage device. For example, when the current power-on state is off, charging the energy storage device with a smaller current maintains a constant current charging of the built-in energy storage device at an ultra-low current, and the charging current ripple is very small, completely solving the ghosting problem that easily occurs in traditional single-wire switches. When the current power-on state is off, the charging current to the energy storage device is increased, thereby quickly fully charging the energy storage device. Since the current flowing through the live wire at the load end of the single-wire switch is large when powered on, it can meet the fast charging power demand without causing the lamp to flicker. In addition, this embodiment of the invention monitors the current voltage of the energy storage device in real time and adjusts the discharge voltage of the energy storage device in real time according to the current voltage, thereby improving the stability of the discharge voltage of the energy storage device and effectively meeting the voltage requirements of related circuits.
[0042] In an optional embodiment, the above-mentioned method of obtaining a target charging current based on the current power-on state and using the target charging current to charge the energy storage device corresponding to the single live wire switch includes:
[0043] When the current power-on state is the non-power-on state, the target charging current is determined to be the first constant current, and the energy storage device is charged with the first constant current.
[0044] When the current power-on state is the power-on state, the target charging current is determined to be the second constant current, and the energy storage device is charged using the second constant current.
[0045] Optionally, the second constant current is greater than the first constant current, and the first constant current is less than a preset constant current threshold. That is, when the current power-on state of the single-wire switch is in the non-power-on state, an ultra-small current (i.e. the first constant current) less than the preset constant current threshold can be used to charge the energy storage device.
[0046] Optionally, different current power-on states correspond to different charging modes for the energy storage device. For example, when the current power-on state is off, a conventional charging mode is used to charge the energy storage device with a first constant current. When the current power-on state is off, a fast charging mode is used to charge the energy storage device with a second constant current greater than the first constant current.
[0047] It should be noted that, in this embodiment of the invention, when the current power-on state is a non-power-on state, a relatively small first constant current is used to charge the energy storage device. This maintains a constant current charging of the built-in energy storage device at an ultra-low current, and the charging current ripple is very small, which can completely solve the ghosting problem that easily occurs in traditional single-wire switches. When the current power-on state is a non-power-on state, a second constant current greater than the first constant current is used to charge the energy storage device. By increasing the charging current to the energy storage device, the energy storage device is quickly fully charged. Since the current flowing through the live wire at the load end of the single-wire switch is very large when the power is on, it can meet the fast charging power demand and prevent the lamp from flickering.
[0048] In an optional embodiment, adjusting the current voltage of the energy storage device to a preset voltage range and discharging using the adjusted voltage as the discharge voltage includes:
[0049] If the current voltage is less than the lower limit of the preset voltage range, the current voltage is increased to the lower limit, and the lower limit is used as the discharge voltage for discharge.
[0050] Optionally, when the current voltage of the energy storage device is too low to meet the normal operation of the circuit, the current voltage is increased, such as to the lower limit of the preset voltage range, so that the circuit can operate normally.
[0051] In an optional embodiment, the method further includes: when the current voltage is greater than the upper limit of the preset voltage range, reducing the current voltage to the upper limit of the voltage range, and discharging using the upper limit of the voltage range as the discharge voltage.
[0052] Optionally, when the current voltage of the energy storage device is too high, the current voltage is reduced to the upper limit of the preset voltage range to reduce the overall standby power consumption.
[0053] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0054] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0055] According to an embodiment of the present invention, a system embodiment for implementing the above-described single-wire switch charging and discharging method is also provided. Figure 2 This is a schematic diagram of a single-wire switch charging and discharging system according to an embodiment of the present invention, as shown below. Figure 2 As shown, the above-mentioned single-wire switch charging and discharging system includes: a single-wire power supply circuit module 20, a charging control circuit module 22, and a discharging control circuit module 24, wherein:
[0056] The aforementioned single-wire power supply circuit module 20 is used to obtain the current power-on status of the single-wire switch.
[0057] Optionally, the above-mentioned current power-on state is either a powered-on state or a powered-off state. Taking a single-wire switch used for lighting control as an example, when the light is on, the single-wire switch is closed and in a powered-on state; when the light is off, the single-wire switch is open and in a powered-on state. For example, in... Figure 3 In the schematic diagram of an optional single-wire switch charging and discharging system shown, the single-wire switch draws power from the off-state output voltage V of the single-wire power supply circuit when the light is off. off When the single-wire switch is in the light-on state, the power output V is drawn from the open state of the single-wire power supply circuit. on .
[0058] The charging control circuit module 22 is connected to the single live wire power supply circuit module 20 and is used to obtain the target charging current based on the current power-on state and use the target charging current to charge the energy storage device corresponding to the single live wire switch.
[0059] In an optional embodiment, the charging control circuit module includes a constant current charging circuit module 26 and a fast charging control circuit module 28. The constant current charging circuit module is used to determine the target charging current as a first constant current when the current power-on state is an unpowered state, and to charge the energy storage device with the first constant current. The fast charging control circuit module is used to determine the target charging current as a second constant current when the current power-on state is a powered-on state, and to control the constant current charging circuit module to charge the energy storage device with the second constant current, wherein the second constant current is greater than the first constant current.
[0060] Optionally, when the single-wire switch is in the off state (i.e., not powered on), the power output voltage V is drawn from the off state of the single-wire power supply circuit. off The constant current charging circuit outputs a first constant current to charge the energy storage device; when the single-wire switch is in the light-on state (i.e., power-on state), the single-wire power supply circuit draws power from the open state and outputs V. on The fast charging control circuit controls the constant current charging circuit, changing the output current of the constant current charging circuit to a second constant current, so that the constant current charging circuit outputs a larger constant current to quickly charge the energy storage device.
[0061] In one optional embodiment, the constant current charging circuit module includes: a first diode, a first resistor, a second resistor, a third resistor, a first transistor, and a second diode. The cathode of the first diode is connected to one end of the first resistor and one end of the second resistor, respectively. The other end of the first resistor is connected to the emitter of the first transistor. The other end of the second resistor is connected to the base of the first transistor. The base of the first transistor is also connected to one end of the third resistor. The collector of the first transistor is connected to the anode of the second diode. The cathode of the second diode is connected to the energy storage device.
[0062] Optionally, the aforementioned constant current charging circuit module 26 can be... Figure 4 The constant current charging circuit and fast charging control circuit shown are implemented as follows: Figure 4As shown, the constant current charging circuit includes a first diode D1, a first resistor R1, a second resistor R3, a third resistor R4, a first transistor Q1, and a second diode D2. The cathode of the first diode D1 is connected to one end of the first resistor R1 and one end of the second resistor R3, respectively. The other end of the first resistor R1 is connected to the emitter of the first transistor Q1. The other end of the second resistor R3 is connected to the base of the first transistor Q1. The base of the first transistor Q1 is also connected to one end of the third resistor R3. The collector of the first transistor Q1 is connected to the anode of the second diode D2, and the cathode of the second diode D2 is connected to the energy storage device.
[0063] In an optional embodiment, the fast charging control circuit module includes: a fourth resistor, a third diode, a metal-oxide-semiconductor (MOS) transistor, a fifth resistor, and a sixth resistor, wherein one end of the fifth resistor is connected to the anode of the first diode; the other end of the fifth resistor is connected to the gate of the MOS transistor and one end of the sixth resistor; the other end of the sixth resistor is connected to the source of the MOS transistor, the anode of the third diode, and one end of the fourth resistor, all of which are grounded; the drain of the MOS transistor, the cathode of the third diode, and the other end of the fourth resistor are all connected together and connected to the other end of the third resistor.
[0064] Optionally, the aforementioned fast charging control circuit module 28 can be... Figure 4 The fast charging control circuit shown is implemented as follows: Figure 4 As shown, the fast charging control circuit includes a fourth resistor R5, a third diode D3, a metal-oxide-semiconductor (MOSFET) Q2, a fifth resistor R6, and a sixth resistor R7. One end of the fifth resistor R6 is connected to the anode of the first diode D1; the other end of the fifth resistor R6 is connected to the gate of the MOSFET Q2 and one end of the sixth resistor R7; the other end of the sixth resistor R7 is connected to the source of the MOSFET Q2, the anode of the third diode D3, and one end of the fourth resistor R5, all of which are grounded; the drain of the MOSFET Q2, the cathode of the third diode D3, and the other end of the fourth resistor R5 are all connected together and connected to the other end of the third resistor R4.
[0065] Optional, as before Figure 3 As shown, when the single-wire switch is in the off state (i.e., not powered on), the off-state power output voltage V of the single-wire power supply circuit is... off However, there is no output when the power is drawn in the open state, and because V off With V on The first diode D1 connected in series has a unidirectional conduction characteristic, and the voltage V at this timeon The base voltage is 0, therefore the metal-oxide-semiconductor transistor Q2 (i.e., the NMOS transistor) is in the off state, and the fast charging control circuit does not work. The first transistor Q1 is a PNP transistor, and at this time, the base voltage U of the first transistor Q1 is 0. b =(V off ×(R4+R5)) / (R3+R4+R5), because V off Unchanged, therefore U b The voltage remains unchanged. For Q1 to conduct, the base must be reverse-biased; generally, the reverse bias voltage U of a PNP silicon transistor is... be = -0.7V, therefore the emitter voltage U of Q1 e =U b -U be Because of voltage U b with U be The voltage U remains unchanged. e The voltage U across the first resistor R1 remains unchanged. R1 =V off -U e Therefore, the constant current charging current at this time is the first constant current I1 = U. R1 / R1=(V off +U be -U b ) / R1.
[0066] When the single-wire switch is in the on state (i.e., powered on state), the on-state power output voltage V of the single-wire power supply circuit is... on When the power is off and there is no output, the voltage V is... off By V on Provided by the second diode D1, i.e., V off =V on -V f V f This is the forward voltage drop of the first diode D1. At this time, V... on The NMOS transistor Q2 is turned on by R6, and the fourth resistor R5 is short-circuited, i.e., R5 = 0, while U b =(V off ×(R4+R5)) / (R3+R4+R5), when R5=0, U b The current decreases, while the constant current charging current at this time is the second constant current I2 = U. R1 / R1=(V off +U be -U b ) / R1, when U b When I decreases, I increases, allowing the energy storage device to be fully charged more quickly.
[0067] It's understandable that when the single-wire switch is in the "on" state, the charging control circuit enters rapid constant current charging; conversely, when the single-wire switch is in the "off" state, Q2 is not conducting, and the charging control circuit enters slow constant current charging. The charging control circuit is connected to the energy storage device via the second diode D2, which prevents the energy storage device from back-discharging to the charging control circuit, minimizing the self-discharge current of the energy storage device. The charging control circuit enables stable constant current charging of the energy storage device, avoiding flickering of the load lamp caused by unstable charging current. Furthermore, when the single-wire switch is in the "off" state, it allows for ultra-low current charging, preventing ghosting issues.
[0068] The discharge control circuit module 24 is connected to the charging control circuit module 22 and is used to obtain the current voltage of the energy storage device in the charging state, adjust the current voltage of the energy storage device to a preset voltage range, and use the adjusted voltage as the discharge voltage for discharge.
[0069] Optionally, the discharge control circuit module includes a voltage detection circuit module and a voltage control circuit module. The voltage detection circuit is used to obtain the current voltage of the energy storage device under charging conditions and obtain a voltage detection result. The voltage control circuit module is used to control the current voltage of the energy storage device to be adjusted to a preset voltage range based on the voltage detection result, and to use the adjusted current voltage as the discharge voltage for discharge.
[0070] Optionally, the voltage detection circuit module described above can be configured as follows: Figure 5 The voltage detection circuit shown is a typical hysteresis voltage comparator circuit. U4 can be an operational amplifier or a voltage comparator. U4 is derived from V... off In the power supply stage, when the charging control circuit charges the energy storage device, the voltage Vi equals the voltage of the energy storage device plus the forward voltage drop of diode D2. The function of D2 is to prevent the energy storage device from discharging externally when the single-wire switch is not connected to external AC power, thus reducing the additional current loss of the energy storage device. The hysteresis voltage comparator U4 detects the voltage Vi through resistor R14. When Vi is less than the set threshold 1, it indicates that the voltage of the energy storage device is low, and U4 outputs EN at a low level. When Vi is greater than the set threshold 2 (threshold 2 > threshold 1), it indicates that the voltage of the energy storage device has been charged to a certain level, and U4 outputs EN at a high level.
[0071] In one optional embodiment, the discharge control circuit module includes:
[0072] The boost circuit module is used to boost the current voltage to the lower voltage limit when the current voltage is less than the lower voltage limit of the preset voltage range, and to discharge using the lower voltage limit as the discharge voltage.
[0073] The step-down circuit module is used to reduce the current voltage to the upper limit of the preset voltage range when the current voltage is greater than the upper limit of the voltage range, and to discharge using the upper limit of the voltage as the discharge voltage.
[0074] Optionally, threshold 1 can correspond to the lower limit of a preset voltage range, and threshold 2 can correspond to the upper limit of a preset voltage range. When Vi is detected to be less than the set threshold 1, i.e., the current voltage is less than the lower limit of the preset voltage range, U4 outputs EN at a low level, controlling the boost circuit module in the discharge control circuit module to conduct. When Vi is detected to be greater than the set threshold 2, i.e., the current voltage is greater than the upper limit of the preset voltage range, U4 outputs EN at a high level, controlling the buck circuit module in the discharge control circuit module to conduct.
[0075] Optionally, the voltage control circuit module in the above-mentioned discharge control circuit module includes a boost circuit module and a buck circuit module, used to adjust the discharge voltage in real time according to the current voltage of the energy storage device, so that the discharge voltage can always be stabilized within a preset voltage range. The above-mentioned boost circuit module and the above-mentioned buck circuit can be configured as follows: Figure 6 The boost and buck circuits shown are implemented as follows. Figure 6 As shown, when the single-wire switch is not connected to the external AC voltage, the output voltage V of the single-wire power supply circuit is... off and V on When both are 0, the charging control circuit does not work, the voltage Vi is 0, and the outputs CE of the buck controller and boost controller are pulled low and cannot work. out Without output, the wireless control circuit of the single-wire switch does not work, minimizing the self-discharge loss of the energy storage device.
[0076] When the single-wire switch connects to the external AC voltage, the voltage detection circuit operates and detects the voltage of the energy storage device. Simultaneously, it outputs an EN signal to control either the buck circuit or the boost circuit. The buck circuit can be a typical low-dropout linear regulator circuit (i.e., an LDO buck circuit) or a buck chopper circuit (i.e., a Buck DC-DC voltage converter circuit); there are no particular restrictions. The boost circuit can be a boost chopper circuit (i.e., a Boost DC-DC voltage converter circuit).
[0077] When the voltage of the energy storage device is low and less than the set threshold 1, i.e., the current voltage is less than the lower limit of the preset voltage range, the voltage detection circuit outputs EN low. At this time, the enable pin CE of the buck converter is pulled low, preventing the circuit from working. Because the voltage detection circuit outputs EN low, Q3 cannot conduct. The boost converter's boost controller CE pin is pulled high by Vi, enabling the circuit to work, thereby converting the lower energy storage device voltage V... bat Increase to the voltage V required by the wireless control circuit. out Discharge is performed.
[0078] When the energy storage device is in a continuous charging state, V bat When the voltage reaches a certain level and exceeds the set threshold 2 (i.e., the current voltage exceeds the upper limit of the preset voltage range), the voltage detection circuit outputs EN at a high level, transistor Q3 conducts, pulling the CE pin potential of the boost controller low, thus disabling the boost circuit. Conversely, the CE pin potential of the buck controller is pulled high, activating the buck circuit, thereby increasing the voltage of the higher energy storage device V. bat Reduced to the voltage V required by the wireless control circuit out Discharge is performed.
[0079] Based on the above embodiments and optional embodiments, the present invention proposes an optional implementation method. Figure 3 This is a schematic diagram of an optional single-wire switch charging and discharging system according to an embodiment of the present invention, as shown below. Figure 3 As shown, the system includes: a single-wire power supply circuit 20, a charging control circuit 22, a constant current charging circuit 26, a fast charging control circuit 28, a discharging control circuit 24, an energy storage device, a voltage detection circuit, a step-down circuit, and a step-up circuit. In specific applications, when the single-wire switch is in the off state (i.e., not powered on), the single-wire power supply circuit draws power from the off-state output voltage V. off The constant current charging circuit outputs a first constant current to charge the energy storage device; when the single-wire switch is in the light-on state (i.e., power-on state), the single-wire power supply circuit draws power from the open state and outputs V. on The fast charging control circuit controls the constant current charging circuit, changing the output current of the constant current charging circuit to a first constant current, so that the constant current charging circuit outputs a larger constant current to quickly charge the storage device; the voltage detection circuit detects the voltage of the storage device, and when the detected voltage of the storage device is less than the set threshold 1, the boost circuit is activated, and the boost circuit boosts the lower voltage to meet the minimum requirement of V for the wireless control circuit. out As charging continues, the voltage of the energy storage device increases. When the voltage detection circuit detects that the voltage of the energy storage device is greater than the set threshold 2 (threshold 2 is greater than threshold 1), it shuts down the boost circuit. At this time, the buck circuit outputs V. out .
[0080] The embodiments of the present invention can achieve at least the following technical effects: (1) An energy storage device is added to the charging and discharging control circuit of the single-wire switch, and the energy storage device provides the working current for the wireless control circuit. When the energy storage device has sufficient power, it can meet the power demand of the wireless control circuit without increasing the current flowing through the live wire of the load end, thereby avoiding the problem of ghosting. (2) When the single-wire switch is in the power-off state, it can maintain an ultra-low current to charge the built-in energy storage device at a constant current, and the charging current ripple is very small, which can completely solve the problem of ghosting that is easy to occur in traditional single-wire switches. (3) The embodiments of the present invention have a fast charging circuit, which can increase the charging current of the energy storage device when the single-wire switch is in the power-on state, thereby quickly charging the energy storage device. Since the current flowing through the live wire of the load end of the single-wire switch is large when it is in the power-on state, it can meet the fast charging power demand and prevent the lamp from flickering. (4) This embodiment of the invention also includes a voltage detection circuit, which can detect in real time whether the voltage across the energy storage device meets the minimum voltage requirement of the wireless control circuit, and automatically switch between different power supply circuits based on the different voltages across the device. When the energy storage device voltage is high, it switches to a step-down circuit with higher conversion efficiency, resulting in lower overall standby power consumption. When the energy storage device voltage is lower than the minimum operating voltage, it switches to a boost circuit, which still meets the normal operation requirements of the circuit. This solves the technical problem of powering the energy storage device under low voltage conditions.
[0081] It should be noted that in this application Figures 2 to 3 The specific structure of the single-wire switch charging and discharging system shown is merely illustrative. In practical applications, the single-wire switch charging and discharging system of this application can be more advanced than... Figures 2 to 3 The single-wire power supply circuit module 20, charging control circuit module 22, and discharging control circuit module 24 shown may have more or less of these structures.
[0082] It should be noted that any optional or preferred single-wire switch charging and discharging method in the above method embodiments can be executed or implemented in the single-wire switch charging and discharging system provided in this embodiment.
[0083] Furthermore, it should be noted that the optional or preferred implementation methods of this embodiment can be found in the relevant descriptions in the method embodiments, which will not be repeated here.
[0084] This embodiment also provides a single-wire switch charging and discharging device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "module" and "device" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0085] According to an embodiment of the present invention, an apparatus embodiment for implementing the above-described single-wire switch charging and discharging method is also provided. Figure 7 This is a schematic diagram of the structure of a single-wire switch charging and discharging device according to an embodiment of the present invention, as shown below. Figure 7 As shown, the above-mentioned single-wire switch charging and discharging device includes: a first acquisition module 700, a charging module 702, a second acquisition module 704, and a discharging module 706, wherein:
[0086] The first acquisition module 700 mentioned above is used to acquire the current power-on state of the single live wire switch;
[0087] The charging module 702 is connected to the first acquisition module 700 and is used to acquire the target charging current based on the current power-on state and to charge the energy storage device corresponding to the single live wire switch using the target charging current.
[0088] The second acquisition module 704 is connected to the charging module 702 and is used to acquire the current voltage of the energy storage device during the charging state.
[0089] The discharge module 706 is connected to the second acquisition module 704 and is used to adjust the current voltage of the energy storage device to a preset voltage range and use the adjusted voltage as the discharge voltage for discharge.
[0090] In this embodiment of the invention, the first acquisition module 700 is configured to acquire the current power-on state of the single-wire switch; the charging module 702, connected to the first acquisition module 700, is configured to acquire a target charging current based on the current power-on state and charge the energy storage device corresponding to the single-wire switch using the target charging current; the second acquisition module 704, connected to the charging module 702, is configured to acquire the current voltage of the energy storage device during the charging state; and the discharging module 706, connected to the second acquisition module 704, is configured to discharge the energy storage device... The current voltage is adjusted to a preset voltage range, and the adjusted voltage is used as the discharge voltage for discharge. This achieves the goal of controlling the charging current of the energy storage device according to the current power-on state of the single live wire, while simultaneously regulating the discharge voltage in real time. This ensures the stability of the single live wire switch's charging and discharging, thereby avoiding the ghosting phenomenon when the single live wire switch charges the energy storage device and improving the charging and discharging stability of the energy storage device. It also solves the technical problem in related technologies where the single live wire switch charging and discharging method produces ghosting when charging the energy storage device, resulting in poor charging and discharging stability.
[0091] It should be noted that the above modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0092] It should be noted that the first acquisition module 700, charging module 702, second acquisition module 704, and discharging module 706 mentioned above correspond to steps S102 to S108 in the embodiments. The instances and application scenarios implemented by the above modules and their corresponding steps are the same, but are not limited to the content disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can run in a computer terminal.
[0093] It should be noted that the optional or preferred implementation methods of this embodiment can be found in the relevant descriptions in the embodiments, and will not be repeated here.
[0094] The aforementioned single-wire switch charging and discharging device may further include a processor and a memory. The first acquisition module 700, charging module 702, second acquisition module 704, and discharging module 706 are all stored in the memory as program modules, and the processor executes the aforementioned program modules stored in the memory to realize the corresponding functions.
[0095] The processor contains a core that retrieves the corresponding program modules from memory. One or more cores may be configured. Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory includes at least one memory chip.
[0096] According to an embodiment of this application, an embodiment of a non-volatile storage medium is also provided. Optionally, in this embodiment, the non-volatile storage medium includes a stored program, wherein, when the program is running, it controls the device containing the non-volatile storage medium to execute any of the single-wire switch charging and discharging methods described above.
[0097] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals, and the non-volatile storage medium includes stored programs.
[0098] Optionally, during program execution, the device containing the non-volatile storage medium is controlled to perform the following functions: obtain the current power-on state of the single-wire switch; based on the current power-on state, obtain a target charging current, and charge the energy storage device corresponding to the single-wire switch with the target charging current; obtain the current voltage of the energy storage device during the charging state; adjust the current voltage of the energy storage device to a preset voltage range, and discharge the device using the adjusted voltage as the discharge voltage.
[0099] According to an embodiment of this application, an embodiment of a processor is also provided. Optionally, in this embodiment, the processor is used to run a program, wherein the program executes any of the single-wire switch charging and discharging methods described above.
[0100] According to an embodiment of this application, an embodiment of a computer program product is also provided, which, when executed on a data processing device, is adapted to execute a program that initializes the charging and discharging method steps of a single live wire switch having any of the above-described steps.
[0101] Optionally, when the above-mentioned computer program product is executed on a data processing device, it is suitable to execute an initialization program having the following method steps: obtaining the current power-on state of the single-wire switch; based on the current power-on state, obtaining a target charging current, and charging the energy storage device corresponding to the single-wire switch with the target charging current; obtaining the current voltage of the energy storage device under the charging state; adjusting the current voltage of the energy storage device to a preset voltage range, and discharging with the adjusted voltage as the discharge voltage.
[0102] According to an embodiment of this application, an embodiment of a processor is also provided. Optionally, in this embodiment, the processor is used to run a program, wherein the program executes any of the single-wire switch charging and discharging methods described above.
[0103] This invention provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: obtaining the current power-on state of a single-wire switch; obtaining a target charging current based on the current power-on state, and charging the energy storage device corresponding to the single-wire switch with the target charging current; obtaining the current voltage of the energy storage device during the charging state; adjusting the current voltage of the energy storage device to a preset voltage range, and discharging using the adjusted voltage as the discharge voltage.
[0104] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0105] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0106] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of modules described above can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between modules, and may be electrical or other forms.
[0107] The modules described above as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0108] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0109] If the aforementioned integrated modules are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable non-volatile storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a non-volatile storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned non-volatile storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0110] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A charging and discharging method for a single-wire switch, characterized in that, include: Obtain the current power-on state of the single live wire switch, wherein the power-on state includes an off state and a power-on state; Based on the current power-on state, obtain the target charging current, and charge the energy storage device corresponding to the single live wire switch with the target charging current; Obtain the current voltage of the energy storage device during charging; The current voltage of the energy storage device is adjusted to a preset voltage range, and the adjusted voltage is used as the discharge voltage for discharging. The step of obtaining a target charging current based on the current power-on state and charging the energy storage device corresponding to the single-wire switch using the target charging current includes: when the current power-on state is an off-power state, determining the target charging current as a first constant current and charging the energy storage device using the first constant current; when the current power-on state is a power-on state, determining the target charging current as a second constant current and charging the energy storage device using the second constant current, wherein the second constant current is greater than the first constant current and the first constant current is less than a preset constant current threshold. The step of adjusting the current voltage of the energy storage device to a preset voltage range and discharging using the adjusted voltage as the discharge voltage includes: when the current voltage is less than the lower limit of the preset voltage range, increasing the current voltage to the lower limit and discharging using the lower limit as the discharge voltage.
2. The method according to claim 1, characterized in that, The method further includes: If the current voltage is greater than the upper limit of the preset voltage range, the current voltage is reduced to the upper limit, and the upper limit is used as the discharge voltage for discharge.
3. A single-wire switch charging and discharging control system, characterized in that, include: The circuit includes a single live wire power supply module, a charging control circuit module, and a discharging control circuit module. The single live wire power supply circuit module is used to obtain the current power-on state of the single live wire switch, wherein the power-on state includes a non-power-on state and a power-on state. The charging control circuit module is used to obtain the target charging current based on the current power-on state, and use the target charging current to charge the energy storage device corresponding to the single live wire switch. The discharge control circuit module is used to obtain the current voltage of the energy storage device in the charging state, adjust the current voltage of the energy storage device to a preset voltage range, and use the adjusted voltage as the discharge voltage for discharging. The charging control circuit module includes: a constant current charging circuit module, used to determine the target charging current as a first constant current when the current power-on state is an unpowered state, and to charge the energy storage device with the first constant current; and a fast charging control circuit module, used to determine the target charging current as a second constant current when the current power-on state is a powered-on state, and to control the constant current charging circuit module to charge the energy storage device with the second constant current, wherein the second constant current is greater than the first constant current. The discharge control circuit module includes a boost circuit module, used to boost the current voltage to the lower voltage limit when the current voltage is less than the lower voltage limit of the preset voltage range, and to discharge using the lower voltage limit as the discharge voltage.
4. The system according to claim 3, characterized in that, The discharge control circuit module includes: A step-down circuit module is used to reduce the current voltage to the upper limit of the preset voltage range when the current voltage is greater than the upper limit of the voltage range, and to discharge using the upper limit of the voltage as the discharge voltage.
5. The system according to claim 3, characterized in that, The constant current charging circuit module includes: a first diode, a first resistor, a second resistor, a third resistor, a first transistor, and a second diode, wherein... The cathode of the first diode is connected to one end of the first resistor and one end of the second resistor, the other end of the first resistor is connected to the emitter of the first transistor, the other end of the second resistor is connected to the base of the first transistor, the base of the first transistor is also connected to one end of the third resistor, the collector of the first transistor is connected to the anode of the second diode, and the cathode of the second diode is connected to the energy storage device.
6. The system according to claim 5, characterized in that, The fast charging control circuit module includes: a fourth resistor, a third diode, a metal-oxide-semiconductor transistor, a fifth resistor, and a sixth resistor, wherein... One end of the fifth resistor is connected to the anode of the first diode; the other end of the fifth resistor is connected to the gate of the metal oxide semiconductor and one end of the sixth resistor; the other end of the sixth resistor is connected to the source of the metal oxide semiconductor, the anode of the third diode, and one end of the fourth resistor, all of which are grounded; the drain of the metal oxide semiconductor, the cathode of the third diode, and the other end of the fourth resistor are all connected together and connected to the other end of the third resistor.
7. A single-wire switch charging and discharging device, characterized in that, include: The first acquisition module is used to acquire the current power-on state of the single live wire switch, wherein the power-on state includes an off state and a power-on state; The charging module is used to obtain a target charging current based on the current power-on state, and use the target charging current to charge the energy storage device corresponding to the single live wire switch. The second acquisition module is used to acquire the current voltage of the energy storage device during the charging state; The discharge module is used to adjust the current voltage of the energy storage device to a preset voltage range, and to discharge the energy using the adjusted voltage as the discharge voltage. The charging module is further configured to: determine the target charging current as a first constant current when the current power-on state is an unpowered state, and charge the energy storage device with the first constant current; and determine the target charging current as a second constant current when the current power-on state is a powered-on state, and charge the energy storage device with the second constant current, wherein the second constant current is greater than the first constant current and the first constant current is less than a preset constant current threshold. The discharge module is further configured to, when the current voltage is less than the lower limit of the preset voltage range, raise the current voltage to the lower limit and use the lower limit as the discharge voltage for discharge.
Citation Information
Patent Citations
Single-live-wire switch battery charging circuit and power supply device applying same
CN110676911A
Power storage device
WO2014033880A1