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
CN106950864AActive Publication Date: 2017-07-14深蓝汽车科技有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
深蓝汽车科技有限公司
Publication Date
2017-07-14

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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