Leakage detection device, leakage detection method and automobile charging equipment

By using a leakage detection device in electric vehicle charging equipment to sense the current and voltage of the target resistor to ensure that the simulated leakage current waveform is consistent with the real waveform, the problem of leakage protection function failure in the existing technology is solved and the safety of the charging equipment is improved. and accuracy.

CN114779118BActive Publication Date: 2024-10-11CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210418107.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-20
Publication Date
2024-10-11
Estimated Expiration
2042-04-20

AI Technical Summary

Technical Problem

When existing electric vehicle charging equipment performs leakage self-test, the simulated leakage waveform is inconsistent with the actual leakage current waveform of the power grid, resulting in a greater risk of failure of the leakage protection function, and there is no effective solution yet.

Method used

A leakage detection device is designed. By connecting the target resistor between the transmission lines, and using the first induction circuit and the second induction circuit to sense the current and voltage flowing through the target resistor, the second leakage detection device is determined based on the target voltage. current, thereby realizing leakage detection to ensure that the simulated leakage current waveform is consistent with the real waveform.

Benefits of technology

It reduces the risk of leakage protection function failure, improves the safety and reliability of charging equipment, and ensures the accuracy of leakage detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114779118B_ABST
    Figure CN114779118B_ABST
Patent Text Reader

Abstract

The present invention discloses a leakage detection device, a leakage detection method and a car charging device. The device includes: a target resistor connected between two transmission lines, the two transmission lines are used to transmit the power output by the charging device to the load; a first sensing circuit, used to sense a first current flowing through the target resistor; a second sensing circuit, used to sense a target voltage across the target resistor; a controller, connected to the first sensing circuit and the second sensing circuit, used to determine a second current flowing through the target resistor based on the target voltage, and obtain a leakage detection result based on the first current and the second current. The present invention solves the technical problem in the related art that the leakage protection function of the charging device has a high risk of failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of new energy vehicles, and in particular to a leakage detection device, a leakage detection method and a vehicle charging device. Background Art

[0002] Existing electric vehicle charging equipment is required to have a leakage protection function. In order to ensure that the leakage protection function can normally play the greatest role in protecting personal safety during the charging process of the electric vehicle, a leakage protection function test will be performed after the equipment is powered on. However, the leakage protection function of the existing charging equipment uses a simulated leakage waveform that is inconsistent with the actual leakage current waveform of the power grid during the leakage self-test, and there is a risk that the leakage self-test is successful but the leakage protection function fails.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a leakage detection device, a leakage detection method and a vehicle charging device, so as to at least solve the technical problem in the related art that the leakage protection function of the charging device has a high risk of failure.

[0005] According to one aspect of an embodiment of the present invention, there is provided a leakage detection device, comprising: a target resistor, connected between two transmission lines, the two transmission lines being used to transmit the power output by a charging device to a load; a first sensing circuit, being used to sense a first current flowing through the target resistor; a second sensing circuit, being used to sense a target voltage across the target resistor; and a controller, being connected to the first sensing circuit and the second sensing circuit, and being used to determine a second current flowing through the target resistor based on the target voltage, and to obtain a leakage detection result based on the first current and the second current.

[0006] Optionally, the second sensing circuit includes: a voltage transformer, used to sense the induced voltage across the target resistor; a voltage sampling circuit, wherein the first end of the voltage sampling circuit is connected to the output end of the voltage transformer, and the second end of the voltage sampling circuit is connected to the controller, and the voltage sampling circuit is used to sample the induced voltage to obtain the target voltage.

[0007] Optionally, the voltage sampling circuit includes: a first operational amplifier, a first input terminal of the first operational amplifier is connected to a first terminal of the voltage sampling circuit, a second input terminal of the first operational amplifier is connected to an output terminal of the first operational amplifier, an output terminal of the first operational amplifier is connected to a second terminal of the voltage sampling circuit, and the second terminal of the voltage sampling circuit is connected to a first DC voltage.

[0008] Optionally, the first sensing circuit includes: a current transformer, used to sense the induced current flowing through the target resistor; a sampling resistor, connected between two output ends of the current transformer; a differential amplifier circuit, the first end and the second end of the differential amplifier circuit are connected to the first end and the second end of the sampling resistor, and the third end of the differential amplifier circuit is connected to the controller.

[0009] Optionally, the differential amplifier circuit includes: a second operational amplifier, a first input terminal of the second operational amplifier is connected to the first end of the sampling resistor, a second input terminal of the second operational amplifier is connected to the second end of the sampling resistor and the output terminal of the second operational amplifier, and the output terminal of the second operational amplifier is connected to the third end of the differential amplifier circuit.

[0010] Optionally, the device also includes: a first control circuit, a first end of the first control circuit is connected to the controller, a second end of the control circuit is connected to the first transmission line, and a third end of the first control circuit is connected to the target resistance; the controller is used to control the first control circuit to be turned on in at least one of the following situations: after the charging device is powered on; before the charging device charges the load; after the charging device charges the load.

