BMS simulation system, BMS model test method, device and system and storage medium
By building a BMS simulation system, the problem of low efficiency in manually building models in MIL testing was solved, realizing efficient and flexible BMS model testing and improving testing efficiency and accuracy.
Patent Information
- Application Number
- CN202410923959.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-12
AI Technical Summary
During BMS model development, MIL testing requires manually rebuilding the simulation model as the test model changes, resulting in low testing efficiency.
A battery management system (BMS) simulation system is provided, including a configuration module, an algorithm simulation database, a battery model, a control module, a signal processing module, and a signal observation module. The system performs simulation testing by constructing a BMS model, is compatible with cell parameter data and test data, supports flexible selection of battery data sources, and achieves automated modeling and efficient testing.
It improves the efficiency of BMS model testing, enables flexible selection of battery data sources according to simulation testing requirements, and precisely controls the model operation process, thereby improving testing accuracy.
Smart Images

Figure CN118940466A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of BMS testing technology, and in particular to a BMS simulation system, a BMS model testing method, a testing device, a testing system, and a computer-readable storage medium. Background Art
[0002] Under the Model-Based Development (MBD) software development process, in order to verify whether the functions and performance of the Battery Management System (BMS) software development are consistent with the system requirements, the BMS software needs to pass Model in the Loop (MIL) testing, Software in the Loop (SIL) testing, Processor-in-the-Loop (PIL) testing, Hardware-in-the-Loop (HIL) testing, and system testing. Among them, MIL testing is a testing link in the BMS model development phase, and the difficulty of troubleshooting and locating problems is much lower than that of subsequent testing links. Currently, when performing MIL testing, as the test model changes, the simulation model needs to be manually rebuilt, which reduces testing efficiency. Summary of the Invention
[0003] The embodiments of the present application provide a BMS simulation system, a BMS model testing method, a testing device, a testing system, and a computer-readable storage medium to solve at least one of the above-mentioned technical problems.
[0004] In a first aspect, an embodiment of the present application provides a BMS simulation system, the BMS simulation system including a configuration module, an algorithm simulation database, a battery model, a control module, a signal processing module, and a signal observation module;
[0005] The configuration module is used to build a BMS model;
[0006] The algorithm simulation database is used to store data to be loaded, and the data to be loaded includes battery cell parameter data and first test data;
[0007] The battery model is embedded in the control module, and the battery model and the control module are respectively connected to the algorithm simulation database. The control module is used to control the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source;
[0008] The signal processing module is connected to the battery model and is used to pre-process the battery data and perform signal completion to obtain an input signal for the BMS model;
[0009] The BMS model is connected to the signal processing module and is used to determine the output signal according to the input signal;
[0010] The signal observation module is connected to the BMS model and is used to compare and analyze the output signal.
[0011] The BMS simulation system of the present application embodiment builds a BMS model based on the configuration module to perform BMS model simulation testing, and is compatible with battery cell parameter data and first test data as data to be loaded, providing the signal processing module with battery data corresponding to the data to be loaded. In this way, the BMS model can be efficiently built, effectively improving the testing efficiency of the BMS model, and the source of battery data can be flexibly selected according to the needs of the simulation test.
[0012] In certain embodiments, when the data source is set to data import, the control module is used to load the first test data from the algorithm simulation database and send the first test data to the battery model, and the battery model is used to provide the first test data to the signal processing module;
[0013] When the data source is set to the battery model, the battery model loads the battery cell parameter data from the algorithm simulation database, the control module is used to simulate the energy storage inverter to control the battery model to generate second test data based on the battery cell parameter data, and the battery model is used to provide the second test data to the signal processing module.
[0014] In the above technical solution, the BMS simulation system supports using the first test data and the second test data as battery data. In this way, when performing a simulation test, the source of the battery data can be flexibly selected according to the requirements of the simulation test.
[0015] In certain embodiments, the battery model is a Thevenin equivalent circuit model.
[0016] In this way, the accuracy of the simulation test can be guaranteed.
[0017] In some embodiments, the cell parameter data includes cell model, cell internal resistance, polarization internal resistance, self-discharge resistance, polarization capacitance, cell open circuit voltage, and initial battery state of charge;
[0018] The first test data includes temperature, voltage, current, battery state of charge, battery health status and battery cell capacity.
[0019] In this way, different second test data can be obtained as battery data according to different cell parameter data to meet different simulation test requirements. Different first test data corresponds to different battery data, which can meet different simulation test requirements.
[0020] In some embodiments, the signal processing module includes a preprocessing unit and a signal completion unit. The preprocessing unit is used to preprocess the battery data to obtain an initial signal. The signal completion unit is used to simulate the underlying signal provided by the underlying software to the BMS model to complete the initial signal and obtain the input signal.
[0021] In this way, the amount of calculation of the input signal in the BMS model can be reduced, and the actual working state of the BMS model can be simulated more accurately. The signal completion logic can be adjusted according to the actual situation to adapt to different simulation test requirements.
[0022] In certain embodiments, the BMS simulation system further includes a scheduling module, the configuration module is configured to configure a model scheduling table, and the scheduling module is generated based on the model scheduling table;
[0023] The scheduling module is used to generate a call signal of the BMS model and set an operation cycle of the BMS simulation system.
[0024] In this way, the operation process of the BMS model can be precisely controlled and the accuracy of simulation testing can be improved.
[0025] In a second aspect, an embodiment of the present application provides a BMS model testing method, the BMS model testing method comprising:
[0026] Constructing a BMS simulation system, the BMS simulation system including a configuration module, an algorithm simulation database, a battery model, a control module, a signal processing module, and a signal observation module, the configuration module being used to construct the BMS model, the battery model being embedded in the control module, the battery model and the control module being respectively connected to the algorithm simulation database, the signal processing module being connected to the battery model, the BMS model being connected to the signal processing module, and the signal observation module being connected to the BMS model;
[0027] Setting the basic configuration of the control module and the battery model;
[0028] Loading data to be loaded from the algorithm simulation database according to the data source setting of the control module, so that the control module controls the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source, wherein the data to be loaded includes battery cell parameter data and first test data;
[0029] Controlling the signal processing module to pre-process and complete the battery data to obtain an input signal for the BMS model;
[0030] controlling the BMS model to determine an output signal according to the input signal;
[0031] The signal observation module is controlled to compare and analyze the output signal.
[0032] The BMS model testing method of the present application embodiment constructs a BMS model based on a configuration module to perform BMS model simulation testing, and uses both cell parameter data and first test data as data to be loaded, providing the signal processing module with battery data corresponding to the data to be loaded. In this way, the BMS model can be efficiently built, effectively improving the testing efficiency of the BMS model, and the source of battery data can be flexibly selected according to the needs of the simulation test.
[0033] In certain embodiments, the BMS simulation system further includes a scheduling module, the signal processing module includes a preprocessing unit and a signal completion unit, the BMS model includes a plurality of BMS sub-models, and constructing the BMS simulation system includes:
[0034] constructing the BMS model based on a model configuration input by a user in the configuration module, wherein the model configuration includes a model schedule;
[0035] generating a scheduling module based on the model scheduling table to output calling signals of the plurality of BMS sub-models;
[0036] Loading the battery model and the preprocessing unit, and connecting the battery model to the preprocessing unit;
[0037] Loading the multiple BMS sub-models to obtain multiple sub-output signals, and transmitting the corresponding sub-output signals to the corresponding BMS sub-models according to the call relationship corresponding to the call signal;
[0038] The signal completion unit is created according to the signal completion logic and connected with the corresponding BMS sub-model and the pre-processing unit.
[0039] In this technical solution, a BMS model is built based on the configuration module. Based on different simulation test requirements, different BMS sub-models can be flexibly selected, and the BMS model is automatically built with one click for simulation testing. This approach is suitable for testing BMS models based on the MBD model and distributed development, enabling efficient model building and effectively improving BMS model testing efficiency.
[0040] In some embodiments, the battery data includes first test data, and the loading of the data to be loaded from the algorithm simulation database according to the data source setting of the control module, so that the control module controls the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source, includes:
[0041] determining the data source of the control module;
[0042] When the data source is set to data import, first test data is loaded from the algorithm simulation database.
[0043] In some embodiments, the battery data includes second test data, and the loading of the data to be loaded from the algorithm simulation database according to the data source setting of the control module, so that the control module controls the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source, includes:
[0044] determining the data source of the control module;
[0045] When the data source is set to the battery model, cell parameter data is loaded from the algorithm simulation database;
[0046] The control module is controlled to simulate an energy storage converter to control the battery model to generate second test data according to the battery cell parameter data.
[0047] In the above technical solution, the first test data and the second test data are supported as battery data. In this way, when performing a simulation test, the source of the battery data can be flexibly selected according to the requirements of the simulation test.
[0048] In some embodiments, generating a scheduling module based on the model scheduling table to output call signals of the multiple BMS sub-models includes:
[0049] Generate a scheduling module using a state machine according to the model priority, the number of models and the scheduling period in the model scheduling table;
[0050] The scheduling module is controlled to output calling signals of the multiple BMS sub-models, and the greatest common divisor of the scheduling periods is set as the operating period of the BMS model.
[0051] In this way, the operation process of the BMS model can be precisely controlled and the accuracy of simulation testing can be improved.
[0052] In some embodiments, loading the multiple BMS sub-models to obtain multiple sub-output signals, and transmitting the corresponding sub-output signals to the corresponding BMS sub-models according to the call relationship corresponding to the call signal, includes:
[0053] Loading the multiple BMS sub-models to obtain multiple sub-output signals;
[0054] Determining whether there is a calling relationship between every two of the BMS sub-models according to the calling signal;
[0055] When a calling relationship exists between two BMS sub-models, the sub-output signal corresponding to the called BMS sub-model is transmitted to the calling BMS sub-model.
[0056] In this way, the calling and running processes between multiple BMS sub-models in the BMS model can be accurately controlled, thereby improving the accuracy of simulation testing.
[0057] In a third aspect, an embodiment of the present application provides a BMS model testing device, the BMS model testing device comprising:
[0058] A construction module for constructing a BMS simulation system, the BMS simulation system including a configuration module, an algorithm simulation database, a battery model, a control module, a signal processing module, and a signal observation module. The configuration module is used to construct the BMS model. The battery model is embedded in the control module. The battery model and the control module are respectively connected to the algorithm simulation database. The signal processing module is connected to the battery model. The BMS model is connected to the signal processing module. The signal observation module is connected to the BMS model.
[0059] A setting module, used to set the basic configuration of the control module and the battery model;
[0060] a first loading module, configured to load data to be loaded from the algorithm simulation database according to a data source setting of the control module, so that the control module controls the battery model to generate battery data corresponding to the data to be loaded according to the data source, wherein the data to be loaded includes cell parameter data and first test data;
[0061] a processing module, configured to control the signal processing module to pre-process and complete the battery data as an input signal for the BMS model;
[0062] The analysis module is used to control the signal observation module to compare and analyze the output signal of the BMS model.
[0063] In a fourth aspect, an embodiment of the present application provides a BMS model testing system, which includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the BMS model testing method of any of the above-mentioned embodiments is implemented.
[0064] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the BMS model testing method of any of the above-mentioned embodiments is implemented.
[0065] The BMS simulation system, BMS model testing method, testing device, testing system, and computer-readable storage medium of the embodiments of the present application construct a BMS model based on a configuration module to perform BMS model simulation testing, and are compatible with battery cell parameter data and first test data as data to be loaded, providing the signal processing module with battery data corresponding to the data to be loaded. In this way, the BMS model can be efficiently modeled, effectively improving the testing efficiency of the BMS model, and the source of battery data can be flexibly selected according to the needs of the simulation test.
[0066] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0068] Figure 1 is a schematic diagram of a module of a BMS simulation system according to certain embodiments of the present application;
[0069] Figure 2 is a schematic diagram of a simulation module of a BMS simulation system according to certain embodiments of the present application;
[0070] Figure 3 is a schematic diagram of a first interactive interface of a configuration module in certain embodiments of the present application;
[0071] Figure 4 is a schematic diagram of a second interactive interface of a control module in certain embodiments of the present application;
[0072] Figure 5 is a schematic diagram of a second interactive interface of a control module in certain embodiments of the present application;
[0073] Figure 6 is a schematic diagram of a second interactive interface of a control module in certain embodiments of the present application;
[0074] Figure 7 is a schematic diagram of a battery model according to certain embodiments of the present application;
[0075] Figure 8 is a schematic diagram of a cell parameter data table for certain embodiments of the present application;
[0076] Figure 9 is a schematic diagram of a first test data table of certain embodiments of the present application;
[0077] Figure 10 is a module schematic diagram of a BMS simulation system according to certain embodiments of the present application;
[0078] Figure 11 is a schematic diagram of a battery data mapping table in the signal completion logic of certain embodiments of the present application;
[0079] Figure 12 is a schematic diagram of a suffix mapping table in the signal completion logic of certain embodiments of the present application;
[0080] Figure 13 is a flow chart of a BMS model testing method according to certain embodiments of the present application;
[0081] Figure 14 is a flow chart of a BMS model testing method according to certain embodiments of the present application;
[0082] Figure 15 is a flow chart of a BMS model testing method according to certain embodiments of the present application;
[0083] Figure 16 is a flow chart of a BMS model testing method according to certain embodiments of the present application;
[0084] Figure 17 is a flow chart of a BMS model testing method according to certain embodiments of the present application;
[0085] Figure 18 is a flow chart of a BMS model testing method according to certain embodiments of the present application;
[0086] Figure 19 is a schematic diagram of a second interactive interface of a control module in certain embodiments of the present application;
[0087] Figure 20 is a schematic diagram of a second interactive interface of a control module in certain embodiments of the present application;
[0088] Figure 21 is a schematic diagram of a module of a BMS model testing device according to certain embodiments of the present application;
[0089] Figure 22 is a module schematic diagram of a BMS model testing system according to certain embodiments of the present application;
[0090] Figure 23 This is a schematic diagram of the connection status between a computer-readable storage medium and a processor in certain embodiments of the present application.
[0091] Description of reference numerals:
[0092] BMS simulation system 100, configuration module 10, algorithm simulation database 20, battery model 30, control module 40, signal processing module 50, preprocessing unit 51, signal completion unit 52, BMS model 60, signal observation module 70, loading module 80, scheduling module 90, BMS model testing device 200, construction module 210, setting module 220, first loading module 230, processing module 240, analysis module 250, BMS model testing system 300, processor 310, memory 320, computer-readable storage medium 400, computer program 410, processor 420. DETAILED DESCRIPTION
[0093] The following further describes the embodiments of the present application in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions. Furthermore, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are intended only to explain the embodiments of the present application and are not to be construed as limiting the present application.
[0094] See also Figure 1 and Figure 2 , an embodiment of the present application provides a BMS simulation system 100. The BMS simulation system 100 includes a configuration module 10, an algorithm simulation database 20, a battery model 30, a control module 40, a signal processing module 50 and a signal observation module 70. The configuration module 10 is used to construct a BMS model 60. The algorithm simulation database 20 is used to store data to be loaded, and the data to be loaded includes battery cell parameter data and first test data. The battery model 30 is embedded in the control module 40, and the battery model 30 and the control module 40 are respectively connected to the algorithm simulation database 20. The control module 40 is used to control the battery model 30 to provide the signal processing module 50 with battery data corresponding to the data to be loaded according to the data source. The signal processing module 50 is connected to the battery model 30 for preprocessing and signal completion of the battery data to obtain the input signal of the BMS model 60. The BMS model 60 is connected to the signal processing module 50 for determining the output signal based on the input signal. The signal observation module 70 is connected to the BMS model 60 for comparing and analyzing the output signal.
[0095] The BMS simulation system 100 of the embodiment of the present application constructs a BMS model 60 based on the configuration module 10 to perform simulation testing of the BMS model 60, and uses both cell parameter data and first test data as data to be loaded, providing the signal processing module 50 with battery data corresponding to the data to be loaded. In this way, the BMS model 60 can be efficiently modeled, effectively improving the testing efficiency of the BMS model 60, and the source of battery data can be flexibly selected according to the requirements of the simulation test.
[0096] Specifically, the BMS simulation system 100 can be constructed based on Matlab or Simulink, and of course, can also be constructed based on other simulation software, which is not limited here. The configuration module 10 is developed in the form of an application (APP), and the configuration module 10 includes a first interactive interface. Figure 3 As shown, the first interactive interface includes board level selection, model selection, model scheduling table, simulation model name and related operation buttons. Users can select board level and model, set model scheduling table and simulation model name, and perform related operations by operating on the first interactive interface.
[0097] Among them, the board level represents the architecture of the simulation object. After selecting the board level, the BMS sub-model options of the corresponding architecture are displayed in the model selection list box. A BMS model 60 can include multiple BMS sub-models. The model scheduling table includes the items of the BMS sub-models to be built selected from the model selection list box. The scheduling cycle and priority of each BMS sub-model can be filled in the model scheduling table. The select, refresh, move up, move down and delete buttons in the model scheduling table are all used to manage the data in the model scheduling table. Enter the name of the generated BMS model 60 in the simulation model name edit box, and click the one-click generate button to automatically generate the BMS model 60 according to the simulation model generation logic.
[0098] The algorithm simulation database 20 is used to store the data to be loaded, which includes the battery cell parameter data and the first test data. The battery model 30 is embedded in the control module 40, and the control module 40 can control the battery model 30 to provide the signal processing module 50 with the battery data corresponding to the data to be loaded. Figures 4 to 6 As shown, the control module 40 includes a second interactive interface, on which the basic configuration of the control module 40 and the battery model 30 can be set. The battery model 30 is connected to the algorithm simulation database 20 to load cell parameter data from the algorithm simulation database 20 and provide the signal processing module 50 with battery data corresponding to the cell parameter data; the control module 40 is connected to the algorithm simulation database 20 to load first test data from the algorithm simulation database 20 and provide the signal processing module 50 with battery data corresponding to the first test data through the battery model 30.
[0099] The signal processing module 50 is connected to the battery model 30 and is used to pre-process the battery data and complete the signal to obtain the input signal of the BMS model 60. The BMS model 60 is connected to the signal processing module 50, and the input signal is input to the BMS model 60 to obtain the output signal. The output signal includes information such as the output model, data structure, data type, etc., which can be used to identify the signal source and match the default value to facilitate comparison and analysis of the output signal. The signal observation module 70 is connected to the BMS model 60 and is used to compare and analyze the output signal to obtain the MIL test results. The signal observation module 70 can use the data checker in simulink.
[0100] It should be noted that providing the signal processing module 50 with battery data corresponding to the first test data requires first conducting a real cell test to collect the first test data. This is relatively costly, but the data is highly accurate and can be used for precision testing of the SOX (State of X) algorithm. Providing the signal processing module 50 with battery data corresponding to the cell parameter data requires building a battery model 30. The battery model 30 can roughly simulate the basic characteristics of the cell, allows for custom operating conditions, and is suitable for most functional verifications. It is also low-cost, but must be used with a battery model 30 that has been verified to be highly accurate.
[0101] In the embodiment of the present application, a BMS model 60 is constructed based on the configuration module 10. According to different simulation test requirements, the BMS model 60 is automatically constructed with one click to perform simulation tests. In this way, the BMS model 60 can be efficiently modeled, effectively improving the testing efficiency of the BMS model 60. In addition, the BMS simulation system 100 is compatible with the cell parameter data and the first test data as data to be loaded, and can provide the signal processing module 50 with battery data corresponding to the data to be loaded. In this way, when performing simulation tests, the source of battery data can be flexibly selected according to the requirements of the simulation tests.
[0102] In certain embodiments, when the data source is set to data import, the control module 40 is used to load first test data from the algorithm simulation database 20 and send the first test data to the battery model 30. The battery model 30 is used to provide the first test data to the signal processing module 50. When the data source is set to the battery model 30, the battery model 30 loads the cell parameter data from the algorithm simulation database 20. The control module 40 is used to simulate the energy storage converter to control the battery model 30 to generate second test data based on the cell parameter data. The battery model 30 is used to provide the second test data to the signal processing module 50.
[0103] Specifically, the battery data includes first test data or second test data determined according to the cell parameter data, such as Figure 4 and Figure 5As shown, the user can set the data source in the second interactive interface of the control module 40 to determine the battery data. Figure 4 The battery data is first test data, which can be data collected based on actual battery cell testing. During testing, the control module 40 loads the first test data from the algorithm simulation database 20 and transmits the first test data as battery data to the signal processing module 50 via the battery model 30.
[0104] When the data source is set to the battery model 30 (eg Figure 5 As shown), the battery data is the second test data determined according to the cell parameter data. When performing a simulation test, the battery model 30 loads the cell parameter data from the algorithm simulation database 20. The battery model 30 is embedded in the control module 40. The control module 40 can simulate the energy storage converter (Power Conversion System, PCS) to control the battery model 30 to generate the second test data according to the cell parameter data, and then pass the second test data to the signal processing module 50. The BMS simulation system 100 supports the use of the first test data and the second test data as battery data. In this way, when performing a simulation test, the source of the battery data can be flexibly selected according to the needs of the simulation test.
[0105] See also Figure 7 In some embodiments, the battery model 30 is a Thevenin equivalent circuit model.
[0106] Specifically, the Thevenin equivalent circuit model has high accuracy. Using the Thevenin equivalent circuit model as the battery model 30 can ensure the accuracy of simulation testing. Thevenin equivalent circuit models include the Thevenin first-order equivalent circuit model, the Thevenin second-order equivalent circuit model, the Thevenin third-order equivalent circuit model, and equivalent circuit models of higher orders. In other embodiments, the battery model 30 can also adopt any other circuit model, such as an internal resistance model.
[0107] Taking the Thevenin second-order equivalent circuit model as the battery model 30 as an example, the iterative operation is performed with a sampling period t. The input of the battery model 30 is the current I, and the output is the terminal voltage V t and temperature T t When the input current of the battery model 30 is I (negative during charging and positive during discharging), the battery state of charge (SOC) θ of the battery cell is as follows:
[0108]
[0109] Where θ0 is the initial SOC of the battery cell. OC=f(θ) is the OCV (open circuit voltage) curve of the battery cell, indicating the open circuit voltage V OC The mapping relationship between R and the battery state of charge θ. SD is the self-discharge resistance. Q is the maximum available capacity of the battery cell. The above parameters are all known parameters.
[0110] Polarization voltage V of the RC circuit i As follows:
[0111]
[0112] Where i = 1, 2, is the RC loop number of the battery model 30, Vi(0) is the polarization voltage of the initial RC loop, R1 is the first polarization internal resistance, R2 is the second polarization internal resistance, C1 is the first polarization capacitance, and C2 is the second polarization capacitance. The above parameters are all known parameters.
[0113] Output terminal voltage V t for:
[0114] V t =V OC (θ0)-V1-V2-IR0
[0115] Among them, R0 is the internal resistance of the battery cell, which is a known parameter.
[0116] Output temperature T t for:
[0117]
[0118] Among them, M th is the thermal mass of the cell. c is the ambient temperature, T0 is the initial temperature, k is the convective heat transfer coefficient, and A is the surface area. These parameters are all known.
[0119] In certain embodiments, the cell parameter data includes cell model, cell internal resistance, polarization internal resistance, self-discharge resistance, polarization capacitance, cell open circuit voltage, and initial battery state of charge.
[0120] Specifically, the polarization internal resistance includes a first polarization internal resistance and a second polarization internal resistance, and the polarization capacitance includes a first polarization capacitance and a second polarization capacitance. Figure 8 As shown, the cell parameter data includes cell model, cell internal resistance R0, first polarization internal resistance R1, second polarization internal resistance R2, first polarization capacitance C1, second polarization capacitance C2, open circuit voltage V OC And the battery state of charge θ. In this way, different second test data can be obtained as battery data according to different battery cell parameter data to meet different simulation test requirements.
[0121] In certain embodiments, the first test data includes temperature, voltage, current, battery state of charge, battery state of health, and cell capacity.
[0122] Specifically, if Figure 9 As shown, the first test data includes temperature, voltage, current, battery state of charge, battery state of health (SOH), and battery cell capacity. In one example, the first test data and data type are at least partially the same as the data type of the second test data. In this way, different first test data correspond to different battery data, which can meet different simulation test requirements.
[0123] See also Figure 1 、 Figure 2 and Figure 10 In some embodiments, the signal processing module 50 includes a preprocessing unit 51 and a signal completion unit 52. The preprocessing unit 51 is used to preprocess the battery data to obtain an initial signal. The signal completion unit 52 is used to simulate the underlying signal provided by the underlying software to the BMS model 60 to complete the initial signal and obtain the input signal.
[0124] Specifically, preprocessing includes performing basic operations on battery data, such as summing, subtraction, and maximum value calculations. For example, if the battery model 30 includes two cells and the total voltage of the two cells needs to be obtained, the voltage of each cell can be obtained and then added together to obtain the total voltage. This can reduce the amount of calculation required for the input signal in the BMS model 60.
[0125] The input signal includes the initial signal obtained from the battery data and the underlying signal provided by the underlying software to the BMS model 60. Signal completion refers to simulating the underlying software to provide the underlying signal to the BMS model 60, and the signal completion unit 52 performs signal completion according to the signal completion logic. Figure 11 and Figure 12 In this way, the actual working state of the BMS model 60 can be simulated more accurately, and the signal completion logic can be adjusted according to the actual situation to meet different simulation test requirements.
[0126] Figure 11 In the example, the signals in the BMS Variable column are the input signals provided to the BMS model 60, including the underlying signals provided by the signal completion unit 52 to the BMS model 60 by simulating the underlying software. The Battery Variable column is the initial signal. If the signal in the BMSVariable column does not exist, the data in the Battery Variable column is used as the input signal.
[0127] In addition, the BMS Variable column also includes other signals that are not part of the underlying signals or battery data. These signals may be missing and can be supplemented based on the signal name. The signal names in the BMS Variable column follow the preset naming rules. For example, when the signal name includes deg (degree), the signal represents temperature. The preset naming specifications can be set and adjusted according to actual application requirements and are not limited here.
[0128] In one example, Figure 12 As shown in the figure, when the missing signal has a suffix of key, it is filled with the constant Value and used as the input signal. Other missing signals are filled with the default value 0 and used as the signal input.
[0129] See also Figure 2 and Figure 10 In some embodiments, the BMS simulation system 100 further includes a loading module 80 , which is used to call an environment file to support the operation of the BMS model 60 .
[0130] Specifically, the operation of the BMS model 60 requires the use of environment files, such as interface definitions, system parameter definitions, and data type definitions. The loading module 80 can be used to call these environment files to support the operation of the BMS model 60. This allows the BMS model 60 to exchange data with other modules in the BMS simulation system 100, ensuring the normal operation of the BMS model 60.
[0131] See also Figure 2 and Figure 10 In some embodiments, the BMS simulation system 100 further includes a scheduling module 90. The configuration module 10 is used to configure a model scheduling table, and the scheduling module 90 is generated based on the model scheduling table. The scheduling module 90 is used to generate a call signal for the BMS model 60 and set the operation cycle of the BMS model 60.
[0132] Specifically, the model scheduling table can be configured on the first interactive interface of the configuration module 10. Based on the model priority, number of models, and model cycle in the model scheduling table, a state machine can be used to generate a scheduling module 90. The scheduling module 90 can then generate a call signal for the BMS model 60. This allows for precise control of the operation of the BMS model 60 and improves simulation test accuracy.
[0133] It can be understood that in the model scheduling table, one model corresponds to one model cycle. The scheduling module 90 can also determine the operating cycle of the BMS model 60 based on the model cycles of multiple models. For example, the greatest common divisor of multiple model cycles can be used as the operating cycle of the BMS model 60.
[0134] In some embodiments, the current state of power (SOP) input and balancing control of the battery model 30 can be added to the control module 40. Based on the SOP input and balancing control, a balancing signal can be output and fed back to the battery model 30 to control the battery model 30; a balancing module is built in the battery model 30, and the balancing module can control the battery model according to the balancing signal to ensure the consistency of multiple battery cells in the battery model 30, so that the BMS simulation system 100 of the embodiment of the present application can also be applied to the closed-loop test of the BMS model 60.
[0135] See also Figure 1 、 Figure 2 and Figure 13 The present application also provides a BMS model testing method. The BMS model testing method includes:
[0136] 010: Constructing a BMS simulation system 100. The BMS simulation system 100 includes a configuration module 10, an algorithm simulation database 20, a battery model 30, a control module 40, a signal processing module 50, and a signal observation module 70. The configuration module 10 is used to construct the BMS model 60. The battery model 30 is embedded in the control module 40. The battery model 30 and the control module 40 are respectively connected to the algorithm simulation database 20. The signal processing module 50 is connected to the battery model 30. The BMS model 60 is connected to the signal processing module 50. The signal observation module 70 is connected to the BMS model 60.
[0137] 020: Setting the basic configuration of the control module 40 and the battery model 30;
[0138] 030: Loading data to be loaded from the algorithm simulation database 20 according to the data source setting of the control module 40, so that the control module 40 controls the battery model 30 to provide the signal processing module 50 with battery data corresponding to the data to be loaded according to the data source, where the data to be loaded includes battery cell parameter data and first test data;
[0139] 040: Control the signal processing module 50 to pre-process the battery data and perform signal completion to obtain an input signal for the BMS model 60;
[0140] 050: Control the BMS model 60 to determine the output signal according to the input signal;
[0141] 060: The control signal observation module 70 compares and analyzes the output signal.
[0142] The BMS model testing method of the embodiment of the present application constructs a BMS model 60 based on the configuration module 10 to perform simulation testing of the BMS model 60. The method also uses both cell parameter data and first test data as data to be loaded, and provides the signal processing module 50 with battery data corresponding to the data to be loaded. In this way, the BMS model 60 can be efficiently built, effectively improving the testing efficiency of the BMS model 60, and the source of battery data can be flexibly selected according to the requirements of the simulation test.
[0143] Specifically, a BMS simulation system 100 is first constructed. The BMS simulation system 100 includes a configuration module 10, an algorithm simulation database 20, a battery model 30, a control module 40, a signal processing module 50, and a signal observation module 70. The configuration module 10 is used to construct the BMS model 60. The battery model 30 is embedded in the control module 40, and the battery model 30 and the control module 40 are respectively connected to the algorithm simulation database 20. The signal processing module 50 is connected to the battery model 30. The BMS model 60 is connected to the signal processing module 50.
[0144] After building the BMS simulation system 100, set the basic configuration of the control module 40 and the battery model 30 and load them. Figures 4 to 6 As shown, the basic configuration includes setting the data source of the control module 40 , setting the battery parameters of the battery model 30 except the cell parameter data, and the operating parameters of the battery model 30 .
[0145] Before running a simulation, it is necessary to load the environment files required for the simulation and load the data to be loaded from the algorithm simulation database 20 according to the data source settings of the control module 40. Specifically, the data to be loaded can be downloaded from the algorithm simulation database 20 to a local computer and then loaded according to the data source settings of the control module 40. The data to be loaded includes battery cell parameter data and first test data. It should be noted that at least part of the basic configuration of the battery model 30 can be determined based on the battery cell type in the battery cell parameter data.
[0146] Afterwards, the user can click "Run" on the third interactive interface of the BMS simulation system 100, and the BMS simulation system 100 will start simulating, so that the control module 40 can control the battery model 30 to provide the signal processing module 50 with battery data corresponding to the data to be loaded according to the data source, and the battery data is transmitted to the signal processing module 50. The signal processing module 50 is controlled to pre-process and complete the battery data to obtain the input signal of the BMS model 60. After the input signal is input into the BMS model 60, the BMS model 60 is controlled to determine the output signal according to the input signal. After the output signal is transmitted to the signal observation module 70, the signal observation module 70 is controlled to compare and analyze the output signal to obtain the simulation test result.
[0147] In the embodiment of the present application, a BMS simulation system 100 is constructed to test a BMS model 60. The BMS simulation system 100 meets the testing requirements of the BMS model 60 based on the MBD mode and distributed development. The BMS model 60 can be automatically generated with one click based on the configuration module 10, and simulation testing can be performed with one click on the third interactive interface of the BMS simulation system 100. In this way, the BMS model 60 can be efficiently built and simulated tested, effectively improving the testing efficiency of the BMS model 60.
[0148] See also Figure 1 、 Figure 2 and Figure 14 In some embodiments, the BMS simulation system 100 further includes a scheduling module 90. The signal processing module 50 includes a pre-processing unit 51 and a signal completion unit 52. The BMS model 60 includes multiple BMS sub-models. Constructing the BMS simulation system 100 (ie, 010) includes:
[0149] 011: Building a BMS model 60 based on the model configuration input by the user in the configuration module 10, where the model configuration includes a model scheduling table;
[0150] 012: Generate a scheduling module 90 based on the model scheduling table to output call signals of multiple BMS sub-models;
[0151] 013: Load the battery model 30 and the preprocessing unit 51, and connect the battery model 30 to the preprocessing unit 51;
[0152] 014: Load multiple BMS sub-models to obtain multiple sub-output signals, and transmit the corresponding sub-output signals to the corresponding BMS sub-models according to the call relationship corresponding to the call signal;
[0153] 015: Create a signal completion unit 52 according to the signal completion logic and connect it with the corresponding BMS sub-model and pre-processing unit 51.
[0154] Specifically, the configuration module 10 is developed in the form of an application program (APP) and includes a first interactive interface. Figure 2 As shown, the first interactive interface includes board level selection, model selection, model scheduling table, simulation model name, and related operation buttons. Users can use the first interactive interface to select board level and model, set the model scheduling table and simulation model name, and perform related operations. Clicking the one-click generation button on the first interactive interface of the configuration module 10 automatically generates the BMS model 60 according to the simulation model generation logic.
[0155] The BMS model 60 includes multiple BMS sub-models, which are managed at the project and board levels to facilitate model building. Each model in the model scheduling table corresponds to a BMS sub-model. Based on the model scheduling table, a scheduling module 90 can be generated to output call signals for the multiple BMS sub-models. The call signals include the call relationships between the corresponding multiple BMS sub-models.
[0156] The algorithm simulation database 20, battery model 30, control module 40, signal processing module 50, and signal observation module 70 in the BMS simulation system 100 can be pre-developed and placed in a call library. After the BMS model 60 is constructed, the algorithm simulation database 20, battery model 30, control module 40, signal processing module 50, and signal observation module 70 can be loaded from the call library and, together with the BMS model 60, generated into the BMS simulation system 100.
[0157] After loading the battery model 30 and the preprocessing unit 51, the battery model 30 is connected to the preprocessing unit 51. After outputting the call signals of multiple BMS sub-models, multiple BMS sub-models can be loaded to obtain multiple sub-output signals, and the corresponding sub-output signals are passed to the corresponding BMS sub-models according to the call relationship corresponding to the call signal. In the signal processing module 50, the signal completion unit 52 is created according to the signal completion logic and connected to the corresponding BMS sub-model and the preprocessing unit 51 to perform signal completion on the battery data processed by the preprocessing unit 51 to obtain the input signal, and then pass the input signal to the corresponding BMS sub-model.
[0158] In the related art, BMS application-layer software development based on the MBD model typically adopts distributed development, meaning different developers are responsible for developing different BMS sub-models. During testing, in addition to simulation testing of each BMS sub-model, joint simulation testing is also required across multiple BMS sub-models. As the test object changes, the simulation model must be manually rebuilt, which is cumbersome, wastes manpower, and reduces testing efficiency.
[0159] In the embodiment of the present application, the BMS model 60 is constructed based on the configuration module 10. Different BMS sub-models can be flexibly selected according to different simulation test requirements, and the BMS model 60 is automatically constructed with one click for simulation testing. This is suitable for testing the BMS model 60 based on the MBD mode and distributed development, and can efficiently build the BMS model 60, effectively improving the testing efficiency of the BMS model 60.
[0160] See also Figure 1 、 Figure 2 and Figure 15In some embodiments, the battery data includes first test data. The data to be loaded is loaded from the algorithm simulation database 20 according to the data source setting of the control module 40, so that the control module 40 controls the battery model 30 to provide the signal processing module 50 with battery data corresponding to the data to be loaded (i.e., 030) according to the data source, including:
[0161] 031: Determine the data source of the control module 40;
[0162] 032: When the data source is set to data import, the first test data is loaded from the algorithm simulation database 20.
[0163] Specifically, the control module 40 includes a second interactive interface, and the user can select the data source of the control module 40 on the second interactive interface of the control module 40. The data source includes data import and battery model 30. Figure 4 As shown, two check boxes are set, data import and battery model 30, and the user selects the data source of the control module 40 by selecting the corresponding check box. Figure 4 As shown), the data source is set to data import, the first test data is loaded from the algorithm simulation database 20, and the first test data is transmitted to the signal processing module 50 as battery data.
[0164] See also Figure 1 、 Figure 2 and Figure 16 In some embodiments, the battery data includes second test data. The data to be loaded is loaded from the algorithm simulation database 20 according to the data source setting of the control module 40, so that the control module 40 controls the battery model 30 to provide the signal processing module 50 with battery data (i.e., 030) corresponding to the data to be loaded according to the data source, including:
[0165] 033: Determine the data source of the control module 40;
[0166] 034: When the data source is set to the battery model 30, the battery cell parameter data is loaded from the algorithm simulation database 20;
[0167] 035: The control module 40 simulates the energy storage converter to control the battery model 30 to generate second test data according to the battery cell parameter data.
[0168] Specifically, when the user selects the check box of the battery model 30 (eg Figure 5As shown, the data source is set to the battery model 30, the battery cell parameter data is loaded from the algorithm simulation database 20, and the control module 40 simulates the energy storage converter to control the battery model 30 to generate second test data based on the battery cell parameter data. The second test data is transmitted as battery data to the signal processing module 50.
[0169] In the BMS model testing method of the embodiment of the present application, the first test data and the second test data are supported as battery data, so that in practical applications, the source of the battery data can be flexibly selected according to the needs of the simulation test.
[0170] See also Figure 1 、 Figure 2 and Figure 17 In some embodiments, a scheduling module 90 is generated based on the model scheduling table to output a call signal (i.e., 012) for multiple BMS sub-models, including:
[0171] 0121: Generate a scheduling module 90 using a state machine according to the model priority, number of models and scheduling period in the model scheduling table;
[0172] 0122: The control scheduling module 90 outputs call signals of multiple BMS sub-models and sets the greatest common divisor of the scheduling periods as the operation period of the BMS model 60.
[0173] Specifically, the BMS model 60 includes multiple BMS sub-models, and each model in the model scheduling table corresponds to a BMS sub-model. Based on the model priority, number of models, and model cycle in the model scheduling table, a scheduling module 90 can be generated using a state machine. Afterwards, the scheduling module 90 can generate call signals for multiple BMS sub-models. It can be understood that in the model scheduling table, one model corresponds to one model cycle, and the scheduling module 90 can also determine the operating cycle of the BMS model 60 based on the model cycles of multiple models. In one example, the greatest common divisor of multiple model cycles can be used as the operating cycle of the BMS model 60. In this way, the operation process of the BMS model 60 can be precisely controlled, and the accuracy of the simulation test can be improved.
[0174] See also Figure 1 、 Figure 2 and Figure 18 In some embodiments, loading multiple BMS sub-models to obtain multiple sub-output signals, and transmitting the corresponding sub-output signals to the corresponding BMS sub-models (i.e., 014) according to the call relationship corresponding to the call signal, includes:
[0175] 0141: Load multiple BMS sub-models to obtain multiple sub-output signals;
[0176] 0142: Determine whether there is a calling relationship between every two BMS sub-models based on the calling signal;
[0177] 0143: When there is a calling relationship between two BMS sub-models, the sub-output signal corresponding to the called BMS sub-model is passed to the calling BMS sub-model.
[0178] Specifically, multiple BMS sub-models are loaded to obtain the sub-output signal corresponding to each BMS sub-model. Since the call signal includes the call relationship between multiple BMS sub-models, the call relationship refers to the need for a certain BMS sub-model to call the sub-output signal of another BMS sub-model. Based on the call relationship corresponding to the call signal, it can be determined whether there is a call relationship between each two BMS sub-models. When a call relationship exists between two BMS sub-models, the sub-output signal corresponding to the called BMS sub-model is passed to the calling BMS sub-model. In this way, the call and operation process between multiple BMS sub-models in the BMS model 60 can be accurately controlled, thereby improving the accuracy of the simulation test.
[0179] In one example, the BMS model testing method according to the embodiment of the present application can be used to simulate and test the time-based integration function of the SOC algorithm of the secondary version BMS of the energy storage system. The specific working process is as follows.
[0180] According to the test requirements, the configuration of the first interactive interface of the configuration module 10 is as follows Figure 3 As shown in the figure, RBMS is selected at the board level. The selected BMS submodels are prioritized as SGPC, FRLM, CSPC, HIST, SOCC, SOCE, and SOCD. The scheduling periods are 10ms, 10ms, 100ms, 100ms, 100ms, 100ms, and 1000ms, respectively. The model name is SOCTest.
[0181] The constructed BMS simulation system 100 is as follows Figure 2 As shown. The configuration of the second interactive interface of the control module 40 is as follows Figure 19 As shown, the battery model 30 is selected as the data source, and the parameter configuration of the battery model 30 is determined according to the cell type in the loaded cell parameter data. Figure 19 As shown, the initial SOC is 50%, the self-discharge resistance is 1000000ohm, and the sampling time is 0.01s. The matching battery model 30 has the following working condition configuration: Figure 20 As shown, the ambient temperature is 25°C, the initial charge and discharge state is charging, the discharge mode is constant current, the discharge current is 150A, the charging mode is constant current, the upper limit of SOC is 90%, the lower limit of SOC is 20%, and the other parameters are 0.
[0182] The BMS model 60 can be set to run for 100 seconds to obtain the actual SOC signal ScBDPP_DispSOCPct, the target SOC signal ScSOCE_TgtSOCPct, and the displayed SOC signal ScSOCD_DispSOCPct. The actual SOC signal ScBDPP_DispSOCPct is the actual SOC signal of the battery model 30, the target SOC signal ScSOCE_TgtSOCPct is the actual SOC signal estimated by the BMS model 60, and the displayed SOC signal ScSOCD_DispSOCPct is the SOC signal obtained after smoothing and other processing of the target SOC signal ScSOCE_TgtSOCPct.
[0183] Comparing the actual SOC signal ScBDPP_DispSOCPct with the displayed SOC signal ScSOCD_DispSOCPct, it was concluded that the BMS model 60 estimated SOC with an error of approximately 0.02%. During the calculation process, due to the loss of precision caused by the data type definition, a certain SOC error may exist. This SOC error is within the normal range, and the BMS model 60 passed the test.
[0184] See also Figure 1 、 Figure 2 and Figure 21, the embodiment of the present application also provides a BMS model testing device 200. The BMS model testing device 200 includes a construction module 210, a setting module 220, a first loading module 230, a processing module 240 and an analysis module 250. The construction module 210 is used to construct the BMS simulation system 100, and the BMS simulation system 100 includes a configuration module 10, an algorithm simulation database 20, a battery model 30, a control module 40, a signal processing module 50 and a signal observation module 70. The configuration module 10 is used to construct the BMS model 60. The battery model 30 is embedded in the control module 40, and the battery model 30 and the control module 40 are respectively connected to the algorithm simulation database 20. The signal processing module 50 is connected to the battery model 30. The BMS model 60 is connected to the signal processing module 50. The signal observation module 70 is connected to the BMS model 60. The setting module 220 is used to set the basic configuration of the control module 40 and the battery model 30. The first loading module 230 is used to load the data to be loaded from the algorithm simulation database 20 according to the data source settings of the control module 40. This allows the control module 40 to control the battery model 30 to provide the signal processing module 50 with battery data corresponding to the data to be loaded, including cell parameter data and first test data. The processing module 240 is used to control the signal processing module 50 to preprocess and complete the battery data as input signals for the BMS model 60. The analysis module 250 is used to control the signal observation module 70 to compare and analyze the output signals of the BMS model 60.
[0185] In some embodiments, the BMS simulation system 100 also includes a scheduling module 90. The signal processing module 50 includes a preprocessing unit 51 and a signal completion unit 52. The BMS model 60 includes multiple BMS sub-models. The construction module 210 is specifically used to construct the BMS model 60 based on the model configuration input by the user in the configuration module 10, and the model configuration includes a model scheduling table; generate a scheduling module 90 based on the model scheduling table to output call signals of multiple BMS sub-models; load the battery model 30 and the preprocessing unit 51, and connect the battery model 30 to the preprocessing unit 51; load multiple BMS sub-models to obtain multiple sub-output signals, and pass the corresponding sub-output signals to the corresponding BMS sub-models according to the call relationship corresponding to the call signal; create a signal completion unit 52 according to the signal completion logic, and connect it to the corresponding BMS sub-model and the preprocessing unit 51.
[0186] In some embodiments, the battery data includes first test data. The first loading module 230 is specifically configured to determine the data source of the control module 40 ; when the data source is set to data import, the first test data is loaded from the algorithm simulation database 20 .
[0187] In some embodiments, the battery data includes second test data. The first loading module 230 is specifically configured to determine the data source of the control module 40; when the data source is set to the battery model 30, the first loading module 230 loads the cell parameter data from the algorithm simulation database 20; and controls the control module 40 to simulate the energy storage converter to control the battery model 30 to generate the second test data based on the cell parameter data.
[0188] In some embodiments, the construction module 210 is specifically used to generate a scheduling module 90 using a state machine based on the model priority, number of models and scheduling period in the model scheduling table; control the scheduling module 90 to output call signals of multiple BMS sub-models, and set the greatest common divisor of the scheduling period as the operating period of the BMS model 60.
[0189] In some embodiments, the construction module 210 is specifically used to load multiple BMS sub-models to obtain multiple sub-output signals; determine whether there is a calling relationship between each two BMS sub-models based on the calling signal; when a calling relationship exists between two BMS sub-models, the sub-output signal corresponding to the called BMS sub-model is passed to the calling BMS sub-model.
[0190] It should be noted that the explanation of the BMS model testing method in the aforementioned embodiment is also applicable to the BMS model testing device 200 in the embodiment of the present application, and will not be further explained here.
[0191] See also Figure 1 、 Figure 2 and Figure 22 The embodiment of the present application further provides a BMS model testing system 300, which includes one or more processors 310 and a memory 320. The memory 320 stores a computer program. When the computer program is executed by the processor 310, the BMS model testing method of any of the above-mentioned embodiments is implemented.
[0192] For example, when the computer program is executed by the processor 310, the following BMS model testing method is implemented:
[0193] 010: Constructing a BMS simulation system 100. The BMS simulation system 100 includes a configuration module 10, an algorithm simulation database 20, a battery model 30, a control module 40, a signal processing module 50, and a signal observation module 70. The configuration module 10 is used to construct the BMS model 60. The battery model 30 is embedded in the control module 40. The battery model 30 and the control module 40 are respectively connected to the algorithm simulation database 20. The signal processing module 50 is connected to the battery model 30. The BMS model 60 is connected to the signal processing module 50. The signal observation module 70 is connected to the BMS model 60.
[0194] 020: Setting the basic configuration of the control module 40 and the battery model 30;
[0195] 030: Loading data to be loaded from the algorithm simulation database 20 according to the data source setting of the control module 40, so that the control module 40 controls the battery model 30 to provide the signal processing module 50 with battery data corresponding to the data to be loaded according to the data source, where the data to be loaded includes battery cell parameter data and first test data;
[0196] 040: Control the signal processing module 50 to pre-process the battery data and perform signal completion to obtain an input signal for the BMS model 60;
[0197] 050: Control the BMS model 60 to determine the output signal according to the input signal;
[0198] 060: The control signal observation module 70 compares and analyzes the output signal.
[0199] For another example, when the computer program is executed by the processor 310, the following BMS model testing method is implemented:
[0200] 011: Building a BMS model 60 based on the configuration input by the user in the configuration module 10, the configuration including the model scheduling table;
[0201] 012: Generate a scheduling module 90 based on the model scheduling table to output call signals of multiple BMS sub-models;
[0202] 013: Load the battery model 30 and the preprocessing unit 51, and connect the battery model 30 to the preprocessing unit 51;
[0203] 014: Load multiple BMS sub-models to obtain multiple sub-output signals, and transmit the corresponding sub-output signals to the corresponding BMS sub-models according to the call relationship corresponding to the call signal;
[0204] 015: Create a signal completion unit 52 according to the signal completion logic and connect it with the corresponding BMS sub-model and pre-processing unit 51.
[0205] It should be noted that the explanations of the BMS model testing method and the testing device 200 in the aforementioned embodiment are also applicable to the BMS model testing system 300 of the embodiment of the present application, and will not be further described here.
[0206] See also Figure 23 The embodiment of the present application further provides a computer-readable storage medium 400 on which a computer program 410 is stored. When the program is executed by a processor 420, the BMS model testing method of any of the above-mentioned embodiments is implemented.
[0207] For example, when the program is executed by the processor 420, the following BMS model testing method is implemented:
[0208] 010: Constructing a BMS simulation system 100. The BMS simulation system 100 includes a configuration module 10, an algorithm simulation database 20, a battery model 30, a control module 40, a signal processing module 50, and a signal observation module 70. The configuration module 10 is used to construct the BMS model 60. The battery model 30 is embedded in the control module 40. The battery model 30 and the control module 40 are respectively connected to the algorithm simulation database 20. The signal processing module 50 is connected to the battery model 30. The BMS model 60 is connected to the signal processing module 50. The signal observation module 70 is connected to the BMS model 60.
[0209] 020: Setting the basic configuration of the control module 40 and the battery model 30;
[0210] 030: Loading data to be loaded from the algorithm simulation database 20 according to the data source setting of the control module 40, so that the control module 40 controls the battery model 30 to provide the signal processing module 50 with battery data corresponding to the data to be loaded according to the data source, where the data to be loaded includes battery cell parameter data and first test data;
[0211] 040: Control the signal processing module 50 to pre-process the battery data and perform signal completion to obtain an input signal for the BMS model 60;
[0212] 050: Control the BMS model 60 to determine the output signal according to the input signal;
[0213] 060: The control signal observation module 70 compares and analyzes the output signal.
[0214] For another example, when the program is executed by the processor 420, the following BMS model testing method is implemented:
[0215] 011: Building a BMS model 60 based on the model configuration input by the user in the configuration module 10, where the model configuration includes a model scheduling table;
[0216] 012: Generate a scheduling module 90 based on the model scheduling table to output call signals of multiple BMS sub-models;
[0217] 013: Load the battery model 30 and the preprocessing unit 51, and connect the battery model 30 to the preprocessing unit 51;
[0218] 014: Load multiple BMS sub-models to obtain multiple sub-output signals, and transmit the corresponding sub-output signals to the corresponding BMS sub-models according to the call relationship corresponding to the call signal;
[0219] 015: Create a signal completion unit 52 according to the signal completion logic and connect it with the corresponding BMS sub-model and pre-processing unit 51.
[0220] It should be noted that the explanations of the BMS model testing method and the testing device 200 in the aforementioned embodiment are also applicable to the computer-readable storage medium 400 in the embodiment of the present application, and will not be further explained here.
[0221] In summary, the BMS simulation system 100, BMS model testing method, testing device 200, testing system 300, and computer-readable storage medium 400 of the embodiments of the present application construct a BMS model 60 based on the configuration module 10 to perform a simulation test of the BMS model 60, and are compatible with the battery cell parameter data and the first test data as data to be loaded, providing the signal processing module 50 with battery data corresponding to the data to be loaded. In this way, the BMS model 60 can be efficiently modeled, effectively improving the testing efficiency of the BMS model 60, and the source of battery data can be flexibly selected according to the needs of the simulation test.
[0222] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.
[0223] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.
[0224] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a computer-readable storage medium can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable storage media include the following: an electrical connection having one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner as necessary, and then stored in a computer memory.
[0225] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0226] Those skilled in the art will appreciate that all or part of the steps carried out in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment. In addition, the various functional units in the various embodiments of the present application can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a disk or an optical disk, etc.
[0227] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are illustrative and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application. The scope of the present application is defined by the claims and their equivalents.
Claims
1. A BMS simulation system, characterized in that: The BMS simulation system includes a configuration module, an algorithm simulation database, a battery model, a control module, a signal processing module and a signal observation module; The configuration module is used to build a BMS model; The algorithm simulation database is used to store data to be loaded, and the data to be loaded includes battery cell parameter data and first test data; The battery model is embedded in the control module, the battery model and the control module are respectively connected to the algorithm simulation database, and the control module is used to control the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source; The signal processing module is connected to the battery model and is used to pre-process the battery data and complete the signal to obtain the input signal of the BMS model; The BMS model is connected to the signal processing module and is used to determine the output signal according to the input signal; The signal observation module is connected to the BMS model and is used to compare and analyze the output signal.
2. The BMS simulation system according to claim 1, characterized in that: When the data source is set to data import, the control module is used to load the first test data from the algorithm simulation database and send the first test data to the battery model, and the battery model is used to provide the first test data to the signal processing module; When the data source is set to the battery model, the battery model loads the battery cell parameter data from the algorithm simulation database, the control module is used to simulate the energy storage inverter to control the battery model to generate second test data according to the battery cell parameter data, and the battery model is used to provide the second test data to the signal processing module.
3. The BMS simulation system according to claim 1, characterized in that: The battery model is a Thevenin equivalent circuit model.
4. The BMS simulation system according to claim 1, characterized in that: The battery cell parameter data includes battery cell model, battery cell internal resistance, polarization internal resistance, self-discharge resistance, polarization capacitance, battery cell open circuit voltage and initial battery state of charge; The first test data includes temperature, voltage, current, battery state of charge, battery health status and battery cell capacity.
5. The BMS simulation system according to claim 1, characterized in that: The signal processing module includes a preprocessing unit and a signal completion unit. The preprocessing unit is used to preprocess the battery data to obtain an initial signal. The signal completion unit is used to simulate the underlying signal provided by the underlying software to the BMS model to complete the initial signal and obtain the input signal.
6. The BMS simulation system according to claim 1, characterized in that: The BMS simulation system further includes a scheduling module, the configuration module is used to configure a model scheduling table, and the scheduling module is generated based on the model scheduling table; The scheduling module is used to generate a calling signal of the BMS model and set an operation cycle of the BMS simulation system.
7. A BMS model testing method, characterized in that: The BMS model testing method comprises: Constructing a BMS simulation system, the BMS simulation system comprising a configuration module, an algorithm simulation database, a battery model, a control module, a signal processing module and a signal observation module, the configuration module is used to construct the BMS model, the battery model is embedded in the control module, the battery model and the control module are respectively connected to the algorithm simulation database, the signal processing module is connected to the battery model, the BMS model is connected to the signal processing module, and the signal observation module is connected to the BMS model; Setting the basic configuration of the control module and the battery model; Loading the data to be loaded from the algorithm simulation database according to the data source setting of the control module, so that the control module controls the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source, wherein the data to be loaded includes battery cell parameter data and first test data; Controlling the signal processing module to pre-process and complete the battery data to obtain an input signal of the BMS model; Controlling the BMS model to determine an output signal according to the input signal; The signal observation module is controlled to compare and analyze the output signal.
8. The BMS model testing method according to claim 7, characterized in that: The BMS simulation system further includes a scheduling module, the signal processing module includes a preprocessing unit and a signal completion unit, the BMS model includes a plurality of BMS sub-models, and the construction of the BMS simulation system includes: Building the BMS model based on a model configuration input by a user in the configuration module, the model configuration including a model schedule; Generate a scheduling module based on the model scheduling table to output calling signals of the multiple BMS sub-models; Loading the battery model and the preprocessing unit, and connecting the battery model to the preprocessing unit; Loading the multiple BMS sub-models to obtain multiple sub-output signals, and transmitting the corresponding sub-output signals to the corresponding BMS sub-models according to the calling relationship corresponding to the calling signal; The signal completion unit is created according to the signal completion logic and connected with the corresponding BMS sub-model and the pre-processing unit.
9. The BMS model testing method according to claim 7, characterized in that: The battery data includes first test data, and the setting of loading the data to be loaded from the algorithm simulation database according to the data source of the control module, so that the control module controls the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source, includes: Determining the data source of the control module; When the data source is set to data import, the first test data is loaded from the algorithm simulation database.
10. The BMS model testing method according to claim 7, characterized in that: The battery data includes second test data, and the data to be loaded is loaded from the algorithm simulation database according to the data source setting of the control module, so that the control module controls the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source, including: Determining the data source of the control module; When the data source is set to the battery model, the battery cell parameter data is loaded from the algorithm simulation database; The control module is controlled to simulate an energy storage converter to control the battery model to generate second test data according to the battery cell parameter data.
11. The BMS model testing method according to claim 8, characterized in that: The generating a scheduling module based on the model scheduling table to output the calling signals of the multiple BMS sub-models includes: Generate a scheduling module using a state machine according to the model priority, the number of models and the scheduling period in the model scheduling table; The scheduling module is controlled to output the calling signals of the multiple BMS sub-models, and the greatest common divisor of the scheduling cycles is set as the operation cycle of the BMS model.
12. The BMS model testing method according to claim 8, characterized in that: The loading of the multiple BMS sub-models to obtain multiple sub-output signals, and transmitting the corresponding sub-output signals to the corresponding BMS sub-models according to the calling relationship corresponding to the calling signal, includes: Loading the multiple BMS sub-models to obtain multiple sub-output signals; Determining whether there is a calling relationship between every two of the BMS sub-models according to the calling signal; When there is a calling relationship between two of the BMS sub-models, the sub-output signal corresponding to the called BMS sub-model is transmitted to the calling BMS sub-model.
13. A BMS model testing device, characterized in that: The BMS model testing device comprises: A construction module, used to construct a BMS simulation system, the BMS simulation system includes a configuration module, an algorithm simulation database, a battery model, a control module, a signal processing module and a signal observation module, the configuration module is used to construct the BMS model, the battery model is embedded in the control module, the battery model and the control module are respectively connected to the algorithm simulation database, the signal processing module is connected to the battery model, the BMS model is connected to the signal processing module, and the signal observation module is connected to the BMS model; A setting module, used to set the basic configuration of the control module and the battery model; A first loading module, configured to load the data to be loaded from the algorithm simulation database according to the data source setting of the control module, so that the control module controls the battery model to provide the signal processing module with battery data corresponding to the data to be loaded according to the data source, wherein the data to be loaded includes battery cell parameter data and first test data; A processing module, used for controlling the signal processing module to pre-process the battery data and complete the signal as an input signal of the BMS model; The analysis module is used to control the signal observation module to compare and analyze the output signal of the BMS model.
14. A BMS model testing system, characterized in that: The BMS model testing system includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the BMS model testing method according to any one of claims 9 to 12 is implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the BMS model testing method described in any one of claims 9 to 12 is implemented.
