Test method, device and equipment of battery management system, medium and program product

By determining and mapping the interface system variable set in the battery management system, flexible testing of BMS hardware channels is realized, solving the problem of poor testing flexibility in the prior art, and improving the flexibility and accuracy of testing.

CN119292954AActive Publication Date: 2025-01-10CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411834819.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-01-10
Estimated Expiration
2044-12-13

AI Technical Summary

Technical Problem

The existing battery management system (BMS) has poor testing flexibility in multi-function configuration scenarios and cannot effectively adapt to switching of different functional configurations, resulting in cumbersome and inflexible testing.

Method used

By determining the mapping relationship between the first interface system variable set and the second interface system variable set, any second test interface in the BMS is mapped to the first test interface, so that each BMS is realized without switching the test platform. Simulation testing of hardware channel functions, simplifying configuration, and improving testing flexibility and accuracy.

Benefits of technology

It realizes accurate simulation and simulation testing of BMS hardware channel functions without changing the test platform interface, improves the accuracy and comprehensiveness of the test results, simplifies the test configuration, and enhances the testing in multi-function configuration scenarios. Adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292954A_ABST
    Figure CN119292954A_ABST
Patent Text Reader

Abstract

The invention provides a test method, device and equipment of a battery management system, a medium and a program product, and belongs to the technical field of batteries. The test method of the battery management system comprises the steps that a first interface system variable set is determined, the first interface system variable set comprises at least one driving variable, and the at least one driving variable indicates at least one state of a first test interface; determining a second interface system variable set, the second interface system variable set comprising at least one operational variable, the at least one operational variable indicating at least one state of any one second test interface in the battery management system; and mapping the second test interface to the first test interface based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set. According to the test method, the test flexibility in a multifunctional configuration scene can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a test method, device, equipment, medium and program product for a battery management system. Background Art

[0002] Energy conservation and emission reduction are the key to the sustainable development of the automobile industry. Electric vehicles have become an important part of the sustainable development of the automobile industry due to their advantages in energy conservation and environmental protection. For electric vehicles, battery technology is an important factor in their development.

[0003] As an important component of the battery device, the battery management system (BMS) plays a vital role in the use of the battery device. At present, the VT system (VehicleTest System) is usually used as a test platform to test each hardware channel in the BMS. For the different functional configurations of the hardware channels in the BMS, they often need to be set up respectively with different hardware channels in the test platform, which cannot adapt well to the flexible switching in the multi-function configuration scenario. Summary of the invention

[0004] The present application aims to at least solve the technical problem of poor test flexibility in the multifunctional configuration scenario of BMS hardware channels in the background technology. To this end, one purpose of the present application is to provide a test method for a battery management system to improve the test flexibility in the multifunctional configuration scenario.

[0005] An embodiment of the first aspect of the present application provides a testing method for a battery management system, comprising: determining a first interface system variable set, the first interface system variable set including at least one driving variable, and the at least one driving variable indicating at least one state of a first test interface; determining a second interface system variable set, the second interface system variable set including at least one operating variable, and the at least one operating variable indicating at least one state of any second test interface in the battery management system; and mapping the second test interface to the first test interface based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set.

[0006] In the technical solution of the embodiment of the present application, by mapping any second test interface in the BMS to the first test interface, the different functions of each hardware channel in the BMS can be implemented in the interface of the test platform, thereby realizing simulation testing of each hardware channel function of the BMS without switching the test interface of the test platform, simplifying the relevant configuration of the test and improving the flexibility of the test process.

[0007] In some embodiments, at least one operating variable corresponds to at least one driving variable. The operating variables and the driving variables are set to correspond to each other, so that the settings of the operating variables of the second test interface can be simulated by setting the driving variables of the first test interface, and the hardware channels of the BMS can be accurately simulated to improve the accuracy of the test results.

[0008] In some embodiments, determining the second interface system variable set includes: determining the second interface system variable set corresponding to the second test interface to be tested in the battery management system based on the second test interface to be tested. For hardware channels with different functions in the BMS, the corresponding second interface system variable set can be determined according to the specific function of the hardware channel, thereby achieving accurate simulation of each hardware channel in the BMS.

[0009] In some embodiments, the testing method further includes: before determining the second interface system variable set: identifying a second test interface to be tested in the battery management system. When testing the BMS, the function of the hardware channel to be tested is first identified, so that the corresponding second interface system variable set can be accurately determined.

[0010] In some embodiments, based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set, mapping the second test interface to the first test interface includes: assigning a value to a corresponding driving variable according to each operating variable in at least one operating variable based on the mapping relationship. After determining the mapping relationship between the second interface system variable set and the first interface system variable set, assigning each operating variable to a corresponding driving variable, so that the first test interface can be used to simulate the function of the second test interface in the BMS, thereby improving the flexibility and accuracy of the test.

