CAPL code automatic generation method and system and automobile

An automatic code generation and code technology, applied in the transmission system, digital transmission system, CAD network environment, etc., can solve the problems of cumbersome manual configuration of CAN tools, inconvenient portability of Dspace bench, etc., and achieve accurate and reliable message analysis and packaging, and light equipment Portable effect

Active Publication Date: 2021-07-09
GAC AION NEW ENERGY AUTOMOBILE CO LTD
View PDF8 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to provide a CAPL code automatic generation method, system and automobile, which are used to solve the problems of cumbersome manual configuration of existing CAN tools and the inconvenient portability of the Dspace stand

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
  • CAPL code automatic generation method and system and automobile
  • CAPL code automatic generation method and system and automobile

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In this patent, the CAPL code is automatically generated, and only CANoe or CANalyzer is used to perform related tests on the CAN bus of the electronic control unit. The specific implementation will be further described below in conjunction with the accompanying drawings and examples.

[0039] Such as figure 1 As shown, the embodiment of the present invention provides CAPL code automatic generation method, and described method comprises:

[0040] Step S11, acquiring the DBC file of the communication matrix.

[0041] Specifically, step S11 includes:

[0042] Run MATLAB software, edit M script;

[0043] Read the DBC file of the communication matrix in text format.

[0044] Step S12, extract the key information of each CAN bus in the DBC file, the key information includes CAN message size, address, sending cycle, sending type, CAN message name, description, start bit, signal length, maximum value, At least one of minimum value, initial value, precision, offset, signal ...

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 a CAPL code automatic generation method and system and an automobile. The method comprises the steps that a DBC file of a communication matrix is acquired; key information of each CAN bus in the DBC file is extracted; based on the key information of each CAN bus, an independent CAPL language code file is automatically generated, and the CAPL language code file comprises a message signal analysis function, a message verification function, a message counting function, a simulation message stop function, a simulation frame loss function, a simulation message verification error function and a simulation message counting error function; the method also includes operating CANoe software or CANalyzer software, connecting any hardware equipment in the CANoe software or the CANalyzer software, and importing a DBC file to a CAN channel of any hardware equipment in a Database Management environment; inserting a programming node in a Measurement Setup environment, importing a CAPL language code file, and compiling the CAPL language code file; and connecting the CAN bus channel of the electronic control unit with the CAN channel of any device. According to the invention, the problems that the manual configuration of the existing CAN tool is tedious and the Dspace rack is inconvenient to carry are solved.

Description

technical field [0001] The invention relates to the technical field of automobiles, in particular to a CAPL code automatic generation method, system and automobile. Background technique [0002] Existing CAN tools or test equipment need to be cumbersomely configured after being imported into DBC, which is very inefficient and prone to configuration errors, which will affect the correctness of the test results of the electronic control unit and affect the efficiency of software development; even if a bench like Dspace can Perform a variety of custom configurations, but it is not portable and cannot support out-of-home testing and debugging. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a CAPL code automatic generation method, system and automobile, which are used to solve the problems of cumbersome manual configuration of existing CAN tools and inconvenient portability of the Dspace stand. [0004] A kind of CA...

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): G06F8/30G06F30/20G06F111/02H04L12/40
CPCG06F8/31H04L2012/40215Y02P90/02
Inventor 郭勇兵曾备李靖黄以佳邓志巧胡继浩马桂谦
Owner GAC AION NEW ENERGY AUTOMOBILE CO LTD
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