[0011] Optionally, the first control circuit includes: a photocoupler, a first input end of the photocoupler is connected to the first end of the first control circuit, a second input end of the photocoupler is grounded, a first output end of the photocoupler is connected to the second end of the first control circuit, and a second output end of the photocoupler is connected to the third end of the first control circuit.

[0012] Optionally, the device also includes: a first relay, connected in series on the first transmission line of the two transmission lines; a second relay, connected in series on the first transmission line of the two transmission lines; a controller, connected to the first relay and the second relay, for controlling the first relay and the second relay to be turned on in response to the leakage detection result being that the leakage detection passes, and controlling the first relay and the second relay to be disconnected in response to the leakage detection result being that the leakage detection fails.

[0013] Optionally, the device further includes: at least one LED; and a second control circuit connected to the at least one LED and the controller, and configured to control a target LED in the at least one LED to emit light based on a control instruction output by the controller.

[0014] According to another aspect of an embodiment of the present invention, a leakage detection method is also provided, including: obtaining a first current sensed flowing through a target resistor, and a target voltage across the target resistor, wherein the target resistor is connected between two transmission lines, and the two transmission lines are used to transmit the power output by a charging device to a load; based on the target voltage, determining a second current flowing through the target resistor; and obtaining a leakage detection result based on the first current and the second current.

[0015] Optionally, the first current and the target voltage are obtained in at least one of the following situations: after the charging device is powered on; before the charging device charges the load; after the charging device charges the load.

[0016] Optionally, based on the first current and the second current, a leakage detection result is obtained, including: obtaining the difference between the first current and the second current to obtain a current error; in response to the current error being less than or equal to a preset error, determining that the leakage detection result is a leakage detection pass; in response to the current error being greater than a preset error, determining that the leakage detection result is a leakage detection fail.

[0017] Optionally, after obtaining the leakage detection result based on the first current and the second current, the method also includes: in response to the leakage detection result being that the leakage detection passes, controlling the connection between the charging device and the load is turned on; in response to the leakage detection result being that the leakage detection fails, controlling the connection between the charging device and the load is turned off.

[0018] Optionally, after obtaining the leakage detection result based on the first current and the second current, the method further includes: in response to the leakage detection result being that the leakage detection passes, controlling the first LED to emit light; in response to the leakage detection result being that the leakage detection fails, controlling the second LED to emit light.

[0019] According to another aspect of the embodiments of the present invention, there is further provided a vehicle charging device, comprising: the leakage detection device of any one of the above embodiments.

[0020] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, the computer-readable storage medium including a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the leakage detection methods in the above embodiments.

[0021] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the leakage detection method of any one of the above embodiments is executed when the program is run.

[0022] In an embodiment of the present invention, the leakage detection device may include: a target resistor, connected between two transmission lines, the two transmission lines are used to transmit the power output by the charging device to the load; a first sensing circuit, used to sense the first current flowing through the target resistor; a second sensing circuit, used to sense the target voltage across the target resistor; a controller, connected to the first sensing circuit and the second sensing circuit, used to determine the second current flowing through the target resistor based on the target voltage, and obtain the leakage detection result based on the first current and the second current. It is easy to notice that the target voltage across the target resistor is sensed by the second sensing circuit, and then the second current is calculated according to the target voltage, and leakage detection is performed by the second current, so that the second current is generated by the current grid voltage applied to the resistor, and the simulated leakage current waveform is consistent with the real waveform during leakage detection, achieving the technical effect of reducing the risk of failure of the leakage protection function, thereby solving the technical problem of the high risk of failure of the leakage protection function of the charging device in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0024] Figure 1 is a schematic structural diagram of a leakage detection device according to an embodiment of the present invention;

[0025] Figure 2 is a schematic diagram of the actual structure of an optional leakage detection device according to an embodiment of the present invention;

[0026] Figure 3 is a schematic structural diagram of an optional second sensing circuit according to an embodiment of the present invention;

[0027] Figure 4 is a schematic diagram of an actual structure of an optional second induction circuit according to an embodiment of the present invention;

[0028] Figure 5 is a schematic structural diagram of an optional first induction circuit according to an embodiment of the present invention;

[0029] Figure 6 is a schematic diagram of an actual structure of an optional first induction circuit according to an embodiment of the present invention;

[0030] Figure 7 is a schematic structural diagram of an optional first control circuit according to an embodiment of the present invention;

[0031] Figure 8 is a schematic diagram of an actual structure of an optional first control circuit according to an embodiment of the present invention;

[0032] Fig. 9 A leakage detection method according to an embodiment of the present invention;

[0033] Fig.10 It is a flowchart of specific implementation steps of an optional leakage detection method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] Example 1

[0037] According to one aspect of an embodiment of the present invention, a pre-charging device is provided.