[0011] In some embodiments, the mapping relationship is predetermined according to the following steps: after determining the second interface system variable set: establishing a mapping function between each operating variable in at least one operating variable and the corresponding driving variable; and obtaining the mapping relationship based on the mapping function. By accurately establishing the mapping relationship between the variables, the accuracy of the simulation test can be improved.

[0012] In some embodiments, the test method further includes: after mapping the second test interface to the first test interface based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set: setting the first interface system variable set as the initial system variable set. By setting the first interface system variable set as the initial system variable set, the initialization of the interface state can be achieved, the interference with the test results can be reduced, and the test accuracy can be improved.

[0013] In some embodiments, the test method further includes: identifying at least one test board. By accurately identifying the test board in the test platform, accurate simulation testing can be achieved, thereby improving the accuracy of the test results.

[0014] In some embodiments, the testing method further includes: determining a first test board from at least one test board based on the first interface system variable set, the first test board being used to test the battery management system. According to the function to be tested, determining the test board to be used for the test from multiple test boards to achieve accurate simulation testing.

[0015] In some embodiments, the test method further includes: configuring the first test board according to the first interface system variable set. Configuring the test board used for the test according to the first interface system variable set can achieve accurate simulation testing.

[0016] In some embodiments, the at least one driving variable includes: a first driving variable, the first driving variable indicating that the first test interface is in a first driving state or a second driving state; and a second driving variable, the second driving variable indicating a fault state injected into the first test interface. By setting different driving variables, simulation tests for different states can be implemented, thereby improving the comprehensiveness of the test results.

[0017] In some embodiments, at least one operation variable includes: a first operation variable, the first operation variable indicates that the second test interface is in the third driving state or the fourth driving state; and a second operation variable, the second operation variable indicates the fault state injected into the second test interface. By setting different operation variables, simulation tests for different states can be implemented, thereby improving the comprehensiveness of the test results.

[0018] An embodiment of the second aspect of the present application provides a testing device for a battery management system, comprising: a first module, used to determine a first interface system variable set, the first interface system variable set including at least one driving variable, and the at least one driving variable indicates at least one state of a first test interface; a second module, used to determine a second interface system variable set, the second interface system variable set including at least one operating variable, and the at least one operating variable indicates at least one state of any second test interface in the battery management system; and a third module, used to map the second test interface to the first test interface based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set.

[0019] An embodiment of the third aspect of the present application provides a computing device, comprising: at least one processor; and at least one memory communicatively connected to the at least one processor, wherein the at least one memory stores instructions, and when the instructions are executed individually or collectively by the at least one processor, the computing device executes the test method in the above embodiment.

[0020] An embodiment of the fourth aspect of the present application provides a computer-readable storage medium storing instructions, which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to execute the test method in the above embodiment.

[0021] An embodiment of the fifth aspect of the present application provides a computer program product, comprising instructions, which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to execute the testing method in the above embodiment.

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

[0023] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.

[0024] Figure 1 A flowchart of a battery management system testing method according to some embodiments of the present application; Figure 2 A schematic diagram of a process for determining a mapping relationship in some embodiments of the present application; Figure 3 A schematic block diagram of a test device for a battery management system according to some embodiments of the present application; Figure 4 A schematic block diagram of a computing device according to some embodiments of the present application. DETAILED DESCRIPTION

[0025] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0027] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0029] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0030] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0031] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the embodiments of the present application.

[0032] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0033] At present, from the perspective of market development, the application of power batteries is becoming more and more extensive. Power batteries are not only used in energy storage power systems such as hydropower, thermal power, wind power and solar power stations, but also widely used in electric vehicles such as electric bicycles, electric motorcycles, electric cars, as well as military equipment and aerospace and other fields. With the continuous expansion of the application field of power batteries, the market demand is also constantly expanding.

[0034] As an important component of the battery device, the Battery Management System (BMS) plays a vital role in the use of the battery device. At present, the VT system (Vehicle Test System) is usually used as a test platform to test each hardware channel in the BMS. When testing the hardware channel in the BMS, it is often necessary to set the hardware channel to correspond to the driver interface of the test platform. For different functions of the hardware channel, it is also usually necessary to set the driver interface of the test platform accordingly. When switching the hardware channel to be tested or switching different versions of the software of the hardware channel, the setting of the corresponding driver interface of the test platform also needs to be changed due to the change of the function to be tested. The previous interface setting will be invalid and needs to be reset. It cannot adapt well to the flexible switching in the multi-function configuration scenario, and the operation process is relatively cumbersome.

[0035] In order to improve the testing flexibility and adaptability of different BMS functions, a mapping relationship between the configuration of each different function of the BMS hardware channel and the test interface of the test platform can be established in advance. When different functions need to be tested, the corresponding function of the hardware channel to be tested will be mapped to the test interface of the test platform according to the mapping relationship, thereby realizing the testing of the function, such as fault injection and other operations.

