Adaptive interactive processing method and device for on-board diagnostic log

By adaptively converting log formats and using multi-channel transmission, the compatibility and stability issues of vehicle diagnostic logs across different terminals have been resolved, achieving a high-efficiency cross-platform diagnostic data link and improving fault diagnosis efficiency.

CN123177409APending Publication Date: 2026-11-27NANCHANG XINGWEI SOFTWARE DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611370922.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing vehicle diagnostic logs suffer from poor compatibility across different processing terminals and insufficient transmission stability, failing to form a coherent diagnostic data link. This increases operational complexity and time costs, making it difficult to meet the needs of efficient and accurate vehicle diagnostics.

Method used

The on-board diagnostic equipment adaptively converts the log format to the target format structured log file, establishes communication links in parallel through multiple communication channels, dynamically selects the main channel for transmission, generates visual analysis results at the target processing end and sends back feedback instructions, the on-board equipment supplements the collection and generates enhanced logs, and finally performs correlation and fusion at the target processing end.

Benefits of technology

It achieves adaptive adaptation of vehicle diagnostic logs across different platforms, ensuring the stability and continuity of transmission, and improving the integrity of diagnostic data and the efficiency of fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177409A_ABST
    Figure CN123177409A_ABST
Patent Text Reader

Abstract

The application discloses a kind of self-adapting interactive processing method and device of vehicle diagnostic log, comprising: after collecting vehicle operation data, original diagnostic log is generated, and according to the platform type of target processing end, it is converted into structured log file;Through multiple communication channels, the communication link between vehicle diagnostic equipment and target processing end is established in parallel, and structured log file is transmitted to target processing end;Target processing end analyzes structured log file, and generates visual diagnostic analysis result;According to visual diagnostic analysis result, feedback instruction is generated and is returned to vehicle diagnostic equipment via communication link;In response to feedback instruction, supplementary collection is executed, and enhanced diagnostic log is generated and transmitted to target processing end;Enhanced diagnostic log is associated and fused with structured log file, and complete diagnostic context is generated.The application can realize the platform self-adapting adaptation and stable transmission of vehicle diagnostic log, improve the adaptability and transmission reliability of log interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, specifically to an adaptive interactive processing method and apparatus for vehicle diagnostic logs. Background Technology

[0002] With the continuous development of automotive electronics technology, on-board diagnostics is being used more and more widely in automotive R&D, after-sales repair, and vehicle maintenance. On-board diagnostic equipment collects vehicle bus data, fault codes, and real-time operating parameters to generate diagnostic logs. These logs need to be transmitted to a processing terminal for parsing and analysis. The smoothness of log interaction and the integrity of the data directly determine the efficiency and accuracy of the diagnostic work.

[0003] Currently, vehicle diagnostic logs are mostly exported from diagnostic devices to processing terminals for analysis via a single transmission link. However, in practical applications, different processing terminals operate on different platforms, and the format and encoding of the original diagnostic logs are difficult to adapt to the parsing environments of various terminals, easily leading to parsing anomalies and data corruption. Simultaneously, the single transmission link is susceptible to interruptions due to factors such as vehicle electromagnetic interference and connection limitations, making it difficult to guarantee the stability and integrity of log transmission, increasing the operational complexity and time cost of log interaction. Furthermore, the existing log collection and diagnostic analysis processes are independent. When specific data needs to be supplemented after terminal analysis, manual re-operation of the diagnostic device is required to perform collection and export, making it impossible to coordinate data supplementation according to analysis needs and forming a continuous diagnostic data link, which is detrimental to the efficient troubleshooting of complex faults. In summary, the existing vehicle diagnostic log interaction method suffers from low adaptability and insufficient transmission stability, and cannot form a coherent diagnostic data link, failing to meet the needs of efficient and accurate vehicle diagnostics.

[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the Invention

[0005] This application provides an adaptive interactive processing method and apparatus for vehicle diagnostic logs, which can achieve platform adaptive adaptation and stable transmission of vehicle diagnostic logs, and improve the adaptability and transmission reliability of log interaction.

[0006] In a first aspect, embodiments of this application provide an adaptive interactive processing method for vehicle diagnostic logs, including: Vehicle operation data is collected by on-board diagnostic equipment, raw diagnostic logs are generated, and the raw diagnostic logs are adaptively converted into structured log files in the target format according to the platform type of the target processing terminal. The on-board diagnostic device and the target processing terminal establish a communication link in parallel through multiple communication channels, and dynamically select at least one main channel from the multiple communication channels to transmit the structured log file to the target processing terminal through the selected main channel; The target processing terminal receives and parses the structured log file to generate visual diagnostic analysis results; The target processing terminal generates a feedback instruction based on the visual diagnostic analysis result, and transmits the feedback instruction back to the vehicle diagnostic device via the communication link. The on-board diagnostic device responds to the feedback command, performs supplementary data collection for the target data indicated by the feedback command, generates an enhanced diagnostic log, and transmits the enhanced diagnostic log to the target processing terminal; The target processing end associates and merges the enhanced diagnostic log with the structured log file to generate a complete diagnostic context.

[0007] Secondly, embodiments of this application provide an adaptive interactive processing device for vehicle diagnostic logs, comprising: The data processing module is used to collect vehicle operation data through on-board diagnostic equipment, generate raw diagnostic logs, and adaptively convert the raw diagnostic logs into structured log files in the target format according to the platform type of the target processing terminal. The data transmission module is used to establish a communication link between the vehicle diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically select at least one main channel from the multiple communication channels to transmit the structured log file to the target processing terminal through the selected main channel; The diagnostic analysis module is used to receive and parse the structured log file through the target processing terminal and generate visual diagnostic analysis results; The feedback instruction module is used to generate a feedback instruction based on the visualization diagnostic analysis result through the target processing terminal, and to transmit the feedback instruction back to the vehicle diagnostic device via the communication link. The log generation module is used to respond to the feedback command through the on-board diagnostic device, perform supplementary data collection for the target data indicated by the feedback command, generate an enhanced diagnostic log, and transmit the enhanced diagnostic log to the target processing terminal; The log association module is used to associate and merge the enhanced diagnostic logs with the structured log files through the target processing terminal to generate a complete diagnostic context.

[0008] This application provides an adaptive interactive processing method and apparatus for vehicle diagnostic logs. First, after collecting vehicle operating data and generating raw diagnostic logs through vehicle diagnostic equipment, the logs are adaptively converted into structured log files in the target format according to the platform type of the target processing end. This ensures that the output logs are compatible with the parsing environments of different platforms and that the log data can be parsed and read normally on various processing ends. Next, communication links are established in parallel through multiple communication channels, and the primary channel is dynamically selected for log transmission. The redundancy of multiple channels reduces the impact of single-channel failures or interruptions on the transmission process, ensuring the stability and continuity of log data transmission. Then, after receiving and parsing the logs and generating visualized diagnostic analysis results at the target processing end, a feedback command is generated and sent back to the vehicle diagnostic equipment. This drives the equipment to perform supplementary data collection based on the feedback command and generate enhanced diagnostic logs for transmission. Finally, the target processing end associates and merges the enhanced diagnostic logs with the original structured log files to generate a complete diagnostic context. This allows diagnostic analysis and data collection to be linked, and data can be supplemented in a targeted manner according to actual diagnostic needs, thereby improving the completeness of diagnostic data and the overall efficiency of vehicle fault diagnosis. Therefore, this application adapts to different parsing environments by platform adaptive conversion of log formats, ensures the stability of log transmission through multi-channel parallelism and dynamic routing, and drives targeted supplementary collection and fusion to form a complete diagnostic data link through diagnostic analysis, effectively improving the cross-platform compatibility, transmission reliability and overall efficiency of fault diagnosis of vehicle diagnostic logs. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 This is an application environment diagram of the adaptive interactive processing method for vehicle diagnostic logs provided in the embodiments of this application; Figure 2 This is a flowchart illustrating the adaptive interactive processing method for vehicle diagnostic logs provided in an embodiment of this application. Figure 3 This is a schematic diagram of the structure of the adaptive interactive processing device for vehicle diagnostic logs provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0011] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of systems and methods consistent with those detailed in the appended claims or with some aspects of this application.

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

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

[0014] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0015] To address the aforementioned technical issues, this application provides an adaptive interactive processing method and apparatus for vehicle diagnostic logs, which enables platform adaptive adaptation and stable transmission of vehicle diagnostic logs, thereby improving the adaptability and transmission reliability of log interaction.

[0016] Figure 1 This is an application environment diagram of an adaptive interactive processing method for vehicle diagnostic logs in one embodiment. (Refer to...) Figure 1This adaptive interactive processing method for vehicle diagnostic logs is applied to an adaptive interactive processing system for vehicle diagnostic logs. The system includes a terminal 110 and a server 120. The terminal 110 and server 120 are connected via a network. The terminal 110 can be a desktop terminal or a mobile terminal; a mobile terminal can be at least one of a mobile phone, tablet, or laptop. The server 120 can be a standalone server or a server cluster consisting of multiple servers. Terminal 110 is configured to execute the aforementioned adaptive interactive processing method for vehicle diagnostic logs, including: collecting vehicle operating data through the vehicle diagnostic device, generating raw diagnostic logs, and adaptively converting the raw diagnostic logs into a structured log file in the target format according to the platform type of the target processing terminal; establishing a communication link between the vehicle diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically selecting at least one main channel from the multiple communication channels, transmitting the structured log file to the target processing terminal through the selected main channel; the target processing terminal receiving and parsing the structured log file, generating a visual diagnostic analysis result; the target processing terminal generating a feedback instruction based on the visual diagnostic analysis result, and transmitting the feedback instruction back to the vehicle diagnostic device through the communication link; the vehicle diagnostic device responding to the feedback instruction, performing supplementary collection on the target data indicated by the feedback instruction, generating an enhanced diagnostic log, and transmitting the enhanced diagnostic log to the target processing terminal; and the target processing terminal associating and fusing the enhanced diagnostic log with the structured log file to generate a complete diagnostic context.

