A FlexRay signal analysis method, apparatus, vehicle, and computer storage medium

By parsing the FlexRay protocol XML configuration file and converting BLF files to Parquet files, combined with SQL JOIN operations, the CANoe software dependency problem was solved, enabling efficient and low-cost FlexRay signal analysis to meet personalized needs.

CN117014530BActive Publication Date: 2026-11-10NINGBO LOTUS ROBOTICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310931033.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-26
Publication Date
2026-11-10
Estimated Expiration
2043-07-26

AI Technical Summary

Technical Problem

Existing technologies rely on CANoe software for FlexRay protocol signal analysis during vehicle development, resulting in high commercial licensing fees and long analysis times, making it difficult to handle large numbers of BLF files and meet personalized analysis needs.

Method used

By parsing the FlexRay protocol XML configuration file to obtain the signal configuration table, converting the BLF file to a Parquet file, and using SQL JOIN operations to obtain the target signal table, the visualization and personalized analysis of signals can be achieved, eliminating the dependence on CANoe software.

Benefits of technology

It can efficiently analyze large numbers of BLF files without commercial licensing, improving analysis efficiency, meeting personalized analysis needs, reducing costs and increasing analysis speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117014530B_ABST
    Figure CN117014530B_ABST
Patent Text Reader

Abstract

This invention discloses a FlexRay signal parsing method, apparatus, vehicle, and computer storage medium. The FlexRay signal parsing method includes: obtaining a signal configuration table according to a FlexRay protocol XML configuration file; parsing a BLF file storing FlexRay signal data into a Parquet file to obtain a raw signal table; and obtaining a target signal table based on the signal configuration table and the raw signal table. This invention provides a FlexRay signal parsing method, apparatus, vehicle, and computer storage medium that first obtains a signal configuration table according to a FlexRay protocol XML configuration file, then parses a BLF file storing FlexRay signal data into a Parquet file to obtain a raw signal table, and finally obtains a target signal table based on the signal configuration table and the raw signal table. This eliminates the deep dependence on CANoe software when analyzing vehicle bus signals, requires no commercial license, supports the analysis of a large number of BLF files, improves analysis efficiency, and can meet the needs of personalized signal analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle network communication, and in particular to a FlexRay signal parsing method, apparatus, vehicle, and computer storage medium. Background Technology

[0002] Vehicles consist of many systems, such as anti-lock braking systems, transmission systems, engines, and lighting systems. Communication between these systems is generally achieved using the CAN protocol. Later, the FlexRay protocol was developed, offering advantages over CAN such as higher data processing speeds and better anti-interference capabilities. Currently, most automakers' vehicle controller software is designed based on the AutoSar standard architecture. Vector provides tools for the design, modeling, simulation, and analysis of vehicle bus networks, such as the CAN open environment (CANoe), which can test and analyze the entire electronic control unit network, including the analysis of FlexRay protocol signals. During vehicle development, CAN or FlexRay communication data is often stored in BLF file format. Currently, CANoe software is used to analyze these generated BLF files to verify the normal communication of each module. However, using this software requires a high licensing fee, and only a single BLF file can be analyzed at a time, resulting in lengthy analysis times. On the other hand, hundreds or even thousands of BLF files may be generated during vehicle development. A single BLF file may contain up to a million signal data points. CANoe is typically installed in a standalone environment, and reading and playing back the signal data from a single BLF file would be extremely time-consuming, let alone processing the hundreds or thousands of BLF files generated daily. In practical use, CANoe's signal playback function can observe signals over a period of time, but it cannot determine where a specific signal transitions. Therefore, some personalized signal analysis needs are difficult to meet. Summary of the Invention

[0003] The purpose of this invention is to provide a FlexRay signal analysis method, apparatus, vehicle, and computer storage medium that eliminates the deep dependence on CANoe software when analyzing vehicle bus signals, eliminates the need to purchase commercial licenses, supports the analysis of a large number of BLF files, improves analysis efficiency, and supports personalized signal analysis needs.

[0004] To achieve the above objectives, the technical solution of the present invention is implemented as follows:

[0005] In a first aspect, embodiments of the present invention provide a FlexRay signal parsing method, the FlexRay signal parsing method comprising:

[0006] Obtain the signal configuration table based on the FlexRay protocol XML configuration file;

[0007] The BLF file storing FlexRay signal data is parsed into a Parquet file to obtain the original signal table;

[0008] Based on the signal configuration table and the original signal table, obtain the target signal table.

[0009] As one implementation method, obtaining the signal configuration table according to the FlexRay protocol XML configuration file includes:

[0010] Based on the contents of the FlexRay protocol XML configuration file, the communication relationship between electronic control units, the frame structure of the electronic control units, the internal structure of the frames, and the internal structure of the protocol data units are obtained.