[0038] Figure 1 is a schematic diagram of the structure of a leakage detection device according to an embodiment of the present invention. Figure 1 As shown, the leakage detection device includes the following parts: a target resistor 10 , a first sensing circuit 12 , a second sensing circuit 14 and a controller 16 .

[0039] Wherein, the target resistor 10 is connected between two transmission lines (such as Figure 1The two transmission lines are used to transmit the power output by the charging device (not shown in the figure) to the load (not shown in the figure); the first sensing circuit is used to sense the first current flowing through the target resistor; the second sensing circuit is used to sense the target voltage across the target resistor; the controller is connected to the first sensing circuit and the second sensing circuit, and is used to determine the second current flowing through the target resistor based on the target voltage, and obtain the leakage detection result based on the first current and the second current.

[0040] The above-mentioned target resistor can be a resistor connected between the L line and the N line to realize leakage detection. The specific resistance value can be set according to the needs of the user. In this embodiment, 10KΩ is used as an example for explanation. The first sensing circuit can sense the first current flowing through the target resistor through the current transformer connected to the L line and the N line, and the second sensing circuit can sense the target voltage across the target resistor through the voltage transformer connected to the L line and the N line. The real voltage loaded on the target resistor by the current power grid can be sensed by the second sensing circuit, so that the current waveform of the second current determined by the controller based on the target voltage is consistent with the real waveform, and then the controller can obtain a leakage detection result with higher accuracy by comparing the first current and the second current.

[0041] In an optional embodiment, if Figure 2 As shown, the leakage detection device can be composed of a resistor R1 (i.e., a target resistor), a first induction circuit 12, a second induction circuit 14, and an MCU control module 16 (i.e., a controller), wherein the resistor R1 is connected between the L line and the N line through an isolating switch K3. After the charging device is powered on, the grid voltage is loaded on the resistor R1, and the current flowing through the resistor R1 is I3 (i.e., the first current), that is, the sum of the currents of the L line current I1 and the N line current I2 passing through the first induction circuit is I3; at the same time, the first induction circuit can collect the voltage Uin across the resistor R1. Thus, the MCU control module 16 can sample the leakage current I3 through the first induction current, and calculate the simulated leakage current In=Uin / R1 (i.e., the second current), and then compare In with I3. If the error is less than or equal to 1mA, the leakage detection result is determined to be passed; otherwise, the leakage detection result is determined to be failed.

[0042] In an embodiment of the present invention, the leakage detection device may include: a target resistor, connected between two transmission lines, the two transmission lines are used to transmit the power output by the charging device to the load; a first sensing circuit, used to sense the first current flowing through the target resistor; a second sensing circuit, used to sense the target voltage across the target resistor; a controller, connected to the first sensing circuit and the second sensing circuit, used to determine the second current flowing through the target resistor based on the target voltage, and obtain the leakage detection result based on the first current and the second current. It is easy to notice that the target voltage across the target resistor is sensed by the second sensing circuit, and then the second current is calculated according to the target voltage, and leakage detection is performed by the second current, so that the second current is generated by the current grid voltage applied to the resistor, and the simulated leakage current waveform is consistent with the real waveform during leakage detection, achieving the technical effect of reducing the risk of failure of the leakage protection function, thereby solving the technical problem of the high risk of failure of the leakage protection function of the charging device in the related art.

[0043] Alternatively, if Figure 3 As shown, the second induction circuit 14 includes: a voltage transformer 142 and a voltage sampling circuit 144 .

[0044] Among them, the voltage transformer is used to sense the induced voltage across the target resistor; the first end of the voltage sampling circuit is connected to the output end of the voltage transformer, the second end of the voltage sampling circuit is connected to the controller, and the voltage sampling circuit is used to sample the induced voltage to obtain the target voltage.

[0045] The above-mentioned voltage transformer can convert the high voltage into a standard secondary voltage of 100V or lower in proportion. The specific proportion can be determined according to the actual situation and is not specifically limited in this embodiment. Since the voltage value sensed by the voltage transformer may be low and cannot meet the detection requirements of the controller, the induced voltage can be sampled by the above-mentioned voltage sampling circuit, and the voltage can be amplified by the operational amplifier to obtain the target voltage that can be recognized by the controller.

[0046] In an optional embodiment, if Figure 2 As shown, the second induction circuit 14 includes: a voltage transformer 142 and an input voltage sampling circuit 144 (i.e., a voltage sampling circuit). The voltage transformer 142 can convert the voltage across the resistor R1 into an induction voltage in proportion, and output it to the input voltage sampling circuit 144. The input voltage sampling circuit 144 can amplify the induction voltage through an operational amplifier to obtain a target voltage.

[0047] Optionally, the voltage sampling circuit includes: a first operational amplifier, a first input terminal of the first operational amplifier is connected to a first terminal of the voltage sampling circuit, a second input terminal of the first operational amplifier is connected to an output terminal of the first operational amplifier, and an output terminal of the first operational amplifier is connected to a second terminal of the voltage sampling circuit.

[0048] The first operational amplifier can amplify and sample the induced voltage after being induced by the voltage transformer.

[0049] In an optional embodiment, if Figure 4 As shown, the voltage sampling circuit 144 may include: an operational amplifier IC2D (i.e., a first operational amplifier), a resistor R3, and a capacitor C1, wherein the positive input terminal (i.e., the first input terminal) of the operational amplifier IC2D is connected to an output terminal of the voltage transformer 142 through the resistor R3, the positive input terminal of the operational amplifier IC2D is grounded through the capacitor R1, the negative input terminal of the operational amplifier IC2D is connected to the output terminal of the operational amplifier IC2D, and the output terminal of the operational amplifier IC2D is connected to the ai_pt port of the controller. Through the first operational amplifier provided in the voltage sampling circuit, the induced voltage can be amplified and sampled to obtain the target voltage.

[0050] It should be noted that the specific circuit structure of the voltage sampling circuit can be added or deleted according to actual needs. For example, a resistor can be connected in series between the output end of the operational amplifier IC2D and the ai_pt port of the controller, and the ai_pt port of the controller can be grounded through a capacitor. In addition, a resistor and a capacitor can be connected in parallel between the two output ends of the voltage transformer.

[0051] Alternatively, if Figure 5 As shown, the first sensing circuit 12 includes: a current transformer 122, a sampling resistor 124 and a differential amplifier circuit 126. The current transformer is used to sense the induced current flowing through the target resistor; the sampling resistor is connected between the two output terminals of the current transformer; the first terminal and the second terminal of the differential amplifier circuit are connected to the first terminal and the second terminal of the sampling resistor, and the third terminal of the differential amplifier circuit is connected to the controller.

[0052] The above-mentioned current transformer can convert a large current into a small current in the secondary circuit in a proportional relationship, which is convenient for measuring the current. The specific proportional relationship can be determined according to actual conditions. In this embodiment, 1000:1 is taken as an example for explanation.

[0053] The above-mentioned sampling resistor can convert the induced current output by the current transformer into a voltage value across the sampling resistor, and then transmit it to the port of the controller for processing. The user can set it according to needs. In this embodiment, 510Ω is used as an example for explanation.

[0054] The above-mentioned differential amplifier circuit can perform differential amplification sampling on the voltage across the sampling resistor to obtain the first current. The amplification value of the differential amplifier circuit is not specifically limited and can be set by the user according to the needs. In this embodiment, 100 / 3 is taken as an example for explanation.

[0055] In an optional embodiment, if Figure 2 As shown, the first sensing circuit 12 may include: a current transformer 122, a resistor R2 (i.e., a sampling resistor) and a differential amplifier circuit 126, wherein the current transformer 122 may convert a large current into a small current in a secondary circuit in proportion to facilitate current measurement, the resistor R2 is connected in parallel between two output ends of the current transformer 122, and the two output ends of the current transformer 122 are respectively connected to a first end and a second end of the differential amplifier circuit 126, the differential amplifier circuit may differentially amplify the voltage value of the resistor R2, and transmit the amplified voltage to the controller, so that the controller may calculate the first current through the amplified voltage.

[0056] Optionally, the differential amplifier circuit includes: a second operational amplifier, a first input terminal of the second operational amplifier is connected to the first end of the sampling resistor, a second input terminal of the second operational amplifier is connected to the second end of the sampling resistor and the output terminal of the second operational amplifier, and the output terminal of the second operational amplifier is connected to the third end of the differential amplifier circuit.

[0057] The second operational amplifier circuit can amplify and sample the voltage across the sampling resistor, thereby obtaining the first current.

[0058] In an optional embodiment, if Figure 6 As shown, the differential amplifier circuit includes an operational amplifier UIA (i.e., a second amplifier), the two input terminals of the operational amplifier UIA are respectively connected to the two output terminals of the leakage transformer, a capacitor C2 and a resistor R2 are connected in parallel between the two output terminals of the leakage transformer, and the output terminal of the operational amplifier UIA is connected to the AD_LC port of the controller. The operational amplifier UIA can obtain the voltage value across the resistor R2 by calculating the voltage difference between the two input terminals, and transmit it to the controller after amplification, so that the controller can calculate the first current based on the sampled voltage and the resistance value of the resistor R2.

[0059] It should be noted that the specific circuit structure of the differential amplifier circuit can be added or deleted according to actual needs. For example, other resistors can be connected in series between the two input terminals of the operational amplifier UIA and the resistor R2. The positive input terminal of the operational amplifier UIA can also be connected to other DC power supplies through a resistor. The negative input terminal of the operational amplifier UIA can be connected to the output terminal of the operational amplifier UIA through a resistor. The output terminal of the operational amplifier UIA can be connected to the AD_LC port of the controller through a resistor and grounded through a capacitor.

[0060] Optionally, the device also includes: a first control circuit, wherein a first end of the first control circuit is connected to the controller, a second end of the control circuit is connected to the first transmission line, and a third end of the first control circuit is connected to the target resistance; the controller is used to control the first control circuit to be turned on in at least one of the following situations: after the charging device is powered on; before the charging device charges the load; after the charging device charges the load.

[0061] The first control circuit is controlled by a controller and can conduct electricity between the charging device and the load. The first transmission line can be an L line.

[0062] In an optional embodiment, the leakage detection device does not need to perform leakage detection all the time. Therefore, a first control circuit can be set. When leakage detection is required, the first control circuit is controlled to be turned on so that the target resistance is connected between the two transmission lines to achieve the purpose of leakage detection.

[0063] In addition, in the prior art, leakage self-check can only be performed once before charging, and there is a risk of failure of the leakage protection function during charging. In order to reduce the above risk, the controller can control the first control circuit to be turned on after the charging device is powered on, before and after charging, to perform leakage detection, thereby increasing the real-time performance of the leakage self-check.

[0064] Alternatively, if Figure 7 As shown, the first control circuit 18 includes: a photocoupler 182, wherein a first input terminal of the photocoupler is connected to a first terminal of the first control circuit, a second input terminal of the photocoupler is grounded, a first output terminal of the photocoupler is connected to a second terminal of the first control circuit, and a second output terminal of the photocoupler is connected to a third terminal of the first control circuit.

[0065] The two input terminals and the two output terminals of the above-mentioned photoelectric coupler are isolated from each other, have good electrical insulation and anti-interference capabilities, and can improve the signal-to-noise ratio as a terminal isolation element.

[0066] In an optional embodiment, if Figure 8As shown, the first control circuit 18 may include a photocoupler K3 and a resistor R4, wherein a first input terminal of the photocoupler K3 is connected to the controller 16 via the resistor R4, a second input terminal of the photocoupler K3 is grounded, a first output terminal of the photocoupler K3 is connected to the N line via the resistor R1, and a second output terminal of the photocoupler K3 is connected to the L line. When it is necessary to control K3 to be turned on, that is, to control R1 to be turned on with the L line and the N line, the controller may output a voltage value to drive the light-emitting diode in K3 to emit light, so that the resistance of the photoresistor is reduced, thereby achieving the purpose of turning R1 on with the L line.

[0067] Optionally, the device also includes: a first relay, connected in series on the first transmission line of the two transmission lines; a second relay, connected in series on the first transmission line of the two transmission lines; a controller, connected to the first relay and the second relay, for controlling the first relay and the second relay to be turned on in response to the leakage detection result being that the leakage detection passes, and controlling the first relay and the second relay to be disconnected in response to the leakage detection result being that the leakage detection fails.

[0068] The first relay and the second relay are controlled by a controller to achieve the purpose of controlling the connection or disconnection between the charging device and the load.

[0069] In an optional embodiment, if Figure 2 As shown, the leakage detection device also includes: a first relay K1 and a second relay K2, wherein K1 is connected in series to the L line, and K2 is connected in series to the N line. The MCU control module 16 controls the on and off of K1 and K2 through the main circuit relay control circuit 110. The main circuit relay control circuit 110 can adopt an existing circuit structure, and the present invention does not specifically limit this. The MCU control module 16 can control the second relay of the first relay in response to the leakage detection result. If the leakage detection result is passed, the controller can control the first relay and the second relay to be turned on, so that the charging device charges the load; if the leakage detection result is not passed, then the controller can control the first relay and the second relay to be turned off, so that the charging device stops charging the load, thereby achieving the effect of protecting the load.

[0070] Optionally, the device further includes: at least one LED; and a second control circuit connected to the at least one LED and the controller, and configured to control a target LED in the at least one LED to emit light based on a control instruction output by the controller.

[0071] The number of the above-mentioned LEDs can be set according to user needs. In this embodiment, one red light and one green light are used as an example for explanation. Among them, if the leakage detection result is passed, the green light will light up to allow the user to see that the charging process is normal; if the leakage detection result is not passed, the red light will light up to warn the user that there is a risk of leakage.

[0072] The second control circuit can, based on the control instruction output by the controller, cause the LED to light up a corresponding light based on the leakage detection result to remind the user whether there is a danger of leakage.

[0073] In an optional embodiment, the leakage detection device further includes: at least one LED, such as Figure 2 As shown, the MCU control module 16 controls at least one LED through the LED control circuit 112 (i.e., the second control circuit), and at least one LED is used to display the leakage detection result to remind the user whether there is a risk of leakage. The light of the LED can be set by the user. In this embodiment, the green light is on when the leakage detection result passes, and the red light is on when the leakage detection result fails.

[0074] Combination Figure 2 A preferred embodiment of the present invention is described. The leakage detection device provided by the present invention may include a resistor R1, a first control circuit 18, a second sensing circuit 14, an MCU control module 16, an LED control circuit 112, a first sensing circuit 12, relays K1 and K2, and a main circuit relay control circuit 110. The execution process of the device may include the following steps:

[0075] 1. The charging device is powered on, and the MCU control module controls the isolation switch K3 in the first control circuit 18 to close;

[0076] 2. When the leakage current transformer 122 in the first induction circuit 12 detects leakage current, the voltage signal is finally sent to the ADC pin of the MCU control module 16 through the sampling resistor R2 and the 100 / 3 differential amplifier circuit 126 through a transformation ratio of 1000:1;

[0077] 3. The MCU control module 16 calculates the leakage current I3 collected by the current transformer 122;

[0078] 4. The input voltage sampling loop 144 in the second sensing circuit 14 transmits the voltage signal output by the voltage transformer 142 to the MCU control module 16, and the MCU control module 16 calculates the simulated leakage current In;

[0079] 5. Compare In and I3. If the error is ≤1mA, the leakage detection is successful and the indicator light is green; otherwise, the leakage detection fails and the indicator light is red.

[0080] 6. To ensure the reliability of the leakage protection function of the charging equipment, leakage detection needs to be performed during the initialization phase of the charging equipment, before charging, and during charging. The specific control strategy is as follows: Fig.10 way.

[0081] Example 2

[0082] According to another aspect of an embodiment of the present invention, a leakage detection method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0083] Fig. 9 is a leakage detection method according to an embodiment of the present invention, such as Fig. 9 As shown, the method comprises the following steps:

