Method and apparatus for parsing and processing message data

By identifying and parsing compressed and non-compressed format data of on-board network data packets on the graphical development platform, and combining with the analysis and processing files of the programming language, efficient data analysis and visual display are achieved, solving the problems of high cost and slow speed in the existing technology, and improving the flexibility and efficiency of data processing.

CN114035779BActive Publication Date: 2025-08-01BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111315314.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2025-08-01
Estimated Expiration
2041-11-08

Smart Images

  • Figure CN114035779B_ABST
    Figure CN114035779B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for parsing and processing message data. The present application obtains a data file of message data on a predetermined graphical development platform, and identifies compressed and uncompressed format data in the data file, wherein the message data is carried in the compressed format data; thereafter, on the graphical development platform, a parsing and processing file encapsulated based on a predetermined programming language is used to parse the compressed format data to obtain the parsed message data, and finally, on the graphical development platform, the parsed message data and the uncompressed format data are screened and classified to obtain target data, and at least part of the data in the target data is subjected to a visualization display process. The present application combines the fast and rich graphical interface processing functions of the graphical development platform and the powerful data processing capabilities of the predetermined programming language, which can accelerate the data parsing process and the graphical interface processing process of the message data, and improve the data parsing and visualization display efficiency of the message data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive electronics technology, and in particular, to a method and device for parsing and processing message data. Background Art

[0002] CANoe is a device for bus development launched by Vector Company in Germany, with the full name of CAN open environment. Initially, it was mainly used for the development, simulation, testing, and analysis of the CAN (Controller Area Network) bus. Later, with the development of bus technology, CANoe is not limited to the development of CAN-type buses, but also includes LIN (Local Interconnect Network), FlexRay (in-vehicle network standard), MOST (common in-vehicle network system), and Ethernet development.

[0003] In the development, testing, and analysis of in-vehicle networks and ECUs (Electronic Control Units), CANoe has almost long occupied a monopoly position due to its powerful functions. In the development of bus networks, CANoe can participate in the entire process from requirements analysis to system implementation. For the BLF files of data messages (such as CAN messages), CANoe is generally also used, and specifically, the offline simulation function of CANoe is used for data reading, parsing, playback, and other processing.

[0004] However, for the BLF (binary logging format) files of data messages, generally, a CANoe with a license (software license) is required for reading, parsing, and displaying. Its cost is high and the engineering configuration is complex. When parsing large amounts of data, the speed of CANoe parsing data will significantly decrease. In terms of data display, multiple BLF files cannot be compared for data, such as characteristic data like current cannot be compared, and all need to export the data for secondary processing and display, thus bringing many inconveniences. Summary of the Invention

[0005] In view of this, this application provides a method and device for parsing and processing message data, at least for accelerating the data parsing process of message data and improving the flexibility of processing data.

[0006] The specific technical solutions are as follows:

[0007] A method for parsing and processing message data includes:

[0008] Obtaining a data file of message data on a predetermined graphical development platform;

[0009] Identify the compressed format data and uncompressed format data in the data file on the graphical development platform, where the message data is carried in the compressed format data, and the data information of the uncompressed format includes the description information of the data file and the data block in the compressed format;

[0010] On the graphical development platform, use the parsing and processing file encapsulated based on a predetermined programming language to parse and process the compressed format data to obtain the parsed message data;

[0011] On the graphical development platform, screen and classify the parsed message data and the uncompressed format data to obtain the target data, and perform visual display processing on at least part of the data in the target data.

[0012] Optionally, obtaining the data file of the message data on the predetermined graphical development platform includes:

[0013] On the graphical development platform, read the binary data file of the message data in binary stream mode through the file input / output interface of the graphical development platform.

[0014] Optionally, identifying the compressed format data and uncompressed format data in the data file on the graphical development platform includes:

[0015] Convert the binary data of the read binary data file into character data;

[0016] According to the identification code of the data block in the data file in the form of the converted character data, determine the data format of the data block in the compressed format to identify the data block in the compressed format and the data information of the uncompressed format;

[0017] Among them, the message data is carried in the data block in the compressed format.