[0011] As one implementation, the signal configuration table includes at least:

[0012] The table describes the topology of the electronic control unit, the table describes the internal structure of the electronic control unit, frames, and protocol data units, and the signal details table.

[0013] As one implementation, parsing the BLF file storing FlexRay signal data into a Parquet file to obtain the original signal table includes:

[0014] The metadata of the BLF file is stored in the Footer area of ​​the Parquet file.

[0015] As one implementation, the step of parsing the BLF file storing FlexRay signal data into a Parquet file to obtain the original signal table further includes:

[0016] The signal data of the BLF file is stored in the Data Block area of ​​the Parquet file.

[0017] As one implementation method, obtaining the target signal table based on the signal configuration table and the original signal table includes:

[0018] The target signal table is obtained by associating the signal configuration table and the original signal table using an SQL JOIN operation.

[0019] As one implementation method, the FlexRay signal parsing method further includes:

[0020] Based on the target signal table, the FlexRay signal data is subjected to visualization and personalized analysis.

[0021] In a second aspect, embodiments of the present invention provide a FlexRay signal parsing apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the FlexRay signal parsing method as described in the first aspect.

[0022] Thirdly, embodiments of the present invention provide a vehicle that includes the FlexRay signal analysis device as described in the second aspect.

[0023] Fourthly, embodiments of the present invention provide a computer storage medium storing a computer program, which, when executed by a processor, implements the steps of the FlexRay signal parsing method as described in the first aspect.

[0024] This invention provides a FlexRay signal parsing method, apparatus, vehicle, and computer storage medium. The FlexRay signal parsing method includes: obtaining a signal configuration table based on a FlexRay protocol XML configuration file; parsing a BLF file storing FlexRay signal data into a Parquet file to obtain a raw signal table; and obtaining a target signal table based on the signal configuration table and the raw signal table. Thus, by first obtaining the signal configuration table from the FlexRay protocol XML configuration file, then parsing the BLF file storing FlexRay signal data into a Parquet file to obtain the raw signal table, and finally obtaining the target signal table based on the signal configuration table and the raw signal table, this method eliminates the deep dependence on CANoe software when analyzing vehicle bus signals, eliminates the need to purchase commercial licenses, supports the analysis of a large number of BLF files, improves analysis efficiency, and can meet the needs of personalized signal analysis. Attached Figure Description

[0025] Figure 1 A flowchart illustrating a FlexRay signal parsing method provided in an embodiment of the present invention;

[0026] Figure 2 This is a schematic diagram of the ECU communication relationship and ECU frame structure based on a FlexRay protocol XML configuration file, provided as an embodiment of the present invention.

[0027] Figure 3 This invention provides a schematic diagram of the internal structure of a FlexRay protocol XML configuration file frame and the internal structure of a PDU.

[0028] Figure 4 This is a schematic diagram of the BLF file structure of a FlexRay signal provided in an embodiment of the present invention;

[0029] Figure 5 This is a schematic diagram of a FlexRay signal analysis device provided in an embodiment of the present invention. Detailed Implementation

[0030] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, components, features, and elements with the same names in different embodiments of the present invention may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.

[0031] It should be understood that although the terms first, second, third, etc., may be used herein to describe various information, this information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word “if” as used herein may be interpreted as “when…” or “in response to determination”. Furthermore, as used herein, the singular forms “a,” “an,” and “the” are intended to also include the plural forms unless the context indicates otherwise. It should be further understood that the terms “comprising,” “including,” indicate the presence of the stated feature, step, operation, element, component, item, kind, and / or group, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms “or” and “and / or” as used herein are to be interpreted as inclusive, or mean any one or any combination thereof. Therefore, "A, B, or C" or "A, B, and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A, B, and C". Exceptions to this definition will only occur if the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.

[0032] It should be understood that although the steps in the flowcharts of the embodiments of the present invention are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0033] It should be noted that step designations such as S101 and S102 are used in this document for the purpose of more clearly and concisely describing the corresponding content, and do not constitute a substantial limitation on the order. Those skilled in the art may execute S102 first and then S101 in specific implementation, but these should all be within the protection scope of this invention.

[0034] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0035] See Figure 1 This invention provides a FlexRay signal parsing method, which can be executed by a FlexRay signal parsing device provided in this invention. The FlexRay signal parsing device can be implemented in software and / or hardware. The FlexRay signal parsing method includes the following steps:

[0036] Step S101: Obtain the signal configuration table according to the FlexRay protocol XML configuration file;

