Detection method and device for a battery system

DE602021035377T2Active Publication Date: 2025-07-30HUAWEI DIGITAL POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602021035377
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-02-26
Publication Date
2025-07-30
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

Conventional high-voltage battery systems require separate circuits for high voltage detection and insulation detection, leading to complex and large circuit designs, which are inefficient and occupy significant space.

Method used

A detection apparatus with a switching unit that allows flexible switching between terminals and a reference ground, enabling high voltage, insulation, and contact adhesion detection using a single set of circuits, optimizing circuit design and improving detection efficiency.

Benefits of technology

The solution simplifies circuit design by allowing multiple detections to be performed using a single set of circuits, enhancing detection efficiency and reducing complexity while maintaining safety.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] This application relates to the battery field, and in particular, to a detection method and apparatus for a battery system.BACKGROUND

[0002] Currently, a direct current voltage of a high-voltage battery system used in an electric vehicle or a hybrid electric vehicle is far greater than a human safety voltage. For example, a direct current voltage range of the high-voltage battery system is usually 200 V to 800 V, but the human safety voltage is 60 V. Therefore, for safety reasons, high voltage detection and insulation detection need to be performed on the battery system. High voltage detection refers to detecting a battery pack voltage and a load voltage in the high-voltage battery system, and insulation detection refers to detecting insulation resistance to ground of two poles of a battery pack in the high-voltage battery system.

[0003] However, in a conventional solution for detecting a high-voltage battery system, high voltage detection and insulation detection need to be electrically isolated. Therefore, high voltage detection and insulation detection are usually designed as two sets of circuits with independent functions, and the circuits are complex and occupy a large circuit area.

[0004] CN 109 765 495 A discloses an insulation detection circuit and a detection method, and a battery management system, related to the technical field of batteries. The circuit comprises an isolated power supply module, a first positive pole sampling module, a first negative pole sampling module, a second positive pole sampling module, a second negative pole sampling module and a processor, wherein a first end of the second positive pole sampling module is respectively connected with a positive pole of the isolated power supply module and a second end of a positive pole switch module, and the second end of the second positive pole sampling module is connected with a second reference voltage end; the first end of the second negative pole sampling module is connected with the second reference voltage end, and the second end of the second negative pole sampling module is respectively connected with the negative pole of the isolated power supply module and the second end of the negative pole switch module; and the processor is respectively connected with a first sampling point, a second sampling point, a third sampling point and the fourth sampling point. By the circuit, insulation impedance of a side where a load is when the positive pole switch module or the negative pole switch module is not switched on can be detected.

[0005] US 2019 / 064280 A1 discloses a battery detection circuit and a battery management system. The battery detection circuit includes a positive relay, a negative relay, a first positive sampling unit, a first negative sampling unit, a second positive sampling unit, a second negative sampling unit, and a reference voltage terminal, wherein: all of the first positive sampling unit, the first negative sampling unit, the second positive sampling unit, the second negative sampling unit and a power battery pack to be detected are connected to the reference voltage terminal. With the battery detection circuit and the battery management system of this disclosure, both the cost of the battery detection circuit and the complexity of the structure of the battery detection circuit can be reduced.

[0006] US 2020 / 116791 A1 discloses an apparatus and method for diagnosing a short circuit accident occurring at a negative electrode contactor of a battery pack. This apparatus diagnoses a negative electrode contactor of a battery pack, which includes a positive electrode contactor provided on a charge-discharge path connected to a positive electrode terminal and a negative electrode contactor provided on a charge-discharge path connected to a negative electrode terminal.

[0007] US 2020 / 217893 A1 discloses an apparatus and method for diagnosing a short circuit accident occurring at a positive electrode contactor of a battery pack. This apparatus diagnoses a positive electrode contactor of a battery pack, which includes a positive electrode contactor provided on a charge-discharge path connected to a positive electrode terminal and a negative electrode contactor provided on a charge-discharge path connected to a negative electrode terminal.

[0008] CN 111 929 502 A discloses an insulation detection circuit and method. The insulation detection circuit comprises a to-be-detected high-voltage power supply and a load. A first end of the load is connected with the positive electrode of the to-be-detected high-voltage power supply, and a second end of the load is connected with the negative electrode of the to-be-detected high-voltage power supply. The insulation detection circuit further comprises a first switch S1, a second switch S2, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7 and an eighth resistor R8. After the technical scheme is adopted, the insulation resistance value of the high-voltage power supply working with the load can be simply and accurately measured, the measurement error caused by the fluctuation of the voltage of the high-voltage power supply along with the load is avoided, and the possible problem that the change ground dead zone of the insulation resistance value cannot be detected when the insulation resistances of the positive electrode and the negative electrode of the high-voltage battery are simultaneously changed is also avoided.

[0009] CN 210 294 422 U discloses a contactor diagnosis / total voltage acquisition circuit of a vehicle power battery. The circuit comprises a sampling circuit and a detection branch, a first end of the detection branch is connected to one end, far away from a power battery, of a current to-be-detected contactor, and a second end of the detection branch is connected to one end, close to the power battery, of a non-current to-be-detected contactor; a first switch connected with the first end, a second switch connected with the second end, a plurality of divider resistors and a reference voltage source used for providing forward bias for sampling points of the sampling circuit are arranged in the detection branch; the first switch, the reference voltage source, the first divider resistor, the third divider resistor and the second switch are sequentially connected in series. The reference voltage source and the first divider resistor are connected in series and then connected with the second divider resistor in parallel. A sampling point of the sampling circuit is connected with a series connection point of the first divider resistor and the third divider resistor. The circuit not only realizes the diagnosis of the contactor, but also can acquire the total voltage of the contactor, thereby greatly reducing the measurement difficulty of the terminal voltage of the contactor.SUMMARY

[0010] This application provides a detection method and apparatus for a battery system, to optimize a circuit design.

[0011] According to a first aspect, a detection apparatus for a battery system according to appended claim 1 is provided.

[0012] The switching unit is disposed in the detection apparatus for the 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.

[0013] With reference to the first aspect, in a possible implementation, the processing unit 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 and contact status information of the second contactor, where the contact status information is used to indicate whether a contact of the contactor is adhered.

[0014] In addition to high voltage detection and insulation detection, the detection apparatus may further implement contact adhesion detection of the contactor of the battery system by using the same set of circuits, thereby further optimizing the circuit design.

[0015] The plurality of sampling branches may be used to collect the sampling point voltages of the plurality of switching branches, and the plurality of sampling branches may be reused in high voltage detection, insulation detection, and contact adhesion detection, thereby optimizing the circuit design.

[0016] With reference to the first aspect, in a possible implementation, each of the plurality of sampling branches includes an upper sampling resistor and a lower sampling resistor, a first terminal of each upper sampling resistor is respectively connected to the first terminal of each sampling branch, a second terminal of each upper sampling resistor is connected to a first terminal of the respective lower sampling resistor, and a second terminal of ach lower sampling resistor is connected to the reference ground, where a sampling point voltage of the switching branch is a voltage at the second terminal of the upper sampling resistor.

[0017] For different detection scenarios such as high voltage detection, insulation detection, or contact adhesion detection, the plurality of switching switches and the plurality of switching branches can be used to flexibly control the plurality of switching branches to be switched in or out between the terminals in the battery system and the reference ground. The plurality of switching switches and the plurality of switching branches can be reused in different detection scenarios, thereby achieving an objective of simplifying and optimizing the circuit design.