[0018] Optionally, using the parsing and processing file encapsulated based on a predetermined programming language to parse and process the compressed format data on the graphical development platform includes:

[0019] On the graphical development platform, call the dynamic link library file containing a structure with parsing and processing functions to parse and process the compressed format data;

[0020] Among them, the dynamic link library file is constructed by encapsulating a predetermined compression / decompression algorithm library using the predetermined programming language. When constructing the dynamic link library file through encapsulation processing, retain the first interface parameter in the compression / decompression algorithm library as the passing parameter of the function interface in the compression / decompression algorithm library, and convert the second interface parameter in the compression / decompression algorithm library into a global variable of the structure type.

[0021] Optionally, the dynamic link library file includes: an initialization function, a decompression function, and a memory release function;

[0022] When the graphical development platform calls the dynamic link library file containing a structure with parsing and processing functions to parse and process the compressed format data, it includes:

[0023] When the graphical development platform calls the initialization function to initialize the global variables of the structure type in each function included in the dynamic link library file;

[0024] When the graphical development platform calls the decompression function, the decompression function decompresses the data block in the compressed format based on the initialized global variables and the transmitted interface parameter information to obtain the parsed message data, and stores the decompressed data in the corresponding buffer array; wherein, the interface parameter information includes the array of data blocks in the compressed format, the size, the buffer array for decompressed data, the size, and the status;

[0025] After the decompression is completed, when the graphical development platform calls the memory release function to release the memory.

[0026] Optionally, when the graphical development platform filters and classifies the parsed message data and the non-compressed format data to obtain target data, and performs visual display processing on at least part of the data in the target data, it includes:

[0027] Filter and classify the parsed message data and the non-compressed format data to obtain target data including different category data;

[0028] On the graphical development platform, perform corresponding display processing on different category data according to the different visual display color requirements of different category data in the target data.

[0029] Optionally, after obtaining the parsed message data, the method further includes:

[0030] Perform verification processing on the parsed message data.

[0031] Optionally, the graphical development platform is the Labview platform, and the predetermined programming language is C language or C++ language.

[0032] Optionally, encapsulate the processing process of the graphical development platform and the parsing and processing file encapsulated based on the predetermined programming language into a visual recognition system file, and parse and perform data visual display processing on the data files of one or more message data by calling the visual recognition system file.

[0033] A parsing and processing device for message data, comprising:

[0034] An acquisition module, configured to acquire a data file of message data on a predetermined graphical development platform;

[0035] An identification module, configured to identify compressed format data and non-compressed format data in the data file on the graphical development platform, wherein the message data is carried in the compressed format data, and the data information of the non-compressed format includes the description information of the data file and the compressed format data block;

[0036] A parsing module, configured to parse and process the compressed format data on the graphical development platform by using a parsing and processing file encapsulated based on a predetermined programming language to obtain the parsed message data;

[0037] A display processing module, configured to screen and classify the parsed message data and the non-compressed format data on the graphical development platform to obtain target data, and perform visual display processing on at least part of the target data.

[0038] As can be seen from the above technical solutions, the parsing and processing method and device for message data disclosed in this application acquire a data file of message data on a predetermined graphical development platform, and identify the compressed format and non-compressed format data in the data file, wherein the message data is carried in the compressed format data, and the data information of the non-compressed format includes the description information of the data file and the compressed format data block; then, on the graphical development platform, use a parsing and processing file encapsulated based on a predetermined programming language to parse the compressed format data to obtain the parsed message data, and finally, on the graphical development platform, screen and classify the parsed message data and the non-compressed format data to obtain target data, and perform visual display processing on at least part of the target data. Thus, this application combines the fast and rich graphical interface processing functions of the graphical development platform and the powerful data processing capabilities (for data parsing) of the predetermined programming language, can accelerate the data parsing process and graphical interface processing process of message data, improve the data parsing and visual display efficiency of message data, and enrich the graphical interface processing functions. Description of the Drawings

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0040] Figure 1Flowchart of the method for parsing and processing message data disclosed in this application;

[0041] Figure 2 An example of a visualization interface for various types of data after parsing disclosed in this application;

