Dynamic configuration downloading system and method based on UDS protocol
Through a dynamic configuration download system based on the UDS protocol, a download process instruction queue is dynamically generated, multi-vendor protocol compatibility is supported, and AES encryption and advanced data verification are introduced, which solves the problems of inflexible download process, incompatibility of protocols and insufficient data security in the existing technology, and achieves efficient and secure ECU download operations.
Patent Information
- Application Number
- CN202510566730.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-06-13
AI Technical Summary
The existing ECU download tool has inflexible download process in multiple manufacturers and multi-vehicle scenarios, incompatible protocols, insufficient data transmission security and integrity, making it difficult to meet the needs of complex vehicle control systems.
The dynamic configuration download system based on the UDS protocol is adopted, and the download process instruction queue is dynamically generated through the JSON configuration file analysis module, which supports dynamic compatibility of multi-vendor protocols, introduces AES encryption and advanced data verification algorithms, and realizes intelligent error handling and automatic recovery functions.
It realizes flexibility and compatibility of the download process, enhances data security and integrity, improves download success rate and operation efficiency, and is suitable for complex scenarios of multiple manufacturers and multiple models.
Smart Images

Figure CN120151101A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of automobile ECU diagnosis, and specifically relates to a dynamic configuration downloading system and method based on UDS protocol. Background Art
[0002] Electronic Control Units (ECUs) are essential in modern cars, responsible for managing key vehicle functions such as power control, emission management, transmission control, etc. During production, maintenance, and repair, the vehicle's ECU needs to be updated to ensure its performance, functionality, and compliance. In the prior art, ECU program downloads and updates are usually performed through a predefined curing process.
[0003] However, this approach has the following shortcomings: 1. Inflexible download process: Download tools are usually designed for a specific manufacturer or model, and the process is rigid and cannot be dynamically adjusted according to the needs of different vehicle controllers.
[0004] 2. Incompatibility of manufacturer protocols: Due to the differences in UDS protocol details among different manufacturers, existing tools are difficult to be compatible with multiple manufacturer protocols, especially in application scenarios with multiple models and multiple controllers, which limits their applicability.
[0005] 3. Insufficient data transmission security and integrity: Existing tools usually lack effective data verification mechanisms and cannot ensure data integrity during the download process. In addition, the security access control mechanism is also relatively simple, which may lead to unauthorized program updates or download failures.
[0006] Therefore, the existing ECU download process tools are difficult to meet the complex vehicle control system requirements, especially in multi-vendor, multi-protocol scenarios. In order to improve the flexibility, compatibility and security of the download process, a dynamically configurable ECU download system is urgently needed. Summary of the invention
[0007] The purpose of the present invention is to provide a dynamic configuration download system and method based on the UDS protocol in order to solve the above-mentioned problems.
[0008] The technical solution adopted by the present invention is as follows: a dynamic configuration download system based on the UDS protocol, the system comprising: The main controller unit is used to coordinate the collaborative work of various modules in the system, receive the JSON configuration files input by the user and distribute them to various functional modules; A JSON configuration file parsing module, connected to the main controller unit, for parsing the service number, sub-function code, time parameter and transmission parameter in the JSON configuration file, generating a dynamic download process instruction queue, and updating configuration changes in real time; The UDS service generation module is connected to the main controller unit and the JSON configuration file parsing module, dynamically generates service requests conforming to the UDS protocol according to the parsed parameters, including session control, secure access, data writing, and program downloading operations, and manages the service execution order; The time parameter control module is connected to the main controller unit, dynamically adjusts the communication timeout time (P2 timer) and the response waiting time (P3 timer), and optimizes the transmission efficiency based on the vehicle communication protocol and historical data; The secure access and data verification module is connected to the main controller unit and the UDS service generation module, performs seed-key security verification and AES encrypted communication, and verifies the data integrity through CRC32, MD5 or SHA-256 after the download is completed; The error handling and recovery module is connected to the main controller unit and the UDS service generation module, monitors the download status in real time, triggers automatic retry, packet retransmission or communication link reconstruction when a communication interruption or verification failure is detected, generates error logs and feeds them back to the main controller unit.
[0009] Preferably, the system further includes: The protocol plugin management unit is connected to the main controller unit, supports loading UDS protocol extension modules from different manufacturers through a plugin mechanism, and realizes dynamic compatibility of multi-vendor protocols; The dynamic hot loading interface is integrated into the JSON configuration file parsing module, allowing users to modify the configuration file during operation and take effect immediately without restarting the system.
[0010] Preferably, the main controller unit is further configured to call the corresponding protocol plugin according to the vehicle controller type, and concurrently execute multiple UDS service requests through an asynchronous task queue; The UDS service generation module is configured to generate a dynamic key request during the secure access stage, and feedback the verification result to the main controller unit through a callback mechanism to control the subsequent process.
[0011] Preferably, the time parameter control module is further configured to dynamically adjust the P2 and P3 timers based on the real-time response speed of the vehicle ECU, and extend the timeout threshold when the communication delay is high to adapt to a complex network environment.
[0012] Preferably, the error handling and recovery module is provided with a multi-level recovery strategy, including packet segmentation retransmission, communication link redundant switching, and resume from breakpoint functions, to ensure the continuity of the download process.
[0013] Preferably, the secure access and data verification module is provided with a key management function module, supports periodic update of the seed-key pair, and provides end-to-end protection for the transmitted data packets through a dual encryption mechanism.
[0014] Preferably, the error handling and recovery module generates a detailed log containing the error type, occurrence time, and recovery strategy, and outputs it to the user side through a visual interface or an API interface.
[0015] Preferably, a dynamic configuration download process method based on the UDS protocol is characterized in that the method comprises the following steps: S1: Configuration file parsing and dynamic instruction generation, loading a user-defined JSON configuration file, parsing the service number (Service ID), sub-function code (SubFunction ID), time parameters (P2 / P3 timers), transmission data format, and security verification rules therein, and generating a dynamic download process instruction queue; at the same time, supporting the hot loading function, allowing real-time updating of the configuration file and synchronously adjusting the instruction execution order.
[0016] S2: Vehicle communication link initialization, establishing a communication connection with the target ECU through a diagnostic interface (such as CAN / CAN FD), performing default session control (0x10 service), initializing the communication protocol according to configuration parameters, loading the UDS protocol plug-in of the corresponding manufacturer, and dynamically setting the initial timeout time (P2 timer) and response waiting time (P3 timer).
[0017] S3: Security access and permission verification, calling the security access module, sending a security request seed (0x27 service) to the ECU, generating a dynamic key according to the configured key algorithm (such as AES encryption) and sending it back for verification; if the verification fails, triggering a retry mechanism or terminating the process, and if successful, entering the programming session mode (0x22 / 0x2E service).
[0018] S4: Dynamic UDS service execution and data download, sequentially executing UDS service requests according to the instruction queue.
[0019] S5: Data integrity verification and feedback, after the program download is completed, executing a data verification service (such as 0x31 service), and performing integrity verification on the data stored in the ECU by using algorithms such as CRC32, MD5, or SHA-256; if the verification fails, automatically triggering packet retransmission, and if successful, feeding back the completion status to the main controller.
[0020] S6: Error monitoring and intelligent recovery, real-time monitoring the execution status of each step, and automatically processing the following abnormal scenarios; Generating a detailed error log (including the error type, timestamp, and recovery strategy), and outputting a diagnostic report through a visual interface or an API interface.
[0021] Preferably, in the step S4, the instruction formation specifically includes: Session management: Switching to an extended session or a programming session; Data transmission: The program data is sent in segments through dynamic packet transmission (Service 0x34), and the packet size and transmission rate are adjusted according to the real-time network latency. Timing control: Dynamically optimize the P2 / P3 timer threshold based on the ECU response to ensure that the timeout mechanism adapts to the current communication environment.
[0022] Preferably, in the step S6, the automatic processing of the abnormal scenario includes: Communication interruption: Automatically reconnect and resume breakpoint resumption. Data verification failure: Locate the error data segment and retransmit it. Protocol mismatch: Switch the protocol plug-in or load the backup configuration file.
[0023] In summary, due to the adoption of the above technical solutions, the beneficial effects of the present invention are: 1. In the present invention, by parsing the user-defined configuration file, the download process can be dynamically generated according to the requirements of different manufacturers and different vehicle models. Users can freely define the UDS service number, sub-function code, time parameter, and transmission data through the configuration file. The download process is no longer fixed, but can be flexibly configured according to different scenarios. This enables the system to be compatible with multiple protocols at the same time and allows users to customize the download process according to specific application scenarios, without the need to develop dedicated tools for each manufacturer or vehicle model, solving the problem of the fixed existing technology process.
[0024] 2. In the present invention, the support for multi-vendor protocols is achieved through the configuration file. The system can dynamically load the corresponding services and parameters according to the protocol files of different manufacturers, without the need to develop separate tools for different manufacturers, solving the problem of incompatibility of multi-vendor protocols in the existing technology. Through the plug-in mechanism, the system can flexibly load and unload different vendor protocol extension modules, enabling the system to easily handle protocol changes and upgrades in the future and having good scalability.
[0025] 3. In the present invention, the security access control is strengthened. In addition to supporting the basic seed-key mechanism, the AES encryption protocol is introduced to ensure the security and legality of the data during the download process. During the data transmission process, the system ensures the security of the transmitted data through a dual encryption mechanism. In terms of data verification, the present invention not only supports CRC32 verification, but also introduces more advanced verification methods such as MD5 and SHA-256. Users can select different verification methods according to application requirements to ensure data integrity in complex environments.
[0026] 4. In the present invention, intelligent error handling and automatic recovery functions are provided. The system can automatically detect error conditions in communication, such as timeouts, interruptions, or data loss, and automatically retry and recover unfinished operations, reducing manual intervention and increasing the success rate of downloads. At the same time, the system supports intelligent error log analysis and diagnosis functions, which can generate detailed error reports to help users quickly locate and solve problems. This function is particularly useful in complex communication environments. Brief Description of the Drawings
[0027] Figure 1 It is the overall system block diagram of the present invention. Detailed Embodiments
[0028] In order to make the objectives, technical solutions, and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. Embodiment:
[0029] Referring to Figure 1 , A dynamic configuration download system based on the UDS protocol, characterized in that: the system includes: A main controller unit for overall scheduling of the coordinated work of each module in the system, receiving a JSON configuration file input by the user and distributing it to each functional module; A JSON configuration file parsing module, connected to the main controller unit, for parsing the service number, sub-function code, time parameters, and transmission parameters in the JSON configuration file, generating a dynamic download process instruction queue, and updating configuration changes in real time; A UDS service generation module, connected to the main controller unit and the JSON configuration file parsing module, dynamically generates service requests conforming to the UDS protocol according to the parsed parameters, including session control, security access, data writing, and program download operations, and manages the service execution order; A time parameter control module, connected to the main controller unit, dynamically adjusts the communication timeout time (P2 timer) and response waiting time (P3 timer), and optimizes the transmission efficiency based on the vehicle communication protocol and historical data; A security access and data verification module, connected to the main controller unit and the UDS service generation module, performs seed-key security verification and AES encrypted communication, and verifies the data integrity through CRC32, MD5, or SHA-256 after the download is completed; An error handling and recovery module, connected to the main controller unit and the UDS service generation module, monitors the download status in real time, triggers automatic retry, packet retransmission or communication link reconstruction when detecting communication interruption or verification failure, generates error logs and feeds them back to the main controller unit.
[0030] The system further includes: A protocol plugin management unit, connected to the main controller unit, supports loading UDS protocol extension modules of different manufacturers through a plugin mechanism to achieve dynamic compatibility of multi-vendor protocols; A dynamic hot loading interface, integrated into the JSON configuration file parsing module, allows users to modify the configuration file during operation and take effect immediately without restarting the system.
[0031] The main controller unit is also used to call the corresponding protocol plugin according to the vehicle controller type and concurrently execute multiple UDS service requests through an asynchronous task queue; The UDS service generation module is used to generate a dynamic key request during the secure access phase and feed back the verification result to the main controller unit through a callback mechanism to control the subsequent process.
[0032] The time parameter control module is also used to dynamically adjust the P2 and P3 timers based on the real-time response speed of the vehicle ECU, and extend the timeout threshold when the communication delay is high to adapt to complex network environments.
[0033] The error handling and recovery module is set with a multi-level recovery strategy, including packet segmentation retransmission, communication link redundant switching and resume from breakpoint functions, to ensure the continuity of the download process.
[0034] The secure access and data verification module is set with a key management function module, supports regular update of the seed-key pair, and provides end-to-end protection for the transmitted data packets through a dual encryption mechanism.
[0035] The error handling and recovery module generates detailed logs containing error types, occurrence times and recovery strategies, and outputs them to the user side through a visualization interface or an API interface.
[0036] A method for a dynamic configuration download process based on the UDS protocol includes the following steps: S1: Configuration file parsing and dynamic instruction generation, load the user-defined JSON configuration file, parse the service number (Service ID), sub-function code (SubFunction ID), time parameters (P2 / P3 timers), transmission data format and security verification rules therein, and generate a dynamic download process instruction queue; at the same time, it supports the hot loading function, allowing real-time update of the configuration file and synchronous adjustment of the instruction execution order.
[0037] S2: Initialize the vehicle communication link, establish a communication connection with the target ECU through the diagnostic interface (such as CAN / CAN FD), execute the default session control (Service 0x10), initialize the communication protocol according to the configuration parameters, load the UDS protocol plug-in corresponding to the manufacturer, and dynamically set the initial timeout (P2 timer) and response waiting time (P3 timer).
[0038] S3: Secure access and permission verification, call the secure access module, send a secure request seed (Service 0x27) to the ECU, generate a dynamic key according to the configured key algorithm (such as AES encryption) and send it back for verification; if the verification fails, trigger the retry mechanism or terminate the process, if successful, enter the programming session mode (Service 0x22 / 0x2E).
[0039] S4: Execute dynamic UDS services and data download, execute UDS service requests in sequence according to the instruction queue.
[0040] S5: Data integrity verification and feedback, after the program download is completed, execute the data verification service (such as Service 0x31), use algorithms such as CRC32, MD5 or SHA-256 to verify the integrity of the data stored in the ECU; if the verification fails, automatically trigger the retransmission of data packets, if successful, feedback the completion status to the main controller.
[0041] S6: Error monitoring and intelligent recovery, monitor the execution status of each step in real time, and perform automated processing on the following abnormal scenarios; Generate detailed error logs (including error type, timestamp and recovery strategy), and output diagnostic reports through the visualization interface or API interface.
[0042] In the step S4, the instruction queue specifically includes: Session management: Switch to the extended session or programming session; Data transmission: Segment and send program data through dynamic data packet transmission (Service 0x34), and adjust the data packet size and transmission rate according to the real-time network latency; Timing control: Dynamically optimize the P2 / P3 timer thresholds based on the ECU response to ensure that the timeout mechanism adapts to the current communication environment.
[0043] In the step S6, the automated processing of abnormal scenarios includes: Communication interruption: Automatically reconnect and resume the breakpoint continuation; Data verification failure: Locate the error data segment and retransmit; Protocol mismatch: Switch the protocol plug-in or load the backup configuration file.
[0044] Among them, the specific implementation methods include: 1. Configuration file parsing When the system starts, it first loads and parses the JSON configuration file provided by the user. This file defines the order, parameters, and time control of all service requests. During parsing, the system extracts service numbers, sub-function codes, transmission parameters, etc., and stores these data in a queue for execution in sequence.
[0045] Support for dynamic hot loading: Allows users to dynamically modify or switch the configuration file during program operation, and the system can take effect immediately without restarting. This enhances the flexibility of operations and is applicable to scenarios of multiple manufacturers and vehicle models.
[0046] Version control and difference parsing: When the configuration file version changes, the system can automatically detect the differences between different versions and update the execution process to avoid repeating steps that have already been completed.
[0047] 2. Generation and Execution of UDS Services The system dynamically generates UDS service requests based on the parsed parameters and performs download operations according to the vehicle protocol. The system can automatically complete all operations from session control, security access, data reading / writing to program download, ensuring the integrity and accuracy of the process.
[0048] Asynchronous task queue: The system uses an asynchronous task queue to process service requests, supporting concurrent execution of multiple tasks, thereby improving operation efficiency. Especially when security access and data verification are carried out simultaneously, it can greatly save time.
[0049] Status callback mechanism: After each service execution is completed, the system uses a callback function to feedback the operation result to the user, such as whether the verification passes, whether the service is executed successfully, etc. The user can dynamically adjust subsequent steps based on the feedback.
[0050] 3. Communication Time Control and Optimization Function description: The system controls the timeout and delay in the communication process through the time parameters in the configuration file. For example, the P2 timer is used to control the communication response timeout, and the P3 timer is used to control the function response time. The goal of time control is to ensure that the vehicle correctly completes operations within the allowed time range.
[0051] Real-time response adjustment: Based on the current response speed of the ECU, the system can dynamically adjust the communication timers (such as P2 and P3). For example, when the network load is low, the system can automatically shorten the timeout to speed up the download process.
[0052] Optimization of historical communication data: The system records the communication time data of each download and optimizes the subsequent time control settings based on these data. For vehicles of the same model, the system can adaptively optimize the communication delay, thereby improving the overall download efficiency.
[0053] 4. Data verification and security assurance After the download is complete, the system verifies the integrity of the downloaded data using CRC32. If the verification fails, the system immediately terminates the operation and prompts the user. The module also includes a secure access mechanism to prevent unauthorized program updates.
[0054] Key management and encrypted communication: By introducing an AES-based encryption algorithm protocol, the system is able to ensure the security of data transmission during the entire download process. In addition, the secure access module can also support more complex key management mechanisms, such as regular updates of seed-key pairs.
[0055] 5. Error handling and recovery mechanism Functional description: When the system encounters an error during the download process, it will automatically detect, record and recover from the error. Through the error handling module, the system can resend unfinished data packets or re-establish communication connections to ensure the continuity and integrity of the download process.
[0056] Multi-level recovery strategy: For different types of errors, the system will apply different recovery strategies. For example, when communication times out, the timeout period can be extended, and when data is lost, the system can automatically retry and retransmit the lost data packets.
[0057] From the above we can know: In the present invention, by parsing the user-defined configuration file, the download process can be dynamically generated according to the needs of different manufacturers and different models. The user can freely define the UDS service number, sub-function code, time parameters and transmission data through the configuration file. The download process is no longer fixed, but can be flexibly configured according to different scenarios. This enables the system to be compatible with multiple protocols at the same time, and allows users to customize the download process according to specific application scenarios without having to develop special tools for each manufacturer or model, solving the problem of process solidification in the prior art.
[0058] In the present invention, support for multi-vendor protocols is achieved through configuration files. The system can dynamically load corresponding services and parameters according to protocol files of different manufacturers, without the need to develop tools of different manufacturers separately, thus solving the problem of incompatibility of multi-vendor protocols in the prior art. Through the plug-in mechanism, the system can flexibly load and unload protocol extension modules of different manufacturers, so that the system can easily cope with protocol changes and upgrades in the future, and has good scalability.
[0059] In the present invention, the security access control is strengthened. In addition to supporting the basic seed-key mechanism, the AES encryption protocol is introduced to ensure the security and legality of data during the download process. During the data transmission process, the system ensures the security of the transmitted data through a dual-encryption mechanism. In terms of data verification, the present invention not only supports CRC32 verification, but also introduces more advanced verification methods such as MD5 and SHA-256. Users can select different verification methods according to application requirements to ensure data integrity in complex environments.
[0060] In the present invention, intelligent error handling and automatic recovery functions are provided. The system can automatically detect error conditions in communication, such as timeouts, interruptions, or data loss, and automatically retry and recover unfinished operations, reducing manual intervention and increasing the success rate of downloads. At the same time, the system supports intelligent error log analysis and diagnosis functions, which can generate detailed error reports to help users quickly locate and solve problems. This function is particularly useful in complex communication environments.
[0061] In the present invention, the flexibility and operational efficiency of the process are improved: by allowing users to customize configuration files, the system realizes the dynamic configuration of the download process, breaking the limitations of the fixed process in the prior art. Users can flexibly adjust each step of the download to meet the requirements of different manufacturers and vehicle models, greatly enhancing the flexibility of the operation. In addition, the customization and parsing process of the configuration file reduce the complexity of tool development and maintenance, and lower the cost of developing independent tools for each manufacturer.
[0062] In the present invention, the compatibility with multiple manufacturers and vehicle models is enhanced: the multi-manufacturer protocol of the present invention is supported through a configuration file and a plug-in mechanism, which can automatically adapt to the protocol requirements of different manufacturers. Users do not need to frequently switch or install different tools. They only need to change the configuration file to complete the download operation for different vehicle models, significantly improving compatibility.
[0063] In the present invention, the security and data integrity of the download process are enhanced: by introducing the AES encrypted communication protocol and various data verification algorithms, the security and reliability of data transmission are significantly enhanced. Compared with the prior art that only relies on basic checksums, the present invention provides more advanced encryption and verification methods, which are suitable for application scenarios with high requirements for data security, such as vehicle manufacturing and maintenance. Through the security access control mechanism, the system prevents unauthorized operations, ensures the security of vehicle controllers, and avoids risks caused by improper operations.
[0064] In the present invention, the automation and intelligence of error handling are improved: the intelligent error handling and recovery mechanism of the system can automatically detect problems in communication and perform automatic recovery operations, reducing the possibility of download interruption and failure, and greatly improving the success rate and stability of the download process. Through intelligent log analysis, the system can generate detailed error reports to help users quickly locate and solve problems. This not only improves the convenience of operation, but also reduces the device downtime and improves the overall operation efficiency.
[0065] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.
[0066] The above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A dynamic configuration download system based on UDS protocol, characterized by: The system comprises: The main controller unit is used to coordinate the collaborative work of various modules in the system, receive the JSON configuration files input by the user and distribute them to various functional modules; A JSON configuration file parsing module, connected to the main controller unit, for parsing the service number, sub-function code, time parameter and transmission parameter in the JSON configuration file, generating a dynamic download process instruction queue, and updating configuration changes in real time; A UDS service generation module, connected to the main controller unit and the JSON configuration file parsing module, dynamically generates a service request that complies with the UDS protocol according to the parsed parameters; A time parameter control module connected to the main controller unit to dynamically adjust the communication timeout time and the response waiting time, and optimize the transmission efficiency based on the vehicle communication protocol and historical data; A security access and data verification module is connected to the main controller unit and the UDS service generation module to perform seed-key security verification and AES encryption communication, and verify data integrity through CRC32, MD5 or SHA-256 after downloading is completed; The error handling and recovery module is connected to the main controller unit and the UDS service generation module, monitors the download status in real time, triggers automatic retry, data packet retransmission or communication link reconstruction when communication interruption or verification failure is detected, generates error logs and feeds back to the main controller unit.
2. The dynamic configuration download system based on the UDS protocol as claimed in claim 1, characterized in that: The system further comprises: A protocol plug-in management unit is connected to the main controller unit and supports loading UDS protocol extension modules of different manufacturers through a plug-in mechanism to achieve dynamic compatibility of multi-vendor protocols; The dynamic hot loading interface is integrated into the JSON configuration file parsing module, allowing users to modify the configuration file during operation and take effect immediately without restarting the system.
3. The dynamic configuration download system based on the UDS protocol as claimed in claim 1, characterized in that: The main controller unit is also used to call the corresponding protocol plug-in according to the vehicle controller type, and concurrently execute multiple UDS service requests through an asynchronous task queue; The UDS service generation module is used to generate a dynamic key request in the security access phase, and feed back the verification result to the main controller unit through a callback mechanism to control the subsequent process.
4. The dynamic configuration download system based on the UDS protocol as claimed in claim 1, characterized in that: The time parameter control module is also used to dynamically adjust the P2 and P3 timers based on the real-time response speed of the vehicle ECU, and to extend the timeout threshold when the communication delay is high to adapt to the complex network environment.
5. The dynamic configuration download system based on UDS protocol as claimed in claim 1, characterized in that: The error handling and recovery module is provided with support for multi-level recovery strategies, including data packet segment retransmission, communication link redundancy switching and breakpoint resume functions, to ensure the continuity of the download process.
6. The UDS protocol-based dynamic configuration download system as claimed in claim 1, characterized in that: The security access and data verification module is provided with a key management function module, supports regular updating of seed-key pairs, and performs end-to-end protection on transmission data packets through a double encryption mechanism.
7. The dynamic configuration download process based on the UDS protocol as claimed in claim 1, characterized in that: The error handling and recovery module generates a detailed log including the error type, occurrence time and recovery strategy, and outputs it to the user end through a visual interface or API interface.
8. A method for downloading dynamic configuration based on the UDS protocol as claimed in claims 1 to 7, characterized in that: Includes steps: S1: Configuration file parsing and dynamic instruction generation, load the user-defined JSON configuration file, parse the service number, sub-function code, time parameter, transmission data format and security verification rules, and generate a dynamic download process instruction queue; it also supports hot loading function, allowing real-time update of configuration files and synchronous adjustment of instruction execution order; S2: Initialize the vehicle communication link, establish a communication connection with the target ECU through the diagnostic interface, execute the default session control, initialize the communication protocol according to the configuration parameters, load the UDS protocol plug-in of the corresponding manufacturer, and dynamically set the initial timeout time and response waiting time; S3: Security access and authority verification, calling the security access module, sending a security request seed to the ECU, generating a dynamic key based on the configured key algorithm and sending it back for verification; If the verification fails, the retry mechanism is triggered or the process is terminated. If successful, the programming session mode is entered; S4: Dynamic UDS service execution and data download, executing UDS service requests in sequence according to the instruction queue; S5: Data integrity check and feedback. After the program is downloaded, the data check service is executed, and the integrity of the data stored in the ECU is verified using CRC32, MD5 or SHA-256 algorithms. If the check fails, the data packet is automatically retransmitted. If successful, the completion status is fed back to the main controller. S6: Error monitoring and intelligent recovery, real-time monitoring of the execution status of each step, automatic processing of the following abnormal scenarios; generate detailed error logs, and output diagnostic reports through a visual interface or API interface.
9. The dynamic configuration download method based on the UDS protocol as claimed in claim 1, characterized in that: In step S4, the command formation specifically includes: Session management: switch to extension session or programming session; Data transmission: Send program data in segments through dynamic packet transmission, and adjust the packet size and transmission rate according to real-time network delay; Timing control: Dynamically optimize P2 / P3 timer thresholds based on ECU response to ensure that the timeout mechanism adapts to the current communication environment.
10. A method for downloading dynamic configuration based on UDS protocol as claimed in claim 1, characterized in that: In step S6, the automated processing of abnormal scenarios includes: Communication interruption: automatic reconnection and resume transmission from breakpoint; Data verification failed: locate the wrong data segment and retransmit; Protocol mismatch: Switch the protocol plug-in or load an alternate configuration file.
Citation Information
Cited By
Entrance guard service system architecture based on drive heat loading
CN121462634A