[0084] Step S902, obtaining a first current sensed to flow through a target resistor and a target voltage across the target resistor, wherein the target resistor is connected between two transmission lines, and the two transmission lines are used to transmit the power output by the charging device to the load;

[0085] Step S904, determining a second current flowing through the target resistance based on the target voltage;

[0086] Step S906, obtaining a leakage detection result based on the first current and the second current.

[0087] The above-mentioned target resistance can be a resistance between the neutral line and the live line that acts as a protection circuit. The first current can be a current that flows through the target resistance and is obtained after differential amplification by the first sensing circuit. The target voltage can be a voltage obtained after the input voltage provided by the charging device is sensed and sampled by the second sensing circuit. The simulated leakage current can be calculated through the target voltage and the resistance value of the target resistance, and a simulated leakage current waveform consistent with the actual leakage current waveform of the power grid can be obtained, which can improve the accuracy of leakage detection.

[0088] The above-mentioned second current can be a simulated current calculated by the target voltage and the resistance value of the target resistor. Through the simulated current, a simulated leakage current waveform consistent with the actual leakage current waveform of the power grid can be obtained, which can improve the accuracy of leakage detection.

[0089] The above leakage detection results can be leakage detection passed or leakage detection failed, which is obtained by comparing the first current and the second current. If the current difference is less than the threshold, the leakage detection passes; if the current difference is greater than the preset threshold, the leakage detection fails, wherein the preset threshold is a current value set in advance by the user for detecting the current difference, which can be set according to user needs. This embodiment is described using 1 milliampere (mA) as an example.