[0036] The test method of the battery management system disclosed in the embodiment of the present application can be used, but not limited to, in the battery management system of electric devices such as vehicles, ships or aircraft. The test method of the battery management system disclosed in the present application can be used, which is conducive to improving the test flexibility and adaptability in the multifunctional configuration scenario of the battery management system.

[0037] The present application embodiment provides a method for testing a battery management system. Figure 1 , the testing method 100 includes steps 110 to 130 .

[0038] Step 110, determining a first interface system variable set. The first interface system variable set includes at least one driving variable. The at least one driving variable indicates at least one state of the first test interface.

[0039] Step 120, determining a second interface system variable set. The second interface system variable set includes at least one operation variable. The at least one operation variable indicates at least one state of any second test interface in the battery management system.

[0040] Step 130: Map the second test interface to the first test interface based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set.

[0041] The Battery Management System (BMS) includes different hardware channels, such as different dry contacts (i.e., passive switches) in the BMS. Each dry contact has only two states: on and off, and there is no polarity interchangeability between the two contact points. The hardware channels in the BMS may have different functions, which can be configured in the BMS software. For example, for the same dry contact, as the software switches, it may be configured as different functions such as A dry contact, electrical compartment fan dry contact, X dry contact, etc.

[0042] In an embodiment of the present application, the "first test interface" may include a test interface of a test platform for testing the BMS, for example, it may be a test interface in a VT system (for example, a test interface with an interface name of DI_Contact8+_Drive, etc.). For each first test interface, a corresponding first interface system variable set may be determined respectively. The first interface system variable set includes one or more drive variables. Each drive variable may be used to set the state of the first test interface. For example, when testing a dry contact in a BMS, the first test interface may be set to a closed or disconnected state, or may be set to a short circuit with the power supply, a short circuit with the ground, or other states.

[0043] In an embodiment of the present application, the "second test interface" can be used to indicate hardware channels under different functions in the BMS. In one example, the second test interface can indicate a dry contact hardware channel in the BMS that is set to the electrical compartment fan dry contact function. Similar to the first test interface, for each second test interface, a second interface system variable set can be determined separately. The second interface system variable set includes one or more operation variables. Each operation variable can be used to set the state of the second test interface. For example, when testing the above-mentioned electrical compartment fan dry contact, the second test interface can be set to a closed or disconnected state, or it can be set to a short circuit with the power supply, short circuit with the ground, etc.

[0044] After determining the first interface system variable set and the second interface system variable set, the second test interface to be tested in the BMS can be mapped to the first test interface of the test platform according to a predetermined mapping relationship, so that the simulation test of the second test interface to be tested in the BMS can be achieved by setting different variables at the first test interface of the test platform.

[0045] In some embodiments, the testing method 100 may be executed by testing software, such as a CANoe testing tool.

[0046] By mapping any second test interface in the BMS to the first test interface, the different functions of each hardware channel in the BMS can be implemented on the interface of the test platform, thereby realizing simulation testing of each hardware channel function of the BMS without switching the test interface of the test platform, simplifying the relevant configuration of the test and improving the flexibility of the test process.

[0047] According to some embodiments of the present application, at least one operating variable corresponds one-to-one to at least one driving variable.

[0048] In order to implement simulation test of the second test interface to be tested in the BMS by setting different variables at the first test interface of the test platform, it is necessary to set the driving variable of the first test interface and the operating variable of the second test interface to correspond to each other one by one. In this way, when setting a certain driving variable, the corresponding setting of the corresponding operating variable can be simulated.

[0049] The operating variables and the driving variables are set to correspond one to one, so that the settings of the operating variables of the second test interface can be simulated by setting the driving variables of the first test interface, and the hardware channels of the BMS can be accurately simulated to improve the accuracy of the test results.

[0050] According to some embodiments of the present application, step 120 includes: determining a second interface system variable set corresponding to the second test interface to be tested in the battery management system based on the second test interface to be tested.

[0051] As described above, for the hardware channel in the BMS, as the software switches, it may correspond to different function settings. Therefore, the second interface system variable set will also be different as the software switches. When testing the second test interface in the BMS, it is necessary to first determine the specific function of the second test interface to be tested, such as the corresponding parameter configuration, etc., and determine the corresponding second interface system variable set according to the second test interface. In one example, for a specific hardware channel in the BMS, in a certain version of the software, the hardware channel is set to the electrical compartment fan dry contact, that is, the second test interface is the electrical compartment fan dry contact. At this time, the corresponding second interface system variable set may include several operation variables, such as an operation variable indicating whether the electrical compartment fan dry contact is turned on or off, and an operation variable indicating the fault mode of the electrical compartment fan dry contact (for example: short circuit with the power supply, short circuit with the ground, short circuit with the busbar, etc.).

