Detection method, device, circuit, electronic equipment and storage medium
By detecting the voltage waveform across the input switch and using the disturbance voltage to determine its state, the problem of electric shock hazard caused by exposed input ports in the discharge mode of energy storage power products is solved, thus improving safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2026-03-17
AI Technical Summary
If the input switch of an energy storage power product fails to conduct during discharge mode, the exposed input port can easily lead to electric shock hazards. Existing technologies cannot detect this in a timely manner, resulting in insufficient safety.
By detecting the voltage waveform across the input switch, it can be determined whether the switch is in a normal or faulty state. The power conversion module outputs a disturbance voltage for accurate judgment, and the power supply is stopped in case of a fault to prevent leakage.
It enables timely detection of the input switch status, avoids the risk of leakage due to faults, and improves the safety of electronic equipment.
Smart Images

Figure CN116381481B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power electronics technology, and in particular to an input switch detection method, an input switch detection device, a port leakage current detection circuit, an electronic device, and a storage medium. Background Technology
[0002] Some electronic devices, such as energy storage power products, are typically equipped with multiple input and output ports. The input ports can be connected to AC power to charge the built-in DC power supply, and the battery pack can discharge to the load connected to the output port. Furthermore, input and output switches are respectively installed between the input and output ports and the DC power supply to control the respective paths between the input and output ports. However, in the discharge mode of the energy storage power product, the DC power supply outputs current to the output port by turning on the output switch connected to the output port. If the input switch at the input port malfunctions and remains open, a voltage can easily form at the input port. If the input port is exposed and not detected in time, a safety accident may occur, such as electric shock if touched by a person, resulting in a low safety factor. Summary of the Invention
[0003] In view of the above, it is necessary to provide an input switch detection method, an input switch detection device, a port leakage current detection circuit, an electronic device, and a storage medium, in order to solve the problem that when the input port is exposed, it cannot be detected in time, which can easily lead to safety accidents.
[0004] In a first aspect, embodiments of this application provide an input switch detection method applied to an electronic device. The electronic device includes an AC input port, an AC output port, an input switch, an output switch, and a power conversion module. A first end of the input switch is connected to the AC input port, and a second end of the input switch is connected to a first end of the power conversion module, the second end of which is used to connect to a DC power supply. A first end of the output switch is connected to an output port, and a second end of the output switch is connected to a second end of the input switch. The input switch detection method includes: generating a first conduction signal and a first drive signal when an AC load is connected to the AC output port; the first conduction signal is used to control the output switch to conduct; the first drive signal is used to control the power conversion module to convert the power supply from the DC power supply and output it to the AC output port; acquiring a first voltage waveform at the first end of the input switch and a second voltage waveform at the second end of the input switch; and determining that the input switch is in a normal state when the first voltage waveform and the second voltage waveform do not match.
[0005] When an AC load is connected to the AC output port, the output switch is turned on to allow the power conversion module to convert the DC power supply and output it to the AC output port to power the AC load. The voltage waveform across the input switch is monitored to determine its normal or faulty state. If a mismatch is detected in the voltage waveform across the input switch, the input switch is considered to be in a normal state (open), meaning the path between the input port and the power conversion module is broken, and the power conversion module cannot output current to the AC input port. Monitoring the voltage waveform across the input switch allows for timely detection of its status, preventing undetected faults that could lead to leakage current at the AC input port and potential hazards.
[0006] In some embodiments, the input switch detection method further includes: determining that the first voltage waveform and the second voltage waveform match when the difference between the amplitude of the first voltage waveform and the amplitude of the second voltage waveform is less than or equal to an amplitude threshold, and / or when the difference between the phase of the first voltage waveform and the phase of the second voltage waveform is less than or equal to a phase threshold. The matching of voltage waveforms is determined by comparing the amplitude difference or phase difference of the voltage waveforms across the input switch.
[0007] In some embodiments, the input switch detection method further includes: when the first voltage waveform and the second voltage waveform match, outputting a first control signal to the power conversion module, so that the power conversion module outputs a disturbance voltage to the input switch; the disturbance voltage has a waveform that does not match the AC power input to the AC input port; acquiring a first voltage waveform at the first terminal of the input switch and a second voltage waveform at the second terminal of the input switch; and determining an input switch fault when the first voltage waveform and the second voltage waveform match. When the input port is also connected to an AC power source, the waveform of the AC power input to the input port may match the waveform of the current output by the power conversion module. By outputting a disturbance voltage to the input switch through the power conversion module, the voltage waveforms at both ends of the input switch are judged again to determine whether the input switch has a sticking fault, thereby reducing the false judgment rate of input switch faults.
[0008] In some embodiments, the disturbance voltage has a waveform that is mismatched with the AC power input at the AC input port, including: the waveform of the disturbance voltage having a preset amplitude difference with the waveform of the AC power input at the AC input port, or the waveform of the disturbance voltage having a preset phase difference with the waveform of the AC power input at the AC input port.
[0009] In some embodiments, the input switch detection method further includes: generating a second conduction signal when a power supply is connected to the AC input port; the second conduction signal is used to control the input switch to conduct; acquiring a third voltage waveform at the first terminal of the output switch and a fourth voltage waveform at the second terminal of the output switch; and determining an output switch fault when the third voltage waveform and the fourth voltage waveform match.
[0010] In some embodiments, after determining that the input switch is faulty, the method for detecting the output switch further includes: sending a stop control signal to the power conversion module to stop the power conversion module from working, thereby preventing the power conversion module from continuing to supply power to the input port in the event of an input switch failure, and further improving safety.
[0011] Secondly, embodiments of this application provide an input switch detection device, including a memory and a processor; the memory is used to store program instructions; the processor is used to read the program instructions stored in the memory to implement an input switch detection method.
[0012] Thirdly, embodiments of this application provide a port leakage current detection circuit, including: a controller; a voltage sampling device, wherein the controller is used to control the voltage sampling device to execute the input switch detection method.
[0013] Fourthly, embodiments of this application provide an electronic device including the aforementioned port leakage detection circuit.
[0014] Fifthly, embodiments of this application provide a computer storage medium storing computer-readable instructions, which, when executed by a processor, implement the input switch detection method. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of an electronic device provided in an embodiment of this application.
[0016] Figure 2 This is a flowchart of an input switch detection method provided in an embodiment of this application.
[0017] Figure 3 A flowchart of an input switch detection method provided in another embodiment of this application.
[0018] Figure 4 This is a flowchart of an input switch detection method provided in another embodiment of this application.
[0019] Figure 5 This is a flowchart of an input switch detection method provided in another embodiment of this application.
[0020] Figure 6This is a schematic diagram of a port leakage current detection circuit and electronic device provided in an embodiment of this application.
[0021] Figure 7 This is a schematic diagram of a port leakage current detection circuit and electronic device provided in another embodiment of this application.
[0022] Figure 8 This is a schematic diagram of an input switch detection device provided in an embodiment of this application. Detailed Implementation
[0023] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, words such as "exemplary," "or," and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary," "or," and "for example" is intended to present the relevant concepts in a concrete manner.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used in this application's specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that, unless otherwise stated, " / " in this application means "or". For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. "At least one" refers to one or more. "More than one" refers to two or more. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, and a, b, and c (seven cases).
[0025] Some electronic devices, such as energy storage power products, are typically equipped with multiple input and output ports. The input ports can be connected to AC power to charge the built-in DC power supply, and the battery pack can discharge to a load connected to the output port. Furthermore, input and output switches are respectively installed between the input and output ports and the DC power supply to control the respective paths between the input and output ports. However, in the discharge mode of the energy storage power product, the DC power supply outputs current to the output port by turning on the output switch connected to the output port. If the input switch at the input port malfunctions and remains open, a voltage can easily form at the input port. If the input port is exposed at this time, such as when touched by a person, it can easily cause an electric shock, resulting in a low safety factor.
[0026] Please see Figure 1 This application provides an electronic device 100. The electronic device may be, but is not limited to, an electronic energy storage device, a charging and discharging device, a power supply device, or an energy-generating device. It is understood that the electronic device 100 may also include other functional modules, such as a power distribution box, etc., but this application does not impose any limitations on this.
[0027] Electronic device 100 may include an AC input port 11, an AC output port 12, an input switch 13, an output switch 14, a power conversion module 15, and a DC power supply 16.
[0028] In some embodiments, the DC power supply 16 may not be limited to a battery pack, energy storage DC power supply, etc. The DC power supply 16 can be used for DC charging and discharging. When DC power is input into the DC power supply 16, it can be charged; when DC power is output into the DC power supply 16, it can be discharged.
[0029] The AC input port 11 can be used to connect to an AC power source, such as AC mains power, and is used to obtain AC power for the electronic device 100.
[0030] AC output port 12 can be used to connect AC loads, such as electrical equipment, such as refrigerators, washing machines, cars, etc., while AC input port 11 is used to output AC power to supply AC loads.
[0031] The first end of the input switch 13 is connected to the AC input port 11, and the second end of the input switch 13 is connected to the first end of the power conversion module 15. The input switch 13 is used to connect or disconnect the connection line between the AC input port 11 and the power conversion module 15.
[0032] The first terminal of the output switch 14 is connected to the AC output port 12, and the second terminal of the output switch 14 is connected to the second terminal of the input switch 13. That is, the second terminal of the output switch 14 is connected to the first terminal of the power conversion module 15. The output switch 14 is used to connect or disconnect the connection line between the AC output port 12 and the power conversion module 15. In some embodiments, the input switch 13 and the output switch 14 may include, but are not limited to, relays, MOSFETs (Metal-Oxide-Semiconductor Field-Effect Transistors), IGBTs (Insulated Gate Bipolar Transistors), or transistors. This application does not impose any limitations on these components.
[0033] The second terminal of the power conversion module 15 is used to connect to the DC power supply 16. The power conversion module 15 is used to convert the AC power input through the AC input port 11 into DC power and then supply it to the DC power supply 16, which can be used to power the DC power supply 16, for example, to charge the DC power supply 16. The power conversion module 15 is also used to convert the power supplied by the DC power supply 16 into AC power and then supply it to the AC output port 12, which can be used to power the AC load connected to the AC output port 12. In some embodiments, the power conversion module 15 can be, but is not limited to, an inverter, voltage converter, converter, reverse current transformer, or other circuit device with AC and DC power conversion functions.
[0034] The following is in conjunction with the appendix Figure 1 The electronic device 100 shown in this application details the method for detecting the input switch provided in the embodiments of this application.
[0035] Please see Figure 2 This is a flowchart of the input switch detection method provided in an embodiment of this application. Figure 2 As shown, when the input switch detection method is applied to electronic device 100, the input switch detection method may include the following steps:
[0036] S211, when an AC load is connected to the AC output port 12, a first conduction signal and a first drive signal are generated. The first conduction signal is used to control the output switch 14 to conduct; the first drive signal is used to control the power conversion module 15 to convert the power supply of the DC power supply 16 and output it to the AC output port 12.
[0037] In some embodiments, under normal conditions of the electronic device 100, i.e., when the AC input port 11 is not connected to an AC power source and the AC output port 12 is not connected to an AC load, the AC output port 12 is idle, the output switch 14 is in the off state, and the power conversion module 15 is in a non-working or stopped state. When the electronic device 100 needs to supply power to the AC load at the AC output port 12, a first conduction signal and a first drive signal are generated. The first conduction signal controls the output switch 14 to conduct, and the first drive signal controls the power conversion module 15 to convert the power supplied by the DC power source 16 into AC power and output it to the AC output port 12, thereby supplying power to the AC load.
[0038] In one embodiment, AC output port 12 is connected to an AC load, which can be detected by real-time monitoring of AC output port 12.
[0039] S212, acquire the first voltage waveform at the first terminal of the input switch 13 and the second voltage waveform at the second terminal of the input switch 13.
[0040] In some embodiments, a first voltage waveform at the first terminal of the input switch 13 and a second voltage waveform at the second terminal of the input switch 13 can be acquired simultaneously. The first voltage waveform is a complete waveform of the first voltage at the first terminal of the input switch 13, and the second voltage waveform is a complete waveform of the second voltage at the first terminal of the input switch 13.
[0041] In some embodiments, the waveforms at both ends of the input switch 13 can be acquired by zero-crossing detection. That is, when the waveform transitions from the positive half-cycle to the negative half-cycle and passes through the zero position, detection and timing are performed, and timing is performed again at the next zero point, thereby acquiring the complete waveform of the voltage.
[0042] S213, when the first voltage waveform and the second voltage waveform do not match, determine that the input switch 13 is in a normal state.
[0043] In some embodiments, the first voltage waveform at the first terminal of the input switch 13 and the second voltage waveform at the second terminal of the input switch 13 can be compared.
[0044] In some embodiments, it can be determined whether the first voltage waveform and the second voltage waveform match by comparing the amplitude of the first voltage waveform with the amplitude of the second voltage waveform, and / or by comparing the phase of the first voltage waveform with the phase of the second voltage waveform.
[0045] In some embodiments, when it is determined that the difference between the amplitude of the first voltage waveform and the amplitude of the second voltage waveform is greater than an amplitude threshold, and when it is determined that the difference between the phase of the first voltage waveform and the phase of the second voltage waveform is greater than a phase threshold, it is determined that the first voltage waveform and the second voltage waveform are mismatched, thereby determining that the input switch 13 is in a normal state, that is, the input switch 13 is in an open state at this time, the input switch 13 is not stuck, and the first and second terminals of the input switch 13 are disconnected. It can be understood that when it is determined that the input switch 13 is in a normal state, the AC power output by the power conversion module 15 cannot be output to the AC input port 11 through the open input switch 13, ensuring the safety of the AC input port 11; the AC power output by the power conversion module 15 can only be output to the AC output port 12 through the output switch 14 to power the connected AC load.
[0046] In other embodiments, in step S211, when an AC load is connected to the AC output port 12, a first drive signal is generated to control the power conversion module 15 to convert the power supplied by the DC power supply 16 and output AC power. Then, steps S212 and S213 are performed. When it is determined that the input switch 13 is in a normal state, a first conduction signal is generated to control the output switch 14 to conduct, so that the AC power output by the power conversion module 15 can supply power to the AC load.
[0047] Please see Figure 3 In one embodiment, a flowchart of an input switch detection method is provided for another embodiment of this application. The input switch detection method further includes steps S311 to S313.
[0048] S311, when the first voltage waveform and the second voltage waveform match, output the first control signal to the power conversion module 15 so that the power conversion module 15 outputs the disturbance voltage to the input switch 13.
[0049] In some embodiments, when the difference between the amplitude of the first voltage waveform and the amplitude of the second voltage waveform is less than or equal to an amplitude threshold, and / or when the difference between the phase of the first voltage waveform and the phase of the second voltage waveform is less than or equal to a phase threshold, it is determined that the first voltage waveform and the second voltage waveform are matched, thereby determining that the input switch 13 is faulty. That is, the first and second terminals of the input switch 13 are currently connected, and the input switch 13 may be stuck together, resulting in a conductive connection between the first and second terminals of the input switch 13. It is understood that when the input switch 13 is stuck together, the AC power output by the power conversion module 15 can be output to the AC input port 11 through the stuck input switch 13, which can easily cause leakage problems.
[0050] In some embodiments, when AC input port 11 is connected to an AC power source, such as mains power, the first terminal of input switch 13 obtains AC power through the AC power source connected to AC input port 11, and the second terminal of input switch 13 obtains AC power output from power conversion module 15. The AC power obtained by the AC power source connected to AC input port 11 and the AC power output from power conversion module 15 may have the same amplitude and / or the same phase. In this case, the first voltage waveform at the first terminal of input switch 13 and the second voltage waveform at the second terminal of input switch 13 may match, which may cause a misjudgment of the matching of the first and second voltage waveforms in step S311. Therefore, controller 17 outputs a first control signal to power conversion module 15 to cause power conversion module 15 to output a disturbance voltage to input switch 13. The disturbance voltage may have a waveform that does not match the AC power input to AC input port 11, so as to further determine whether the first voltage waveform at the first terminal of input switch 13 matches the second voltage waveform at the second terminal of input switch 13, thereby accurately determining the state of input switch 13.
[0051] In some embodiments, the disturbance voltage has a waveform that is mismatched with the AC power input to AC input port 11. The waveform of the disturbance voltage has a preset amplitude difference, such as a difference of ΔV, with the waveform of the AC power input to AC input port 11; or, the waveform of the disturbance voltage has a preset phase difference, such as a phase difference of Δψ, with the waveform of the AC power input to AC input port 11. In some embodiments, when the AC power input to AC input port 11 is mains power, its voltage value can be 220V, and the disturbance voltage output by the power conversion module 15 can be 220.5V. It is understood that the preset amplitude difference and preset phase difference between the waveform of the disturbance voltage and the waveform of the AC power input to AC input port 11 are small, thus not affecting the power supply to the AC load connected to AC output port 12.
[0052] S312, acquire the first voltage waveform at the first terminal of the input switch 13 and the second voltage waveform at the second terminal of the input switch 13.
[0053] In this embodiment, after the power conversion module 15 outputs a disturbance voltage to the input switch 13, the first voltage waveform at the first end of the input switch 13 and the second voltage waveform at the second end of the input switch 13 are acquired simultaneously again. The voltage waveforms at both ends of the input switch 13 can be found in the detailed description in S212, which will not be repeated here.
[0054] S313 determines that the input switch 13 is faulty when the first voltage waveform and the second voltage waveform match.
[0055] In some embodiments, when the difference between the amplitude of the first voltage waveform and the amplitude of the second voltage waveform is less than or equal to an amplitude threshold, and / or when the difference between the phase of the first voltage waveform and the phase of the second voltage waveform is less than or equal to a phase threshold, it is determined that the first voltage waveform and the second voltage waveform are matched, thereby determining that the input switch 13 is faulty, that is, the input switch 13 is in a connected state at this time, and the input switch 13 may be stuck together, causing a conductive connection between the first and second terminals of the input switch 13. It should be understood that when either the difference between the amplitude of the first voltage waveform and the amplitude of the second voltage waveform is less than or equal to an amplitude threshold, or when the difference between the phase of the first voltage waveform and the phase of the second voltage waveform is less than or equal to a phase threshold, or both conditions are met, it can be determined that the first voltage waveform and the second voltage waveform are matched. It can be understood that when the input switch 13 is stuck together, the AC power output by the power conversion module 15 can be output to the AC input port 11 through the stuck input switch 13, which is prone to leakage current problems. Therefore, protective measures need to be taken to protect the electronic equipment 100.
[0056] In one embodiment, the input switch detection method further includes: after determining that the input switch 13 is faulty, sending a stop control signal to the power conversion module 15 to cause the power conversion module 15 to stop working.
[0057] Specifically, when the input switch 13 is confirmed to be faulty, a stop control signal is sent to the power conversion module 15 to stop the power conversion module 15 from working, that is, to stop outputting AC power to the AC output port 12 and the AC input port 11, thereby preventing the leakage of AC input port 11 from continuing to occur and improving the safety of electronic equipment.
[0058] In one embodiment, the method for detecting the input switch further includes sending a prompt signal after determining that the input switch 13 is faulty.
[0059] Specifically, once a fault is determined in input switch 13, a prompt signal can be sent to the electronic device system to report the fault in input switch 13. In some embodiments, sending a stop control signal to power conversion module 15 and sending a prompt signal can be performed simultaneously; alternatively, sending a stop control signal to power conversion module 15 and sending a prompt signal can be performed sequentially, i.e., sending a stop control signal to power conversion module 15 followed by sending a prompt signal.
[0060] In one embodiment, reference Figure 4 As shown, the input switch detection method may further include steps S411 to S414.
[0061] S411 When AC power is connected to AC input port 11, a second conduction signal and a second drive signal are generated. The second conduction signal is used to control the input switch 13 to conduct, and the second drive signal is used to control the power conversion module 15 to convert the AC power supply and output it to DC power supply 16.
[0062] In some embodiments, the AC input port 11 is connected to an AC power source, generating a second conduction signal to control the input switch 13 to conduct, and generating a second drive signal to control the power conversion module 15 to convert the AC power supplied by the AC power source into DC power and output it to the DC power source 16, so as to charge the DC power source 16.
[0063] S412, acquire the third voltage waveform at the first terminal of the output switch 14 and the fourth voltage waveform at the second terminal of the output switch 14.
[0064] In some embodiments, a third voltage waveform at the first terminal of the output switch 14 and a fourth voltage waveform at the second terminal of the output switch 14 are simultaneously acquired. The third voltage waveform is a complete waveform of the third voltage at the first terminal of the output switch 14, and the fourth voltage waveform is a complete waveform of the fourth voltage at the second terminal of the output switch 14. The acquisition of the voltage waveforms across the output switch 14 can be found in the detailed description in S212, and will not be repeated here.
[0065] S413 determines that the output switch 14 is faulty when the third voltage waveform and the fourth voltage waveform match.
[0066] In some embodiments, the third voltage waveform at the first terminal of the output switch 14 and the fourth voltage waveform at the second terminal of the output switch 14 can be compared.
[0067] In some embodiments, it can be determined whether the third voltage waveform and the fourth voltage waveform match by comparing the amplitude of the third voltage waveform with the amplitude of the fourth voltage waveform, and / or by comparing the phase of the third voltage waveform with the phase of the fourth voltage waveform.
[0068] In some embodiments, when the difference between the amplitude of the third voltage waveform and the amplitude of the fourth voltage waveform is less than or equal to an amplitude threshold, and / or when the difference between the phase of the third voltage waveform and the phase of the fourth voltage waveform is less than or equal to a phase threshold, it is determined that the third voltage waveform and the fourth voltage waveform are matched, thereby determining that the output switch 14 is faulty, that is, the output switch 14 is in a connected state at this time, and the output switch 14 may be stuck together, resulting in a conductive connection between the first and second terminals of the output switch 14. It can be understood that when the output switch 14 is stuck together, the AC power connected to the AC input port 11 can be output to the AC output port 12 through the conductive input switch 13 and the stuck output switch 14, which can easily cause leakage problems.
[0069] S414 After determining that the output 13 switch is faulty, a first disconnect signal and a stop control signal are generated. The first disconnect signal is used to control the input switch 13 to disconnect, and the stop control signal is used to control the power conversion module 15 to stop working.
[0070] When a fault is detected in output switch 14, a first disconnect signal is generated to control input switch 13 to disconnect, and a stop control signal is generated to control power conversion module 15 to stop working. This prevents AC power connected to AC input port 11 from being output to AC output port 12, thus avoiding further leakage at AC output port 12 and improving the safety of the electronic equipment. A stop control signal is also generated to control power conversion module 15 to stop working.
[0071] Please see Figure 5 This is a flowchart of an input switch detection method provided in another embodiment of this application. When Figure 2 After steps S211, S212 and S213 of the input switch detection method shown, the input switch detection method may include steps S511 to S512.
[0072] S511, when the voltage at the first terminal of the input switch 13 increases, a stop control signal and a second turn-on signal are generated. The stop control signal is used to control the power conversion module 15 to stop working, and the second turn-on signal is used to control the input switch 13 to turn on.
[0073] In some embodiments, when the voltage at the first terminal of the input switch 13 increases, for example, when the voltage at the first terminal of the input switch 13 changes from zero to one, the AC input port 11 may be connected to an AC power source, generating a stop control signal to control the power conversion module 15 to stop working, that is, to control the power conversion module 15 to stop converting the power supply of the DC power source 16 to AC power output; generating a second conduction signal to control the input switch 13 to conduct, so that the AC power connected to the AC input port 11 can supply power to the AC load through the input switch 13 and the output switch 14. At this time, the electronic device 100 can enter the bypass mode.
[0074] S512 When the power of DC power supply 16 is less than or equal to a preset power threshold, a second drive signal is generated. The second drive signal is used to control the power conversion module 15 to convert the AC power supply and output it to DC power supply 16.
[0075] After an AC power source is connected to the AC input port 11, when the power level of the DC power source 16 is less than or equal to a preset power threshold (for example, by detecting that the power level of the DC power source 16 is less than or equal to the preset power threshold), it indicates that the DC power source 16 needs to be charged. A second drive signal is then generated to control the power conversion module 15 to convert the AC power from the AC power source into DC power and output it to the DC power source 16 to charge the DC power source 16. In other words, the AC power source connected to the AC input port 11 can simultaneously supply power to the AC load and charge the DC power source 16.
[0076] S513 When the voltage at the first terminal of the input switch 13 decreases, a first disconnect signal and a first drive signal are generated. The first disconnect signal is used to control the input switch 13 to disconnect, and the first drive signal is used to control the power conversion module 15 to convert the power supply of the DC power supply 16 and output it to the AC output port 12.
[0077] In some embodiments, when the voltage at the first terminal of the input switch 13 decreases (e.g., the voltage at the first terminal of the input switch 13 changes from positive to negative), the AC input port 11 may be disconnected from the AC power supply. A first disconnection signal is generated to control the input switch 13 to disconnect; a first drive signal is also generated to control the power conversion module 15 to convert the DC power supply 16 into AC power and output it to the AC output port 12, thereby supplying power to the AC load. That is, when the AC input port 11 may be disconnected from the AC power supply, the power conversion module 15 resumes power supply to the AC load while simultaneously disconnecting the input switch 13, maintaining protection for the AC input port 11.
[0078] This application provides a port leakage current detection circuit 200, applied to an electronic device 100. The port leakage current detection circuit 200 includes a voltage sampling device 21 and a controller 22.
[0079] In one embodiment, when the port leakage detection circuit 200 needs to detect the input switch 13, refer to Figure 6 As shown, the first terminal of the voltage sampling device 21 is connected to the first terminal of the input switch 13, and the second terminal of the voltage sampling device 21 is connected to the second terminal of the input switch 13. The voltage sampling device 21 can be used to acquire the voltage waveform across the input switch 13. The controller 22 is connected to the input switch 13 and is used to control the on / off state of the input switch 13. The controller 22 is connected to the output switch 14 and can be used to control the on / off state of the output switch 14. The controller 22 is connected to the power conversion module 15 and can be used to control the start / stop of the power conversion module 15.
[0080] In one embodiment, when the port leakage detection circuit 200 needs to detect the output switch 14, please refer to... Figure 7 The first terminal of the voltage sampling device 21 is connected to the first terminal of the output switch 14, and the second terminal of the voltage sampling device 21 is connected to the second terminal of the output switch 14. The voltage sampling device 21 can be used to acquire the voltage waveform across the output switch 14. Furthermore, Figure 7 The port leakage detection circuit 200 shown is... Figure 6 The components and connection structure of the port leakage detection circuit 200 shown are the same as those of the electronic device 100, and will not be described again here.
[0081] In some embodiments, the controller 22 may be, but is not limited to, a microprocessor that can integrate functions such as signal or data acquisition, computation and processing, analysis and judgment and decision-making, and issue control commands.
[0082] Figure 6 and Figure 7 When the port leakage detection circuit 200 shown is applied to the electronic device 100, it can perform the input switch detection method in the above embodiments.
[0083] Please see Figure 8 This application also provides an input switch detection device 600. The detection device 600 includes a processor 610 and a memory 620.
[0084] It is understood that the detection device 600 can be applied to the electronic device 100 described above to execute the input switch detection method in the above embodiments. In this embodiment, the memory 620 is used to store computer execution instructions. When the electronic device 600 is running, the processor 610 can execute the computer execution instructions stored in the memory 620 to execute the input switch detection method in the above embodiments.
[0085] This embodiment also provides a computer storage medium storing computer instructions. When the computer-readable instructions are executed by a processor, the input switch detection method in the above embodiments is implemented.
[0086] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the input switch detection method in the above embodiments.
[0087] It is understood that the apparatus, electronic device, computer storage medium, and computer program product provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0088] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0089] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units 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 an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0090] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or as a software functional unit.
[0091] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROMs, magnetic disks, or optical disks.
[0092] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, any appropriate changes and variations made to the above embodiments within the essential spirit and scope of this application should fall within the scope of protection claimed by this application.
Claims
1. A method of detecting an input switch, characterized by, The application is applied to an electronic device, which comprises an AC input port, an AC output port, an input switch, an output switch and a power conversion module, a first end of the input switch is connected with the AC input port, a second end of the input switch is connected with a first end of the power conversion module, and a second end of the power conversion module is used for connecting a DC power supply; a first end of the output switch is connected with the output port, a second end of the output switch is connected with the second end of the input switch, and the method comprises: when the AC output port is connected with an AC load, generating a first conduction signal and a first drive signal; the first conduction signal is used for controlling the output switch to be turned on; and the first drive signal is used for controlling the power conversion module to convert the power supply of the DC power supply and then output to the AC output port; obtaining a first voltage waveform of the first end of the input switch and a second voltage waveform of the second end of the input switch; when the first voltage waveform and the second voltage waveform do not match, determining that the input switch is in an off state; when the first voltage waveform and the second voltage waveform match, outputting a first control signal to the power conversion module, so that the power conversion module outputs a disturbance voltage to the input switch; the disturbance voltage has a waveform that does not match the AC power input by the AC input port; the waveform of the disturbance voltage has a preset amplitude difference from the waveform of the AC power input by the AC input port; or the waveform of the disturbance voltage has a preset phase difference from the waveform of the AC power input by the AC input port; obtaining a first voltage waveform of the first end of the input switch and a second voltage waveform of the second end of the input switch; when the first voltage waveform and the second voltage waveform match, determining that the input switch is faulty.
2. The input switch detection method according to claim 1, wherein The detection method of the input switch further comprises: when the difference between the amplitude of the first voltage waveform and the amplitude of the second voltage waveform is less than or equal to an amplitude threshold, and / or, when the difference between the phase of the first voltage waveform and the phase of the second voltage waveform is less than or equal to a phase threshold; determining that the first voltage waveform and the second voltage waveform match.
3. The input switch detection method according to claim 1, characterized by, The disturbance voltage has a waveform that does not match the AC power input by the AC input port, which comprises: the waveform of the disturbance voltage has a preset amplitude difference from the waveform of the AC power input by the AC input port, or the waveform of the disturbance voltage has a preset phase difference from the waveform of the AC power input by the AC input port.
4. The input switch detection method according to claim 1, wherein The detection method of the input switch further comprises: when the AC input port is connected with a power supply, generating a second conduction signal; the second conduction signal is used for controlling the input switch to be turned on; obtaining a third voltage waveform of the first end of the output switch and a fourth voltage waveform of the second end of the output switch; when the third voltage waveform and the fourth voltage waveform match, determining that the output switch is faulty.
5. The input switch detection method according to claim 1, wherein After determining that the input switch is faulty, the detection method of the output switch further comprises: sending a stop control signal to the power conversion module, so that the power conversion module stops working.
6. An input switch detection apparatus characterized by comprising: The detection device of the input switch comprises a memory and a processor; The memory is configured to store program instructions; The processor is configured to read the program instructions stored in the memory to implement the input switch detection method according to any one of claims 1 to 5.
7. A port leakage detection circuit, comprising: The port leakage detection circuit is applied to an electronic device, and the port leakage detection circuit comprises: A controller; A voltage sampling device, and the controller is configured to control the voltage sampling device to implement the input switch detection method according to any one of claims 1 to 5.
8. An electronic device, comprising: The electronic device comprises a direct-current power supply and the port leakage detection circuit according to claim 7, and the port leakage detection circuit is electrically connected to the direct-current power supply.
9. A computer storage medium, characterized in that The computer storage medium stores computer readable instructions, and the computer readable instructions are executed by a processor to implement the input switch detection method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Detection device
CN112147495A
AC switch detection method and device, energy storage converter and storage medium
CN115629305A