Battery management system and vehicle controller
By monitoring the status of the high-voltage sampling chip in the battery management system and resetting it, and closing SPI communication in a timely manner, the data accuracy problem of medium- and high-voltage sampling chips in new energy vehicles under communication interference is solved, and the safety and stability of the vehicle's high-voltage circuit are improved. sex.
Patent Information
- Application Number
- CN202411469371.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-01-03
AI Technical Summary
The medium and high voltage sampling chips of new energy vehicles are easily caused by inaccurate or errors in data when SPI communication is interfered with, affecting the safety and user experience of the vehicle's high-voltage circuit.
Design a battery management system, including high-voltage circuits, sampling modules and control modules, monitor the working status of the sampling module, identify faults and perform software or hardware resets, and turn off SPI communication under specific operating conditions to avoid interference.
It improves the reliability of the high-voltage sampling chip and the safety and stability of the vehicle's high-voltage circuit, and prevents abnormal working caused by SPI communication interference.
Smart Images

Figure CN119239392A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power supply safety for new energy vehicles, and in particular relates to a battery management system and a vehicle controller. Background Art
[0002] With the rapid development of new energy vehicles, the requirements for their functional safety and reliability are gradually increasing. High-voltage sampling is an important basis for relay fault diagnosis in the vehicle's power supply circuit. If there is a problem, such as inaccurate collected data, it will cause the high-voltage equipment of the entire vehicle to be powered off or unable to be powered on, which has a great impact on the safety and user experience of the vehicle.
[0003] Usually, high-voltage sampling of vehicles is mostly achieved by high-voltage sampling chips, and the high-voltage values collected by the high-voltage sampling chips are fed back to the MCU (Microcontroller Unit) through the SPI (Serial Peripheral Interface) communication protocol. If the SPI communication is interfered with, it is easy to affect the work of the high-voltage sampling chip, such as inaccurate collected data, or sending wrong data to the MCU, etc., causing the high-voltage sampling chip to be abnormal.
[0004] Therefore, there is an urgent need for an active reset method when a high-voltage sampling chip is abnormal. Summary of the invention
[0005] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide an abnormal reset method for a high-voltage sampling chip, which can diagnose the fault of the high-voltage sampling chip and reset it in time. At the same time, it is also used to shut down SPI communication under specific working conditions to avoid interference with SPI communication and thus affect the work of the high-voltage sampling chip, and maintain the safety and stability of the battery high-voltage circuit through double protection.
[0006] To achieve the above-mentioned purpose and other related purposes, the present invention provides a battery management system, including: a high-voltage circuit, used to cooperate with the battery to discharge energy to the outside or charge energy storage, and a plurality of different relays are arranged on the high-voltage circuit, and different relays cooperate with each other to enable the high-voltage circuit to switch between different working conditions; a high-voltage sampling module, used to collect voltage signals at different sampling points on the high-voltage circuit; a control module, which is communicatively connected to the high-voltage sampling module, and is used to perform fault diagnosis on different relays according to the voltage signal fed back by the high-voltage sampling module; wherein the control module is also used to monitor the working state of the high-voltage sampling module, so as to reset it when a fault occurs.
[0007] According to a specific embodiment of the present invention, the high-voltage sampling module is configured with an analog input signal interface for collecting a constant reference voltage and feeding it back to the control module; the control module is used to identify whether the high-voltage sampling module fails based on the feedback value of the reference voltage.
[0008] According to a specific embodiment of the present invention, when the feedback value of the reference voltage is not a standard value, the control module identifies that the high-voltage sampling module fails and resets it.
[0009] According to a specific embodiment of the present invention, the control module is further used to identify the input / output voltage of the high-voltage sampling module to determine whether the high-voltage sampling module fails.
[0010] According to a specific embodiment of the present invention, the control module is further used to identify whether the communication between the control module and the high-voltage sampling module is abnormal, so as to determine whether the high-voltage sampling module fails.
[0011] According to a specific embodiment of the present invention, the reset operation includes software reset and hardware reset; wherein, the software reset includes: modifying abnormal parameters in the high-voltage sampling module, or initializing the high-voltage sampling module; the hardware reset includes: triggering the reset interface of the high-voltage sampling module through a hardware driving circuit.
[0012] According to a specific embodiment of the present invention, the abnormal parameters in the high-voltage sampling module are modified as follows: the abnormal control bit in the high-voltage sampling module is identified, and the latch bit corresponding to the control bit is first triggered, and then the control bit is modified to a normal value.
[0013] According to a specific embodiment of the present invention, the control module is further configured to stop communicating with the high-voltage sampling module before the high-voltage circuit enters a specific operating condition until the specific operating condition ends.
[0014] According to a specific embodiment of the present invention, the control module is also used to convert the voltage signal fed back by the high-voltage sampling module into a voltage value and send it to the outside; wherein, under specific working conditions, the control module continues to send to the outside the voltage value corresponding to the voltage signal fed back by the high-voltage sampling module at the moment before the communication is stopped until the communication is restarted.
[0015] According to a specific embodiment of the present invention, the control module is further configured to stop communicating with the high-voltage sampling module upon receiving a control instruction, and the communication continues for a preset time.
[0016] According to a specific embodiment of the present invention, when communication with the high-voltage sampling module is stopped, the control module is further configured to output corresponding control information through its communication fault diagnosis interface to indicate that the communication protocol is in a disabled state.
[0017] According to a specific embodiment of the present invention, the specific working condition is upper high voltage, and the control module includes: a basic software layer, which is used for system management and task scheduling; an application software layer, which is used to close the pre-charging relay on the vehicle's high-voltage line according to the control instruction of the basic software layer, and stop communicating with the high-voltage sampling module by calling the first interface of the basic software layer when closing the pre-charging relay; or identify whether the high-voltage sampling module fails according to the return value of the second interface of the basic software layer, and reset the high-voltage sampling module by calling the third interface of the basic software layer when a failure occurs.
[0018] A battery management system includes: a high-voltage circuit, used to cooperate with a battery to discharge energy or charge and store energy, and a plurality of different relays are arranged on the high-voltage circuit, and different relays cooperate with each other to enable the high-voltage circuit to switch between different working conditions; a high-voltage sampling module, used to collect voltage signals at different sampling points on the high-voltage circuit; a control module, which is communicatively connected to the high-voltage sampling module and is used to perform fault diagnosis on different relays based on the voltage signal fed back by the high-voltage sampling module; wherein the control module is also used to stop communicating with the high-voltage sampling module before the high-voltage circuit enters a specific working condition until the specific working condition ends.
[0019] A vehicle controller comprises the battery management system mentioned above.
[0020] The present invention provides a battery management system, which can firstly close the SPI communication channel of the high-voltage sampling chip according to the occurrence time of specific working conditions such as upper high voltage, or when the upper high voltage is identified, so as to effectively avoid the abnormal operation of the high-voltage sampling chip caused by the interference of SPI communication. At the same time, the abnormal identification function of the high-voltage sampling chip is redundantly configured, which can monitor the working state of the high-voltage sampling chip in all directions and in real time, so as to reset it in time when it is abnormal, thereby improving the reliability of the high-voltage sampling chip, and then greatly improving the safety and stability of the vehicle high-voltage circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic structural diagram of a specific embodiment of a battery management system provided by the present invention;
[0022] Figure 2 A schematic diagram of a specific embodiment of a control module in a battery management system provided by the present invention;
[0023] Figure 3 A waveform diagram of a specific embodiment of the SPI communication interaction between the control module and the high-voltage sampling chip provided by the present invention;
[0024] Figure 4 A schematic structural diagram of another specific embodiment of a battery management system provided by the present invention;
[0025] Figure 5 The present invention is a schematic diagram of a specific embodiment of resetting a high-voltage sampling module in a battery management system provided by the present invention. DETAILED DESCRIPTION
[0026] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0028] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
[0029] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0030] It can be understood that “at least one” means one or more, “plurality” means two or more, and “at least a portion of an element” means a part or all of an element.
[0031] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0032] Example 1
[0033] See also Figure 1 As shown, a battery management system includes: a high-voltage circuit 10, a high-voltage sampling module 20, and a control module 30. Among them, the battery can discharge energy to the outside or charge and store energy through the high-voltage circuit 10, and a plurality of switching devices are arranged on the high-voltage circuit 10, and the conduction and shutdown of different switching devices are controlled to enable the high-voltage circuit 10 to switch between different working conditions. Specifically, in actual applications, the high-voltage circuit on the vehicle is usually arranged with a main positive relay, a main negative relay, a pre-charge relay, etc., so as to control the on-off condition of the high-voltage circuit; or the batteries can be connected in series or in parallel through relays to provide power supply voltages of different voltage levels.
[0034] In this regard, whether the relay is safe and reliable seriously affects the safety and user experience of the vehicle. Accordingly, this requires the high-voltage sampling module 20 to perform voltage sampling at different sampling points on the high-voltage circuit 10, so as to perform fault diagnosis on different relays based on the voltage values of multiple sampling points.
[0035] Specifically, the high-voltage sampling module 20 will collect voltage signals from different sampling points in real time or at regular intervals, and feed the collected voltage signals back to the control module 30. Finally, the control module 30 will convert the voltage signals into corresponding voltage values, and integrate all voltage values to perform fault diagnosis on different relays. For example, whether the main positive relay is working normally can be judged by the voltage value on the positive electrode of the battery, and the voltage values at the front and rear ends of the main positive relay. If a certain voltage value is abnormal, or the voltage difference is abnormal, it means that a fault has occurred, and an alarm response is given immediately. Of course, there are no excessive restrictions on how to perform fault diagnosis on different relays. The software program in the control module 30 can be configured according to the actual application. Without departing from the spirit of the present invention, the modifications and embellishments made to the embodiments of the present invention by those skilled in the art still fall within the scope of the invention application of the present invention.
[0036] It is understandable that, since the high-voltage sampling module 20 needs to feed back the collected voltage signal to the control module 30, and then the control module 30 implements the fault diagnosis of the relay, the corresponding high-voltage sampling module 20 and the control module 30 need to establish a communication connection to send data. In the present embodiment, the high-voltage sampling module 20 and the control module 30 preferably use the SPI communication method for data exchange, and of course, it is also used to limit the communication method of the high-voltage sampling module 20 and the control module 30, which can be adjusted accordingly according to actual needs. However, under certain specific working conditions, such as the high voltage on the high-voltage circuit 10, a large voltage interference will occur on the DC bus, which will affect the SPI communication of the high-voltage sampling module 20, thereby easily causing the high-voltage sampling module 20 to work abnormally.
[0037] Therefore, in order to ensure the normal operation of the high-voltage sampling module 20, the control module 30 is also used to monitor the working status of the high-voltage sampling module 20 to reset it when a failure occurs, so as to avoid the high-voltage sampling module 20 from abnormally sending erroneous data.
[0038] Specific as Figure 2 As shown, MCU is the control module 30 in this embodiment, and the high-voltage sampling chip is the high-voltage sampling module 20 in this embodiment. It can be understood that the AD1-AD6 interface of the high-voltage sampling chip is used to collect voltage signals at different sampling points on the high-voltage loop 10, and because the voltage on the high-voltage loop 10 will fluctuate, even if the high-voltage sampling chip is abnormal, the MCU cannot identify whether the high-voltage sampling chip has a fault or abnormality based on the voltage signal collected by the AD1-AD6 interface of the high-voltage sampling chip. Therefore, in this embodiment, an analog input signal interface ADC of the high-voltage sampling chip is connected to a constant voltage source, or a constant voltage signal is connected as a reference voltage, and the voltage signal collected by the interface is synchronously fed back to the MCU. It can be understood that since the reference voltage is a known value, for example, the analog input signal interface ADC of the high-voltage sampling chip is always connected to a 2.5V reference voltage, if the high-voltage sampling chip is abnormal, the voltage signal collected by its analog input signal interface ADC will change accordingly, or the SPI communication abnormality will also cause the voltage signal sent by the high-voltage sampling chip to the MCU to change, thereby causing the voltage signal received by the MCU to be not 2.5V. Therefore, the MCU can determine whether the high-voltage sampling chip is faulty or abnormal by whether the feedback value of the reference voltage is consistent with the known value of the reference voltage, that is, the standard value. Specifically, when the MCU receives the voltage signal of the reference voltage fed back by the high-voltage sampling chip and converts it into a voltage feedback value accordingly, if the feedback value is not the standard value, it can be considered that the high-voltage sampling chip is faulty and a reset operation is performed on it.
[0039] In addition, when the MCU recognizes that the input / output voltage of the high-voltage sampling chip exceeds the preset upper threshold or lower threshold, the high-voltage sampling chip can also be considered abnormal, and a reset operation is performed on it accordingly. Alternatively, the MCU can also monitor the SPI communication between it and the high-voltage sampling chip, for example, the MCU judges the check bit sent by the high-voltage sampling chip. If the check bit judgment fails, the SPI communication is judged to be abnormal, and a reset operation is performed on it accordingly, and other fault detections. It can be understood that the fault conditions of the high-voltage sampling chip listed in this embodiment, and the method used by the MCU to detect whether the high-voltage sampling chip has a fault include but are not limited to the above. Without departing from the spirit of the present invention, the modifications and embellishments made to the embodiments of the present invention by those skilled in the art still fall within the scope of the invention application patent of the present invention.
[0040] It should also be added here that the control module 30 can achieve the reset of the high-voltage sampling module 20 by software or hardware, and there are no excessive restrictions on this. For example, the control module 30 achieves the reset of the high-voltage sampling module 20 by modifying the parameter configuration in the high-voltage sampling module 20. It can be understood here that interference with the SPI communication may cause the parameter value of the control bit in the high-voltage sampling module 20 to be changed to an erroneous value, causing the high-voltage sampling module 20 to work abnormally. The control module 30 can accordingly readjust it to a normal value, that is, complete the reset of the high-voltage sampling module 20. In this embodiment, in order to prevent the parameter value of the control bit in the high-voltage sampling module 20 from being arbitrarily changed and to ensure the safe, reliable and stable operation of the high-voltage sampling module 20, a corresponding latch bit is provided to limit the control bit. Therefore, when the parameter value of the control bit in the high-voltage sampling module 20 is interfered with and causes an abnormality, it is necessary to trigger the latch bit first, and then modify the parameter value of the control bit to a normal value. For example Figure 3 As shown, the binary parameter units bit6 and bit11 in the high-voltage sampling block 20 are originally 0, and bit6 is a control bit, and bit11 is set as a latch bit for bit6. When the high-voltage sampling block 20 fails, bit6 and bit11 are changed to 1. Since the control bit bit6 in this embodiment can only modify the parameter when the latch bit bit11 is 1, bit6 is first adjusted to 0, and then bit11 is adjusted to 0 to complete the reset of the high-voltage sampling block 20. Of course, the control bits and latch bits in the high-voltage sampling module 20, and their corresponding parameter values are not limited to the above, and can be adjusted according to actual needs. The modifications and embellishments made to the embodiments of the present invention by those skilled in the art without departing from the spirit of the present invention still fall within the scope of the invention application of the present invention.
[0041] In addition, the control module 30 can also reset the high-voltage sampling module 20 by initializing the parameter configuration in the high-voltage sampling module 20. It can be understood here that usually the high-voltage sampling chip, that is, the high-voltage sampling module 20 has its own software reset function. The control module 30 triggers the software reset function of the high-voltage sampling module 20 accordingly, initializes its parameter configuration, and completes the reset of the high-voltage sampling module 20.
[0042] Furthermore, the control module 30 can also trigger the reset interface of the high-voltage sampling module 20 through a hardware driving circuit to achieve the resetting of the high-voltage sampling module 20. There are no excessive restrictions on the hardware driving circuit, and it can be designed accordingly according to actual conditions.
[0043] It can be seen that the high voltage sampling module 20 can be reset in a variety of different ways. Without departing from the spirit of the present invention, modifications and improvements made to the embodiments of the present invention by those skilled in the art still fall within the scope of the invention application of the present invention.
[0044] Example 2
[0045] See also Figure 1 As shown, a battery management system includes: a high-voltage circuit 10, a high-voltage sampling module 20, and a control module 30. Among them, the battery can discharge energy to the outside or charge and store energy through the high-voltage circuit 10, and a plurality of switching devices are arranged on the high-voltage circuit 10, and the conduction and shutdown of different switching devices are controlled to enable the high-voltage circuit 10 to switch between different working conditions. Specifically, in actual applications, the high-voltage circuit on the vehicle is usually arranged with a main positive relay, a main negative relay, a pre-charge relay, etc., so as to control the on-off condition of the high-voltage circuit; or the batteries can be connected in series or in parallel through relays to provide power supply voltages of different voltage levels.
[0046] In this regard, whether the relay is safe and reliable seriously affects the safety and user experience of the vehicle. Accordingly, this requires the high-voltage sampling module 20 to perform voltage sampling at different sampling points on the high-voltage circuit 10, so as to perform fault diagnosis on different relays based on the voltage values of multiple sampling points.
[0047] Specifically, the high-voltage sampling module 20 will collect voltage signals from different sampling points in real time or at regular intervals, and feed the collected voltage signals back to the control module 30. Finally, the control module 30 will convert the voltage signals into corresponding voltage values, and integrate all voltage values to perform fault diagnosis on different relays. For example, whether the main positive relay is working normally can be judged by the voltage value on the positive electrode of the battery, and the voltage values at the front and rear ends of the main positive relay. If a certain voltage value is abnormal, or the voltage difference is abnormal, it means that a fault has occurred, and an alarm response is given immediately. Of course, there are no excessive restrictions on how to perform fault diagnosis on different relays. The software program in the control module 30 can be configured according to the actual application. Without departing from the spirit of the present invention, the modifications and embellishments made to the embodiments of the present invention by those skilled in the art still fall within the scope of the invention application of the present invention.
[0048] It is understandable that, since the high-voltage sampling module 20 needs to feed back the collected voltage signal to the control module 30, and then the control module 30 implements the fault diagnosis of the relay, the corresponding high-voltage sampling module 20 and the control module 30 need to establish a communication connection to send data. In the present embodiment, the high-voltage sampling module 20 and the control module 30 preferably use the SPI communication method for data exchange, and of course, it is also used to limit the communication method of the high-voltage sampling module 20 and the control module 30, which can be adjusted accordingly according to actual needs. However, under certain specific working conditions, such as the high voltage on the high-voltage circuit 10, a large voltage interference will occur on the DC bus, which will affect the SPI communication of the high-voltage sampling module 20, thereby easily causing the high-voltage sampling module 20 to work abnormally.
[0049] It should be noted that the high voltage condition of the high voltage circuit 10 lasts for a very short time, which may be only tens of milliseconds. Therefore, in order to avoid the influence of this specific condition on the operation of the high voltage sampling module 20, the control module 30 will close and stop the SPI communication with the high voltage sampling module 20 before entering the high voltage until the high voltage is finished.
[0050] Specifically, the control module 30 records the start time and end time of different working conditions, and accordingly, the SPI communication with the high-voltage sampling module 20 can be stopped according to the duration of the start time and end time of the high voltage, and the corresponding SPI communication channel can be closed, and the duration of the closure should at least exceed the duration of the high voltage. Alternatively, the software function of the control module 30 can be configured so that it can identify whether the power supply circuit 10 is high voltage, for example, by current changes or voltage changes, or by receiving corresponding trigger electrical signals and other methods, to identify whether the high-voltage circuit 10 is high voltage, and when the high voltage is turned on, the SPI communication with the high-voltage sampling module 20 is stopped in time, the corresponding SPI communication channel is closed, and the SPI communication is restarted after the high voltage is finished, so as to ensure the normal operation of the high-voltage sampling module 20 and ensure the stability and reliability of the vehicle operation.
[0051] It should be noted that the upper high voltage is only used as a specific embodiment to describe a specific working condition of the power supply circuit 10, but is not used to limit the scope of the specific working condition. Without departing from the spirit of the present invention, the modifications and improvements made to the embodiments of the present invention by those skilled in the art still fall within the scope of the invention application patent of the present invention.
[0052] Furthermore, in order to be able to more actively and flexibly shut down the SPI communication channel between the control module 30 and the high-voltage sampling module 20, so as to avoid interference and cause abnormal operation of the high-voltage sampling module 20. In the present embodiment, the control module 30 is also used to stop the SPI communication with the high-voltage sampling module 20 upon receiving a control instruction sent by the vehicle controller or other functional module units, close the corresponding SPI communication channel, and the duration of the closure can be pre-set. For example, when the control module 30 receives the corresponding control instruction, the SPI communication channel between the control module 30 and the high-voltage sampling module 20 can be closed for 1s, and the SPI communication closing time can at least wait for the end of a specific working condition, so as to stagger the conditions that may cause abnormal operation of the high-voltage sampling module 20, thereby improving the stability and reliability of the operation of the high-voltage sampling module 20.
[0053] In summary, the technical solutions provided in the above two embodiments can ensure that the high-voltage sampling module operates reliably and stably, but at the same time, the two solutions can also be set up synchronously to achieve multiple protections and redundant settings, which can more comprehensively maintain and ensure the normal operation of the high-voltage sampling module.
[0054] In a specific embodiment, if Figure 4 As shown, the control module can use a control chip of model ADS7951, and at least includes a basic software layer (BSW, Basic Software) and an application software layer (ASW, Application Software), as well as a runtime environment (RTE, Run-Time Environment). Among them, the application software layer is used to provide an operating environment for application software, realize the combination and configuration of software modules, provide a software component communication mechanism, and support automated testing and verification of software modules. The runtime environment, as a bridge for the interaction between the application software layer and the basic software layer, provides the possibility for the separation of software and hardware, and can realize communication between software components, between basic software, and between software components and basic software. The basic software layer is used for task scheduling and task management, memory management, device drivers and communication protocols, diagnosis and fault management, and power management.
[0055] Specifically, the application software layer is used to close the pre-filling relay according to the control instruction of the basic software layer, and when the pre-filling relay is closed, the communication with the high-voltage sampling module is stopped by calling the first interface of the basic software layer to close the SPI communication channel between the control module and the high-voltage sampling module. It can be understood here that in actual applications, the upper high voltage is achieved by closing the power supply circuit of the battery, that is, the pre-filling relay and the main relay on the power supply circuit are closed successively. Therefore, after closing the pre-filling relay, it can be considered that the power supply circuit is in the upper high voltage state.
[0056] like Figure 5As shown, after the application software layer (ASW) triggers the pre-charge relay to close, the SPI communication is correspondingly closed and can last for a preset time, and the SPI communication can be re-enabled after the preset time ends or a specific working condition ends.
[0057] In addition, when the SPI communication channel is closed, the control module is also used to output corresponding control information through its communication fault diagnosis interface, indicating that the SPI communication protocol is in an inactive state, so as to inform other functional module units, for example, by calling the corresponding interface of the basic software layer through the application software layer. At the same time, since the SPI communication channel is closed, the control module cannot obtain the voltage signal sampled by the high-voltage sampling module. In order to maintain the normal operation of other functional module units in the system, the control module 30 continues to send the voltage value corresponding to the voltage signal fed back by the high-voltage sampling module at the moment before the SPI communication stops through the corresponding interface, so that other module units can at least work normally according to the voltage value until the SPI communication is restarted, that is, a new voltage signal is obtained, and it is converted into a new voltage value and sent to the outside accordingly.
[0058] At the same time, the second interface of the basic software layer is used as a reset interface, the third interface is used as a diagnostic interface, and the application software layer is also used to identify whether the high-voltage sampling module fails based on the return value of the second interface of the basic software layer, and reset the high-voltage sampling module by calling the third interface of the basic software layer when a failure occurs. For example, when the return value of the second interface is 0, it can be considered that the high-voltage sampling module is abnormal in operation or the SPI communication is abnormal; when the return value of the second interface is 1, it can be considered that the high-voltage sampling module is normal; when the return value of the second interface is 2, it is considered that the SPI communication of the high-voltage sampling module is actively closed. In addition, it can be understood that when the SPI communication of the high-voltage sampling module is actively closed, if the third interface is called to reset the high-voltage sampling module, failure will be returned. The above is the processing method of the internal software program of the control module, and there is no excessive restriction on this. The modifications and embellishments made to the embodiments of the present invention by those skilled in the art without departing from the spirit of the present invention still fall within the scope of the invention application of the present invention.
[0059] It can be seen that the reliability of the high-voltage sampling module can be guaranteed by configuring the control module to execute the above two technical means. It should also be noted that in this embodiment, the control module and the high-voltage sampling module communicate specifically through the SPI communication protocol, and the SPI communication needs to be stopped accordingly, and the SPI communication channel needs to be closed, but it is not used to limit the communication method between the control module and the high-voltage sampling module. In actual applications, other communication protocols can also be used between the control module and the high-voltage sampling module, and there is no requirement on how to close the corresponding communication, which all fall within the scope of protection of this application.
[0060] Example 3
[0061] An embodiment of the present application also provides a vehicle controller, comprising the battery management system described in the above-mentioned embodiment 1 and / or embodiment 2.
[0062] The present invention provides a battery management system, which can firstly close the SPI communication channel of the high-voltage sampling chip according to the occurrence time of specific working conditions such as upper high voltage, or when the upper high voltage is identified, so as to effectively avoid the abnormal operation of the high-voltage sampling chip caused by the interference of SPI communication. At the same time, the abnormal identification function of the high-voltage sampling chip is redundantly configured, which can monitor the working state of the high-voltage sampling chip in all directions and in real time, so as to reset it in time when it is abnormal, thereby improving the reliability of the high-voltage sampling chip, and then greatly improving the safety and stability of the vehicle high-voltage circuit.
[0063] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
[0064] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic description of the above terms does not necessarily refer to the same embodiment or example.
[0065] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0066] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A battery management system, characterized in that: include: A high-voltage circuit is used to cooperate with the battery to discharge energy or charge and store energy, and a plurality of different relays are provided on the high-voltage circuit, and different relays cooperate with each other to switch the high-voltage circuit between different working conditions; A high voltage sampling module, used for collecting voltage signals at different sampling points on the high voltage circuit; A control module, which is in communication connection with the high-voltage sampling module and is used to perform fault diagnosis on different relays according to the voltage signal fed back by the high-voltage sampling module; The control module is also used to monitor the working state of the high-voltage sampling module so as to perform a reset operation on it when a failure occurs.
2. The battery management system according to claim 1, characterized in that: The high voltage sampling module is provided with an analog input signal interface for collecting a constant reference voltage and feeding it back to the control module; The control module is used to identify whether the high voltage sampling module fails according to the feedback value of the reference voltage.
3. The battery management system according to claim 2, characterized in that: When the feedback value of the reference voltage is not the standard value of the reference voltage, the control module identifies that the high-voltage sampling module fails and resets it.
4. The battery management system according to claim 1, characterized in that: The control module is also used to identify the input / output voltage of the high-voltage sampling module to determine whether the high-voltage sampling module fails.
5. The battery management system according to claim 1, characterized in that: The control module is also used to identify whether the communication between the control module and the high-voltage sampling module is abnormal, so as to determine whether the high-voltage sampling module fails.
6. The battery management system according to claim 1, characterized in that: The reset operation includes software reset and hardware reset; Wherein, the software reset includes: modifying abnormal parameters in the high-voltage sampling module, or initializing the high-voltage sampling module; The hardware reset includes: triggering a reset interface of the high-voltage sampling module through a hardware driving circuit.
7. The battery management system according to claim 6, characterized in that: Modify the abnormal parameters in the high voltage sampling module as follows: An abnormal control bit in the high-voltage sampling module is identified, and a latch bit corresponding to the control bit is first triggered, and then the control bit is modified to a normal value.
8. The battery management system according to claim 1, characterized in that: The control module is also used to stop communicating with the high-voltage sampling module before the high-voltage circuit enters a specific operating condition until the specific operating condition ends.
9. The battery management system according to claim 8, characterized in that: The control module is also used to convert the voltage signal fed back by the high-voltage sampling module into a voltage value and send it to the outside; Wherein, under certain working conditions, the control module continuously sends out the voltage value corresponding to the voltage signal fed back by the high-voltage sampling module at a moment before the communication stops, until the communication is restarted.
10. The battery management system according to claim 9, characterized in that: The control module is also used to stop communicating with the high-voltage sampling module when receiving a control instruction, and the communication continues for a preset time.
11. The battery management system according to claim 8, characterized in that: When communication with the high-voltage sampling module is stopped, the control module is further used to output corresponding control information through its communication fault diagnosis interface to indicate that the communication protocol is in a disabled state.
12. A battery management system, characterized in that: include: A high-voltage circuit is used to cooperate with the battery to discharge energy or charge and store energy, and a plurality of different relays are provided on the high-voltage circuit, and different relays cooperate with each other to switch the high-voltage circuit between different working conditions; A high voltage sampling module, used for collecting voltage signals at different sampling points on the high voltage circuit; A control module, which is in communication connection with the high-voltage sampling module and is used to perform fault diagnosis on different relays according to the voltage signal fed back by the high-voltage sampling module; Wherein, the control module is also used to stop communicating with the high-voltage sampling module before the high-voltage circuit enters a specific working condition until the specific working condition ends.
13. A vehicle controller, characterized in that: A battery management system comprising any one of claims 1 to 12 above.
Citation Information
Patent Citations
Car lamp intelligent control system with function safety design
CN116572836A
Communication fault processing system and method and automobile
CN117459363A
Vehicle, motor controller low-voltage power-on system, controller and fault detection method
CN118596855A
Control method of vehicle high-voltage loop
CN118790101A
Battery management system
WO2020173423A1
Cited By
Circuit and method for improving robustness of up-down high voltage of new energy automobile
CN120096484A