[0052] For hardware channels with different functions in the BMS, the corresponding second interface system variable set can be determined according to the specific function of the hardware channel, thereby achieving accurate simulation of each hardware channel in the BMS.

[0053] According to some embodiments of the present application, the testing method 100 further includes: Prior to step 120 : identifying a second test interface to be tested in the battery management system.

[0054] In some embodiments, the second test interface to be tested can be identified according to the software configuration table of the current software of the BMS. In one example, the second test interface to be tested can be identified by a software configuration mapping tool. The software configuration table of the BMS is used as input, and the relevant function configuration parameters of the second test interface in the software can be identified according to the configuration parameters for the relevant functions in the software configuration table. After identifying the second test interface corresponding to the version of the software, the corresponding second interface system variable set can be determined.

[0055] When testing the BMS, the function of the hardware channel to be tested is first identified, so that the corresponding second interface system variable set can be accurately determined.

[0056] According to some embodiments of the present application, step 130 includes: Based on the mapping relationship, a driving variable corresponding to each operating variable in at least one operating variable is assigned a value.

[0057] Since the operating variables of the second test interface correspond one-to-one to the driving variables of the first test interface, after determining the mapping relationship between the second interface system variable set and the first interface system variable set, the operating variables of the second test interface can be assigned to the corresponding driving variables of the first test interface.

[0058] Continue to use the second test interface as the electrical warehouse fan dry contact, and the first test interface as the test interface named DI_Contact8+_Drive in the VT system as an example for explanation. For the DI_Contact8+_Drive test interface, the drive variable includes a drive variable indicating on and off and a drive variable indicating fault injection. In one example, the drive variable indicating on and off can be set to 1 or 2, where 1 indicates closed and 2 indicates open; the drive variable indicating fault injection can be set to 1, 2, 3, 4, where 1 indicates short circuit with power supply, 2 indicates short circuit with ground, 3 indicates short circuit with busbar A, and 4 indicates short circuit with busbar B. For the electrical warehouse fan dry contact, the operation variable also includes an operation variable indicating on and off and an operation variable indicating fault injection. In one example, the operation variable indicating on and off can be set to 1 or 2, where 1 indicates closed and 2 indicates open; the operation variable indicating fault injection can be set to 1, 2, 3, 4, where 1 indicates short circuit with power supply, 2 indicates short circuit with ground, 3 indicates short circuit with busbar A, and 4 indicates short circuit with busbar B. According to the predetermined mapping relationship, the operation variable name corresponding to the electrical warehouse fan dry contact indicating on and off is assigned to the drive variable indicating on and off of the DI_Contact8+_Drive test interface, and the operation variable name corresponding to the electrical warehouse fan dry contact indicating fault injection is assigned to the drive variable indicating fault injection of the DI_Contact8+_Drive test interface.

[0059] After determining the mapping relationship between the second interface system variable set and the first interface system variable set, each operating variable is assigned to its corresponding driving variable, so that the first test interface can be used to simulate the function of the second test interface in the BMS, thereby improving the flexibility and accuracy of the test.

[0060] According to some embodiments of the present application, the mapping relationship is predetermined according to process 200. Figure 2 , process 200 includes steps 210 to 220 after step 120 .

[0061] Step 210: Establish a mapping function between each of the at least one operating variable and its corresponding driving variable.

[0062] Step 220: Obtain a mapping relationship based on the mapping function.

[0063] In one example, process 200 can be implemented by a software configuration mapping tool. After determining the specific functions of the second test interface to be tested, the software configuration mapping tool can establish a mapping function between each operation variable of the second test interface and each driver variable of the first test interface, for example, by creating a mapping field, creating an index, migrating data, etc. Based on the obtained mapping function, the mapping relationship between the second interface system variable set and the first interface system variable set can be obtained.

[0064] In some embodiments, after the software configuration mapping tool obtains the mapping relationship between the second interface system variable set and the first interface system variable set, it can generate a file that can be referenced by the test software. Taking the test software as a CANoe test tool as an example, the software configuration mapping tool can output the mapping relationship as a .can format file that can be referenced by the CANoe test tool. The CANoe test tool references this file to obtain the mapping relationship between the second interface system variable set and the first interface system variable set, so that the second test interface can be mapped to the first test interface.

[0065] By accurately establishing the mapping relationship between variables, the accuracy of the simulation test can be improved.

[0066] According to some embodiments of the present application, the testing method 100 further includes: After step 130: setting the first interface system variable set as the initial system variable set.

