Battery management system hardware-in-loop test method, device, equipment and medium

By using the real cell voltage and temperature of the battery pack in the battery management system hardware-in-the-loop test, the problem of inaccurate battery simulation model simulation is solved and the test accuracy is improved.

CN118689196AActive Publication Date: 2024-09-24DONGFENG MOTOR GRP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410719800.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-24
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

In the existing battery management system hardware-in-the-loop test, the cell voltage and cell temperature simulated by the battery simulation model cannot truly reflect the status of the battery pack, resulting in low test accuracy.

Method used

By obtaining the real cell voltage and cell temperature of the battery pack during the charge and discharge test, and processing them, the test cell voltage and test cell temperature suitable for hardware-in-the-loop testing are generated and input into the battery management system. test.

Benefits of technology

The test error is reduced, the test accuracy is improved, and the test results more accurately simulate the real state of the battery pack.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689196A
    Figure CN118689196A
Patent Text Reader

Abstract

The invention discloses a battery management system hardware-in-the-loop test method, device and equipment and a medium, and belongs to the technical field of vehicles. The method comprises the following steps: acquiring a monomer voltage and a monomer temperature of a battery pack in a charge-discharge test; processing the monomer voltage and the monomer temperature to generate a test monomer voltage and a test monomer temperature for hardware-in-loop test; and inputting the test monomer voltage and the test monomer temperature into the battery management system to carry out the hardware-in-the-loop test. According to the method, real monomer voltage and monomer temperature obtained in a battery pack charging and discharging test can be processed to obtain test monomer voltage and test monomer temperature suitable for hardware-in-loop test, and the test monomer voltage and the test monomer temperature are input into a battery management system for hardware-in-loop test. The test error is reduced, and the test precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a battery management system hardware-in-the-loop testing method, device, equipment and medium. Background Art

[0002] HIL (Hardware-in-the-Loop) is a hardware-in-the-loop simulation test system that uses a real-time processor to run a simulation model to simulate the operating state of the controlled object, connects to the ECU (Electronic Control Unit) under test through an I / O interface, and performs comprehensive and systematic tests on the ECU under test. Considering safety, feasibility and reasonable cost, HIL hardware-in-the-loop simulation testing has become a very important part of the ECU development process, reducing the number of real vehicle road tests, shortening development time and reducing costs, while improving the software quality of the ECU and reducing the risks of automobile manufacturers.

[0003] In the related art, when conducting BMS (Battery Management System) HIL testing, the battery simulation model is combined with the HIL cabinet hardware board to input the battery's single cell voltage, single cell temperature and other signals into the controller of the BMS to be tested to simulate the real battery's single cell voltage and single cell temperature and other signals.

[0004] However, the above-mentioned battery simulation model generally uses an equivalent circuit model to simulate the external characteristics of the battery pack, and then calculates the single cell voltage and single cell temperature of the battery. It can be seen that the single cell voltage and single cell temperature accepted by the controller of the BMS to be tested are calculated by the battery simulation model, which cannot truly reflect the actual single cell voltage and single cell temperature of the battery pack, resulting in low test accuracy. Summary of the invention

[0005] In view of the above problems, the present invention is proposed to provide a battery management system hardware-in-the-loop testing method, device, equipment and medium that solve the above problems. The actual cell voltage and cell temperature obtained in the battery pack charge and discharge test can be processed to obtain a test cell voltage and test cell temperature suitable for hardware-in-the-loop testing. The test cell voltage and test cell temperature are input into the battery management system for hardware-in-the-loop testing, thereby reducing the test error and improving the test accuracy.

[0006] In a first aspect, the present invention provides a battery management system hardware-in-the-loop testing method, the method comprising:

[0007] Obtain the cell voltage and cell temperature of the battery pack during the charge and discharge test;

[0008] Processing the cell voltage and the cell temperature to generate a test cell voltage and a test cell temperature for hardware-in-the-loop testing;

[0009] The test cell voltage and the test cell temperature are input into the battery management system to perform the hardware-in-the-loop test.

[0010] Optionally, before obtaining the cell voltage and cell temperature of the battery pack in the charge and discharge test, the method further includes:

[0011] The battery pack is placed under different working conditions, the battery pack is controlled to perform charge and discharge tests at different charge and discharge rates, and sampling is performed at different charge and discharge times to obtain the single cell voltage and single cell temperature of the battery pack at different charge and discharge times.

