Can bus data analysis method and computer-readable storage medium

A CAN bus and data analysis technology, applied in program control, instrumentation, testing/monitoring control systems, etc., can solve the problem that technicians cannot obtain special equipment in time, problem processing time and cost increase, and software cannot be used in vehicle models, etc. problems, to quickly locate and deal with on-site problems, reduce processing time and processing costs, and achieve the effect of strong versatility

Active Publication Date: 2021-04-02
XIAMEN FUGONG POWER TECH
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The usual bus analysis method requires special equipment and special software, which is costly and requires constant corrections for different models
When a problem occurs on site, the after-sales technicians often cannot get the special equipment to locate the problem in time, or the special software cannot be used for the current model, which leads to the double increase of the problem processing time and cost
If the analysis software is customized for different models, when the protocol of this model is updated, the analysis software also needs to be updated, and when there are hundreds of models, it is easy for technicians to confuse

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 bus data analysis method and computer-readable storage medium
  • Can bus data analysis method and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Please refer to figure 2 , Embodiment 1 of the present invention is: a kind of CAN bus data analysis method, can be applied to the bus message on the new energy bus system is analyzed, comprises the following steps:

[0052] S1: According to the prescribed protocol, establish a protocol analysis file corresponding to the vehicle model one by one, the protocol analysis file includes preset parameter fields; further, the protocol analysis file is an SCV (comma-separated value file format) file, which is convenient for on-site Modify; in the protocol analysis file, each line is a parameter that needs to be parsed, and each parameter includes parameter name, message ID, start bit, end bit, encoding format, offset, ratio, parameter type, parameter value list, Parameter minimum value, parameter maximum value, unit and other information.

[0053] S2: Collect the CAN bus data of a vehicle within the preset time by on-site recording instruments or acquisition equipment, and ge...

Embodiment 2

[0064] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:

[0065] Establishing a protocol analysis file corresponding to the vehicle model one by one, the protocol analysis file including a preset parameter field;

[0066] Collect CAN bus data of a vehicle within a preset time, and generate a message data stream, each message in the message data stream includes receiving time, message number and message data;

[0067] Obtain a message from the message data stream in sequence;

[0068] According to the protocol analysis file corresponding to the model of the vehicle, the message is parsed to obtain the values ​​of the parameter fields corresponding to the message.

[0069] Further, before the "parse the message according to the protocol analysis file corresponding to the model of the vehicle to obtain...

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 CAN bus data analysis method and a computer-readable storage medium. The method comprises the steps of establishing protocol analysis files which are in one-to-one correspondence with vehicle types, wherein the protocol analysis files comprise a preset parameter field; acquiring CAN bus data of a vehicle in a preset time period, and generating a message data flow, whereineach message in the message data flow comprises receiving time, a message number and message data; successively acquiring a message from the message data flow; and analyzing the message according tothe protocol analysis file which corresponds with the vehicle, and obtaining the value of each parameter field which corresponds with the message. The CAN bus data analysis method can quick analyze the CAN bus data in different bus protocols.

Description

technical field [0001] The invention relates to the technical field of bus data analysis, in particular to a CAN bus data analysis method and a computer-readable storage medium. Background technique [0002] With the development of the economy and the progress of society, energy conservation has become an inevitable and social consensus, and various new energy buses continue to emerge. The CAN bus protocol on the new energy bus has been continuously improved with the development of the times and the differences of the car manufacturers, and the hardware equipment of the CAN bus has also been continuously updated. Therefore, in order to better allow on-site or remote personnel to understand the current state of the bus, it is necessary to perform compatible analysis on different protocols of different devices. [0003] The usual bus analysis method requires special equipment and special software, which is costly and requires constant corrections for different vehicle models....

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 Patents(China)
IPC IPC(8): G05B23/02
CPCG05B23/0243G05B2219/24065
Inventor 梁桂兵雷立志
Owner XIAMEN FUGONG POWER TECH
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