[0067] After mapping the second test interface to the first test interface, the first test interface can be initialized. Continuing to use the second test interface as the electrical warehouse fan dry contact as an example, when the electrical warehouse fan dry contact is mapped to the first test interface of the test platform, the corresponding variables can be initialized. For example, the initial system variable set can be to set the drive variable representing on and off to a closed state.

[0068] By setting the first interface system variable set as the initial system variable set, the interface state can be initialized, the interference with the test results can be reduced, and the test accuracy can be improved.

[0069] According to some embodiments of the present application, the testing method 100 further includes: identifying at least one testing board.

[0070] In the example of using the VT system as a test platform, the test board is a VT board. Before testing the BMS, it is necessary to identify each VT board and perform corresponding tests on the BMS based on the corresponding VT board.

[0071] By accurately identifying the test board in the test platform, accurate simulation testing can be achieved and the accuracy of the test results can be improved.

[0072] According to some embodiments of the present application, the testing method 100 further includes: determining a first testing board from at least one testing board based on the first interface system variable set. The first testing board is used to test the battery management system.

[0073] Continuing to take the test board as a VT board as an example, according to the functions required for the test, the VT board to be used in this test can be determined from multiple VT boards, and the VT board can be used to perform corresponding tests on the BMS.

[0074] According to the function to be tested, the test board to be used for the test is determined from multiple test boards to achieve accurate simulation testing.

[0075] According to some embodiments of the present application, the testing method 100 further includes: configuring a first testing board according to the first interface system variable set.

[0076] After determining the test board to be used, the defined first interface system variable set can be assigned to the corresponding test board. For example, an assignment function can be used to assign all driving variables in the first interface system variable set to the corresponding test board. The test board is used to implement the corresponding functions of the first test interface and perform corresponding tests on the BMS.

[0077] By configuring the test board used for the test according to the first interface system variable set, accurate simulation testing can be achieved.

[0078] According to some embodiments of the present application, the at least one driving variable includes a first driving variable and a second driving variable.

[0079] The first driving variable indicates that the first test interface is in a first driving state or a second driving state.

[0080] The second driven variable indicates a fault condition injected into the first test interface.

[0081] In the example described above, the first driving variable may be a driving variable indicating on and off, and may be set to 1 or 2, where 1 indicates closed and 2 indicates open. The second driving variable may be a driving variable indicating fault injection, and may be set to 1, 2, 3, or 4, where 1 indicates shorting to the power supply, 2 indicates shorting to the ground, 3 indicates shorting to busbar A, and 4 indicates shorting to busbar B.

[0082] It should be understood that in other embodiments, the first driving variable and the second driving variable can be set according to usage requirements, and the present disclosure does not limit this.

[0083] By setting different driving variables, simulation tests for different states can be implemented to improve the comprehensiveness of the test results.

[0084] According to some embodiments of the present application, at least one operating variable includes a first operating variable and a second operating variable.

[0085] The first operation variable indicates that the second test interface is in the third driving state or the fourth driving state.

[0086] The second operating variable indicates a fault condition injected into the second test interface.

[0087] In the example described above, the first operation variable may be an operation variable representing on and off, and may be set to 1 or 2, where 1 represents closed and 2 represents open. The second operation variable may be an operation variable representing fault injection, and may be set to 1, 2, 3, or 4, where 1 represents shorting to the power supply, 2 represents shorting to the ground, 3 represents shorting to busbar A, and 4 represents shorting to busbar B.

[0088] It should be understood that in other embodiments, the first operating variable and the second operating variable can be set according to usage requirements, and the present disclosure does not limit this.

[0089] After the second test interface is mapped to the first test interface, the simulation of the second test interface can be achieved by setting the drive variable corresponding to the first test interface. Continuing with the example of the electrical warehouse fan dry contact, when the DI_Contact8+_Drive test interface of the test platform is mapped to the electrical warehouse fan dry contact, setting the first drive interface of the DI_Contact8+_Drive test interface to 1 indicates that the electrical warehouse fan dry contact is closed, and setting the second drive interface of the DI_Contact8+_Drive test interface to 1 indicates that the electrical warehouse fan dry contact has a short circuit fault with the power supply.

[0090] By setting different operating variables, simulation tests for different states can be implemented to improve the comprehensiveness of the test results.

[0091] Based on the same technical concept, the present application embodiment provides a test device for a battery management system. Figure 3 The testing device 300 includes a first module 310 , a second module 320 and a third module 330 .

[0092] The first module 310 is used to determine a first interface system variable set. The first interface system variable set includes at least one driving variable. The at least one driving variable indicates at least one state of the first test interface.

[0093] The second module 320 is used to determine a second interface system variable set. The second interface system variable set includes at least one operation variable. The at least one operation variable indicates at least one state of any second test interface in the battery management system.

[0094] The third module 330 is used to map the second test interface to the first test interface based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set.