[0017] Please see Figure 2 , Figure 2 This is a flowchart illustrating an adaptive interactive processing method for vehicle diagnostic logs according to an embodiment of this application. This embodiment primarily uses the application of this adaptive interactive processing method for vehicle diagnostic logs in an adaptive interactive processing system as an example. The adaptive interactive processing system for vehicle diagnostic logs includes an on-board diagnostic device and a target processing terminal. Specifically, the adaptive interactive processing method for vehicle diagnostic logs provided in this embodiment may include the following steps: S1. Collect vehicle operation data through on-board diagnostic equipment, generate raw diagnostic logs, and adaptively convert the raw diagnostic logs into structured log files in the target format according to the platform type of the target processing terminal; Specifically, for step S1, after the on-board diagnostic equipment connects to the vehicle diagnostic interface, it continuously collects multi-dimensional vehicle operation data during vehicle operation or fault diagnosis, including vehicle bus communication messages, system fault codes, and real-time operating parameters of components (such as speed, voltage, temperature, and pressure). The collected raw data is then summarized and archived according to the equipment's internal storage structure, generating raw diagnostic logs which are temporarily stored locally on the equipment. When logs need to be transmitted to the corresponding target processing end, the system first identifies the platform type of the target processing end. Based on the file parsing characteristics and data reading habits of different platforms, the system automatically converts the raw internal format logs into a standard structured format adapted to that platform, generating a structured log file that can be directly read and parsed by the target processing end without requiring manual format adjustment.

[0018] S2. Establish a communication link between the vehicle diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically select at least one main channel from the multiple communication channels to transmit the structured log file to the target processing terminal through the selected main channel; Specifically, in step S2, during the log transmission preparation phase, the on-board diagnostic device and the target processing terminal simultaneously activate multiple different types of communication channels, each independently attempting to establish a bidirectional communication link. Once a channel is connected, it remains active and ready to undertake transmission tasks at any time. After the structured log file is generated, the system dynamically selects at least one channel with the best status from the established communication channels as the primary transmission channel, based on the current connection status and transmission capacity of each channel. The structured log file is then stably transmitted to the target processing terminal through the selected primary channel.

[0019] S3. The target processing end receives and parses the structured log file, and generates visual diagnostic analysis results; Specifically, in step S3, after receiving the structured log file, the target processing end parses and extracts information such as timestamps, data identifiers, parameter values, and fault code meanings one by one, transforming the log data, originally stored in plain text or encoded form, into intuitive and visual diagnostic analysis results. The analysis results can be presented in the form of parameter trend curves, fault occurrence time markers, abnormal data highlights, and multi-parameter comparison views, helping diagnostic personnel quickly locate abnormal periods, identify abnormal data patterns, and efficiently determine the cause of the fault.

[0020] S4. The target processing end generates feedback instructions based on the visual diagnostic analysis results and transmits the feedback instructions back to the on-board diagnostic equipment via the communication link; Specifically, in step S4, diagnostic personnel conduct fault assessment based on the visualized diagnostic analysis results. When they find that the existing log data granularity is insufficient or specific module data is missing, making it insufficient to support accurate fault location, they generate corresponding feedback instructions at the target processing end. The feedback instructions clearly indicate the target data objects, data range, and collection requirements that need to be supplemented. The generated feedback instructions reuse the established communication link and are transmitted back from the target processing end to the on-board diagnostic equipment, enabling rapid instruction distribution from the analysis end to the collection end without requiring manual operation of the equipment.

[0021] S5. The on-board diagnostic equipment responds to the feedback command, performs supplementary data collection for the target data indicated by the feedback command, generates an enhanced diagnostic log, and transmits the enhanced diagnostic log to the target processing terminal; Specifically, in step S5, after receiving the feedback instruction from the target processing end, the on-board diagnostic equipment responds to the collection requirements of the instruction and initiates targeted supplementary collection of the target data indicated by the instruction: adjusting the sampling frequency, filtering the data range, and increasing the collection dimensions according to the instruction requirements to accurately collect the specific data required for fault analysis. After the supplementary collection is completed, the specific data collected this time is packaged into an enhanced diagnostic log, and the enhanced diagnostic log is transmitted back to the target processing end through the existing communication link for further analysis by the analysis end.

[0022] S6. The target processing end associates and merges the enhanced diagnostic logs with the structured log files to generate a complete diagnostic context; Specifically, in step S6, after receiving the enhanced diagnostic logs, the target processing end first establishes a corresponding association between the enhanced diagnostic logs and the previously received structured log files based on the fault event or time dimension, clarifying the abnormal location of the supplementary data in the original diagnostic process. Then, the data content of the two types of logs is merged and integrated, arranged according to a unified timeline or data logic, forming a complete diagnostic context containing basic full data and targeted supplementary data. Diagnostic personnel can view the complete data changes before and after the fault in a unified view, fully reconstructing the entire process details of the fault occurrence and supporting accurate fault determination.

[0023] This embodiment adapts to different parsing environments by platform adaptive conversion of log formats, ensures the stability of log transmission through multi-channel parallelism and dynamic routing, and then uses diagnostic analysis to drive targeted supplementary collection and fusion to form a complete diagnostic data link, thereby improving the cross-platform compatibility, transmission reliability and overall efficiency of fault diagnosis of vehicle diagnostic logs.

[0024] Furthermore, in some embodiments, step S1, "adaptively converting the original diagnostic logs into a structured log file of the target format according to the platform type of the target processing terminal," may specifically include: S11. Identify the platform type of the target processing terminal, including the operating system category and system version information; Specifically, for step S11, before performing log format conversion, the platform type corresponding to the target processing end is first obtained and identified, clarifying the operating system category and corresponding system version information of the target processing end. The platform type identification result directly determines the adaptation direction of subsequent format conversion, ensuring that the final output log file conforms to the file processing habits and native parsing capabilities of the target system, providing an accurate basis for subsequent format matching.

[0025] S12. Based on the platform type, match the corresponding format conversion rule from the preset mapping rule library. The format conversion rule includes at least one of the following: output format type, character encoding standard, newline format, and path separator specification. The mapping rule library is maintained as follows: basic mapping rules are built into the local storage of the on-board diagnostic device, and extended mapping rules are distributed by the cloud configuration center. The mapping rule library adopts an incremental update method, and the updated rule file replaces the existing rules after the integrity verification is passed. Specifically, for step S12, based on the identified platform type, the format conversion rules corresponding to the platform are matched from the preset mapping rule library. The conversion rules can cover multiple dimensions such as the output file format type, character encoding standard, newline format, path separator specification, etc., providing clear execution standards for subsequent log conversion.

[0026] The mapping rule library is maintained using a combination of local and cloud-based methods. Basic, universal mapping rules covering mainstream platforms are built into the local storage of the on-board diagnostic device, ensuring normal conversion even in offline scenarios. Extended and newly added customized mapping rules are uniformly distributed by the cloud configuration center, supporting continuous rule iteration and expansion of the adaptation scope. Rule updates adopt an incremental update method, downloading only the changed rule content to reduce data transmission volume. Updated rule files first undergo integrity verification, and only after the verification passes will they replace the existing rules on the device's local storage, avoiding conversion function abnormalities caused by update interruption or file corruption.

[0027] S13. According to the matched format conversion rules, read the original diagnostic log block by block in a streaming manner, and during the reading and conversion process, perform field name mapping and sensitive information filtering according to the preset mapping dictionary to generate a structured log file; Specifically, for step S13, the original diagnostic log data is read block by block using a streaming method according to the matched format conversion rules, without loading the entire log file into the running memory. During the block-by-block reading and conversion process, the field names are standardized according to a preset mapping dictionary, converting the device's internal field names in the original log into standard field names common to the target end; at the same time, sensitive information in the log is filtered or masked, and non-diagnostic privacy data is removed or anonymized, ultimately generating a structured log file that conforms to the target platform's specifications. By using the block-by-block reading and conversion method, the memory usage of large log files on the device can be significantly reduced, avoiding device lag or processing interruption due to excessively large log files, thus adapting to the hardware performance characteristics of on-board diagnostic equipment.

[0028] This embodiment achieves standardized cross-platform adaptation of log formats by accurately matching the corresponding format conversion rules based on the target platform type. Through an incremental rule maintenance mechanism combining local and cloud-based methods, it balances offline availability with rule scalability, ensuring the security and flexibility of rule iteration. By combining streaming conversion, field mapping, and sensitive information filtering, it improves the efficiency of processing large log volumes while ensuring the standardization and privacy security of log data, and enhances the parsing compatibility of diagnostic logs on different platforms.

[0029] Furthermore, in some embodiments, step S11, "identifying the platform type of the target processing terminal," may specifically include: S111. When the on-board diagnostic equipment establishes an initial connection with the target processing terminal, receive the platform identification information actively sent by the target processing terminal; Specifically, in step S111, during the handshake phase where the on-board diagnostic device and the target processing terminal establish an initial communication connection, the target processing terminal proactively sends its platform identification information to the on-board diagnostic device. This identification information includes the operating system type and system version information of the target processing terminal. The on-board diagnostic device can directly receive this identification information to complete the identification of the target processing terminal's platform type. This method has the highest identification accuracy and is the preferred identification path.

