Vehicle control unit hardware-in-loop automatic test case design method

A vehicle controller, automatic testing technology, applied in software testing/debugging and other directions, can solve problems such as affecting reading, unable to intuitively reflect driver operations, and uncommon test cases, and achieve the effect of easy modification.

Pending Publication Date: 2022-07-22
深蓝汽车科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a method for designing a hardware-in-the-loop automatic test case for a vehicle controller. The technical problem to be solved: when actually writing a use case, under different car models, the same driver operates different variables and variable change modes , the accumulated test cases are not universal. At the same time, the content of the test cases is usually written in the way of variable assignment and variable value judgment, which cannot intuitively reflect the driver's operation and affects reading; the time stamp of the traumatic test cases is fixed, and the middle of the modified test cases Part of the test case timestamps had to be adjusted, often requiring extensive modification

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Vehicle control unit hardware-in-loop automatic test case design method
  • Vehicle control unit hardware-in-loop automatic test case design method
  • Vehicle control unit hardware-in-loop automatic test case design method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] The present invention will be further described below in conjunction with the accompanying drawings.

[0059] like figure 1 As described above, the present invention provides a hardware-in-the-loop automatic test case design method for a vehicle controller, comprising the following steps:

[0060] S01: Write test cases through Excel, the operations in the test cases use preset keywords, and all test cases are placed on the first preset page.

[0061] Specifically, in this embodiment, taking the AC charging wake-up non-charging mode timeout test as an example, the test content is that after the driver plugs in the AC charging gun, the battery controller does not enter the corresponding charging mode within a specified time, and the whole vehicle enters the charging mode. low pressure state. This test case is written and maintained through Excel.

[0062] like figure 2 As shown, the first column of the test case is filled with the use case name "AC charging wake-up wit...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a vehicle control unit hardware-in-the-loop automatic test case design method, which comprises the steps that test cases are written through Excel, preset keywords are used for operation in the test cases, and all the test cases are placed on a first preset page; specific variable read-write operation corresponding to the keywords is written through Excel, and all the keywords are placed on a second preset page; the automatic test software is called through the script, a pkg format file of the automatic test software is generated for each keyword in the second preset page of the Excel, and the name of the pkg format file is the preset keyword; the automated testing software is called through the script, the testing cases in the first preset page of the Excel are generated into pkg format files of the automated testing software according to the names of the testing cases, and the names of the pkg format files are the names of the testing cases. The case designed by the invention can be compatible with different electric vehicle projects, is easy to change, can be directly written through Chinese, and does not affect the execution of the whole test case by changing the intermediate operation.

Description

technical field [0001] The invention belongs to the technical field of electric vehicles, and in particular relates to a hardware-in-the-loop automatic test case design technology of a vehicle controller. Background technique [0002] With the rapid development of new energy vehicles, electric vehicle controllers have become more and more complex, and its reliability is more and more difficult to guarantee. Hardware-in-the-loop testing (HIL) testing, as one of the main methods for controller hardware verification, is widely used in the field of electric vehicles, significantly reducing the number of real vehicle tests and greatly shortening the development time. [0003] When verifying the vehicle controller through the HIL test, a large number of test cases are required to ensure the reliability under multiple working conditions, and the test cases usually take time to design and accumulate. [0004] Test cases can be classified according to functions, working conditions, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 黄亮严钦山李宗华
Owner 深蓝汽车科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products