[0095] The first module 310, the second module 320 and the third module 330 in the test device 300 may correspond to the following Figure 1 For the sake of brevity, steps 110 to 130 in the test method 100 are not described here in detail. It should be understood that, corresponding to the embodiment of the test method 100, the embodiment of the test device 300 may also include more modules.

[0096] It should be noted that the functions of the various modules discussed herein can be divided into multiple modules, and / or at least some functions of multiple modules can be combined into a single module. The specific module discussed herein performs an action including the specific module itself performing the action, or alternatively the specific module calls or otherwise accesses another component or module that performs the action (or performs the action in conjunction with the specific module). Therefore, the specific module that performs an action can include the specific module itself that performs the action and / or the specific module calls or otherwise accesses another module that performs the action. For example, the first module 310 and the second module 320 can be combined into a single module in some embodiments.

[0097] It should also be understood that various techniques may be described herein in the general context of software hardware elements or program modules. Figure 3The various modules described can be implemented in hardware or in hardware in combination with software and / or firmware. For example, these modules can be implemented as computer program codes / instructions, which are configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, these modules can be implemented as hardware logic / circuits. For example, in some embodiments, one or more of the first module 310, the second module 320, and the third module 330 can be implemented together in a system on chip (System on Chip, SoC). SoC may include an integrated circuit chip (which includes a processor (e.g., a central processing unit (CPU), a microcontroller, a microprocessor, a digital signal processor (DSP), etc.), a memory, one or more communication interfaces, and / or one or more components in other circuits), and may optionally execute the received program code and / or include embedded firmware to perform functions.

[0098] The present application embodiment provides a computing device. The computing device includes: at least one processor; and at least one memory connected to the at least one processor in communication, wherein the at least one memory stores instructions, and when the instructions are executed by the at least one processor alone or together, the computing device executes the test method 100. The computing device is, for example, Figure 4 Computing device 400 is shown. Figure 4 An example configuration of a computing device 400 that can be used to implement the methods described herein is shown. For example, the above-described testing apparatus 300 can be implemented in whole or at least in part by the computing device 400 or a similar device or system.

[0099] The computing device 400 may include at least one processor 402, memory 404, communication interface(s) 406, display device 408, other input / output (I / O) devices 410, and one or more mass storage devices 412, which can communicate with each other, such as via a system bus 414 or other appropriate connection. The memory 404 has instructions stored thereon, which, when executed by the processor 402, cause the processor 402 to perform methods such as those in the above-described embodiments.

[0100] The computing device 400 can be a variety of different types of devices. Examples of computing device 400 include, but are not limited to, desktop computers, server computers, laptop or netbook computers, mobile devices (e.g., tablet computers, cellular or other wireless phones (e.g., smart phones), notepad computers, mobile stations), wearable devices (e.g., glasses, watches), entertainment devices (e.g., entertainment appliances, set-top boxes communicatively coupled to a display device, game consoles), televisions or other display devices, automotive computers, and the like.

[0101] Processor 402 may be a single processing unit or multiple processing units, all of which may include a single or multiple computing units or multiple cores. Processor 402 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuits, and / or any device that manipulates signals based on operating instructions. Among other capabilities, processor 402 may be configured to obtain and execute computer-readable instructions stored in memory 404, mass storage device 412, or other computer-readable media, such as program code for operating system 416, program code for application program 418, program code for other programs 420, and the like.

[0102] The memory 404 and the mass storage device 412 are examples of computer-readable storage media for storing instructions that are executed by the processor 402 to implement the various functions described above. For example, the memory 404 may generally include both volatile memory and non-volatile memory (e.g., RAM, ROM, etc.). In addition, the mass storage device 412 may generally include a hard drive, a solid-state drive, a removable medium, including external and removable drives, a memory card, a flash memory, a floppy disk, an optical disk (e.g., a CD, a DVD), a storage array, a network attached storage, a storage area network, etc. The memory 404 and the mass storage device 412 may all be collectively referred to herein as memory or computer-readable storage media, and may be a non-transitory medium capable of storing computer-readable, processor-executable program instructions as computer program code, which may be executed by the processor 402 as a specific machine configured to implement the operations and functions described in the examples herein.

[0103] A plurality of programs may be stored on the mass storage device 412. These programs include an operating system 416, one or more application programs 418, other programs 420, and program data 422, and they may be loaded into the memory 404 for execution. Examples of such application programs or program modules may include, for example, computer program logic (e.g., computer program code or instructions) for implementing the following components / functions: the test apparatus 300 (including the first module 310, the second module 320, and the third module 330), the test method 100 (including any suitable steps of the test method 100), and / or other embodiments described herein.

[0104] Although in Figure 4 404 of computing device 400 , but operating system 416 , one or more application programs 418 , other programs 420 , and program data 422 , or portions thereof, may be implemented using any form of computer-readable media accessible by computing device 400 .