[0030] S112. If no platform identification information is received, the platform type is inferred based on the protocol characteristics or device identification information returned by the target processing terminal during the communication interaction. Specifically, for step S112, if the on-board diagnostic device does not receive the platform identification information actively sent by the target processing terminal, it enters the passive identification logic: in the subsequent communication interaction process, it extracts the protocol feature fields, device driver identifiers or feature information in the request message returned by the target processing terminal, and infers the platform type of the target processing terminal through feature matching.

[0031] S113. If automatic identification fails, the platform type of the target processing terminal shall be the platform configuration information preset by the user. Specifically, for step S113, if the above automatic identification methods cannot determine the platform type of the target processing terminal, or if there are special scenarios such as multiple terminals being used together, the platform configuration information manually set by the user in the vehicle diagnostic device will be used as the final identification result. The user's manual configuration has higher priority than the automatic identification result, ensuring the accuracy of the identification result in special scenarios.

[0032] This embodiment can cover the platform type identification needs in most connection scenarios, expand the scope of adaptation while ensuring identification accuracy, and provide a reliable basis for subsequent log format adaptive conversion.

[0033] Furthermore, in some embodiments, step S1, "adaptively converting the original diagnostic logs into a structured log file of the target format according to the platform type of the target processing terminal," may further include: S14. Verify the structural validity of the structured log files generated by the transformation; Specifically, for step S14, after the log format conversion is completed and a preliminary structured log file is generated, the file is first subjected to a structure validity check. The check is based on the official syntax specifications of the target output format. For different structured format types, the file's format skeleton is checked to ensure it meets the standard requirements, eliminating fundamental errors that prevent the file from being loaded correctly by the parsing tool. The check can cover dimensions such as the global consistency of field delimiters, the paired closure of structured tags, and the completeness of necessary top-level fields. This is the first quality check of the converted output file.

[0034] S15. If the structure validity verification passes, the parsing library of the target processing end is called to perform a sampling read test on the converted file; Specifically, in step S15, after the structured log file passes the structure validity verification, the native parsing library corresponding to the target processing end is further called to perform a sampling read test on the converted file. This test simulates the real parsing environment of the target processing end, extracts a portion of data records at specific positions in the file for actual reading and parsing, and investigates compatibility issues that structure verification cannot cover, such as garbled characters caused by abnormal character encoding, data misalignment caused by field mapping deviation, and line truncation caused by differences in newline characters, thus verifying the actual readability of the file on the target platform.

[0035] S16. If the sampling read test passes, mark the structured log file as successfully converted; Specifically, for step S16, if no parsing anomalies, data corruption, or compatibility issues occur during the entire sampling and reading test, and the test results meet expectations, then the structured log file is officially marked as successfully converted. Only files that have been marked can proceed to the subsequent transmission stage. This serves as a quality control node for the format conversion stage, ensuring that all log files to be transmitted have parsing compatibility with the target platform.

[0036] This embodiment first ensures file structure compliance at the grammatical level, and then verifies read compatibility at the actual parsing level of the target end. It can detect various format conversion problems in advance before log transmission, effectively reducing the probability that the file cannot be parsed normally after being transmitted to the target processing end, and improving the output quality of format conversion and the reliability of cross-platform interaction.

[0037] Furthermore, in some embodiments, step S1, "adaptively converting the original diagnostic logs into a structured log file of the target format according to the platform type of the target processing terminal," may further include: S17. When an unparseable current log data block is detected, the current log data block is passed through to the reserved field of the target format in its original encoding format, and a parsing failure flag is added; Specifically, in step S17, during the log format conversion process, the system synchronously verifies the parsability of each data block to be converted. When it is detected that the current data block cannot be parsed and converted normally due to unknown format, damaged structure, or the use of a private custom protocol, the overall conversion process will not be stopped. Instead, the data block will be completely preserved in its original encoding format and transparently written into the reserved field of the target structured log file. At the same time, a unified parsing failure flag will be added to this data segment to clearly mark it as unparsed original data.

[0038] S18. After completing the fault tolerance processing for the current log data block, continue processing the next log data block; Specifically, in step S18, after completing the pass-through and marking process for the current abnormal data block, the system immediately resumes the normal format conversion process and continues to read and process the next log data block. The entire process only performs isolation fault tolerance for a single abnormal block, without interrupting the global conversion task or affecting the standardization conversion of other normal data blocks, ensuring that the vast majority of parsable log data can complete format adaptation.

[0039] S19. After all log data blocks have been processed, generate a transformation summary report, which includes the location and number of abnormal data blocks; Specifically, for step S19, after all log data blocks have been processed, the system automatically compiles information on abnormal data blocks that occurred during the conversion process and generates a corresponding conversion summary report. The report clearly records key information such as the total number of abnormal data blocks, the corresponding position of each abnormal block in the original log, and the type of abnormality. It is output along with the converted structured log file, making it easier for subsequent users to quickly grasp the overall situation of this conversion and accurately locate abnormal data segments.

[0040] This embodiment can ensure that the overall process is not interrupted when individual log data blocks cannot be parsed by passing through the original data and continuing the conversion. It preserves the original information of the abnormal data for subsequent analysis, while ensuring the efficiency of format conversion for most normal data. Combined with the conversion summary report, it enables rapid location of abnormal problems.

[0041] Furthermore, in some embodiments, step S2, "establishing a communication link between the on-board diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically selecting at least one main channel from the multiple communication channels, and transmitting the structured log file to the target processing terminal through the selected main channel," may specifically include: S21. Initialize the priority with the Universal Serial Bus channel as the highest priority, the wireless network channel as the second highest priority, and the Bluetooth channel as the lowest priority. At least two communication channels are initialized at the same time. Each communication channel reports the connection status and transmission performance parameters to the central scheduler. The transmission performance parameters include at least real-time bandwidth, packet loss rate, transmission delay, and connection stability index. Specifically, in step S21, during the log transmission preparation phase, the system simultaneously initiates the initialization process of at least two types of communication channels according to preset channel priority rules. The priorities, from highest to lowest, are: Universal Serial Bus channel, Wireless Network channel, and Bluetooth channel. Channels with higher priorities are allocated hardware resources and scheduling privileges first during initialization, ensuring that highly reliable, high-bandwidth channels can establish connections first. Each communication channel independently executes the connection handshake and link establishment process. After successfully establishing a link, it continuously collects its real-time transmission performance parameters, including real-time bandwidth, packet loss rate, transmission delay, and connection stability index, and reports these parameters along with the current connection status to the central scheduler. The central scheduler then manages all available channels.

[0042] S22. The central scheduler calculates the real-time weight value of each communication channel based on the transmission performance parameters of each communication channel using a preset weighting algorithm, and determines the main channel based on the real-time weight value. Specifically, in step S22, after the central scheduler obtains the real-time performance parameters of all available channels, it calls a preset weighting algorithm to calculate a corresponding real-time weight value for each available communication channel, combining the weights of each parameter's impact on transmission quality. The weight value comprehensively reflects the overall transmission capability of the channel; a higher value indicates better transmission efficiency and stability. The scheduler sorts the channels according to their real-time weight values ​​and selects the communication channel with the highest weight as the main channel for this log transmission, undertaking the primary log data transmission task.

[0043] S23. During transmission, the central scheduler monitors the connection status of the current main channel in real time. When it detects that the connection of the main channel is interrupted or the transmission performance of the main channel is lower than the preset threshold, the transmission task is switched to the suboptimal communication channel to continue execution. Specifically, in step S23, during log transmission, the central scheduler continuously monitors the connection status and transmission performance parameters of the current main channel in real time. When a physical connection interruption of the main channel is detected, or the transmission performance of the main channel is continuously lower than the preset qualified threshold, the scheduler immediately triggers the channel switching logic, seamlessly switching the currently incomplete transmission task to the communication channel with the second-highest weight to continue execution. Data that has already been transmitted does not need to be resent, ensuring that the transmission task is not interrupted and no data is lost.

[0044] This embodiment ensures the priority activation of high-reliability channels through hierarchical priority parallel initialization, achieves optimal selection of the main channel through weighted algorithms, and avoids transmission interruption caused by single-channel anomalies through real-time monitoring and seamless fault switching. It can continuously ensure the stability and efficiency of log transmission in complex vehicle and maintenance scenarios, and improve the overall reliability of log interaction.

[0045] Furthermore, in some embodiments, step S2, "establishing a communication link between the on-board diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically selecting at least one main channel from the multiple communication channels, and transmitting the structured log file to the target processing terminal through the selected main channel," may specifically include: S24. During transmission, monitor the wireless radio frequency resource occupancy status, equipment temperature, and power information of the vehicle diagnostic equipment in real time; Specifically, in step S24, throughout the log transmission process, the system continuously collects and monitors the operating status of the on-board diagnostic equipment periodically, including wireless radio frequency resource occupancy status, equipment operating temperature, and remaining battery power. Wireless radio frequency resource occupancy status tracks the usage of shared radio frequency hardware by each wireless communication channel, promptly identifying resource contention and signal interference issues between channels. Equipment temperature monitoring focuses on the operating temperature of the core processor and battery to prevent overheating caused by high-load data transmission combined with bus acquisition tasks. Battery power monitoring tracks the remaining available battery power in real time, mitigating the risk of premature power loss due to excessive power consumption in the mobile diagnostic equipment.