[0012] Optionally, the processing the cell voltage and the cell temperature to generate a test cell voltage and a test cell temperature for hardware-in-the-loop testing includes:

[0013] Selecting the maximum cell voltage, the minimum cell voltage, the maximum cell temperature and the minimum cell temperature under the same charge and discharge time from the cell voltages and the cell temperatures;

[0014] Under the same charge and discharge time, randomly generating a random cell voltage between the maximum cell voltage and the minimum cell voltage, and a random cell temperature between the maximum cell temperature and the minimum cell temperature;

[0015] According to a preset charge and discharge test strategy, the random cell voltages and the random cell temperatures at different charge and discharge times are spliced ​​respectively to obtain the test cell voltage and the test cell temperature for the hardware-in-the-loop test.

[0016] Optionally, the random cell voltages and the random cell temperatures at different charge and discharge times are spliced ​​according to a preset charge and discharge test strategy to obtain the test cell voltage and the test cell temperature for the hardware-in-the-loop test, including:

[0017] Obtaining the operating conditions in the charge and discharge test strategy, as well as the charge and discharge rate, starting power, and ending power of each charge and discharge stage;

[0018] Find all random cell voltages and random cell temperatures under the working conditions;

[0019] According to the charge and discharge rate, the starting power and the ending power of each charge and discharge stage, the random cell voltage and the random cell temperature corresponding to each charge and discharge stage are selected from all the random cell voltages and random cell temperatures;

[0020] The random cell voltage and the random cell temperature corresponding to each charge and discharge stage are respectively concatenated in sequence according to the sequence of the charge and discharge stages to obtain the test cell voltage and the test cell temperature used for the hardware-in-the-loop test.

[0021] Optionally, after inputting the test cell voltage and the test cell temperature into the battery management system for performing the hardware-in-the-loop test, the method further includes:

[0022] Acquiring simulation data output by the battery management system;

[0023] Based on the simulation data, a test result of the battery management system is determined.

[0024] Optionally, determining the test result of the battery management system based on the simulation data includes:

[0025] If the simulation data includes a first relationship curve between the open circuit voltage and the state of charge obtained by the battery management system using the SOC algorithm, then obtaining a second relationship curve between the open circuit voltage and the state of charge obtained by the battery pack charge and discharge test;

[0026] Determining a degree of fit between the first relationship curve and the second relationship curve;

[0027] If the degree of fit is greater than a preset degree of fit threshold, it is determined that the SOC algorithm test result of the battery management system is passed.

[0028] Optionally, determining the test result of the battery management system based on the simulation data includes:

[0029] If the simulation data includes a simulated state of charge, obtaining a real state of charge obtained by a charge and discharge test of the battery pack;

[0030] If the error between the simulated state of charge and the actual state of charge is less than an error threshold, it is determined that the state of charge test result of the battery management system is passed.

[0031] In a second aspect, the present invention provides a battery management system hardware-in-the-loop testing device, the device comprising:

[0032] An acquisition module is used to obtain the cell voltage and cell temperature of the battery pack during the charge and discharge test;

[0033] A generating module, used for processing the cell voltage and the cell temperature to generate a test cell voltage and a test cell temperature for hardware-in-the-loop testing;

[0034] An input module is used to input the test cell voltage and the test cell temperature into the battery management system to perform the hardware-in-the-loop test.

[0035] In a third aspect, the present invention provides an electronic device comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method described in the first aspect by executing the computer instructions.

[0036] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0037] The technical solution provided in the embodiments of the present invention has at least the following technical effects or advantages:

[0038] The embodiments of the present invention provide a battery management system hardware-in-the-loop testing method, device, equipment and medium, which obtain the cell voltage and cell temperature of a battery pack in a charge and discharge test to obtain the real cell voltage and cell temperature instead of those calculated by a model; process the cell voltage and cell temperature to generate a test cell voltage and test cell temperature for hardware-in-the-loop testing to obtain a cell voltage and cell temperature suitable for testing; input the test cell voltage and test cell temperature into a battery management system for hardware-in-the-loop testing, thereby more accurately simulating the real state of the battery pack, so that the test result has smaller error and higher accuracy.

[0039] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0041] Figure 1 is a structural block diagram of a hardware-in-the-loop test system provided by an embodiment of the present invention;

[0042] Figure 2 is a flow chart of a battery management system hardware-in-the-loop testing method provided by an embodiment of the present invention;

[0043] Figure 3 The present invention provides a battery management system hardware-in-the-loop test device. DETAILED DESCRIPTION