[0018] As set out in claim 1, the plurality of sampling branches include a first sampling branch and a second sampling branch. A first terminal of the first sampling branch is connected to a second terminal of the first switching branch and a second terminal of the third switching branch. A second terminal of the second sampling branch is connected to a second terminal of the second switching branch and a second terminal of the fourth switching branch.

[0019] Through control by using the switching switches, two sampling branches may be used to collect sampling point voltages of four switching branches, thereby improving utilization of the sampling branches, and simplifying the circuit design.

[0020] With reference to the first aspect, in a possible implementation, the processing unit is specifically configured to: control the plurality of switching switches to be in a first working state, where the first working state is that 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; when the plurality of switching switches are in the first working state, detect 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 bat based on the first sampling point voltage U1 and the second sampling point voltage U2.

[0021] The processing unit controls turn-on and turn-off of the switching switches, and collects a corresponding sampling point voltage for calculation, so that the detection apparatus may be used to detect the battery pack voltage U bat of the battery system.

[0022] With reference to the first aspect, in a possible implementation, the processing unit is specifically configured to determine the battery pack voltage U bat based on the following formulas: U bat = U p − U n ; U p = U 1 × R 1 + R 11 + R 12 / R 12 ; U n = U 2 × R 2 + R 21 + R 22 R 22 ; and herein, U p represents a positive electrode voltage of the battery pack, U n represents a negative electrode voltage of the battery pack, R1 represents a resistance value of the first switching resistor, R2 represents a resistance value of the second switching resistor, R 11 represents a resistance value of an upper sampling resistor of the first sampling branch, R 12 represents a resistance value of a lower sampling resistor of the first sampling branch, R 21 represents a resistance value of an upper sampling resistor of the second sampling branch, and R 22 represents a resistance value of a lower sampling resistor of the second sampling branch.

[0023] With reference to the first aspect, in a possible implementation, the processing unit is specifically configured to: control the plurality of switching switches, the first contactor, and the second contactor to be in a second working state, where the second working state is that the first switching switch and the second switching switch are turned off, the third switching switch and the fourth switching switch are turned on, and the first contactor and the second contactor are turned off; when the plurality of switching switches, the first contactor, and the second contactor are in the second working state, detect 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 the load voltage U load based on the third sampling point voltage U3 and the fourth sampling point voltage U4.

[0024] The processing unit controls turn-on and turn-off of the switching switches and the contactors, and collects a corresponding sampling point voltage for calculation, so that the detection apparatus may be used to detect the load voltage U load of the battery system, thereby improving detection efficiency of the battery system.

[0025] With reference to the first aspect, in a possible implementation, the processing unit is specifically configured to determine the load voltage U load based on the following formulas: U load = U p ′ − U n ′ ; U p ′ = U 3 × R 3 + R 11 + R 12 / R 12 ; U n ′ = U 4 × R 4 + R 21 + R 22 R 12 ; and herein, U p ' represents a voltage at the first terminal of the load, U n ' represents a voltage at the second terminal of the load, R3 represents a resistance value of the third switching resistor, R4 represents a resistance value of the fourth switching resistor, R 11 represents the resistance value of the upper sampling resistor of the first sampling branch, R 12 represents the resistance value of the lower sampling resistor of the first sampling branch, R 21 represents the resistance value of the upper sampling resistor of the second sampling branch, and R 22 represents the resistance value of the lower sampling resistor of the second sampling branch.

[0026] With reference to the first aspect, in a possible implementation, the processing unit is specifically configured to: control the plurality of switching switches to be in the first working state, where the first working state is that 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; when the plurality of switching switches are in the first working state, detect the first sampling point voltage U1 of the first switching branch and the second sampling point voltage U2 of the second switching branch; control the plurality of switching switches to be in a third working state, where the third working state is that the first switching switch is turned on, and the second switching switch to the fourth switching switch are turned off; when the plurality of switching switches are in the third working state, detect a fifth sampling point voltage U5 of the first switching branch; and determine the insulation resistance value R p to ground of the positive electrode of the battery pack and the insulation resistance value R 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.

[0027] The processing unit controls turn-on and turn-off of the switching switches, and collects a corresponding sampling point voltage for calculation, so that the detection apparatus may be used to perform insulation detection on the battery system, thereby improving detection efficiency of the battery system.

[0028] With reference to the first aspect, in a possible implementation, the processing unit is specifically configured to determine the insulation resistance value R p to ground of the positive electrode of the battery pack and the insulation resistance value R n to ground of the negative electrode of the battery pack based on the following formulas: U p 1 / R p / / R 1 + R 11 + R 12 = − U n 1 / R n / / R 2 + R 21 + R 22 ; U p 2 / R p / / R 1 + R 11 + R 12 = − U n 2 / R n ; U p 1 = U 1 × R 1 + R 11 + R 12 / R 12 ; U n 1 = U 2 × R 2 + R 21 + R 22 / R 22 ; U p 2 = U 5 × R 1 + R 11 + R 12 / R 12 ; U n 2 = U n 1 − U p 1 + U p 2 ; and herein, U p1 represents a positive electrode voltage of the battery pack in the first working state, U n1 represents a negative electrode voltage of the battery pack in the first working state, U p2 represents a positive electrode voltage of the battery pack in the third working state, U 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, R2 represents the resistance value of the second switching resistor, R 11 represents the resistance value of the upper sampling resistor of the first sampling branch, R 12 represents the resistance value of the lower sampling resistor of the first sampling branch, R 21 represents the resistance value of the upper sampling resistor of the second sampling branch, and R 22 represents the resistance value of the lower sampling resistor of the second sampling branch.

[0029] With reference to the first aspect, in a possible implementation, the processing unit is further configured to: control the first switching switch to be turned on, and obtain a voltage U c1 at the first terminal of the first contactor; control the third switching switch to be turned on, and obtain a voltage U c2 at the second terminal of the first contactor; determine an actual working state of the first contactor based on U c1 and U c2 ; obtain an indicated working state of the first contactor, where the indicated working state is a working state that is of the first contactor and that is indicated by a contactor control signal; and obtain the contact status information of the first contactor based on whether the actual working state is consistent with the indicated working state.

[0030] The processing unit controls turn-on and turn-off of the switching switches, and collects a corresponding sampling point voltage for calculation, so that the detection apparatus may be used to perform contactor adhesion detection on the battery system, thereby improving detection efficiency of the battery system.

[0031] With reference to the first aspect, in a possible implementation, the battery system includes N battery packs, the battery pack is a first battery pack in the N battery packs, and the battery system further includes a third contactor to a (3N-1) th< contactor, where N ≥ 2. A positive electrode of an i th< battery pack in the N battery packs is connected to a first terminal of a (3i-3) th< contactor, a second terminal of the (3i-3) th< contactor is configured to connect to the first terminal of the load, a negative electrode of the i th< battery pack is connected to a first terminal of a (3i-2) th< contactor, a second terminal of the (3i-2) th< contactor is connected to the second terminal of the load, and a (3i-1) th< contactor is disposed between the positive electrode of the i th< battery pack and a negative electrode of an (i-1) th< battery pack, where 2 ≤ i ≤ N. The plurality of switching switches further include a fifth switching switch to a (2N+2) th< switching switch, and the plurality of switching branches further include a fifth switching branch to a (2N+2) th< switching branch. A (2i+1) th< switching branch includes a (2i+1) th< switching resistor, and a (2i+1) th< switching switch is configured to control the (2i+1) th< switching branch to be switched in or out between the positive electrode of the i th< battery pack and the reference ground. A (2i+2) th< switching branch includes a (2i+2) th< switching resistor, and a (2i+2) th< switching switch is configured to control the (2i+2) th< switching branch to be switched in or out between the negative electrode of the i th< battery pack and the reference ground.

