Vehicle data processing method, device and medium
By automatically obtaining and using data analytical operators, the error problem caused by manual selection of the analysis unit is solved, and the simplification and efficiency improvement of vehicle data processing is achieved.
Patent Information
- Application Number
- CN202411692791.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-03-07
AI Technical Summary
When processing the data in each electronic control unit through the upper computer, it is necessary to manually select the matching analysis unit, which makes it easy to cause errors in the selection of the analysis unit, which affects the correct analysis of the SOME/IP data in the electronic control unit.
Provide a vehicle data processing method, by automatically obtaining the first data analysis operator, processing and analyzing the to be processed according to the data processing instructions, simplifying manual operations and improving the accuracy and efficiency of data analysis.
Simplify manual operations, improve the accuracy and efficiency of target data, and avoid the problem of errors in the analysis unit selection.
Smart Images

Figure CN119583593A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle data processing, and in particular to a vehicle data processing method, device and medium. Background Art
[0002] SOME / IP (Scalable service-Oriented MiddlewarE over IP) is a commonly used communication protocol in the automotive field and is widely used for data communication between different electronic control units (ECUs) in automobiles.
[0003] At present, when processing the data in each electronic control unit through the host computer, it is necessary to manually select a matching parsing unit for parsing the SOME / IP data in the electronic control unit to obtain readable data. If there are multiple parsing units with different versions, it is easy to select the wrong parsing unit in this way, thereby affecting the correct parsing of the SOME / IP data in the electronic control unit.
[0004] In view of this, this application is hereby filed. Summary of the invention
[0005] A brief summary of one or more aspects is given below to provide a basic understanding of these aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or critical elements of all aspects nor to define the scope of any or all aspects. Its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description that will be given later.
[0006] The present application provides a vehicle data processing method, device and medium, which simplifies manual operations and improves the accuracy and efficiency of obtaining target data (i.e., readable data).
[0007] In a first aspect, the present application provides a vehicle data processing method, comprising the following steps:
[0008] In response to receiving the data processing instruction, obtaining data to be processed of the target control unit and obtaining a first data parsing operator, wherein the data to be processed is communication data based on the target communication protocol;
[0009] The data to be processed is processed according to the data processing instruction, and the data to be processed is parsed by the first data parsing operator to obtain real target data.
[0010] Further, the obtaining of the first data parsing operator includes:
[0011] The first data parsing operator is read from a target storage location.
[0012] Further, the data processing instruction includes a data recording instruction, and the processing of the data to be processed according to the data processing instruction includes:
[0013] Taking the topic as the division dimension, the to-be-processed data of different topics are respectively stored in recording files of different topics, and the version information of the first data parsing operator is respectively stored in each recording file.
[0014] Further, the obtaining of the data to be processed of the target control unit includes:
[0015] Receive the data to be processed output by the target control unit.
[0016] Further, the data processing instruction includes a data re-injection instruction, and the step of obtaining the data to be processed of the target control unit includes:
[0017] According to the subject to which the target control unit belongs, the data to be processed is read from a recording file matching the subject.
[0018] Furthermore, before processing the data to be processed according to the data processing instruction, the method further includes:
[0019] Reading version information of a second data parsing operator from the recording file, and comparing the read version information of the second data parsing operator with the version information of the first data parsing operator;
[0020] In response to the version information of the second data parsing operator being different from the version information of the first data parsing operator, prompting target information;
[0021] In response to the version information of the second data parsing operator being the same as the version information of the first data parsing operator, the operation of processing the to-be-processed data according to the data processing instruction continues to be executed.
[0022] Further, the processing the data to be processed according to the data processing instruction includes:
[0023] The data to be processed is fed back to the target control unit.
[0024] Furthermore, it also includes:
[0025] The real target data is used as input of a visualization tool, and the real target data is visualized by the visualization tool.
[0026] In a second aspect, the present application further provides a vehicle data processing device, comprising:
[0027] An acquisition module, configured to acquire, in response to receiving a data processing instruction, data to be processed of a target control unit and a first data parsing operator, wherein the data to be processed is communication data based on a target communication protocol;
[0028] A processing module is used to process the data to be processed according to the data processing instruction, and to parse the data to be processed through the first data parsing operator to obtain real target data.
[0029] In a third aspect, the present application further provides an electronic device, the electronic device comprising:
[0030] one or more processors;
[0031] A storage device for storing one or more programs;
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle data processing method as described above.
[0033] In a fourth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle data processing method as described above.
[0034] The vehicle data processing method disclosed in the present application automatically obtains the first data analysis operator when receiving a data processing instruction without the need for manual selection and acquisition, and then analyzes the data to be processed through the first data analysis operator to obtain real target data, thereby simplifying manual operations and improving the accuracy and efficiency of obtaining target data (i.e., readable data). BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for describing the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 A flow chart of a vehicle data processing method provided in an embodiment of the present application;
[0037] Figure 2 A system architecture diagram for data analysis and visualization provided in an embodiment of the present application;
[0038] Figure 3A schematic diagram of a data structure before and after a change provided in an embodiment of the present application;
[0039] Figure 4 A schematic diagram of a data recording process provided in an embodiment of the present application;
[0040] Figure 5 A schematic diagram of a data re-injection process provided in an embodiment of the present application;
[0041] Figure 6 A schematic diagram of generating a data analysis operator provided in an embodiment of the present application;
[0042] Figure 7 A schematic diagram of a process of parsing data using a data parsing operator provided in an embodiment of the present application;
[0043] Figure 8 A schematic diagram of the structure of a vehicle data processing device provided in an embodiment of the present application;
[0044] Fig. 9 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0046] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0047] Figure 1 This is a flow chart of a vehicle data processing method proposed in the present application. The method can be executed by a vehicle data processing device. The vehicle data processing device can be implemented in software and / or hardware form and can be integrated in a vehicle controller.
[0048] like Figure 1 As shown, the vehicle data processing method includes the following steps:
[0049] S110 . In response to receiving a data processing instruction, obtaining data to be processed of a target control unit and obtaining a first data parsing operator, wherein the data to be processed is communication data based on a target communication protocol.
[0050] The target communication protocol may be SOME / IP.
[0051] The data to be processed can be driving perception algorithm data, map message data, camera message data or radar message data. The data to be processed is communication data based on the target communication protocol, or encapsulated data, which is not readable. Therefore, it is necessary to parse the data to be processed to obtain readable target data so as to conduct relevant development and research through data analysis.
[0052] Optionally, the obtaining the first data parsing operator includes:
[0053] The first data parsing operator is read from a target storage location.
[0054] S120: Process the data to be processed according to the data processing instruction, and parse the data to be processed by the first data parsing operator to obtain real target data.
[0055] In some implementations, the data processing instruction includes a data recording instruction, and processing the data to be processed according to the data processing instruction includes:
[0056] Taking the topic as the division dimension, the to-be-processed data of different topics are respectively stored in recording files of different topics, and the version information of the first data parsing operator is respectively stored in each recording file.
[0057] The topic may represent the source of the data to be processed. For example, camera data, lidar data, and vehicle speed data may be stored as data of different topics in recording files of different topics.
[0058] The theme can also be determined according to different target control units. For example, the perception control unit, decision control unit, and execution control unit can be control units of different themes respectively, and the data to be processed from different control units can be stored in corresponding recording files respectively.
[0059] The purpose of storing the data to be processed of different topics in recording files of different topics based on the topic as the division dimension is to classify the data to be processed, so as to facilitate the subsequent re-injection and scene reproduction of the data of different topics, and then carry out research for different purposes. The purpose of storing the version information of the first data parsing operator in each recording file is to facilitate the verification of the version of the parsing operator when re-injecting data, so as to ensure that the re-injected data can be correctly parsed.
[0060] Correspondingly, the step of obtaining the data to be processed of the target control unit includes:
[0061] Receive the data to be processed output by the target control unit.
[0062] In some embodiments, the data processing instruction includes a data re-injection instruction, and the obtaining of the data to be processed of the target control unit includes: according to the subject to which the target control unit belongs, reading the data to be processed from a recording file matching the subject.
[0063] In some embodiments, before processing the data to be processed according to the data processing instruction, it also includes: reading version information of the second data analysis operator from the recording file, and comparing the read version information of the second data analysis operator with the version information of the first data analysis operator; in response to the version information of the second data analysis operator being different from the version information of the first data analysis operator, prompting target information; in response to the version information of the second data analysis operator being the same as the version information of the first data analysis operator, continuing to execute the operation of processing the data to be processed according to the data processing instruction (i.e., returning the data to be processed to the target control unit).
[0064] By adding version information verification to the parsing operator, it can be ensured that the injected data can be parsed correctly.
[0065] Furthermore, in order to improve the degree of visualization, the data to be processed may be further visualized and displayed through a visualization tool.
[0066] The vehicle data processing method disclosed in the embodiment of the present application automatically obtains the first data parsing operator when receiving a data processing instruction without the need for manual selection and acquisition, and then analyzes the data to be processed through the first data parsing operator to obtain real target data, thereby simplifying manual operations and improving the accuracy and efficiency of obtaining target data (i.e., readable data).
[0067] In some embodiments, reference is made to Figure 2 The system architecture diagram of data analysis and visualization shown includes a message communication party 10, a data collection and distribution module 11, a data analysis operator 12, a storage refill visualization module 13, a file system 14 and a visualization tool 15.
[0068] The SOME / IP message communication party 10 in the control unit uses SOME / IP messages for communication, which is self-describing data and depends on the data structure. If the data structure is modified, the corresponding message and parsing operator 12 will also have corresponding changes, otherwise the parsing will be incorrect or unavailable, which will affect the visualization. Changes in data structure, such as one more parameter in a data, such as Figure 3As shown in the figure, the original data structure includes two parameters, a and b, and the changed data structure includes three parameters, a, b and c. When the data structure is changed, if the parsing operator is not regenerated, the parsed data will not match the actual data, or the parsing process will report an error and the data cannot be parsed.
[0069] The data collection and distribution module 11 is used to receive SOME / IP messages and transmit them to the host computer, and is also used to receive SOME / IP messages fed back from the host computer and give them to each control unit.
[0070] The data parsing operator 12 is used to parse SOME / IP data and serialize the parsed data into proto visualization data. This parsing operator is matched with the data structure version in the control unit to solve the problem of compatibility of the re-injection version and the need for the host computer to manually load the parsing operator.
[0071] The storage re-injection visualization module 13 is used to store the recorded data in the file system 14, or read the data in the recorded file from the file system 14 and re-inject it to each control unit. It is also used to parse the SOME / IP data through the data parsing operator and transmit the parsed data to the visualization tool (such as foxglove) 15 for visualization display.
[0072] The file system 14 is used to store the parsed SOME / IP data and the version information of the parsing operator, and store them in the form of topics. The visualization tool (such as foxglove) 15 is used to visualize the parsed SOME / IP data, which supports the standard proto format.
[0073] In some optional embodiments, refer to Figure 4 The data recording process diagram shown in FIG. 1 includes the following steps:
[0074] S1. Start the host computer.
[0075] S2. Start data recording.
[0076] S3. Obtain data parsing operator.
[0077] S4. Receive the data output by the control unit, and write the data and the version information of the data parsing operator into the recording file at the same time.
[0078] S5. Use the data analysis operator to analyze and visualize the data output by the control unit to obtain target data.
[0079] S6. Send the target data to a visualization tool for display.
[0080] S7. End.
[0081] In some optional embodiments, refer to Figure 5 The schematic diagram of a data re-injection process shown in FIG. 1 specifically includes the following steps:
[0082] S51. Start the host computer.
[0083] S52, start data refill.
[0084] S53. Read the version information of the data parsing operator from the recording file.
[0085] S54, reading the first data parsing operator from the target storage location, and comparing the version information of the first data parsing operator with the version information read in S53, and if the two are consistent, continuing to perform subsequent operations.
[0086] If the version information of the first data parsing operator is consistent with the version information read in S53, it means that the data structure in the current control unit is consistent with the data structure in the recording file, and the control unit is compatible with the data in the recording file. Therefore, the data re-injection operation can be performed.
[0087] S55, reading data from the recording file and sending it to the control unit.
[0088] S56. Use the first data analysis operator to perform analysis and visualization processing on the data read from the recording file to obtain target data.
[0089] S57. Send the target data to a visualization tool for display.
[0090] S58, end.
[0091] The data analysis operator changes with the data structure of the data in the control unit. When the data structure is modified, the data analysis operator needs to be re-produced and synchronously integrated into the control unit. With this setting, the host computer can dynamically obtain the data analysis operator in the control unit in real time. In this way, there is no need to manually add data analysis operators to the host computer during recording and replay, and data analysis visualization can be performed, which reduces the difficulty of operation and avoids problems such as misoperation and version mismatch.
[0092] Whether it is SOME / IP or Protobuf message, it transmits payload data. When the payload data structure needs to change (for example, add a variable), the data parsing operator needs to be regenerated. Figure 6The data analysis operator generation diagram shown in FIG. 1 inputs the data structure to the SOME / IP deserialization code template and the Protobuf serialization code template to obtain the SOME / IP deserialization code cpp and the Protobuf serialization code cpp, which are finally compiled into binary files to obtain the data analysis operator. The process of using the data analysis operator to parse the data can be referred to as Figure 7 As shown, the SOME / IP message is deserialized by SOME / IP and serialized by Protobuf by the data parsing operator to obtain the parsed target data.
[0093] Figure 8 is a schematic diagram of the structure of a vehicle data processing device provided in an embodiment of the present application, which can be integrated into a vehicle controller. Figure 8 As shown, the device includes: an acquisition module 810 and a processing module 820.
[0094] Among them, the acquisition module 810 is used to obtain the data to be processed of the target control unit in response to receiving the data processing instruction, and to obtain the first data parsing operator, wherein the data to be processed is the communication data based on the target communication protocol; the processing module 820 is used to process the data to be processed according to the data processing instruction, and to parse the data to be processed through the first data parsing operator to obtain the real target data.
[0095] Furthermore, the acquisition module 810 is specifically configured to read the first data parsing operator from a target storage location.
[0096] Furthermore, the data processing instructions include data recording instructions, and the processing module 820 is specifically used to: store the to-be-processed data of different topics into recording files of different topics respectively based on the topic as the division dimension, and store the version information of the first data parsing operator into each recording file respectively.
[0097] Correspondingly, the acquisition module 810 is specifically used to receive the data to be processed output by the target control unit.
[0098] Furthermore, the data processing instructions include data re-injection instructions, and the acquisition module 810 is specifically used to: read the data to be processed from the recording file matching the subject to which the target control unit belongs; the processing module 820 is specifically used to: re-inject the data to be processed to the target control unit.
[0099] Furthermore, it also includes a verification module, which is used to read the version information of the second data analysis operator from the recording file, and compare the read version information of the second data analysis operator with the version information of the first data analysis operator; in response to the version information of the second data analysis operator being different from the version information of the first data analysis operator, a target information prompt is given; in response to the version information of the second data analysis operator being the same as the version information of the first data analysis operator, the operation of processing the data to be processed according to the data processing instruction is continued.
[0100] Furthermore, it also includes a display module, which is used to use the real target data as input of a visualization tool and to visualize the real target data through the visualization tool.
[0101] The vehicle data processing device disclosed in the embodiment of the present application automatically obtains the first data parsing operator when receiving a data processing instruction without the need for manual selection and acquisition, and then analyzes the data to be processed through the first data parsing operator to obtain real target data, thereby simplifying manual operations and improving the accuracy and efficiency of obtaining target data (i.e., readable data).
[0102] The vehicle data processing device provided in the embodiment of the present disclosure can execute the steps in the vehicle data processing method provided in the method embodiment of the present disclosure, and has the same execution steps and beneficial effects, which will not be repeated here.
[0103] Fig. 9 Schematic diagram of the structure of an electronic device in the embodiment of the present disclosure. Fig. 9 , which shows a structural schematic diagram of an electronic device 500 suitable for implementing the embodiments of the present disclosure. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0104] like Fig. 9 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device 508 into a random access memory (RAM) to implement the method of the embodiment described in the present disclosure. In RAM503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, ROM 502, and RAM503 are connected to each other via a bus 504. An I / O interface 505 is also connected to the bus 504. An input device 506, an output device 507, a storage device 508, and a communication device 509 are all connected to the I / O interface 505.
[0105] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart, thereby implementing the vehicle data processing method as described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0106] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0107] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the method steps in the present application.
[0108] Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.
[0109] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0110] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0111] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and its core ideas of this application. The above is only the preferred implementation method of this application. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of this application, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the concept and technical solution of the invention to other occasions without improvement, should be regarded as the scope of protection of this application.
Claims
1. A vehicle data processing method, characterized in that: include: In response to receiving the data processing instruction, obtaining data to be processed of the target control unit and obtaining a first data parsing operator, wherein the data to be processed is communication data based on the target communication protocol; The data to be processed is processed according to the data processing instruction, and the data to be processed is parsed by the first data parsing operator to obtain real target data.
2. The vehicle data processing method according to claim 1, characterized in that: The obtaining of the first data parsing operator comprises: The first data parsing operator is read from a target storage location.
3. The vehicle data processing method according to claim 1, characterized in that: The data processing instruction includes a data recording instruction, and the processing of the data to be processed according to the data processing instruction includes: Taking the topic as the division dimension, the to-be-processed data of different topics are respectively stored in recording files of different topics, and the version information of the first data parsing operator is respectively stored in each recording file.
4. The vehicle data processing method according to claim 3, characterized in that: The step of obtaining the data to be processed of the target control unit includes: Receive the data to be processed output by the target control unit.
5. The vehicle data processing method according to claim 1, characterized in that: The data processing instruction includes a data re-injection instruction, and the obtaining of the data to be processed of the target control unit includes: According to the subject to which the target control unit belongs, the data to be processed is read from a recording file matching the subject.
6. The vehicle data processing method according to claim 5, characterized in that: Before processing the data to be processed according to the data processing instruction, the method further includes: Reading version information of a second data parsing operator from the recording file, and comparing the read version information of the second data parsing operator with the version information of the first data parsing operator; In response to the version information of the second data parsing operator being different from the version information of the first data parsing operator, prompting target information; In response to the version information of the second data parsing operator being the same as the version information of the first data parsing operator, the operation of processing the to-be-processed data according to the data processing instruction continues to be executed.
7. The vehicle data processing method according to claim 5, characterized in that: The processing of the data to be processed according to the data processing instruction includes: The data to be processed is fed back to the target control unit.
8. The vehicle data processing method according to claim 1, characterized in that: Also includes: The real target data is used as input of a visualization tool, and the real target data is visualized by the visualization tool.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle data processing method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle data processing method as described in any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Business processing method of double-recording equipment and related device
CN120956736A
Method for processing services of a dual-recording device and related apparatus
CN120956736B