Method and system for consistency analysis of bus data

Through the consistency analysis method and system of bus data, the problem of low bus fault data analysis efficiency in the existing technology is solved, the function of quickly locating erroneous data is realized, and the analysis efficiency and accuracy are improved.

CN118509309BActive Publication Date: 2024-10-22SAIC GENERAL MOTORS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410954594.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-22
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

The existing technology is inefficient and error-prone when analyzing vehicle bus fault data. It requires experienced engineers to analyze the data and logical relationships one by one, and the protocol analysis is complicated.

Method used

Provide a method and system for consistency analysis of bus data. By acquiring bus data and calling the corresponding processing function, it traverses the consistency judgment conditions to determine data consistency errors, and generates error information, including error type and location information, to locate error data. .

Benefits of technology

The bus data analysis efficiency is improved, erroneous data can be quickly located, accurate analysis can be performed without the need for experienced engineers, and the possibility of errors is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118509309B_ABST
    Figure CN118509309B_ABST
Patent Text Reader

Abstract

The present application relates to a consistency analysis method and system for bus data, the method comprising the following steps: S1: acquiring bus data, and based on the data type of the bus data, calling a processing function corresponding to the data type, wherein the processing function comprises a plurality of consistency judgment conditions; S2: passing the bus data through the plurality of consistency judgment conditions in the processing function to determine whether the bus data has a consistency error; and S3: generating error information of the consistency error when the bus data has the consistency error.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle bus data processing, and in particular, to a method and system for bus data consistency analysis. Background Art

[0002] As vehicles become more digital, intelligent, and networked, there are more and more electronic control units (ECUs) in vehicles, and their functions are becoming more and more complex. During the entire life cycle of vehicle development and after-sales, more and more problems occur in ECUs. Therefore, it is becoming more and more important to collect bus fault data and perform data analysis on it.

[0003] The current mainstream diagnostic tools for bus fault data can support the collection and display of bus fault data. However, when analyzing the problem data, engineers with relevant experience are required to analyze the logical relationship and protocol between the problem time data and the previous and subsequent data one by one, and to parse the binary data byte by byte to find the location of the erroneous data. This is inefficient and prone to errors. Summary of the invention

[0004] In view of the above problems, the following technical solutions are provided.

[0005] The consistency analysis method for bus data of the present application includes the following steps: S1: acquiring bus data, and calling a processing function corresponding to the data type based on the data type of the bus data, wherein the processing function includes multiple consistency judgment conditions; S2: passing the bus data through the multiple consistency judgment conditions in the processing function to determine whether there is a consistency error in the bus data; and S3: when the bus data has the consistency error, generating error information of the consistency error.

[0006] Optionally, the data type of the bus data includes one or more of the following: CAN bus data and Ethernet bus data.

[0007] Optionally, S1 includes: calling a CAN / FD analysis function based on that the data type of the bus data is CAN bus data; and calling an Ethernet analysis function based on that the data type of the bus data is Ethernet bus data.

[0008] Optionally, the error information includes error type and location information of consistency error data in the bus data.

[0009] Optionally, the method further includes S4: locating the consistency error data in the bus data based on the position information.

[0010] The consistency analysis system for bus data of the present application includes: a function calling module, which is configured to obtain bus data and call a processing function corresponding to the data type based on the data type of the bus data, wherein the processing function includes multiple consistency judgment conditions; a consistency judgment module, which is configured to traverse the bus data through the multiple consistency judgment conditions in the processing function to determine whether there is a consistency error in the bus data; and an error information generation module, which is configured to generate error information of the consistency error when the bus data has the consistency error.

[0011] Optionally, the error information includes error type and location information of consistency error data in the bus data.

[0012] Optionally, the system further comprises an error locating module configured to locate the consistency error data in the bus data based on the position information.

[0013] The computer-readable storage medium of the present application stores a computer program thereon, and the computer program implements the above consistency analysis method when executed by a processor.

[0014] The computer device of the present application includes a storage module, a processor, and a computer program stored in the storage module and executable on the processor, wherein the above consistency analysis method is implemented when the processor executes the computer program.

[0015] The computer program product of the present application includes a computer program, and the computer program implements the above consistency analysis method when executed by a processor.

[0016] The vehicle of the present application comprises the above-mentioned consistency analysis system.

[0017] The technical solution of the present application determines the consistency errors existing in the bus data by adding two data analysis functions, can generate error information including error type and location information, and can quickly locate the original error data in the bus data based on the location information, thereby greatly improving the efficiency of user data analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and / or other aspects and advantages of the present application will become clearer and easier to understand through the following description of various aspects in conjunction with the accompanying drawings, in which the same or similar units are represented by the same reference numerals. In the accompanying drawings:

[0019] Figure 1 A schematic overview flow chart of a method for bus data consistency analysis according to an embodiment of the present application is shown;

