Interface automatic testing method and device for vehicle control unit

A vehicle controller and interface technology, applied in the field of testing, can solve problems such as time-consuming, and achieve the effect of improving quality and shortening test cycles

Active Publication Date: 2017-03-08
BEIJING ELECTRIC VEHICLE
View PDF3 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides an automatic testing method and device for the interface of the vehicle controller, which sol

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
  • Interface automatic testing method and device for vehicle control unit
  • Interface automatic testing method and device for vehicle control unit
  • Interface automatic testing method and device for vehicle control unit

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0076] Example 1

[0077] like figure 2 As shown, the interface automatic testing method of the vehicle controller provided by the first embodiment of the present invention includes:

[0078] Step 201: Obtain a database container file, and generate a test case and a test output file according to the database container file.

[0079] The invention is based on WinForm, after acquiring the database container file, the CAN message parsing algorithm is used to generate the test case, and the test output file is generated according to the database container file. Before generating the test case, it is necessary to process the database container file to generate the CAN message attribute configuration table. The CAN message attribute configuration table mainly includes the ID, signal length, termination bit, variable precision, and offset of the CAN message. , the maximum and minimum values ​​in the physical sense, the situation of sending and receiving, and the number of messages...

Example Embodiment

[0088] Embodiment 2

[0089] like image 3 As shown, the interface automatic testing method of the vehicle controller provided by the second embodiment of the present invention includes:

[0090] Step 301: Obtain a database container file.

[0091] Step 302: Compile and convert the database container file to generate a CAN message attribute configuration table, and generate a test output file and a test case according to the CAN message attribute configuration table.

[0092] Compile and convert the database container file to generate a CAN message attribute configuration table, wherein the CAN message attribute configuration table includes: N physical values ​​of each variable, variable precision, offset, termination bit and signal length, where each variable is The number is M. Then generate the test output file according to the CAN message attribute configuration table.

[0093] Obtain N physical values ​​of all variables included in the CAN message in the CAN message a...

Example Embodiment

[0117] Embodiment 3

[0118] like Figure 4 As shown, the interface automatic testing method of the vehicle controller provided by the third embodiment of the present invention includes:

[0119] Step 401, import the database container file.

[0120] Step 402: Generate a CAN message attribute configuration table according to the database container file.

[0121] Step 403 , using the CAN message parsing algorithm to generate a test case according to the CAN message attribute configuration table.

[0122] Step 404: Generate a test output file according to the attribute configuration of the CAN message.

[0123] Step 405: Obtain the first information sub-file in the database container file.

[0124] Step 406 , import the software interface definition file.

[0125] Step 407 , import the project project to be tested.

[0126] Step 408: Acquire the second information sub-file in the software interface definition file, and establish a corresponding matching relationship betwee...

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 provides an interface automatic testing method and device for a vehicle control unit. The method comprises the following steps of acquiring a database container file, and generating a test case and a test output file according to the database container file; acquiring a software interface define file, and establishing a corresponding matching relation between the software interface define file and the database container file; and acquiring a program to be tested associated with an interface to be tested in a project to be tested, building a test platform according to the test case, the test output file and the corresponding matching relation, for reference input information, using the test platform to run the program to be tested, and generating a test result for the program to be tested. The embodiment of the invention is optimized based on a traditional interface test platform, a manual link is optimized into automatic generation, a test environment is automatically built, thereby shortening the test period and ensuring the accuracy of CAN (Controller Area Network) message parsing and packing, and improving the quality of vehicle control unit software.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to an interface automatic testing method and device for a vehicle controller. Background technique [0002] Pure electric vehicles use CAN (Controller Area Network, Controller Area Network) as the main network to transmit data, control the main modules such as battery management system, motor controller and vehicle controller, and the CAN bus transmits data in units of messages , so the correct parsing and packaging of CAN messages is very important. However, in the operation process of thousands of CAN messages, errors cannot be avoided, so it is necessary to configure an interface test platform specially for the vehicle controller software. Traditional interface testing requires multi-step manual modification of the .dbc file (database container file), manual matching of the software interface and the variables involved in the .dbc file, and the need to manually build a test envi...

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
IPC IPC(8): G06F11/36G06F11/30
CPCG06F11/3041G06F11/3688G06F11/3692
Inventor 佟世蒙代康伟余军赵磊曹文锋吕玉军张占龙
Owner BEIJING ELECTRIC VEHICLE
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