[0090] In an optional embodiment, first, the current (i.e., the first current) flowing through the target resistor and differentially amplified by the first sensing circuit and the voltage (i.e., the target voltage) across the target resistor after sensing and sampling by the second sensing circuit can be obtained, wherein the target resistor is connected between two transmission lines, and the two transmission lines are used to transmit the power output by the charging device to the load. Secondly, the analog current (i.e., the second current) can be calculated through the target voltage and the resistance value of the target resistor. Finally, the first current is compared with the second current to obtain a leakage detection result, wherein the leakage detection result is leakage detection passed and leakage detection failed.

[0091] Optionally, the first current and the target voltage are obtained in at least one of the following situations: after the charging device is powered on; before the charging device charges the load; after the charging device charges the load.

[0092] In an optional embodiment, in order to improve the real-time and accuracy of leakage detection, the method provided in this embodiment can perform leakage detection after the charging device is powered on, before the charging device charges the load, and after the charging device charges the load. Therefore, as long as any of the above conditions is met, the step of obtaining the first current and the target voltage is required.

[0093] Optionally, based on the first current and the second current, a leakage detection result is obtained, including: obtaining the difference between the first current and the second current to obtain a current error; in response to the current error being less than or equal to a preset error, determining that the leakage detection result is a leakage detection pass; in response to the current error being greater than a preset error, determining that the leakage detection result is a leakage detection fail.