[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0045] Before introducing the battery management system hardware-in-the-loop testing method of the present invention in detail, a brief introduction to the implementation environment of the present invention is first given.

[0046] Figure 1 is a structural block diagram of a hardware-in-the-loop test system provided by an embodiment of the present invention, such as Figure 1 As shown, the hardware-in-the-loop test system 100 includes HIL test software 101, a battery voltage simulator 102, a battery temperature simulator 103, an insulation resistance simulator 104, an I / O board 105, a CAN communication board 106, a low-voltage power supply 107, a high-voltage power supply 108 and a BMS to be tested (i.e., a battery management system to be tested) 109.

[0047] The input ports of the battery voltage simulator 102, the battery temperature simulator 103, the insulation resistance simulator 104, the I / O board 105, the CAN communication board 106, the low-voltage power supply 107, and the high-voltage power supply 108 are connected to the output ports of the HIL test software 101, and their output ports are connected to the input port of the BMS 109 to be tested; the output port of the BMS 109 to be tested is connected to the input port of the CAN communication board 106, and the output port of the CAN communication board 106 is connected to the input port of the HIL test software 101.

[0048] When performing hardware-in-the-loop testing, the HIL test software 101 is used to output the test cell voltage and test cell temperature, as well as the insulation value and total voltage of the battery pack; the battery voltage simulator 102 is used to convert the test cell voltage output by the HIL test software 101 into a real voltage and send it to the BMS 109 to be tested, the battery temperature simulator 103 is used to convert the test cell temperature output by the HIL test software into a real temperature and send it to the BMS 109 to be tested, the insulation resistance simulator 104 is used to convert the insulation value output by the HIL test software 101 into a real insulation value and send it to the BMS 109 to be tested, and the high-voltage power supply 108 is used to convert the total voltage output by the HIL test software 101 into a real The actual total voltage is sent to the BMS109 to be tested, the low-voltage power supply 107 is used to provide power for each hardware device, the I / O board 105 is used to output the voltage value representing the battery output current according to the initial charge and discharge rate (or current) and send it to the BMS109 to be tested, the BMS109 to be tested is used to convert the received test cell voltage, test cell temperature, total voltage, insulation value according to the preset battery management system algorithm to obtain the real-time SOC and other simulation data of the battery, the CAN communication board 106 is used to send the simulation data output by the BMS109 to the HIL test software 101, and the HIL test software 101 is used to analyze the test results according to the received simulation data.

[0049] Next, the battery management system hardware-in-the-loop testing method of the present invention is described in detail with reference to the accompanying drawings.

[0050] Figure 2 is a flowchart of a battery management system hardware-in-the-loop testing method provided by an embodiment of the present invention, such as Figure 2 As shown, the method includes:

[0051] Step S210: Obtaining the cell voltage and cell temperature of the battery pack during the charge and discharge test.

[0052] In this embodiment, when the battery management system hardware-in-the-loop test was performed in the past, the single cell voltage and single cell temperature input to the battery management system were values ​​calculated by the equivalent circuit model. Although the accuracy of the model is constantly improving, it is difficult for the model to model the physical and chemical changes that occur in the battery under different operating conditions. Therefore, the calculated single cell voltage and single cell temperature have a certain error from the actual single cell voltage and single cell temperature of the battery, resulting in errors in the hardware-in-the-loop test results. The battery management system is the key link between the entire vehicle system, motor and battery pack. The integrity and accuracy of its functions will directly affect the safety, energy consumption and service life of the entire vehicle. Therefore, it is very necessary to improve the accuracy of the battery management system hardware-in-the-loop test.

[0053] Therefore, in this application, by conducting a real charge and discharge test on the battery pack, collecting the real single cell voltage and single cell temperature of the battery pack during the test, and using the real single cell voltage and single cell temperature to conduct a hardware-in-the-loop test of the battery management system, the test error can be reduced and the test accuracy can be improved.

[0054] Optionally, before step S210, the method includes:

[0055] The battery pack is placed under different working conditions, the battery pack is controlled to perform charge and discharge tests at different charge and discharge rates, and samples are taken at different charge and discharge times to obtain the single cell voltage and single cell temperature of the battery pack at different charge and discharge times.

