Check patentability & draft patents in minutes with Patsnap Eureka AI!

CAN interactive layer code automatic generation method and system

An automatic generation and interactive layer technology, applied in the field of automatic generation of CAN interactive layer code, can solve the problems of low development efficiency, long development cycle, waste of manpower and material resources, etc., to improve development efficiency, reduce error rate, and reduce workload Effect

Active Publication Date: 2018-07-20
BEIJING PRIDE NEW ENERGY BATTERY
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the BMS interacts with other controllers for more information, which can easily cause a large number of semaphores in the CAN database file, and it is easy to make mistakes in the development process of handwritten C codes.
With the increase of CAN database files, the development difficulty and workload of CAN interactive layer software will increase, resulting in a longer development cycle
At the same time, during the development process, the CAN communication protocol and CAN database files need to be revised repeatedly, resulting in waste of manpower and material resources and low development efficiency

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
  • CAN interactive layer code automatic generation method and system
  • CAN interactive layer code automatic generation method and system
  • CAN interactive layer code automatic generation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0050] Such as figure 1 As shown, it is a schematic flow diagram of a method for automatically generating CAN interaction layer codes provided by Embodiment 1 of the present invention. CAN interaction codes are generated through the CAN Pack module in simulink, combined below figure 1 To elaborate, the method includes the following steps:

[0051]S1, obtaining pre-defined data types and pre-written CAN database files. The data type here refers to the compound structure type, such as the form of BMSFault_Byte0.Bit.InnerCANErr. The CAN database file is pre-written according to the communication protocol. The communication protocol refers to the communication protocol between the BMS and the vehicle controller during ...

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 CAN interactive layer code automatic generation method and system. The method comprises the steps of obtaining a pre-defined data type and a pre-written CAN database file; determining message frames comprised in the CAN database file and a quantity of the message frames; calling CAN_Pack modules with the same quantity as the message frames, processing signals of bytes inthe message frames through the CAN_Pack modules, and storing the signals in a preset folder according to data types; processing and packaging the CAN_Pack modules to obtain atomic sub-models of the CAN Pack modules; and calling signal automatic generation codes in the preset folder through all the atomic sub-models. According to the CAN interactive layer code automatic generation method and system provided by the invention, the waste of manpower resources and material resources is avoided; the workload of development personnel is reduced; the development efficiency is improved; and the errorrate in the development process is reduced.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method and system for automatically generating CAN interaction layer codes. Background technique [0002] In the pure electric vehicle control system, BMS (Battery Management System, battery management system) and other controllers mostly use CAN (Controller Area Network, controller area network) to communicate, and the information in the CAN network needs to pass Only by analyzing the CAN communication protocol can the signal with actual physical meaning be obtained. In practical applications, the CAN communication protocol is often defined as the format of the CAN database file, and the BMS software is usually developed by handwriting codes. [0003] However, the BMS interacts with other controllers with more information, which can easily cause a large number of semaphores in the CAN database file, and it is easy to make mistakes during the development of handwritten C codes. ...

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): G06F8/41
CPCG06F8/447
Inventor 刁志辉陈秋婷
Owner BEIJING PRIDE NEW ENERGY BATTERY
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More