[0094] The above-mentioned preset error is a current difference value set in advance by the user, which can be used to detect whether leakage occurs in the charging circuit. The specific value can be set by the user as needed. This embodiment is described by taking the preset error of 1 mA as an example.

[0095] In an optional embodiment, after obtaining the second current of the first current, the first current and the second current can be firstly differentiated to obtain a current error, and then the current error can be compared with a preset difference. If the current error is less than or equal to the preset error, then it can be determined that the leakage detection result is passed; if the current error is greater than the preset error, then it can be determined that the leakage detection result is failed; by setting the preset error, it can be accurately detected whether leakage occurs during the charging process, which can improve the accuracy of leakage detection.

[0096] Optionally, after obtaining the leakage detection result based on the first current and the second current, the method also includes: in response to the leakage detection result being that the leakage detection passes, controlling the connection between the charging device and the load is turned on; in response to the leakage detection result being that the leakage detection fails, controlling the connection between the charging device and the load is turned off.

[0097] The above-mentioned control of the connection and disconnection between the charging device and the load can be that the controller controls the connection and disconnection of the first relay and the second relay based on the leakage detection result: if the leakage detection result is passed, the controller can control both the first relay and the second relay to be connected; if the leakage detection result is not passed, the controller can control both the first relay and the second relay to be disconnected, thereby realizing the connection and disconnection between the charging device and the load.