[0046] S25. When a radio frequency resource conflict is detected between wireless communication channels, the resource allocation ratio of non-master communication channels is dynamically reduced; Specifically, for step S25, when multiple wireless communication channels are detected to be sharing the radio frequency hardware, resulting in resource contention and signal interference, the system takes ensuring the performance of the main transmission channel as its core principle, dynamically reduces the resource allocation ratio of non-main communication channels, and allocates more radio frequency hardware resources to the main channel by reducing the bandwidth occupation, broadcast frequency, or data transmission interval of non-main channels, so as to avoid slowing down the overall transmission efficiency between channels.

[0047] S26. When the temperature or power of the on-board diagnostic equipment is lower than the corresponding threshold, shut down the currently used high-power communication channel and switch to a low-power communication channel to maintain the connection; Specifically, for step S26, when the operating temperature of the on-board diagnostic device exceeds the preset safety threshold, or the remaining power is lower than the preset warning threshold, the system actively shuts down the currently used high-power communication channel and seamlessly switches the connection and basic transmission tasks to the low-power communication channel, maintaining only the link keep-alive and control command transmission capabilities. By reducing overall power consumption, the system controls the device temperature rise, extends the battery life, and prevents the device from crashing due to overheating or shutting down due to power depletion, thus preventing the loss of log data and the complete interruption of transmission tasks.

[0048] This embodiment monitors radio frequency resources, device temperature, and battery status in real time. It can prioritize the transmission performance of the main channel when resource conflicts occur in the wireless channel, and maintain the connection through channel degradation when the device temperature or battery is abnormal. This improves the resource utilization efficiency and device operation stability in multi-channel transmission scenarios, and avoids log transmission interruption or data loss caused by hardware resource conflicts and abnormal status.

[0049] Furthermore, in some embodiments, step S2, "establishing a communication link between the on-board diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically selecting at least one main channel from the multiple communication channels, and transmitting the structured log file to the target processing terminal through the selected main channel," may specifically include: S27. During transmission, the central scheduler allocates the data blocks of the structured log file to multiple communication channels for parallel transmission based on the real-time weight values ​​of each communication channel; Specifically, in step S27, during log file transmission, the central scheduler continuously acquires the real-time weight values ​​of each communication channel, which correspond to the current comprehensive transmission capacity of each channel. Using data blocks as the basic transmission unit, the scheduler dynamically allocates the structured log file data blocks to be transmitted to multiple available communication channels according to the real-time weight ratio of each channel. Multiple channels then simultaneously transmit data, achieving aggregated utilization of transmission bandwidth. Channels with higher weights are allocated more data blocks and bear a greater transmission load; channels with lower weights are allocated a corresponding proportion of data blocks to fully utilize their transmission capacity. When the real-time weight of a channel fluctuates with the connection status, the scheduler synchronously adjusts the allocation ratio of subsequent data blocks to always match the actual transmission capacity of each channel.

[0050] S28. The target processing end sorts, reassembles, and deduplicates data blocks from multiple communication channels according to their global sequence numbers; Specifically, in step S28, the target processing end receives data blocks from different communication channels. Due to differences in transmission delays between channels, the arrival order of the data blocks may differ from the original sending order, and some data blocks may be sent repeatedly due to channel switching or other reasons. Based on the globally unique sequence number carried by each data block, the target processing end first sorts and organizes all received data blocks, restoring out-of-order data blocks to their original order. Simultaneously, it performs deduplication on data blocks with duplicate sequence numbers, retaining only one valid copy and discarding redundant duplicate data blocks. Finally, the sorted and deduplicated data blocks are concatenated in order to restore a complete structured log file.

[0051] This embodiment achieves multi-channel parallel transmission by dynamically allocating data blocks according to weights, fully aggregating the bandwidth resources of multiple communication links and improving the overall transmission efficiency of log files; at the same time, it uses global sequence numbers to complete the sorting, reorganization and deduplication of data, ensuring the correctness of data order and the integrity of content under multi-channel parallel transmission.

[0052] Furthermore, in some embodiments, a breakpoint resumption mechanism is adopted when transmitting structured log files. The on-board diagnostic device divides the structured log file into multiple data blocks and generates corresponding verification information and sequence identifiers for each data block. The data block division adopts an adaptive block division strategy, dynamically adjusting the block size based on the number of consecutively successfully transmitted data blocks and the transmission delay. The target processing end records the status of successfully received data blocks. When re-establishing the connection after a transmission interruption, the on-board diagnostic device only retransmits the data blocks that were not successfully received based on the data block status. The verification information adopts a dual verification mechanism. Each data block is accompanied by a first verification code for fast verification. After the entire structured log file is transmitted, a second verification code is used to verify the complete file. If the first verification code fails, the corresponding data block is retransmitted. If the second verification code fails, each block is re-verified to locate the damaged data block and retransmit it.

[0053] Specifically, before transmitting the log file, the complete structured log file is split into several independent data blocks. Each data block is assigned a globally unique sequence identifier to mark its order and position in the original file. The block size adopts an adaptive dynamic adjustment strategy: an initial base block size is set. During transmission, if multiple consecutive data blocks are transmitted successfully and the transmission latency remains low, the block size of subsequent data blocks is gradually increased to reduce the protocol overhead caused by block splitting and improve overall transmission efficiency. If abnormal situations such as data block transmission timeouts or verification failures occur, the block size is gradually reduced to lower the retransmission cost of a single transmission failure and adapt to unstable transmission environments. Simultaneously, a corresponding first checksum is generated for each data block for rapid integrity verification after a single block transmission; and a second checksum is generated for the complete structured log file for strong overall verification after the full data transmission is completed.

[0054] During the data block reception process, the target processing end performs a rapid verification based on the first checksum of each data block after its reception is completed. Upon successful verification, it synchronously updates its local block reception status record, clearly marking which sequences of data blocks have been successfully received and which have not. This status record is persistently maintained, ensuring that the status information of received data blocks is not lost even if the connection is interrupted during transmission, providing accurate data for subsequent resume transmission.

[0055] When transmission is interrupted and the communication link is re-established, the on-board diagnostic equipment first synchronizes the current block reception status with the target processing terminal to obtain the range of successfully received data block sequences. Subsequently, it only retransmits data blocks that were not successfully received in the status record. Data blocks that have been successfully received are not retransmitted. The remaining data transmission continues directly from the interruption point to complete the transmission of the remaining data, avoiding the time waste and resource consumption caused by full retransmission.

[0056] The verification process is executed in two levels. The first level is a single-block fast verification. After each data block arrives at the receiving end, its integrity is immediately verified using the first checksum. If the verification fails, the data block is immediately retransmitted without waiting for the entire file to be transmitted, enabling rapid anomaly location and repair. The second level is a full-file strong verification. After all data blocks have been transmitted, the integrity of the reassembled complete log file is verified using the second checksum. If the overall verification does not match, all data blocks are re-verified block by block to accurately locate the actual damaged or missing data blocks. Only the located abnormal blocks are retransmitted, rather than the entire file being retransmitted.

[0057] This embodiment dynamically adapts to the transmission environment through adaptive block segmentation, balancing transmission efficiency in stable scenarios with transmission reliability in complex scenarios. Combined with block status recording, it enables accurate resumption of transmission after interruption, avoiding redundant transmission and wasting resources. The dual verification mechanism ensures both fast verification efficiency for single-block transmission and strong integrity protection for the entire file, effectively improving the reliability and transmission efficiency of large-volume diagnostic log transmission in complex electromagnetic environments in vehicles.

[0058] Furthermore, in some embodiments, step S4, "the target processing end generates a feedback instruction based on the visual diagnostic analysis results and transmits the feedback instruction back to the on-board diagnostic equipment via the communication link," may specifically include: S41. The target processing end generates feedback instructions based on the diagnostic analysis results and digitally signs the feedback instructions; the feedback instructions include at least the instruction identifier, timestamp, target acquisition object, and execution action information; Specifically, for step S41, the target processing end generates standardized feedback instructions based on the supplementary data requirements derived from the diagnostic analysis. Each instruction contains a globally unique instruction identifier to distinguish different feedback tasks; a timestamp to mark the instruction generation time, which can also be used for timing verification and replay prevention; the target data acquisition object, specifying the vehicle module or data range to which the instruction needs to be applied; and execution action information, indicating the type of operation and core requirements to be performed.

[0059] After the instruction content is assembled, the target processing end uses a dedicated key to digitally sign the instruction content and attaches the signature information to the instruction data packet to ensure that the instruction is not tampered with during transmission. At the same time, it can verify the legitimate source of the instruction and prevent illegal instructions from triggering abnormal operations on the device.

[0060] S42. The target processing end sends the digitally signed feedback instruction to the on-board diagnostic equipment via the communication link; Specifically, in step S42, the target processing end completes the digitally signed feedback instruction and sends it to the on-board diagnostic equipment through the established bidirectional communication link. The instruction reuses the existing communication channel for transmission, eliminating the need to build an additional dedicated link, ensuring the timeliness of instruction issuance, and improving the reuse efficiency of link resources.

[0061] S43. The on-board diagnostic equipment receives and verifies the digital signature of the feedback command, parses the execution action information in the feedback command after successful verification, and returns a confirmation message to the target processing terminal. Specifically, in step S43, after receiving the feedback instruction data packet, the on-board diagnostic equipment first extracts the instruction text and digital signature information, and uses the corresponding verification key to verify the signature, confirming that the instruction has not been tampered with and that its source is legitimate. After the signature verification is successful, the equipment parses the execution action information and target acquisition object in the instruction to determine the subsequent acquisition tasks; at the same time, it immediately returns a confirmation message to the target processing terminal, informing the other party that the instruction has been successfully received and verified.