[0042] Figure 3 An information display interface when the vi file of this application receives input and executes processing;

[0043] Figure 4 Composition structure diagram of the message data parsing and processing device disclosed in this application. Detailed implementation manners

[0044] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

[0045] This application discloses a method and device for parsing and processing message data, mainly by combining the fast and rich graphical interface processing functions of a graphical development platform and the powerful data processing capabilities of a predetermined programming language to at least accelerate the data parsing process of message data and improve the flexibility of processing data.

[0046] Refer to Figure 1 The flowchart of the method for parsing and processing message data provided, the method for parsing and processing message data disclosed in the embodiments of this application includes the following processing steps:

[0047] Step 101: Obtain the data file of the message data on a predetermined graphical development platform.

[0048] Among them, the predetermined graphical development platform can be but is not limited to the Labview platform, the message data can be but is not limited to CAN message data, and the predetermined programming language described below can be but is not limited to the C language or the C++ language. In the embodiments of this application, the graphical development platform, message data, and predetermined programming language will be mainly described by taking Labview, CAN message, and C language as examples.

[0049] In this step 101, specifically, the binary data file of the message data can be read in binary stream mode through the file input / output interface of the graphical development platform on the graphical development platform.

[0050] Taking Labview and CAN messages as an example, the file I / O (Input / Output) interface of Labview can be used to read the BLF file data of CAN messages in binary stream.

[0051] Step 102: Identify the compressed format data and uncompressed format data in the read data file on the above graphical development platform; wherein, the message data is carried in the compressed format data, and the data information in the uncompressed format includes the description information of the data file and the compressed format data block.

[0052] Specifically, the BLF file of CAN messages stored in CANoe contains two formats: a compressed format data block and uncompressed format data information. The message data is stored in the compressed format data block, and the uncompressed format data information includes the description information of the data file and the compressed format data block, such as the pointer and size of the BLF file, and the pointer and size of each compressed data block.

[0053] After the graphical development platform such as Labview reads the BLF file of CAN messages based on its file I / O interface, it first converts the read binary stream data into character data, and then identifies the compressed format data and uncompressed format data based on the conversion result.

[0054] Among them, the compressed format data block has an identification code, while the uncompressed format data information does not have an identification code. In this step, the compressed format data block is identified according to the identification code corresponding to the data block in the character data form of the data file obtained after conversion, and the data without an identification code is identified as uncompressed format data.

[0055] The uncompressed format data can be used directly, such as directly performing visual display processing on the uncompressed format data in the BLF file (the relevant description information of the BLF file and the compressed data block of the message).

[0056] For the compressed format data, further parsing processing needs to be performed.

[0057] Step 103: Use a parsing processing file encapsulated based on a predetermined programming language on the above graphical development platform to parse the compressed format data to obtain the parsed message data.

[0058] To improve the parsing efficiency of message data, the present application combines a predetermined graphical development platform with a parsing and processing file encapsulated based on a predetermined programming language. Taking Labview and C / C++ languages as examples, specifically, Labview is combined with a dynamic link library file (dll file) that has parsing and processing functions and contains a structure and is encapsulated based on the C / C++ language, so as to efficiently parse data in Labview by virtue of the powerful data processing capabilities of programming languages such as C / C++.

[0059] Among them, when combining, it is difficult for Labview to construct complex C (C++) language structures. For example, there is no pointer data type in Labview, resulting in very slow data block transfer between the two (Labview and C / C++ structures) and prone to pointer overflow. Based on this, in the embodiment of the present application, when constructing a function (i.e., a dll function) of a dynamic link library file that has parsing and processing functions and contains a structure, the following construction idea is proposed: when passing parameters through the function interface, only the main parameters are retained as input and output, and unimportant parameters use global variables of the structure type and are assigned once through function initialization for these unimportant parameters.