[0037] It's important to note that the FlexRay protocol XML configuration file conforms to the ASAM (Association for Standardisation of Automation and Measuring Systems) specification. This file details the network topology and structure of the ECU (Electronic Control Unit). Parsing the FlexRay protocol XML configuration file into JSON (JavaScript Object Notation) facilitates processing of the configuration file by the Hadoop platform. Hadoop, developed by the Apache Software Foundation, is a distributed system infrastructure primarily addressing the storage and analysis of massive amounts of data.

[0038] In one embodiment, obtaining the signal configuration table according to the FlexRay protocol XML configuration file includes:

[0039] Based on the contents of the FlexRay protocol XML configuration file, the communication relationship between electronic control units, the frame structure of the electronic control units, the internal structure of the frames, and the internal structure of the protocol data units are obtained.

[0040] Here, by analyzing the contents of the FlexRay protocol XML configuration file, a complete description of the FlexRay protocol can be obtained, including the following parts: 1. Communication relationships between ECUs; 2. Frames that make up an ECU; 3. Internal structure of a Frame; 4. Internal structure of a PDU (Protocol Data Unit). Among these, the communication relationships between electronic control units and the frame structure of an electronic control unit (ECU) are as follows: Figure 2 As shown, the internal structure of a frame and the internal structure of a Protocol Data Unit (PDU) are as follows: Figure 3 As shown.

[0041] In one embodiment, the signal configuration table includes at least:

[0042] The table describes the topology of the electronic control unit, the table describes the internal structure of the electronic control unit, frames, and protocol data units, and the signal details table.

[0043] Here, to reduce reliance on CANoe software, the complete description of the FlexRay protocol (1. Communication relationships between ECUs; 2. Frames that make up an ECU; 3. Internal structure of a Frame; 4. Internal structure of a PDU) is stored in tables, resulting in a signal configuration table. This table mainly includes tables describing ECU topology relationships, tables describing the internal structure of ECUs, Frames, and PDUs, and also a signal details table. This greatly facilitates subsequent analysis of specific signals.

[0044] Step S102: Parse the BLF file storing FlexRay signal data into a Parquet file to obtain the original signal table;

[0045] It should be noted that FlexRay signals are generally stored in BLF (Binary Logging Format) file format. Parquet is an open-source, column-oriented data file format. This format uses columnar storage, has high read / write speeds, and strong compression support, and is designed for efficient data storage and retrieval.

[0046] In one embodiment, parsing the BLF file storing FlexRay signal data into a Parquet file to obtain the original signal table includes:

[0047] The metadata of the BLF file is stored in the Footer area of ​​the Parquet file.

[0048] In one embodiment, parsing the BLF file storing FlexRay signal data into a Parquet file to obtain the original signal table further includes:

[0049] The signal data of the BLF file is stored in the Data Block area of ​​the Parquet file.

[0050] Specifically, such as Figure 4 The diagram shows the structure of a BLF file. BLF files store a wealth of information, including signal value data and metadata. Some of this data is frequently used, while other data is crucial reference information that is less commonly used, but none can be discarded. Based on this, the BLF file is parsed into a Parquet file. To preserve the BLF information more completely, the metadata is stored in the Footer area of ​​the Parquet file, and the signal data is stored in the Data Block area. In this way, all valid information is stored, ultimately yielding the original signal table.

[0051] Step S103: Obtain the target signal table based on the signal configuration table and the original signal table.

[0052] In one embodiment, obtaining the target signal table based on the signal configuration table and the original signal table includes:

[0053] The target signal table is obtained by associating the signal configuration table and the original signal table using an SQL JOIN operation.

[0054] In practice, the signal configuration table and the original signal table are joined using SQL JOIN operations on the Hadoop platform, primarily using SQL LEFT JOIN (SQL LEFT OUTER JOIN). Here, the SQL JOIN clause combines rows from two or more tables based on common fields between these tables.

[0055] In one embodiment, the FlexRay signal parsing method further includes:

[0056] Based on the target signal table, the FlexRay signal data is subjected to visualization and personalized analysis.

[0057] Here, after obtaining the target signal table, visualization and personalized analysis can be performed on specific signals at specific times. For example, some signals might be sine waves, which can be visualized using Python, Excel, or front-end tools. Since the underlying data is in tables, specific signals can be precisely selected by writing SQL, such as brake light signals. A signal value of 0 indicates the light is off, and a signal value of 1 indicates the light is on. If there are hundreds of thousands of vehicles, the timing of when each vehicle's brake lights illuminate is uncertain. By writing SQL, the brake light signals can be quickly found, determining the exact moment when all vehicles' brake lights illuminate. This satisfies the need for personalized analysis of FlexRay signals.

