High-voltage acquisition and fault cooperative diagnosis method, system and device of BMS software
Patent Information
- Application Number
- CN202610791997.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-03
- Publication Date
- 2026-10-09
AI Technical Summary
[0004]现有HVSM组件在适配各类BMS软件应用场景时,存在以下技术缺陷,导致高压管理精度不足、故障误判率高、场景适配性差,难以满足BMS软件量产及长期稳定运行需求:
[0044]本发明的有益效果是:本发明一种BMS软件的高压采集与故障协同诊断方法、系统及装置,构建了“采集—故障诊断—赋值—欠过压及断路诊断—输出”的闭环架构,采用统一的无效阈值、预故障和故障的二级诊断、分级赋值策略、CAN总线传输电压与软件内部计算电压分别赋值、断路以及三级过欠压故障的双重诊断,使得高压管理的精准性、可靠性及可维护性得以有效提升,BMS软件量产通用需求可被满足,各类BMS软件架构亦可适配。
Smart Images

Figure CN122882979A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electric vehicle technology, and specifically to a method, system, and device for high-voltage acquisition and fault collaborative diagnosis of BMS software. Background Technology
[0002] In the field of new energy vehicles, battery management system (BMS) is an effective guarantee of battery safety. The high voltage sampling management (HVSM) component inside the BMS system is an important sub-module of the BMS system. It directly completes the high voltage sampling, processing, and diagnosis of multiple circuits and is the link between the "low-level sampling hardware" and the "high-level control algorithm".
[0003] Based on the actual application requirements of BMS software, the HVSM component needs to realize the full-process processing of high-voltage signals from multiple circuits, including the main circuit, fast charging circuit, heating circuit, and water cooling circuit. At the same time, it needs to adapt to the special requirements of different hardware architectures, such as the lack of external total pressure hardware sampling points and the collaborative control of the main negative relay and the pre-charge relay. It also needs to be compatible with the fault clearing logic of the CAN bus communication specification and the Unified Diagnostic Services (UDS) diagnostic protocol.
[0004] Existing HVSM components suffer from the following technical defects when adapting to various BMS software application scenarios, resulting in insufficient high-voltage management accuracy, high fault misjudgment rate, and poor scenario adaptability, making it difficult to meet the requirements of mass production and long-term stable operation of BMS software:
[0005] Fragmented signal processing and fault diagnosis: Traditional HVSM components integrate high voltage measurement, fault diagnosis, and voltage assignment without separating the various stages. Signal processing only performs simple filtering and is not deeply integrated with fault diagnosis logic. This results in fault diagnosis delays, and invalid signals can be mixed into subsequent calculations, causing misjudgments and making it unable to support the monitoring of complex signals in multiple loops.
[0006] The voltage assignment strategy lacks scenario adaptability: For some BMS hardware architectures that do not have external total voltage hardware sampling points, existing solutions mostly use fixed assignment or single logic derivation, without dynamically adjusting the external total voltage assignment based on the real-time status of the main negative relay and pre-charge relay, resulting in distortion of the external total voltage data; at the same time, it ignores the direct cessation of voltage supply in case of fault, which cannot meet the requirements of continuous communication on the CAN bus and affects the correct completion of the upper layer logic.
[0007] The fault diagnosis and classification are unclear and there is no early warning mechanism: it only distinguishes between the binary state of "fault / no fault" and lacks the two-level early warning logic of "pre-fault - fault". When a fault occurs, it directly disconnects the high voltage and other strong protections, which affects the battery life. The over- and under-voltage faults are only set with one level of over- and under-voltage thresholds. The lowest processed cell temperature is not used for dynamic compensation, resulting in poor adaptability and failure to meet the full-condition protection requirements of the BMS software.
[0008] High component coupling and poor reusability: Traditional modules rely on global variables for communication, the unit boundaries are blurred, and the design constraints of BMS software components are not followed (each unit is relatively independent, the interface communication between units does not depend on global variables). Deleting or modifying one of the sub-functions (such as signal accuracy calibration) will affect the overall module error. It does not meet the needs of multi-loop high voltage detection in various hardware systems and increases the workload of development and maintenance.
[0009] Insufficient compatibility of multi-loop high-voltage monitoring: In BMS software application scenarios, such as simultaneous operation of fast charging and heating / water cooling, current technical solutions lack standardized signal processing mechanisms and fault diagnosis criteria. Inter-loop signal interference occurs frequently, leading to missed fault detection in important subsystems such as fast charging and heating circuits, significantly impacting charging safety and overall system stability.
[0010] The core reason for the aforementioned deficiencies lies in the fact that existing HVSM components have not constructed a collaborative architecture covering the entire process of "acquisition-diagnosis-assignment-output." Furthermore, a generalized logical framework has not yet been fully developed to address the hardware compatibility requirements, software limitations, and diverse application scenarios of BMS software. This clearly demonstrates the difficulty in achieving a balance between measurement accuracy, operational reliability, and code reusability in high-voltage management systems. Therefore, developing a high-voltage monitoring and fault diagnosis method that is compatible with BMS software, has low coupling, strong collaboration, and high reusability is of paramount importance. Summary of the Invention
[0011] This invention provides a method, system, and device for high-voltage data acquisition and collaborative fault diagnosis using BMS software, in order to solve at least one of the above-mentioned technical problems.
[0012] The technical solution of this invention to solve the above-mentioned technical problems is as follows: A method for high-voltage acquisition and fault collaborative diagnosis of BMS software, comprising:
[0013] S1 receives multiple types of input signals and performs precision calibration, validity judgment, and relay state transition processing to obtain standardized signals. Among them, the multiple types of input signals cover all key high-voltage signals and control signals of the BMS software; the validity judgment is based on the invalid threshold.
[0014] S2, perform a two-level diagnosis based on pre-fault and fault on the standardized signal to obtain a high-voltage fault diagnosis result; wherein, the content of the two-level diagnosis includes invalid fault diagnosis and out-of-range fault diagnosis; the invalid fault diagnosis is based on the invalid threshold; the high-voltage fault diagnosis result includes normal state, pre-fault state, and fault state;
[0015] S3, the diagnostic results are assigned values using a hierarchical assignment strategy to obtain the CAN bus transmission voltage value and the software internal calculation voltage value;
[0016] S4, under the premise of eliminating the fault condition, perform dual diagnosis of the total voltage of the battery pack for open circuit and three-level over- and under-voltage faults, and obtain the over- and under-voltage diagnosis results and open circuit diagnosis results.
[0017] S5 converts the CAN bus transmitted voltage value, the software-calculated voltage value, and the over / under voltage diagnosis results and open circuit diagnosis results into standardized display values, and outputs them to the CAN bus and BMS software, and outputs feedback signals to S1.
[0018] Based on the above technical solution, the present invention can be further improved as follows.
[0019] Furthermore, in S1,
[0020] The formula for precision calibration is: Normalized signal = round(sampling resolution of input signal * input signal / sampling resolution of input signal); where round is the rounding function;
[0021] The validity determination process is as follows: determine whether the input signal is less than the invalid threshold; if so, the input signal is determined to be valid; otherwise, the input signal is determined to be invalid.
[0022] The input signal includes the relay state. The relay state transition process is as follows: if the relay state is closed, the relay state is converted to a Boolean value of 1.
[0023] Furthermore, in S2,
[0024] The invalid fault diagnosis specifically involves determining whether all standardized signals are less than the invalid threshold. If so, it is determined that no invalid pre-fault or invalid fault has occurred.
[0025] The out-of-range fault diagnosis specifically involves determining whether the standardized signal is greater than or equal to the out-of-range fault threshold. If so, an out-of-range fault is determined to have occurred.
[0026] Furthermore, the out-of-range fault threshold is equal to the number of cells in a single cluster of the battery system multiplied by the voltage of the high-voltage sampling out-of-range calculated to the individual cell.
[0027] Furthermore, when the standardized signal is greater than or equal to the out-of-range fault threshold, the high-voltage fault diagnosis result is a pre-fault state, and the standardized signal out-of-range pre-fault flag is output as 1; otherwise, the high-voltage fault diagnosis result is a normal state, and the standardized signal out-of-range pre-fault flag is output as 0.
[0028] If the standardized signal out-of-range pre-fault flag is 1 and the standardized signal is still greater than or equal to the out-of-range fault threshold after the duration of the pre-fault, the high-voltage fault diagnosis result is a fault state, and the standardized signal out-of-range fault flag is output as 1; otherwise, the high-voltage fault diagnosis result is not a fault state, and the standardized signal out-of-range fault flag is output as 0.
[0029] Furthermore, S3 specifically refers to:
[0030] S31, determine whether the standardized signal out-of-range fault flag bit is equal to 1. If yes, assign the CAN bus transmission voltage and the software internal calculation voltage to the invalid threshold. If no, execute S32.
[0031] S32, determine whether the standardized signal out-of-range pre-fault flag bit is equal to 1. If yes, maintain the CAN bus transmission voltage and the internally calculated voltage of the software at the value of the previous cycle; if no, execute S33.
[0032] S33: Determine whether there is an external total voltage sampling point in the BMS hardware architecture. If so, assign values to the CAN bus transmission voltage and the internally calculated voltage using the calibrated standardized signal. If not, dynamically assign values to the CAN bus transmission voltage and the internally calculated voltage based on the real-time status of the relay.
[0033] Furthermore, in S4, the condition for performing dual diagnosis of open circuit and level 3 over / under voltage faults is: under the premise of eliminating the fault state, the voltage calculated internally by the software is less than the diagnostic threshold for open circuit and level 3 over / under voltage faults; wherein, the diagnostic threshold for open circuit and level 3 over / under voltage faults is less than the invalid threshold.
[0034] Furthermore, in S4, the three-level threshold for the three-level over- and under-voltage fault diagnosis is linked to the lowest battery pack cell temperature; the threshold for the open-circuit fault diagnosis is equal to 1.5V multiplied by the number of cells in a single battery cluster.
[0035] Based on the above-mentioned method for high-voltage acquisition and fault collaborative diagnosis of BMS software, the present invention also provides a system for high-voltage acquisition and fault collaborative diagnosis of BMS software.
[0036] A high-voltage acquisition and fault collaborative diagnosis system for BMS software includes a high-voltage acquisition management component, which is decoupled into an input signal processing unit, a high-voltage fault diagnosis unit, a high-voltage assignment unit, an over / under voltage and open circuit fault diagnosis unit, and an output signal processing unit through unit decoupling.
[0037] The input signal processing unit is used to receive multiple types of input signals and perform precision calibration, validity judgment, and relay state transition processing to obtain standardized signals; wherein, the multiple types of input signals cover all key high-voltage signals and control signals of the BMS software; the validity judgment is based on an invalid threshold.
[0038] The high-voltage fault diagnosis unit is used to perform a two-level diagnosis based on pre-fault and fault on the standardized signal to obtain a high-voltage fault diagnosis result; wherein, the content of the two-level diagnosis includes invalid fault diagnosis and out-of-range fault diagnosis; the invalid fault diagnosis is based on the invalid threshold; the high-voltage fault diagnosis result includes normal state, pre-fault state, and fault state;
[0039] The high-voltage assignment unit is used to assign values to the diagnostic results using a hierarchical assignment strategy to obtain the CAN bus transmission voltage value and the software-calculated voltage value.
[0040] The over / under voltage and open circuit fault diagnosis unit is used to perform dual diagnosis of open circuit and three-level over / under voltage faults on the total voltage of the battery pack, under the premise of eliminating the fault state, and obtain over / under voltage diagnosis results and open circuit diagnosis results.
[0041] The output signal processing unit is used to convert the CAN bus transmitted voltage value, the software internal calculated voltage value, and the over / under voltage diagnosis result and open circuit diagnosis result into standardized display values and output them to the CAN bus and BMS software, and output feedback signals to the input signal processing unit.
[0042] Based on the above-mentioned method for high-voltage acquisition and fault collaborative diagnosis of BMS software, the present invention also provides a device for high-voltage acquisition and fault collaborative diagnosis of BMS software.
[0043] A high-voltage acquisition and fault collaborative diagnosis device for BMS software includes a processor, a memory, and a computer program stored in the memory. When the computer program is executed by the processor, it implements the high-voltage acquisition and fault collaborative diagnosis method for BMS software as described above.
[0044] The beneficial effects of this invention are as follows: This invention provides a high-voltage acquisition and fault collaborative diagnosis method, system, and device for BMS software, which constructs a closed-loop architecture of "acquisition—fault diagnosis—assignment—undervoltage / overvoltage and open-circuit diagnosis—output". It adopts a unified invalid threshold, two-level diagnosis of pre-fault and fault, a graded assignment strategy, separate assignment of CAN bus transmission voltage and software internal calculation voltage, and dual diagnosis of open-circuit and three-level overvoltage / undervoltage faults. This effectively improves the accuracy, reliability, and maintainability of high-voltage management, meets the general requirements for mass production of BMS software, and is adaptable to various BMS software architectures. Attached Figure Description
[0045] Figure 1 This is a flowchart of a high-voltage acquisition and fault collaborative diagnosis method for BMS software according to the present invention.
[0046] Figure 2 This is a schematic diagram of the unitized architecture of HVSM components;
[0047] Figure 3 The circuit diagram for the high-voltage acquisition loop;
[0048] Figure 4 Logic diagram for assigning values to high voltage levels;
[0049] Figure 5 This is a structural block diagram of a high-voltage acquisition and fault collaborative diagnosis system for BMS software according to the present invention;
[0050] Figure 6 This is a structural block diagram of a high-voltage acquisition and fault collaborative diagnosis device for BMS software according to the present invention. Detailed Implementation
[0051] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.
[0052] like Figure 1 As shown, a method for high-voltage data acquisition and fault collaborative diagnosis using BMS software includes:
[0053] S1 receives multiple types of input signals and performs precision calibration, validity judgment, and relay state transition processing to obtain standardized signals. Among them, the multiple types of input signals cover all key high-voltage signals and control signals of the BMS software; the validity judgment is based on the invalid threshold.
[0054] S2, perform a two-level diagnosis based on pre-fault and fault on the standardized signal to obtain a high-voltage fault diagnosis result; wherein, the content of the two-level diagnosis includes invalid fault diagnosis and out-of-range fault diagnosis; the invalid fault diagnosis is based on the invalid threshold; the high-voltage fault diagnosis result includes normal state, pre-fault state, and fault state;
[0055] S3, the diagnostic results are assigned values using a hierarchical assignment strategy to obtain the CAN bus transmission voltage value and the software internal calculation voltage value;
[0056] S4, under the premise of eliminating the fault condition, perform dual diagnosis of the total voltage of the battery pack for open circuit and three-level over- and under-voltage faults, and obtain the over- and under-voltage diagnosis results and open circuit diagnosis results.
[0057] S5 converts the CAN bus transmitted voltage value, the software-calculated voltage value, and the over / under voltage diagnosis results and open circuit diagnosis results into standardized display values, and outputs them to the CAN bus and BMS software, and outputs feedback signals to S1.
[0058] This invention constructs a closed-loop architecture of "acquisition—fault diagnosis—assignment—undervoltage, overvoltage and open circuit diagnosis—output". It adopts a unified invalid threshold, two-level diagnosis of pre-fault and fault, a graded assignment strategy, separate assignment of CAN bus transmission voltage and software internal calculation voltage, and dual diagnosis of open circuit and three-level overvoltage and undervoltage faults. This effectively improves the accuracy, reliability and maintainability of high voltage management, meets the general requirements of BMS software mass production, and is adaptable to various BMS software architectures.
[0059] The high-voltage acquisition and fault collaborative diagnosis method proposed in this invention fully complies with the requirements of BMS software development specifications. Based on the concept of unit decoupling, the HVSM component is redesigned and decomposed into five functionally independent units to achieve the goal of collaborative management and control of the high-voltage signal throughout its entire life cycle, effectively solving the inherent defects of existing technologies.
[0060] In this embodiment, the HVSM component strictly adheres to the BMS software design specifications, with the following core constraints:
[0061] Operating environment constraints: The HVSM component runs on Windows 10, and the development tool used is Matlab 2020b. The running cycle is set to 10 milliseconds to meet the real-time control requirements of the BMS software.
[0062] Naming and Interface Constraints: The names of HVSM component inputs, outputs, calibrators, local variables, and modules strictly follow the MATLAB Simulink modeling naming conventions, and the interface design remains consistent with the global configuration of the BMS software;
[0063] Component decomposition constraints: The HVSM component is divided into 5 independent units according to its functions. Appropriate dependencies are established between the units. The implementation details inside the units are hidden from the outside. Signal interaction is only carried out through standardized interfaces, and the use of global variables is avoided as much as possible.
[0064] Parameter setting constraints: The invalid signal judgment threshold (invalid threshold) is uniformly set to 65535. The out-of-range fault threshold adopts "number of cells in a single cluster of the battery system × 5V" as the benchmark. The high-voltage circuit breaker fault threshold is "1.5V × number of cells in a single cluster of the battery system". The pre-fault duration can be flexibly configured according to the specific BMS software application scenario.
[0065] In this embodiment, the BMS software is adapted to a single-cluster cell architecture (it can be flexibly adapted to a multi-cluster architecture, with a generalized design that presets 100 cell strings, a high-voltage acquisition and management module operating cycle of 10ms, an invalid threshold set to 65535, an out-of-range fault threshold = number of single-cluster cell strings in the battery system * voltage of the single cell converted from high-voltage sampling out-of-range (5V) = 100 × 5V = 500V, a high-voltage open-circuit fault threshold = 1.5V × 100 = 150V, a pre-fault duration set to 500ms, general fault diagnosis enabled by default, and the UDS (Unified Diagnostic Services) 0x14 service fault clear flag is initially set to 0.
[0066] The HVSM component was redesigned based on the concept of unit-based decoupling. The redesigned HVSM component unit architecture is as follows: Figure 2 As shown, the system is divided into three layers: input layer A, processing layer B, and output layer C. Input layer A displays all input signals, including high-voltage sampling signals, relay status signals, battery status signals (such as temperature signals), and diagnostic control signals (such as fault diagnosis enable signals). Processing layer B displays five independent functional units, including input signal processing unit B1, high-voltage fault diagnosis unit B2, high-voltage assignment unit B3, over / under voltage and open-circuit fault diagnosis unit B4, and output signal processing unit B5. Output layer C displays all output signals, including CAN bus transmission signals C1, fault alarm signals C2, and internal software signals C3. Figure 2 The modular design logic adopted by the high-voltage acquisition component shown embodies the low-coupling concept of "independent units and interface communication", providing architectural support for the collaborative operation of various units in key technical processes, and is compatible with the general component design specifications of BMS software.
[0067] The steps of the method of the present invention will be described in detail below.
[0068] S1: Input signal processing.
[0069] The input signal processing unit B1 receives various types of input signals, covering all key high-voltage signals and control signals of the BMS software. It performs three major standardization processes: signal accuracy calibration, validity judgment (with 65535 as the invalid threshold), and relay state transition, to prevent invalid signals from flowing into subsequent stages. The processed standardized signals are then output to the high-voltage fault diagnosis unit B2.
[0070] Specifically, the various types of input signals received by the input signal processing unit B1 come from, for example... Figure 3 The high-voltage acquisition circuit shown includes a hardware acquisition and conditioning module (not shown); in this embodiment, multiple types of input signals include:
[0071] imi_d_V_posInsdNegInsdU represents the high voltage sampling voltage from the main positive inner side to the main negative inner side, which comes from the high voltage sampling sensor in the main circuit and is output after being converted by the signal conditioning module.
[0072] imi_d_V_negAdhsnInsdU represents the main negative relay adhesion diagnostic voltage, which comes from the sampling sensor at both ends of the main negative relay;
[0073] ctsm_d_T_minCellTHndl represents the lowest monomer temperature after treatment;
[0074] cvsm_d_V_sumCellUHndl represents the accumulated sum of the individual cell voltages;
[0075] ctc_d_st_negRly indicates the state of the main negative relay, which is closed.
[0076] ctc_d_st_preChrgRly indicates the state of the precharge relay, which is closed.
[0077] fd_d_flg_generalDiagEna indicates that general fault diagnosis is enabled;
[0078] udsi_d_flg_UDS14SrvFltClr represents the clear flag for the UDS 0x14 service failure.
[0079] The input signal processing unit B1 performs three major standardization processes on various types of input signals: accuracy calibration, validity judgment, and relay state transition. This prevents invalid signals from flowing into subsequent stages. Specifically:
[0080] Accuracy calibration: Taking the high-voltage sampling voltage from the main positive inner side to the main negative inner side as an example, after calculation using the formula hvsm_n_V_posInsdNegInsd=round(hvsm_n_V_PINIUCANResl*imi_d_V_posInsdNegInsdU / hvsm_n_V_PINIUCANResl), a standardized signal is output (where hvsm_n_V_posInsdNegInsd is the standardized value of the high voltage from the main positive inner side to the main negative inner side, hvsm_n_V_PINIUCANResl is the CAN resolution of the high-voltage sampling from the main positive inner side, and imi_d_V_posInsdNegInsdU is the high-voltage sampling voltage from the main positive inner side to the main negative inner side); other circuits such as fast charging, heating, water cooling, etc., (corresponding to...) Figure 3 The signals of each branch circuit are calibrated according to the same logic to ensure that the accuracy meets the standard.
[0081] Validity check: All input signals are < 65535 (65535 is the invalid threshold), such as hvsm_n_V_posInsdNegInsd < 65535, and the same applies to other input signals. There are no invalid signals (i.e., Figure 3 All sampling sensors and signal conditioning modules are operating normally.
[0082] State transition: The closed state of the main negative relay is converted to a Boolean value of 1 by hvsm_n_flg_negRlySts=istrue(ctc_d_st_negRly==CTC_ST.RLY_CLOSE). The closed state of the precharge relay is converted to a Boolean value of 1 by the same logic, which facilitates the logic judgment of subsequent units. Among them, hvsm_n_flg_negRlySts is the state of the main negative relay inside the high voltage acquisition component, and CTC_ST.RLY_CLOSE represents that the relay is in the closed state.
[0083] After the above three standardized processes of precision calibration, validity judgment, and relay state transition, the input signal processing unit B1 outputs all standardized signals and status flags to the high-voltage fault diagnosis unit B2, realizing the conversion of hardware-acquired signals into software-processable signals.
[0084] S2: High-voltage fault diagnosis.
[0085] When the general fault diagnosis is enabled, the high-voltage fault diagnosis unit B2 performs a "no-fault - out-of-range fault" diagnostic process on the signal output by the input signal processing unit B1. Pre-faults and actual faults are divided into two levels: the former is used for internal software warnings, while the latter is used to trigger protection actions. Faults in the main circuit and its branch circuits (including corresponding relays) can be accurately located using this process. After diagnosis, the fault or pre-fault flag is sent to the high-voltage voltage assignment unit B3 to provide a basis for subsequent operations.
[0086] Specifically, the high-voltage fault diagnosis unit B2 receives the standardized signal output from the input signal processing unit B1. When the general fault diagnosis enable is 1, meeting the diagnostic prerequisites, it performs a two-level diagnosis based on pre-fault and fault conditions on the signal output from the input signal processing unit B1. The two-level diagnosis includes invalid fault diagnosis and out-of-range fault diagnosis; where:
[0087] Invalid fault diagnosis: For example, if all signals output by the input signal processing unit B1 are <65535, the invalid fault triggering condition is not met. Therefore, there are no invalid pre-faults or invalid faults, indicating that all sampling relays and signal conditioning modules are operating normally.
[0088] Out-of-range fault diagnosis: For example, if the input internal total pressure normalized signal is 500V, which is equal to the out-of-range fault threshold (500V), then the output internal total pressure out-of-range pre-fault flag bit (hvsm_n_flg_PINIUOutPrdtFlt, main positive inner high voltage sampling out-of-range pre-fault flag bit) is 1, and other circuits (fast charging, heating, water cooling, etc., corresponding to...) are also 1. Figure 3 All branch circuit signals are within the normal threshold range, with no pre-fault flag or fault flag output, indicating that... Figure 3 The main circuit high voltage is abnormal, while other branch circuits are operating normally.
[0089] According to the preset rules, after the pre-fault flag is active for 500ms (pre-fault duration), if the sampled value is still 500V, the output internal total voltage out-of-range fault flag (hvsm_n_flg_PINIUOutFlt, main positive internal high voltage sampling out-of-range fault flag) will be set to 1. This fault flag will serve as the core judgment basis for subsequent voltage assignment, and at the same time, the corresponding... Figure 3 The system provides a fault warning for abnormal high voltage in the main circuit, alerting staff to check the battery pack or main circuit hardware. Upon completion of this step, the fault / pre-fault flag is output to the high voltage assignment unit B3.
[0090] S3: High voltage assignment.
[0091] Based on the fault status output by the high-voltage fault diagnosis unit B2, the high-voltage assignment unit B3 employs a tiered assignment strategy: the voltage value transmitted via the CAN bus and the voltage value calculated internally by the software are output separately. In a fault state, a value of 65535 is assigned to trigger a CAN bus alarm; in a pre-fault state, the voltage value of the previous cycle is maintained to ensure communication stability; in a normal state, the calibrated standardized signal is used as the assignment result. For hardware architectures without external total voltage sampling points, the external total voltage is dynamically derived from the real-time status of the main positive, main negative, and pre-charge relays, thus adapting to various BMS hardware requirements. After assignment, the voltage data is transmitted to the over / under voltage and open-circuit fault diagnosis unit B4.
[0092] S3 primarily judges the acquired voltage and sends the voltage for internal use and to the CAN bus. Specifically, the high-voltage voltage assignment unit B3 receives the fault flag bit output by the high-voltage fault diagnosis unit B2 and assigns it accordingly. Figure 4 The complete branch logic shown executes hierarchical assignment, and at the same time, it combines the relay state derivation of the external total voltage in this embodiment (generalized logic, adapted to hardware architectures without external total voltage sampling points). The specific process is as follows:
[0093] ① Fault status judgment: For example, if the internal total pressure exceeds the range fault flag bit (hvsm_n_flg_PINIUOutFlt, main positive inner high pressure sampling out-of-range fault flag bit) = 1, the corresponding... Figure 4 In the "judge1 [any fault flag bit = 1?]" branch, the CAN transmission internal total voltage (hvsm_n_V_posInsdNegInsdU, the high voltage value of CAN transmission from the main positive inner side to the main negative inner side) and the software internal total voltage (hvsm_n_V_posInsdNegInsdImtU, the real-time high voltage value from the main positive inner side to the main negative inner side) are both assigned a value of 65535 (invalid threshold) for CAN bus fault alarm. Figure 4 The value “res1[Assignment: CAN voltage = 65535 Internal voltage = 65535, Purpose: Fault alarm (invalid value)]” provides logical support for the protection action of the main circuit relay.
[0094] ② Dynamic derivation of external total pressure: In this embodiment, the BMS hardware architecture does not have external total pressure sampling points (general adaptation scenario), therefore, according to... Figure 4The branch logic of "Normal State Processing - External Total Pressure (No Sampling Point)" is executed. It determines the status of the main negative relay (hvsm_n_flg_negRlySts=1) as closed. If the main negative / precharge relay is closed, the external total pressure (hvsm_n_V_posOutdNegOutdU, hvsm_n_V_posOutdNegOutdImtU, external total pressure CAN transmission value, external total pressure real-time value) is assigned a value of 65535 following the internal total pressure, which is adapted to the hardware architecture without an external total pressure sampling sensor.
[0095] ③ Other relay voltage assignments: Other circuits (fast charging, heating, etc., corresponding to...) Figure 3 The assignment logic for each branch circuit is the same as the total internal voltage, according to... Figure 4 The "normal loop" assignment logic assigns a calibrated, standardized signal, but due to an internal total pressure fault, it is synchronously marked as invalid to prevent abnormal signals from flowing into the upper-level control and ensure... Figure 3 The safe operation of each branch circuit.
[0096] After the assignment is completed, the high voltage assignment unit B3 outputs the CAN transmission voltage and the internal software voltage to the over / under voltage and open circuit fault diagnosis unit B4, realizing the coordinated linkage between voltage assignment and subsequent diagnosis, and adapting to the general voltage output requirements of BMS software.
[0097] S4: Over / under voltage and open circuit fault diagnosis.
[0098] The over / under voltage and open circuit fault diagnosis unit B4, under the premise of "general fault diagnosis enabled at 1 and the total internal voltage of the software being less than 65534", performs a three-level over / under voltage diagnosis on the total battery pack voltage after ruling out fault conditions. Its threshold is linked to the lowest individual cell temperature to avoid misjudgments under low-temperature conditions. Simultaneously, it performs high-voltage open circuit diagnosis to further investigate serious safety hazards and facilitates correlation analysis of the impact caused by relay abnormalities in each branch circuit. After the diagnosis is completed, the fault flag is output to the output signal processing unit B5.
[0099] Specifically, the over / under voltage and open circuit fault diagnosis unit B4 receives the internal total voltage output from the high voltage assignment unit B3 and performs a dual diagnostic process:
[0100] First, determine the diagnostic prerequisites: "General fault diagnosis is enabled at 1 and the total internal voltage of the software is <65534" (65534 is the threshold for open circuit and level 3 over / under voltage fault diagnosis).
[0101] Overvoltage fault diagnosis approach: Enable fault diagnosis for battery pack total voltage too high at levels 1, 2, and 3.
[0102] Overvoltage fault conditions: Determine whether hvsm_d_V_posInsdNegInsdImtU ≥ hvsm_nv_V_pckUHiLvlThr (overvoltage diagnosis voltage threshold for battery pack total voltage level 1, 2, and 3).
[0103] Overvoltage fault recovery condition: Determine whether hvsm_d_V_posInsdNegInsdImtU < hvsm_nv_V_pckUHiLvlRecThr (the recovery voltage threshold for battery pack total voltage over-voltage level 1, 2, and 3 faults);
[0104] The same applies to undervoltage faults.
[0105] High-voltage circuit failure: The high-voltage circuit failure diagnosis enable is 1. If the total internal voltage is ≤ 1.5 (the high-voltage circuit failure threshold converted to the voltage of a single cell) * the number of cells in a single cluster of the battery system, then the fault is established.
[0106] If the total internal voltage of the software is 65535 ≥ 65534, the diagnostic prerequisites are not met. Therefore, the over / under voltage level 3 diagnosis and high voltage circuit breaker diagnosis are not performed, and the over / under voltage (hvsm_n_flg_pckUHiLvl1~3, hvsm_n_flg_pckULoLvl1~3, battery pack total voltage too high level 1~3 fault flags, battery pack total voltage too low level 1~3 fault flags) and high voltage circuit breaker (hvsm_n_flg_PINIUDiscFlt, main positive inner high voltage sampling circuit breaker fault flag) fault flags are not output. Figure 3 The main circuit is already in a fault state, so there is no need to repeat the diagnostic actions.
[0107] The core function of S4 is to eliminate invalid diagnoses under fault conditions, avoid repeated alarms, and ensure the accuracy of fault diagnosis. After processing, it outputs the "no fault flag" signal to the output signal processing unit B5, while providing logical support for subsequent fault alarms and hardware control.
[0108] S5: Output signal processing.
[0109] The output signal processing unit B5 receives the voltage value output by the high voltage assignment unit B3 and the fault flag bit output by the over / under voltage and open circuit fault diagnosis unit B4, converts the internal signals into standardized display quantities, and then outputs them to the CAN bus and BMS, thereby achieving closed-loop control of high voltage acquisition. No logic loss occurs during signal transmission; only format adaptation is performed to ensure that the output signal conforms to the interface definition and communication specifications specified by the BMS software, thereby supporting the normal operation of the upper-level control logic.
[0110] Specifically, the output signal processing unit B5 receives the 65535 voltage value output by the high voltage assignment unit B3, and the no over / under voltage and open circuit fault flags output by the over / under voltage and open circuit fault diagnosis unit B4. Simultaneously, it receives the internal total voltage out-of-range fault flag output by the high voltage fault diagnosis unit B2, thus realizing software logic control over hardware.
[0111] ① Signal format conversion: Convert the voltage value and internal total voltage out-of-range fault flag of the 65535 into standardized display values, and output them to the CAN bus transmission signal C1, fault alarm signal C2, and internal software signal C3 to remind the BMS upper-level system and personnel to check for potential internal total voltage out-of-range issues (corresponding to...). Figure 3 (High voltage abnormality in the main circuit) The internal signals of the software are used for subsequent fault investigation and tracing.
[0112] ② Closed-loop control: The output internal total voltage sampling switch control signal (hvsm_d_flg_PINI1MosEn, enable signal for the main positive internal high voltage sampling MOS transistor) is in the ON state, facilitating continuous acquisition of signals from the main circuit sampling sensor during subsequent fault diagnosis to monitor fault changes. Simultaneously, a relay control signal is output, ready to trigger. Figure 3 The disconnection action of the main positive and main negative relays achieves high-voltage protection.
[0113] Meanwhile, the output signal processing unit B5 outputs a feedback signal to the input signal processing unit B1, providing a basis for the acquisition and processing of the input signal in the next cycle (after 10ms), forming a closed-loop process, ensuring the continuous operation of the HVSM component, adapting to the real-time control requirements of the BMS software, completing the product deployment of the entire implementation process, and all logic is of general design, which can be directly reused in other BMS software projects.
[0114] The following is a fault recovery verification:
[0115] After troubleshooting (in this embodiment, the high-voltage sampling voltage between the main positive inner side and the main negative inner side is adjusted to the normal range of 350V, corresponding to...), Figure 3 Troubleshooting high-voltage anomalies in the main circuit (e.g., restoring battery pack voltage to normal or completing main circuit fault diagnosis). Figure 1 The closed-loop process repeats the above implementation steps, and the verification process conforms to the general fault recovery process of BMS software. The specific process is as follows:
[0116] S1: Input signal processing unit B1 receives the adjusted high-voltage sampling voltage (imi_d_V_posInsdNegInsdU=350V) from the main positive inner side to the main negative inner side. After accuracy calibration, it outputs a standardized signal of 350V. Other input signals remain unchanged. All signals are <65535, and the invalid flag is 0. The standardized signal and status flag are output to the high-voltage fault diagnosis unit B2. Figure 3All hardware in the system is functioning normally;
[0117] S2: After receiving the signal, the high-voltage fault diagnosis unit B2 has an internal total voltage of 350V < the out-of-range fault threshold of 500V, and no pre-fault or fault flag output. It outputs a no-fault flag to the high-voltage voltage assignment unit B3 for verification. Figure 3 The high voltage of the main circuit has been restored to normal.
[0118] S3: High voltage assignment unit B3 (press) Figure 4 The logic execution assignment shown is performed without fault or pre-fault flags. Figure 4 In the "judge1-No → judge2-No → judge3-Normal State" branch, both the CAN transmission and the internal total voltage of the software are assigned a value of 350V; the external total voltage is due to the closure of the main negative relay ( Figure 4 `judge4-` is a branch, assigned a value of 350V, other loops are assigned values according to normal logic, there are no invalid association markers, and it is compatible. Figure 3 The hardware architecture has no external total pressure sampling points, while providing standardized signals for normal CAN bus communication;
[0119] S4: Over / Undervoltage and Open Circuit Fault Diagnosis Unit B4 determines the internal total voltage of the software. 350V < 65534, meeting the diagnostic prerequisites. 350V is within the normal over / undervoltage threshold range. No fault flag output is detected. Verification. Figure 3 There are no over / under voltage or open circuit faults in the main circuit.
[0120] S5: Output signal processing unit B5 outputs a normal 350V voltage value and a fault-free flag to the output layer. A fault-free alarm is triggered on the CAN bus, the sampling switch remains on, and a feedback signal is output to S1, restoring the system to normal operation. Figure 3 All hardware in the system is operating normally.
[0121] This invention enables accurate fault identification, alarming, and recovery, operates stably and reliably, meets the universal requirements of BMS software in fault recovery and management, and possesses good implementability and practicality. All implementation logic adopts a generalized design approach, and examples demonstrate its flexible adaptability to BMS software of different specifications and in different fields.
[0122] Based on the above-mentioned method for high-voltage acquisition and fault collaborative diagnosis of BMS software, the present invention also provides a system for high-voltage acquisition and fault collaborative diagnosis of BMS software.
[0123] like Figure 5As shown, a high-voltage acquisition and fault collaborative diagnosis system for BMS software includes a high-voltage acquisition management component. The high-voltage acquisition management component is decoupled into an input signal processing unit, a high-voltage fault diagnosis unit, a high-voltage assignment unit, an over / under voltage and open circuit fault diagnosis unit, and an output signal processing unit through unit decoupling.
[0124] The input signal processing unit is used to receive multiple types of input signals and perform precision calibration, validity judgment, and relay state transition processing to obtain standardized signals; wherein, the multiple types of input signals cover all key high-voltage signals and control signals of the BMS software; the validity judgment is based on an invalid threshold.
[0125] The high-voltage fault diagnosis unit is used to perform a two-level diagnosis based on pre-fault and fault on the standardized signal to obtain a high-voltage fault diagnosis result; wherein, the content of the two-level diagnosis includes invalid fault diagnosis and out-of-range fault diagnosis; the invalid fault diagnosis is based on the invalid threshold; the high-voltage fault diagnosis result includes normal state, pre-fault state, and fault state;
[0126] The high-voltage assignment unit is used to assign values to the diagnostic results using a hierarchical assignment strategy to obtain the CAN bus transmission voltage value and the software-calculated voltage value.
[0127] The over / under voltage and open circuit fault diagnosis unit is used to perform dual diagnosis of open circuit and three-level over / under voltage faults on the total voltage of the battery pack, under the premise of eliminating the fault state, and obtain over / under voltage diagnosis results and open circuit diagnosis results.
[0128] The output signal processing unit is used to convert the CAN bus transmitted voltage value, the software internal calculated voltage value, and the over / under voltage diagnosis result and open circuit diagnosis result into standardized display values and output them to the CAN bus and BMS software, and output feedback signals to the input signal processing unit.
[0129] Based on the above-mentioned method for high-voltage acquisition and fault collaborative diagnosis of BMS software, the present invention also provides a device for high-voltage acquisition and fault collaborative diagnosis of BMS software.
[0130] like Figure 6 As shown, a high-voltage acquisition and fault collaborative diagnosis device for BMS software includes a processor, a memory, and a computer program stored in the memory. When the computer program is executed by the processor, it implements the high-voltage acquisition and fault collaborative diagnosis method for BMS software as described above.
[0131] In one optional embodiment, a high-voltage acquisition and fault collaborative diagnosis device for BMS software is provided, such as... Figure 6 As shown. Figure 6The high-voltage acquisition and fault collaborative diagnosis device for BMS software shown includes a processor and a memory. The processor and memory are connected, for example, via a bus. Optionally, the high-voltage acquisition and fault collaborative diagnosis device for BMS software may further include a transceiver, which can be used for data interaction between the device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver is not limited to one unit, and the structure of this high-voltage acquisition and fault collaborative diagnosis device for BMS software does not constitute a limitation on the embodiments of the present invention.
[0132] The processor can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), a PLC (Programmable Logic Controller), a FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0133] A bus can include a pathway for transmitting information between the aforementioned components. The bus can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0134] The memory may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited to these.
[0135] The memory stores application code (computer program) that executes the present invention, and its execution is controlled by a processor. The processor executes the application code stored in the memory to implement the content shown in the foregoing method embodiments.
[0136] Among them, the high voltage acquisition and fault collaborative diagnosis device of BMS software can also be a terminal device. The terminal device can be any device that can install applications, including at least one of smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, smart TVs, and smart in-vehicle devices.
[0137] It should be noted that, Figure 6 The high-voltage acquisition and fault collaborative diagnosis device of the BMS software shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0138] This invention provides a method, system, and apparatus for high-voltage data acquisition and collaborative fault diagnosis using BMS software, which, compared to existing technologies, offers the following specific advantages:
[0139] End-to-end collaboration solves the fragmentation problem: A closed-loop architecture of "acquisition—fault diagnosis—assignment—undervoltage / overvoltage and circuit breaker diagnosis—output" is constructed, with five functional units each performing their respective functions and deeply interconnected. Signal processing and fault diagnosis are carried out simultaneously, reducing fault response time by over 50%, thus overcoming the shortcomings of traditional modular function mixing and response lag. High-voltage acquisition circuit ( Figure 2 The hardware acquisition and software processing are also combined, enabling the BMS software to meet the general needs of complex multi-loop monitoring.
[0140] Precise hierarchical control reduces the false fault rate: An innovative two-level diagnostic mechanism, "pre-fault - fault," is proposed to provide early warning of potential hazards and avoid false triggering of strong protection actions. The three-level threshold design for over / under voltage, linked to temperature, adapts to the BMS software's operational requirements under all battery conditions, significantly reducing the false fault rate and balancing battery safety and lifespan. Standardized invalid thresholds are adopted, unifying the signal validity judgment logic and further reducing the risk of misjudgment.
[0141] Universal adaptability and strong scenario compatibility: The system features a specially designed dynamic external total pressure assignment logic, deriving the external total pressure by combining the main positive, main negative, and pre-charge relay states, thus addressing the technical pain point of some BMS hardware architectures lacking external total pressure sampling points. In multi-loop scenarios, such as fast charging compatibility and parallel heating and water cooling, the standardized logic can be directly reused in BMS software configurations of different specifications, adapting to the application needs of BMS software in multiple fields, including new energy vehicles. BMS software interface definitions and signal naming conventions are also aligned. Therefore, this logic demonstrates strong reusability and adaptability.
[0142] The modular design features low coupling, excellent reusability and maintainability: With strict adherence to the design constraints of BMS software components, modifications to a single function—such as signal accuracy calibration or fault threshold adjustment—require no changes to the overall module, improving development and maintenance efficiency by up to 80%. Matlab Simulink modeling and automatic code generation are directly adaptable, aligning with the mass production development process of BMS software. BMS software projects on different hardware architectures can also be quickly ported, reducing development costs and meeting the needs for generalized and standardized BMS software development. Therefore, examples demonstrate the good adaptability of this design in engineering practice.
[0143] Stable voltage assignment ensures reliable bus communication: To avoid signal abrupt changes under fault conditions, a tiered assignment strategy is adopted, suppressing CAN bus (Controller Area Network) fluctuations and thus ensuring the stability of communication between BMS components. Internal and external total voltages are assigned separately, adapting software calculation requirements to bus transmission requirements, thereby improving the overall control accuracy of the BMS. The UDS (Unified Diagnostic Services) 0x14 service fault clearing logic is also compatible, aligning with the general fault management process of the BMS software.
[0144] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for high-voltage data acquisition and fault collaborative diagnosis using BMS software, characterized in that, include: S1 receives multiple types of input signals and performs precision calibration, validity judgment, and relay state transition processing to obtain standardized signals. Among them, the multiple types of input signals cover all key high-voltage signals and control signals of the BMS software; the validity judgment is based on the invalid threshold. S2, perform a two-level diagnosis based on pre-fault and fault on the standardized signal to obtain a high-voltage fault diagnosis result; wherein, the content of the two-level diagnosis includes invalid fault diagnosis and out-of-range fault diagnosis; the invalid fault diagnosis is based on the invalid threshold; the high-voltage fault diagnosis result includes normal state, pre-fault state, and fault state; S3, the diagnostic results are assigned values using a hierarchical assignment strategy to obtain the CAN bus transmission voltage value and the software internal calculation voltage value; S4, under the premise of eliminating the fault condition, perform dual diagnosis of the total voltage of the battery pack for open circuit and three-level over- and under-voltage faults, and obtain the over- and under-voltage diagnosis results and open circuit diagnosis results. S5 converts the CAN bus transmitted voltage value, the software-calculated voltage value, and the over / under voltage diagnosis results and open circuit diagnosis results into standardized display values, and outputs them to the CAN bus and BMS software, and outputs feedback signals to S1.
2. The high-voltage acquisition and fault collaborative diagnosis method of BMS software according to claim 1, characterized in that, In S1, The formula for precision calibration is: Normalized signal = round(sampling resolution of input signal * input signal / sampling resolution of input signal); where round is the rounding function; The validity determination process is as follows: determine whether the input signal is less than the invalid threshold; if so, the input signal is determined to be valid; otherwise, the input signal is determined to be invalid. The input signal includes the relay state. The relay state transition process is as follows: if the relay state is closed, the relay state is converted to a Boolean value of 1.
3. The high-voltage acquisition and fault collaborative diagnosis method of BMS software according to claim 1, characterized in that, In S2, The invalid fault diagnosis specifically involves determining whether all standardized signals are less than the invalid threshold. If so, it is determined that no invalid pre-fault or invalid fault has occurred. The out-of-range fault diagnosis specifically involves determining whether the standardized signal is greater than or equal to the out-of-range fault threshold. If so, an out-of-range fault is determined to have occurred.
4. The high-voltage acquisition and fault collaborative diagnosis method of BMS software according to claim 3, characterized in that, The out-of-range fault threshold is equal to the number of cells in a single cluster of the battery system multiplied by the voltage of the single cell calculated from the out-of-range high-voltage sampling.
5. The high-voltage acquisition and fault collaborative diagnosis method of BMS software according to claim 3, characterized in that, When the standardized signal is greater than or equal to the out-of-range fault threshold, the high-voltage fault diagnosis result is a pre-fault state, and the standardized signal out-of-range pre-fault flag is output as 1; otherwise, the high-voltage fault diagnosis result is a normal state, and the standardized signal out-of-range pre-fault flag is output as 0. If the standardized signal out-of-range pre-fault flag is 1 and the standardized signal is still greater than or equal to the out-of-range fault threshold after the duration of the pre-fault, the high-voltage fault diagnosis result is a fault state, and the standardized signal out-of-range fault flag is output as 1; otherwise, the high-voltage fault diagnosis result is not a fault state, and the standardized signal out-of-range fault flag is output as 0.
6. The high-voltage acquisition and fault collaborative diagnosis method of BMS software according to claim 5, characterized in that, Specifically, S3 is: S31, determine whether the standardized signal out-of-range fault flag bit is equal to 1. If yes, assign the CAN bus transmission voltage and the software internal calculation voltage to the invalid threshold. If no, execute S32. S32, determine whether the standardized signal out-of-range pre-fault flag bit is equal to 1. If yes, maintain the CAN bus transmission voltage and the internally calculated voltage of the software at the value of the previous cycle; if no, execute S33. S33: Determine whether there is an external total voltage sampling point in the BMS hardware architecture. If so, assign values to the CAN bus transmission voltage and the internally calculated voltage using the calibrated standardized signal. If not, dynamically assign values to the CAN bus transmission voltage and the internally calculated voltage based on the real-time status of the relay.
7. The high-voltage acquisition and fault collaborative diagnosis method of BMS software according to claim 1, characterized in that, In S4, the condition for performing dual diagnosis of open circuit and level 3 over / under voltage faults is: under the premise of eliminating the fault state, the voltage calculated by the software is less than the diagnostic threshold for open circuit and level 3 over / under voltage faults; wherein, the diagnostic threshold for open circuit and level 3 over / under voltage faults is less than the invalid threshold.
8. The high-voltage acquisition and fault collaborative diagnosis method of BMS software according to claim 1, characterized in that, In S4, the three-level threshold for the three-level over- and under-voltage fault diagnosis is linked to the lowest battery pack cell temperature; the threshold for the open-circuit fault diagnosis is equal to 1.5V multiplied by the number of cells in a single battery cluster in the battery system.
9. A high-voltage acquisition and fault collaborative diagnosis system based on BMS software, characterized in that, It includes a high-voltage acquisition and management component, which is decoupled into an input signal processing unit, a high-voltage fault diagnosis unit, a high-voltage voltage assignment unit, an over / under voltage and open circuit fault diagnosis unit, and an output signal processing unit through unit decoupling; The input signal processing unit is used to receive multiple types of input signals and perform precision calibration, validity judgment, and relay state transition processing to obtain standardized signals; wherein, the multiple types of input signals cover all key high-voltage signals and control signals of the BMS software; the validity judgment is based on an invalid threshold. The high-voltage fault diagnosis unit is used to perform a two-level diagnosis based on pre-fault and fault on the standardized signal to obtain a high-voltage fault diagnosis result; wherein, the content of the two-level diagnosis includes invalid fault diagnosis and out-of-range fault diagnosis; the invalid fault diagnosis is based on the invalid threshold; the high-voltage fault diagnosis result includes normal state, pre-fault state, and fault state; The high-voltage assignment unit is used to assign values to the diagnostic results using a hierarchical assignment strategy to obtain the CAN bus transmission voltage value and the software-calculated voltage value. The over / under voltage and open circuit fault diagnosis unit is used to perform dual diagnosis of open circuit and three-level over / under voltage faults on the total voltage of the battery pack, under the premise of eliminating the fault state, and obtain over / under voltage diagnosis results and open circuit diagnosis results. The output signal processing unit is used to convert the CAN bus transmitted voltage value, the software internal calculated voltage value, and the over / under voltage diagnosis result and open circuit diagnosis result into standardized display values and output them to the CAN bus and BMS software, and output feedback signals to the input signal processing unit.
10. A high-voltage acquisition and fault collaborative diagnosis device for BMS software, characterized in that, It includes a processor, a memory, and a computer program stored in the memory. When the computer program is executed by the processor, it implements the high-voltage acquisition and fault collaborative diagnosis method of BMS software as described in any one of claims 1 to 8.