[0062] S44. If the target processing end does not receive an acknowledgment message within a preset time, it will resend the feedback instruction at an increasing time interval until an acknowledgment message is received or the maximum number of retransmissions is reached. Specifically, in step S44, after the target processing terminal issues a command, a timer is started synchronously. If no confirmation message for the corresponding command is received within the preset waiting time, the command issuance is deemed to have failed, triggering the retransmission logic. Retransmission employs an incremental time interval strategy, with the waiting time for each retransmission increasing sequentially to avoid frequent retransmissions in a short period, which could exacerbate the load on the communication link. The retransmission process continues until a confirmation message is successfully received from the on-board diagnostic device, or the number of retransmissions reaches the preset maximum limit. At this point, retransmission is terminated, and the final issuance status of the command is marked.

[0063] This embodiment uses digital signatures to ensure the legitimacy of the source and integrity of the instructions, preventing them from being tampered with or injected with illegal instructions during transmission. Combined with confirmation receipts and an incremental retransmission mechanism, it improves the reliability of feedback instructions while taking into account the load on the communication link, ensuring that the diagnostic feedback loop can be triggered stably, thereby improving the security and transmission stability of instruction interaction.

[0064] Furthermore, in some embodiments, step S5, "the on-board diagnostic device responds to the feedback command, performs supplementary data collection for the target data indicated by the feedback command, and generates an enhanced diagnostic log," may specifically include: S51. The on-board diagnostic equipment parses the feedback command and obtains the target data collection object, data collection filtering conditions, and data collection duration or data volume limit indicated by the feedback command. Specifically, for step S51, after receiving the feedback instruction, the on-board diagnostic equipment parses the structured content of the instruction and extracts the following acquisition parameters: first, the target acquisition object, which clarifies the vehicle control module, data type, or bus message range that needs to be targeted in this supplementary acquisition; second, the acquisition filtering conditions, which are used to filter the specific data dimensions to be acquired, such as specific message ID ranges, signal sampling frequency requirements, data triggering conditions, etc.; and third, the acquisition boundary parameters, namely the preset upper limit of acquisition duration or the upper limit of the total amount of data generated, which are used to constrain the resource consumption scale of this supplementary acquisition.

[0065] S52. Before performing supplementary data collection, the on-board diagnostic equipment performs a resource availability assessment. If the current resources cannot meet the data collection task requirements, it returns a resource shortage response message. Specifically, for step S52, before officially starting the supplementary data acquisition task, the on-board diagnostic equipment first performs an availability assessment of its current operating resources, checking the remaining status of core operating resources, including the current processor load, remaining RAM space, available local storage capacity, and the number of currently running acquisition tasks, to determine whether the existing resources are sufficient to support the normal execution of this supplementary data acquisition task. If the assessment finds that the current resources are insufficient to meet the acquisition requirements, the equipment will not forcibly start the acquisition, but will immediately return a resource insufficiency response message to the target processing terminal, informing the processing terminal that this acquisition task cannot be executed temporarily.

[0066] S53. Collect data from the target object according to the collection filtering conditions. When the collection time or data volume limit is reached, a stop collection command is received from the target processing terminal, a vehicle power-off signal is detected, or the resource utilization rate of the on-board diagnostic equipment exceeds the safety threshold, the collection will automatically terminate and the collected data will be encapsulated into an enhanced diagnostic log. Specifically, in step S53, after the resource assessment is passed, the device initiates targeted data acquisition based on the parsed acquisition filtering conditions, accurately acquiring the specific data required for diagnosis and avoiding the acquisition of redundant and invalid data. Multiple termination safety valves are set during the acquisition process; the acquisition process will automatically terminate if any of the following termination conditions are met: first, reaching the preset acquisition duration or data volume limit, ending acquisition according to the preset boundary; second, receiving a stop acquisition command from the target processing end, responding to external control to terminate acquisition; third, detecting a vehicle power-off signal, promptly stopping acquisition and saving data when the vehicle's power supply status changes; fourth, detecting that the device's own resource utilization rate exceeds a safety threshold, actively terminating acquisition to ensure stable device operation. After acquisition terminates, all acquired data is encapsulated to generate an independent enhanced diagnostic log.

[0067] This embodiment achieves precise targeted data collection through instruction parsing, avoiding redundant data overhead. Combined with resource assessment before collection and multiple termination protection mechanisms, it can effectively protect the stability of equipment operation while meeting the needs for supplementing diagnostic data, preventing equipment malfunctions or data loss due to resource overload or sudden state changes, and improving the reliability of enhanced log generation and the security of equipment operation.

[0068] Furthermore, in some embodiments, step S6, "the target processing end associates and merges the enhanced diagnostic log with the structured log file to generate a complete diagnostic context," may specifically include: S61. Parse the enhanced diagnostic log and extract the associated identification information carried in the enhanced diagnostic log. The associated identification information includes the original diagnostic log identifier that triggered this supplementary collection and the feedback session identifier. Specifically, in step S61, after receiving the enhanced diagnostic log, the target processing end first parses the structured content of the log file, focusing on extracting the association identification information carried in the file. The association identification contains two types of information: one is the original diagnostic log identifier that triggered this supplementary data collection, pointing to the original log file corresponding to this enhanced data; the other is the feedback session identifier, corresponding to the complete interaction process of this diagnostic feedback. These association identifiers are typically written into the header metadata section of the enhanced log file and are the core basis for establishing the correspondence between the supplementary data and the original diagnostic data.

[0069] S62. Locate the corresponding log data in the structured log file based on the association identifier information; Specifically, for step S62, after extracting the association identifier, the target processing end searches for a match in the locally stored structured log file based on the original diagnostic log identifier, locates the corresponding original diagnostic log file, and the data segment in the log related to this feedback, establishes the corresponding association between the enhanced diagnostic log and the original structured log file, clarifies the location of the supplementary data in the overall diagnostic process, and provides a precise positioning basis for subsequent data fusion.

[0070] S63. Using timestamp as the primary key, merge and sort the corresponding log data in the enhanced diagnostic log and the structured log file, and display them together on the same timeline. Display the data in the enhanced diagnostic log with a visual identifier that is different from the original diagnostic log, and generate interactive feedback trigger anchors on the timeline. The feedback trigger anchors are associated with the content of the feedback instruction and the vehicle status information at the trigger time. Specifically, in step S63, after completing the association and location, the target processing end uses a high-precision timestamp as the primary key to uniformly merge and sort the data records in the enhanced diagnostic log with the corresponding segments of the data records in the original structured log file. This arranges the two types of data on the same timeline in chronological order, achieving data association and fusion display. At the display level, the data in the enhanced diagnostic log is presented using visual identifiers that are clearly different from the original log data, making it easy for analysts to quickly distinguish between basic and supplementary data. Simultaneously, an interactive feedback trigger anchor point is generated on the fused timeline. This anchor point stores the specific content of the feedback instruction and the vehicle status snapshot information at the time the enhanced data acquisition was triggered. Clicking the anchor point allows users to view the corresponding feedback context.

[0071] This embodiment establishes a correspondence between enhanced data and original logs through identifier matching, and achieves seamless integration and display of the two types of data based on the timeline. With the help of differentiated visual identifiers and interactive feedback anchors, diagnostic personnel can view the basic data and targeted supplementary data in a unified view, clearly restore the complete causal chain of diagnostic feedback, and improve the efficiency of fault analysis.

[0072] Furthermore, in some embodiments, after the on-board diagnostic device collects vehicle operating data and generates raw diagnostic logs, it temporarily stores the raw diagnostic logs in local storage. The local storage adopts a hierarchical storage strategy, with high-priority data being written to non-volatile storage first, and regular data being cached and written asynchronously. The local storage adopts a circular buffer mechanism, and when the storage space reaches a preset threshold, the earliest diagnostic log file is overwritten in chronological order. The on-board diagnostic device maintains log index information locally, and the index information includes at least the start and end times of each log file, the associated vehicle identifier, and the data type contained therein.

[0073] Specifically, after the on-board diagnostic equipment completes the collection of vehicle operation data and generates raw diagnostic logs, it temporarily stores all raw logs in the device's built-in local storage medium. This allows for data retention without relying on a real-time network or external devices, supports long-term data collection in offline scenarios, and provides a stable local data source for subsequent format conversion and cross-device transmission.

[0074] The local storage adopts a tiered storage management strategy, prioritizing diagnostic data based on its importance. High-priority diagnostic data is written directly to non-volatile storage media to ensure that critical data is not lost due to unexpected power outages or restarts. For routine diagnostic data, it is first stored in the device's memory cache, and batches of data in the cache are periodically written to the storage media through an asynchronous write thread to reduce the performance impact of frequent storage I / O on the main data acquisition thread.

[0075] Local storage employs a circular buffer mechanism to dynamically manage storage space, with a pre-set total capacity threshold for local log storage. When the total usage of log files in local storage reaches the preset threshold, the system automatically overwrites the oldest historical diagnostic log files in chronological order, freeing up storage space to store newly generated log data. This forms a rolling over circular storage mode, preventing data collection interruptions due to storage space exhaustion.