[0032] 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 the circuit design can be optimized, and circuit detection efficiency can be improved.

[0033] With reference to the first aspect, in a possible implementation, the plurality of sampling branches include the first sampling branch and the second sampling branch. The first terminal of the first sampling branch is connected to a second terminal of the (2i+1) th< switching branch. The first terminal of the second sampling branch is connected to a second terminal of the (2i+2) th< switching branch.

[0034] According to a second aspect, a detection method for a battery system according to appended claim 12 is provided.

[0035] The switching unit is disposed in the detection apparatus for the 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.

[0036] With reference to the second aspect, in a possible implementation, the method further includes: The processing unit determines at least one of the following information based on the sampling point voltage information: contact status information of the first contactor and contact status information of the second contactor, where the contact status information is used to indicate whether a contact of the contactor is adhered.

[0037] With reference to the second aspect, in a possible implementation, each of the plurality of sampling branches includes an upper sampling resistor and a lower sampling resistor, a first terminal of the upper sampling resistor is connected to the first terminal of each sampling branch, a second terminal of the upper sampling resistor is connected to a first terminal of the lower sampling resistor, and a second terminal of the lower sampling resistor is connected to the reference ground, where a sampling point voltage of the switching branch is a voltage at the second terminal of the upper sampling resistor.

[0038] With reference to the second aspect, in a possible implementation, that the processing unit determines high voltage detection information and insulation detection information based on the sampling point voltage information includes: The processing unit controls the plurality of switching switches to be in a first working state, where the first working state is that 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; when the plurality of switching switches are in the first working state, the processing unit detects a first sampling point voltage U1 of the first switching branch and a second sampling point voltage U2 of the second switching branch; and the processing unit determines the battery pack voltage U bat based on the first sampling point voltage U1 and the second sampling point voltage U2.

[0039] With reference to the second aspect, in a possible implementation, that the processing unit determines the battery pack voltage U bat based on the first sampling point voltage U1 and the second sampling point voltage U2 includes: The processing unit determines the battery pack voltage U bat based on the following formulas: U bat = U p − U n ; U p = U 1 × R 1 + R 11 + R 12 / R 12 ; U n = U 2 × R 2 + R 21 + R 22 R 22 ; and herein, U p represents a positive electrode voltage of the battery pack, U n represents a negative electrode voltage of the battery pack, R1 represents a resistance value of the first switching resistor, R2 represents a resistance value of the second switching resistor, R 11 represents a resistance value of an upper sampling resistor of the first sampling branch, R 12 represents a resistance value of a lower sampling resistor of the first sampling branch, R 21 represents a resistance value of an upper sampling resistor of the second sampling branch, and R 22 represents a resistance value of a lower sampling resistor of the second sampling branch.

[0040] With reference to the second aspect, in a possible implementation, that the processing unit determines high voltage detection information and insulation detection information based on the sampling point voltage information includes: The processing unit controls the plurality of switching switches, the first contactor, and the second contactor to be in a second working state, where the second working state is that the first switching switch and the second switching switch are turned off, the third switching switch and the fourth switching switch are turned on, and the first contactor and the second contactor are turned off; when the plurality of switching switches, the first contactor, and the second contactor are in the second working state, the processing unit detects a third sampling point voltage U3 of the third switching branch and a fourth sampling point voltage U4 of the fourth switching branch; and the processing unit determines the load voltage U load based on the third sampling point voltage U3 and the fourth sampling point voltage U4.

[0041] With reference to the second aspect, in a possible implementation, that the processing unit determines the load voltage U load based on the third sampling point voltage U3 and the fourth sampling point voltage U4 includes: The processing unit determines the load voltage U load based on the following formulas: U load = U p ′ − U n ′ ; U p ′ = U 3 × R 3 + R 11 + R 12 / R 12 ; U n ′ = U 4 × R 4 + R 21 + R 22 R 12 ; and herein, U p ' represents a voltage at the first terminal of the load, U n ' represents a voltage at the second terminal of the load, R3 represents a resistance value of the third switching resistor, R4 represents a resistance value of the fourth switching resistor, R 11 represents the resistance value of the upper sampling resistor of the first sampling branch, R 12 represents the resistance value of the lower sampling resistor of the first sampling branch, R 21 represents the resistance value of the upper sampling resistor of the second sampling branch, and R 22 represents the resistance value of the lower sampling resistor of the second sampling branch.

[0042] With reference to the second aspect, in a possible implementation, that the processing unit determines high voltage detection information and insulation detection information based on the sampling point voltage information includes: The processing unit controls the plurality of switching switches to be in the first working state, where the first working state is that 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; when the plurality of switching switches are in the first working state, the processing unit detects the first sampling point voltage U1 of the first switching branch and the second sampling point voltage U2 of the second switching branch; the processing unit controls the plurality of switching switches to be in a third working state, where the third working state is that the first switching switch is turned on, and the second switching switch to the fourth switching switch are turned off; when the plurality of switching switches are in the third working state, the processing unit detects a fifth sampling point voltage U5 of the first switching branch; and the processing unit determines the insulation resistance value R p to ground of the positive electrode of the battery pack and the insulation resistance value R 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.

[0043] With reference to the second aspect, in a possible implementation, that the processing unit determines the insulation resistance value R p to ground of the positive electrode of the battery pack and the insulation resistance value R 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 includes: The processing unit determines the insulation resistance value R p to ground of the positive electrode of the battery pack and the insulation resistance value R n to ground of the negative electrode of the battery pack based on the following formulas: U p 1 / R p / / R 1 + R 11 + R 12 = − U n 1 / R n / / R 2 + R 21 + R 22 ; U p 2 / R p / / R 1 + R 11 + R 12 = − U n 2 / R n ; U p 1 = U 1 × R 1 + R 11 + R 12 / R 12 ; U n 1 = U 2 × R 2 + R 21 + R 22 / R 22 ; U p 2 = U 5 × R 1 + R 11 + R 12 / R 12 ; U n 2 = U n 1 − U p 1 + U p 2 ; and herein, U p1 represents a positive electrode voltage of the battery pack in the first working state, U n1 represents a negative electrode voltage of the battery pack in the first working state, U p2 represents a positive electrode voltage of the battery pack in the third working state, U 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, R2 represents the resistance value of the second switching resistor, R 11 represents the resistance value of the upper sampling resistor of the first sampling branch, R 12 represents the resistance value of the lower sampling resistor of the first sampling branch, R 21 represents the resistance value of the upper sampling resistor of the second sampling branch, and R 22 represents the resistance value of the lower sampling resistor of the second sampling branch.

[0044] With reference to the second aspect, in a possible implementation, the method further includes: The processing unit controls the first switching switch to be turned on, and obtains a voltage U c1 at the first terminal of the first contactor; the processing unit controls the third switching switch to be turned on, and obtains a voltage U c2 at the second terminal of the first contactor; the processing unit determines an actual working state of the first contactor based on U c1 and U c2 ; the processing unit obtains an indicated working state of the first contactor, where the indicated working state is a working state that is of the first contactor and that is indicated by a contactor control signal; and the processing unit obtains the contact status information of the first contactor based on whether the actual working state is consistent with the indicated working state.