[0060] Based on the above idea, in the embodiment of the present application, the dynamic link library file adopted is specifically a file constructed by encapsulating a predetermined compression / decompression algorithm library using the above-mentioned predetermined programming language such as C. And when constructing the dll function of the dynamic link library file through encapsulation processing, the first interface parameter in the compression / decompression algorithm library is retained as the passing parameter of the function interface in the compression / decompression algorithm library, and the second interface parameter in the compression / decompression algorithm library is converted into a global variable of the structure type. Among them, the first interface parameter is a preset important interface parameter in the function interface of the compression / decompression algorithm library, which may include but is not limited to parameters such as the data block to be parsed and its size, the data buffer block after parsing and its size, etc. The second interface parameter is correspondingly a preset unimportant interface parameter in the function interface of the compression / decompression algorithm library, which may include but is not limited to reserved parameters, function pointers, addresses, etc.

[0061] On this basis, the above-mentioned predetermined compression / decompression algorithm library is encapsulated to generate a dll file. For example, the compression / decompression algorithm zlib library is encapsulated according to the above requirements to generate a ZlibDll.dll file that contains a structure and has parsing and processing functions, etc.

[0062] The dynamically linked library file generated by encapsulation includes: an initialization function, a decompression function, and a memory release function. For example, the ZlibDll.dll file generated by encapsulation mainly contains functions such as inflateInitdll, inflatedll, and inflateEnddll. Among them, the role of inflateInitdll is to initialize the structure data, the role of inflatedll is to decompress the structure with compressed data, and the role of inflateEnddll is to release memory, etc.

[0063] Therefore, in this step 103, correspondingly, the compressed format data in the obtained data file can be parsed by calling the dynamically linked library file containing the structure with parsing and processing functions on the graphical development platform. This process can be further implemented as follows:

[0064] 1) Call the initialization function in the dynamically linked library file on the graphical development platform to initialize the global variables of the structure type in each function included in the dynamically linked library file;

[0065] Specifically, Labview can be used to call the function inflateInitdll in ZlibDll.dll. This function is a function without parameter input. By calling and executing this function, the global variables of the structure type in each function in ZlibDll.dll can be directly initialized.

[0066] 2) Call the decompression function in the dynamically linked library file on the graphical development platform. The decompression function decompresses the compressed data block based on the initialized global variables and the transmitted interface parameter information, and uses the decompression result as the parsed message data;

[0067] After the initialization work is completed by executing the inflateInitdll function, Labview continues to call and execute the inflatedll function. This function inflatedll receives the transmitted interface parameter information (i.e., the information of the first interface parameter). Exemplarily, the received interface parameter information specifically includes an array of compressed data to be decompressed (such as the compressed data block of the CAN message), size, a buffer array for decompressed data, size, and status (inflatedll assigns values to this status parameter according to the decompression progress during decompression, such as assigning status values like not completed decompression, completed decompression, etc.). Then, the inflatedll function performs decompression processing on the corresponding decompressed data based on the initialized global variables and the received interface parameter information, and stores the decompressed data such as CAN message data into the corresponding buffer array, that is, the data in the buffer area indicated by the interface parameter information after the inflatedll function is normally executed is the decompressed data.

[0068] 3) After decompression is completed, call the memory release function in the dynamic link library file to release memory in the graphical development platform.

[0069] After that, after decompression is completed, Labview calls the inflateEnddll function to release memory.

[0070] Optionally, after decompression is completed and before calling the inflateEnddll function to release memory, verification processing of the parsing result can also be performed. Specifically, the status value returned by inflatedll contains descriptive information about the integrity of the data block. Accordingly, the integrity of the parsed message data can be verified according to the descriptive information about the integrity of the data block in the status value returned by inflatedll. If the descriptive information of the integrity indicates that the data block is complete, the parsed message data passes the verification; otherwise, it fails.

[0071] Step 104: Screen and classify the parsed message data and the uncompressed format data in the graphical development platform to obtain target data, and perform visual display processing on at least part of the data in the target data.

[0072] Optionally, the target data composed of the parsed message data and the uncompressed format data can be screened and classified according to the data type ID (Identity document), and the target data including different types of data can be obtained, and corresponding display processing can be performed on different types of data respectively according to the different visual display color requirements of different types of data in the graphical development platform.

[0073] In addition, the data block identification code after decompression can also be displayed as needed.