[0056] In this embodiment, in order to simulate the different working conditions of the battery pack in the actual vehicle, the battery pack is placed under different working conditions for charge and discharge tests, and the reaction inside the battery pack will be different under different charge and discharge rates. Therefore, during the test, the battery pack should also be controlled to perform charge and discharge tests at different charge and discharge rates, and then the cell voltage and cell temperature are sampled once every period of time during the charge and discharge process, and the charge and discharge time is different for each sampling. Finally, the cell voltage and cell temperature that change with the change of charge and discharge time under different working conditions and different charge and discharge rates can be obtained. Among them, the cell voltage includes the initial cell voltage and initial cell temperature when the charge and discharge time is 0, that is, there is an initial cell voltage and initial cell temperature under different working conditions.

[0057] The operating conditions refer to the test conditions of the battery pack, which may include ambient temperature and / or ambient humidity, that is, the battery pack is placed under different ambient temperatures and / or different ambient humidity conditions to perform charge and discharge tests.

[0058] In this embodiment, multiple charge and discharge tests can be performed under the same working condition and the same charge and discharge rate to obtain multiple groups of cell voltages and cell temperatures under the same working condition and the same charge and discharge rate. Multiple groups of cell voltages and cell temperatures under the same working condition and the same charge and discharge rate are recorded in a table to obtain multiple data tables. Multiple data tables constitute a data matrix. The data matrices under all working conditions and all charge and discharge rates are stored in a database, so that the database stores cell voltages and cell temperatures that change with charge and discharge time under different working conditions and different charge and discharge rates, and then the database is arranged in the HIL test software. Among them, the format of the table can adopt Matlab's m file or Simulink Database's five-dimensional array.

[0059] It should be noted that in the charge and discharge test, the more tests are performed and the shorter the sampling interval is, the larger and more detailed the data obtained will be, and the more accurate the test results will be.

[0060] Step S220: Process the cell voltage and the cell temperature to generate a test cell voltage and a test cell temperature for hardware-in-the-loop testing.

[0061] In this embodiment, the cell voltage and cell temperature obtained from the charge and discharge test are obtained from the database, and the cell voltage and cell temperature are processed by the HIL test software to generate a test cell voltage and test cell temperature suitable for hardware-in-the-loop testing, so that the test results are more accurate.

[0062] Optionally, step S220 includes:

[0063] The first step is to select the maximum cell voltage, minimum cell voltage, maximum cell temperature and minimum cell temperature under the same charge and discharge time from the cell voltage and cell temperature.

[0064] In the present embodiment, multiple charge and discharge tests are carried out under the same operating condition and the same charge and discharge rate. Different single cells may be tested in the multiple tests. Therefore, there may be slight differences between the multiple single cell voltages and the multiple single cell temperatures obtained under the same operating condition, the same charge and discharge rate and the same charge and discharge time. Moreover, even for the same single cell, there may be slight differences between the single cell voltages and the single cell temperatures measured in each test. Therefore, the maximum single cell voltage, the minimum single cell voltage, the maximum single cell temperature and the minimum single cell temperature under the same operating condition, the same charge and discharge rate and each charge and discharge time are screened out to ensure that the test single cell voltage under the same operating condition, the same charge and discharge rate and the same charge and discharge time is between the maximum single cell voltage and the minimum single cell voltage, and the test single cell temperature is between the maximum single cell temperature and the minimum single cell temperature in subsequent tests, so as to make the test more accurate.

[0065] The second step is to randomly generate a random cell voltage between the maximum cell voltage and the minimum cell voltage, and a random cell temperature between the maximum cell temperature and the minimum cell temperature at the same charge and discharge time.

[0066] In this embodiment, in order to ensure that the test cell voltage is between the maximum cell voltage and the minimum cell voltage at the corresponding charge and discharge time, and the test cell temperature is between the maximum cell temperature and the minimum cell temperature at the corresponding charge and discharge time, a cell voltage can be randomly generated between the maximum cell voltage and the minimum cell voltage at each charge and discharge time as the random cell voltage at the charge and discharge time. Similarly, a cell temperature can be randomly generated between the maximum cell temperature and the minimum cell temperature at each charge and discharge time as the random cell temperature at the charge and discharge time. Finally, the random cell voltage and random cell temperature corresponding to each charge and discharge time under different working conditions and different overcharge rates are obtained.

[0067] The third step is to splice the random cell voltages and random cell temperatures at different charge and discharge times according to the preset charge and discharge test strategy to obtain the test cell voltage and test cell temperature.