[0020] Figure 2A schematic block diagram of a bus data consistency analysis system 200 according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0021] The description of the following specific embodiments is merely exemplary in nature and is not intended to limit the disclosed technology or the application and use of the disclosed technology. In addition, it is not intended to be bound by any express or implied theory presented in the aforementioned technical field, background technology or the following specific embodiments.

[0022] In the following detailed description of the embodiments, many specific details are set forth in order to provide a more thorough understanding of the disclosed technology. However, it is apparent to one of ordinary skill in the art that the disclosed technology can be practiced without these specific details. In other instances, well-known features are not described in detail to avoid unnecessarily complicating the description.

[0023] Terms such as “comprise” and “include” indicate that in addition to the units and steps directly and explicitly stated in the specification, the technical solution of the present application does not exclude the situation where there are other units and steps that are not directly or explicitly stated.

[0024] Hereinafter, various exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings.

[0025] Reference now Figure 1 , Figure 1 : is a schematic flow chart of a method for bus data consistency analysis according to an embodiment of the present application:

[0026] like Figure 1 As shown, the consistency analysis method includes the following steps:

[0027] S1: Obtain bus data, and based on the data type of the acquired bus data, call a processing function corresponding to the data type, wherein the processing function includes a plurality of consistency judgment conditions.

[0028] Optionally, the data type of the bus data may include CAN (Controller Area Network) bus data and Ethernet bus data.

[0029] Optionally, in step S1 , when the acquired bus data is CAN bus data, a CAN / FD (Flexible Data-Rate) analysis function may be called; and when the acquired bus data is Ethernet bus data, an Ethernet analysis function may be called.

[0030] In one embodiment, the CAN / FD analysis function includes the following five consistency judgment conditions:

[0031] 1) Data length code check: verify whether the data length code is correct;

[0032] 2) Data length verification: ensure that the data length is correct;

[0033] 3) CAN / FD flag check: confirm whether the CAN / FD mode flag is correct;

[0034] 4) CANID (CAN Identifier) ​​check: confirm whether the CANID is correct;

[0035] 5) Data field verification: Check whether the data fields are correct.

[0036] In one embodiment, the Ethernet analysis function includes the following six consistency judgment conditions:

[0037] 1) Sequence NUM continuity check: ensure that the sequence numbers of data packets are continuous and there is no packet loss;

[0038] 2) Netw.Type check: Verify whether the network type field is correct;

[0039] 3) Netw.ID correspondence check: confirm whether the network identifier is correct;

[0040] 4) Data length verification: ensure that the data length is correct;

[0041] 5) Frame Id length check: ensure that the length of the frame identifier is correct;

[0042] 6) Data field verification: Check whether the data field is correct.

[0043] S2: traversing the bus data through the multiple consistency judgment conditions in the processing function to determine whether there is a consistency error in the bus data;

[0044] Specifically, when the acquired bus data is CAN bus data, the CAN bus data needs to be judged once by all five judgment conditions in the CAN / FD analysis function; and when the acquired bus data is Ethernet bus data, the Ethernet bus data also needs to be judged once by all six judgment conditions in the Ethernet analysis function.

[0045] S3: When the bus data has the consistency error, generate error information of the consistency error.

[0046] Optionally, the error information includes error type and location information of consistency error data in the bus data. Exemplarily, when the CANID check in the CAN / FD analysis function determines that there is an error in the CANID of the original data in the CAN bus data, error information related to the error will be generated, and the error information may include the error type (i.e., CANID error) and location information (i.e., the location of the original data of the CANID error in the CAN bus data).

[0047] Optionally, the method further comprises S4: locating the consistency error data in the bus data based on the position information. The original error data can be quickly located through the position information, which is convenient for subsequent analysis.

[0048] Reference now Figure 2 , Figure 2 A schematic block diagram of a bus data consistency analysis system 200 according to an embodiment of the present application is shown.

[0049] like Figure 2 As shown, the consistency analysis system 200 includes a function calling module 210 , a consistency judgment module 220 and an error information generation module 230 .

[0050] The function calling module 210 is configured to obtain bus data and call a processing function corresponding to the data type based on the data type of the bus data, wherein the processing function includes a plurality of consistency judgment conditions.

[0051] Optionally, the data type of the bus data may include CAN bus data and Ethernet bus data. When the acquired bus data is CAN bus data, the CAN / FD analysis function can be called, where the CAN / FD analysis function includes five consistency judgment conditions: data length code check, data length verification, CAN / FD flag check, CANID check, and data field verification.

[0052] When the acquired bus data is Ethernet bus data, the Ethernet analysis function can be called, which includes six consistency judgment conditions: Sequence NUM continuity check, Netw.Type check, Netw.ID correspondence check, data length verification, Frame Id length check and data field verification.

[0053] The consistency determination module 220 is configured to traverse the bus data through a plurality of consistency determination conditions in the processing function to determine whether there is a consistency error in the bus data.

