Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for generating CAN communication program of vehicle control unit

A vehicle controller and CAN communication technology, applied in the field of CAN communication, can solve problems such as low code efficiency, vehicle safety hazards, and prone to errors, so as to ensure correct communication and vehicle safety, improve efficiency and correctness, and improve The effect of development efficiency

Active Publication Date: 2017-07-14
深蓝汽车科技有限公司
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As the communication center of new energy vehicles, the vehicle controller undertakes the task of receiving and sending hundreds of CAN signals, and each signal is an important signal to control the safe operation of the vehicle. When a certain signal is received or sent and processed Mistakes can cause great safety hazards to the vehicle
Currently, the reception and transmission of the CAN signal of the controller is generally done by the controller software engineer according to the dbc file of the CAN protocol, and the software code is manually written to realize the reception and transmission of the CAN signal. Since the CAN signal volume of the vehicle controller is particularly large, the involved software It is extremely complicated, and it takes a lot of time for software engineers to write software codes, and it is prone to errors. The work efficiency of manually generating codes is very low
[0003] At present, there is no efficient method to directly generate the dbc file of CAN protocol as software source code, so as to improve the efficiency and quality of software development, and ensure the correctness of CAN signal transmission and reception of the controller

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
  • Method and device for generating CAN communication program of vehicle control unit
  • Method and device for generating CAN communication program of vehicle control unit
  • Method and device for generating CAN communication program of vehicle control unit

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The core of the present invention is to provide a CAN communication program generation method and device for a vehicle controller, so as to automatically generate a dbc file of the CAN protocol into a software code and improve the efficiency of software development.

[0040] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0041] Please refer to figure 1 , figure 1 It is a flow chart of a...

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 discloses a method and device for generating a CAN communication program of a vehicle control unit. The method comprises the steps of acquiring a dbc file of a CAN protocol, and reading demand information used for generating a code by using keywords in the dbc file; acquiring all communication frames of the vehicle control unit from the demand information, calling a CAN communication frame decoding function to decode all communication frames of the vehicle control unit, and acquiring a CAN communication decoding statement; acquiring the length and identification of a received signal of the vehicle control unit from the CAN communication decoding statement, judging the data type of the received signal according to the length and identification of the received signal; and generating a CAN signal receiving function code by using the length and identification of the received signal and the data type of the received signal. According to the method, the dbc file of the CAN protocol is enabled to be automatically generated into a software code, and the software development efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of CAN communication, in particular to a method and device for generating a CAN communication program of a vehicle controller. Background technique [0002] At present, the vehicle controller is the communication and control center of new energy vehicles, which plays a decision-making role in the operation status of vehicles, and is one of the core components of new energy vehicles. As the communication center of new energy vehicles, the vehicle controller undertakes the task of receiving and sending hundreds of CAN signals, and each signal is an important signal to control the safe operation of the vehicle. When a certain signal is received or sent and processed Any error will cause a great safety hazard to the vehicle. Currently, the reception and transmission of the CAN signal of the controller is generally done by the controller software engineer according to the dbc file of the CAN protocol, and the so...

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): G05B19/04H04L12/40
CPCH04L12/40G05B19/04H04L2012/40215H04L2012/40273
Inventor 林富田雪勇袁昌荣李宗华周安健
Owner 深蓝汽车科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products