Power battery system detection method, electronic device and storage medium
By detecting the diode voltage and current in the power battery system, determining whether the diode breaks down, the problem of failure to detect electronic components in the prior art is solved, and the reliability and safety performance of the power battery system is improved.
Patent Information
- Application Number
- CN202311633831.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-01
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2043-12-01
AI Technical Summary
The existing power battery system does not detect electronic components during operation, resulting in the inability to ensure the operational reliability of the power battery system, affecting the safety performance of electric vehicles.
By collecting the voltage and current data of the diode, we can determine whether the diode breaks down, and detect the diode to prevent relay adhesion accidents caused by breakdown abnormalities.
It improves the operating reliability of the power battery system, prevents safety accidents caused by abnormal diode breakdown, and enhances the safety performance of the entire vehicle.
Smart Images

Figure CN117665610B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric vehicles, and in particular to a power battery system detection method, electronic equipment and storage medium. Background Art
[0002] The power battery system is the power source of electric vehicles. The power battery system has the functions of charging and supplying power to loads.
[0003] In the existing power battery system, in addition to the power battery, relays, diodes or other electronic components are also provided to construct a series-parallel charging and discharging circuit through relays, diodes and other electronic components. During the charging and discharging process of the power battery system, the failure of the above electronic components may cause the current in the circuit to increase instantly and the abnormal charging and discharging between batteries. Therefore, whether the voltage components work normally is very critical, which not only affects the normal operation of the power battery system, but also affects the safety performance of electric vehicles. The existing technology does not detect the electronic components during the operation of the power battery system, and cannot guarantee the operating reliability of the power battery system. Summary of the invention
[0004] The present invention provides a power battery system detection method, electronic equipment and storage medium to solve the problem in the prior art that electronic components are not detected during the operation of the power battery system and the operation reliability of the power battery system cannot be guaranteed.
[0005] In a first aspect, the present invention provides a power battery system detection method, the power battery system includes at least two power batteries, a switching module and a load port, the power battery is connected to the load port through the switching module, the switching module includes a diode, and the diode is connected to the positive terminals of at least two power batteries. The power battery system detection method includes:
[0006] collecting a first voltage of an anode and a second voltage of a cathode of the diode;
[0007] collecting a first current of a power battery connected to a cathode of the diode and a second current of a power battery connected to an anode of the diode;
[0008] Whether the diode breaks down is determined according to the first voltage, the second voltage, the first current, and the second current.
[0009] In a second aspect, the present invention provides a power battery system detection device, the power battery system includes at least two power batteries, a switching module and a load port, the power battery is connected to the load port through the switching module, the switching module includes a diode, and the diode is connected to the positive terminals of at least two power batteries, the power battery system detection device includes:
[0010] A diode voltage acquisition module, used for acquiring a first voltage of the anode and a second voltage of the cathode of the diode;
[0011] A power battery current collection module, used to collect a first current of a power battery connected to the cathode of the diode and a second current of a power battery connected to the anode of the diode;
[0012] The diode abnormality judgment module is used to determine whether the diode is broken down according to the first voltage, the second voltage, the first current and the second current.
[0013] In a third aspect, the present invention provides an electronic device, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power battery system detection method described in the first aspect of the present invention.
[0017] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the power battery system detection method described in the first aspect of the present invention when executed.
[0018] The embodiment of the present invention collects a first voltage at an anode and a second voltage at a cathode of a diode in a power battery system, collects a first current of a power battery connected to the cathode of the diode, and a second current of a power battery connected to the anode of the diode, and determines whether the diode is broken down according to the first voltage, the second voltage, the first current, and the second current, thereby realizing detection of the diode, being able to detect abnormal breakdown of the diode, improving the reliability of the operation of the power battery system, preventing the power battery system from powering on the whole vehicle after the abnormal breakdown of the diode, causing relay adhesion and causing a safety accident of the whole vehicle, and improving the safety performance of the whole vehicle.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a power battery system detection method provided by Embodiment 1 of the present invention;
[0022] Figure 2 is a structural block diagram of a power battery system according to an embodiment of the present invention;
[0023] Figure 3 is a simplified circuit diagram of the power battery system of an embodiment of the present invention when powered on;
[0024] Figure 4 is a flow chart of a power battery system detection method provided by Embodiment 2 of the present invention;
[0025] Figure 5 is a variation curve diagram of the first voltage, the second voltage, the first quantity change, and the second quantity change in the embodiment of the present invention;
[0026] Figure 6 is a circuit schematic diagram of a power battery system according to an embodiment of the present invention;
[0027] Figure 7 is a circuit schematic diagram of a power battery system according to another embodiment of the present invention;
[0028] Figure 8 is a circuit schematic diagram of a power battery system according to another embodiment of the present invention;
[0029] Fig. 9 It is a structural schematic diagram of a power battery system detection device provided by Embodiment 3 of the present invention;
[0030] Fig.10 It is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] A power battery system usually includes more than two power batteries. Due to the differences in power batteries, the voltages of the power batteries are inconsistent after charging. When more than two power batteries are discharged in parallel, the power battery with a higher voltage will charge the power battery with a lower voltage. In addition, the instantaneous current in parallel is large, which can easily cause the relays in the power battery system to stick. To avoid this, a diode is set between the two power batteries in the power battery system. The unidirectional conduction characteristic of the diode is used to prevent the power battery with a higher voltage from charging the power battery with a lower voltage. Therefore, it is particularly important whether the diode is normal.
[0033] However, the existing power battery system does not detect whether the diode is normal, which may easily lead to abnormal breakdown and failure of the diode. It is impossible to prevent the high-voltage power battery from charging the low-voltage power battery. There is a possibility that the relay cannot be closed or disconnected due to sticking due to excessive current, causing safety accidents to the entire vehicle.
[0034] In order to solve the above problems, the present invention provides a power battery system detection method according to the following embodiment, so as to perform breakdown detection on the diodes in the power battery system, so as to ensure that the power battery system discharges when the diodes are normal.
[0035] Embodiment 1
[0036] Figure 1 This is a flow chart of a power battery system detection method provided by the first embodiment of the present invention. This embodiment can be applied to detect whether there is an abnormality in the power battery system. The method can be executed by a power battery system detection device. The power battery system detection device can be implemented in the form of hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the power battery system detection method includes:
[0037] S101 , collecting a first voltage of an anode and a second voltage of a cathode of a diode.
[0038] The power battery system of this embodiment can be used in transportation tools such as electric vehicles and ships, and can also be used in other equipment that uses electricity as the main energy source, such as Figure 2 As shown, in this embodiment, the power battery system includes at least two power batteries, a switching module and a load port. The power battery is connected to the load port through the switching module. The switching module includes a diode, which is connected to the positive terminals of at least two power batteries, wherein the diode is a unidirectional diode.
[0039] Among them, the power battery can be a rechargeable battery, such as a lithium-ion battery, the number of power batteries can be more than two, the switching module can be a circuit including devices such as relays and diodes, and the relay is used to change the connection structure of the circuit in the switching module when it is in action to switch the charging and discharging mode of the battery in the power battery system. Voltage sensors and current sensors can be set at nodes in the power battery system where voltage and current need to be measured, so that the voltage and current of each node can be collected through the voltage sensors and current sensors.
[0040] like Figure 3 The figure shows a simplified circuit diagram of the power battery system. Figure 3 In the embodiment, the first power battery and the second power battery are connected in parallel through a diode D1, the anode (B terminal) of the diode D1 is connected to the positive terminal of the second power battery, and the cathode (C terminal) of the diode D1 is connected to the positive terminal of the first power battery. The first voltage U at the B terminal can be detected by a voltage sensor. B and the second voltage U at the C terminal C .
[0041] S102: collecting a first current of a power battery connected to a cathode of a diode and a second current of a power battery connected to an anode of the diode.
[0042] like Figure 3 As shown, a current sensor can be set at the negative terminal of the first power battery connected to the cathode of the diode D1 to collect the first current I1, and a current sensor can be set at the positive terminal of the second power battery connected to the anode of the diode D1 to collect the second current I2. Of course, a current sensor can also be set at the positive terminal of the first power battery connected to the cathode of the diode D1 to collect the first current I1, and a current sensor can be set at the negative terminal of the second power battery connected to the anode of the diode D1 to collect the second current I2.
[0043] It should be noted that, in actual applications, there is no restriction on the execution order of S101 and S102. S101 may be executed first and then S102, or S102 may be executed first and then S101, or S101 and S102 may be executed simultaneously.
[0044] S103 , determining whether the diode breaks down according to the first voltage, the second voltage, the first current, and the second current.
[0045] In one embodiment, when the power battery system is not in a charging or power-on state, that is, when the power battery system is in a static mode, if the first voltage U B With the second voltage U C are not equal, and the second current I2 is equal to 0, it can be determined that the diode is normal, that is, the diode is not broken down. In the static mode, if the first voltage U BWith the second voltage U C If they are equal, it is determined that the diode is short-circuited after breakdown.
[0046] In another embodiment, when the power battery system is in a powered-on state, if the second voltage U C Greater than the first voltage U B , and it is detected that the first current I1 is greater than 0 and the second current I2 is equal to 0, it is determined that the diode is not broken down; if it is detected that the first current I1 is greater than 0 and the second current I2 is not equal to 0, within the same time length, the first current I1 and the second current I2 are used to calculate the first charge change Q1 and the second charge change Q2 respectively, when the first charge change Q1 is greater than the second charge change and the direction of the second current I2 is from the cathode (C terminal) of the diode D1 to the anode (B terminal) of the diode D1, it is determined that the diode D1 is broken down, that is, the first power battery discharges to the load port, and the second power battery is charged through the diode D1 at the same time.
[0047] The embodiment of the present invention collects a first voltage of an anode and a second voltage of a cathode of a diode in a power battery system, collects a first current of a power battery connected to the cathode of the diode, and a second current of a power battery connected to the anode of the diode, and determines whether the diode is broken down according to the first voltage, the second voltage, the first current, and the second current, thereby realizing detection of the diode, being able to detect abnormal breakdown of the diode, preventing the relay from sticking when the whole vehicle is powered on after the abnormal breakdown of the diode, thereby improving the safety performance of the whole vehicle.
[0048] Embodiment 2
[0049] Figure 4 This is a flow chart of a power battery system detection method provided in the second embodiment of the present invention. The embodiment of the present invention is optimized on the basis of the above-mentioned first embodiment. Figure 4 As shown, the power battery system detection method includes:
[0050] S201 , collecting a first voltage of an anode and a second voltage of a cathode of a diode.
[0051] like Figure 3 The figure shows a simplified circuit diagram of the power battery system. Figure 3 In the embodiment, two power batteries are connected in parallel through a diode D1, the anode (B end) of the diode D1 is connected to the positive terminal of the second power battery, and the cathode (C end) of the diode D1 is connected to the positive terminal of the first power battery. The first voltage U at the B end can be detected by a voltage sensor. B and the second voltage U at the C terminal C .
[0052] S202: Collect a first current of a power battery connected to a cathode of a diode and a second current of a power battery connected to an anode of the diode.
[0053] like Figure 3 As shown, a current sensor can be set at the negative terminal of the first power battery connected to the cathode of the diode D1 to collect the first current I1, and a current sensor can be set at the positive terminal of the second power battery connected to the anode of the diode D1 to collect the second current I2.
[0054] S203: When no power-on instruction is received, if the first voltage is not equal to the second voltage and the second current I2 is equal to 0, it is determined that the diode is not broken down; if the first voltage is equal to the second voltage, it is determined that the diode is short-circuited after being broken down.
[0055] like Figure 3 As shown, when the diode D1 is not broken down, the diode D1 is not turned on. If the first voltage U across the diode D1 B With the second voltage U C are not equal, and no current flows through the diode D1, that is, the second current I2 is equal to 0, thereby determining that the diode D1 is not broken down. If the first voltage U B With the second voltage U C If the values of the first power battery and the second power battery are equal, it can be determined that the diode D1 is short-circuited after reverse breakdown, and the first power battery charges the second power battery through the diode.
[0056] S204. Within the same time period after receiving the power-on instruction, a first charge change of the power battery connected to the cathode of the diode is calculated using a first current, and a second charge change of the power battery connected to the anode of the diode is calculated using a second current.
[0057] like Figure 3 As shown, assuming that the voltage of the first power battery is greater than the voltage of the second power battery, when the diode D1 is normal, the first power battery first powers the load port until the voltage of the first power battery drops, causing the first voltage U B With the second voltage U C When the voltages are equal, the diode D1 is turned on, and the first power battery and the second power battery are connected in parallel to power the load port.
[0058] Assuming that the same time length is t, the first charge change Q1 of the first power battery connected to the cathode of the diode D1 is t∫I1dt, and the second charge change Q2 of the second power battery connected to the anode of the diode D1 is t∫I2dt.
[0059] S205. If the first change in charge and the second change in charge are greater than 0, and the first change in charge is greater than the second change in charge, and the direction of the second current I2 is from the cathode to the anode of the diode, it is determined that the diode is reversely broken down; if the first change in charge is greater than 0 and the second change in charge is equal to 0, it is determined that the diode is not broken down.
[0060] In one embodiment, if the first charge change Q1 and the second charge change Q2 are greater than 0, and the first charge change Q1 is greater than the second charge change Q2, and the direction of the second current I2 is from the cathode to the anode of the diode D1, it is determined that the first power battery, in addition to supplying power to the load port, also charges the first power battery through the diode D1, that is, the diode is reversely broken down; if the first charge change is greater than 0 and the second charge change is equal to 0, it is determined that the diode is not broken down.
[0061] In another embodiment, Figure 5 As shown, if the first voltage U is detected B Rising, the second voltage U C The first voltage U B and the second voltage U C The first power battery and the second power battery are equal, and the first power battery change Q1 is greater than the second power battery change Q2, and the direction of the second current I2 is from the cathode to the anode of the diode D1, which determines that in addition to supplying power to the load port, the first power battery is also charged through the diode, so that the first power battery change Q1 is greater than the second power battery change Q2.
[0062] In yet another embodiment, if the first voltage U B Less than the second voltage U C , and the second current I2 is equal to 0, it is determined that the diode is normal, that is, the diode is not broken down. If the first voltage U B Less than the second voltage U C , and the second current I2 is not equal to 0, and the direction of the second current I2 is from the cathode to the anode, which determines that the diode is broken down.
[0063] In this embodiment, by obtaining a first voltage of the anode and a second voltage of the cathode of the diode, and obtaining a first current I1 of the first power battery connected to the diode and a first current I2 of the first power battery connected to the diode, and calculating a first charge change Q1 and a second charge change Q2 based on the first current I1 and the second current I2, whether the diode is broken down is determined by the magnitude relationship between the first charge change Q1 and the second charge change Q2 and the current direction of the second current I2. On the one hand, it is possible to detect whether the diode is broken down and causes an abnormality. On the other hand, the detection of the diode in combination with the first charge change Q1 and the second charge change Q2 and the current direction of the second current I2 is more in line with the current characteristics when the first power battery supplies power to the load and charges the second power battery when the diode is broken down, and has higher accuracy.
[0064] S206: When it is determined that the diode is normal, determine the target mode of the switching module.
[0065] In this embodiment, the switching module also includes multiple relays, and preset actions are executed by the multiple relays to switch the switching module to the target mode. The target mode may include a static mode, a power-on mode, a power-off mode, a parallel charging mode, a series charging mode, etc. The static mode may be a mode in which all relays in the power battery system are in a disconnected state, the power-on mode may be a mode in which the power battery supplies power to the load port in parallel, the power-off mode may be a mode in which the power battery system stops supplying power to the load port, the parallel charging mode may be a mode in which the power batteries in the power battery system are connected in parallel to the charging port for charging, and the series charging mode may be a mode in which the power batteries in the power battery system are connected in series to the charging port for charging. When the diode is normal, the target mode to which the switching module switches can be determined by the instructions received by the controller.
[0066] S207, obtaining the voltage inside and outside the relay and the loop current in the target mode.
[0067] In this embodiment, the side of the relay close to the power battery can be defined as the inner side, and the other side of the relay can be defined as the outer side. The loop current can be the current of the loop formed by the power battery system powering on the load port. In this embodiment, voltage sensors can be set on the inside and outside of each relay to collect the voltage on the inside and outside of each relay, and a current sensor can be set in the power-on circuit to collect the current of the power-on circuit.
[0068] S208. Determine whether the relay is abnormal in the target mode according to the voltage and loop current.
[0069] Specifically, based on the equal voltages on the inside and outside of the relay when the relay is closed, the unequal voltages on the inside and outside of the relay when the relay is disconnected, and the loop current, combined with the circuit logic in the switching module, it can be judged whether each relay has abnormalities such as adhesion or inability to close. Switching modules with different circuit structures have different logics for judging whether the relay is abnormal in the target mode based on the voltage and loop current.
[0070] The relay detection process of the switching module in different modes is described below in combination with the switching modules of different circuit structures.
[0071] In one embodiment, Figure 6 As shown, the power battery includes a first power battery 10 and a second power battery 20, and the switching module 30 also includes a fourth relay RL4, a fifth relay RL5, a seventh relay RL7 and an eighth relay RL8. The positive terminal of the first power battery 10 is connected to the positive terminal of the second power battery 20 through the eighth relay RL8 and the fifth relay RL5 in sequence, the diode D1 is connected in parallel at both ends of the fifth relay RL5, and the anode of the diode D1 is connected to the positive terminal of the second power battery 20, the negative terminal of the first power battery 10 is connected to the negative terminal of the second power battery 20 through the seventh relay RL7, the negative terminal of the second power battery 20 and the common node F of the seventh relay RL7 are connected to the negative terminal HV- of the load port through the fourth relay RL4, and the common node C of the fifth relay RL5 and the eighth relay RL8 is connected to the positive terminal HV+ of the load port, wherein the fifth relay RL5 and the eighth relay RL8 are relays with auxiliary contacts.
[0072] like Figure 6 As shown, the voltage sensor can detect Figure 6 The voltage of each node in the relay, that is, the voltage inside and outside the relay, and the current in the power-on circuit is detected by the current sensor, such as detecting the current flowing through the relay RL4. Of course, it can also be detecting the current flowing into the positive terminal of the load port. Among them, on the electrical connection line from the power battery to the load port, the inside of the relay refers to the side of the relay close to the power battery, and the outside of the relay refers to the side of the relay away from the power battery. For example, in Figure 6 In the figure, on the electrical connection line from the first power battery 10 to the positive terminal HV+ of the load port, the inner side of the eighth relay RL8 is terminal A, and the outer side is terminal C; on the electrical connection line from the second power battery 20 to the positive terminal HV+ of the load port, the inner side of the fifth relay RL5 is terminal B, and the outer side is terminal C; on the electrical connection line from the first power battery 10 to the negative terminal HV- of the load port, the inner side of the seventh relay RL7 is terminal E, and the outer side is terminal F.
[0073] The target mode may include at least one of a static mode, a power-on mode, a parallel charging mode, a series charging mode and a power-off mode, and the mode switching may be achieved by controlling the actions of the respective relays in the switching module.
[0074] In one example, the static mode is a mode in which all relays in the switching module are in a disconnected state. When the switching module is in the static mode, it can be determined whether the fifth relay RL5 and the eighth relay RL8 are stuck based on the signal of the auxiliary contacts of the fifth relay RL5 and the eighth relay RL8. Specifically, if the signal feedback of the auxiliary contacts of the fifth relay RL5 and the eighth relay RL8 is a disconnect signal, it is determined that the fifth relay RL5 and the eighth relay RL8 are normal; if the signal feedback of the auxiliary contacts of the fifth relay RL5 and the eighth relay RL8 is a closed signal, it is determined that the fifth relay RL5 and the eighth relay RL8 are stuck and cannot be switched to the disconnected state.
[0075] If the voltages of the inner side E and the outer side F of the seventh relay RL7 are both 0, it is determined that the seventh relay RL7 is in a closed state; if the voltages of the inner side E and the outer side F of the seventh relay RL7 are virtual voltages, it is determined that the seventh relay RL7 is in an open state, that is, the seventh relay RL7 is not stuck.
[0076] If the voltage of the outer side G of the fourth relay RL4 is equal to 0, and the current flowing through the fourth relay RL4 is not 0, it is determined that the fourth relay RL4 is stuck.
[0077] In the static mode, this embodiment determines whether each relay is stuck and cannot be switched to the disconnected state through the voltage inside and outside of each relay and the loop current. It can detect whether each relay is in the disconnected state before switching to the power-on mode, thereby ensuring safety performance when switching to the power-on mode.
[0078] The power-on mode is a mode in which the first power battery 10 and the second power battery 20 are connected in parallel to power on the load ports HV+ and HV-. When the switching module switches to the power-on mode, Figure 6 As shown, when the closing instruction for controlling the seventh relay RL7 and the eighth relay RL8 is received, it is determined whether the eighth relay RL8 is stuck and cannot be closed by the signal of the auxiliary contact of the eighth relay RL8. Specifically, if the signal feedback of the auxiliary contact of the eighth relay RL8 is a closing signal, it is determined that the eighth relay RL8 is normally switched to the closed state; if the signal feedback of the auxiliary contact of the eighth relay RL8 is a disconnection signal, it is determined that the eighth relay RL8 is stuck and cannot be closed.
[0079] If the voltage on the inner side E and the voltage on the outer side F of the seventh relay RL7 are both equal to 0, it is determined that the seventh relay RL7 is normally closed. If there is a virtual pressure on the inner side E and the outer side F of the seventh relay RL7, it is determined that the seventh relay RL7 is stuck and cannot be closed.
[0080] After determining that the seventh relay RL7 and the eighth relay RL8 are closed, when receiving the instruction to control the fourth relay RL4 to close, if the loop current is equal to 0, that is, the current flowing through the fourth relay RL4 is equal to 0, it is determined that the fourth relay RL4 is stuck and cannot be closed, and the pre-power-on of the load ports HV+ and HV- fails. If the loop current is not 0, it is determined that the fourth relay RL4 is closed, and the pre-power-on of the load ports HV+ and HV- is completed.
[0081] When a closing instruction for controlling the fifth relay RL5 is received, it is determined whether the fifth relay RL5 is closed by the signal of the auxiliary contact of the fifth relay RL5. Specifically, if the signal feedback of the auxiliary contact of the fifth relay RL5 is a closing signal, it is determined that the fifth relay RL5 is normally switched to the closed state; if the signal feedback of the auxiliary contact of the fifth relay RL5 is a disconnecting signal, it is determined that the fifth relay RL5 is stuck and cannot be closed.
[0082] During the process of switching to the power-on mode, if it is detected that each relay performs the corresponding action according to the preset action, it is determined that the power battery system powers on the load port normally, thereby realizing the detection of the action of each relay during the power-on process and improving the safety performance of the power-on process.
[0083] When an instruction to switch to the power-off mode is received, the outer voltage of the relay within a preset time period can be obtained. If the outer voltage is less than a preset threshold value, the relay is determined to be normal. If the outer voltage is greater than or equal to the preset threshold value, the relay is determined to be stuck. For example, if the voltage outside the relay is detected to be less than 90% of the inner voltage within the preset time period, it is determined that the relay is switched to the disconnected state normally without sticking. Otherwise, it is determined that the relay is stuck and cannot be switched to the disconnected state. This realizes the detection of the status of each relay during the power-off process and improves the safety performance during the switching to the power-off model.
[0084] In another embodiment, Figure 7 As shown, the switching module 30 also includes a first relay RL1, a second relay RL2 and a resistor R. The common node C of the fifth relay RL5 and the eighth relay RL8 is connected to the positive terminal HV+ of the load port through the first relay RL1. The second relay RL2 and the resistor R are connected in series and in parallel at both ends of the first relay RL1.
[0085] like Figure 7 The switching module shown in FIG. 1 is in a static mode. Figure 6Based on the relay detection when the switching module shown is in static mode, if the voltage of the inner side C of the first relay RL1 is equal to the voltage of the outer side D, the voltage of the outer side G of the fourth relay RL4 is equal to 0, and the current flowing through the fourth relay RL4 is not 0, it is determined that the fourth relay RL4 is stuck and the first relay RL1 and one of the second relays RL2 are stuck, and if the voltage of the inner side C of the first relay RL1 is equal to the voltage of the outer side D, it is determined that the first relay RL1 and one of the second relays RL2 are stuck, thereby realizing the addition of the formal power-on first relay RL1 and the pre-power-on second relay RL2, and then detecting the first relay RL1 and the second relay RL2, thereby ensuring the reliability of pre-power-on and formal power-on during power-on.
[0086] like Figure 7 As shown, when the switching module switches to the power-on mode, Figure 6 On the basis of relay detection when the switching module shown is switched to the power-on mode, after determining that the seventh relay RL7 and the eighth relay RL8 are closed, when receiving a closing instruction to control the second relay RL2 for pre-powering, if the voltages of the inner side C and the outer side D of the first relay RL1 are equal, it is determined that the second relay RL2 is closed and the pre-powering is successful. If the voltages of the inner side C and the outer side D of the first relay RL1 are not equal, it is determined that the second relay RL2 is stuck and cannot be closed or the resistance is abnormal, and the load port cannot be pre-powered. After the second relay RL2 is closed, when receiving an instruction to control the fourth relay RL4 to close, if the loop current is equal to 0, it is determined that the fourth relay RL4 is stuck and cannot be closed. If the loop current is equal to 0, it is determined that the fourth relay RL4 is stuck and cannot be closed. The flow is not 0, and the fourth relay RL4 is determined to be closed. When receiving the instruction to control the second relay RL2 to be disconnected and the first relay RL1 to be closed, if the voltages of the inner side C and the outer side D of the first relay RL1 are equal, it is determined that the first relay RL1 is closed, and the load port is successfully powered on. If the voltages of the inner side C and the outer side D of the first relay RL1 are not equal, it is determined that the first relay RL1 is stuck and cannot be closed, and the load port cannot be formally powered on after pre-power-on, thereby realizing that after adding the formally powered-on first relay RL1 and the pre-powered second relay RL2, the first relay RL1 and the second relay RL2 are detected during power-on, thereby ensuring the reliability of the power battery system powering on the load port.
[0087] In yet another embodiment, Figure 8 As shown, the switching module 30 also includes charging ports DC+, DC- and a sixth relay RL6. The positive terminal DC+ of the charging port is connected to the positive terminal of the first power battery 10 through the third relay RL3, the negative terminal DC- of the charging port is connected to the negative terminal HV- of the load port, and the negative terminal of the first power battery 10 is connected to the positive terminal of the second power battery 20 through the sixth relay RL6.
[0088] like Figure 8 The switching module shown in FIG. 1 is in a static mode. Figure 7 Based on the relay detection when the switching module shown is in static mode, if the voltage of the inner side B of the sixth relay RL6 is equal to the voltage of the outer side E, it is determined that the sixth relay RL6 is stuck and cannot be disconnected; if the voltage of the inner side A of the third relay RL3 is equal to the voltage of the outer side H, it is determined that the third relay RL3 is stuck and cannot be disconnected. After adding a charging port, the third relay RL3 and the sixth relay RL6 can be tested for sticking before charging, ensuring that the series charging and parallel charging modes can be selected during charging, thereby improving the reliability of charging.
[0089] like Figure 8 The switching module shown in FIG. 1 is used to switch to the parallel charging mode. Figure 7 Based on the relay detection when the switching module shown is in the power-on mode, when receiving the parallel charging instruction, if the voltage of the inner side A of the third relay RL3 is equal to the voltage of the outer side H, it is determined that the third relay RL3 is closed; if the voltage of the inner side A of the third relay RL3 is not equal to the voltage of the outer side H, it is determined that the third relay RL3 is stuck and cannot be closed, and the charging port cannot charge the battery system; if the voltage of the inner side B of the sixth relay RL6 is equal to the voltage of the outer side F, it is determined that the sixth relay RL6 is stuck and cannot be disconnected, and the first power battery 10 and the second power battery 20 cannot be switched from series to parallel, thereby realizing the adhesion detection of the third relay RL3 and the sixth relay RL6 during parallel charging, ensuring that the parallel charging mode can be selected during charging, and improving the reliability of charging.
[0090] When the switching module switches to the series charging mode, Figure 7 On the basis of the relay detection when the switching module shown is in the power-on mode, if the voltage of the inner side A of the third relay RL3 is equal to the voltage of the outer side H, it is determined that the third relay RL3 is closed; if the voltage of the inner side A of the third relay RL3 is not equal to the voltage of the outer side H, it is determined that the third relay RL3 is adhered and cannot be closed, and the charging port cannot charge the battery system; if the voltage of the inner side B of the sixth relay RL6 is equal to the voltage of the outer side E, it is determined that the sixth relay RL6 is closed, and the first power battery 10 and the second power battery 20 are connected in series; if the voltage of the inner side B of the sixth relay RL6 is greater than the voltage of the outer side E, it is determined that the sixth relay RL6 is adhered and cannot be closed, and the first power battery 10 and the second power battery 20 cannot be connected in series, thereby realizing adhesion detection of the third relay RL3 and the sixth relay RL6 during series charging, ensuring that the series charging mode can be selected during charging, and improving the reliability of charging.
[0091] This embodiment collects a first voltage at the anode and a second voltage at the cathode of a diode in a power battery system, collects a first current of a power battery connected to the cathode of the diode, and a second current of a power battery connected to the anode of the diode, and determines whether the diode is broken down according to the first voltage, the second voltage, the first current, and the second current, thereby realizing detection of the diode and being able to detect abnormal breakdown of the diode, thereby preventing a safety accident of the whole vehicle caused by relay sticking when the whole vehicle is powered on after the abnormal breakdown of the diode, thereby improving the safety performance of the whole vehicle.
[0092] Furthermore, when it is determined that the diode is normal, the target mode of the switching module is determined, the voltage inside and outside the relay and the loop current in the target mode are obtained, and whether the relay in the target mode is abnormal is judged according to the voltage and loop current. This realizes the detection of whether each relay in the power battery system is closed and disconnected normally in the charging and discharging mode, thereby avoiding safety problems of the whole vehicle caused by relay failure and improving the safety performance of the whole vehicle.
[0093] Embodiment 3
[0094] Fig. 9 This is a schematic diagram of the structure of a power battery system detection device provided in Embodiment 3 of the present invention. The power battery system includes at least two power batteries, a switching module and a load port. The power battery is connected to the load port through the switching module. The switching module includes a diode, and the diode is connected to the positive terminals of at least two power batteries. Fig. 9 As shown, the power battery system detection device includes:
[0095] A diode voltage acquisition module 301 is used to acquire a first voltage of the anode and a second voltage of the cathode of the diode;
[0096] A power battery current collection module 302, used to collect a first current of a power battery connected to the cathode of the diode and a second current of a power battery connected to the anode of the diode;
[0097] The diode abnormality judgment module 303 is used to determine whether the diode is broken down according to the first voltage, the second voltage, the first current and the second current.
[0098] Optionally, the diode abnormality judgment module 303 includes:
[0099] The first diode detection unit is used to determine that the diode is not broken down if the first voltage is not equal to the second voltage and the second current is equal to 0 when no power-on instruction is received for the load port; if the first voltage is equal to the second voltage, determine that the diode is short-circuited after being broken down.
[0100] Optionally, the diode abnormality judgment module 303 includes:
[0101] a power change calculation unit, configured to calculate a first power change of the power battery connected to the cathode of the diode by using the first current, and calculate a second power change of the power battery connected to the anode of the diode by using the second current within the same time period after receiving the power-on instruction;
[0102] The second diode detection unit is used to determine that the diode is reversely broken down if the first charge change and the second charge change are greater than 0, and the first charge change is greater than the second charge change, and the direction of the second current is from the cathode to the anode of the diode; if the first charge change is greater than 0 and the second charge change is equal to 0, determine that the diode is not broken down.
[0103] Optionally, the power battery includes a first power battery and a second power battery, and the switching module also includes a fourth relay, a fifth relay, a seventh relay and an eighth relay, the positive terminal of the first power battery is connected to the positive terminal of the second power battery through the eighth relay and the fifth relay in sequence, the diode is connected in parallel at both ends of the fifth relay, and the anode of the diode is connected to the positive terminal of the second power battery, the negative terminal of the first power battery is connected to the negative terminal of the second power battery through the seventh relay, the common node of the negative terminal of the second power battery and the seventh relay is connected to the negative terminal of the load port through the fourth relay, and the common node of the fifth relay and the eighth relay is connected to the positive terminal of the load port.
[0104] Optionally, the switching module further includes at least one relay, and the power battery system detection device further includes:
[0105] A mode determination module, used to determine the target mode of the switching module when it is determined that the diode is normal;
[0106] A relay voltage and current acquisition module, used to acquire the voltage inside and outside the relay and the loop current under the target mode;
[0107] The relay detection module is used to determine whether the relay is abnormal in the target mode according to the voltage and the loop current.
[0108] Optionally, the power battery includes a first power battery and a second power battery, the switching module further includes a fourth relay, a fifth relay, a seventh relay and an eighth relay, the positive terminal of the first power battery is connected to the positive terminal of the second power battery through the eighth relay and the fifth relay in sequence, the diode is connected in parallel to both ends of the fifth relay, and the anode of the diode is connected to the positive terminal of the second power battery, the negative terminal of the first power battery is connected to the negative terminal of the second power battery through the seventh relay, the common node of the negative terminal of the second power battery and the seventh relay is connected to the negative terminal of the load port through the fourth relay, and the common node of the fifth relay and the eighth relay is connected to the positive terminal of the load port; the target mode includes at least one of a static mode, a power-on mode and a power-off mode, the static mode is a mode in which the relays in the power battery system are in a disconnected state, the power-on mode is a mode in which the first power battery and the second power battery are connected in parallel to power on the load port, and the power-off mode is a mode in which the first power battery and the second power battery stop discharging the load port;
[0109] The relay detection module comprises:
[0110] a first detection unit, configured to determine whether the fifth relay and the eighth relay are adhered to each other according to signals of the auxiliary contacts of the fifth relay and the eighth relay when the switching module is in a static mode;
[0111] A second detection unit, configured to determine that the seventh relay is stuck if the voltages on the inner side and the outer side of the seventh relay are both 0;
[0112] a third detection unit, configured to determine that the fourth relay is stuck if the voltage outside the fourth relay is equal to 0 and the current flowing through the fourth relay is not zero;
[0113] A fourth detection unit is used to determine whether the eighth relay is stuck and cannot be closed by a signal of the auxiliary contact of the eighth relay when receiving a closing instruction to control the seventh relay and the eighth relay during the process of the switching module switching to the power-on mode;
[0114] a fifth detection unit, configured to determine that the seventh relay is closed if the voltage inside and the voltage outside the seventh relay are both equal to 0, and to determine that the seventh relay is stuck and cannot be closed if there is a virtual pressure inside and outside the seventh relay;
[0115] a sixth detection unit, configured to, after determining that the seventh relay and the eighth relay are closed, determine that the fourth relay is stuck and cannot be closed when receiving an instruction to control the fourth relay to be closed if the loop current is equal to 0, and determine that the fourth relay is closed if the loop current is not 0;
[0116] a seventh detection unit, configured to determine whether the fifth relay is closed by a signal of an auxiliary contact of the fifth relay when receiving a closing instruction for controlling the fifth relay;
[0117] A relay outer voltage acquisition unit, used to acquire the outer voltage of the relay within a preset time length when receiving a command to switch to a power-off mode;
[0118] An eighth detection unit, configured to determine that the relay is normal if the external voltage is less than a preset threshold;
[0119] A ninth detection unit is used to determine that the relay is stuck if the external voltage is greater than or equal to a preset threshold.
[0120] Optionally, the switching module further includes a first relay, a second relay and a resistor, a common node of the fifth relay and the eighth relay is connected to the positive terminal of the load port through the first relay, and the second relay and the resistor are connected in series and then in parallel to both ends of the first relay;
[0121] The relay detection module also includes:
[0122] a tenth detection unit, configured to determine that the fourth relay is stuck and one of the first relay and the second relay is stuck if the voltage inside the first relay is equal to the voltage outside the first relay, the voltage outside the fourth relay is equal to 0, and the current flowing through the fourth relay is not 0;
[0123] an eleventh detection unit, configured to determine that one of the first relay and the second relay is stuck if the voltage inside the first relay is equal to the voltage outside the first relay;
[0124] A twelfth detection unit is used for, after determining that the seventh relay and the eighth relay are closed, when receiving a closing instruction to control the second relay, if the voltages inside and outside the first relay are equal, determining that the second relay is closed, and if the voltages inside and outside the first relay are not equal, determining that the second relay is stuck and cannot be closed or the resistance is abnormal;
[0125] A thirteenth detection unit is used for, when receiving an instruction to control the closing of the fourth relay after the second relay is closed, determining that the fourth relay is stuck and cannot be closed if the loop current is equal to 0, and determining that the fourth relay is closed if the loop current is not 0;
[0126] The fourteenth detection unit is used to determine that the first relay is closed if the voltages inside and outside the first relay are equal when receiving an instruction to control the second relay to open and control the first relay to close; if the voltages inside and outside the first relay are unequal, determine that the first relay is stuck and cannot be closed.
[0127] Optionally, the switching module further includes a charging port and a sixth relay, the positive terminal of the charging port is connected to the positive terminal of the first power battery through the third relay, the negative terminal of the charging port is connected to the negative terminal of the load port, the negative terminal of the first power battery is connected to the positive terminal of the second power battery through the sixth relay, and the target mode further includes one of a parallel charging mode and a series charging mode;
[0128] The relay detection module also includes:
[0129] A fifteenth detection unit, configured to determine that the sixth relay is stuck and cannot be disconnected if the voltage inside the sixth relay is equal to the voltage outside the sixth relay when the switching module is in a static mode;
[0130] The sixteenth detection unit is used to determine that the third relay is stuck and cannot be disconnected if the voltage inside the third relay is equal to the voltage outside the third relay.
[0131] A seventeenth detection unit, configured to determine that the third relay is closed if the voltage inside the third relay is equal to the voltage outside the third relay during the process of the switching module switching to the parallel charging mode, and determine that the third relay is stuck and cannot be closed if the voltage inside the third relay is not equal to the voltage outside the third relay;
[0132] An eighteenth detection unit, configured to determine that the sixth relay is stuck and cannot be disconnected if the voltage inside the sixth relay is equal to the voltage outside the sixth relay;
[0133] A nineteenth detection unit, configured to determine that the third relay is closed if the voltage inside the third relay is equal to the voltage outside the third relay during the process of the switching module switching to the series charging mode, and determine that the third relay is stuck and cannot be closed if the voltage inside the third relay is not equal to the voltage outside the third relay;
[0134] The twentieth detection unit is used to determine that the sixth relay is closed if the voltage inside the sixth relay is equal to the voltage outside the sixth relay, and to determine that the sixth relay is stuck and cannot be closed if the voltage inside the sixth relay is greater than the voltage outside the sixth relay.
[0135] The power battery system detection device provided in the embodiment of the present invention can execute the power battery system detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0136] Embodiment 4
[0137] Fig.10 A schematic diagram of an electronic device 100 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as workstations, driving computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0138] like Fig.10 As shown, the electronic device 100 includes at least one processor 101, and a memory connected to the at least one processor 101, such as a read-only memory (ROM) 102, a random access memory (RAM) 103, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 101 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 102 or the computer program loaded from the storage unit 108 to the random access memory (RAM) 103. In the RAM 103, various programs and data required for the operation of the electronic device 100 can also be stored. The processor 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0139] Multiple components in the electronic device 100 are connected to the I / O interface 105, including: an input unit 106, such as a touch screen, a voice input device, a current sensor, a voltage sensor, etc.; an output unit 107, such as various types of displays, speakers, etc.; a storage unit 108, such as a disk, an optical disk, etc.; and a communication unit 109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 109 allows the electronic device 100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0140] The processor 101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 101 executes the various methods and processes described above, such as a power battery system detection method.
[0141] In some embodiments, the power battery system detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 108. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 100 via the ROM 102 and / or the communication unit 109. When the computer program is loaded into the RAM 103 and executed by the processor 101, one or more steps of the power battery system detection method described above may be performed. Alternatively, in other embodiments, the processor 101 may be configured to perform the power battery system detection method in any other appropriate manner (e.g., by means of firmware).
[0142] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0143] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0144] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0145] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0146] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0147] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0148] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0149] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A power battery system detection method, characterized in that: A power battery system includes at least two power batteries, a switching module, and a load port. The power batteries are connected to the load port through the switching module. The switching module includes a diode, which is connected to the positive terminals of the at least two power batteries. The at least two power batteries are connected in parallel to the load port through the diode. The power battery system detection method includes: collecting a first voltage of the anode and a second voltage of the cathode of the diode; collecting a first current of a power battery connected to a cathode of the diode and a second current of a power battery connected to an anode of the diode; determining whether the diode breaks down according to the first voltage, the second voltage, the first current, and the second current; Determining whether the diode breaks down according to the first voltage, the second voltage, the first current, and the second current includes: Within the same time period after receiving the power-on instruction, using the first current to calculate a first charge change of the power battery connected to the cathode of the diode, and using the second current to calculate a second charge change of the power battery connected to the anode of the diode; If the first change in electrical quantity and the second change in electrical quantity are greater than 0, and the first change in electrical quantity is greater than the second change in electrical quantity, and the direction of the second current is from the cathode to the anode of the diode, it is determined that the diode has reverse breakdown; if the first change in electrical quantity is greater than 0 and the second change in electrical quantity is equal to 0, it is determined that the diode has not broken down; When no power-on instruction is received for the load port, if the first voltage is not equal to the second voltage and the second current is equal to 0, it is determined that the diode is not broken down; if the first voltage is equal to the second voltage, it is determined that the diode is short-circuited after breakdown.
2. The power battery system detection method according to claim 1, characterized in that: The power battery includes a first power battery and a second power battery, and the switching module further includes a fourth relay, a fifth relay, a seventh relay, and an eighth relay. The positive terminal of the first power battery is connected to the positive terminal of the second power battery through the eighth relay and the fifth relay in sequence. The diode is connected in parallel across the fifth relay, and the anode of the diode is connected to the positive terminal of the second power battery. The negative terminal of the first power battery is connected to the negative terminal of the second power battery through the seventh relay. A common node between the negative terminal of the second power battery and the seventh relay is connected to the negative terminal of the load port through the fourth relay. A common node between the fifth relay and the eighth relay is connected to the positive terminal of the load port.
3. The power battery system detection method according to claim 1, characterized in that: The switching module further includes at least one relay, and the power battery system detection method further includes: When it is determined that the diode is normal, determining a target mode of the switching module; Obtaining the voltage inside and outside the relay and the loop current under the target mode; It is determined whether the relay is abnormal in the target mode according to the voltage and the loop current.
4. The power battery system detection method according to claim 3, characterized in that: The power battery includes a first power battery and a second power battery, and the switching module further includes a fourth relay, a fifth relay, a seventh relay, and an eighth relay. The positive terminal of the first power battery is connected to the positive terminal of the second power battery via the eighth relay and the fifth relay in sequence. The diode is connected in parallel across the fifth relay, and the anode of the diode is connected to the positive terminal of the second power battery. The negative terminal of the first power battery is connected to the negative terminal of the second power battery via the seventh relay. A common node between the negative terminal of the second power battery and the seventh relay is connected to the negative terminal of the load port via the fourth relay. A common node between the fifth relay and the eighth relay is connected to the positive terminal of the load port. The target mode includes at least one of a static mode, a power-on mode, and a power-off mode. The static mode is a mode in which the relays in the power battery system are in a disconnected state. The power-on mode is a mode in which the first power battery and the second power battery are connected in parallel to power the load port. The power-off mode is a mode in which the first power battery and the second power battery stop discharging to the load port. The determining whether the relay in the target mode is abnormal according to the voltage and the loop current includes: When the switching module is in a static mode, determining whether the fifth relay and the eighth relay are stuck according to signals of the auxiliary contacts of the fifth relay and the eighth relay; If the voltages on the inner side and the outer side of the seventh relay are both 0, it is determined that the seventh relay is stuck; If the voltage outside the fourth relay is equal to 0 and the current flowing through the fourth relay is not zero, it is determined that the fourth relay is stuck; During the process of the switching module switching to the power-on mode, upon receiving a closing instruction for controlling the seventh relay and the eighth relay, determining whether the eighth relay is stuck and cannot be closed by using a signal from the auxiliary contact of the eighth relay; If the voltage inside and outside the seventh relay are both equal to 0, it is determined that the seventh relay is closed; if there is a virtual pressure inside and outside the seventh relay, it is determined that the seventh relay is stuck and cannot be closed; After determining that the seventh relay and the eighth relay are closed, upon receiving an instruction to control the fourth relay to be closed, if the loop current is equal to 0, determining that the fourth relay is stuck and cannot be closed; if the loop current is not 0, determining that the fourth relay is closed; Upon receiving a closing instruction for controlling the fifth relay, determining whether the fifth relay is closed by a signal from an auxiliary contact of the fifth relay; Upon receiving a command to switch to the power-off mode, obtaining the external voltage of each relay within a preset time period; For each relay, if the external voltage is less than a preset threshold, it is determined that the relay is normal; If the external voltage is greater than or equal to a preset threshold, it is determined that the relay is stuck.
5. The power battery system detection method according to claim 4, characterized in that: The switching module further includes a first relay, a second relay, and a resistor, wherein a common node of the fifth relay and the eighth relay is connected to the positive terminal of the load port via the first relay, and the second relay and the resistor are connected in series and then in parallel to both ends of the first relay; The determining whether the relay in the target mode is abnormal according to the voltage and the loop current further includes: When the switching module is in a static mode, if the voltage inside the first relay is equal to the voltage outside the first relay, the voltage outside the fourth relay is equal to 0, and the current flowing through the fourth relay is not zero, then it is determined that the fourth relay is stuck and one of the first relay and the second relay is stuck; If the voltage inside the first relay is equal to the voltage outside the first relay, it is determined that one of the first relay and the second relay is stuck; During the process of the switching module switching to the power-on mode, after determining that the seventh relay and the eighth relay are closed, when receiving a closing instruction to control the second relay, if the voltages inside and outside the first relay are equal, it is determined that the second relay is closed; if the voltages inside and outside the first relay are not equal, it is determined that the second relay is stuck and cannot be closed or the resistance is abnormal; When receiving an instruction to control the closing of the fourth relay after the second relay is closed, if the loop current is equal to 0, it is determined that the fourth relay is stuck and cannot be closed; if the loop current is not 0, it is determined that the fourth relay is closed; When receiving an instruction to control the second relay to open and the first relay to close, if the voltages inside and outside the first relay are equal, it is determined that the first relay is closed; if the voltages inside and outside the first relay are unequal, it is determined that the first relay is stuck and cannot be closed.
6. The power battery system detection method according to claim 4, characterized in that: The switching module further includes a charging port and a sixth relay, wherein the positive terminal of the charging port is connected to the positive terminal of the first power battery via the third relay, the negative terminal of the charging port is connected to the negative terminal of the load port, and the negative terminal of the first power battery is connected to the positive terminal of the second power battery via the sixth relay. The target mode further includes one of a parallel charging mode and a series charging mode. The parallel charging mode is a mode in which the first power battery and the second power battery are connected in parallel to the charging port for charging, and the series charging mode is a mode in which the first power battery and the second power battery are connected in series to the charging port for charging. The determining whether the relay in the target mode is abnormal according to the voltage and the loop current further includes: When the switching module is in a static mode, if the voltage inside the sixth relay is equal to the voltage outside the sixth relay, it is determined that the sixth relay is stuck and cannot be disconnected; If the voltage inside the third relay is equal to the voltage outside the third relay, it is determined that the third relay is stuck and cannot be disconnected; During the process of the switching module switching to the parallel charging mode, if the voltage inside the third relay is equal to the voltage outside the third relay, it is determined that the third relay is closed; if the voltage inside the third relay is not equal to the voltage outside the third relay, it is determined that the third relay is stuck and cannot be closed; If the voltage inside the sixth relay is equal to the voltage outside the sixth relay, it is determined that the sixth relay is stuck and cannot be disconnected; During the process of the switching module switching to the series charging mode, if the voltage inside the third relay is equal to the voltage outside the third relay, it is determined that the third relay is closed; if the voltage inside the third relay is not equal to the voltage outside the third relay, it is determined that the third relay is stuck and cannot be closed; If the voltage inside the sixth relay is equal to the voltage outside the sixth relay, it is determined that the sixth relay is closed; if the voltage inside the sixth relay is greater than the voltage outside the sixth relay, it is determined that the sixth relay is stuck and cannot be closed.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the power battery system detection method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the power battery system detection method according to any one of claims 1 to 6 when executed.