[0068] In this embodiment, the HIL test mainly includes test items such as upper and lower high voltage, fast charging and slow charging, insulation detection, fault diagnosis, state of charge and SOC algorithm. Among them, the test items that need to input the test cell voltage and test cell temperature to the battery management system include state of charge and SOC algorithm. When testing the state of charge and SOC algorithm, there are different corresponding charge and discharge test strategies, and each charge and discharge test strategy may have different requirements for operating conditions and charge and discharge rates.

[0069] Optionally, the third step includes:

[0070] Obtain the working conditions in the charge and discharge test strategy, as well as the charge and discharge rate, starting power and ending power of each charge and discharge stage; find all random cell voltages and random cell temperatures under the working conditions; select the random cell voltage and random cell temperature corresponding to each charge and discharge stage from all random cell voltages and random cell temperatures according to the charge and discharge rate, starting power and ending power of each charge and discharge stage; respectively, concatenate the random cell voltage and random cell temperature corresponding to each charge and discharge stage in the order of the charge and discharge stages to obtain the test cell voltage and test cell temperature.

[0071] In this embodiment, the operating conditions and charge and discharge rates required in the charge and discharge test strategy are first understood. In order to truly simulate the charge and discharge process of the battery pack, the charge and discharge process is generally divided into several charge and discharge stages. For example, the charge and discharge stages include the early charge and discharge, the middle charge and discharge, the middle and late charge and discharge, and the charge and discharge rates and the amount of charge and discharge used in each stage are different.

[0072] Then, find the random cell voltages and random cell temperatures corresponding to all charge and discharge rates under the working conditions required in the charge and discharge test strategy. Then find the corresponding random cell voltages and random cell temperatures according to the requirements of the charge and discharge rate and charge and discharge quantity in each charge and discharge stage. Then, concatenate the random cell voltages and random cell temperatures corresponding to all charge and discharge stages in the order of the charge and discharge stages, and obtain the random cell voltages and random cell temperatures corresponding to a completed charge and discharge process, as the final test cell voltages and test cell temperatures corresponding to the charge and discharge test strategy, for use in hardware-in-the-loop testing.

[0073] For example, a certain charging and discharging test strategy requires: using a charging rate of 0.2C to charge the battery from 0 to 30% in the early stage of charging, using a charging rate of 2C to charge the battery from 30% to 80% in the middle stage of charging, using a charging rate of 0.5C to charge the battery from 80% to 90% in the middle and late stages of charging, and using a charging rate of 0.1C to charge the battery from 90% to 100% in the late stage of charging.

[0074] Among them, when splicing the test cell voltage and the test cell temperature, first find the random cell voltage and random cell temperature during the period when the power of the single cell battery is charged from 0 to 30% at a charging rate of 0.2C, as the test cell voltage and test cell temperature corresponding to the early stage of charging, and determine the random cell voltage corresponding to 30% of the power at a charging rate of 0.2C, which is recorded as the first random cell voltage; then find the random cell voltage equal to the first random cell voltage at a charging rate of 2C, and then find the random cell voltage corresponding to 80% of the power, which is recorded as the second random cell voltage, and the first random cell voltage is recorded as the second random cell voltage. All random cell voltages and corresponding random cell temperatures between the second random cell voltage and the second random cell voltage are used as the test cell voltage and test cell temperature in the middle stage of charging; next, find the random cell voltage equal to the second random cell voltage under the charging rate of 0.5C, and then find the random cell voltage corresponding to 90% of the power, which is recorded as the third random cell voltage, and all random cell voltages and corresponding random cell temperatures between the second random cell voltage and the third random cell voltage are used as the test cell voltage and test cell temperature in the middle and late stages of charging; similarly, find the test cell voltage and test cell temperature in the late stage of charging. The test cell voltages and test cell temperatures corresponding to each charging stage are spliced ​​in the order of the charging stages to obtain the test cell voltages and test cell temperatures under the charge and discharge test strategy. Among them, the test cell voltage and the test cell temperature are recorded in the same way as the cell voltage and the cell temperature, that is, they are recorded in the time sequence from the start of charging and discharging to the end of charging and discharging, that is, they are recorded in sequence from short to long in the charging and discharging time, so as to reflect the changes of the cell voltage and the cell temperature in the whole charging and discharging process. When conducting the hardware-in-the-loop test, the test cell voltage and the test cell temperature are also input in sequence according to the change sequence of the charging and discharging time.