[0054] Optionally, the consistency judgment module 220 enables the CAN bus data to be judged once by all five judgment conditions in the CAN / FD analysis function, and the Ethernet bus data to be judged once by all six judgment conditions in the Ethernet analysis function.

[0055] The error information generating module 230 is configured to generate error information of a consistency error when a consistency error exists in the bus data.

[0056] Optionally, the error information includes error type and location information of consistency error data in the bus data.

[0057] The error information generation module 230 can be implemented in the form of a first display module. For example, when the Netw.ID in the Ethernet analysis function checks the judgment condition and determines that the Netw.ID of the original data in the Ethernet bus data is wrong, the first display module will display error information related to the error. The error information may include the error type (i.e., Netw.ID error) and location information (i.e., the location of the original data with the Netw.ID error in the Ethernet bus data). In some embodiments, the error information can be displayed in the first display module in a highlighted manner (such as red font).

[0058] Optionally, the consistency analysis system 200 further includes an error locating module (not shown), which is configured to locate the consistency error data in the bus data based on the position information. Specifically, the error locating module can be implemented in the form of a second display module, and the second display module can display all the original data of the bus data. As an example, when the first display module displays the position information of the Netw.ID error, the second display module can locate the position of the original Netw.ID error data in the bus data based on this position information, for example, also highlighting this original Netw.ID error data.

[0059] To sum up, the consistency analysis in this embodiment determines the logical errors or protocol inconsistencies in the bus data by adding data analysis functions, can locate data errors in the bus data, and display error information, which greatly improves the efficiency of the analysis and does not require experienced personnel to quickly find errors in the bus data.

[0060] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for bus data consistency analysis of the present application is implemented.

[0061] The present application also provides a computer device, including a storage module, a processor, and a computer program stored in the storage module and executable on the processor, wherein the processor implements the above-mentioned method for bus data consistency analysis of the present application when executing the computer program.

[0062] The present application also provides a computer program product, including a computer program, which implements the above-mentioned consistency analysis method for bus data of the present application when executed by a processor.

[0063] The present application also provides a vehicle, the vehicle comprising the above-mentioned consistency analysis system for bus data of the present application. The vehicle referred to in the present application may represent any appropriate vehicle having a drive system consisting of at least a battery, a power conversion device and a drive motor, such as a hybrid vehicle, an electric vehicle, a plug-in hybrid electric vehicle, etc. A hybrid vehicle is a vehicle having two or more power sources, such as a gasoline-powered and an electric vehicle.

[0064] The specific embodiments described above in this application are only for more clearly describing the principles of this application, wherein each component is clearly shown or described to make the principles of this application easier to understand. Without departing from the scope of this application, those skilled in the art can easily make various modifications or changes to this application. Therefore, it should be understood that these modifications or changes should be included in the scope of patent protection of this application.

Claims

1. A consistency analysis method for bus data, characterized in that: The method comprises the following steps: S1: acquiring bus data, and calling a processing function corresponding to the data type based on the data type of the bus data, wherein the processing function includes a plurality of consistency judgment conditions; S2: traversing the bus data through the multiple consistency judgment conditions in the processing function to determine whether there is a consistency error in the bus data; and S3: When the bus data has the consistency error, generate error information of the consistency error, wherein the error information includes error type and location information of the consistency error data in the bus data.

2. The consistency analysis method according to claim 1, characterized in that: The data type of the bus data includes one or more of the following: CAN bus data and Ethernet bus data.

3. The consistency analysis method according to claim 2, characterized in that: The S1 includes: calling a CAN / FD analysis function based on the data type of the bus data being CAN bus data; and calling an Ethernet analysis function based on the data type of the bus data being Ethernet bus data.

4. The consistency analysis method according to claim 1, characterized in that: The method further includes S4: locating the consistency error data in the bus data based on the position information.

5. A consistency analysis system for bus data, characterized in that: The system comprises: A function calling module, configured to obtain bus data and call a processing function corresponding to the data type based on the data type of the bus data, wherein the processing function includes a plurality of consistency judgment conditions; a consistency judgment module configured to traverse the bus data through the plurality of consistency judgment conditions in the processing function to judge whether the bus data has a consistency error; and The error information generating module is configured to generate error information of the consistency error when the consistency error exists in the bus data, wherein the error information includes error type and position information of the consistency error data in the bus data.

6. The consistency analysis system according to claim 5, characterized in that: The system further includes an error locating module configured to locate the consistency error data in the bus data based on the location information.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the consistency analysis method according to any one of claims 1 to 4 is implemented.

8. A computer device comprising a storage module, a processor, and a computer program stored in the storage module and executable on the processor, characterized in that: When the processor executes the computer program, the consistency analysis method according to any one of claims 1 to 4 is implemented.

9. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the consistency analysis method according to any one of claims 1 to 4 is implemented.

10. A vehicle, characterized in that: The vehicle comprises a consistency analysis system as claimed in any one of claims 5-6.