[0045] With reference to the second aspect, in a possible implementation, the battery system includes N battery packs, the battery pack is a first battery pack in the N battery packs, and the battery system further includes a third contactor to a (3N-1) th< contactor, where N ≥ 2. A positive electrode of an i th< battery pack in the N battery packs is connected to a first terminal of a (3i-3) th< contactor, a second terminal of the (3i-3) th< contactor is configured to connect to the first terminal of the load, a negative electrode of the i th< battery pack is connected to a first terminal of a (3i-2) th< contactor, a second terminal of the (3i-2) th< contactor is connected to the second terminal of the load, and a (3i-1) th< contactor is disposed between the positive electrode of the i th< battery pack and a negative electrode of an (i-1) th< battery pack, where 2 ≤ i ≤ N. The plurality of switching switches further include a fifth switching switch to a (2N+2) th< switching switch, and the plurality of switching branches further include a fifth switching branch to a (2N+2) th< switching branch. A (2i+1) th< switching branch includes a (2i+1) th< switching resistor, and a (2i+1) th< switching switch is configured to control the (2i+1) th< switching branch to be switched in or out between the positive electrode of the i th< battery pack and the reference ground. A (2i+2) th< switching branch includes a (2i+2) th< switching resistor, and a (2i+2) th< switching switch is configured to control the (2i+2) th< switching branch to be switched in or out between the negative electrode of the i th< battery pack and the reference ground.

[0046] With reference to the second aspect, in a possible implementation, the plurality of sampling branches include the first sampling branch and the second sampling branch. The first terminal of the first sampling branch is connected to a second terminal of the (2i+1) th< switching branch. The first terminal of the second sampling branch is connected to a second terminal of the (2i+2) th< switching branch.BRIEF DESCRIPTION OF DRAWINGS

[0047] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of this application; FIG. 2 is a schematic diagram of a structure of a detection apparatus 200 according to an embodiment of this application; FIG. 3 is a schematic diagram of a structure of a detection apparatus 200 according to an example not forming part of the invention; FIG. 4 is a flowchart of a high voltage detection method for a battery pack voltage U bat of a battery system according to an embodiment of this application; FIG. 5 is a flowchart of a high voltage detection method for a load voltage U load of a battery system according to an embodiment of this application; FIG. 6 is a flowchart of an insulation detection method for a battery system according to an embodiment of this application; FIG. 7 is a flowchart of an insulation detection method for a battery system according to another embodiment of this application; FIG. 8 is a flowchart of an adhesion detection method for a contactor according to an embodiment of this application; FIG. 9 is a flowchart of an adhesion detection method for a contactor according to an embodiment of this application; FIG. 10 is a schematic diagram of a detection apparatus 200 according to another embodiment of this application; and FIG. 11 is a schematic diagram of a detection apparatus 200 according to an embodiment of this application. DESCRIPTION OF EMBODIMENTS

[0048] The following describes technical solutions of this application with reference to accompanying drawings.

[0049] For ease of understanding, some terms in embodiments of this application are first described.

[0050] 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 of this application, because output of a battery system is a direct current, the contactor may be a direct current contactor.

[0051] Battery management system (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.

[0052] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of this application. As shown in FIG. 1, the application scenario includes a battery system 100 and a detection apparatus 200. The battery system 100 includes a battery pack 110, a first contactor 101, and a second contactor 102. The first contactor 101 and the second contactor 102 are used as control switches for external output of the battery system 100, that is, control connection and disconnection of an external output circuit of the battery pack 110. A first terminal of the first contactor 101 is connected to a positive electrode of the battery pack 110. A second terminal of the first contactor 101 is configured to connect to a positive electrode of an output end of the battery system 100, or in other words, is configured to connect to a first terminal of a load (not shown in the figure). A first terminal of the second contactor 102 is connected to a negative electrode of the battery pack 110. A second terminal of the second contactor 102 is connected to a negative electrode of the output end of the battery system 100, or in other words, is configured to connect to a second terminal of the load.

[0053] 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.

[0054] It should be understood that the components in the battery system 100 shown in FIG. 1 are merely used as examples. In practice, the battery system 100 may further include a plurality of battery packs 110 and a plurality of contactors, or may include another component or functional module that is not shown in FIG. 1.

[0055] It should be understood that the battery system 100 in FIG. 1 may be applied to an electric vehicle, an intelligent vehicle, or a hybrid electric vehicle, or may be applied to another field.

[0056] As shown in FIG. 1, the detection apparatus 200 is connected to the battery system 100, and is configured to implement high voltage detection and insulation detection in the battery system 100.

[0057] 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. 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.

[0058] 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.

[0059] For ease of understanding, the following separately describes principles of high voltage detection, insulation detection, and contact adhesion detection of a contactor.

[0060] High voltage detection principle: is used to calculate a battery pack voltage U bat or a load voltage U 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.

[0061] Insulation detection principle: Insulation detection is used to separately detect insulation resistance R p to ground of the positive electrode of the battery pack 110 and insulation resistance R 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 p to ground of the positive electrode of the battery pack 110 and the insulation resistance R n to ground of the negative electrode of the battery pack 110.

[0062] 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. If the current working state is different from the indicated working state, it indicates that the contact of the contactor is adhered.

[0063] FIG. 2 is a schematic diagram of a structure of a detection apparatus 200 according to an embodiment of this application. As shown in FIG. 2, the detection apparatus 200 includes a switching unit 201 and a processing unit 202.

[0064] 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.

[0065] 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.

[0066] 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.

[0067] 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.

[0068] Optionally, in this embodiment of this application, 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 (MΩ) level, may be generally used as the resistance values of the switching resistors (R1 to R4).

[0069] 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.

[0070] In an example, the switching switch may include at least one of the following switch components: a relay, an opto-isolator (photoMOS), and a metal oxide field-effect transistor (metal oxide semiconductor field-effect transistor, MOSFET).

[0071] 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.

[0072] 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.

[0073] 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 bat and a load voltage U load , and the insulation detection information includes at least one of the following: an insulation resistance value R p to ground of the positive electrode of the battery pack 110 and an insulation resistance value R n to ground of the negative electrode of the battery pack 110.

[0074] In this embodiment of this application, 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.

[0075] 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.

[0076] Still refer to FIG. 2. In this embodiment, the plurality of switching branches include a first switching branch to a fourth switching branch (221 to 224), the plurality of switching switches include a first switching switch S1 to a fourth switching switch S4, and the plurality of switching branches are in a one-to-one correspondence with the plurality of switching switches.

[0077] 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.

[0078] 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.

[0079] 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.

[0080] 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.

[0081] Still refer to FIG. 2. The switching unit 201 further includes a plurality of sampling branches (2011 and 2012), and the plurality of sampling branches are configured to provide sampling point voltages corresponding to the switching branches. The sampling branches are disposed between the plurality of switching branches and the reference ground. A first terminal of each of the plurality of sampling branches is connected to a second terminal of at least one of the plurality of switching branches, and a second terminal of each sampling branch is connected to the reference ground.

[0082] In an embodiment, in FIG. 2, an example in which the plurality of sampling branches include two sampling branches (2011 and 2012) is used for description. A first terminal of a first sampling branch 2011 is connected to a second terminal of the first switching branch 221 and a second terminal of the third switching branch 223. A first terminal of a second sampling branch 2012 is connected to a second terminal of the second switching branch 222 and a second terminal of the fourth switching branch 224.

[0083] It should be understood that connections between components or circuits in this embodiment of this application 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.

[0084] Still refer to FIG. 2. In some embodiments, each of the plurality of sampling branches includes an upper sampling resistor (R 11 and R 21 ) and a lower sampling resistor (R 12 and R 22 ), a first terminal of the upper sampling resistor (R 11 and R 21 ) is connected to the first terminal of each sampling branch, a second terminal of the upper sampling resistor (R 11 and R 21 ) is connected to a first terminal of the lower sampling resistor (R 12 and R 22 ), and a second terminal of the lower sampling resistor (R 12 and R 22 ) is connected to the reference ground, where a sampling point voltage of the switching branch is a voltage at the second terminal of the upper sampling resistor (R 12 and R 22 ).

[0085] It should be understood that, in FIG. 2, both the first switching branch 221 and the third switching branch 223 correspond to the first sampling branch 2011. When the first switching switch S1 is turned on and the third switching switch S3 is turned off, the first switching branch 221 is switched into a circuit, and a sampling point voltage detected by using the first sampling branch 2011 is a sampling point voltage corresponding to the first switching branch 221. When the first switching switch S1 is turned off and the third switching switch S3 is turned on, the third switching branch 223 is switched into the circuit, and a sampling point voltage detected by using the second sampling branch is a sampling point voltage corresponding to the third switching branch 223. Similarly, both the second switching branch 222 and the fourth switching branch 224 correspond to the second sampling branch 2012.

[0086] In some embodiments, 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.

[0087] It should be understood that the sampling branch in FIG. 2 is merely an example rather than a limitation. The sampling branch may alternatively be implemented in another manner, provided that the sampling branch can implement a function of providing the sampling point voltage of the switching branch. In an example not forming part of the invention, the switching unit 201 in FIG. 2 may include four sampling branches, and the four sampling branches are in a one-to-one correspondence with the four switching branches.

[0088] It should be understood that FIG. 2 is merely used as an example of a specific implementation of the detection apparatus 200, and the switching unit 201 may alternatively be implemented in another manner, provided that the switching unit 201 can implement switching in and switching out between a plurality of switching branches and a plurality of terminals in the battery system, and a reference ground of the plurality of switching branches is the vehicle body ground.

[0089] FIG. 3 shows an implementation of the detection apparatus 200 that does not form part of the invention.

[0090] FIG. 3 is a schematic diagram of a structure of a detection apparatus 200 according to an example not forming part of the invention. As shown in FIG. 3, the switching branches include a first switching branch 221 and a second switching branch 222, the plurality of switching resistors include a first switching resistor R1 and a second switching resistor R2, and the plurality of switching switches include a first switching switch S1 and a second switching switch S2. The first switching switch S1 and the second switching switch S2 are single-pole multi-throw switches.

[0091] 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).