[0076] The on-board diagnostic equipment maintains a separate log index locally. Each time a new diagnostic log file is generated, a corresponding entry is added to the index. Each index record contains at least three types of information: the start and end times of the corresponding log file, the associated vehicle identifier, and the data type. This index allows for quick location of the target log without having to traverse all log files one by one.

[0077] This embodiment balances the security of critical diagnostic data with the performance of data collection and processing through a hierarchical storage strategy. It uses a circular buffer mechanism to automatically manage and control storage space to avoid overflow, and combines it with a structured log index to improve data retrieval efficiency. This ensures the reliable retention of original diagnostic data while improving the utilization of local storage and the efficiency of log management.

[0078] Furthermore, in some embodiments, the enhanced diagnostic log is generated by writing a log type identifier and an associated original diagnostic log identifier into the header of the enhanced diagnostic log file, and adding a tag field to each data record of the enhanced diagnostic log to identify the trigger source.

[0079] Specifically, when generating enhanced diagnostic logs, two types of identification information are first written to the header metadata section of the log file. The first type is the log type identifier, which explicitly marks the current file as an enhanced diagnostic log, distinguishing it from regular raw diagnostic logs and structured logs. The receiving end only needs to parse the file header to quickly identify the log category without traversing the entire file content. The second type is the associated raw diagnostic log identifier, which records the unique identity of the raw log that triggered this enhanced collection, establishing a file-level correspondence between the enhanced log and the raw log, providing a precise matching basis for subsequent association and fusion.

[0080] When encapsulating each data record in the enhanced diagnostic log, an additional unique tag field is added to each data entry. This field identifies the trigger source of the data entry, clarifying which feedback command or set of collection conditions triggered the generation of supplementary data. This tag field is stored along with each data record, achieving source identification at the data granularity level. Even if it is subsequently mixed with the original log data, this field can accurately distinguish between regular collection data and enhanced supplementary data.

[0081] This embodiment achieves rapid identification of log types and file-level association matching through file header identification, and enables data granularity source tracing through the tag field of individual data. This not only improves the efficiency of log file management and association matching, but also provides accurate data basis for subsequent log fusion and differentiated display, ensuring the traceability of enhanced diagnostic logs and the accuracy of data fusion.

[0082] To facilitate understanding of the adaptive interactive processing method for vehicle diagnostic logs provided in this embodiment, a specific scenario will be used as an example to further illustrate the adaptive interactive processing method for vehicle diagnostic logs provided in this application embodiment. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0083] In a specific embodiment, the adaptive interactive processing method for vehicle diagnostic logs provided in this embodiment is applied to the after-sales maintenance scenario of new energy vehicles. The executing entities include an on-board diagnostic instrument (data acquisition terminal) equipped with an Android system and a PC-based diagnostic analysis platform (data processing terminal) equipped with a Windows 11 operating system. The vehicle to be diagnosed is a certain brand of vehicle, and the vehicle has reported a "power battery communication timeout" fault code (DTC: U0123). The specific implementation process of this method is as follows: Step 1: Collect and temporarily store the original diagnostic logs locally.

[0084] The Android diagnostic tool connects to the vehicle's CAN bus via the vehicle's OBD interface, and collects vehicle operating data in real time, including CAN bus messages, DTC fault codes, and real-time operating parameters of the BMS (Battery Management System).

[0085] The data acquisition process employs a hierarchical storage strategy: the CAN abnormal frame and fault snapshot data triggered by fault code U0123 are treated as high-priority data and directly written to the device's local Flash non-volatile storage to ensure that critical fault data is not lost due to power failure; routine operating parameters (such as vehicle bus voltage and battery cell temperature) are first stored in the memory cache and then written in batches to the raw log file in the private directory by the background asynchronous I / O thread every 500ms. The raw log is stored in the Protobuf internal structured format to reduce storage usage.

[0086] Local log storage employs a 2GB circular buffer mechanism. When total storage usage reaches a preset threshold, the system automatically overwrites the oldest historical log file, releasing storage space in a rolling fashion to prevent data collection interruptions due to storage overflow. Simultaneously, the device maintains a lightweight SQLite index table locally. Each log entry is synchronously entered into the index after its generation, recording information such as the log's start and end times, vehicle VIN code, covered ECU modules, and file size, supporting subsequent fast retrieval by time, vehicle, and data type.

[0087] Step 2: Adaptive log format conversion.

[0088] After the technician clicks the "One-click Export to PC" function on the diagnostic tool, the system starts the adaptive format conversion engine.

[0089] First, target platform identification is performed: During the USB connection handshake phase, the PC client actively sends a platform identifier containing the operating system type and version. After receiving the identifier, the diagnostic tool confirms that the target processing terminal is a Windows 11 system. If no active identifier is received, it is passively inferred through USBMTP driver characteristics and the HTTP request User-Agent field. If automatic identification fails, the platform configuration manually preset by the user is used as the final result.

[0090] Then, the format conversion rules are matched: the corresponding conversion rules for the Windows platform are matched from the local mapping rule library. The output format is CSV, the character encoding is UTF-8 with BOM, the line break character is CRLF, and the path separator is a backslash. The mapping rules use a dual-track storage of local and cloud. The mapping rules from basic CANID to CSV column names are built into the local configuration library. New BMS-specific field extension rules are incrementally distributed by the cloud configuration center. During updates, the MD5 integrity of the rule file is first verified. Only after the verification is successful will the local master configuration be replaced to avoid conversion failure due to update anomalies.

[0091] The conversion process uses streaming block processing, loading only 1000 Protobuf records at a time. Internal field names (such as ecu_bms_volt_raw) are converted to standard field names (such as BMS_Supply_Voltage) according to a preset mapping dictionary. At the same time, sensitive information such as vehicle VIN codes and GPS tracks are masked and desensitized to avoid privacy data leakage.

[0092] After conversion, double verification is performed: first, a syntax validator checks the global consistency of CSV field delimiters and the integrity of core fields; then, the Windows platform's native parsing library is called to sample and read the first 200 records, verifying the absence of garbled characters and field misalignments before marking the conversion as successful. If a vendor's proprietary binary message block cannot be parsed, it is converted to a Base64 string and written to the RawData reserved field of the CSV, with the [PARSE_FAILED] flag added before continuing to process subsequent data blocks without interrupting the overall conversion; after all processing is complete, a conversion summary report is generated, marking the location and number of abnormal data blocks.

[0093] Step 3: Multi-channel intelligent transmission and breakpoint resume.

[0094] After the format conversion is complete, the system simultaneously initializes three types of communication channels and allocates hardware resources according to the priority order of USBMTP > Wi-Fi Direct > Bluetooth BLE: the USBMTP channel prioritizes mounting virtual storage, the Wi-Fi module creates a direct hotspot, and the Bluetooth BLE channel broadcasts its dedicated service UUID. After each channel independently establishes its link, it continuously reports real-time bandwidth, packet loss rate, transmission latency, and connection stability index to the central scheduler.

[0095] The central scheduler calculates the weight of each channel by combining preset weights with real-time parameters. The initial weight benchmarks are USB 0.6, Wi-Fi 0.3, and BLE 0.1, and are dynamically refreshed every 5 seconds. In this embodiment, the USB channel has a bandwidth of 15MB / s, a packet loss rate of 0%, and a latency of 2ms, and has the highest overall weight, so it is selected as the primary transmission channel.

[0096] The log file is split using an adaptive chunking strategy: the initial chunk size is 256KB, and the chunk size doubles (maximum 4MB) if three consecutive chunks are successfully transmitted with a delay of less than 50ms; if a transmission timeout or verification failure occurs, the chunk size is halved (minimum 16KB). Each chunk is assigned a globally incrementing sequence ID, along with a CRC32 checksum.

[0097] The scheduler dynamically allocates data blocks to multiple channels for parallel transmission based on the real-time weight ratio of each channel, achieving bandwidth aggregation. After receiving the data blocks, the PC sorts them out of order according to the global sequence number, removes duplicate blocks, and reassembles them in order before writing them to a local file. During transmission, the status of radio frequency resources is monitored in real time. Since Wi-Fi and Bluetooth share the same radio frequency chip, when fluctuations in Wi-Fi throughput are detected, the broadcast frequency of Bluetooth is dynamically reduced to prioritize the main channel resources.

[0098] If the USB cable is accidentally broken during transmission, the scheduler will detect the main channel interruption within 50ms and automatically and seamlessly switch to the Wi-Fi channel to continue transmission. Completed data blocks will not be sent again. After the USB is reconnected, the scheduler will gradually schedule the data blocks back to the USB channel to avoid congestion caused by sudden traffic surges.

[0099] The entire transmission process supports resuming interrupted downloads: both ends maintain lightweight transmission status files, recording file hashes, total size, completed block bitmaps, and last update times; after an interruption and reconnection, both ends first synchronize the status files, and only transmit the incomplete missing blocks. After the entire file transmission is complete, a full strong checksum is performed using SHA-256; if the checksum does not match, the corrupted blocks are located and only the corresponding bad blocks are retransmitted, without the need for a full retransmission.

[0100] Step 4: PC-side parsing and diagnostic feedback command issuance.

[0101] After the PC client receives and reassembles the complete log file, it automatically loads it into the diagnostic analysis interface, displaying the CAN signal changes in a timeline waveform graph. Abnormal data frames before and after the triggering of fault code U0123 are highlighted to help engineers quickly locate the abnormal period.