[0074] See Figure 2 for examples Figure 2 In, "41" and "56" respectively represent different data type IDs. Among them, "41" is the type ID of the text description message, and "56" is the type ID of the communication data message. The corresponding message data is as Figure 2 shown Figure 2 "4C 4F 42 4A" in is the data block identification code after decompressing the data. In this example, the data type ID, the message data of different data types, and the data block identification code after decompressing the data are respectively distinguished and visually displayed according to the required colors ( Figure 2 different grayscales represent different colors in

[0075] As can be seen from the above technical solution, the method of the embodiment of the present application obtains the data file of the message data on a predetermined graphical development platform, and identifies the compression format and uncompressed format data in the data file, wherein the message data is carried in the compressed format data, and the uncompressed format data information includes the description information of the data file and the data block in the compressed format; thereafter, on the graphical development platform, the parsing and processing file encapsulated based on a predetermined programming language is used to parse the compressed format data to obtain the parsed message data, and finally, on the graphical development platform, the parsed message data and the uncompressed format data are screened and classified to obtain target data, and at least part of the data in the target data is visually displayed and processed. Thus, the present application combines the fast and rich graphical interface processing function of the graphical development platform and the powerful data processing ability (for data parsing) of the predetermined programming language, which can accelerate the data parsing process and graphical interface processing process of the message data, improve the data parsing and visual display efficiency of the message data, and enrich the graphical interface processing function.

[0076] In one embodiment, the processing process of the graphical development platform and the parsing and processing file encapsulated based on a predetermined programming language combined in the present application can be encapsulated into a visual identity (vi) file. For example, the processing process of Labview and the dll file containing structures encapsulated based on the C language can be encapsulated into a vi file.

[0077] The input of the vi file is the file path of the BLF file of the message data, and the output is the classified data after decompression and the visual display information of each category of data. See Figure 3 For an example, it is an information display interface when the vi file receives input and executes processing. Among them, after inputting the file path of a BLF file to the vi file, the interface presents an input area and an output area, and different information is displayed in different areas respectively. Among them, the input area includes the BLF file size and file data before parsing / decompressing the BLF file, such as Figure 3 the "input data size" and "input data" in Figure 3 Since the BLF file data before parsing is unreadable, it is presented as garbled information in the "input data" area; the output area includes the BLF file size and file data after parsing / decompressing the BLF file, such as

[0078] On this basis, the single BLF file or multiple BLF files of message data (such as CAN messages) can be parsed by calling a vi file, and based on the parsing results, Labview can quickly perform graphical visualization display of the data according to actual requirements, such as graphical comparison display of the parsing results of multiple BLF files (graphical comparison display of characteristic data such as voltage and current), etc.

[0079] Based on the solution of this embodiment, by combining the fast and rich graphical interface processing functions of the graphical development platform and the powerful data processing capabilities of a predetermined programming language, the data parsing process and the graphical interface processing process of the message data can be accelerated, the data parsing and visualization display efficiency can be improved, and the graphical interface processing functions can be enriched. Without exporting the data for secondary processing, the data comparison of multiple BLF files can be completed in a graphical manner, such as graphical comparison of characteristic data such as current and voltage, etc., and based on Labview, other required data processing and display functions can be quickly added according to actual requirements.

[0080] Corresponding to the above method, an embodiment of the present application also discloses an apparatus for parsing and processing message data, such as Figure 4 shown, the apparatus includes:

[0081] An acquisition module 401, configured to acquire a data file of message data on a predetermined graphical development platform;

[0082] An identification module 402, configured to identify compressed format data and uncompressed format data in the acquired data file on the above graphical development platform, wherein the message data is carried in the compressed format data, and the data information of the uncompressed format includes the description information of the data file and the compressed format data block;

[0083] A parsing module 403, configured to parse and process the compressed format data by using a parsing and processing file encapsulated based on a predetermined programming language on the above graphical development platform to obtain the parsed message data;

[0084] A display processing module 404, configured to screen and classify the parsed message data and the uncompressed format data on the above graphical development platform to obtain target data, and perform visual display processing on at least part of the target data.

[0085] In an embodiment, the acquisition module 401 is specifically configured to: read the binary data file of the message data in a binary stream manner through the file input / output interface of the above graphical development platform.

[0086] In one embodiment, the recognition module 402 is specifically configured to: convert the binary data of the read binary data file into character data; determine the data format of the data block in the compressed format according to the identification code of the data block in the data file in the form of the converted character data, so as to recognize the data block in the compressed format and the uncompressed format data information;

[0087] Among them, the above-mentioned message data is carried in the data block in the compressed format.

[0088] In one embodiment, the parsing module 403 is specifically configured to:

[0089] In the above graphical development platform, call a dynamic link library file containing a structure with parsing and processing functions to perform parsing and processing on the compressed format data;

[0090] Among them, the above dynamic link library file is a file constructed by encapsulating a predetermined compression / decompression algorithm library using a predetermined programming language. When constructing the dynamic link library file through encapsulation processing, the first interface parameter in the compression / decompression algorithm library is reserved as the passing parameter of the function interface in the compression / decompression algorithm library, and the second interface parameter in the compression / decompression algorithm library is converted into a global variable of the structure type.

[0091] In one embodiment, the above dynamic link library file includes: an initialization function, a decompression function, and a memory release function;

[0092] When the parsing module 403 performs parsing and processing on the compressed format data by calling a dynamic link library file containing a structure with parsing and processing functions in the above graphical development platform, it is specifically configured to:

[0093] In the above graphical development platform, call the above initialization function to initialize the global variables of the structure type in each function included in the dynamic link library file;

[0094] In the above graphical development platform, call the above decompression function. The decompression function decompresses the data block in the compressed format based on the initialized global variables and the passed interface parameter information to obtain the parsed message data, and stores the decompressed data in the corresponding buffer array; among them, the interface parameter information includes the array, size, buffer array for decompressing data, size, and status of the data block in the compressed format;

[0095] After the decompression is completed, call the above memory release function to release the memory in the above graphical development platform.

[0096] In one embodiment, the display processing module 404 is specifically configured to: screen and classify the parsed message data and the uncompressed format data to obtain target data including different types of data; and perform corresponding display processing on different types of data according to different visualization color display requirements of different types of data in the graphical development platform.

[0097] In one embodiment, the above device further includes:

[0098] A verification module, configured to perform verification processing on the parsed message data after obtaining the parsed message data.

[0099] In one embodiment, the above graphical development platform is a Labview platform, and the above predetermined programming language is a C language or a C++ language.

[0100] In one embodiment, the above graphical development platform and the processing process of the parsing processing file encapsulated based on the predetermined programming language are encapsulated into a visual recognition system file, and the data files of one or more message data are parsed and data visualization display processing is performed by calling the encapsulated visual recognition system file.

[0101] For the parsing processing device of the message data disclosed in the embodiments of the present application, since it corresponds to the parsing processing method of the message data disclosed in the above method embodiments, the description is relatively simple. For the relevant similarities, please refer to the description of the corresponding method embodiments above, and details are not described herein again.

[0102] In this specification, each embodiment is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple. For the relevant parts, please refer to the description in the method part.

[0103] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0104] The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented directly in hardware, in software modules executed by a processor, or in a combination thereof. The software modules may be located in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium well known in the art.