[0105] One or more communication interfaces 406 are used to exchange data with other devices, such as through a network, direct connection, etc. Such communication interfaces can be one or more of the following: any type of network interface (e.g., a network interface card (NIC)), a wired or wireless (such as IEEE 802.11 wireless LAN (WLAN)) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth™ interface, a Near Field Communication (NFC) interface, etc. The communication interface 406 can facilitate communication within a variety of network and protocol types, including wired networks (e.g., LAN, cable, etc.) and wireless networks (e.g., WLAN, cellular, satellite, etc.), the Internet, etc. The communication interface 406 can also provide communication with an external storage device (not shown) such as a storage array, a network attached storage, a storage area network, etc.

[0106] In some examples, a display device 408 such as a monitor may be included for displaying information and images to the user. Other I / O devices 410 may be devices that receive various inputs from the user and provide various outputs to the user, and may include touch input devices, gesture input devices, cameras, keyboards, remote controls, mice, printers, audio input / output devices, and the like.

[0107] The technology described herein can be supported by these various configurations of the computing device 400, and is not limited to the specific examples of the technology described herein. For example, the functionality can also be implemented in whole or in part on the "cloud" by using a distributed system. The cloud includes and / or represents a platform for resources. The platform abstracts the underlying functionality of the hardware (e.g., server) and software resources of the cloud. Resources may include applications and / or data that can be used when performing computing processing on a server away from the computing device 400. Resources may also include services provided over the Internet and / or through a subscriber network such as a cellular or Wi-Fi network. The platform can abstract resources and functions to connect the computing device 400 to other computing devices. Therefore, the implementation of the functions described herein can be distributed throughout the cloud. For example, the functions can be implemented partially on the computing device 400 and partially through a platform that abstracts the functions of the cloud.

[0108] An embodiment of the present application also provides a computer-readable storage medium on which instructions are stored. When the instructions are executed by a processor, the processor executes a method as described in any of the above embodiments.

[0109] Computer-readable storage media include volatile and nonvolatile, removable and non-removable media implemented by any method or technology for storage of information, such as computer-readable instructions, data structures, program modules, or other data. Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical storage devices, magnetic cassettes, magnetic tapes, magnetic disk storage devices or other magnetic storage devices, or any other non-transmission media that can be used to store information for access by a computing device.

[0110] An embodiment of the present application also provides a computer program product, including instructions, which, when executed by a processor, causes the processor to execute a method as described in any of the above embodiments.

[0111] A specific embodiment of the present application is described below. It should be understood that this specific embodiment is described for illustrative purposes only and should not be interpreted as limiting the present application.

[0112] According to the software configuration table of the current software of the BMS, the second test interface to be tested can be identified. The software configuration table of the BMS is used as the input of the software configuration mapping tool, and according to the configuration parameters for the relevant functions in the software configuration table, the relevant function configuration parameters of the second test interface in the software can be identified. Taking the second test interface identified as the dry contact of the electric compartment fan as an example, the corresponding second interface system variable set is determined. The second interface system variable set includes a first operating variable and a second operating variable. The first driving variable is a driving variable representing on and off, which can be set to 1 or 2, where 1 indicates that the dry contact of the electric compartment fan is closed, and 2 indicates that the dry contact of the electric compartment fan is disconnected. The second driving variable is a driving variable representing fault injection, which can be set to 1, 2, 3, 4, where 1 indicates that the dry contact of the electric compartment fan is short-circuited with the power supply, 2 indicates that the dry contact of the electric compartment fan is short-circuited with the ground, 3 indicates that the dry contact of the electric compartment fan is short-circuited with busbar A, and 4 indicates that the dry contact of the electric compartment fan is short-circuited with busbar B.

[0113] Taking the test interface named DI_Contact8+_Drive in the first test interface VT system as an example, determine the first interface system variable set corresponding to it. The first interface system variable set includes a first drive variable and a second drive variable. The first drive variable is a drive variable indicating on and off, which can be set to 1 or 2, where 1 indicates closed and 2 indicates open. The second drive variable is a drive variable indicating fault injection, which can be set to 1, 2, 3, 4, where 1 indicates short circuit with power supply, 2 indicates short circuit with ground, 3 indicates short circuit with busbar A, and 4 indicates short circuit with busbar B.

[0114] Identify each VT board in the VT test system and determine the VT board to be used in this test. Use the assignment function to assign all driver variables in the first interface system variable set to the corresponding test board, and use the test board to implement the corresponding function of the first test interface.