[0102] After analysis, engineers discovered that the sampling interval of the BMS power supply data during the fault period was too large, making it impossible to pinpoint the details of voltage fluctuations. Therefore, they generated a supplementary data acquisition feedback command on the PC. The command uses a standardized structure of Header+Payload+Signature: The Header contains a globally unique command ID, a timestamp, and the target ECU address (0x7E0); the Payload is in JSON format, specifying the action as START_CAPTURE, with filtering conditions of CANID 0x6A0-0x6A8, a voltage sampling rate increased to 1kHz, and a maximum acquisition duration of 60 seconds and a maximum data volume of 50MB; an ECDSA digital signature generated by the PC's private key is appended to the end of the command to prevent tampering.

[0103] The signed instruction is sent to the Android diagnostic tool via the currently available Wi-Fi channel. Upon receiving the instruction, the diagnostic tool first verifies the validity of the digital signature. If the signature verification is successful, it parses the instruction parameters and then returns an ACK confirmation message carrying the session ID to the PC. If the PC does not receive an ACK within 1 second, it retransmits the instruction at exponential backoff intervals of 2s, 4s, and 8s, up to a maximum of 3 retransmissions. If no confirmation is received after 3 retransmissions, the instruction is marked as failed and a message is displayed on the interface to avoid infinite retries and link congestion.

[0104] Step 5: Enhanced log supplement collection and feedback.

[0105] Before performing enhanced data acquisition, the Android diagnostic tool first assesses its own resource status: the current CPU load is 35%, and there is sufficient remaining RAM, meeting the acquisition conditions. Therefore, it initiates targeted supplementary acquisition. The acquisition process strictly follows the instructions, capturing all messages from CANID 0x6A0 to 0x6A8, and increasing the sampling rate of the BMS power supply voltage to 1kHz.

[0106] The data acquisition process is equipped with multiple termination safety mechanisms: data acquisition will automatically terminate when any of the following conditions are met: the preset acquisition duration / data volume limit is reached, a STOP command is received from the PC, the vehicle is detected to be powered off, or the device resource utilization rate exceeds a safety threshold. In this embodiment, after 30 seconds of acquisition, the engineer clicks the stop acquisition button on the PC. Upon receiving the STOP command, the diagnostic instrument immediately terminates the acquisition and encapsulates the acquired data into an enhanced diagnostic log.

[0107] The enhanced log employs a two-level identification mechanism: at the file level, the filename is appended with the '_enhanced' suffix, and the file header contains the log type identifier 'ENHANCED', the associated original log ID, and the feedback session ID; at the data recording level, each piece of collected data is injected with an 'Enhance_Tag' field, marking the corresponding triggered filtering rule, enabling granular source tracing of data. After encapsulation, the enhanced log is transmitted back to the PC via a multi-channel transmission mechanism.

[0108] Step 6: Log association and fusion, and generation of complete diagnostic context.

[0109] After receiving the enhanced logs, the PC parses the original log ID in the file header to quickly locate the corresponding original structured log file. Then, using the high-precision timestamp as the primary key, it merges and sorts the high-precision voltage data from the enhanced logs with the regular data from the original logs, achieving seamless integration on the same timeline.

[0110] In the display interface, the enhanced data is presented as an orange highlighted curve, and the enhanced data collection interval is marked with a shaded band on the timeline, forming an intuitive visual distinction from the original regular data. At the same time, an interactive feedback trigger anchor point is generated at the time the feedback command is issued. Clicking the anchor point allows you to view the details of the current feedback command and a snapshot of the vehicle status at the trigger time, fully restoring the causal link from fault discovery, command issuance to data supplementation.

[0111] By integrating the complete diagnostic data, the engineer observed that the 12V auxiliary battery voltage suddenly dropped to 9V before the fault occurred. It was finally confirmed that the aging of the 12V auxiliary battery caused the BMS communication abnormality, thus completing the accurate fault location. The log data was automatically archived to the maintenance work order system.

[0112] In summary, compared with the prior art, the adaptive interactive processing method for vehicle diagnostic logs provided in this embodiment adapts to different parsing environments through platform adaptive conversion of log formats, ensures the stability of log transmission through multi-channel parallelism and dynamic routing, and further improves the cross-platform compatibility, transmission reliability, and overall efficiency of fault diagnosis of vehicle diagnostic logs by driving targeted supplementary collection and fusion through diagnostic analysis to form a complete diagnostic data link.

[0113] It should be understood that, although Figure 2 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0114] To facilitate better implementation of the adaptive interactive processing method for vehicle diagnostic logs according to the embodiments of this application, this application also provides an adaptive interactive processing device for vehicle diagnostic logs based on the aforementioned adaptive interactive processing method. The meanings of the terms used are the same as in the aforementioned adaptive interactive processing method for vehicle diagnostic logs, and specific implementation details can be found in the descriptions within the method embodiments.

[0115] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of the adaptive interactive processing device for vehicle diagnostic logs provided in an embodiment of this application. Specifically, the adaptive interactive processing device for vehicle diagnostic logs may include a data processing module 201, a data transmission module 202, a diagnostic analysis module 203, a feedback instruction module 204, a log generation module 205, and a log association module 206, as follows: The data processing module 201 is used to collect vehicle operation data through on-board diagnostic equipment, generate raw diagnostic logs, and adaptively convert the raw diagnostic logs into structured log files in the target format according to the platform type of the target processing terminal. Data transmission module 202 is used to establish a communication link between the vehicle diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically select at least one main channel from the multiple communication channels to transmit the structured log file to the target processing terminal through the selected main channel; The diagnostic analysis module 203 is used to receive and parse structured log files through the target processing terminal and generate visual diagnostic analysis results; The feedback instruction module 204 is used to generate feedback instructions based on the visual diagnostic analysis results through the target processing terminal, and to transmit the feedback instructions back to the on-board diagnostic equipment via the communication link. The log generation module 205 is used to respond to feedback commands through the on-board diagnostic equipment, perform supplementary data collection for the target data indicated by the feedback commands, generate enhanced diagnostic logs, and transmit the enhanced diagnostic logs to the target processing terminal. The log association module 206 is used to associate and merge enhanced diagnostic logs with structured log files through the target processing end to generate a complete diagnostic context.

[0116] Specific limitations regarding the adaptive interactive processing device for vehicle diagnostic logs can be found in the limitations of the adaptive interactive processing method for vehicle diagnostic logs described above, and will not be repeated here. Each module in the aforementioned adaptive interactive processing device for vehicle diagnostic logs can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0117] The adaptive interactive processing device for vehicle diagnostic logs provided in this embodiment adapts to different parsing environments through platform adaptive conversion of log formats, ensures the stability of log transmission through multi-channel parallelism and dynamic routing, and further improves the cross-platform compatibility, transmission reliability, and overall efficiency of fault diagnosis of vehicle diagnostic logs by driving targeted supplementary collection and fusion through diagnostic analysis.

[0118] Furthermore, embodiments of this application also provide an electronic device, such as... Figure 4 As shown, it illustrates a structural schematic diagram of the electronic device involved in the embodiments of this application, specifically: The electronic device may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 301 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 302, and by calling data stored in the memory 302, thereby providing overall monitoring of the electronic device. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 301.

[0119] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and adaptive interactive processing methods for vehicle diagnostic logs by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0120] The electronic device also includes a power supply 303 that supplies power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0121] The electronic device may also include an input unit 304, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0122] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302 to realize various functions, as follows: Vehicle operating data is collected by on-board diagnostic equipment to generate raw diagnostic logs. Based on the platform type of the target processing terminal, the raw diagnostic logs are adaptively converted into structured log files in the target format. Communication links between the on-board diagnostic equipment and the target processing terminal are established in parallel through multiple communication channels. At least one primary channel is dynamically selected from these channels, and the structured log files are transmitted to the target processing terminal via the selected primary channel. The target processing terminal receives and parses the structured log files, generating visualized diagnostic analysis results. Based on the visualized diagnostic analysis results, the target processing terminal generates feedback instructions and transmits these instructions back to the on-board diagnostic equipment via the communication links. Responding to the feedback instructions, the on-board diagnostic equipment performs supplementary data collection for the target data indicated by the feedback instructions, generating enhanced diagnostic logs, which are then transmitted to the target processing terminal. The target processing terminal correlates and merges the enhanced diagnostic logs with the structured log files to generate a complete diagnostic context.

[0123] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0124] This application embodiment adapts to different parsing environments through platform adaptive conversion of log formats, ensures the stability of log transmission through multi-channel parallelism and dynamic routing, and further improves the cross-platform compatibility, transmission reliability, and overall efficiency of fault diagnosis of vehicle diagnostic logs by driving targeted supplementary collection and fusion through diagnostic analysis.

[0125] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0126] To this end, embodiments of this application provide a storage medium storing multiple instructions that can be loaded by a processor to execute steps in any of the adaptive interactive processing methods for vehicle diagnostic logs provided in embodiments of this application. For example, the instructions can execute the following steps: Vehicle operating data is collected by on-board diagnostic equipment to generate raw diagnostic logs. Based on the platform type of the target processing terminal, the raw diagnostic logs are adaptively converted into structured log files in the target format. Communication links between the on-board diagnostic equipment and the target processing terminal are established in parallel through multiple communication channels. At least one primary channel is dynamically selected from these channels, and the structured log files are transmitted to the target processing terminal via the selected primary channel. The target processing terminal receives and parses the structured log files, generating visualized diagnostic analysis results. Based on the visualized diagnostic analysis results, the target processing terminal generates feedback instructions and transmits these instructions back to the on-board diagnostic equipment via the communication links. Responding to the feedback instructions, the on-board diagnostic equipment performs supplementary data collection for the target data indicated by the feedback instructions, generating enhanced diagnostic logs, which are then transmitted to the target processing terminal. The target processing terminal correlates and merges the enhanced diagnostic logs with the structured log files to generate a complete diagnostic context.

