CN111007836B - New energy BMS hardware-in-the-loop test case library establishing method - Google Patents

New energy BMS hardware-in-the-loop test case library establishing method Download PDF

Info

Publication number
CN111007836B
CN111007836B CN201911311669.1A CN201911311669A CN111007836B CN 111007836 B CN111007836 B CN 111007836B CN 201911311669 A CN201911311669 A CN 201911311669A CN 111007836 B CN111007836 B CN 111007836B
Authority
CN
China
Prior art keywords
test
hardware
test case
bms
loop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911311669.1A
Other languages
Chinese (zh)
Other versions
CN111007836A (en
Inventor
何春芳
杨帆
赵建华
米燕
张建东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Motor Corp
Original Assignee
Dongfeng Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Motor Corp filed Critical Dongfeng Motor Corp
Priority to CN201911311669.1A priority Critical patent/CN111007836B/en
Publication of CN111007836A publication Critical patent/CN111007836A/en
Application granted granted Critical
Publication of CN111007836B publication Critical patent/CN111007836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a new energy BMS hardware in-loop test case library establishing method, which comprises the following steps: 1. establishing a hardware-in-loop test project in hardware-in-loop simulation test software, 2, respectively adopting different storage spaces to perform block management on the project, and preventing data from overlapping; 3. building a BMS hardware-in-loop test case management file by adopting test case execution software, 4, forming a BMS hardware-in-loop test sequence of each test case of the BMS hardware-in-loop test case management file in the step 3 according to the BMS hardware-in-loop test requirement, and defining the test sequence and the cycle number of each test case. The invention respectively defines the test software, the test hardware, the model and the test case, prevents any one from generating problems, influences the whole test and is convenient for correcting errors.

Description

New energy BMS hardware-in-the-loop test case library establishing method
Technical Field
The invention relates to the technical field of a vehicle controller of a new energy vehicle, in particular to a method for establishing a new energy BMS hardware-in-loop test case library.
Background
Compared with the traditional vehicle, the software function of the whole vehicle controller of the new energy vehicle is exponentially multiplied. For the verification of software functions and hardware robustness, a more convenient method is to use hardware-in-the-loop testing. At present, the design is performed in five aspects, such as writing of test cases in hardware-in-loop test, paying attention to management of test requirements, type classification of test cases, tracing of product function requirements and test requirement relationships, and coverage relationships between test requirements and test cases. And generating a test flow according to the test requirement, and completing the test of a complete test case library. Some test establishing methods fully consider the stability of software and hardware configuration, and respectively configure different tool software, required test hardware, models and test cases in separate files. When a problem occurs in the test, the method is beneficial to the investigation, but basically adopts a plurality of software to define the test software, the test hardware, the model and the test case, and basically uses 7 or more software. The method brings great difficulty to the ring test work of application hardware.
Disclosure of Invention
The invention aims to provide a method for establishing a hardware-in-loop test case library of a new energy BMS (Battery management System) (BATTERY MANAGEMENT SYSTEM). the method is characterized in that test software, test hardware, a model and test cases are respectively defined, so that any one of the test software, the test hardware, the model and the test cases is prevented from being in a problem, the whole test is influenced, and error correction is facilitated.
In order to achieve the purpose, the new energy BMS hardware-in-loop test case library establishing method is characterized by comprising the following steps of:
step 1: establishing a hardware-in-loop test item in hardware-in-loop simulation test software, and adding the following five items in the hardware-in-loop test item:
item A, a model for simulating the running state of the whole vehicle; the hardware board card required by the in-loop test of the item B, BMS hardware; item C, an incidence relation file of a model for simulating the running state of the whole vehicle and the input/output relation of BMS hardware; the view window of the project D, BMS hardware for any variable during the loop test; the project E, BMS hardware is in the incidence relation file between any variable observation window and the corresponding variable in the ring test process;
step 2: for items A, B, C, D and E, different storage spaces are respectively adopted for block management to prevent data from overlapping;
and step 3: the method comprises the following steps of establishing a BMS hardware-in-loop test case management file by adopting test case execution software, wherein the BMS hardware contains four contents in the loop test case management file:
1. adding the items A, B, C, D and E into a BMS hardware-in-loop test case management file as an environment file for BMS hardware-in-loop test;
2. the method comprises the following steps of establishing a test case library by using test case execution software, wherein each test case library is a test case for testing one type of functions, each test case library consists of a plurality of test cases, each test case is a test case with one type of function, and the establishment of each test case is operated by using an INTES self-contained function;
3. setting an output mode of a BMS hardware in-loop test report;
4. defining a required BMS hardware-in-loop test tool, and setting an ID address of an INCA tool for testing at a corresponding position of test case execution software;
and 4, step 4: and (3) according to the BMS hardware in-loop test requirement, forming a BMS hardware in-loop test sequence by each test case of the BMS hardware in-loop test case management file in the step (3), and defining the test sequence and the cycle number of each test case.
The invention has the following beneficial effects:
1. the method completes the establishment of the new energy BMS hardware in the loop test case library by using project management and test management respectively. And management software designed by test work is simplified. The test environment, the test case and the test tool are managed by one piece of software, and different working spaces are adopted for storage allocation of different resources. Not only eliminates the direct mutual influence of different resources, but also manages all the resources used for testing by the same software, thereby reducing the difficulty of testing work.
2. In the project management and test management of the invention, different work spaces are adopted to complete the management of different projects, and the cross influence of data is prevented (when the data is stored in a cross way instead of in blocks, an access data error may occur in the execution, namely, a certain data in a data block 2 is used as the data in a data block 1, even if no error occurs, the data of which address is required to be continuously calculated in the test, the calculation time is increased, and the test efficiency is reduced).
3. In the test case management file, the test cases used in the test are put into the test case management file instead of using macro definition EXCELE or other software (interpretation: the dedicated application of the test case management file is not EXCEL, and the last patent is) to finish the definition of the test cases, so that the definition language of the test sequence is unified, and the test work is simplified.
4. In the test management of the invention, each test case in the test case library is positioned into a sub-sequence which cannot be subdivided, and the test case can test the function of the whole vehicle. The definition method meets the data segmentation requirements of data of the bottom layer data of the database on a three-normal form, reduces the correlation among test cases to the maximum extent, and reduces the influence degree among the test cases (for example, when the test case 1 can be tested, when the vehicle speed is 15KM/H, and the gear is shifted from 2 gear to 3 gear, the test case is a single function of the test, if the test case 2 can be tested, when the vehicle speed is 15KM/H, and the gear is shifted from 2 gear to 3 gear, the functions of low SOC and power reduction of the motor can be tested, so that the test cases 1 and 2 have the overlapping of the test functions.
Drawings
FIG. 1 is a flow chart of the present invention;
Detailed Description
The invention is described in further detail below with reference to the following figures and specific examples:
the new energy BMS hardware-in-loop test case library establishment method shown in FIG. 1 comprises the following steps:
step 1: establishing a hardware-in-loop test item in hardware-in-loop simulation test software, and adding the following five items in the hardware-in-loop test item:
item A, a model for simulating the running state of the whole vehicle; the hardware board card required by the in-loop test of the item B, BMS hardware; item C, an incidence relation file of a model for simulating the running state of the whole vehicle and the input/output relation of BMS hardware; the view window of the project D, BMS hardware for any variable during the loop test; the project E, BMS hardware is in the incidence relation file between any variable observation window and the corresponding variable in the ring test process;
step 2: for items A, B, C, D and E, different storage spaces are respectively adopted for block management to prevent data from overlapping;
and step 3: the method comprises the following steps of establishing a BMS hardware-in-loop test case management file by adopting test case execution software, wherein the BMS hardware contains four contents in the loop test case management file:
1. adding the items A, B, C, D and E into a BMS hardware-in-loop test case management file as an environment file for BMS hardware-in-loop test;
2. the method comprises the following steps of establishing a test case library by using test case execution software, wherein each test case library is a test case for testing one type of functions, each test case library consists of a plurality of test cases, each test case is a test case with one type of functions, and the establishment of each test case is operated by using an INTES self-contained function, for example: wait (a) function, which can wait a seconds during the test;
3. setting the output mode of the BMS hardware in the ring test report (in the test management, a check mode is needed to define what test data needs to be output in the test report, and the display mode of the test data output is single data or a chart, and the detail degree of the display, such as the display of the last result of one test data or the display of the data change every second);
4. defining a required BMS hardware-in-loop test tool, and setting an ID address of an INCA tool for testing at a corresponding position of test case execution software, namely enabling the test case execution software to finish data acquisition and calibration work in the test;
and 4, step 4: and (3) according to the BMS hardware in-loop test requirement, forming a BMS hardware in-loop test sequence by each test case of the BMS hardware in-loop test case management file in the step (3), and defining the test sequence (in the test management, the execution sequence of the test cases is realized in a dragging mode, queuing is carried out, the execution cycle number of each test case needs to be set in the test so as to achieve the purpose of multiple execution), and the cycle number of each test case, namely realizing the establishment of the BMS hardware in the loop test case library.
In step 2 of the above technical solution, when allocating storage spaces to the items A, B, C, D and E, the items A, B, C, D and E are to be placed in different storage spaces, and the storage spaces do not intersect with each other, and when performing block management, the first addresses of the items A, B, C, D and E are recorded (the first address of storage is a key for data storage, and the first address is found, so that it is known where the data is, the length of the data is determined by the size of the offset), and the storage spaces of the items A, B, C, D and E are collectively called a working space.
In the technical scheme, the hardware board cards required by the BMS hardware in-loop test comprise a single battery simulation unit board card, a single battery injection fault board card, an electrical fault injection board card, a single battery injection fault board card and an electrical fault injection board card.
In the above technical solution, when the storage space is allocated to the items A, B, C, D and E, the storage space is reserved according to the size of the existing data volume in the items and the possibility of later expansion.
In the technical scheme, the hardware-in-loop simulation test software is Veristand software.
In the above technical solution, the test case execution software is an inces software.
In the above technical solution, in step 3, the output mode of the BMS hardware in the ring test report includes display of the test result of the BMS hardware in the ring test, a sequence of the display of the result, a detailed degree of the display of the result, a storage address of the test report, and a storage format.
The example of step 4 of the above technical solution is as follows: according to the BMS hardware in-loop test requirement, an A1 test case can be selected from a test case library A; selecting a B2 test case from the test case library B; from the test case library C, C3 test cases are selected. According to the test requirement, the test is carried out in the sequence of C3-B2-A1, A1 is carried out 1 time, B2 is carried out 3 times, C3 is carried out 2 times, namely, the test is finally set to C3(2) -B2 (3) -A1 (1), and the C3(2) -B2 (3) -A1 (1) test sequence can be subjected to automatic test in the test environment of INTES by pressing an execution key.
The test software, the test hardware, the model and the test case are respectively defined, different test spaces are used for storage, data cross storage is prevented, any problem is prevented, the whole test is influenced, the test software, the test hardware, the model and the test case are managed by adopting the same software, error correction is facilitated, the use process of a user is considered, an observation window of any variable of the BMS hardware in the whole process of the ring test can be defined, test data can be observed in the test process, a test data display mode in a test report can be defined, all data required by the test can be conveniently managed, and unified platform management is performed.
Details not described in this specification are within the skill of the art that are well known to those skilled in the art.

Claims (6)

1. A new energy BMS hardware-in-the-loop test case library establishing method is characterized by comprising the following steps:
step 1: establishing a hardware-in-loop test item in hardware-in-loop simulation test software, and adding the following five items in the hardware-in-loop test item:
item A, a model for simulating the running state of the whole vehicle; the hardware board card required by the in-loop test of the item B, BMS hardware; item C, an incidence relation file of a model for simulating the running state of the whole vehicle and the input/output relation of BMS hardware; the view window of the project D, BMS hardware for any variable during the loop test; the project E, BMS hardware is in the incidence relation file between any variable observation window and the corresponding variable in the ring test process;
step 2: for items A, B, C, D and E, different storage spaces are respectively adopted for block management to prevent data from overlapping;
and step 3: the method comprises the following steps of establishing a BMS hardware-in-loop test case management file by adopting test case execution software, wherein the BMS hardware contains four contents in the loop test case management file:
the first aspect is that items A, B, C, D and E are added into a BMS hardware in-loop test case management file to serve as an environment file for BMS hardware in-loop test;
the second aspect is that the test case library is established by using test case execution software, each test case library is a test case for testing one type of functions, each test case library consists of a plurality of test cases, each test case is a test case with one type of functions, and the establishment of each test case is operated by using an INTES self-contained function;
the third aspect of the method comprises the steps of setting an output mode of a BMS hardware in-loop test report, defining what test data need to be output in the test report, and displaying the mode of the test data output as single data, a chart and the detailed degree of display;
in the fourth aspect, the BMS hardware-in-the-loop test tool required by definition is provided with an ID address of an INCA tool for testing at a corresponding position of test case execution software;
and 4, step 4: according to the BMS hardware in-loop test requirements, forming a BMS hardware in-loop test sequence for each test case of the BMS hardware in-loop test case management file in the step 3, and defining the sequence of the test and the cycle number of each test case;
in the step 2, when the storage spaces of the items A, B, C, D and E are allocated, the items A, B, C, D and E are placed in different storage spaces, the storage spaces do not intersect with each other, when block management is performed, the head addresses of the items A, B, C, D and E are recorded, and the storage spaces of the items A, B, C, D and E are collectively called a working space.
2. The method for establishing the hardware-in-the-loop test case library of the new energy BMS according to claim 1, wherein the method comprises the following steps: hardware board cards required by the BMS hardware in-loop test comprise a single battery simulation unit board card, a single battery injection fault board card, an electric fault injection board card, a single battery simulation unit board card, a single battery injection fault board card and an electric fault injection board card.
3. The method for establishing the hardware-in-the-loop test case library of the new energy BMS according to claim 1, wherein the method comprises the following steps: when the storage space is allocated to the items A, B, C, D and E, the storage space is reserved according to the size of the data volume in the items and the later expansion.
4. The method for establishing the hardware-in-the-loop test case library of the new energy BMS according to claim 1, wherein the method comprises the following steps: the hardware-in-loop simulation test software is Veristand software.
5. The method for establishing the hardware-in-the-loop test case library of the new energy BMS according to claim 1, wherein the method comprises the following steps: the test case execution software is INTES software.
6. The method for establishing the hardware-in-the-loop test case library of the new energy BMS according to claim 1, wherein the method comprises the following steps: in the step 3, the output mode of the BMS hardware in the ring test report comprises the display of the test result of the BMS hardware in the ring test, the sequence of the result display, the detail degree of the result display, the storage address of the test report and the storage format.
CN201911311669.1A 2019-12-18 2019-12-18 New energy BMS hardware-in-the-loop test case library establishing method Active CN111007836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911311669.1A CN111007836B (en) 2019-12-18 2019-12-18 New energy BMS hardware-in-the-loop test case library establishing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911311669.1A CN111007836B (en) 2019-12-18 2019-12-18 New energy BMS hardware-in-the-loop test case library establishing method

Publications (2)

Publication Number Publication Date
CN111007836A CN111007836A (en) 2020-04-14
CN111007836B true CN111007836B (en) 2021-06-04

Family

ID=70116814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911311669.1A Active CN111007836B (en) 2019-12-18 2019-12-18 New energy BMS hardware-in-the-loop test case library establishing method

Country Status (1)

Country Link
CN (1) CN111007836B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2801872B1 (en) * 2013-05-06 2018-06-06 dSPACE digital signal processing and control engineering GmbH Test device for testing a virtual control device
CN104062969B (en) * 2014-07-04 2016-09-21 清华大学苏州汽车研究院(吴江) A kind of automobile hardware-in-the-loop test system and method for testing
CN205121329U (en) * 2015-11-23 2016-03-30 北汽福田汽车股份有限公司 Electric motor car hardware is at ring test system
CN108415833A (en) * 2018-02-08 2018-08-17 北京智行鸿远汽车有限公司 The automation hardware-in―the-loop test method of battery management system based on ECU-TEST
CN109062804A (en) * 2018-08-17 2018-12-21 誉光评估工程咨询(青岛)有限公司 The method for building up of software test case based on BIM

Also Published As

Publication number Publication date
CN111007836A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CN102360332B (en) Software reliability accelerated test and evaluation method and computer-aided tool used in same
CN106095654A (en) Performance verification device, the system with performance verification device and method
CN107632827A (en) The generation method and device of the installation kit of application
CN106980571A (en) The construction method and equipment of a kind of test use cases
CN107480327A (en) A kind of emulation verification method, device and electronic equipment
CN108777158A (en) Test the method, apparatus and computer equipment of solid state disk Trim performances
CN104935523B (en) The processing method and equipment of a kind of load balancing
CN100531070C (en) Network resource scheduling simulation system
CN108228965B (en) Simulation verification method, device and equipment for memory cell
CN111007836B (en) New energy BMS hardware-in-the-loop test case library establishing method
CN102737743A (en) Nuclear power station master control room panel layout method and system thereof
CN104572268A (en) Efficient dynamic division method of software and hardware
CN112257362A (en) Verification method, verification device and storage medium for logic code
CN103973793A (en) Distributed aviation electronic testing system
Basit-Ur-Rahim et al. Parallel verification of UML using DiVinE tool
CN106201655A (en) Virtual machine distribution method and virtual machine distribution system
CN106203538B (en) The individual character disassembling method and device of electronic handwriting
CN107679282A (en) The emulation mode and simulator of charge pump
CN100527138C (en) Simulating example producing method and device for integrated circuit element
CN108595455B (en) Spatial data coordinate conversion method and device
CN112131806A (en) Compilation method for verification design, electronic device and storage medium
CN107040564A (en) Method of data synchronization, data synchronization server and the cloud storage system of cloud storage
CN111258827B (en) Interface model determining method and device, electronic equipment and storage medium
CN110414097A (en) IMA system resource configuration verification method and system, computer readable storage medium
CN113867943B (en) Radar software memory allocation method based on embedded system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant