Circuit, method, system, vehicle, apparatus, medium, and computer program product
By designing a contactor control detection circuit in an electric vehicle, it ensures that the contactor remains in working state before abnormal reset, solving the safety hazards caused by the sudden disconnection of the contactor and improving the safety of the vehicle.
Patent Information
- Application Number
- CN202411541117.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-04-08
AI Technical Summary
In electric vehicles, the sudden disconnection of the contactor may cause safety risks and affect the car use experience.
A contactor control detection circuit is designed, including a driving module and a control module. When the control module is reset abnormally, the control drive module is controlled to maintain the current state to ensure that the contactor remains in the working state before the abnormal reset.
It effectively avoids safety hazards caused by sudden power supply of the contactor and improves the safety of vehicle driving.
Smart Images

Figure CN119773507A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of contactor control technology, and in particular to a circuit, method, system, vehicle, device, medium and computer program product. Background Art
[0002] In electric vehicles, the closing and opening of the contactor can control the on and off of the power source of the entire vehicle. During driving, suddenly stopping the power supply to the contactor will pose a huge safety hazard.
[0003] Therefore, it is urgent to resolve this safety hazard so that users can have a better car-using experience. Summary of the invention
[0004] The embodiments of the present application provide a circuit, method, system, vehicle, device, medium and computer program product, which improve the safety of vehicle driving and at least partially solve the above-mentioned technical problems.
[0005] In order to achieve the above-mentioned purpose, according to the first aspect of the present application, a contactor control detection circuit is provided, which includes a drive module and a control module, the drive module is suitable for being connected to the contactor; the control module is connected to the drive module, and is used for when the control module is abnormally reset, the control module controls the drive module to maintain the current state, so as to be suitable for controlling the contactor to maintain the working state before the abnormal reset.
[0006] According to a second aspect of the present application, a contactor control detection method is provided, which is applied to the above-mentioned contactor control detection circuit, and the contactor control detection method includes: obtaining the detection result of the abnormal reset of the control module; if the detection result indicates that the control module has an abnormal reset, the control module controls the drive module to maintain the current state, so as to be suitable for controlling the contactor to maintain the working state before the abnormal reset.
[0007] According to a third aspect of the present application, a battery management system is provided, which includes a battery pack, a power component and a control board, the control board includes the above-mentioned contactor control detection circuit, and the control module and the drive module are connected to the battery pack and the power component through the contactor.
[0008] According to a fourth aspect of the present application, a vehicle is provided, which includes the above-mentioned contactor control detection circuit or battery management system.
[0009] According to a fifth aspect of the present application, an electronic device is provided, which includes a processor and a memory, a computer program is stored in the memory and executed by the processor, and the computer program includes instructions for executing the above-mentioned contactor control detection method.
[0010] According to a sixth aspect of the present application, a storage medium is provided, which stores a computer program, and the computer program implements the above-mentioned contactor control detection method when executed.
[0011] According to a seventh aspect of the present application, a computer program product is provided, and when the computer program product is run, the contactor control detection method described above is implemented.
[0012] The circuits, methods, systems, vehicles, devices, media and computer program products of the embodiments of the present application control the drive module to maintain a current state when an abnormal reset occurs to the control module. Thus, even if an abnormal reset occurs during driving, the contactor can be controlled to maintain the working state before the abnormal reset, thereby avoiding safety hazards caused by sudden cessation of power supply to the contactor.
[0013] Other features and advantages of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0015] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same figure numbers represent the same parts in the following description.
[0016] Figure 1 is a principle block diagram of a contactor control detection circuit provided in an exemplary embodiment of the present disclosure;
[0017] Figure 2 is a circuit schematic diagram of a contactor control detection circuit provided in an exemplary embodiment of the present disclosure;
[0018] Figure 3 is a flow chart of a contactor control detection method provided in an exemplary embodiment of the present disclosure;
[0019] Figure 4 yes Figure 3 Flow chart of step S7;
[0020] Figure 5 is a circuit diagram of a battery management system provided in an exemplary embodiment of the present disclosure.
[0021] Description of reference numerals:
[0022] 10. Control module; 11. Micro control unit;
[0023] 20. Driver module; 21. High-side control chip;
[0024] 30. Contactor;
[0025] 40. Sampling module;
[0026] 100. Contactor control detection circuit;
[0027] 200, control panel;
[0028] 300. Power components;
[0029] 1000. Battery management system. DETAILED DESCRIPTION
[0030] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0031] The present application provides a contactor control detection circuit 100, see Figures 1 to 5 ,like Figure 1 As shown, the contactor control detection circuit 100 includes a drive module 20 and a control module 10, and the drive module 20 is suitable for being connected to the contactor 30; the control module 10 is connected to the drive module 20, and is used for when the control module 10 is abnormally reset, the control module 10 controls the drive module 20 to maintain the current state, so as to be suitable for controlling the contactor 30 to maintain the working state before the abnormal reset.
[0032] It can be understood that, in the contactor control detection circuit 100 of the embodiment of the present application, when the control module 10 is abnormally reset, the control module 10 controls the drive module 20 to maintain the current state, so as to control the contactor 30 to maintain the working state before the abnormal reset. In this way, even if an abnormal reset occurs during driving, the contactor 30 can be controlled to maintain the working state before the abnormal reset, thereby avoiding the safety hazard caused by suddenly stopping the power supply to the contactor 30.
[0033] It should be noted that compared with the design using discrete components, the integration is low and the power consumption is high. Each contactor 30 control requires a control unit and a holding unit, which occupies a lot of PCB resources and does not conform to the use scenario of multiple contactors 30 in the battery management system 1000 (BMS) of an electric vehicle. This embodiment uses a drive module 20 with high integration and not discrete components, which can control one or more contactors 30 at the same time, has lower power consumption, and is more in line with the use scenario of multiple contactors 30 in the battery management system 1000 of an electric vehicle.
[0034] The abnormal reset includes at least one of a watchdog reset, a memory reset caused by unauthorized access, and a reset caused by a stack overflow. The memory reset caused by unauthorized access is a reset caused by unauthorized access to the memory. The abnormal reset refers to an abnormal reset of the control module 10. The abnormal reset here is different from the initialization at power-on.
[0035] In some embodiments, such as Figure 2 As shown, the control module 10 includes a micro control unit 11, which is connected to a driving module 20; if an abnormal reset occurs in the micro control unit 11, the micro control unit 11 does not trigger the driving module 20 to reset, and the driving module 20 controls the contactor 30 to maintain the working state before the abnormal reset.
[0036] It should be noted that the control module 10 in this embodiment may be, but is not limited to, a microcontroller unit 11 (MCU), and may also be an FPGA, a PLC or a DSP.
[0037] In some embodiments, such as Figure 2 As shown, the working state of the contactor 30 includes a powered state and a de-powered state; if the contactor 30 is in a powered state before the abnormal reset, the drive module 20 controls the contactor 30 to be in a powered state after the abnormal reset; if the contactor 30 is in a de-powered state before the abnormal reset, the drive module 20 controls the contactor 30 to be in a de-powered state after the abnormal reset.
[0038] It should be noted that the energized state means that a voltage capable of normal operation is applied to the coil of the contactor 30 , and the de-energized state means that a voltage capable of normal operation is not applied to the coil of the contactor 30 .
[0039] In some embodiments, such as Figure 2 As shown, the driving module 20 includes a high-side control chip 21, a first power supply terminal (VDD) of the high-side control chip 21 is connected to a first DC voltage terminal VDD and a first power supply terminal (VDD) of a microcontroller unit 11, the high-side control chip 21 is communicatively connected to the microcontroller unit 11, and a second power supply terminal of the high-side control chip 21 is connected to a second DC voltage terminal 12VPW.
[0040] It should be noted that the voltage applied to the second DC voltage terminal 12VPW can be 12V by way of example, and can also be configured as other DC voltages according to the needs of the high-side control chip 21. The drive module 20 is configured as a high-side control chip 21, which improves the integration and increases the number of drivable contactors 30, making it more suitable for the application environment of the BMS.
[0041] In some embodiments, such as Figure 2 As shown, the contactor control detection circuit 100 also includes a first resistor R1, a second resistor R2, a third resistor R3 and a fourth resistor R4. The first resistor R1 is connected between the MOSI pin of the micro control unit 11 and the MOSI pin of the high-side control chip 21; the second resistor R2 is connected between the MISO pin of the micro control unit 11 and the MISO pin of the high-side control chip 21; the third resistor R3 is connected between the SCLK pin of the micro control unit 11 and the SCLK pin of the high-side control chip 21; and the fourth resistor R4 is connected between the CS pin of the micro control unit 11 and the CS pin of the high-side control chip 21.
[0042] It should be noted that the microcontroller unit 11 and the high-side control chip 21 communicate with each other via SPI, or other I2C or CAN communications. The first resistor R1, the second resistor R2, the third resistor R3, and the fourth resistor R4 are optional and can be used to adjust the signal amplitude and protect at least one of the microcontroller unit 11 and the high-side control chip 21.
[0043] In some embodiments, such as Figure 2 As shown, the contactor control detection circuit 100 also includes a sampling module 40, a first end of the sampling module 40 is connected to the ADC pin of the micro control unit 11 and the IS pin of the high-side control chip 21, and a second end of the sampling module 40 is connected to the ground terminal GND; the IS pin is used to output a preset proportion of the current flowing through the output channel of the high-side control chip 21, and the sampling module 40 is used to convert the current into a corresponding voltage.
[0044] It should be noted that, according to the configuration of the high-side control chip 21, in the case of multiple output channels, the IS pin can select which output channel's current to detect and configure the corresponding preset ratio, and then convert the detected current into a corresponding voltage through the sampling module 40 to facilitate the identification of the ADC pin.
[0045] Assuming that the current of the output channel currently being detected or diagnosed is I1, the preset ratio is K, and the sampling resistor of the sampling module 40 is R, the current I2 of the IS pin is equal to the product of I1 and K, and the analog voltage AV1 converted by the sampling module 40 is the product of I2 and R. The microcontroller unit 11 then converts the analog voltage into a corresponding digital voltage DV1 through an analog-to-digital conversion function such as an analog-to-digital converter, and then performs a reverse operation based on DV1 to obtain the real-time current flowing through the output channel.
[0046] The specific process of the above reverse operation is to convert DV1 into AV1, divide AV1 by R to obtain I2, and divide I2 by K to obtain the above real-time current, i.e., I1.
[0047] In some embodiments, such as Figure 2 As shown, the sampling module 40 includes a fifth resistor R6, a first end of the fifth resistor R6 is connected to the ADC pin of the micro control unit 11 and the IS pin of the high-side control chip 21, and a second end of the fifth resistor R6 is connected to the ground terminal GND.
[0048] It should be noted that the fifth resistor R6 can be used as a sampling resistor to convert current into voltage, and the cost is also relatively low.
[0049] In some embodiments, such as Figure 2 As shown, the sampling module 40 further includes a sixth resistor R5 , a first end of the sixth resistor R5 is connected to a first end of the fifth resistor R6 and an IS pin of the high-side control chip 21 , and a second end of the sixth resistor R5 is connected to an ADC pin of the micro control unit 11 .
[0050] It should be noted that the sixth resistor R5 plays a protective role to prevent the chip from being damaged by overvoltage and reverse polarity.
[0051] In some embodiments, such as Figure 2 As shown, the sampling module 40 further includes a first capacitor C1, a first end of the first capacitor C1 is connected to the second end of the sixth resistor R5 and the ADC pin of the micro control unit 11, and a second end of the first capacitor C1 is connected to the ground terminal GND.
[0052] It should be noted that the first capacitor C1 plays a role of voltage filtering, further improving the sampling accuracy of the ADC pin.
[0053] In some embodiments, such as Figure 2As shown, the sampling module 40 also includes a first diode D1 and a second diode D2, the anode of the first diode D1 is connected to the ground terminal GND, and the cathode of the first diode D1 is connected to the ADC pin of the micro control unit 11; the anode of the second diode D2 is connected to the cathode of the first diode D1 and the ADC pin of the micro control unit 11, and the cathode of the second diode D2 is connected to the first DC voltage terminal VDD.
[0054] It should be noted that the first diode D1 and the second diode D2 together play a role of voltage clamping to ensure that the input voltage of the ADC pin does not exceed the sampling range.
[0055] In some embodiments, such as Figure 2 As shown, the coil of each contactor 30 is connected between an output channel and the ground terminal GND. When the output channel outputs voltage, the coil has a normal working voltage, and the contactor 30 is in a powered state; when the output channel does not output voltage, the coil does not have a normal working voltage, and the contactor 30 is in a de-powered state.
[0056] In some embodiments, such as Figure 2 As shown, the contactor 30 includes a voltage divider contactor K1, a positive contactor K2, a negative contactor K3 and a pre-charge contactor K4, and the output channel of the high-side control chip 21 includes a first output channel OUT0, a second output channel OUT1, a third output channel OUT2 and a fourth output channel OUT3. The voltage divider contactor K1, the positive contactor K2, the negative contactor K3 and the pre-charge contactor K4 are respectively connected to the first output channel OUT0, the second output channel OUT1, the third output channel OUT2 and the fourth output channel OUT3.
[0057] In some embodiments, such as Figure 2 As shown, the contactor control detection circuit 100 also includes a second capacitor C2, a third capacitor C3, a fourth capacitor C4 and a fifth capacitor C5, the first end of the second capacitor C2 is connected to the first output channel OUT0 and the first end of the coil of the voltage divider contactor K1, and the second end of the second capacitor C2 is connected to the ground terminal GND; the first end of the third capacitor C3 is connected to the second output channel OUT1 and the first end of the coil of the positive contactor K2, and the second end of the third capacitor C3 is connected to the ground terminal GND; the first end of the fourth capacitor C4 is connected to the third output channel OUT2 and the first end of the coil of the negative contactor K3, and the second end of the fourth capacitor C4 is connected to the ground terminal GND; the first end of the fifth capacitor C5 is connected to the fourth output channel OUT3 and the first end of the coil of the pre-charge contactor K4, and the second end of the fifth capacitor C5 is connected to the ground terminal GND.
[0058] It should be noted that the second capacitor C2 , the third capacitor C3 , the fourth capacitor C4 , and the fifth capacitor C5 are respectively connected between the coil of the contactor 30 and the ground terminal GND, which can further improve the electromagnetic compatibility.
[0059] The embodiment of the present application also provides a contactor control detection method, which is applied to the contactor control detection circuit 100 mentioned above. Figure 3 , Figure 4 As shown, the contactor control detection method includes: obtaining the detection result of the abnormal reset of the control module 10; if the detection result indicates that the control module 10 has an abnormal reset, the control module 10 controls the drive module 20 to maintain the current state, so as to control the contactor 30 to maintain the working state before the abnormal reset.
[0060] It can be understood that since the contactor control detection method of the embodiment of the present application is applied to the contactor control detection circuit 100, when the control module 10 is abnormally reset, the control module 10 controls the drive module 20 to maintain the current state, so as to control the contactor 30 to maintain the working state before the abnormal reset. In this way, even if an abnormal reset occurs during driving, the contactor 30 can be controlled to maintain the working state before the abnormal reset, thereby avoiding the safety hazard caused by suddenly stopping the power supply to the contactor 30.
[0061] Optionally, the control module 10 controls the driving module 20 to maintain the current state, so as to be suitable for controlling the contactor 30 to maintain the working state before the abnormal reset, including: reading the output status data of the output register of the driving module 20; determining whether the corresponding output channel of the driving module 20 connected to the contactor 30 is turned on according to the output status data; if the corresponding output channel of the driving module 20 connected to the contactor 30 is turned on, keeping the contactor 30 in a powered state.
[0062] Optionally, if the corresponding output channel of the driving module 20 connected to the contactor 30 is turned on, the contactor 30 is kept in a powered state, or if the corresponding output channel of the driving module 20 connected to the contactor 30 is disconnected, it includes: recording a fault code corresponding to the abnormal reset.
[0063] Optionally, if the detection result indicates that the control module 10 has not been abnormally reset, the driving module 20 is initialized.
[0064] Optionally, after recording the fault code corresponding to the abnormal reset or initializing the driving module 20 , the method further includes: detecting at least one of a switch state of an output channel of the driving module 20 and a fault state of the contactor 30 .
[0065] Optionally, detecting at least one of the switch state of the output channel of the driving module 20 and the fault state of the contactor 30 includes: controlling the output state of an output channel of the driving module 20 to control the contactor 30 connected to the output channel to be in a powered state or a de-powered state; reading the fault register state of the driving module 20; if the fault register state is set, it indicates that the coil of the contactor 30 is in a short-circuit state.
[0066] Optionally, if the fault register state is set, indicating that the coil of the contactor 30 is in a short-circuit state, the method further includes: if the fault register state is not set, selecting the output channel corresponding to the IS pin of the drive module 20 as the current fault diagnosis channel; controlling the control module 10 to start analog-to-digital conversion; and obtaining the current current according to the analog-to-digital conversion result. The current current is the real-time current of the output channel detected.
[0067] Optionally, after obtaining the current current according to the analog-to-digital conversion result, it also includes: reading the output status data of the output register of the driving module 20; judging whether the output channel is closed according to the output status data; if the output status data indicates that the output channel is closed, it indicates that the output channel is normally closed.
[0068] Optionally, after determining whether the output channel is closed according to the output status data, it also includes: if the output status data indicates that the output channel is not closed, determining whether the current current is greater than a preset current value; if the current current is greater than the preset current value, it indicates that the output channel is normally turned on.
[0069] Optionally, if the output status data indicates that the output channel is not closed, after determining whether the current current is greater than the preset current value, it further includes: if the current current is less than or equal to the preset current value, indicating that the contactor 30 is in an open circuit state.
[0070] Figure 3 is a first flow chart of a contactor control detection method provided in an exemplary embodiment of the present disclosure; Figure 4 yes Figure 3 Flow chart of step S7 in FIG.
[0071] like Figure 3 As shown, step S1, obtain the watchdog reset flag, determine whether the watchdog reset occurs, if the determination is yes, execute step S2, otherwise execute step S6.
[0072] Step S2: reading the state of the output register of the high-side control chip 21 through SPI communication, that is, the output state of all current channels.
[0073] Step S3, judging whether the corresponding channels of the positive contactor K2, the negative contactor K3 and the voltage divider contactor K1 are open according to the state of the output register of the high-side control chip 21, if so, executing step S4, otherwise executing step S5.
[0074] Step S4: Currently in a high voltage state (indicating that the battery pack in the battery management system 1000 is in a power supply state), keep the positive contactor K2, the negative contactor K3 and the voltage divider contactor K1 closed until a disconnection command is received.
[0075] Step S5: Regardless of whether it is in a high voltage state or not, after an abnormal reset of the watchdog occurs, a fault code of the abnormal reset of the watchdog is recorded.
[0076] Step S6: When the BMS control board 200 is powered on for the first time, but not when the watchdog is abnormally reset, the high-side control chip 21 is initialized and all output channels are closed.
[0077] Step S7, the contactor 30 is controlled to perform a return inspection, and the state of the contactor 30 is controlled in real time according to different requirements to detect whether the coil of the contactor 30 has a short circuit fault or a circuit break fault.
[0078] like Figure 4 As shown, step S7 specifically includes the following steps:
[0079] Step S701 : Control the output state of the output channel of the high-side control chip 21 in real time as needed to close or open the contactor 30 .
[0080] Step S702: read the state of the fault register of the high-side control chip 21 through SPI communication to obtain the short-circuit fault state of the output channel requiring fault diagnosis.
[0081] Step S703, judging whether the fault bit corresponding to the output channel of the high-side control chip 21 is set according to the state of the acquired fault register, if it is judged to be yes, it means that the output channel is short-circuited, then executing step S704, otherwise executing step S705.
[0082] Step S704 , indicating that the state of the coil of the contactor 30 connected to the current output channel of the high-side control chip 21 is short-circuited.
[0083] Step S705 : If there is no short circuit fault in the current output channel, the output channel corresponding to the IS pin of the high-side control chip 21 is selected as the current output channel for fault diagnosis through SPI communication.
[0084] Step S706 , start the ADC conversion of the MCU to convert the voltage across the fifth resistor R6 (sampling resistor).
[0085] Step S707, read the ADC conversion result, calculate the current flowing through the sampling resistor, and calculate the current of the current output channel of the fault diagnosis according to the current output channel current equal to the current flowing through the sampling resistor multiplied by K, where K can be 2000 or 660, which is determined by the configuration of the high-side control chip 21.
[0086] Step S708 , reading the state of the output register of the high-side control chip 21 through SPI communication to obtain the output state of the current output channel of the fault diagnosis.
[0087] Step S709, determine whether the output status of the current output channel of the fault diagnosis is closed, if it is determined to be yes, execute step S710, otherwise execute step S711.
[0088] Step S710 , if the current output channel of the fault diagnosis is closed, it means that the current output channel of the high-side control chip 21 is closed normally and there is no fault.
[0089] Step S711, when the current output channel of the fault diagnosis is turned on, determine whether the current of the current output channel is greater than the preset current value (exemplarily 100mA). If it is judged to be yes, execute step S712, otherwise execute step S713. The preset current value (working current) of different models of contactors 30 is different. The preset current value as the current judgment threshold can be changed according to the specifications of the contactor 30.
[0090] Step S712: The current output channel of the high-side control chip 21 is opened normally, the coil loop current of the contactor 30 is normal, and the coil of the contactor 30 is normal without any fault.
[0091] Step S713: The current output channel of the high-side control chip 21 is normally opened, the coil loop current of the contactor 30 is abnormal, and the coil state of the contactor 30 is open circuit.
[0092] In summary, when the MCU is reset during driving, the contactor 30 remains closed, allowing the user to drive normally, until the user stops driving and actively turns off the power, and then the contactor 30 is disconnected. This method of controlling the contactor 30 by combining SPI and ADC can detect the coil state of the contactor 30 in real time, and promptly feedback the short circuit fault or open circuit fault of the contactor 30 coil, with high reliability.
[0093] The present application also provides a battery management system 1000. Figure 5 As shown, the battery management system 1000 includes a battery pack, a power component 300 and a control board 200 . The control board 200 includes the contactor control detection circuit 100 . The control module 10 and the drive module 20 are connected to the battery pack and the power component 300 via the contactor 30 .
[0094] It can be understood that since the battery management system 1000 of the embodiment of the present application includes the above-mentioned contactor control detection circuit 100, when the control module 10 is abnormally reset, the control module 10 can control the drive module 20 to maintain the current state, so as to control the contactor 30 to maintain the working state before the abnormal reset. In this way, even if an abnormal reset occurs during driving, the contactor 30 can be controlled to maintain the working state before the abnormal reset, thereby avoiding the safety hazard caused by suddenly stopping the power supply to the contactor 30.
[0095] Optionally, the battery pack includes a first battery pack half pack B and a second battery pack half pack A, and the contactor 30 includes a positive contactor K2 and a negative contactor K3; the coil of the positive contactor K2 and the coil of the negative contactor K3 are both connected to the control board 200; the contact of the positive contactor K2 is connected between the positive pole of the first battery pack half pack B and the first end of the power component 300, and the contact of the negative contactor K3 is connected between the negative pole of the second battery pack half pack A and the second end of the power component 300.
[0096] The above contacts can be configured as one of normally open contacts and normally closed contacts as required.
[0097] Optionally, the contactor 30 further includes a voltage divider contactor K1 , the coil of which is connected to the control board 200 , and the contact of which is connected between the negative electrode of the first battery pack half pack B and the positive electrode of the second battery pack half pack A.
[0098] Optionally, the contactor 30 further includes a pre-charging contactor K4, the coil of which is connected to the control board 200, and the first end of the contact of the pre-charging contactor K4 is connected to the first end of the power component 300. The battery management system 1000 further includes a pre-charging resistor RP, the first end of which is connected to the second end of the contact of the pre-charging contactor K4, and the second end of which is connected to the positive electrode of the first battery pack half pack B.
[0099] An embodiment of the present application further provides a vehicle, which includes the contactor control detection circuit 100 or the battery management system 1000 described above.
[0100] It can be understood that since the vehicle in the embodiment of the present application includes the above-mentioned contactor control detection circuit 100 or battery management system 1000, when the control module 10 is abnormally reset, the control module 10 controls the drive module 20 to maintain the current state to control the contactor 30 to maintain the working state before the abnormal reset. In this way, even if an abnormal reset occurs during driving, the contactor 30 can be controlled to maintain the working state before the abnormal reset, thereby avoiding safety hazards caused by suddenly stopping the power supply to the contactor 30.
[0101] The present application also provides an electronic device, which includes a processor and a memory, wherein a computer program is stored in the memory and executed by the processor, and the computer program includes instructions for executing the contactor control detection method described above.
[0102] It can be understood that since the electronic device of the embodiment of the present application includes instructions for executing the above-mentioned contactor control detection method, when the control module 10 is abnormally reset, the control module 10 controls the drive module 20 to maintain the current state to control the contactor 30 to maintain the working state before the abnormal reset. In this way, even if an abnormal reset occurs during driving, the contactor 30 can be controlled to maintain the working state before the abnormal reset, thereby avoiding safety hazards caused by suddenly stopping the power supply to the contactor 30.
[0103] The present application also provides a storage medium, which stores a computer program, and the computer program implements the above-mentioned contactor control detection method when executed.
[0104] It can be understood that since the computer program of the embodiment of the present application implements the above-mentioned contactor control detection method when it is executed, it can also control the drive module 20 to maintain the current state when the control module 10 is abnormally reset, so as to control the contactor 30 to maintain the working state before the abnormal reset. In this way, even if an abnormal reset occurs during driving, the contactor 30 can be controlled to maintain the working state before the abnormal reset, thereby avoiding the safety hazard caused by suddenly stopping the power supply to the contactor 30.
[0105] The present application also provides a computer program product, which implements the above-mentioned contactor control detection method when running.
[0106] It can be understood that, since the above-mentioned contactor control detection method is implemented when the computer program product of the embodiment of the present application is running, the control module 10 can also control the drive module 20 to maintain the current state when the control module 10 is abnormally reset, so as to control the contactor 30 to maintain the working state before the abnormal reset. In this way, even if an abnormal reset occurs during driving, the contactor 30 can be controlled to maintain the working state before the abnormal reset, thereby avoiding the safety hazard caused by suddenly stopping the power supply to the contactor 30.
[0107] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0108] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0109] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other without conflict.
[0110] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A contactor control detection circuit, characterized in that: The contactor control detection circuit comprises: a driving module, the driving module being adapted to be connected to the contactor; and A control module is connected to the drive module and is used for controlling the drive module to maintain a current state when the control module is abnormally reset, so as to control the contactor to maintain a working state before the abnormal reset.
2. The contactor control detection circuit according to claim 1, characterized in that: The control module includes a micro control unit, and the micro control unit is connected to the driving module; If the abnormal reset occurs in the micro control unit, the micro control unit does not trigger the driving module to reset, and the driving module controls the contactor to maintain the working state before the abnormal reset.
3. The contactor control detection circuit according to claim 2, characterized in that: The working state of the contactor includes a power-on state and a power-off state; If the contactor is in the powered state before the abnormality is reset, the driving module controls the contactor to be in the powered state after the abnormality is reset; If the contactor is in the power-off state before the abnormality is reset, the driving module controls the contactor to be in the power-off state after the abnormality is reset.
4. The contactor control detection circuit according to claim 1, characterized in that: The abnormal reset includes at least one of a watchdog reset, a memory reset caused by unauthorized access, and a reset caused by a stack overflow.
5. The contactor control detection circuit according to claim 2, characterized in that: The driving module includes a high-side control chip, a first power supply terminal of the high-side control chip is connected to a first DC voltage terminal and a first power supply terminal of the microcontroller unit, the high-side control chip is communicatively connected to the microcontroller unit, and a second power supply terminal of the high-side control chip is connected to a second DC voltage terminal.
6. The contactor control detection circuit according to claim 5, characterized in that: The contactor control detection circuit also includes: A first resistor, wherein the first resistor is connected between the MOSI pin of the micro control unit and the MOSI pin of the high-side control chip; A second resistor, wherein the second resistor is connected between a MISO pin of the micro control unit and a MISO pin of the high-side control chip; A third resistor, wherein the third resistor is connected between the SCLK pin of the micro control unit and the SCLK pin of the high-side control chip; A fourth resistor is connected between a CS pin of the micro control unit and a CS pin of the high-side control chip.
7. The contactor control detection circuit according to claim 5, characterized in that: The contactor control detection circuit also includes a sampling module, a first end of the sampling module is connected to the ADC pin of the micro control unit and the IS pin of the high-side control chip, and a second end of the sampling module is connected to the ground terminal; The IS pin is used to output a current of a preset proportion flowing through an output channel of the high-side control chip, and the sampling module is used to convert the current into a corresponding voltage.
8. The contactor control detection circuit according to claim 7, characterized in that: The sampling module comprises a fifth resistor, a first end of the fifth resistor is connected to an ADC pin of the micro control unit and an IS pin of the high-side control chip, and a second end of the fifth resistor is connected to the ground terminal.
9. The contactor control detection circuit according to claim 8, characterized in that: The sampling module further includes a sixth resistor, a first end of the sixth resistor is connected to the first end of the fifth resistor and the IS pin of the high-side control chip, and a second end of the sixth resistor is connected to the ADC pin of the micro control unit.
10. The contactor control detection circuit according to claim 9, characterized in that: The sampling module further includes a first capacitor, a first end of the first capacitor is connected to the second end of the sixth resistor and an ADC pin of the micro control unit, and a second end of the first capacitor is connected to the ground end.
11. The contactor control detection circuit according to claim 10, characterized in that: The sampling module also includes: a first diode, wherein an anode of the first diode is connected to the ground terminal, and a cathode of the first diode is connected to an ADC pin of the micro control unit; A second diode, wherein an anode of the second diode is connected to a cathode of the first diode and an ADC pin of the micro control unit, and a cathode of the second diode is connected to the first DC voltage terminal.
12. The contactor control detection circuit according to claim 7, characterized in that: The coil of each contactor is connected between the output channel and the ground terminal.
13. The contactor control detection circuit according to claim 1, characterized in that: The contactor includes a voltage dividing contactor, a positive contactor, a negative contactor and a pre-charge contactor, and the output channel of the driving module includes a first output channel, a second output channel, a third output channel and a fourth output channel; The voltage-dividing contactor, the positive contactor, the negative contactor, and the pre-charging contactor are respectively connected to the first output channel, the second output channel, the third output channel, and the fourth output channel in sequence.
14. The contactor control detection circuit according to claim 13, characterized in that: The contactor control detection circuit also includes: A second capacitor, wherein a first end of the second capacitor is connected to the first output channel and a first end of the coil of the voltage divider contactor, and a second end of the second capacitor is connected to a ground end; a third capacitor, one end of the third capacitor being connected to the second output channel and the first end of the coil of the positive contactor, and the other end of the third capacitor being connected to the ground; a fourth capacitor, one end of the fourth capacitor being connected to the third output channel and the first end of the coil of the negative contactor, and the other end of the fourth capacitor being connected to the ground end; A fifth capacitor, one end of the fifth capacitor is connected to the fourth output channel and the first end of the coil of the pre-charging contactor, and the other end of the fifth capacitor is connected to the ground end.
15. A contactor control detection method, characterized in that: The contactor control detection method is applied to the contactor control detection circuit according to any one of claims 1 to 14, and the contactor control detection method comprises: Acquiring a detection result of abnormal reset of the control module; If the detection result indicates that the control module is abnormally reset, the control module controls the drive module to maintain a current state, so as to control the contactor to maintain a working state before the abnormal reset.
16. The contactor control detection method according to claim 15, characterized in that: The control module controls the driving module to maintain the current state, so as to control the contactor to maintain the working state before the abnormality is reset, including: Reading output status data of an output register of the driver module; Determine whether a corresponding output channel of the driving module connected to the contactor is turned on according to the output state data; If the corresponding output channel of the driving module connected to the contactor is turned on, the contactor is kept in a powered state.
17. The contactor control detection method according to claim 15, characterized in that: If the corresponding output channel of the driving module connected to the contactor is turned on, the contactor is kept in a powered state, or if the corresponding output channel of the driving module connected to the contactor is turned off, the method includes: Record the fault code corresponding to the abnormal reset.
18. The contactor control detection method according to claim 15, characterized in that: The contactor control detection method also includes: If the detection result indicates that the control module has not been abnormally reset, the driving module is initialized.
19. The contactor control detection method according to claim 17 or 18, characterized in that: After recording the fault code corresponding to the abnormal reset or initializing the drive module, the method further includes: At least one of a switch state of an output channel of the driving module and a fault state of the contactor is detected.
20. The contactor control detection method according to claim 19, characterized in that: The detecting at least one of the switch state of the output channel of the driving module and the fault state of the contactor comprises: Controlling the output state of an output channel of the driving module to control a contactor connected to the output channel to be in a powered state or a de-powered state; Reading the fault register status of the driver module; If the fault register state is set, it indicates that the coil of the contactor is in a short-circuit state.
21. The contactor control detection method according to claim 20, characterized in that: If the fault register state is set, indicating that the coil of the contactor is in a short-circuit state, the method further includes: If the fault register state is not set, the output channel corresponding to the IS pin of the driver module is selected as the current fault diagnosis channel; Controlling the control module to start analog-to-digital conversion; According to the analog-to-digital conversion result, the current is obtained.
22. The contactor control detection method according to claim 21, characterized in that: According to the analog-to-digital conversion result, after obtaining the current, it also includes: Reading output status data of an output register of the driver module; Determine whether the output channel is closed according to the output status data; If the output status data indicates that the output channel is closed, it indicates that the output channel is normally closed.
23. The contactor control detection method according to claim 22, characterized in that: After determining whether the output channel is closed according to the output status data, the method further includes: If the output status data indicates that the output channel is not closed, determining whether the current current is greater than a preset current value; If the current current is greater than the preset current value, it indicates that the output channel is normally turned on.
24. The contactor control detection method according to claim 23, characterized in that: If the output state data indicates that the output channel is not closed, after determining whether the current current is greater than the preset current value, the method further includes: If the current current is less than or equal to the preset current value, it indicates that the contactor is in an open circuit state.
25. A battery management system, characterized in that: The battery management system comprises: Battery packs and powertrain components; and A control board, wherein the control board comprises a contactor control detection circuit as described in any one of claims 1 to 14, wherein the control module and the drive module are connected to the battery pack and the power component through the contactor.
26. The battery management system according to claim 25, characterized in that: The battery pack includes a first battery pack half pack and a second battery pack half pack, and the contactor includes a positive contactor and a negative contactor; The coil of the positive contactor and the coil of the negative contactor are both connected to the control board; The contact of the positive contactor is connected between the positive electrode of the first battery pack half pack and the first end of the power component, and the contact of the negative contactor is connected between the negative electrode of the second battery pack half pack and the second end of the power component.
27. The battery management system according to claim 26, characterized in that: The contactor also includes a voltage dividing contactor; The coil of the voltage divider contactor is connected to the driving module, and the contact of the voltage divider contactor is connected between the negative electrode of the first half battery pack and the positive electrode of the second half battery pack.
28. The battery management system according to claim 27, characterized in that: The contactor further comprises a pre-charge contactor, the coil of the pre-charge contactor is connected to the control board, and the first end of the contact of the pre-charge contactor is connected to the first end of the power component; The battery management system also includes a pre-charging resistor, a first end of the pre-charging resistor is connected to the second end of the contact of the pre-charging contactor, and a second end of the pre-charging resistor is connected to the positive electrode of the first battery pack half pack.
29. A vehicle, characterized in that: The vehicle includes the contactor control detection circuit according to any one of claims 1 to 14, or the vehicle includes the battery management system according to any one of claims 25 to 28.
30. An electronic device, characterized in that: The electronic device comprises: Processor; and A memory, in which a computer program is stored and executed by the processor, wherein the computer program includes instructions for executing the contactor control detection method according to any one of claims 15 to 24.
31. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed, the contactor control detection method according to any one of claims 15 to 24 is implemented.
32. A computer program product, characterized in that When the computer program product is run, the contactor control detection method according to any one of claims 15 to 24 is implemented.