[0092] 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).

[0093] 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.

[0094] With reference to the detection apparatus 200 shown in FIG. 2, the following describes in detail a high voltage detection method, an insulation detection method, and a contact adhesion detection method for a contactor in embodiments of this application.

[0095] FIG. 4 is a flowchart of a high voltage detection method for a battery pack voltage U bat according to an embodiment of this application. As shown in FIG. 4, the method includes the following steps.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] Specifically, the first sampling point voltage U1 is a voltage at the second terminal of the upper sampling resistor R 11 in the first sampling branch 2011, and the second sampling point voltage U2 is a voltage at the second terminal of the upper sampling resistor R 21 in the second sampling branch 2012.

[0100] S403: The processing unit 202 determines the battery pack voltage U bat based on the first sampling point voltage U1 and the second sampling point voltage U2.

[0101] Specifically, the processing unit 202 may calculate a positive electrode voltage U p and a negative electrode voltage U n of the battery pack based on a voltage division law, and further calculate the battery pack voltage U bat . Formulas are as follows: U bat = U p − U n ; U p = U 1 × R 1 + R 11 + R 12 / R 12 ; U n = U 2 × R 2 + R 21 + R 22 / R 22 ; herein, U p represents the positive electrode voltage of the battery pack, U 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 11 represents a resistance value of the upper sampling resistor R 11 of the first sampling branch 2011, R 12 represents a resistance value of the lower sampling resistor R 12 of the first sampling branch 2011, R 21 represents a resistance value of the upper sampling resistor R 21 of the second sampling branch 2012, and R 22 represents a resistance value of the lower sampling resistor R 22 of the second sampling branch 2012.

[0102] FIG. 5 is a flowchart of a high voltage detection method for a load voltage U load of a battery system according to an embodiment of this application. As shown in FIG. 5, the method includes the following steps.

[0103] 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.

[0104] 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.

[0105] 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.

[0106] 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.

[0107] 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.

[0108] Specifically, the third sampling point voltage U3 is a voltage at the second terminal of the upper sampling resistor R 11 in the first sampling branch 2011, and the fourth sampling point voltage U4 is a voltage at the second terminal of the upper sampling resistor R 21 in the second sampling branch 2012.

[0109] S503: The processing unit 202 determines the load voltage U load based on the third sampling point voltage U3 and the fourth sampling point voltage U4.

[0110] In an example, the processing unit 202 may calculate a voltage U p ' at a first terminal of a load and a voltage U n ' at a second terminal of the load based on a voltage division law, and further calculate the load voltage U load . Formulas are as follows: U load = U p ′ − U n ′ ; U p ′ = U 3 × R 3 + R 11 + R 12 / R 12 ; U n ′ = U 4 × R 4 + R 21 + R 22 R 12 ; herein, U p ' represents the voltage at the first terminal of the load, U 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 11 represents the resistance value of the upper sampling resistor R 11 of the first sampling branch 2011, R 12 represents the resistance value of the lower sampling resistor R 12 of the first sampling branch 2011, R 21 represents the resistance value of the upper sampling resistor R 21 of the second sampling branch 2012, and R 22 represents the resistance value of the lower sampling resistor R 22 of the second sampling branch 2012.

[0111] FIG. 6 is a flowchart of an insulation detection method for a battery system according to an embodiment of this application. As shown in FIG. 6, the method includes the following steps.

[0112] 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.

[0113] 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.

[0114] 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.

[0115] 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.

[0116] S605: The processing unit 202 determines the insulation resistance value R p to ground of the positive electrode of the battery pack and the insulation resistance value R 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.

[0117] Specifically, the processing unit 202 may calculate the insulation resistance value R p to ground of the positive electrode of the battery pack and the insulation resistance value R 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 p 1 / R p / / R 1 + R 11 + R 12 = − U n 1 / R n / / R 2 + R 21 + R 22 ; U p 2 / R p / / R 1 + R 11 + R 12 = − U n 2 / R n ; U p 1 = U 1 × R 1 + R 11 + R 12 / R 12 ; U n 1 = U 2 × R 2 + R 21 + R 22 / R 22 ; U p 2 = U 5 × R 1 + R 11 + R 12 / R 12 ; U n 2 = U n 1 − U p 1 + U p 2 ; herein, U p1 represents a positive electrode voltage of the battery pack in the first working state, U n1 represents a negative electrode voltage of the battery pack in the first working state, U p2 represents a positive electrode voltage of the battery pack in the third working state, U 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 11 represents the resistance value of the upper sampling resistor R 11 of the first sampling branch 2011, R 12 represents the resistance value of the lower sampling resistor R 12 of the first sampling branch 2011, R 21 represents the resistance value of the upper sampling resistor R 21 of the second sampling branch 2012, and R 22 represents the resistance value of the lower sampling resistor R 22 of the second sampling branch 2012.

[0118] The formula (7) and the formula (8) use a Kirchhoff's 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.