[0098] In an optional embodiment, after obtaining a leakage detection result of passing, the controller can control both the first relay and the second relay to be turned on in response to the leakage detection passing, thereby controlling the connection between the charging device and the load to be turned on; if the leakage detection result is failing, the controller can control both the first relay and the second relay to be turned off in response to the leakage detection failing, thereby controlling the connection between the charging device and the load to be turned off.

[0099] Optionally, after obtaining the leakage detection result based on the first current and the second current, the method further includes: in response to the leakage detection result being that the leakage detection passes, controlling the first LED to emit light; in response to the leakage detection result being that the leakage detection fails, controlling the second LED to emit light.

[0100] The above-mentioned control of the first LED and the second LED to emit light may be performed by the second controller.

[0101] The first LED and the second LED can be set according to user needs. This embodiment is described by taking the first LED being green and the second LED being red as an example.

[0102] In an optional embodiment, after obtaining the leakage detection result, if the leakage detection result is that the leakage detection passed, in response to the leakage detection passed, the second controller can control the first LED to light up, so that the user can see that the charging process is normal; if the leakage detection result is that the leakage detection failed, in response to the leakage detection failed, the second controller can control the second LED to light up, so that the user can see that leakage occurred during the charging process. This embodiment can remind the user in real time whether leakage occurs during the charging process, thereby improving the real-time and accuracy of leakage detection.

[0103] Combine the following Fig.10 The method of this embodiment is further explained:

[0104] As shown in the figure, Fig.10 1 is a flowchart of specific implementation steps of an optional leakage detection method according to an embodiment of the present invention:

[0105] Step 101: Power on the system;

[0106] Step 102: K3 is closed, the first control circuit is turned on, the controller performs leakage detection, and then K3 is disconnected;

[0107] Step 103: Determine whether the leakage detection is passed. If it is passed, go to step 104. If it is not passed, charging is not allowed and the LED red light is on.

[0108] Step 104: Allow charging;

[0109] Step 105: The vehicle sends a charging request, and determines whether the request is approved. If approved, the process proceeds to step 106; if not, the process returns to step 104;

[0110] Step 106: Close K3, the first control circuit is turned on, the controller performs leakage detection, and then disconnects K3;

[0111] Step 107: Determine whether the leakage detection is passed. If it is passed, go to step 108. If it is not passed, charging is not allowed and the LED red light is on.

[0112] Step 108: Close K1 (i.e., the first relay) and K2 (the second relay) to start charging;

[0113] Step 109: Determine whether charging is finished, if finished, go to step 1010, if not finished, return to step 108;

[0114] Step 1010: Charging is completed, and K1 (i.e., the first relay) and K2 (i.e., the second relay) are disconnected;

[0115] Step 1011: K3 is closed, the first control circuit is turned on, the controller performs leakage detection, and then K3 is disconnected;

[0116] Step 1012: Determine whether the leakage detection has passed. If passed, return to step 104. If not, charging is not allowed and the red LED light is on.

[0117] Optionally, the present invention provides a real-time leakage detection method for a charging device: when the charging device is powered on, the MCU control module controls the isolation switch K3 to close, so that the input side grid voltage is added to the resistor R1. At this time, the current flowing through the resistor R1 is I3, and the sum of the live line current I1 and the neutral line current I2 passing through the leakage transformer is I3; the leakage transformer transmits the current I3 to the output pin, and after being amplified by the resistor R2 of the sampling circuit and the differential amplifier circuit, it is sent to the MCU control module; the MCU control module obtains the leakage current I3 by differential current sampling; at the same time, the MCU control module collects the input voltage through the input voltage collection circuit, and calculates the voltage value Uin, and calculates the analog The theoretical value of leakage current is In=Uin / R1; compare the simulated theoretical value of leakage current In with the leakage current sampling value I3. If the error is ≤1mA, the leakage current self-test is judged to have passed, the LED control circuit controls the green LED to light up, and the MCU control module controls relays K1 and K2 through the main loop relay control circuit to charge the product. If the error is greater than 1mA, the leakage current self-test is judged to have failed, the red LED is controlled to light up, the MCU control module controls relays K1 and K2 through the main loop relay control circuit to not allow closure, the connection between the charging device and the load is disconnected, and charging is not allowed. The leakage self-test is performed after the system is powered on, during charging, and after charging is completed.