[0127] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0128] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0129] Since the instructions stored in the storage medium can execute the steps in any of the adaptive interactive processing methods for vehicle diagnostic logs provided in the embodiments of this application, the beneficial effects that any of the adaptive interactive processing methods for vehicle diagnostic logs provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0130] The above provides a detailed description of an adaptive interactive processing method and apparatus for vehicle diagnostic logs provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An adaptive interactive processing method for vehicle diagnostic logs, characterized in that, include: Vehicle operation data is collected by on-board diagnostic equipment, raw diagnostic logs are generated, and the raw diagnostic logs are adaptively converted into structured log files in the target format according to the platform type of the target processing terminal. The on-board diagnostic device and the target processing terminal establish a communication link in parallel through multiple communication channels, and dynamically select at least one main channel from the multiple communication channels to transmit the structured log file to the target processing terminal through the selected main channel; The target processing terminal receives and parses the structured log file to generate visual diagnostic analysis results; The target processing terminal generates a feedback instruction based on the visual diagnostic analysis result, and transmits the feedback instruction back to the vehicle diagnostic device via the communication link. The on-board diagnostic device responds to the feedback command, performs supplementary data collection for the target data indicated by the feedback command, generates an enhanced diagnostic log, and transmits the enhanced diagnostic log to the target processing terminal; The target processing end associates and merges the enhanced diagnostic log with the structured log file to generate a complete diagnostic context.

2. The adaptive interactive processing method for vehicle diagnostic logs according to claim 1, characterized in that, The step of adaptively converting the original diagnostic logs into a structured log file of the target format according to the platform type of the target processing terminal includes: Identify the platform type of the target processing terminal, wherein the platform type includes operating system category and system version information; Based on the platform type, a corresponding format conversion rule is matched from a preset mapping rule library. The format conversion rule includes at least one of the following: output format type, character encoding standard, newline character format, and path separator specification. The mapping rule library is maintained as follows: basic mapping rules are built into the local storage of the on-board diagnostic device, and extended mapping rules are distributed by the cloud configuration center. The mapping rule library adopts an incremental update method, and the updated rule file replaces the existing rules after the integrity verification is passed. According to the matched format conversion rules, the original diagnostic log is read block by block in a streaming manner. During the reading and conversion process, field names are mapped and sensitive information is filtered according to a preset mapping dictionary to generate the structured log file.

3. The adaptive interactive processing method for vehicle diagnostic logs according to claim 1, characterized in that, The step of establishing a communication link between the on-board diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically selecting at least one primary channel from the multiple communication channels, and transmitting the structured log file to the target processing terminal through the selected primary channel includes: The initialization priority is set with the Universal Serial Bus channel as the highest priority, the wireless network channel as the second highest priority, and the Bluetooth channel as the lowest priority. At least two communication channels are initialized at the same time. Each of the communication channels reports the connection status and transmission performance parameters to the central scheduler. The transmission performance parameters include at least real-time bandwidth, packet loss rate, transmission delay, and connection stability index. The central scheduler calculates the real-time weight value of each communication channel based on the transmission performance parameters of each communication channel using a preset weighting algorithm, and determines the main channel based on the real-time weight value. During transmission, the central scheduler monitors the connection status of the current main channel in real time. When it detects that the connection of the main channel is interrupted or the transmission performance of the main channel is lower than a preset threshold, it switches the transmission task to the suboptimal communication channel to continue execution.

4. The adaptive interactive processing method for vehicle diagnostic logs according to claim 3, characterized in that, The method of establishing a communication link between the on-board diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically selecting at least one main channel from the multiple communication channels to transmit the structured log file to the target processing terminal through the selected main channel, further includes: During transmission, the wireless radio frequency resource occupancy status, device temperature, and power information of the on-board diagnostic device are monitored in real time. When radio frequency resource conflicts are detected between wireless communication channels, the resource allocation ratio of non-primary communication channels is dynamically reduced. When the temperature or power of the on-board diagnostic device is lower than the corresponding threshold, the currently used high-power communication channel is shut down and switched to a low-power communication channel to maintain the connection.

5. The adaptive interactive processing method for vehicle diagnostic logs according to claim 3, characterized in that, The method of establishing a communication link between the on-board diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically selecting at least one main channel from the multiple communication channels to transmit the structured log file to the target processing terminal through the selected main channel, further includes: During transmission, the central scheduler allocates the data blocks of the structured log file to multiple communication channels for parallel transmission based on the real-time weight values ​​of each communication channel. The target processing terminal sorts, reorganizes, and deduplicates data blocks from multiple communication channels according to their global sequence numbers.

6. The adaptive interactive processing method for vehicle diagnostic logs according to claim 1, characterized in that, When transmitting the structured log file, a breakpoint resume mechanism is adopted. The vehicle diagnostic device divides the structured log file into multiple data blocks and generates corresponding verification information and sequence identifiers for each data block. The data block division adopts an adaptive block division strategy, which dynamically adjusts the block size according to the number of consecutively successfully transmitted data blocks and the transmission delay. The target processing terminal records the status of the successfully received data blocks. When the connection is re-established after a transmission interruption, the on-board diagnostic device only retransmits the data blocks that were not successfully received based on the data block status. The verification information adopts a dual verification mechanism. Each data block is accompanied by a first verification code for fast verification. After all the structured log files have been transmitted, a second verification code is used to verify the complete file. If the first verification code fails to verify, the corresponding data block is retransmitted. If the second verification code fails to verify, each block is re-verified to locate the damaged data block and retransmit it.

7. The adaptive interactive processing method for vehicle diagnostic logs according to claim 1, characterized in that, The target processing terminal generates a feedback instruction based on the visualized diagnostic analysis results, and transmits the feedback instruction back to the on-board diagnostic device via the communication link, including: The target processing terminal generates a feedback instruction based on the diagnostic analysis results and digitally signs the feedback instruction; the feedback instruction includes at least an instruction identifier, a timestamp, the target acquisition object, and execution action information; The target processing terminal sends the digitally signed feedback instruction to the on-board diagnostic device via the communication link; The on-board diagnostic device receives and verifies the digital signature of the feedback instruction. After successful verification, it parses the execution action information in the feedback instruction and returns a confirmation message to the target processing terminal. If the target processing terminal does not receive the confirmation message within a preset time, it will resend the feedback instruction at an increasing time interval until the confirmation message is received or the maximum number of retransmissions is reached.

8. The adaptive interactive processing method for vehicle diagnostic logs according to claim 1, characterized in that, The on-board diagnostic equipment responds to the feedback command by performing supplementary data collection on the target data indicated by the feedback command, generating an enhanced diagnostic log, including: The on-board diagnostic device parses the feedback command to obtain the target collection object, collection filtering conditions, and collection duration or data volume limit indicated by the feedback command. Before performing supplementary data collection, the on-board diagnostic equipment performs a resource availability assessment. If the current resources cannot meet the requirements of the data collection task, it returns a resource shortage response message. Data is collected from the target object according to the collection filtering conditions. The collection is automatically terminated when the collection duration or data volume limit is reached, a stop collection command is received from the target processing terminal, a vehicle power-off signal is detected, or the resource utilization rate of the on-board diagnostic equipment exceeds the safety threshold, and the collected data is encapsulated into an enhanced diagnostic log.

9. The adaptive interactive processing method for vehicle diagnostic logs according to claim 1, characterized in that, The target processing end associates and merges the enhanced diagnostic log with the structured log file to generate a complete diagnostic context, including: The enhanced diagnostic log is parsed, and the associated identification information carried in the enhanced diagnostic log is extracted. The associated identification information includes the original diagnostic log identifier that triggered this supplementary data collection and the feedback session identifier. Based on the associated identifier information, locate the corresponding log data in the structured log file; Using timestamps as the primary key, the enhanced diagnostic logs and the corresponding log data in the structured log files are merged and sorted, and then displayed together on the same timeline. The data in the enhanced diagnostic logs is displayed with a visual identifier that distinguishes them from the original diagnostic logs. An interactive feedback trigger anchor point is generated on the timeline, and the feedback trigger anchor point is associated with the content of the feedback instruction and the vehicle status information at the trigger time.

10. An adaptive interactive processing device for vehicle diagnostic logs, characterized in that, include: The data processing module is used to collect vehicle operation data through on-board diagnostic equipment, generate raw diagnostic logs, and adaptively convert the raw diagnostic logs into structured log files in the target format according to the platform type of the target processing terminal. The data transmission module is used to establish a communication link between the vehicle diagnostic device and the target processing terminal in parallel through multiple communication channels, and dynamically select at least one main channel from the multiple communication channels to transmit the structured log file to the target processing terminal through the selected main channel; The diagnostic analysis module is used to receive and parse the structured log file through the target processing terminal and generate visual diagnostic analysis results; The feedback instruction module is used to generate a feedback instruction based on the visualization diagnostic analysis result through the target processing terminal, and to transmit the feedback instruction back to the vehicle diagnostic device via the communication link. The log generation module is used to respond to the feedback command through the on-board diagnostic device, perform supplementary data collection for the target data indicated by the feedback command, generate an enhanced diagnostic log, and transmit the enhanced diagnostic log to the target processing terminal; The log association module is used to associate and merge the enhanced diagnostic logs with the structured log files through the target processing terminal to generate a complete diagnostic context.