[0075] It should be noted that when the battery pack is charged and discharged, the change of battery power needs to be recorded, that is, the battery power and the single cell voltage are recorded correspondingly. The battery power measurement method can adopt the existing measurement method, which will not be described here.

[0076] Step S230: input the test cell voltage and the test cell temperature into the battery management system to perform hardware-in-the-loop testing.

[0077] In this embodiment, after determining the test conditions, the initial cell voltage and initial cell temperature corresponding to the conditions can be found. When conducting a hardware-in-the-loop experiment, the corresponding initial cell voltage and initial cell temperature can be first input into the battery management system, and then after the test officially starts, the test cell voltage and test cell temperature can be input into the battery management system.

[0078] The present invention uses the cell voltage and cell temperature in the database, processes them to obtain the test cell voltage and test cell temperature, replaces the cell voltage and cell temperature output by the equivalent circuit model, obtains more realistic cell voltage and cell temperature, inputs the test cell voltage and test cell temperature into the battery management system for hardware-in-the-loop testing, reduces the test error, and improves the test accuracy. Moreover, the method is simple and does not require model construction, thereby improving the operating efficiency of the HIL test software 101 and the robustness of the output data.

[0079] Optionally, after step S230, the method further includes:

[0080] Step S240: Acquire simulation data output by the battery management system.

[0081] When performing hardware-in-the-loop testing, the battery management system will use the algorithm inside the battery management system to calculate the corresponding simulation data based on the received test cell voltage, test cell temperature, insulation value and total voltage.

[0082] Step S250: Determine the test result of the battery management system based on the simulation data.

[0083] In this embodiment, the simulation data is analyzed to obtain the test results of the battery management system.

[0084] Optionally, step S250 includes:

[0085] If the simulation data includes a first relationship curve between the open circuit voltage and the state of charge calculated by the battery management system using the SOC algorithm, then a second relationship curve between the open circuit voltage and the state of charge obtained by the battery pack charge and discharge test is obtained; the degree of fit between the first relationship curve and the second relationship curve is determined; if the degree of fit is greater than a preset degree of fit threshold, then the SOC algorithm test result of the battery management system is determined to be passed.

[0086] In this embodiment, if the hardware-in-the-loop test is to verify the SOC algorithm, the simulation data will include a first relationship curve between the open circuit voltage and the charge state, which will be fitted and compared with the second relationship curve between the open circuit voltage and the charge state obtained from the battery pack charge and discharge test to obtain the degree of fit. If the degree of fit is greater than the preset degree of fit threshold, it means that the SOC algorithm is relatively accurate and the test passes; if the degree of fit is less than or equal to the degree of fit threshold, it means that the SOC algorithm has a large error and the test fails.

[0087] Optionally, step S250 further includes:

[0088] If the simulation data includes a simulated state of charge, the actual state of charge obtained from the battery pack charge and discharge test is obtained; if the error between the simulated state of charge and the actual state of charge is less than an error threshold, the state of charge test result of the battery management system is determined to be passed.

[0089] In this embodiment, if the hardware-in-the-loop test is to verify the state of charge, the simulation data will include a simulated state of charge, and then the simulated state of charge is compared with the actual state of charge. If the error between them is large, it means that the state of charge output by the battery management system is unstable and the test fails; if the error is small, it means that the state of charge output by the battery management system is relatively stable and the test passes.

[0090] It should be noted that when recording the battery power in the battery pack charge and discharge test, the battery power can also be converted into a charge state for recording.

[0091] Based on the same inventive concept, an embodiment of the present invention further provides a battery management system hardware-in-the-loop testing device, Figure 3 is a structural block diagram of a battery management system hardware-in-the-loop test device provided by an embodiment of the present invention, such as Figure 3 As shown, the device 300 includes an acquisition module 301 , a generation module 302 and an input module 303 .

[0092] An acquisition module 301 is used to acquire a single cell voltage and a single cell temperature of a battery pack during a charge and discharge test;

[0093] A generating module 302, for processing the cell voltage and the cell temperature to generate a test cell voltage and a test cell temperature for hardware-in-the-loop testing;

[0094] The input module 303 is used to input the test cell voltage and the test cell temperature into the battery management system to perform hardware-in-the-loop testing.

[0095] Optionally, the device 300 further includes:

[0096] The control module is used to place the battery pack under different working conditions, control the battery pack to perform charge and discharge tests at different charge and discharge rates, and perform sampling at different charge and discharge times to obtain the single cell voltage and single cell temperature of the battery pack at different charge and discharge times.

