Vehicle baseline refreshing method and system and medium
By monitoring and handling abnormal situations in real time during the vehicle baseline refresh process, the ECU refresh is ensured successfully, solving the problem of high refresh failure rate in the existing technology, and improving the efficiency and reliability of the vehicle baseline upgrade.
Patent Information
- Application Number
- CN202410735839.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-24
AI Technical Summary
The existing vehicle ECU refresh process has a high refresh failure probability, which leads to increased maintenance costs and requires manual intervention, which reduces the efficiency of the vehicle baseline upgrade.
Adopting a vehicle baseline refresh method, by monitoring the refresh process of the ECU on the vehicle, including monitoring refresh session success, secure access, download, data transmission, CRC check and software integrity check, exiting the current situation if unexpected results occur Refresh and restart to ensure the refresh is successful.
It effectively improves the success rate and efficiency of the vehicle baseline upgrade, reduces the probability of refresh failure, reduces maintenance processing costs, and improves the reliability of the vehicle baseline upgrade task.
Smart Images

Figure CN118689507A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart vehicle technology, and in particular to a whole vehicle baseline refresh method, system and medium. Background Art
[0002] The existing vehicle ECU refresh process has a certain probability of refresh failure. When the refresh fails, the software will generally prompt the refresh failure and either automatically stop the refresh or automatically skip the refresh. Both of these processing methods require subsequent manual intervention and re-operation to complete the vehicle baseline upgrade task, which reduces the refresh efficiency and increases the manpower input cost. In particular, for the vehicle baseline refresh task on the production line, the maintenance processing cost caused by the refresh failure is even higher. Summary of the invention
[0003] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a vehicle baseline refresh method, system and medium, which can automatically re-flash immediately when a refresh failure is detected at any link of the vehicle baseline ECU refresh to ensure a successful refresh.
[0004] To achieve the above purpose, the present invention adopts the following technical solution.
[0005] In a first aspect, the present invention provides a vehicle baseline refresh method, which adopts the following technical solution: In response to a vehicle baseline refresh request, loading a vehicle baseline refresh task; Based on the refresh order of the vehicle baseline refresh task, the ECUs on the vehicle are refreshed one by one; During the refresh process of each ECU, the refresh process is monitored and the monitoring result is fed back. When an unexpected monitoring result occurs, the current refresh process is exited and the refresh process is restarted to overwrite and re-flash.
[0006] Furthermore, in the above vehicle baseline refresh method, the monitoring of the refresh process includes: monitoring whether the refresh session is successfully entered; and / or Monitor ECU security access and failure; and / or Monitor whether the download is successfully initiated; and / or Monitor the success of data transfer; and / or Monitor whether the download is completed successfully; and / or Monitor CRC checksum to see if it is correct; and / or Monitor whether the software integrity check is correct.
[0007] Furthermore, in the above vehicle baseline refresh method, the monitoring of whether the refresh session is successfully entered includes: monitoring the response bytes when entering the refresh session; When the response byte is a positive response, parsing the response byte and outputting it; When the response byte is a negative response, the error code of the response byte is parsed and the corresponding error cause is output.
[0008] Furthermore, in the above vehicle baseline refresh method, the monitoring ECU security access is passed or not, including: Perform security access to the ECU based on the preset security level. If no successful response is received, an access error message is output and the upgrade failure is marked.
[0009] Furthermore, in the above vehicle baseline refresh method, the monitoring of whether the download is started successfully includes: sending a download request instruction to an external storage unit based on the parameter information of the ECU and waiting for a response; If a positive response byte is received, the download is started successfully and the size of the largest data block is parsed from the response; If a negative response byte is received or no response byte is received, the download start fails.
[0010] Furthermore, in the above vehicle baseline refresh method, the monitoring of data transmission success includes: splitting the received data block into unit data of a preset size and sending the unit data to a designated ECU; When sending each unit data, check the received response byte; When the correct byte is received, the download progress is updated and the next unit of data is sent; If an error byte is received or no response byte is received, the data transmission fails and an error message is output.
[0011] Furthermore, in the above vehicle baseline refresh method, the monitoring of whether the download is successful or not includes: End the download operation based on a preset parameter threshold and output module information of the end of download; According to the value of the parameter CRCType, select the corresponding CRC check type and send the download end command to the ECU; Whether the download is successfully completed is determined based on the received response.
[0012] Further, in the above vehicle baseline refresh method, the monitoring of whether the CRC check is correct includes: selecting a corresponding CRC check type according to the value of CRCType, and then comparing the received response data with the expected CRC; According to the result of CRC check, the corresponding information is output. If the CRC check is successful, the information that the CRC check is correct is output; if the CRC check fails, the information that the CRC check is wrong is output.
[0013] Furthermore, in the above vehicle baseline refresh method, the monitoring software integrity check is correct or not, including: Send software integrity check command to the specified ECU; Check whether the received response is as expected. If the software integrity check passes, output the corresponding success message; if the check fails, output the corresponding error message.
[0014] Furthermore, in the above vehicle baseline refresh method, the step of exiting the current refresh process and restarting the refresh process to perform overwriting and re-refreshing includes: If the number of reflashings exceeds the preset maximum number of reflashings, the refresh task of the ECU is skipped immediately and the refresh task of the next ECU is started.
[0015] Furthermore, in the above vehicle baseline refresh method, after responding to the vehicle baseline refresh request, the method further includes: The DID flag data in the configuration file is read and identified, and compared with the DID flag data of the corresponding ECU. The refresh is performed only when the DID flag data matches. If the DID flag data does not match, it means that the configuration file is incorrectly selected. A dialog box will pop up immediately to prompt that the configuration file is incorrectly selected, and the refresh task will be refused.
[0016] In a second aspect, the present invention provides a vehicle baseline refresh system, comprising: An input module, at least used to obtain a vehicle baseline refresh request; A startup module, at least used to respond to a vehicle baseline refresh request and load a vehicle baseline refresh task; A refresh module, at least used to refresh the ECUs on the vehicle one by one based on the refresh order of the vehicle baseline refresh task; And, the monitoring module is at least used to monitor the refresh process and feedback the monitoring results during the refresh process of each ECU, and when an unexpected monitoring result occurs, exit the current refresh process and restart the refresh process to overwrite and re-flash.
[0017] In a third aspect, the present invention provides a readable storage medium, which adopts the following technical solution: A readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, a vehicle baseline refresh method as described in any one of the first aspects above is implemented.
[0018] In summary, the present invention effectively improves the efficiency and success rate of the whole vehicle baseline upgrade by optimizing the process of the whole vehicle baseline refresh task, including optimizing the selection of loading tasks, setting the maximum number of re-refresh times, monitoring the data feedback results of each link in the refresh process, and handling refresh failures. Compared with the prior art, the present invention monitors and handles various possible abnormal situations in real time during the refresh process, such as refresh session failure, security access failure, data transmission error, etc., which can reduce the probability of refresh failure, reduce maintenance processing costs, and improve the execution reliability and efficiency of the whole vehicle baseline upgrade task. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 It is a flowchart of a specific embodiment of a vehicle baseline refresh method of the present invention.
[0021] Figure 2 It is a structural schematic diagram of a specific embodiment of a whole vehicle baseline refresh system of the present invention. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In addition, it should be understood that the specific implementation methods described herein are only used to illustrate and explain the present application, and are not used to limit the present application.
[0023] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments of the present application. In addition, in the following embodiments, the description of each embodiment has its own emphasis, and for parts not described in detail in one embodiment, reference can be made to the relevant description of other embodiments.
[0024] The method steps described in the embodiments of the present invention may be executed in the order described in the specific implementation manner, or the execution order of each step may be adjusted according to actual needs and on the premise that the technical problem can be solved, which will not be listed here one by one.
[0025] The following is combined with Figure 1 and Figure 2 The present invention is described in further detail.
[0026] Reference Figure 1 , a vehicle baseline refresh method, comprising: S1, in response to a vehicle baseline refresh request, loading a vehicle baseline refresh task; S2, based on the refresh order of the vehicle baseline refresh task, refresh the ECUs on the vehicle one by one; S3, during the refresh process of each ECU, the refresh process is monitored and the monitoring result is fed back, and when an unexpected monitoring result occurs, the current refresh process is exited and the refresh process is restarted to overwrite and re-flash.
[0027] Specifically, the present invention first responds to the vehicle baseline refresh request and loads the vehicle baseline refresh task (S1). Then, the ECUs on the vehicle are refreshed one by one according to the order of the refresh tasks to ensure that each ECU is updated (S2). During the refresh process of each ECU, the refresh process is monitored in real time, and feedback is provided based on the monitoring results. If an unexpected monitoring result occurs, indicating that an abnormality has occurred during the refresh process, the current refresh process is exited and the refresh process is restarted to ensure that all ECUs can be successfully refreshed (S3). This method improves the reliability and success rate of the vehicle baseline refresh through careful planning and monitoring of the refresh tasks, as well as a timely exception handling mechanism, thereby greatly reducing the probability of refresh failure, reducing the need for manual intervention, and improving the execution efficiency and reliability of the vehicle baseline upgrade task.
[0028] Furthermore, as an embodiment of the present invention, the monitoring of the refresh process includes: monitoring whether the refresh session is entered successfully; and / or monitoring whether the ECU security access is passed; and / or monitoring whether the download is started successfully; and / or monitoring whether the data transmission is successful; and / or monitoring whether the download is ended successfully; and / or monitoring whether the CRC check is correct; and / or monitoring whether the software integrity check is correct.
[0029] Specifically, monitoring whether the refresh session is successfully entered is to ensure that the refresh session can be established normally, which is the starting step of the entire refresh process. The implementation method includes sending a refresh session command and checking the response. If the expected response is received, it indicates success. Otherwise, a retry or exception handling may be required.
[0030] Monitoring ECU security access is used to verify security access rights to ECUs, ensuring that only authorized users can perform sensitive operations. The implementation includes sending security access commands and checking the response to confirm whether the access rights are authorized.
[0031] Monitoring whether the start download is successful is to confirm whether data can be downloaded, which is an important step in the refresh process. The implementation method includes sending a start download command and checking the response to ensure that the download operation has been started.
[0032] Monitoring the success of data transmission is to verify the integrity of the data during transmission and ensure that the data can be correctly transmitted to the target ECU. The implementation method includes sending a data block and checking the response to confirm whether the data transmission is successful.
[0033] Monitoring the success or failure of download completion is used to confirm the completion of the download process for subsequent verification and processing. An implementation method includes sending an end download command and checking the response to confirm that the download process has been successfully completed.
[0034] Monitoring the CRC check is to verify the integrity of the data during the refresh process and ensure that no errors occur during the data transmission. The implementation method includes sending a CRC check command and checking the response to confirm whether the CRC check passes.
[0035] Monitoring the correctness of the software integrity check is to verify whether the refreshed software is complete to ensure the normal operation of the ECU. The implementation method includes sending a software integrity check command and checking the response to confirm whether the software integrity check passes.
[0036] By monitoring the above refresh indicators, the key steps in the vehicle baseline refresh process can be fully monitored, and possible abnormal situations can be discovered and handled in a timely manner, thereby improving the success rate and reliability of the refresh.
[0037] Further, as an implementation mode of the present invention, the monitoring whether the refresh session is successfully entered includes: monitoring the response bytes when entering the refresh session; When the response byte is a positive response, parsing the response byte and outputting it; When the response byte is a negative response, the error code of the response byte is parsed and the corresponding error cause is output.
[0038] Specifically, to monitor whether the refresh session is successfully entered, it is first necessary to send a refresh session command and wait for the response of the ECU. Once a response is received, the response byte is monitored. If the response byte indicates a positive response, that is, the ECU has successfully entered the refresh session, the response byte is parsed and relevant information is output, such as the content of the response byte and the response time. If the response byte indicates a negative response, that is, an error occurs, the error code is parsed and the corresponding error cause is output, such as identifying the abnormal situation represented by the error code, such as the specific reason for the failure of the refresh session (such as timeout, insufficient authority, etc.), so as to handle the exception in time.
[0039] Exemplarily, a code for monitoring whether entering a refresh session is successful is as follows:
[0040] Furthermore, as an embodiment of the present invention, the monitoring of whether the ECU security access is passed or not includes: performing security access to the ECU based on a preset security level, and if no successful response is received, outputting an access error message and marking the upgrade failure.
[0041] Specifically, the specific implementation method of monitoring whether the ECU security access is passed or not includes sending a security access command to the ECU based on a preset security level and waiting for the response of the ECU. If a successful response is received, it means that the ECU security access is passed and the subsequent operation continues. If a successful response is not received, that is, an access error occurs, the access error information is output, and the upgrade failure is marked so that the abnormal situation can be handled in time.
[0042] Exemplarily, an implementation code for monitoring whether ECU security access is passed or not is as follows:
[0043] Further, as an implementation mode of the present invention, the monitoring whether the download is started successfully or not includes: Send a download request command to the external storage unit based on the parameter information of the ECU and wait for a response; If a positive response byte is received, the download is started successfully and the size of the largest data block is parsed from the response; If a negative response byte is received or no response byte is received, the download start fails.
[0044] Specifically, the specific implementation method of monitoring whether the download is started successfully includes first sending a download request instruction to the external storage unit based on the parameter information of the ECU, and waiting for a response. If a positive response byte is received, it means that the download is started successfully, and the size of the maximum data block is parsed from the response. If a negative response byte is received or no response byte is received, it means that the download is started failed.
[0045] Exemplarily, a specific implementation code for monitoring whether the download is successful is as follows:
[0046] Further, as an implementation mode of the present invention, the monitoring of whether the data transmission is successful or not includes: Split the received data block into unit data of preset size and send them to the specified ECU; When sending each unit data, check the received response byte; When the correct byte is received, the download progress is updated and the next unit of data is sent; If an error byte is received or no response byte is received, the data transmission fails and an error message is output.
[0047] Specifically, the implementation method of monitoring the success of data transmission includes splitting the received data block into unit data of a preset size and sending them one by one to the specified ECU. When sending each unit data, monitor the received response byte. If the correct response byte is received, update the download progress and continue to send the next unit data. If an incorrect response byte is received or no response byte is received, it means that the data transmission has failed, and the corresponding error message is output.
[0048] Exemplarily, a specific implementation code for monitoring whether data transmission is successful or not is as follows:
[0049] Further, as an implementation mode of the present invention, the monitoring of whether the download is completed successfully includes: End the download operation based on a preset parameter threshold and output module information of the end of download; According to the value of the parameter CRCType, select the corresponding CRC check type and send the download end command to the ECU; Whether the download is successfully completed is determined based on the received response.
[0050] Specifically, the implementation method of monitoring whether the download is successfully completed includes completing the download operation based on a preset parameter threshold value, and outputting module information of the completed download. According to the value of the parameter CRCType, the corresponding CRC check type is selected, and a download completion command is sent to the ECU. Whether the download is successfully completed is determined according to the received response.
[0051] Exemplarily, an implementation code for monitoring whether the download is completed successfully is as follows:
[0052] Further, as an implementation mode of the present invention, the monitoring whether the CRC check is correct or not includes: selecting a corresponding CRC check type according to the value of CRCType, and then comparing the received response data with the expected CRC; According to the result of CRC check, the corresponding information is output. If the CRC check is successful, the information that the CRC check is correct is output; if the CRC check fails, the information that the CRC check is wrong is output.
[0053] Specifically, the implementation method of monitoring whether the CRC check is correct or not includes selecting the corresponding CRC check type according to the value of the parameter CRCType, and then comparing the received response data with the expected CRC. According to the result of the CRC check, the corresponding information is output. If the CRC check is successful, the information that the CRC check is correct is output; if the CRC check fails, the information that the CRC check is wrong is output.
[0054] Exemplarily, an implementation code for monitoring whether the CRC check is correct is as follows:
[0055] Further, as an implementation mode of the present invention, the monitoring software integrity check is correct or not, including: Send software integrity check command to the specified ECU; Check whether the received response is as expected. If the software integrity check passes, output the corresponding success message; if the check fails, output the corresponding error message.
[0056] Specifically, the implementation method of monitoring whether the software integrity check is correct includes sending a software integrity check command to a specified ECU and checking whether the received response meets expectations. If the software integrity check passes, a corresponding success message is output; if the check fails, a corresponding error message is output.
[0057] Exemplarily, an implementation code for monitoring whether the software integrity check is correct is as follows:
[0058] Further, as an implementation mode of the present invention, the step of exiting the current refresh process and restarting the refresh process to perform overwriting and re-refreshing includes: If the number of reflashings exceeds the preset maximum number of reflashings, the refresh task of the ECU is skipped immediately and the refresh task of the next ECU is started.
[0059] Specifically, the implementation method of exiting the current refresh process and restarting the refresh process to overwrite and re-flash includes checking whether the number of re-flashes exceeds the preset maximum number of re-flashes. If the number of re-flashes does not exceed the maximum number of re-flashes, restart the refresh task of the current ECU to overwrite and re-flash; if the number of re-flashes exceeds the maximum number of re-flashes, immediately skip the refresh task of the current ECU and start the refresh task of the next ECU.
[0060] Exemplarily, an implementation code for overwriting and re-swiping is as follows:
[0061] In the retry mechanism implemented by the above code, the MCU refresh task is executed in a loop until the preset maximum number of retries is reached. In each loop, the MCU refresh task is executed once and the execution result is checked. If the refresh is successful, the loop is jumped out; if the refresh result is 'EPTReady' or 'SpeedHigh', the button is enabled and the return is made; if the current number of retries reaches the maximum number of retries, the upgrade progress bar is marked red, and the corresponding continuous failure information is output, and then the execution is continued after waiting for a period of time.
[0062] Furthermore, as an embodiment of the present invention, the response to the vehicle baseline refresh request also includes: reading and identifying the DID flag data in the configuration file, and comparing it with the DID flag data of the corresponding ECU. The refresh will be implemented only if the DID flag data matches. If the DID flag data does not match, it means that the configuration file is selected incorrectly, and a dialog box will immediately pop up to prompt that the configuration file is selected incorrectly, and the refresh task will be refused to execute.
[0063] Specifically, after responding to the vehicle baseline refresh request, the DID (Data Identifier) flag data in the configuration file is read and identified, and compared with the DID flag data of the corresponding ECU. The refresh operation will only be implemented if the DID matches, which ensures the accuracy and effectiveness of the refresh task. If the DID does not match, it means that the configuration file is selected incorrectly, and a prompt box pops up to prompt that the configuration file is selected incorrectly, and the refresh task is refused to execute, so as to avoid the impact of the incorrect refresh operation on the vehicle system.
[0064] The embodiment of the present invention also discloses a whole vehicle baseline refresh system.
[0065] Reference Figure 2 A vehicle baseline refresh system includes an input module 1, a start module 2, a refresh module 3 and a monitoring module 4.
[0066] The input module 1 is at least used to obtain the vehicle baseline refresh request. The input module 1 is responsible for receiving the vehicle baseline refresh request, which can be sent through an external interface, a user interface or other systems. The input module 1 provides the initial trigger point of the system and passes the request to the startup module.
[0067] The startup module 2 is at least used to respond to the vehicle baseline refresh request and load the vehicle baseline refresh task. The startup module 2 responds to the vehicle baseline refresh request and loads the vehicle baseline refresh task. The startup module 2 is responsible for obtaining the information of the vehicle baseline refresh task from the configuration file or other source and starting the refresh process. The startup module 2 passes the detailed information of the refresh task to the refresh module 3.
[0068] The refresh module 3 is at least used to refresh the ECUs on the vehicle one by one based on the refresh order of the vehicle baseline refresh task. The refresh module 3 refreshes the ECUs on the vehicle one by one according to the order of the vehicle baseline refresh task. The refresh module 3 performs the actual refresh operation, which involves operations such as communication with the ECU and data transmission. The refresh module 3 transmits the monitoring results to the monitoring module 4 during the refresh process.
[0069] The monitoring module 4 is at least used to monitor the refresh process and feedback the monitoring results during the refresh process of each ECU, and when an unexpected monitoring result occurs, exit the current refresh process and restart the refresh process to overwrite and re-flash. The monitoring module 4 is responsible for monitoring various states and events in the refresh process, such as whether the refresh session is successful, whether the security access is passed, whether the data transmission is successful, etc. When an unexpected monitoring result occurs, the monitoring module 4 will exit the current refresh process and notify the startup module 2 to restart the refresh process to overwrite and re-flash. The feedback capability of the monitoring module 4 ensures the stability and reliability of the vehicle baseline refresh process.
[0070] The vehicle baseline refresh system described in the embodiment of the present invention realizes the automatic management and monitoring of the software upgrade process of each ECU of the vehicle through the synergistic effect of the four modules of input module 1, startup module 2, refresh module 3 and monitoring module 4. The efficiency and reliability of the refresh process are improved. Through the monitoring and feedback mechanism of each link in the refresh process, abnormal situations can be discovered and handled in time, avoiding additional maintenance costs and manpower input caused by refresh failures, ensuring the smooth completion of the vehicle baseline upgrade task, and improving the stability and reliability of the system.
[0071] The embodiment of the present invention also discloses a readable storage medium.
[0072] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a vehicle baseline refresh method described in any one of the above embodiments. The computer-readable storage medium may include: any entity or device capable of carrying a computer program, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), and a software distribution medium, etc. The computer program includes a computer program code. The computer program code may be in source code form, object code form, an executable file, or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying a computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), and a software distribution medium, etc.
[0073] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0074] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0075] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A vehicle baseline refresh method, characterized in that: include: In response to a vehicle baseline refresh request, loading a vehicle baseline refresh task; Based on the refresh order of the vehicle baseline refresh task, the ECUs on the vehicle are refreshed one by one; During the refresh process of each ECU, the refresh process is monitored and the monitoring result is fed back. When an unexpected monitoring result occurs, the current refresh process is exited and the refresh process is restarted to overwrite and re-flash.
2. A vehicle baseline refresh method according to claim 1, characterized in that: The monitoring of the refreshing process comprises: Monitor the success of entering a refresh session; and / or Monitor ECU security access and failure; and / or Monitor whether the download is successfully initiated; and / or Monitor the success of data transfer; and / or Monitor whether the download is completed successfully; and / or Monitor CRC checksum to see if it is correct; and / or Monitor whether the software integrity check is correct.
3. A vehicle baseline refresh method according to claim 2, characterized in that: The monitoring of whether the refresh session is successfully entered includes: Monitor the response bytes when entering the refresh session; When the response byte is a positive response, parsing the response byte and outputting it; When the response byte is a negative response, the error code of the response byte is parsed and the corresponding error cause is output.
4. A vehicle baseline refresh method according to claim 2, characterized in that: The monitoring of whether the ECU security access is passed or not includes: Perform security access to the ECU based on the preset security level. If no successful response is received, an access error message is output and the upgrade failure is marked.
5. A vehicle baseline refresh method according to claim 2, characterized in that: The monitoring of whether the download is successful or not includes: Send a download request command to the external storage unit based on the parameter information of the ECU and wait for a response; If a positive response byte is received, the download is started successfully and the size of the largest data block is parsed from the response; If a negative response byte is received or no response byte is received, the download start fails.
6. A vehicle baseline refresh method according to claim 2, characterized in that: The monitoring of data transmission success or failure includes: Split the received data block into unit data of preset size and send them to the specified ECU; When sending each unit data, check the received response byte; When the correct byte is received, the download progress is updated and the next unit of data is sent; If an error byte is received or no response byte is received, the data transmission fails and an error message is output.
7. A vehicle baseline refresh method according to claim 2, characterized in that: The monitoring of whether the download is completed successfully includes: End the download operation based on a preset parameter threshold and output module information of the end of download; According to the value of the parameter CRCType, select the corresponding CRC check type and send the download end command to the ECU; Whether the download is successfully completed is determined based on the received response.
8. A vehicle baseline refresh method according to claim 2, characterized in that: The monitoring of whether the CRC check is correct or not includes: According to the value of CRCType, select the corresponding CRC check type, and then compare the received response data with the expected CRC; According to the result of CRC check, the corresponding information is output. If the CRC check is successful, the information that the CRC check is correct is output; if the CRC check fails, the information that the CRC check is wrong is output.
9. A vehicle baseline refresh method according to claim 2, characterized in that: The integrity check of the monitoring software is correct or not, including: Send software integrity check command to the specified ECU; Check whether the received response is as expected. If the software integrity check passes, output the corresponding success message; if the check fails, output the corresponding error message.
10. A vehicle baseline refresh method according to claim 1, characterized in that: The step of exiting the current refresh process and restarting the refresh process to perform overwriting and re-refreshing includes: If the number of reflashings exceeds the preset maximum number of reflashings, the refresh task of the ECU is skipped immediately and the refresh task of the next ECU is started.
11. A vehicle baseline refresh method according to claim 1, characterized in that: After responding to the vehicle baseline refresh request, the method further includes: The DID flag data in the configuration file is read and identified, and compared with the DID flag data of the corresponding ECU. The refresh is performed only when the DID flag data matches. If the DID flag data does not match, it means that the configuration file is incorrectly selected. A dialog box will pop up immediately to prompt that the configuration file is incorrectly selected, and the refresh task will be refused.
12. A vehicle baseline refresh system, characterized in that: The system comprises: An input module, at least used to obtain a vehicle baseline refresh request; A startup module, at least used to respond to a vehicle baseline refresh request and load a vehicle baseline refresh task; A refresh module, at least used to refresh the ECUs on the vehicle one by one based on the refresh order of the vehicle baseline refresh task; And, the monitoring module is at least used to monitor the refresh process and feedback the monitoring results during the refresh process of each ECU, and when an unexpected monitoring result occurs, exit the current refresh process and restart the refresh process to overwrite and re-flash.
13. A readable storage medium, characterized in that: The readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, a vehicle baseline refresh method according to any one of claims 1 to 11 is implemented.