[0119] 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 p to ground of the positive electrode of the battery pack and the insulation resistance value R 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.

[0120] Correspondingly, the processing unit 202 may calculate R p and R n based on the following formulas: U p 1 / R p / / R 1 + R 11 + R 12 = − U n 1 / R n / / R 2 + R 21 + R 22 ; U p 3 / R p = − U n 3 / R n / / R 2 + R 21 + R 22 ; U p 1 = U 1 × R 1 + R 11 + R 12 / R 12 ; U n 1 = U 2 × R 2 + R 21 + R 22 / R 22 ; U n 3 = U 6 × R 2 + R 21 + R 22 / R 22 ; U p 3 = U p 1 − U n 1 + U n 3 ; herein, U p1 represents a positive electrode voltage of the battery pack in the first working state, U n1 represents a negative electrode voltage of the battery pack in the first working state, U p3 represents a positive electrode voltage of the battery pack in the fourth working state, U 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 11 represents the resistance value of the upper sampling resistor R 11 of the first sampling branch 2011, R 12 represents the resistance value of the lower sampling resistor R 12 of the first sampling branch 2011, R 21 represents the resistance value of the upper sampling resistor R 21 of the second sampling branch 2012, and R 22 represents the resistance value of the lower sampling resistor R 22 of the second sampling branch 2012.

[0121] It should be understood that the solution in FIG. 6 is merely used as an example for description of insulation detection. With reference to the detection apparatus 200 provided in this application, a control unit may control the plurality of switching switches to be in another working state, and obtain a corresponding sampling point voltage, to calculate the insulation resistance value R p to ground of the positive electrode of the battery pack and the insulation resistance value R n to ground of the negative electrode of the battery pack.

[0122] With reference to FIG. 7, the following continues to describe a specific example of the insulation detection method in this application.

[0123] FIG. 7 is a flowchart of an insulation detection method for a battery system according to another embodiment of this application. As shown in FIG. 7, the method includes the following steps. 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. 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. S703: The processing unit 202 calculates a positive electrode voltage U p1 of the battery pack and a negative electrode voltage U n1 of the battery pack based on U1, U2, and a voltage division principle.

[0124] For calculation manners of the positive electrode voltage U p1 of the battery pack and the negative electrode voltage U n1 of the battery pack, refer to related descriptions of FIG. 6. Details are not described herein.

[0125] S704: The processing unit 202 determines values of U p1 and U n1 , and if U p1 > U n1 , turns off the second switching switch S2, keeps statuses of the other switching switches unchanged, and performs S705; or if U p1 < U n1 , turns off the first switching switch S1, keeps statuses of the other switching switches unchanged, and performs S706.

[0126] In S704, when the voltage U p1 is greater than U n1 , it indicates that the insulation resistance R p to ground of the positive electrode of the battery pack is greater than the insulation resistance R n to ground of the negative electrode of the battery pack. If the second switching switch S2 is turned off, R p and R 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 p and (R1 + R 11 + R 12 ) are connected in parallel is closer to an order of magnitude of a resistance value of R 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 p and R 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 p and an order of magnitude of a resistance value obtained after R n and (R2 + R 21 + R 22 ) are connected in parallel, and this causes an increase in a calculation error.

[0127] Similarly, when the voltage U p1 is less than U n1 , the first switching switch S1 is selected to be turned off, and R p and R n are calculated by using the formulas (13) to (18), so that a calculation error is smaller.

[0128] Therefore, the manner in S704 is used to calculate R p and R n , so that accuracy of calculating R p and R n can be improved.

[0129] 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 p to ground of the positive electrode of the battery pack and the insulation resistance value R n to ground of the negative electrode of the battery pack based on U1, U2, and U5.

[0130] Specifically, R p and R n may be calculated based on the formulas (7) to (12). Details are not described herein.

[0131] 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 p to ground of the positive electrode of the battery pack and the insulation resistance value R n to ground of the negative electrode of the battery pack based on U1, U2, and U6.

[0132] Specifically, R p and R n may be calculated based on the formulas (13) to (18). Details are not described herein.

[0133] With reference to FIG. 8 and FIG. 9, the following describes the adhesion detection method for a contactor in embodiments of this application.

[0134] FIG. 8 is a flowchart of an adhesion detection method for a contactor according to an embodiment of this application. In FIG. 8, an example in which the first contactor 101 is detected is used for description. As shown in FIG. 8, the method includes the following steps.

[0135] S801: The processing unit 202 controls the first switching switch S1 to be turned on, and obtains a voltage U c1 at the first terminal of the first contactor 101.

[0136] S802: The processing unit 202 controls the third switching switch S3 to be turned on, and obtains a voltage U c2 at the second terminal of the first contactor 101.

[0137] 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 c1 and U c2 by using a voltage division principle.

[0138] S803: The processing unit 202 determines an actual working state of the first contactor 101 based on U c1 and U c2 .

[0139] For example, the processing unit 202 may determine the actual working state of the first contactor 101 based on whether U c1 - U c2 is greater than a preset threshold U 0 . If U c1 - U c2 ≥ U 0 , it is determined that the actual working state of the first contactor 101 is an open state; or if U c1 - U c2 < U 0 , it is determined that the first contactor 101 is in a closed state. A value of the preset threshold U 0 may be determined based on practice.

[0140] 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.

[0141] 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.

[0142] 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.

[0143] FIG. 9 is a flowchart of an adhesion detection method for a contactor according to an embodiment of this application. In FIG. 9, an example in which the first contactor 101 is detected is used for description. As shown in FIG. 9, the method includes the following steps.

[0144] S901: The processing unit 202 controls the first switching switch S1 to be turned on, and obtains a voltage U c1 at the first terminal of the first contactor 101.

[0145] S902: The processing unit 202 controls the third switching switch S3 to be turned on, and obtains a voltage U c2 at the second terminal of the first contactor 101.

[0146] S903: The processing unit 202 determines an actual working state of the first contactor 101 based on whether U c1 - U c2 is greater than a preset threshold U 0 .

[0147] S904: If U c1 - U c2 ≥ U 0 , it is determined that the actual working state of the first contactor 101 is an open state; or if U c1 - U c2 < U 0 , it is determined that the first contactor 101 is in a closed state.

[0148] 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.

[0149] FIG. 10 is a schematic diagram of a detection apparatus 200 according to another embodiment of this application. As shown in FIG. 10, in an example, the processing unit 202 may further include a plurality of subunits, to implement the foregoing steps performed by the processing unit 202. As shown in FIG. 10, the processing unit 202 may include a calculation unit 2021, a control unit 2022, a drive unit 2023, and a sampling unit 2024. Functions of the units are described below.

[0150] 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.

[0151] 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.

[0152] 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.

[0153] 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.

[0154] It should be understood that the subunits in FIG. 10 may be integrated into one independent module, or may be disposed in different modules.

[0155] 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 of this application may also be applied to a battery system with a plurality of battery packs. With reference to FIG. 11, the following continues to describe a detection apparatus 200 that can be applied to a battery system with a plurality of battery packs.

[0156] FIG. 11 is a schematic diagram of a detection apparatus 200 according to an embodiment of this application. As shown in FIG. 11, the battery system includes N battery packs, and a first contactor to a (3N-1) th< contactor. The battery pack in FIG. 2 may be a first battery pack in the N battery packs. A positive electrode of an i th< battery pack in the N battery packs is connected to a first terminal of a (3i-3) th< contactor, a second terminal of the (3i-3) th< contactor is configured to connect to a first terminal of a load, a negative electrode of the i th< battery pack is connected to a first terminal of a (3i-2) th< contactor, a second terminal of the (3i-2) th< contactor is connected to a second terminal of the load, and a (3i-1) th< contactor is disposed between the positive electrode of the i th< battery pack and a negative electrode of an (i-1) th< battery pack, where N ≥ 2, and 2 ≤ i ≤ N.