[0097] Optionally, the generating module 302 includes:

[0098] A screening unit, used for screening the maximum cell voltage, the minimum cell voltage, the maximum cell temperature and the minimum cell temperature under the same charge and discharge time from the cell voltage and the cell temperature;

[0099] A generating unit, used for randomly generating a random cell voltage between a maximum cell voltage and a minimum cell voltage, and a random cell temperature between a maximum cell temperature and a minimum cell temperature at the same charge and discharge time;

[0100] The splicing unit is used to splice the random cell voltages and random cell temperatures at different charge and discharge times according to a preset charge and discharge test strategy, so as to obtain the test cell voltage and test cell temperature for hardware-in-the-loop testing.

[0101] Optionally, the splicing unit is also used for:

[0102] Obtain the operating conditions in the charge and discharge test strategy, as well as the charge and discharge rate, starting power, and ending power of each charge and discharge stage;

[0103] Find all random cell voltages and random cell temperatures under the working conditions;

[0104] According to the charge and discharge rate, the starting power and the ending power of each charge and discharge stage, the random cell voltage and the random cell temperature corresponding to each charge and discharge stage are selected from all the random cell voltages and the random cell temperatures;

[0105] The random cell voltage and random cell temperature corresponding to each charge and discharge stage are concatenated in sequence according to the sequence of the charge and discharge stages to obtain the test cell voltage and test cell temperature for hardware-in-the-loop testing.

[0106] Optionally, the apparatus 300 further includes a determining module, configured to:

[0107] Get the simulation data output by the battery management system;

[0108] Based on the simulation data, the test results of the battery management system are determined.

[0109] Optionally, the determination module is further configured to:

[0110] If the simulation data includes a first relationship curve between the open circuit voltage and the state of charge obtained by the battery management system using the SOC algorithm, then obtaining a second relationship curve between the open circuit voltage and the state of charge obtained by the battery pack charge and discharge test;

[0111] Determining a fit between the first relationship curve and the second relationship curve;

[0112] If the degree of fit is greater than a preset degree of fit threshold, it is determined that the SOC algorithm test result of the battery management system is passed.

[0113] Optionally, the determination module is further configured to:

[0114] If the simulation data includes a simulated state of charge, then the actual state of charge obtained by the battery pack charge and discharge test is obtained;

[0115] If the error between the simulated state of charge and the actual state of charge is less than the error threshold, it is determined that the state of charge test result of the battery management system is passed.

[0116] It can be understood that the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0117] An embodiment of the present invention further provides an electronic device, which may include a processor and a memory, wherein the processor and the memory may be communicatively connected to each other via a bus or other means.

[0118] The processor may be a central processing unit (CPU) or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0119] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the electronic device. In a particular embodiment, the memory may be a non-volatile solid-state memory.

[0120] In one example, the memory may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0121] The processor implements any one of the battery management system hardware-in-the-loop testing methods in the above embodiments by reading and executing computer program instructions stored in the memory.

[0122] In one example, the electronic device may further include a communication interface and a bus. Among them, the processor, memory, and communication interface are connected through a bus and communicate with each other. The communication interface is mainly used to realize the communication between the modules, devices, units and / or devices in the embodiment of the present application. Where appropriate, the bus may include one or more buses.

[0123] In addition, in combination with the battery management system hardware-in-the-loop test method in the above embodiment, the embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the battery management system hardware-in-the-loop test methods in the above embodiment is implemented.

[0124] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:

[0125] The embodiments of the present invention provide a battery management system hardware-in-the-loop testing method, device, equipment and medium, which obtain the cell voltage and cell temperature of a battery pack in a charge and discharge test to obtain the real cell voltage and cell temperature instead of those calculated by a model; process the cell voltage and cell temperature to generate a test cell voltage and test cell temperature for hardware-in-the-loop testing to obtain a cell voltage and cell temperature suitable for testing; input the test cell voltage and test cell temperature into a battery management system for hardware-in-the-loop testing, thereby more accurately simulating the real state of the battery pack, so that the test result has smaller error and higher accuracy.

[0126] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0127] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0128] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "one" or "an" preceding a component does not exclude the presence of a plurality of such components. The present invention may be implemented by means of hardware comprising a number of different components and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

Claims

