Data processing method, data processing device and readable storage medium
By acquiring and parsing the database and log files of the automotive communication protocol bus, determining and displaying the target signals and data, and using a multi-threaded architecture to optimize the data processing process, the signal analysis and diagnosis difficulties caused by the complexity of the CAN bus network are solved, and the efficiency and accuracy of automotive electronic testing and diagnosis are improved.
Patent Information
- Application Number
- CN202510609933.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-09-19
AI Technical Summary
The network complexity of existing automotive electronic control units communicating through the CAN bus has greatly increased the difficulty of signal analysis and fault diagnosis, and has low processing efficiency.
After receiving instructions on the data interaction device, the database file and log file of the communication protocol bus are obtained, multiple alternative signals and data are determined, and the target signal and data are selected for display according to the instructions. The multi-threaded architecture and batch processing mechanism are used to optimize the data query process.
It significantly improves the efficiency and accuracy of automotive electronic testing and diagnosis, shortens the query processing process of target data, and improves data processing efficiency.
Smart Images

Figure CN120670495A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, a data processing device, and a readable storage medium. Background Art
[0002] Currently, automotive electronic control units communicate with each other via the CAN (Controller Area Network) bus, enabling information exchange between various vehicle systems. As vehicles become increasingly electronic, the number of control units has skyrocketed, and the CAN network has become increasingly complex, significantly increasing the difficulty of signal analysis and fault diagnosis. Consequently, existing vehicle data processing methods suffer from technical issues such as low processing efficiency. Summary of the Invention
[0003] The embodiments of the present application provide a data processing method, a data processing device, and a readable storage medium, which are used to solve technical problems such as low processing efficiency in the prior art.
[0004] In a first aspect of an embodiment of the present application, a data processing method is provided, which is applied to a vehicle, the vehicle including a data interaction device, and the method includes:
[0005] When the data interaction device receives the first instruction, in response to the first instruction, it obtains a database file corresponding to the communication protocol bus in the vehicle and obtains a log file of the communication protocol bus;
[0006] Determining a plurality of candidate signals and a plurality of candidate data according to the database file and the log file, wherein the plurality of candidate data corresponds one-to-one to the plurality of candidate signals;
[0007] When the data interaction device receives the second instruction, in response to the second instruction, it determines a target signal among the plurality of candidate signals;
[0008] Acquire target data corresponding to the target signal from a plurality of candidate data;
[0009] Control the data interaction device to display target data.
[0010] The data processing method in this embodiment reduces the query processing process of target data, thereby improving the data processing efficiency of the vehicle in the testing and fault diagnosis process, and at the same time, improving the efficiency and accuracy of vehicle testing and fault diagnosis.
[0011] According to a second aspect of an embodiment of the present application, a data processing device is provided, which is applied to a vehicle. The vehicle includes a data interaction device, which includes:
[0012] an acquiring unit, configured to acquire, in response to the first instruction, a database file corresponding to the communication protocol bus in the vehicle and a log file of the communication protocol bus when the data interaction device receives the first instruction;
[0013] A processing unit, configured to determine, based on the database file and the log file, a plurality of candidate signals and a plurality of candidate data, wherein the plurality of candidate data corresponds one-to-one to the plurality of candidate signals;
[0014] The processing unit is further configured to determine a target signal from the plurality of candidate signals in response to the second instruction when the data interaction device receives the second instruction;
[0015] The acquisition unit is further configured to acquire target data corresponding to the target signal from the plurality of candidate data;
[0016] The control unit is used to control the data interaction device to display target data.
[0017] The data processing device in this embodiment reduces the query processing process of target data, thereby improving the data processing efficiency of the vehicle in the testing and fault diagnosis process, and at the same time, improving the efficiency and accuracy of vehicle testing and fault diagnosis.
[0018] A third aspect of the present application provides another data processing device, including a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, implements the steps of the data processing method described in any of the above embodiments. Therefore, the data processing device possesses all the beneficial effects of the data processing method described in any of the above embodiments, and further description thereof is omitted.
[0019] A fourth aspect of the present application provides a readable storage medium having a program or instructions stored thereon. When executed by a processor, the program or instructions implement the steps of the data processing method described in any of the above embodiments. Therefore, the readable storage medium has all the beneficial effects of the data processing method described in any of the above embodiments, and further description thereof is omitted. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application;
[0022] Figure 2This is one of the principle diagrams of the data processing method provided in the embodiment of the present application;
[0023] Figure 3 The second schematic diagram of the principle of the data processing method provided in the embodiment of the present application;
[0024] Figure 4 The third schematic diagram of the principle of the data processing method provided in the embodiment of the present application;
[0025] Figure 5 The fourth schematic diagram of the principle of the data processing method provided in the embodiment of the present application;
[0026] Figure 6 The fifth schematic diagram of the principle of the data processing method provided in the embodiment of the present application;
[0027] Figure 7 A functional module block diagram of a data processing device provided in an embodiment of the present application;
[0028] Figure 8 This is a structural block diagram of the data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to better understand the technical solutions provided by the embodiments of this specification, the technical solutions of the embodiments of this specification are described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of this specification and the specific features in the embodiments are detailed descriptions of the technical solutions of the embodiments of this specification, rather than limitations on the technical solutions of this specification. In the absence of conflict, the embodiments of this specification and the technical features in the embodiments can be combined with each other.
[0030] In this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also include elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the statement "comprising a ..." do not exclude the presence of other identical elements in the process, method, article or equipment comprising the elements. The term "two or more" includes two or more than two cases.
[0031] In some embodiments, as Figure 1 As shown, an embodiment of the present application provides a data processing method, including:
[0032] Step S101, when the data interaction device receives a first instruction, in response to the first instruction, obtains a database file corresponding to a communication protocol bus in the vehicle and obtains a log file of the communication protocol bus;
[0033] Step S102, determining a plurality of candidate signals and a plurality of candidate data according to the database file and the log file;
[0034] Step S103, when the data interaction device receives the second instruction, in response to the second instruction, determining a target signal from a plurality of candidate signals;
[0035] Step S104, obtaining target data corresponding to the target signal from a plurality of candidate data;
[0036] Step S105: controlling the data interaction device to display target data.
[0037] In this embodiment, a data processing method is proposed, which is applied to a vehicle, wherein the vehicle includes a data interaction device, and the data interaction device can perform data interaction with a user.
[0038] Illustratively, the vehicle may be an electric vehicle.
[0039] Exemplarily, the data interaction device can be connected to and communicated with a host computer, and can receive instructions from the host computer.
[0040] A communication protocol bus is provided inside the vehicle, and various control units inside the vehicle communicate via the communication protocol bus.
[0041] Exemplarily, the communication protocol bus may be a CAN bus.
[0042] A first instruction is received through the data interaction device, wherein the first instruction is an instruction for starting the data interaction device.
[0043] For example, the first instruction may be an instruction to start the data interaction device and perform a vehicle test.
[0044] For example, the second instruction may be an instruction to start the data interaction device and perform vehicle fault diagnosis.
[0045] When the data interaction device receives the first instruction, it responds to the first instruction to obtain the database file corresponding to the communication protocol bus and the log file of the communication protocol bus, wherein the database file is the file data in the database corresponding to the communication protocol bus, and the log file is the log data generated by the operation of the communication protocol bus.
[0046] Exemplarily, the database file may be a DBC (Database Can, CAN bus database file) file.
[0047] Exemplarily, in response to the first instruction, a main thread may be started, and the database file and the log file may be loaded through the main thread.
[0048] According to the database file and the log file, a plurality of candidate signals and a plurality of candidate data are determined, wherein the candidate signal is a signal definition for selection, and the candidate data is specific signal data corresponding to the candidate signal.
[0049] For example, the alternative signal may include an enumeration value definition.
[0050] Exemplarily, the candidate data may include a signal value and a timestamp.
[0051] A second instruction is received through the data interaction device, wherein the second instruction is an instruction for selecting a signal from a plurality of candidate signals.
[0052] When the data interaction device receives the second instruction, it determines a target signal from a plurality of candidate signals in response to the second instruction, wherein the target signal is a signal selected from the plurality of candidate signals.
[0053] For example, the target signal may be a signal for controlling the opening of a vehicle window.
[0054] For example, the target signal may be a signal for controlling the volume of a car audio system.
[0055] For example, the target signal may be a signal for controlling vehicle speed.
[0056] Target data corresponding to the target signal from a plurality of candidate data is acquired, and a data interaction device is controlled to display the target data, wherein the target data is the candidate data corresponding to the target signal from the plurality of candidate data.
[0057] Exemplarily, the data interaction device may include a display, and the target data may be displayed on the display.
[0058] Exemplarily, the data interaction device may send the target data to a host computer, and the host computer may display the target data.
[0059] It should be noted that this embodiment significantly reduces the target data query processing flow by responding to a first instruction, parsing database files and log files, determining multiple candidate signals and multiple candidate data, and then responding to a second instruction to determine a target signal from the multiple candidate signals and target data from the multiple candidate data. This significantly improves data processing efficiency during vehicle testing and diagnosis. Consequently, it overcomes many limitations of existing technologies and significantly enhances the efficiency and accuracy of automotive electronics testing and diagnosis.
[0060] The data processing method in this embodiment reduces the query processing process of target data, thereby improving the data processing efficiency of the vehicle in the testing and fault diagnosis process, and at the same time, improving the efficiency and accuracy of vehicle testing and fault diagnosis.
[0061] In some embodiments, an embodiment of the present application provides a data processing method for determining multiple candidate signals and multiple candidate data based on a database file and a log file, including:
[0062] Step S201, performing data parsing processing on the database file to obtain multiple candidate signals;
[0063] Step S202: determining signal data structures corresponding to a plurality of candidate signals based on a database file;
[0064] Step S203 : performing data extraction processing on the log file based on the signal data structure to obtain a plurality of candidate data corresponding to the plurality of candidate signals.
[0065] In this embodiment, the database file is subjected to data parsing processing to obtain multiple candidate signals, and the signal data structures corresponding to the multiple candidate signals are determined based on the database file, wherein the signal data structure is the structure of the data corresponding to the candidate signals.
[0066] Exemplarily, the signal data structure may be stored in a database file, the database file may be converted into character data, and the data of the signal data structure may be extracted from the character data.
[0067] Exemplarily, a signal definition is extracted from a database file, and a signal data structure can be determined according to the signal definition.
[0068] Based on the signal data structure, data extraction processing is performed on the log file to obtain multiple candidate data corresponding to the multiple candidate signals.
[0069] Exemplarily, the log file stores specific information data, and based on the signal data structure, a traversal query can be performed on the data in the log file to obtain multiple candidate data corresponding to multiple candidate signals.
[0070] In some embodiments, an embodiment of the present application provides a data processing method that performs data extraction processing on a log file based on a signal data structure to obtain multiple candidate data corresponding to multiple candidate signals, including:
[0071] Step S301, start a working thread;
[0072] Step S302: converting the log file into string data through a worker thread;
[0073] Step S303 : determining multiple candidate data corresponding to multiple candidate signals in the character string data based on the signal data structure.
[0074] In this embodiment, a working thread is started, and the log file is converted into character string data through the working thread, wherein the character string data is character type data.
[0075] Based on the signal data structure, the character string data is traversed and queried to determine a plurality of candidate data corresponding to the plurality of candidate signals.
[0076] For example, this implementation adopts a thread asynchronous processing architecture, such as Figure 2 As shown, specifically including:
[0077] Main thread: focuses on UI (User Interface) rendering and user interaction, keeping the interface responsive.
[0078] Worker thread: parses CAN message data in the background and extracts signal values and timestamps.
[0079] Data queue: Use queue.Queue (a queue function) as a communication bridge between threads to achieve data buffering.
[0080] Batch processing mechanism: Submit a batch of 50 records after parsing, balancing real-time performance and security.
[0081] Non-blocking update: Poll the queue regularly via after(100, self.update_ui) to avoid UI blocking.
[0082] In some embodiments, an embodiment of the present application provides a data processing method for controlling a data interaction device to display target data, including:
[0083] Step S401: performing data extraction processing on the log file to obtain multiple semantic annotations and multiple time data, wherein the multiple candidate data correspond one-to-one to the multiple semantic annotations and the multiple time data;
[0084] Step S402, obtaining target time data corresponding to target data from the plurality of time data, and obtaining target semantic annotations corresponding to the target data from the plurality of semantic annotations;
[0085] Step S403: creating a data chart corresponding to the target data based on the target time data and the target semantic annotation;
[0086] Step S404: Control the data interaction device to display a data chart.
[0087] In this embodiment, data extraction processing is performed on the log file to obtain multiple semantic annotations and multiple time data, wherein the semantic annotation is the information semantics annotated on the alternative information, and the time data is the timestamp of the alternative information. The multiple alternative data correspond one-to-one to the multiple semantic annotations and the multiple time data.
[0088] For example, the semantic annotation may be “control the window opening”.
[0089] For example, the semantic annotation may be “control the volume of the car audio system”.
[0090] For example, the semantic annotation may be “control vehicle speed”.
[0091] Based on the target time data and the target semantic annotations, a data chart corresponding to the target data is established, wherein the data chart is a chart including the target data, the target time data and the target semantic annotations.
[0092] Illustratively, the data graph may be a graph view.
[0093] Control the data interaction device to display data charts.
[0094] In some embodiments, an embodiment of the present application provides a data processing method. After acquiring target time data corresponding to target data from a plurality of time data, the method further includes:
[0095] Step S501, based on the target time data, determining the text data corresponding to the target data;
[0096] Step S502: Control the data interaction device to display text data.
[0097] In this embodiment, based on the target time data, text data corresponding to the target data is determined, wherein the text data is text including the target data and the target time data.
[0098] The data interaction device is controlled to display text data.
[0099] Exemplarily, the text data may be a text view.
[0100] For example, Figure 3 As shown, this embodiment implements a unique parsing and display method for signal semantics, specifically including:
[0101] Enumeration definition extraction: Automatically extract signal enumeration value definitions (signal.choices) from DBC files.
[0102] Y-axis semantics: Customize Matplotlib formatter (enum_formatter) to display "value (enumeration description)".
[0103] Adaptive Scaling: Automatically sets the Y-axis scale based on the signal value range to display all unique values.
[0104] Time precision optimization: implement millisecond-level display format (HH:MM:SS.mmm) to capture transient changes.
[0105] Dual-view display: Use the Notebook component to switch between text view and chart view to meet different analysis needs.
[0106] For example, time zone management and timestamp formatting. To support global collaboration, this embodiment implements flexible time zone management:
[0107] Time zone selection: Use the drop-down box to select a commonly used time zone, such as UTC, Asia / Shanghai, etc.
[0108] Real-time conversion: Dynamically updates the timestamp display to ensure consistency in time representation.
[0109] High-precision time: uniformly formatted with millisecond-level precision (such as "2025-03-13 14:25:00.445").
[0110] Traceability: Preserve original timestamps in text views for easier issue tracking.
[0111] For example, Figure 4 As shown, the workflow of this embodiment is:
[0112] S1, the user loads the DBC file, and the system parses the message and signal definition.
[0113] S2, the user loads the CAN log file and the system extracts all message data.
[0114] S3, the user selects the target signal through the filter input box.
[0115] S4, the system starts a background thread to parse all values of the selected signal.
[0116] S5, the system generates a signal timing diagram, including millisecond-level time display and enumeration semantic annotation.
[0117] S6, users can switch between tabs to view text data or chart presentation.
[0118] For example, the user interface is designed as Figure 5 shown.
[0119] For example, Figure 6 As shown, this implementation adopts a three-tier architecture design, specifically including:
[0120] Data layer: responsible for loading and parsing DBC files and CAN log files.
[0121] Processing layer: implements signal extraction, decoding and data conversion.
[0122] User interface layer: provides consistent graphical interface and interactive functions across platforms.
[0123] In some embodiments, an embodiment of the present application provides a data processing method. After obtaining target data corresponding to a target signal from a plurality of candidate data, the method further includes:
[0124] Step S601, determining the vehicle detection result by comparing the target data with the preset data;
[0125] Step S602: Control the data interaction device to display the detection result.
[0126] In this embodiment, preset data is acquired, wherein the preset data is preset standard data.
[0127] By comparing the target data with the preset data, the detection result of the vehicle is determined, wherein the detection result is the result of the vehicle detection.
[0128] Illustratively, the test result may be normal or abnormal.
[0129] Control the data interaction device to display the test results.
[0130] In some embodiments, an embodiment of the present application provides a data processing method. After determining the vehicle detection result by comparing the target data with the preset data, the method further includes:
[0131] Step S701: if the test result is normal, generate test pass information and control the data interaction device to display the test pass information;
[0132] Step S702: When the detection result is abnormal, the abnormality handling process of the vehicle is determined according to the target signal and the target data, and the data interaction device is controlled to display the abnormality handling process.
[0133] In this embodiment, when the detection result is normal, detection pass information is generated, wherein the detection pass information indicates that the vehicle has passed the detection.
[0134] Control the data interaction device to display the detection pass information,
[0135] When the detection result is abnormal, the abnormality handling process of the vehicle is determined according to the target signal and the target data, wherein the abnormality handling process is a step process for handling the abnormality.
[0136] The control data interaction device displays the exception handling process.
[0137] For example, the abnormality handling process of the vehicle may be determined based on the historical processing process corresponding to the target signal and the target data.
[0138] For example, the embodiment has the following significant advantages over the prior art:
[0139] 1. Cross-platform out-of-the-box:
[0140] Easy deployment: The software is packaged as a single executable file, which requires no installation or configuration and can be used after downloading.
[0141] Cross-platform support: The same source code can run seamlessly on different operating systems, facilitating collaboration between different teams.
[0142] 2. Economical and efficient with no authorization restrictions:
[0143] Flexible customization: Users can modify the source code according to their needs to achieve functional customization.
[0144] 3. Improve diagnostic efficiency and accuracy:
[0145] Semantic visualization: Display text descriptions of enumeration values directly on the chart without the need for table lookup.
[0146] High-precision time analysis: Millisecond-level time display captures transient events, solving the problem of insufficient second-level accuracy of traditional tools.
[0147] Improved efficiency: Through comparative testing, using this tool to analyze the same set of data, the diagnosis speed is increased by about 40%.
[0148] 4. High performance and responsiveness:
[0149] Multi-threaded architecture: Even when parsing large log files, the UI remains responsive and the user experience is smooth.
[0150] Batch processing: Effectively balance real-time performance and system overhead through batch processing and buffering mechanisms.
[0151] Performance measurement: In the test, the system was able to smoothly process a log file of more than 1 million CAN messages, and the CPU utilization rate remained within an acceptable range (<30%).
[0152] 5. Optimization for specific scenarios:
[0153] Remote collaboration: Multi-time zone support and cross-platform features enable global teams to analyze the same data using the same tools.
[0154] Real-time monitoring: Efficient parsing and display mechanisms enable the tool to be used in real-time data monitoring scenarios.
[0155] Flexible screening: Dynamic signal screening enables engineers to quickly locate target signals, suitable for complex system analysis.
[0156] In some embodiments, as Figure 7 As shown, an embodiment of the present application provides a data processing device 800, including:
[0157] an acquiring unit 802 for acquiring, in response to the first instruction, a database file corresponding to the communication protocol bus in the vehicle and a log file of the communication protocol bus when the data interaction device receives the first instruction;
[0158] The processing unit 804 is configured to determine, based on the database file and the log file, a plurality of candidate signals and a plurality of candidate data, wherein the plurality of candidate data corresponds one-to-one to the plurality of candidate signals;
[0159] The processing unit 804 is further configured to determine a target signal from the plurality of candidate signals in response to the second instruction when the data interaction device receives the second instruction;
[0160] The acquiring unit 802 is further configured to acquire target data corresponding to the target signal from the plurality of candidate data;
[0161] The control unit 806 is used to control the data interaction device to display target data.
[0162] In this embodiment, a data processing device 800 is proposed, which is applied to a vehicle. The vehicle includes a data interaction device, and the data interaction device can perform data interaction with a user.
[0163] Illustratively, the vehicle may be an electric vehicle.
[0164] Exemplarily, the data interaction device can be connected to and communicated with a host computer, and can receive instructions from the host computer.
[0165] A communication protocol bus is provided inside the vehicle, and various control units inside the vehicle communicate via the communication protocol bus.
[0166] Exemplarily, the communication protocol bus may be a CAN bus.
[0167] A first instruction is received through the data interaction device, wherein the first instruction is an instruction for starting the data interaction device.
[0168] For example, the first instruction may be an instruction to start the data interaction device and perform a vehicle test.
[0169] For example, the second instruction may be an instruction to start the data interaction device and perform vehicle fault diagnosis.
[0170] When the data interaction device receives the first instruction, it responds to the first instruction to obtain the database file corresponding to the communication protocol bus and the log file of the communication protocol bus, wherein the database file is the file data in the database corresponding to the communication protocol bus, and the log file is the log data generated by the operation of the communication protocol bus.
[0171] Exemplarily, the database file may be a DBC (Database Can, CAN bus database file) file.
[0172] Exemplarily, in response to the first instruction, a main thread may be started, and the database file and the log file may be loaded through the main thread.
[0173] According to the database file and the log file, a plurality of candidate signals and a plurality of candidate data are determined, wherein the candidate signal is a signal definition for selection, and the candidate data is specific signal data corresponding to the candidate signal.
[0174] For example, the alternative signal may include an enumeration value definition.
[0175] Exemplarily, the candidate data may include a signal value and a timestamp.
[0176] A second instruction is received through the data interaction device, wherein the second instruction is an instruction for selecting a signal from a plurality of candidate signals.
[0177] When the data interaction device receives the second instruction, it determines a target signal from a plurality of candidate signals in response to the second instruction, wherein the target signal is a signal selected from the plurality of candidate signals.
[0178] For example, the target signal may be a signal for controlling the opening of a vehicle window.
[0179] For example, the target signal may be a signal for controlling the volume of a car audio system.
[0180] For example, the target signal may be a signal for controlling vehicle speed.
[0181] Target data corresponding to the target signal from a plurality of candidate data is acquired, and a data interaction device is controlled to display the target data, wherein the target data is the candidate data corresponding to the target signal from the plurality of candidate data.
[0182] Exemplarily, the data interaction device may include a display, and the target data may be displayed on the display.
[0183] Exemplarily, the data interaction device may send the target data to a host computer, and the host computer may display the target data.
[0184] It should be noted that this embodiment significantly reduces the target data query processing flow by responding to a first instruction, parsing database files and log files, determining multiple candidate signals and multiple candidate data, and then responding to a second instruction to determine a target signal from the multiple candidate signals and target data from the multiple candidate data. This significantly improves data processing efficiency during vehicle testing and diagnosis. Consequently, it overcomes many limitations of existing technologies and significantly enhances the efficiency and accuracy of automotive electronics testing and diagnosis.
[0185] The data processing device 800 in this embodiment reduces the query processing process of target data, thereby improving the data processing efficiency of the vehicle in the testing and fault diagnosis process, and at the same time, improving the efficiency and accuracy of vehicle testing and fault diagnosis.
[0186] In some embodiments, an embodiment of the present application provides a data processing device 800, including:
[0187] The processing unit 804 is used to perform data parsing on the database file to obtain multiple candidate signals;
[0188] The processing unit 804 is configured to determine, based on the database file, signal data structures corresponding to the plurality of candidate signals;
[0189] The processing unit 804 is configured to perform data extraction processing on the log file based on the signal data structure to obtain a plurality of candidate data corresponding to the plurality of candidate signals.
[0190] In some embodiments, an embodiment of the present application provides a data processing device 800, including:
[0191] Processing unit 804, used to start a working thread;
[0192] The processing unit 804 is configured to convert the log file into string data through a working thread;
[0193] The processing unit 804 is configured to determine, based on the signal data structure, a plurality of candidate data corresponding to the plurality of candidate signals in the character string data.
[0194] In some embodiments, an embodiment of the present application provides a data processing device 800, including:
[0195] The processing unit 804 is configured to perform data extraction processing on the log file to obtain a plurality of semantic annotations and a plurality of time data, wherein the plurality of candidate data corresponds one-to-one to the plurality of semantic annotations and the plurality of time data;
[0196] The processing unit 804 is configured to obtain target time data corresponding to the target data from the plurality of time data, and obtain target semantic annotations corresponding to the target data from the plurality of semantic annotations;
[0197] The processing unit 804 is configured to create a data chart corresponding to the target data based on the target time data and the target semantic annotation;
[0198] The control unit 806 is used to control the data interaction device to display data charts.
[0199] In some embodiments, an embodiment of the present application provides a data processing device 800, including:
[0200] The processing unit 804 is configured to determine text data corresponding to the target data based on the target time data;
[0201] The control unit 806 is used to control the data interaction device to display text data.
[0202] In some embodiments, an embodiment of the present application provides a data processing device 800, including:
[0203] The processing unit 804 is used to determine the detection result of the vehicle by comparing the target data with the preset data;
[0204] The control unit 806 is used to control the data interaction device to display the detection results.
[0205] In some embodiments, an embodiment of the present application provides a data processing device 800, including:
[0206] The processing unit 804 is configured to generate a detection pass message when the detection result is normal, and control the data interaction device to display the detection pass message;
[0207] The processing unit 804 is used to determine the vehicle's abnormality processing process based on the target signal and target data when the detection result is abnormal, and control the data interaction device to display the abnormality processing process.
[0208] In some embodiments, as Figure 8 As shown, a data processing device 900 is proposed. The data processing device 900 includes a processor 902 and a memory 904. The memory 904 stores a computer program. When the computer program is executed by the processor 902, the steps of the data processing method in any of the above embodiments are implemented. Therefore, the data processing device 900 has all the beneficial effects of the data processing method in any of the above embodiments, and no further details are given here.
[0209] In some embodiments, a readable storage medium is provided on which a program is stored. When the program is executed by a processor, the steps of the data processing method in any of the above embodiments are implemented, thereby having all the beneficial technical effects of the data processing method in any of the above embodiments.
[0210] It should be noted that, in the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0211] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-readable program code.
[0212] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0213] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0214] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0215] An embodiment of the present application further provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device executes the process of the data processing method.
[0216] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)).
[0217] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0218] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0219] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0220] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0221] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0222] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
[0223] Although the preferred embodiments of this specification have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of this specification.
[0224] Obviously, those skilled in the art may make various changes and modifications to this specification without departing from the spirit and scope of this specification. Thus, if such changes and modifications fall within the scope of the claims of this specification and their equivalents, this specification is intended to include such changes and modifications.
Claims
1. A data processing method, characterized in that: Applied to a vehicle, the vehicle including a data interaction device, the method comprising: When the data interaction device receives a first instruction, in response to the first instruction, obtaining a database file corresponding to a communication protocol bus in the vehicle and obtaining a log file of the communication protocol bus; Determining a plurality of candidate signals and a plurality of candidate data according to the database file and the log file, wherein the plurality of candidate data corresponds one-to-one to the plurality of candidate signals; When the data interaction device receives a second instruction, determining a target signal from the plurality of candidate signals in response to the second instruction; Acquire target data corresponding to the target signal from a plurality of candidate data; Control the data interaction device to display the target data.
2. The method according to claim 1, characterized in that The determining of a plurality of candidate signals and a plurality of candidate data according to the database file and the log file comprises: performing data parsing processing on the database file to obtain a plurality of candidate signals; Determining, based on the database file, signal data structures corresponding to a plurality of the candidate signals; Based on the signal data structure, data extraction processing is performed on the log file to obtain a plurality of candidate data corresponding to the plurality of candidate signals.
3. The method according to claim 2, characterized in that The performing data extraction processing on the log file based on the signal data structure to obtain the plurality of candidate data corresponding to the plurality of candidate signals includes: Start the worker thread; Converting the log file into string data through the working thread; Based on the signal data structure, a plurality of candidate data corresponding to the plurality of candidate signals are determined in the character string data.
4. The method according to claim 1, wherein The controlling the data interaction device to display the target data includes: Performing data extraction processing on the log file to obtain a plurality of semantic annotations and a plurality of time data, wherein the plurality of candidate data corresponds one-to-one to the plurality of semantic annotations and the plurality of time data; Acquire target time data corresponding to the target data from the plurality of time data, and acquire target semantic annotations corresponding to the target data from the plurality of semantic annotations; Creating a data chart corresponding to the target data based on the target time data and the target semantic annotation; Control the data interaction device to display the data chart.
5. The method according to claim 4, characterized in that After acquiring the target time data corresponding to the target data from the plurality of time data, the method further includes: Based on the target time data, determining text data corresponding to the target data; Control the data interaction device to display the text data.
6. The method according to any one of claims 1 to 4, characterized in that After acquiring the target data corresponding to the target signal from the plurality of candidate data, the method further includes: Determining a detection result of the vehicle by comparing the target data with preset data; Control the data interaction device to display the detection result.
7. The method according to claim 6, characterized in that After determining the detection result of the vehicle by comparing the target data with the preset data, the method further includes: If the detection result is normal, generate detection pass information, and control the data interaction device to display the detection pass information; In the case that the detection result is abnormal, the abnormality handling process of the vehicle is determined according to the target signal and the target data, and the data interaction device is controlled to display the abnormality handling process.
8. A data processing device, characterized in that: The device comprises: an acquiring unit, configured to acquire, in response to a first instruction received by the data interaction device, a database file corresponding to a communication protocol bus in the vehicle and a log file of the communication protocol bus; a processing unit, configured to determine, based on the database file and the log file, a plurality of candidate signals and a plurality of candidate data, wherein the plurality of candidate data corresponds one-to-one to the plurality of candidate signals; The processing unit is further configured to determine a target signal from the plurality of candidate signals in response to a second instruction when the data interaction device receives the second instruction; The acquisition unit is further configured to acquire target data corresponding to the target signal from the plurality of candidate data; A control unit is used to control the data interaction device to display the target data.
9. A data processing device, characterized in that: include: processor; A memory, wherein a program or instruction is stored in the memory, and when the processor executes the program or instruction in the memory, the steps of the data processing method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the data processing method according to any one of claims 1 to 7 are implemented.