[0105] The foregoing description of the disclosed embodiments enables those skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for parsing and processing message data, characterized in that Including: A data file for obtaining message data on a predetermined graphical development platform; Identifying compressed format data and uncompressed format data in the data file on the graphical development platform, wherein the message data is carried in the compressed format data, and the data information of the uncompressed format includes the description information of the data file and the data block in the compressed format; Parsing and processing the compressed format data with a parsing and processing file encapsulated based on a predetermined programming language on the graphical development platform to obtain the parsed message data; Filtering and classifying the parsed message data and the uncompressed format data on the graphical development platform to obtain target data, and performing visual display processing on at least part of the data in the target data; The parsing and processing the compressed format data with a parsing and processing file encapsulated based on a predetermined programming language on the graphical development platform includes: Invoking a dynamic link library file containing a structure with parsing and processing functions on the graphical development platform to parse and process the compressed format data; Wherein, the dynamic link library file is constructed by encapsulating a predetermined compression / decompression algorithm library with the predetermined programming language. When constructing the dynamic link library file through encapsulation processing, the first interface parameter in the compression / decompression algorithm library is reserved as the passing parameter of the function interface in the compression / decompression algorithm library, and the second interface parameter in the compression / decompression algorithm library is converted into a global variable of the structure type.

2. The method according to claim 1, characterized in that, The obtaining a data file for message data on a predetermined graphical development platform includes: Reading a binary data file of message data in binary stream mode through the file input / output interface of the graphical development platform on the graphical development platform.