1. A battery management system hardware-in-the-loop testing method, characterized in that: The method comprises: Obtain the cell voltage and cell temperature of the battery pack during the charge and discharge test; Processing the cell voltage and the cell temperature to generate a test cell voltage and a test cell temperature for hardware-in-the-loop testing; The test cell voltage and the test cell temperature are input into the battery management system to perform the hardware-in-the-loop test.

2. The battery management system hardware-in-the-loop testing method according to claim 1, characterized in that: Before obtaining the cell voltage and cell temperature of the battery pack in the charge and discharge test, the method further includes: The battery pack is placed under different working conditions, the battery pack is controlled to perform charge and discharge tests at different charge and discharge rates, and sampling is performed at different charge and discharge times to obtain the single cell voltage and single cell temperature of the battery pack at different charge and discharge times.

3. The battery management system hardware-in-the-loop testing method according to claim 2, characterized in that: The processing of the cell voltage and the cell temperature to generate a test cell voltage and a test cell temperature for hardware-in-the-loop testing includes: Selecting the maximum cell voltage, the minimum cell voltage, the maximum cell temperature and the minimum cell temperature under the same charge and discharge time from the cell voltages and the cell temperatures; Under the same charge and discharge time, randomly generating a random cell voltage between the maximum cell voltage and the minimum cell voltage, and a random cell temperature between the maximum cell temperature and the minimum cell temperature; According to a preset charge and discharge test strategy, the random cell voltages and the random cell temperatures at different charge and discharge times are spliced ​​respectively to obtain the test cell voltage and the test cell temperature for the hardware-in-the-loop test.

4. The battery management system hardware-in-the-loop testing method according to claim 3, characterized in that: The step of splicing the random cell voltages and the random cell temperatures at different charge and discharge times according to a preset charge and discharge test strategy to obtain the test cell voltage and the test cell temperature for the hardware-in-the-loop test includes: Obtaining the operating conditions in the charge and discharge test strategy, as well as the charge and discharge rate, starting power, and ending power of each charge and discharge stage; Find all random cell voltages and random cell temperatures under the working conditions; According to the charge and discharge rate, the starting power and the ending power of each charge and discharge stage, the random cell voltage and the random cell temperature corresponding to each charge and discharge stage are selected from all the random cell voltages and random cell temperatures; The random cell voltage and the random cell temperature corresponding to each charge and discharge stage are respectively concatenated in sequence according to the sequence of the charge and discharge stages to obtain the test cell voltage and the test cell temperature used for the hardware-in-the-loop test.

5. The battery management system hardware-in-the-loop testing method according to claim 1, characterized in that: After inputting the test cell voltage and the test cell temperature into the battery management system for performing the hardware-in-the-loop test, the method further includes: Acquiring simulation data output by the battery management system; Based on the simulation data, a test result of the battery management system is determined.

6. The battery management system hardware-in-the-loop testing method according to claim 5, characterized in that: Determining the test result of the battery management system based on the simulation data includes: If the simulation data includes a first relationship curve between the open circuit voltage and the state of charge obtained by the battery management system using the SOC algorithm, then obtaining a second relationship curve between the open circuit voltage and the state of charge obtained by the battery pack charge and discharge test; Determining a degree of fit between the first relationship curve and the second relationship curve; If the degree of fit is greater than a preset degree of fit threshold, it is determined that the SOC algorithm test result of the battery management system is passed.

7. The battery management system hardware-in-the-loop testing method according to claim 5, characterized in that: Determining the test result of the battery management system based on the simulation data includes: If the simulation data includes a simulated state of charge, obtaining a real state of charge obtained by a charge and discharge test of the battery pack; If the error between the simulated state of charge and the actual state of charge is less than an error threshold, it is determined that the state of charge test result of the battery management system is passed.

8. A battery management system hardware-in-the-loop test device, characterized in that: The device comprises: An acquisition module is used to obtain the cell voltage and cell temperature of the battery pack during the charge and discharge test; A generating module, used for processing the cell voltage and the cell temperature to generate a test cell voltage and a test cell temperature for hardware-in-the-loop testing; An input module is used to input the test cell voltage and the test cell temperature into the battery management system to perform the hardware-in-the-loop test.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for testing dynamic characteristics of battery

    CN106291392A

  • Method and device for testing cycle life of battery pack, electronic equipment and storage medium

    CN114325446A

  • Test system device and test method for SOP estimation precision of power battery

    CN115128492A

  • Testing system and method of power battery management system based on hardware-in-the-loop, and medium

    CN115167356A

  • Test device and method for measuring energy state estimation capability of battery management system

    CN115656835A