[0115] According to the .can format file output by the software configuration mapping tool, the mapping relationship between the second interface system variable set and the first interface system variable set can be obtained. According to the mapping relationship, the second test interface (i.e., the electrical warehouse fan dry contact) can be mapped to the first test interface (i.e., the DI_Contact8+_Drive test interface). The simulation of the second test interface can be achieved by setting the drive variable corresponding to the first test interface. For example, when the DI_Contact8+_Drive test interface is mapped to the electrical warehouse fan dry contact, setting the first drive interface of the DI_Contact8+_Drive test interface to 1 indicates that the electrical warehouse fan dry contact is closed, and setting the second drive interface of the DI_Contact8+_Drive test interface to 1 indicates that the electrical warehouse fan dry contact has a short circuit with the power supply, thereby realizing the simulated switching of the electrical warehouse fan dry contact state and related fault injection and other simulation tests.

[0116] When the software version of the BMS is switched or the hardware channel of the BMS is switched, the above steps can be repeated to identify the second test interface to be tested and map it to the first test interface, so that the simulation test of the second test interface to be tested can be achieved through the first test interface.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A method for testing a battery management system, characterized in that: include: Determining a first interface system variable set, the first interface system variable set comprising at least one drive variable, the at least one drive variable indicating at least one state of a first test interface; Determine a second interface system variable set, the second interface system variable set including at least one operation variable, the at least one operation variable indicating at least one state of any second test interface in the battery management system; as well as Based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set, the second test interface is mapped to the first test interface.

2. The testing method according to claim 1, characterized in that: The at least one manipulated variable corresponds one-to-one to the at least one driving variable.

3. The testing method according to claim 2, characterized in that: Determining the second interface system variable set includes: A second interface system variable set corresponding to a second test interface to be tested in the battery management system is determined.

4. The testing method according to claim 3, characterized in that: The test method also includes: Before determining the second interface system variable set: The second test interface to be tested in the battery management system is identified.

5. The testing method according to claim 3, characterized in that: The mapping of the second test interface to the first test interface based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set comprises: Based on the mapping relationship, a driving variable corresponding to each of the at least one operating variable is assigned a value.

6. The testing method according to claim 2, characterized in that: The mapping relationship is predetermined according to the following steps: After determining the second interface system variable set: establishing a mapping function between each of the at least one manipulated variable and the driving variable corresponding thereto; and Based on the mapping function, the mapping relationship is obtained.

7. The testing method according to any one of claims 1 to 6, characterized in that: The test method also includes: After mapping the second test interface to the first test interface based on the predetermined mapping relationship between the second interface system variable set and the first interface system variable set: The first interface system variable set is set as the initial system variable set.

8. The testing method according to any one of claims 1 to 6, characterized in that: The test method also includes: At least one test board is identified.

9. The testing method according to claim 8, characterized in that: The test method also includes: Based on the first interface system variable set, a first test board is determined from the at least one test board, where the first test board is used to test the battery management system.

10. The testing method according to claim 9, characterized in that: The test method also includes: Configure the first test board according to the first interface system variable set.

11. The testing method according to any one of claims 1 to 6, characterized in that: The at least one driving variable comprises: a first driving variable, the first driving variable indicating that the first test interface is in a first driving state or a second driving state; and A second driving variable indicates a fault state injected into the first test interface.

12. The testing method according to any one of claims 1 to 6, characterized in that: The at least one operating variable comprises: a first operating variable, the first operating variable indicating that the second test interface is in a third driving state or a fourth driving state; and A second operation variable indicates a fault state injected into the second test interface.

13. A test device for a battery management system, characterized in that: include: A first module is used to determine a first interface system variable set, wherein the first interface system variable set includes at least one driving variable, and the at least one driving variable indicates at least one state of a first test interface; A second module is used to determine a second interface system variable set, wherein the second interface system variable set includes at least one operation variable, and the at least one operation variable indicates at least one state of any second test interface in the battery management system; as well as The third module is used to map the second test interface to the first test interface based on a predetermined mapping relationship between the second interface system variable set and the first interface system variable set.

14. A computing device comprising: at least one processor; as well as At least one memory is communicatively connected to the at least one processor, the at least one memory stores instructions, and when the instructions are executed by the at least one processor individually or collectively, the computing device executes the testing method according to any one of claims 1 to 12. 15 . A computer-readable storage medium storing instructions, which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to perform the testing method of any one of claims 1 to 12.

16. A computer program product comprising instructions, which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to perform the testing method of any one of claims 1 to 12.

Citation Information

Patent Citations

  • Car body electric control system testing platform based on hardware-in-the-loop

    CN105446312A

  • Hardware-in-the-loop test system for whole vehicle controller for electric vehicle and test method

    CN106444721A

  • Application program interface management method and device, computer equipment and storage medium

    CN112579124A

  • Hardware-in-the-loop test platform and test method of integrated automatic mechanical gearbox

    CN114397868A

  • Method and equipment for realizing physical interface of logic system design based on virtual interface

    CN114912396A