[0157] 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.

[0158] Still refer to FIG. 11. The plurality of switching switches further include a fifth switching switch to a (2N+2) th< switching switch, and the plurality of switching branches further include a fifth switching branch to a (2N+2) th< switching branch.

[0159] A (2i+1) th< switching branch includes a (2i+1) th< switching resistor R 2i+1 , and a (2i+1) th< switching switch S 2i+1 is configured to control the (2i+1) th< switching branch to be switched in or out between the positive electrode of the i th< battery pack and the reference ground.

[0160] A (2i+2) th< switching branch includes a (2i+2) th< switching resistor R 2i+2 , and a (2i+2) th< switching switch is configured to control the (2i+2) th< switching branch to be switched in or out between the negative electrode of the i th< battery pack and the reference ground.

[0161] Optionally, the first terminal of the first sampling branch 2011 is connected to a second terminal of the (2i+1) th< switching branch, and the first terminal of the second sampling branch 2012 is connected to a second terminal of the (2i+2) th< switching branch.

[0162] It should be understood that the battery system in FIG. 11 may flexibly implement various combinations of a plurality of battery packs connected in series, in parallel, or in series-parallel. With reference to the foregoing descriptions, the detection apparatus 200 in FIG. 11 may implement high voltage detection, insulation detection, and contact adhesion detection of a contactor on a single battery pack or the foregoing combinations.

[0163] Optionally, the detection apparatus 200 in FIG. 11 may also be properly changed. For example, connection relationships or quantities of the plurality of switching branches and the plurality of sampling branches may be changed, provided that the detection apparatus 200 can implement a function of detecting voltages at different terminals in the battery system.

[0164] In this embodiment of this application, 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.

[0165] 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).

[0166] 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 application.

[0167] 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.

[0168] In the several embodiments provided in this application, 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.

[0169] 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.

[0170] In addition, functional units in embodiments of this application 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.

[0171] 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 of this application essentially, or the part contributing to the prior art, or some of 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 of this application. 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 (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disc.

[0172] The invention is defined by the appended claims.

Claims

1. A detection apparatus (200) for a battery system (100), wherein the battery system comprises a battery pack, (110) a first contactor (101), and a second contactor (102); a first terminal of the first contactor is connected to a positive electrode of the battery pack, a first terminal of the second contactor is connected to a negative electrode of the battery pack, a second terminal of the first contactor is configured to connect to a first terminal of a load, and a second terminal of the second contactor is configured to connect to a second terminal of the load; and the detection apparatus comprises: a switching unit (201), comprising a plurality of switching branches (221 - 224) and a plurality of switching switches (S1 - S4), wherein each of the plurality of switching branches comprises a switching resistor (R1 - R4), 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: the positive electrode of the battery pack, the second terminal of the first contactor, the negative electrode of the battery pack, and the second terminal of the second contactor, wherein the reference ground is configured to connect to a vehicle body ground; and a processing unit (202), configured to: detect sampling point voltage information of the plurality of switching branches, wherein the sampling point voltage information is used to indicate sampling point voltages of the plurality of switching branches; and determine high voltage detection information and insulation detection information based on the sampling point voltage information, wherein the high voltage detection information comprises at least one of the following: a battery pack voltage Ubat and a load voltage Uload, and the insulation detection information comprises at least one of the following: an insulation resistance value Rp to ground of the positive electrode of the battery pack and an insulation resistance value Rn to ground of the negative electrode of the battery pack wherein the plurality of switching branches comprise a first switching branch (221) to a fourth switching branch (224), and the plurality of switching switches comprise a first switching switch (S1) to a fourth switching switch (S4), wherein: the first switching branch (221) comprises a first switching resistor (R1), and the first switching switch is configured to control the first switching branch to be switched in or out between the positive electrode of the battery pack and the reference ground; the second switching branch (222) comprises a second switching resistor (R2), and the second switching switch is configured to control the second switching branch to be switched in or out between the negative electrode of the battery pack and the reference ground; the third switching branch (223) comprises a third switching resistor (R3), and the third switching switch is configured to control the third switching branch to be switched in or out between the second terminal of the first contactor and the reference ground; and the fourth switching branch (224) comprises a fourth switching resistor (R4), and the fourth switching switch is configured to control the fourth switching branch to be switched in or out between the second terminal of the second contactor and the reference ground; wherein the plurality of sampling branches comprise a first sampling branch (2011) and a second sampling branch (2012); the apparatus characterised in that: a first terminal of the first sampling branch is connected to a second terminal of the first switching branch and a second terminal of the third switching branch; and a second terminal of the second sampling branch is connected to a second terminal of the second switching branch and a second terminal of the fourth switching branch.

2. The detection apparatus (200) according to claim 1, wherein 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), wherein the contact status information is used to indicate whether a contact of the contactor is adhered.

3. The detection apparatus (200) according to claim 1, wherein each of the plurality of sampling branches (2011, 2012) comprises an upper sampling resistor (R11, R21) and a lower sampling resistor ((R12), R22), a first terminal of each upper sampling resistor is respectively connected to the first terminal of each sampling branch, a second terminal of each upper sampling resistor is connected to a first terminal of the respective lower sampling resistor, and a second terminal of each lower sampling resistor is connected to the reference ground, wherein a sampling point voltage of the switching branch is a voltage at the second terminal of the upper sampling resistor.

4. The detection apparatus (200) according to claim 1, wherein the processing unit (202) is specifically configured to: control the plurality of switching switches (S1 - S4) to be in a first working state, wherein 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; when the plurality of switching switches are in the first working state, detect a first sampling point voltage U1 of the first switching branch (2011) and a second sampling point voltage U2 of the second switching branch (2012); and determine the battery pack voltage Ubat based on the first sampling point voltage U1 and the second sampling point voltage U2.

5. The detection apparatus (200) according to claim 4, wherein the processing unit (202) is specifically configured to determine the battery pack voltage Ubat based on the following formulas: U bat = U p − U n ; U p = U 1 × R 1 + R 11 + R 12 / R 12 ; U n = U 2 × R 2 + R 21 + R 22 / R 22 ; and herein, Up represents a positive electrode voltage of the battery pack, Un represents a 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), R11 represents a resistance value of an upper sampling resistor (R11) of the first sampling branch (2011), R12 represents a resistance value of a lower sampling resistor (R12) of the first sampling branch, R21 represents a resistance value of an upper sampling resistor (R21) of the second sampling branch, and R22 represents a resistance value of a lower sampling resistor (R22) of the second sampling branch.

6. The detection apparatus (200) according to claim 1, claim 4 or claim 5, wherein the processing unit (202) is specifically configured to: control the plurality of switching switches (S1 - S4), the first contactor (201), and the second contactor (202) to be in a second working state, wherein 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 and the second contactor are turned off; when the plurality of switching switches, the first contactor, and the second contactor are in the second working state, detect 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 the load voltage Uload based on the third sampling point voltage U3 and the fourth sampling point voltage U4.