[0058] In summary, the FlexRay signal parsing method provided in the above embodiments first obtains the signal configuration table according to the FlexRay protocol XML configuration file, then parses the BLF file storing FlexRay signal data into a Parquet file to obtain the original signal table, and finally obtains the target signal table based on the signal configuration table and the original signal table. This eliminates the deep dependence on CANoe software when analyzing vehicle bus signals, eliminates the need to purchase commercial licenses, supports the analysis of a large number of BLF files, improves analysis efficiency, and can meet the personalized analysis needs of signals.

[0059] Based on the same inventive concept as the foregoing embodiments, this invention provides a FlexRay signal parsing device, such as... Figure 5 As shown, the FlexRay signal analysis device includes: a processor 110 and a memory 111 for storing computer programs that can run on the processor 110; wherein, Figure 5 The processor 110 shown in the diagram does not refer to a single processor 110, but rather to the positional relationship of the processor 110 relative to other devices. In practical applications, there can be one or more processors 110; similarly, Figure 5 The memory 111 shown in the diagram has the same meaning, that is, it is only used to indicate the positional relationship of memory 111 relative to other devices. In practical applications, there can be one or more memories 111. When the processor 110 runs the computer program, it implements the FlexRay signal parsing method.

[0060] The FlexRay signal parsing device may further include at least one network interface 112. The various components of the FlexRay signal parsing device are coupled together via a bus system 113. It is understood that the bus system 113 is used to implement communication between these components. In addition to a data bus, the bus system 113 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 5 The general designated all buses as Bus System 113.

[0061] The memory 111 can be volatile or non-volatile, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 111 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0062] The memory 111 in this embodiment of the invention is used to store various types of data to support the operation of the FlexRay signal parsing device. Examples of this data include: any computer programs used to operate on the FlexRay signal parsing device, such as operating systems and applications; contact data; phonebook data; messages; pictures; videos, etc. The operating system includes various system programs, such as the framework layer, core library layer, driver layer, etc., used to implement various basic services and handle hardware-based tasks. Applications can include various applications, such as media players, browsers, etc., used to implement various application services. Here, the program implementing the method of this embodiment of the invention can be included in the application.

[0063] Based on the same inventive concept as the foregoing embodiments, this embodiment also provides a vehicle, which includes the FlexRay signal analysis device as described above.

[0064] Based on the same inventive concept as the foregoing embodiments, this embodiment also provides a computer storage medium storing a computer program. The computer storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.; it can also be various devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc. When the computer program stored in the computer storage medium is executed by a processor, it implements the FlexRay signal parsing method described above. For the specific steps implemented when the computer program is executed by the processor, please refer to [link to relevant documentation]. Figure 1 The description of the illustrated embodiments will not be repeated here.

[0065] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0066] In this document, the terms “comprising,” “including,” or any other variations thereof are intended to cover non-exclusive inclusion, which includes not only the elements listed but also other elements not expressly listed.

[0067] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A FlexRay signal analysis method, characterized in that, The FlexRay signal parsing method includes: Obtain the signal configuration table based on the FlexRay protocol XML configuration file; The BLF file storing FlexRay signal data is parsed into a Parquet file to obtain the original signal table; Based on the signal configuration table and the original signal table, obtain the target signal table; The step of obtaining the signal configuration table according to the FlexRay protocol XML configuration file includes: Based on the contents of the FlexRay protocol XML configuration file, the communication relationship between electronic control units, the frame structure of the electronic control units, the internal structure of the frames, and the internal structure of the protocol data units are obtained.

2. The FlexRay signal parsing method according to claim 1, characterized in that, The signal configuration table includes at least: The table describes the topology of the electronic control unit, the table describes the internal structure of the electronic control unit, frames, and protocol data units, and the signal details table.

3. The FlexRay signal parsing method according to claim 1, characterized in that, The step of parsing the BLF file storing FlexRay signal data into a Parquet file to obtain the original signal table includes: The metadata of the BLF file is stored in the Footer area of ​​the Parquet file.

4. The FlexRay signal parsing method according to claim 1 or 3, characterized in that, The step of parsing the BLF file storing FlexRay signal data into a Parquet file to obtain the original signal table also includes: The signal data of the BLF file is stored in the Data Block area of ​​the Parquet file.

5. The FlexRay signal parsing method according to claim 1, characterized in that, The step of obtaining the target signal table based on the signal configuration table and the original signal table includes: The target signal table is obtained by associating the signal configuration table and the original signal table using an SQL JOIN operation.

6. The FlexRay signal parsing method according to claim 1, characterized in that, Also includes: Based on the target signal table, the FlexRay signal data is subjected to visualization and personalized analysis.

7. A FlexRay signal parsing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the FlexRay signal parsing method as described in any one of claims 1 to 6.

8. A vehicle, characterized in that, The vehicle includes the FlexRay signal analysis device as described in claim 7.

9. A computer storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the FlexRay signal parsing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Vehicle data processing method, terminal and computer storage medium

    CN114297154A