[0118] Through the embodiments of the present invention, the charging device can perform leakage detection before, during and after charging, and the leakage current simulated by the leakage detection is completely generated by the current grid voltage applied to the resistor.

[0119] Example 3

[0120] According to another aspect of the embodiments of the present invention, there is further provided a vehicle charging device, comprising: the leakage detection device of any one of the above embodiments.

[0121] Example 4

[0122] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the leakage detection methods in the above embodiments.

[0123] Example 5

[0124] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the leakage detection method of any one of the above embodiments is executed when the program is run.

[0125] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0126] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0127] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0129] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0131] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A leakage detection method, characterized in that: include: In response to a charging device being powered on, before the charging device charges a load, or after the charging device charges the load, obtaining a first current sensed to flow through a target resistor and a target voltage across the target resistor, wherein the target resistor is connected between two transmission lines, and the two transmission lines are used to transmit the power output by the charging device to the load; determining a second current flowing through the target resistance based on the target voltage; Obtaining a leakage detection result based on the first current and the second current; Wherein, obtaining a leakage detection result based on the first current and the second current includes: Obtaining a difference between the first current and the second current to obtain a current error; In response to the current error being less than or equal to a preset error, determining that the leakage detection result is leakage detection passed; In response to the current error being greater than the preset error, determining that the leakage detection result is that the leakage detection fails; After obtaining the leakage detection result based on the first current and the second current, the method further includes: In response to the leakage detection result being that the leakage detection is passed, controlling the charging device to be connected to the load; In response to the leakage detection result being that the leakage detection fails, the charging device is controlled to be disconnected from the load.

2. A leakage detection device using the above leakage detection method, characterized in that: include: A target resistor is connected between two transmission lines, wherein the two transmission lines are used to transmit the power output by the charging device to the load; a first sensing circuit, configured to sense a first current flowing through the target resistor; a second sensing circuit, used for sensing a target voltage across the target resistor; a first control circuit, wherein a first end of the first control circuit is connected to a controller, a second end of the first control circuit is connected to a first transmission line, and a third end of the first control circuit is connected to the target resistance; The controller is connected to the first induction circuit and the second induction circuit, and is used to control the first control circuit to be turned on and determine the second current flowing through the target resistor based on the target voltage in at least one of the following situations: after the charging device is powered on, before the charging device charges the load, and after the charging device charges the load, and obtain a leakage detection result based on the first current and the second current.

3. The device according to claim 2, characterized in that The second sensing circuit comprises: A voltage transformer, used for sensing the induced voltage across the target resistor; A voltage sampling circuit, wherein a first end of the voltage sampling circuit is connected to an output end of the voltage transformer, a second end of the voltage sampling circuit is connected to the controller, and the voltage sampling circuit is used to sample the induced voltage to obtain the target voltage.

4. The device according to claim 3, characterized in that The voltage sampling circuit comprises: A first operational amplifier, wherein a first input terminal of the first operational amplifier is connected to a first terminal of the voltage sampling circuit, a second input terminal of the first operational amplifier is connected to an output terminal of the first operational amplifier, and an output terminal of the first operational amplifier is connected to a second terminal of the voltage sampling circuit.

5. The device according to claim 2, characterized in that The first sensing circuit comprises: a current transformer, used for sensing an induced current flowing through the target resistor; A sampling resistor connected between two output terminals of the current transformer; A differential amplifier circuit, wherein a first end and a second end of the differential amplifier circuit are connected to a first end and a second end of the sampling resistor, and a third end of the differential amplifier circuit is connected to the controller.

6. The device according to claim 5, characterized in that The differential amplifier circuit comprises: A second operational amplifier, wherein a first input terminal of the second operational amplifier is connected to a first terminal of the sampling resistor, a second input terminal of the second operational amplifier is connected to a second terminal of the sampling resistor and an output terminal of the second operational amplifier, and an output terminal of the second operational amplifier is connected to a third terminal of the differential amplifier circuit.

7. The device according to claim 2, characterized in that The first control circuit comprises: A photoelectric coupler, wherein a first input end of the photoelectric coupler is connected to a first end of the first control circuit, a second input end of the photoelectric coupler is grounded, a first output end of the photoelectric coupler is connected to a second end of the first control circuit, and a second output end of the photoelectric coupler is connected to a third end of the first control circuit.

8. A car charging device, characterized in that: include: A leakage detection device as claimed in any one of claims 2 to 7.