7. The detection apparatus (200) according to claim 6, wherein the processing unit (202) is specifically configured to determine the load voltage Uload based on the following formulas: U load = U p ′ − U n ′ ; U p ′ = U 3 × R 3 + R 11 + R 12 / R 12 ; U n ′ = U 4 × R 4 + R 21 + R 22 R 12 ; and herein, Up' represents a voltage at the first terminal of the load, Un' represents a 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), R11 represents the resistance value of the upper sampling resistor (R11) of the first sampling branch (2011), R12 represents the resistance value of the lower sampling resistor (R12) of the first sampling branch, R21 represents the resistance value of the upper sampling resistor (R21) of the second sampling branch (2012), and R22 represents the resistance value of the lower sampling resistor (R22) of the second sampling branch.

8. The detection apparatus (200) according to claim 1, or any one of claims 4 to 7, wherein the processing unit (202) is specifically configured to: control the plurality of switching switches (S1 - S4) to be in the first working state, wherein 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; when the plurality of switching switches are in the first working state, detect the first sampling point voltage U1 of the first switching branch (221) and the second sampling point voltage U2 of the second switching branch (222); control the plurality of switching switches to be in a third working state, wherein the third working state is that the first switching switch is turned on, and the second switching switch to the fourth switching switch are turned off; when the plurality of switching switches are in the third working state, detect a fifth sampling point voltage U5 of the first switching branch; and determine the insulation resistance value Rp to ground of the positive electrode of the battery pack (110) and the insulation resistance value Rn 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.

9. The detection apparatus (200) according to claim 8, wherein the processing unit (202) is specifically configured to determine the insulation resistance value Rp to ground of the positive electrode of the battery pack (110) and the insulation resistance value Rn to ground of the negative electrode of the battery pack based on the following formulas: U p 1 / R p / / R 1 + R 11 + R 12 = − U n 1 / R n / / R 2 + R 21 + R 22 ; U p 2 / R p / / R 1 + R 11 + R 12 = − U n 2 / R n ; U p 1 = U 1 × R 1 + R 11 + R 12 / R 12 ; U n 1 = U 2 × R 2 + R 21 + R 22 / R 22 ; U p 2 = U 5 × R 1 + R 11 + R 12 / R 12 ; U n 2 = U n 1 − U p 1 + U p 2 ; and herein, Up1 represents a positive electrode voltage of the battery pack in the first working state, Un1 represents a negative electrode voltage of the battery pack in the first working state, Up2 represents a positive electrode voltage of the battery pack in the third working state, Un2 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), R11 represents the resistance value of the upper sampling resistor (R11) of the first sampling branch (2011), R12 represents the resistance value of the lower sampling resistor (R12) of the first sampling branch, R21 represents the resistance value of the upper sampling resistor (R21) of the second sampling branch (2012), and R22 represents the resistance value of the lower sampling resistor(R22) of the second sampling branch.

10. The detection apparatus (200) according to claim 1 or any one of claims 4 to 9, wherein the processing unit (202) is further configured to: control the first switching switch (S1) to be turned on, and obtain a voltage Uc1 at the first terminal of the first contactor (101); control the third switching switch (S3) to be turned on, and obtain a voltage Uc2 at the second terminal of the first contactor; determine an actual working state of the first contactor based on Uc1 and Uc2; obtain an indicated working state of the first contactor, wherein the indicated working state is a working state that is of the first contactor and that is indicated by a contactor control signal; and obtain the contact status information of the first contactor based on whether the actual working state is consistent with the indicated working state.

11. The detection apparatus according to claim 1 or any one of claims 4 to 10, wherein the battery system (100) comprises N battery packs, the battery pack (110) is a first battery pack in the N battery packs, and the battery system further comprises a third contactor to a (3N-1)th contactor, wherein N ≥ 2; a positive electrode of an ith battery pack in the N battery packs is connected to a first terminal of a (3i-3)th contactor, a second terminal of the (3i-3)th contactor is configured to connect to the first terminal of the load, a negative electrode of the ith battery pack is connected to a first terminal of a (3i-2)th contactor, a second terminal of the (3i-2)th contactor is connected to the second terminal of the load, and a (3i-1)th contactor is disposed between the positive electrode of the ith battery pack and a negative electrode of an (i-1)th battery pack, wherein 2 ≤ i ≤ N; and the plurality of switching switches (S1 - S4) further comprise a fifth switching switch to a (2N+2)th switching switch, and the plurality of switching branches (221 - 224) further comprise a fifth switching branch to a (2N+2)th switching branch, wherein a (2i+1)th switching branch comprises a (2i+1)th switching resistor, and a (2i+1)th switching switch is configured to control the (2i+1)th switching branch to be switched in or out between the positive electrode of the ith battery pack and the reference ground; and a (2i+2)th switching branch comprises a (2i+2)th switching resistor, and a (2i+2)th switching switch is configured to control the (2i+2)th switching branch to be switched in or out between the negative electrode of the ith battery pack and the reference ground.

12. A detection method for a battery system (100), wherein the battery system comprises a battery pack (110), a first contactor (101), and a second contactor (102); a first terminal of the first contactor is connected to a positive electrode of the battery pack, a first terminal of the second contactor is connected to a negative electrode of the battery pack, a second terminal of the first contactor is configured to connect to a first terminal of a load, and a second terminal of the second contactor is configured to connect to a second terminal of the load; the method is performed by a detection apparatus (200), the detection apparatus comprises a switching unit (201) and a processing unit (202), and the processing unit comprises a plurality of switching branches (221 - 224) and a plurality of switching switches (S1 - S4), wherein each of the plurality of switching branches comprises a switching resistor (R1 - R4), 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: the positive electrode of the battery pack, the second terminal of the first contactor, the negative electrode of the battery pack, and the second terminal of the second contactor, wherein the reference ground is configured to connect to a vehicle body ground; wherein the plurality of switching branches comprise a first switching branch (221) to a fourth switching branch (224), and the plurality of switching switches comprise a first switching switch (S1) to a fourth switching switch (S4), wherein: the first switching branch (221) comprises a first switching resistor (R1), and the first switching switch is configured to control the first switching branch to be switched in or out between the positive electrode of the battery pack and the reference ground; the second switching branch (222) comprises a second switching resistor (R2), and the second switching switch is configured to control the second switching branch to be switched in or out between the negative electrode of the battery pack and the reference ground; the third switching branch (223) comprises a third switching resistor (R3), and the third switching switch is configured to control the third switching branch to be switched in or out between the second terminal of the first contactor and the reference ground; and the fourth switching branch (224) comprises a fourth switching resistor (R4), and the fourth switching switch is configured to control the fourth switching branch to be switched in or out between the second terminal of the second contactor and the reference ground; wherein the plurality of sampling branches comprise a first sampling branch (2011) and a second sampling branch (2012); and the method comprises: detecting, by the processing unit, sampling point voltage information of the plurality of switching branches, wherein the sampling point voltage information is used to indicate sampling point voltages of the plurality of switching branches; and determining, by the processing unit, high voltage detection information and insulation detection information based on the sampling point voltage information, wherein the high voltage detection information comprises at least one of the following: a battery pack voltage Ubat and a load voltage Uload, and the insulation detection information comprises at least one of the following: an insulation resistance value Rp to ground of the positive electrode of the battery pack and an insulation resistance value Rn to ground of the negative electrode of the battery pack; the method characterised in that: a first terminal of the first sampling branch is connected to a second terminal of the first switching branch and a second terminal of the third switching branch; and a second terminal of the second sampling branch is connected to a second terminal of the second switching branch and a second terminal of the fourth switching branch.