Detection Method and Apparatus for Battery System
20230400516 · 2023-12-14
Inventors
Cpc classification
G01R27/025
PHYSICS
G01R31/389
PHYSICS
G01R31/396
PHYSICS
International classification
G01R31/36
PHYSICS
G01R27/02
PHYSICS
G01R31/389
PHYSICS
Abstract
An apparatus for a battery system includes a switching unit and a processing unit. The switching unit includes a plurality of switching branches and a plurality of switching switches, where each of the plurality of switching branches includes a switching resistor, and the plurality of switching switches are configured to control the plurality of switching branches to be switched in or out between the following plurality of terminals and a reference ground: a positive electrode of a battery pack, a second terminal of a first contactor, a negative electrode of the battery pack, and a second terminal of a second contactor. The processing unit is configured to detect sampling point voltage information of the plurality of switching branches.
Claims
1. A detection apparatus comprising: a switching system comprising: a reference ground configured to connect to a vehicle body ground; and switching branches comprising switching resistors configured to control the switching branches to be switched in or out between the reference ground and a positive electrode of a battery pack, the reference ground and a first terminal of a first contactor of a battery system, the reference ground and a negative electrode of the battery pack of the battery system, and the reference ground and a second terminal of a second contactor of the battery system; and a processor configured to: detect sampling point voltage information of the switching branches, wherein the sampling point voltage information indicates sampling point voltages of the switching branches; and determine high-voltage detection information comprising a battery pack voltage U.sub.bat of the battery pack or a load voltage U.sub.load, of a load of the battery pack; determine insulation detection information comprising an insulation resistance value R.sub.p of the positive electrode or an insulation resistance value R.sub.n of the negative electrode; and determine, based on the sampling point voltage information, first contact status information of the first contactor or second contact status information of the second contactor.
2. The detection apparatus of claim 1, wherein the first contact status information indicates whether the first contactor is adhered to, and wherein the second contact status information indicates whether the second contactor is adhered to.
3. The detection apparatus of claim 1, wherein the switching system further comprises sampling branches, wherein the sampling branches comprise third terminals and fourth terminals, wherein each of the third terminals is connected to at least one of the fourth terminals, and wherein the fourth terminals are connected to the reference ground.
4. The detection apparatus of claim 3, wherein the sampling branches further comprise upsampling resistors and downsampling resistors, wherein fifth terminals of the upsampling resistors are connected to the third terminals, wherein sixth terminals of the upsampling resistors are connected to seventh terminals of the downsampling resistors, wherein eighth terminals of the downsampling resistors are connected to the reference ground, and wherein the sampling point voltages are voltages at the sixth terminals.
5. The detection apparatus of claim 1, further comprising switching switches, wherein the switching branches comprise a first switching branch, a second switching branch, a third switching branch, and a fourth switching branch, and wherein the switching switches comprise: a first switching switch configured to control the first switching branch to be switched in or out between the positive electrode and the reference ground; a second switching switch configured to control the second switching branch to be switched in or out between the negative electrode and the reference ground; a third switching switch configured to control the third switching branch to be switched in or out between the first terminal and the reference ground; and a fourth switching switch configured to control the fourth switching branch to be switched in or out between the second terminal and the reference ground.
6. The detection apparatus of claim 5, wherein the first switching branch comprises a third terminal, wherein the second switching branch comprises a fourth terminal, wherein the third switching branch comprises a fifth terminal, wherein the fourth switching branch comprises a sixth terminal, and wherein the sampling branches comprise: a first sampling branch comprising a seventh terminal connected to the third terminal and the fifth terminal; and a second sampling branch comprising an eighth terminal connected to the sixth terminal.
7. The detection apparatus of claim 6, wherein the processor is further configured to: control the switching switches to be in a working state in which the first switching switch and the second switching switch are turned on and the third switching switch and the fourth switching switch are turned off; detect, when the switching switches are in the working state, a first sampling point voltage U1 of the first switching branch and a second sampling point voltage U2 of the second switching branch; and determine the battery pack voltage U.sub.bat based on U1 and U2.
8. The detection apparatus of claim 7, wherein the first sampling branch further comprises a first switching resistor, a first upsampling resistor, and a first downsampling resistor, wherein the second sampling branch further comprises a second switching resistor, a second upsampling resistor and a second downsampling resistor, and wherein the processor is further configured to determine U.sub.bat based on the following formulas:
U.sub.bat=U.sub.p−U.sub.n
U.sub.p=U1×(R1+R.sub.11+R.sub.12)/R.sub.12
U.sub.n=U2×(R2+R.sub.21+R.sub.22)/R.sub.22, wherein U.sub.p is a positive electrode voltage of the battery pack, U.sub.n is a negative electrode voltage of the battery pack, R1 is a first resistance of the first switching resistor, R2 is a second resistance of the second switching resistor, R.sub.11 is a third resistance of the first upsampling resistor, R.sub.12 is a fourth resistance of the first downsampling resistor, R.sub.21 is a fifth resistance of the second upsampling resistor, and R.sub.22 is a sixth resistance of the second downsampling resistor.
9. The detection apparatus of claim 6, wherein the processor is further configured to: control the switching switches, the first contactor, and the second contactor to be in a working state in which the first switching switch, the second switching switch, the first contactor, and the second contactor are turned off and the third switching switch and the fourth switching switch are turned on; detect, when the switching switches, the first contactor, and the second contactor are in the working state, a third sampling point voltage U3 of the third switching branch and a fourth sampling point voltage U4 of the fourth switching branch; and determine U.sub.load based on U3 and U4.
10. The detection apparatus of claim 9, wherein the first sampling branch further comprises a first upsampling resistor and a first downsampling resistor, wherein the second sampling branch further comprises a second upsampling resistor and a second downsampling resistor, wherein the third switching branch comprises a third switching resistor, wherein the fourth switching branch comprises a fourth switching resistor, and wherein the processor is further configured to determine U.sub.load based on the following formulas:
U.sub.load=U.sub.p′−U.sub.n′
U.sub.p′=U3×(R3+R.sub.11+R.sub.12)/R.sub.12
U.sub.n′=U4×(R4+R.sub.21+R.sub.22)R.sub.12, wherein U.sub.p′ is a first voltage at a ninth terminal of the load, U.sub.n′ is a second voltage at a tenth terminal of the load, R3 is a first resistance of the third switching resistor, R4 is a second resistance of the fourth switching resistor, R.sub.11 is a third resistance of the first upsampling resistor, R.sub.12 is a fourth resistance of the first downsampling resistor, R.sub.21 is a fifth resistance of the second upsampling resistor, and R.sub.22 is a sixth resistance value of the second downsampling resistor.
11. The detection apparatus of claim 6, wherein the processor is further configured to: control the switching switches to be in a first working state in which the first switching switch and the second switching switch are turned on and the third switching switch and the fourth switching switch are turned off; detect, when the switching switches are in the first working state, a first sampling point voltage U1 of the first switching branch and a second sampling point voltage U2 of the second switching branch; control the switching switches to be in a second working state in which the first switching switch is turned on and the second switching switch, the third switching switch, and the fourth switching switch are turned off; detect, when the switching switches are in the second working state, a fifth sampling point voltage U5 of the first switching branch; and determine R.sub.p and R.sub.n based on U1, U2, and U5.
12. The detection apparatus of claim 11, wherein the first sampling branch further comprises a first switching resistor, a first upsampling resistor, and a first downsampling resistor, wherein the second sampling branch further comprises a second switching resistor, a second upsampling resistor, and a second downsampling resistor, and wherein the processor is further configured to determine R.sub.p and R.sub.n based on the following formulas:
U.sub.p1/(R.sub.p//(R1+R1+R.sub.12))=−U.sub.n1/(R.sub.n//(R2+R.sub.21+R.sub.22))
U.sub.p2/(R.sub.p//(R1+R.sub.11+R.sub.12))=−U.sub.n2/R.sub.n
U.sub.p1=U1×(R1+R.sub.11+R.sub.12)/R.sub.12
U.sub.n1=U2×(R2+R.sub.21+R.sub.22)/R.sub.22
U.sub.p2=U5×(R1+R.sub.11+R.sub.12)/R.sub.12
U.sub.n2=U.sub.n1−U.sub.p1+U.sub.p2, wherein U.sub.p1 is a first positive electrode voltage of the battery pack in the first working state, U.sub.n1 is a first negative electrode voltage of the battery pack in the first working state, U.sub.p2 is a third positive electrode voltage of the battery pack in the second working state, U.sub.n2 is a third negative electrode voltage of the battery pack in the second working state, R1 is a first resistance of the first switching resistor, R2 is a second resistance of the second switching resistor, R.sub.11 is a third resistance of the first upsampling resistor, R.sub.12 is a fourth resistance of the first downsampling resistor, R.sub.21 is a fifth resistance of the second upsampling resistor, and R.sub.22 is a sixth resistance of the second downsampling resistor.
13. The detection apparatus of claim 5, wherein the processor is further configured to: control the first switching switch to be turned on; obtain a voltage U.sub.c1 at the first terminal; control the third switching switch to be turned on; obtain a voltage U.sub.c2 at the second terminal; determine an actual working state of the first contactor based on U.sub.c1 and U.sub.c2; obtain an indicated working state of the first contactor, wherein the indicated working state is of the first contactor and is indicated by a contactor control signal; and obtain the first contact status information based on whether the actual working state is consistent with the indicated working state.
14. The detection apparatus of claim 5, wherein the switching switches further comprise a fifth switching switch to a (2N+2).sup.th switching switch, wherein the switching branches further comprise a fifth switching branch to a (2N+2).sup.th switching branch, wherein a (2i+1).sup.th switching branch comprises a (2i+1).sup.th switching resistor, wherein a (2i+1).sup.th switching switch is configured to control the (2i+1).sup.th switching branch to be switched in or out between an i.sup.th positive electrode of an i.sup.th battery pack of the battery system and the reference ground, wherein a (2i+2).sup.th switching branch comprises a (2i+2).sup.th switching resistor, and wherein a (2i+2).sup.th switching switch is configured to control the (2i+2).sup.th switching branch to be switched in or out between the negative electrode of the i.sup.th battery pack and the reference ground.
15. The detection apparatus of claim 14, wherein the (2i+1).sup.th switching branch comprises a third terminal, wherein the (2i+2).sup.th switching branch comprises a fourth terminal, and wherein the switching system further comprises: a first sampling branch comprising a fifth terminal connected to the third terminal; and a second sampling branch comprising a sixth terminal connected to the fourth terminal.
16. A method implemented by a detection apparatus and comprising: detecting, by a processor of the detection apparatus, sampling point voltage information of switching branches of a switching system of the detection apparatus, wherein the sampling point voltage information indicates sampling point voltages of the switching branches; determining, by the processor, high-voltage detection information comprising a battery pack voltage U.sub.bat of a battery pack of a battery system and a load voltage U.sub.load of a load of the battery pack; determining, by the processor, insulation detection information comprising an insulation resistance value R.sub.p of a positive electrode of the battery pack and an insulation resistance value R.sub.n of a negative electrode of the battery pack; and determining, by the processor and based on the sampling point voltage information, first contact status information of a first contactor of the battery system or second contact status information of a second contactor of the battery system.
17. The method of claim 16, wherein the first contact status information indicates whether the first contactor is adhered to, and wherein the second contact status information indicates whether the second contactor is adhered to.
18. The method of claim 16, further comprising: controlling, by a first switching switch of switching switches of the detection apparatus, a first switching branch of the switching branches to be switched in or out between the positive electrode and a reference ground of the switching system; controlling, by a second switching switch of the switching switches, a second switching branch of the switching branches to be switched in or out between the negative electrode and the reference ground; controlling, by a third switching switch of the switching switches, a third switching branch of the switching branches to be switched in or out between a first terminal of the first contactor and the reference ground; and controlling, by a fourth switching switch of the switching switches, a fourth switching branch of the switching branches to be switched in or out between a second terminal of the second contactor and the reference ground.
19. The method of claim 18, further comprising: controlling, by the processor, the switching switches to be in a working state in which the first switching switch and the second switching switch are turned on and the third switching switch and the fourth switching switch are turned off; detecting, by the processor and when the switching switches are in the working state, a first sampling point voltage U1 of the first switching branch and a second sampling point voltage U2 of the second switching branch; and determining, by the processor, the battery pack voltage U.sub.bat based on U1 and U2.
20. The method of claim 18, further comprising: controlling, by the processor, the switching switches, the first contactor, and the second contactor to be in a working state in which the first switching switch, the second switching switch, the first contactor, and the second contactor are turned off and the third switching switch and the fourth switching switch are turned on; detecting, by the processor and when the switching switches, the first contactor, and the second contactor are in the working state, a third sampling point voltage U3 of the third switching branch and a fourth sampling point voltage U4 of the fourth switching branch; and determining, by the processor, U.sub.load based on U3 and U4.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
DETAILED DESCRIPTION
[0060] The following describes technical solutions with reference to accompanying drawings.
[0061] For ease of understanding, some terms in embodiments are first described.
[0062] Contactor: refers to an apparatus that can quickly disconnect alternating current and direct current main circuits and frequently connect and disconnect a high-current control circuit in electrical engineering. The contactor is one of important components in an automatic control system because of a large control capacity, which is suitable for frequent operations and remote control. Contactors include alternating current contactors and direct current contactors, and may be used in power supply, power distribution, and power consumption scenarios. In embodiments, because output of a battery system is a direct current, the contactor may be a direct current contactor.
[0063] Battery management system (BMS): refers to a control system configured to monitor and manage a battery system, and is usually applied to power battery system management in an electric vehicle. The BMS can implement a plurality of functions such as battery monitoring, calculation, and communication.
[0064]
[0065] In some examples, the battery system 100 is a high-voltage battery system. Because the contactors are applied to the high-voltage battery system, the contactors are usually contactors that can withstand a high-voltage and a high current.
[0066] It should be understood that the components in the battery system 100 shown in
[0067] It should be understood that the battery system 100 in
[0068] As shown in
[0069] Further, the detection apparatus 200 may further implement contactor adhesion detection of the battery system 100. Contactor adhesion detection refers to detecting whether a contact of a contactor is adhered to. When a mechanical contact of the contactor is disconnected under load, a contact adhesion fault may occur. As a result, high-voltage output cannot be cut off. Therefore, adhesion detection further needs to be performed on the contact of the contactor.
[0070] It should be understood that the detection apparatus 200 may be an independent module, or may be integrated with another functional circuit. For example, the detection apparatus 200 may be integrated into a BMS.
[0071] For ease of understanding, the following separately describes principles of high-voltage detection, insulation detection, and contact adhesion detection of a contactor.
[0072] High-voltage detection principle: is used to calculate a battery pack voltage U.sub.bat or a load voltage U.sub.load based on voltage information collected from the high-voltage battery system. For example, a voltage at two ends of the battery pack 110 may refer to a voltage difference between the first terminal of the first contactor 101 and the first terminal of the second contactor 102. The load voltage may refer to a voltage difference between the second terminal of the first contactor 101 and the second terminal of the second contactor 102.
[0073] Insulation detection principle: Insulation detection is used to separately detect insulation resistance R.sub.p to ground of the positive electrode of the battery pack 110 and insulation resistance R.sub.n to ground of the negative electrode of the battery pack 110. Specifically, a switching resistor may be switched in or out between the positive electrode (and/or the negative electrode) of the battery pack 110 and a vehicle body ground, and voltages to the vehicle body ground of the positive electrode (and/or the negative electrode) of the battery pack 110 may be separately calculated when the switching resistor is switched in or out. Then, equations are listed by using a Kirchhoff's current law, to calculate the insulation resistance R.sub.p to ground of the positive electrode of the battery pack 110 and the insulation resistance R.sub.n to ground of the negative electrode of the battery pack 110.
[0074] Contactor adhesion detection principle: A current working state of a contactor is obtained by comparing data of voltages at two ends of the contactor that is collected through high-voltage detection, and then it is determined whether the current working state of the contactor is the same as a working state that is of the contactor and that is indicated by a contactor control signal sent by the detection apparatus 200. If the current working state is the same as the indicated working state, it indicates that a contact of the contactor is not adhered to. If the current working state is different from the indicated working state, it indicates that the contact of the contactor is adhered to.
[0075]
[0076] The switching unit 201 includes a plurality of switching branches (221 to 224) and a plurality of switching switches (S1 to S4), where each of the plurality of switching branches includes a switching resistor (R1 to R4), and the plurality of switching switches (S1 to S4) are configured to control the plurality of switching branches to be switched in or out between the following plurality of terminals and a reference ground: a positive electrode of a battery pack 110, a second terminal of a first contactor 101, a negative electrode of the battery pack 110, and a second terminal of a second contactor 102, where the reference ground is configured to connect to a vehicle body ground.
[0077] In some examples, the processing unit 202 may send a switching control signal to each of the plurality of switching switches (S1 to S4), and the processing unit 202 may control, by using the switching control signal, turn-on or turn-off of each switching switch.
[0078] In some examples, the processing unit 202 may further send a contactor control signal to the first contactor 101 or the second contactor 102, and the contactor control signal is used to control turn-on or turn-off of each contactor.
[0079] It may be understood that, after a switching switch (S1 to S4) corresponding to a switching branch is turned on, a switching resistor (R1 to R4) in the switching branch is switched in between a corresponding terminal and the reference ground. After the switching switch (S1 to S4) corresponding to the switching branch is turned off, the switching resistor (R1 to R4) is disconnected from the corresponding terminal.
[0080] Optionally, in this embodiment, resistance values of the switching resistors (R1 to R4) in the plurality of switching branches are not limited, and the resistance values of the switching resistors (R1 to R4) may be determined based on practice. In an example, relatively large resistance values, for example, resistance in a megohm (MQ) level, may be generally used as the resistance values of the switching resistors (R1 to R4).
[0081] It should be understood that the switching branch may include one or more switching resistors. The following uses an example in which one switching resistor is disposed in each switching branch for description.
[0082] In an example, the switching switch may include at least one of the following switch components: a relay, an opto-isolator (e.g., PhotoMOS), and a metal-oxide-semiconductor field-effect transistor (MOSFET).
[0083] The processing unit 202 is configured to detect sampling point voltage information of the plurality of switching branches, where the sampling point voltage information is used to indicate sampling point voltages of the plurality of switching branches.
[0084] It should be understood that, based on different detection purposes of the detection apparatus 200, for example, high-voltage detection, insulation detection, or contactor adhesion detection, on/off statuses of the plurality of switching switches (S1 to S4) corresponding to the sampling point voltage information are also different. In other words, the sampling point voltage information includes sampling point voltages of the plurality of switching branches in different on/off statuses of the plurality of switching switches (S1 to S4). The following further describes implementations of different detection methods.
[0085] The processing unit 202 is configured to: obtain sampling point voltage information from a sampling unit, and determine high-voltage detection information and insulation detection information based on the sampling point voltage information, where the high-voltage detection information includes at least one of the following: a battery pack voltage U.sub.bat and a load voltage U.sub.load, and the insulation detection information includes at least one of the following: an insulation resistance value R.sub.p to ground of the positive electrode of the battery pack 110 and an insulation resistance value R.sub.n to ground of the negative electrode of the battery pack 110.
[0086] In this embodiment, the switching unit is disposed in the detection apparatus for a battery system, and the plurality of switching branches in the switching unit may be flexibly switched in or out between a plurality of terminals in the battery system and the reference ground. By using the plurality of switching branches, the detection apparatus 200 may detect sampling point voltages of the plurality of switching branches in different statuses, to implement high-voltage detection and insulation detection of the battery system. Because the reference ground of the plurality of switching branches in the switching unit is configured to connect to the vehicle body ground, electric isolation may not need to be performed for high-voltage detection and insulation detection inside the detection apparatus, and high-voltage detection and insulation detection of the battery system are implemented by using one set of circuits, so that a circuit design can be optimized, and detection efficiency of the battery system can be improved.
[0087] Further, the processing unit 202 is further configured to determine at least one of the following information based on the sampling point voltage information: contact status information of the first contactor 101 and contact status information of the second contactor 102, where the contact status information is used to indicate whether a contact of the contactor is adhered to.
[0088] Still refer to
[0089] The first switching branch 221 includes a first switching resistor R1, the first switching switch S1 is connected in series to the first switching resistor R1, a first terminal of the first switching branch 221 is connected to the positive electrode of the battery pack 110, and the first switching switch S1 is configured to control the first switching branch 221 to be switched in or out between the positive electrode of the battery pack 110 and the reference ground.
[0090] The second switching branch 222 includes a second switching resistor R2, the second switching switch S2 is connected in series to the second switching resistor R2, a first terminal of the second switching branch 222 is connected to the negative electrode of the battery pack 110, and the second switching switch S2 is configured to control the second switching branch 222 to be switched in or out between the negative electrode of the battery pack 110 and the reference ground.
[0091] The third switching branch 223 includes a third switching resistor R3, the third switching switch S3 is connected in series to the third switching resistor R3, a first terminal of the third switching branch 223 is connected to the second terminal of the first contactor 101, and the third switching switch S3 is configured to control the third switching branch 223 to be switched in or out between the second terminal of the first contactor 101 and the reference ground.
[0092] The fourth switching branch 224 includes a fourth switching resistor R4, the fourth switching switch S4 is connected in series to the fourth switching resistor R4, a first terminal of the fourth switching branch 224 is connected to the second terminal of the second contactor 102, and the fourth switching switch S4 is configured to control the fourth switching branch 224 to be switched in or out between the second terminal of the second contactor 102 and the reference ground.
[0093] Still refer to
[0094] In an example, in
[0095] It should be understood that connections between components or circuits in this embodiment may include a direct connection and an indirect connection. In a case of an indirect connection, another component may be disposed between the components or the circuits.
[0096] Still refer to
[0097] It should be understood that, in
[0098] In some examples, after obtaining the sampling point voltage of the switching branch, the processing unit 202 may calculate, based on a voltage division principle, a voltage at a terminal corresponding to the switching branch, for example, calculate a voltage of the positive electrode or the negative electrode of the battery pack.
[0099] It should be understood that the sampling branch in
[0100] It should be understood that
[0101]
[0102] The first switching branch 221 includes the first switching resistor R1, a first terminal of the first switching switch S1 is connected to a first terminal of the first switching branch 221, and a second terminal of the first switching switch S1 is connected to the following plurality of terminals: the positive electrode of the battery pack 110, the second terminal of the first contactor 101, and an unconnected terminal (NC).
[0103] The second switching branch 222 includes the second switching resistor R2, a second terminal of the second switching switch S2 is connected to a first terminal of the second switching branch 222, and a second terminal of the second switching switch S2 is connected to the following plurality of terminals: the negative electrode of the battery pack 110, the second terminal of the second contactor 102, and an unconnected terminal (NC).
[0104] The unconnected terminal may mean that the second terminal of the switching switch is not connected to any potential, and is in a disconnected state.
[0105] With reference to the detection apparatus 200 shown in
[0106]
[0107] S401: The processing unit 202 controls the plurality of switching switches to be in a first working state, where the first working state is that the first switching switch S1 and the second switching switch S2 are turned on, and the third switching switch S3 and the fourth switching switch S4 are turned off.
[0108] In an example, the processing unit 202 may separately send switching control signals to the plurality of switching switches, where the switching control signals are used to control turn-on and turn-off of the switches. In this case, the positive electrode of the battery pack is connected to the reference ground by using the first switching branch 221, and the negative electrode of the battery pack is connected to the reference ground by using the second switching branch 222.
[0109] S402: When the plurality of switching switches are in the first working state, the processing unit 202 detects a first sampling point voltage U1 of the first switching branch 221 and a second sampling point voltage U2 of the second switching branch 222.
[0110] Specifically, the first sampling point voltage U1 is a voltage at the second terminal of the upsampling resistor R.sub.11 in the first sampling branch 2011, and the second sampling point voltage U2 is a voltage at the second terminal of the upsampling resistor R.sub.21 in the second sampling branch 2012.
[0111] S403: The processing unit 202 determines the battery pack voltage U.sub.bat based on the first sampling point voltage U1 and the second sampling point voltage U2.
[0112] Specifically, the processing unit 202 may calculate a positive electrode voltage U.sub.p and a negative electrode voltage U.sub.n of the battery pack based on a voltage division law, and further calculate the battery pack voltage U.sub.bat. Formulas are as follows:
U.sub.bat=U.sub.p−U.sub.n; (1)
U.sub.p=U1×(R1+R.sub.11+R.sub.12)/R.sub.12; (2)
U.sub.n=U2×(R2+R.sub.21+R.sub.22)/R.sub.22; (3)
herein, U.sub.p represents the positive electrode voltage of the battery pack, U.sub.n represents the negative electrode voltage of the battery pack, R1 represents a resistance value of the first switching resistor R1, R2 represents a resistance value of the second switching resistor R2, R.sub.11 represents a resistance value of the upsampling resistor R.sub.11 of the first sampling branch 2011, R.sub.12 represents a resistance value of the downsampling resistor R.sub.12 of the first sampling branch 2011, R.sub.21 represents a resistance value of the upsampling resistor R.sub.21 of the second sampling branch 2012, and R.sub.22 represents a resistance value of the downsampling resistor R.sub.22 of the second sampling branch 2012.
[0113]
[0114] S501: The processing unit 202 controls the plurality of switching switches, the first contactor 101, and the second contactor 102 to be in a second working state, where the second working state is that the first switching switch S1 and the second switching switch S2 are turned off, the third switching switch S3 and the fourth switching switch S4 are turned on, and the first contactor 101 and the second contactor 102 are turned off.
[0115] In this case, the second terminal of the first contactor 101 is connected to the reference ground by using the first switching branch 221, and the second terminal of the second contactor 102 is connected to the reference ground by using the second switching branch 222.
[0116] In an example, the processing unit 202 may separately send switching control signals to the plurality of switching switches, where the switching control signals are used to control turn-on and turn-off of the switches.
[0117] In an example, the processing unit 202 may send contactor control signals to the first contactor 101 and the second contactor 102 to control the first contactor 101 and the second contactor 102 to be in an open state, to detect the load voltage.
[0118] S502: When the plurality of switching switches are in the second working state, the processing unit 202 detects a third sampling point voltage U3 of the third switching branch 223 and a fourth sampling point voltage U4 of the fourth switching branch 224.
[0119] Specifically, the third sampling point voltage U3 is a voltage at the second terminal of the upsampling resistor R.sub.11 in the first sampling branch 2011, and the fourth sampling point voltage U4 is a voltage at the second terminal of the upsampling resistor R.sub.21 in the second sampling branch 2012.
[0120] S503: The processing unit 202 determines the load voltage U.sub.load based on the third sampling point voltage U3 and the fourth sampling point voltage U4.
[0121] In an example, the processing unit 202 may calculate a voltage U.sub.p′ at a first terminal of a load and a voltage U.sub.n′ at a second terminal of the load based on a voltage division law, and further calculate the load voltage U.sub.load. Formulas are as follows:
U.sub.load=U.sub.p′−U.sub.n′; (4)
U.sub.p′=U3×(R3+R.sub.11+R.sub.12)/R.sub.12; (5)
U.sub.n′=U4×(R4+R.sub.21+R.sub.22)R.sub.12; (6)
herein, U.sub.p′ represents the voltage at the first terminal of the load, U.sub.n′ represents the voltage at the second terminal of the load, R3 represents a resistance value of the third switching resistor R3, R4 represents a resistance value of the fourth switching resistor R4, R.sub.11 represents the resistance value of the upsampling resistor R.sub.1 of the first sampling branch 2011, R.sub.12 represents the resistance value of the downsampling resistor R.sub.12 of the first sampling branch 2011, R.sub.21 represents the resistance value of the upsampling resistor R.sub.21 of the second sampling branch 2012, and R.sub.22 represents the resistance value of the downsampling resistor R.sub.22 of the second sampling branch 2012.
[0122]
[0123] S601: The processing unit 202 controls the plurality of switching switches to be in a first working state, where the first working state is that the first switching switch S1 and the second switching switch S2 are turned on, and the third switching switch S3 and the fourth switching switch S4 are turned off.
[0124] S602: When the plurality of switching switches are in the first working state, the processing unit 202 detects a first sampling point voltage U1 of the first switching branch 221 and a second sampling point voltage U2 of the second switching branch 222.
[0125] S603: The processing unit 202 controls the plurality of switching switches to be in a third working state, where the third working state is that the first switching switch S1 is turned on, and the second switching switch S2 to the fourth switching switch S4 are turned off.
[0126] S604: When the plurality of switching switches are in the third working state, the processing unit 202 detects a fifth sampling point voltage U5 of the first switching branch 221.
[0127] S605: The processing unit 202 determines the insulation resistance value R.sub.p to ground of the positive electrode of the battery pack and the insulation resistance value R.sub.n to ground of the negative electrode of the battery pack based on the first sampling point voltage U1, the second sampling point voltage U2, and the fifth sampling point voltage U5.
[0128] Specifically, the processing unit 202 may calculate the insulation resistance value R.sub.p to ground of the positive electrode of the battery pack and the insulation resistance value R.sub.n to ground of the negative electrode of the battery pack based on a voltage division law and a Kirchhoff's current law. Formulas are as follows:
U.sub.p1/(R.sub.p//(R1+R.sub.11+R.sub.12))=−U.sub.n1/(R.sub.n//(R2+R.sub.21+R.sub.22)); (7)
U.sub.p2/(R.sub.p//(R1+R.sub.11+R.sub.12))=−U.sub.n2/R.sub.n; (8)
U.sub.p1=U1×(R1+R.sub.11+R.sub.12)/R.sub.12; (9)
U.sub.n1=U2×(R2+R.sub.21+R.sub.22)/R.sub.22; (10)
U.sub.p2=U5×(R1+R.sub.11+R.sub.12)/R.sub.12; (11)
U.sub.n2=U.sub.n1−U.sub.p1+U.sub.p2; (12)
herein, U.sub.p1 represents a positive electrode voltage of the battery pack in the first working state, U.sub.n1 represents a negative electrode voltage of the battery pack in the first working state, U.sub.p2 represents a positive electrode voltage of the battery pack in the third working state, U.sub.n2 represents a negative electrode voltage of the battery pack in the third working state, R1 represents the resistance value of the first switching resistor R1, R2 represents the resistance value of the second switching resistor R2, R.sub.11 represents the resistance value of the upsampling resistor R.sub.11 of the first sampling branch 2011, R.sub.12 represents the resistance value of the downsampling resistor R.sub.12 of the first sampling branch 2011, R.sub.21 represents the resistance value of the upsampling resistor R.sub.21 of the second sampling branch 2012, and R.sub.22 represents the resistance value of the downsampling resistor R.sub.22 of the second sampling branch 2012.
[0129] The formula (7) and the formula (8) use a Kirchhoffs current principle, that is, a value of a current flowing from the positive electrode of the battery pack to the ground is equal to a value of a current flowing from the ground to the negative electrode of the battery pack. The formulas (9) to (11) use a resistance voltage division principle. The formula (12) uses a principle that the battery pack voltage remains unchanged.
[0130] Optionally, in S603 to S605, the processing unit 202 may alternatively control the plurality of switching switches to be in a fourth working state, where the fourth working state includes that the second switching switch S2 is turned on, and the first switching switch S1, the third switching switch S3, and the fourth switching switch S4 are turned off. When the plurality of switching switches are in the fourth working state, the processing unit 202 may detect a sixth sampling point voltage U6 of the second switching branch 222, and determine the insulation resistance value R.sub.p to ground of the positive electrode of the battery pack and the insulation resistance value R.sub.n to ground of the negative electrode of the battery pack based on the first sampling point voltage U1, the second sampling point voltage U2, and the sixth sampling point voltage U6.
[0131] Correspondingly, the processing unit 202 may calculate R.sub.p and R.sub.n based on the following formulas:
U.sub.p1/(R.sub.p//(R1+R.sub.11+R.sub.12))=−U.sub.n1/(R.sub.n//(R2+R.sub.21+R.sub.22)); (13)
U.sub.p3/R.sub.p=−U.sub.n3/(R.sub.n//R2+R.sub.21+R.sub.22); (14)
U.sub.p1=U1×(R1+R.sub.11+R.sub.12)/R.sub.12; (15)
U.sub.n1=U2×(R2+R.sub.21+R.sub.22)/R.sub.22; (16)
U.sub.n3=U6×(R2+R.sub.21+R.sub.22)/R.sub.22; (17)
U.sub.p3=U.sub.p1−U.sub.n1+U.sub.n3; (18)
herein, U.sub.p1 represents a positive electrode voltage of the battery pack in the first working state, U.sub.n1 represents a negative electrode voltage of the battery pack in the first working state, U.sub.p3 represents a positive electrode voltage of the battery pack in the fourth working state, U.sub.n3 represents a negative electrode voltage of the battery pack in the fourth working state, R1 represents the resistance value of the first switching resistor R1, R2 represents the resistance value of the second switching resistor R2, R.sub.11 represents the resistance value of the upsampling resistor R.sub.11 of the first sampling branch 2011, R.sub.12 represents the resistance value of the downsampling resistor R.sub.12 of the first sampling branch 2011, R.sub.21 represents the resistance value of the upsampling resistor R.sub.21 of the second sampling branch 2012, and R.sub.22 represents the resistance value of the downsampling resistor R.sub.22 of the second sampling branch 2012.
[0132] It should be understood that the solution in
[0133] With reference to
[0134]
[0135] S701: The processing unit 202 controls the plurality of switching switches to be in a first working state, that is, the first switching switch S1 and the second switching switch S2 are turned on, and the third switching switch S3 and the fourth switching switch S4 are turned off.
[0136] S702: When the plurality of switching switches are in the first working state, the processing unit 202 obtains a first sampling point voltage U1 of the first switching branch 221 and a second sampling point voltage U2 of the second switching branch 222.
[0137] S703: The processing unit 202 calculates a positive electrode voltage U.sub.p1 of the battery pack and a negative electrode voltage U.sub.n1 of the battery pack based on U1, U2, and a voltage division principle.
[0138] For calculation manners of the positive electrode voltage U.sub.p1 of the battery pack and the negative electrode voltage U.sub.n1 of the battery pack, refer to related descriptions of
[0139] S704: The processing unit 202 determines values of U.sub.p1 and U.sub.n1, and if U.sub.p1>U.sub.n1, turns off the second switching switch S2, keeps statuses of the other switching switches unchanged, and performs S705; or if U.sub.p1<U.sub.n1, turns off the first switching switch S1, keeps statuses of the other switching switches unchanged, and performs S706.
[0140] In S704, when the voltage U.sub.p1 is greater than U.sub.n1, it indicates that the insulation resistance R.sub.p to ground of the positive electrode of the battery pack is greater than the insulation resistance R.sub.n to ground of the negative electrode of the battery pack. If the second switching switch S2 is turned off, R.sub.p and R.sub.n are calculated by using the formulas (7) to (12). In the formula (8), an order of magnitude of a resistance value obtained after R.sub.p and (R1+R.sub.11+R.sub.12) are connected in parallel is closer to an order of magnitude of a resistance value of R.sub.n, so that an error in subsequent calculation can be reduced. In this case, if the first switching switch S1 is selected to be turned off, R.sub.p and R.sub.n need to be calculated by using the formulas (13) to (18). In the formula (14), there is a greater difference between an order of magnitude of a resistance value of R.sub.p and an order of magnitude of a resistance value obtained after R.sub.n and (R2+R.sub.21+R.sub.22) are connected in parallel, and this causes an increase in a calculation error.
[0141] Similarly, when the voltage U.sub.p1 is less than U.sub.n1, the first switching switch S1 is selected to be turned off, and R.sub.p and R.sub.n are calculated by using the formulas (13) to (18), so that a calculation error is smaller.
[0142] Therefore, the manner in S704 is used to calculate R.sub.p and R.sub.n, so that accuracy of calculating R.sub.p and R.sub.n can be improved.
[0143] S705: If the second switching switch S2 is turned off in S704, the processing unit 202 obtains a fifth sampling point voltage U5 of the first switching branch 221, and calculates the insulation resistance value R.sub.p to ground of the positive electrode of the battery pack and the insulation resistance value R.sub.n to ground of the negative electrode of the battery pack based on U1, U2, and U5.
[0144] Specifically, R.sub.p and R.sub.n may be calculated based on the formulas (7) to (12). Details are not described herein.
[0145] S706: If the first switching switch S1 is turned off in S704, the processing unit 202 obtains a sixth sampling point voltage U6 of the second switching branch 222, and calculates the insulation resistance value R.sub.p to ground of the positive electrode of the battery pack and the insulation resistance value R.sub.n to ground of the negative electrode of the battery pack based on U1, U2, and U6.
[0146] Specifically, R.sub.p and R.sub.n may be calculated based on the formulas (13) to (18). Details are not described herein.
[0147] With reference to
[0148]
[0149] S801: The processing unit 202 controls the first switching switch S1 to be turned on, and obtains a voltage U.sub.c1 at the first terminal of the first contactor 101.
[0150] S802: The processing unit 202 controls the third switching switch S3 to be turned on, and obtains a voltage U.sub.c2 at the second terminal of the first contactor 101.
[0151] Specifically, the processing unit 202 may separately obtain sampling point voltages of the first switching branch 221 and the second switching branch 222, and calculate U.sub.c1 and U.sub.c2 by using a voltage division principle.
[0152] S803: The processing unit 202 determines an actual working state of the first contactor 101 based on U.sub.c1 and U.sub.c2.
[0153] For example, the processing unit 202 may determine the actual working state of the first contactor 101 based on whether U.sub.c1−U.sub.c2 is greater than a preset threshold U.sub.0. If U.sub.c1−U.sub.c2≥U.sub.0, it is determined that the actual working state of the first contactor 101 is an open state; or if U.sub.c1−U.sub.c2<U.sub.0, it is determined that the first contactor 101 is in a closed state. A value of the preset threshold U.sub.0 may be determined based on practice.
[0154] S804: The processing unit 202 obtains an indicated working state of the first contactor 101, where the indicated working state is a working state that is of the first contactor 101 and that is indicated by a contactor control signal.
[0155] S805: The processing unit 202 determines the contact status information of the first contactor 101 based on whether the actual working state is consistent with the indicated working state.
[0156] For example, the processing unit 202 determines whether the actual working state of the first contactor 101 is consistent with the indicated working state. If the actual working state is consistent with the indicated working state, it is determined that the contact status information is that contact adhesion does not occur on the first contactor 101; or if the actual working state is inconsistent with the indicated working state, it is determined that the contact status information is that contact adhesion occurs on the first contactor 101.
[0157]
[0158] S901: The processing unit 202 controls the first switching switch S1 to be turned on, and obtains a voltage U.sub.c1 at the first terminal of the first contactor 101.
[0159] S902: The processing unit 202 controls the third switching switch S3 to be turned on, and obtains a voltage U.sub.c2 at the second terminal of the first contactor 101.
[0160] S903: The processing unit 202 determines an actual working state of the first contactor 101 based on whether U.sub.c1−U.sub.c2 is greater than a preset threshold U.sub.0.
[0161] S904: If U.sub.c1−U.sub.c2≥U.sub.0, it is determined that the actual working state of the first contactor 101 is an open state; or if U.sub.c1−U.sub.c2<U.sub.0, it is determined that the first contactor 101 is in a closed state.
[0162] S905: The processing unit 202 determines whether the actual working state of the first contactor 101 is consistent with a working state indicated by a contactor control signal. If the actual working state is consistent with the indicated working state, it is determined that contact adhesion does not occur on the first contactor 101, and a contact is normal; or if the actual working state is inconsistent with the indicated working state, it is determined that contact adhesion occurs on the first contactor 101.
[0163]
[0164] The sampling unit 2024 is configured to collect sampling point voltage information of a switching branch in the switching unit 201, and transmit the obtained sampling point voltage information to the calculation unit.
[0165] The calculation unit 2021 is configured to perform calculation and logic processing based on the sampling point voltage information collected by the sampling unit 2024. The calculation unit is further configured to obtain information indicating a contactor control signal or a switching control signal from the control unit 2022, and perform calculation and logic processing.
[0166] The control unit 2022 is configured to send a contactor control signal or a switching control signal to the drive unit 2023. The contactor control signal is used to control turn-on and turn-off of a contactor, and the switching control signal is used to control turn-on and turn-off of a switch in the switching unit.
[0167] The drive unit 2023 is configured to receive the contactor control signal or the switching control signal sent by the calculation unit 2021, and drive the contactor or the switching switch in the switching unit based on the contactor control signal or the switching control signal.
[0168] It should be understood that the subunits in
[0169] The foregoing describes the detection apparatus 200 by using an example in which the battery system includes a single battery pack. Optionally, the detection apparatus 200 in embodiments may also be applied to a battery system with a plurality of battery packs. With reference to
[0170]
[0171] Optionally, a serial connection, a parallel connection, or a combination of a serial connection and a parallel connection may be flexibly implemented between the N battery packs by controlling turn-on and turn-off of the 3N−1 contactors.
[0172] Still refer to
[0173] A (2i+1).sup.th switching branch includes a (2i+1).sup.th switching resistor R.sub.2i+1, and a (2i+1).sup.th switching switch S.sub.2i+1 is configured to control the (2i+1).sup.th switching branch to be switched in or out between the positive electrode of the i.sup.th battery pack and the reference ground.
[0174] A (2i+2).sup.th switching branch includes a (2i+2).sup.th switching resistor R.sub.2i+2, and a (2i+2)th switching switch is configured to control the (2i+2).sup.th switching branch to be switched in or out between the negative electrode of the i.sup.th battery pack and the reference ground.
[0175] Optionally, the first terminal of the first sampling branch 2011 is connected to a second terminal of the (2i+1).sup.th switching branch, and the first terminal of the second sampling branch 2012 is connected to a second terminal of the (2i+2).sup.th switching branch.
[0176] It should be understood that the battery system in
[0177] Optionally, the detection apparatus 200 in
[0178] In this embodiment, the switching branches in the switching unit of the detection apparatus for the battery system may be extended based on a quantity and a connection manner of the battery packs in the to-be-detected battery system, to implement high-voltage detection and insulation detection of the battery system including a plurality of battery packs by using one set of circuits, so that a circuit design can be optimized, and circuit detection efficiency can be improved.
[0179] Terms such as “component”, “module”, and “system” used in this specification are used to indicate computer-related entities, hardware, firmware, combinations of hardware and software, software, or software being executed. For example, a component may be, but is not limited to, a process that runs on a processor, a processor, an object, an executable file, an execution thread, a program, and/or a computer. As illustrated by using figures, both a computing device and an application that runs on the computing device may be components. One or more components may reside within a process and/or an execution thread, and a component may be located on one computer and/or distributed between two or more computers. In addition, these components may be executed from various computer-readable media that store various data structures. The components may communicate by using a local and/or remote process and based on, for example, a signal having one or more data packets (for example, data from two components interacting with another component in a local system, a distributed system, and/or across a network such as the Internet interacting with other systems by using the signal).
[0180] A person of ordinary skill in the art may be aware that, in combination with the examples described in embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this disclosure.
[0181] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments. Details are not described herein.
[0182] In the several embodiments provided, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, division into the units is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
[0183] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of embodiments.
[0184] In addition, functional units in embodiments may be integrated into one processing unit, each of the units may exist alone physically, or two or more units may be integrated into one unit.
[0185] When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions may be implemented in a form of a software product. The computer software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or some of the steps of the methods described in embodiments. The foregoing storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disc.
[0186] The foregoing descriptions are merely specific implementations, but are not intended to limit the protection scope of this disclosure. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed shall fall within the protection scope of this disclosure. Therefore, the protection scope of this disclosure shall be subject to the protection scope of the claims.