3. The method according to claim 2, wherein The identifying compressed format data and uncompressed format data in the data file on the graphical development platform includes: Converting the binary data of the read binary data file into character data; Determining the data format of the data block in the compressed format according to the identification code of the data block in the data file in the form of character data obtained after conversion, so as to identify the data block in the compressed format and the data information of the uncompressed format; Wherein, the message data is carried in the data block in the compressed format.

4. The method according to claim 1, wherein The dynamic link library file includes: an initialization function, a decompression function, and a memory release function; The invoking a dynamic link library file containing a structure with parsing and processing functions on the graphical development platform to parse and process the compressed format data includes: Invoking the initialization function on the graphical development platform to initialize the global variables of the structure type in each function included in the dynamic link library file; Invoking the decompression function on the graphical development platform, and the decompression function decompresses the data block in the compressed format based on the initialized global variables and the passed interface parameter information to obtain the parsed message data, and stores the decompressed data in the corresponding buffer array; wherein, the interface parameter information includes the array of the data block in the compressed format, size, the buffer array for decompressed data, size, status. After decompression is completed, call the memory release function in the graphical development platform to release memory.

5. The method according to claim 1, wherein The process of screening and classifying the parsed message data and the uncompressed format data in the graphical development platform to obtain target data, and performing visual display processing on at least part of the target data includes: Perform screening and classification processing on the parsed message data and the uncompressed format data to obtain target data including different types of data; In the graphical development platform, perform corresponding display processing on different types of data according to the different visual color display requirements of different types of data in the target data.

6. The method according to claim 1, wherein After obtaining the parsed message data, it further includes: Perform verification processing on the parsed message data.

7. The method according to claim 1, characterized in that The graphical development platform is the Labview platform, and the predetermined programming language is C language or C++ language.

8. The method according to any one of claims 1-7, characterized in that Encapsulate the processing process of the graphical development platform and the parsing processing file encapsulated based on the predetermined programming language into a visual recognition system file, and parse and perform data visual display processing on the data files of one or more message data by calling the visual recognition system file.

9. A parsing and processing device for message data, characterized in that, It includes: An acquisition module for acquiring the data file of the message data on a predetermined graphical development platform; An identification module for identifying the compressed format data and the uncompressed format data in the data file on the graphical development platform, wherein the message data is carried in the compressed format data, and the data information of the uncompressed format includes the description information of the data file and the data block of the compressed format; A parsing module for parsing the compressed format data on the graphical development platform by using a parsing processing file encapsulated based on a predetermined programming language to obtain the parsed message data; A display processing module for screening and classifying the parsed message data and the uncompressed format data in the graphical development platform to obtain target data, and performing visual display processing on at least part of the target data; The parsing module parses the compressed format data on the graphical development platform by using a parsing processing file encapsulated based on a predetermined programming language, including: Call a dynamic link library file containing a structure with parsing processing functions on the graphical development platform to parse the compressed format data; Wherein, the dynamic link library file is a file constructed by encapsulating a predetermined compression / decompression algorithm library by using the predetermined programming language. When constructing the dynamic link library file through encapsulation processing, retain the first interface parameter in the compression / decompression algorithm library as the transfer parameter of the function interface in the compression / decompression algorithm library, and convert the second interface parameter in the compression / decompression algorithm library into a global variable of the structure type.

Citation Information

Patent Citations

  • ATP-ATO debugging method based on packet parsing

    CN101106559A