A method, device and storage medium for automatically storing and rolling back automobile programs
By cooperating with the program management MCU and storage module of the gateway controller, automatic storage and rollback of automotive control component programs is achieved, and the lack of functions caused by failure or inadequate upgrade of automotive programs is solved, and user experience and maintenance efficiency is improved.
Patent Information
- Application Number
- CN202210263447.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-03-17
AI Technical Summary
The failure or inadequate upgrade of the car program results in the lack of car functions, and the replaced control components cannot adapt to the subsequent upgrade program or initial program, resulting in difficulty in restoring the factory functions.
By cooperating with the program management MCU and storage module of the gateway controller, program storage and rollback operations are performed, ensuring that the storage module saves the programs of each control component, realizing automatic storage and rollback of control component programs, and restoring to the available historical version .
When the car control component program is updated or upgraded, it can be efficiently restored to the program version that supports the normal operation of the car, improving the user's car experience and maintenance convenience.
Smart Images

Figure CN114648823B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile program rollback, and in particular to an automobile program automatic storage rollback control method, device and storage medium. Background Art
[0002] The communication network architecture of the car includes a gateway, which connects the T-BOX, body controller, door controller, one-button start controller, anti-theft controller, ECU, TCU and ADAS, etc. The control components connected to the gateway need to be configured with firmware to realize their functions.
[0003] During the use of the car, the upgrade of the car software is often not mandatory. Users will update the control component program according to their needs. Some users will even replace the control components of the car when maintaining the car. The replaced control components may not be compatible with the subsequent upgrade program of the car manufacturer or the initial program provided by the manufacturer. Whether it is the selective update of the control component program or the replacement of the car control component, it will lead to confusion of the existing control components of the car and the control component configuration program. If the car program upgrade fails or the car program is not compatible after the upgrade, resulting in the loss of car functions, it is generally necessary to restore the car to the factory through rollback. However, the confusion of control components and configuration programs means that restoring the factory may not necessarily restore the car functions, such as the situation where the replaced control component cannot adapt to the subsequent upgrade program and cannot adapt to the initial program provided by the manufacturer. Summary of the invention
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present application provides a method, device and storage medium for automatic storage rollback control of an automobile program.
[0005] In a first aspect, the present application provides a method for controlling automatic storage rollback of an automobile program, comprising:
[0006] Executing program storage enables the storage module to store programs of various control elements that can support the normal operation of the automobile; wherein executing program storage includes: sending a program storage request to a program management MCU that is communicatively connected to the MCU in the gateway controller, the program management MCU responding to the program storage request, initiating a first security encryption verification, and after passing the first security encryption verification, obtaining a target program to be stored according to a program list and storing it in the storage module, and feeding back a storage result; wherein the program list records in association all control elements that are communicatively connected to the gateway controller, program tags of the control element configuration programs, and a storage indication mark used to indicate whether the program corresponding to the program tag has been stored in the storage module;
[0007] When the upgrade of the automobile control element fails or the upgrade is incompatible, a program rollback is executed to restore the program of the control element to be rolled back to a target rollback program that can support the normal operation of the automobile. The program rollback includes: sending a program rollback request to the program management MCU, the program management MCU responding to the program rollback request, initiating a second security encryption verification, and after passing the second security encryption verification, the program management MCU searches for the target rollback program from the storage module according to the program rollback request and writes the target rollback program to the control element to be rolled back. If the writing is successful, the program label modification is executed to modify the existing program label of the control element to be rolled back in the program list to the program label of the rollback target program, and record a log of successful writing.
[0008] Furthermore, the step of acquiring the target program to be stored according to the program list and storing it in the storage module includes:
[0009] The program management MCU obtains the program list;
[0010] Traversing the program list, extracting therefrom a target control element and a target program tag whose storage indication mark indicates that the program is not stored in the storage module;
[0011] The program management MCU communicates with the target control element using the gateway controller;
[0012] The corresponding target program is obtained from the target control element according to the target program label and stored in a storage module connected to the program management MCU. When storing the target program, the program label, program file and program calibration data of the target program are stored.
[0013] Furthermore, obtaining the corresponding target program from the target control element according to the target program tag and storing it includes: presetting a first number threshold for allowing repeated storage attempts after a target program storage failure; defining a storage failure count variable with an initial value of 0; if the target program storage fails, the storage failure count variable is incremented by one, and if the storage failure count variable is less than the first number threshold, repeated attempts to obtain the target program and store it are allowed when failure occurs, otherwise a prompt prompting the target program storage failure is given.
[0014] Furthermore, the program management MCU searches for a target rollback program from a storage module according to a program rollback request and writes the target rollback program to a control element to be rolled back, including:
[0015] The program management MCU obtains a program tag indicating a target rollback program and a control element to be rolled back from the program rollback request;
[0016] The program management MCU uses the gateway controller to communicate with the control element that needs to be rolled back;
[0017] The program management MCU searches for the corresponding target rollback program from the storage module according to the program tag;
[0018] The program management MCU verifies whether the target rollback program is correct according to the verification strategy. If correct, the program management MCU writes the target rollback program to the control element to be rolled back according to the writing strategy.
[0019] Furthermore, the program management MCU verifies whether the target rollback program is correct according to the verification strategy, including:
[0020] A second threshold for the number of times the target rollback program verification is allowed to be repeated after verification fails is preset; a verification failure count variable with an initial value of 0 is defined; if the target rollback program verification fails, the verification failure count variable is incremented by one, and if the verification failure count variable is less than the second threshold, repeated attempts to verify the target rollback program are allowed when verification fails, otherwise a prompt is given that the target rollback program verification failed, resulting in rollback failure.
[0021] Furthermore, the program management MCU flashes the target rollback program to the control element to be rolled back according to the flashing strategy, including:
[0022] A third threshold value for the number of times that repeated attempts to rewrite the preset target rollback program are allowed after the rewrite fails; a rewrite failure count variable with an initial value of 0 is defined; if the rewrite fails, the rewrite failure count variable is incremented by one; if the rewrite fails, and the rewrite failure count variable is less than the third threshold value, repeated attempts to rewrite the target rollback program are allowed when the rewrite fails, otherwise the rewrite failure is prompted.
[0023] Furthermore, performing program tag modification includes:
[0024] A program tag modification request is sent to the program management MCU. The program management MCU initiates a third security encryption verification in response to the program tag modification request. After passing the third security encryption verification, the modified control element and the modified program tag are obtained from the tag modification request. The program management MCU uses the modified control element to query the modified program tag from the program list, and replaces the modified program tag with the modified program tag.
[0025] Furthermore, executing program storage so that the storage module stores programs of various control elements that can support normal operation of the automobile includes: when the automobile functions normally after replacing a control element or changing a control element configuration program, executing program label modification to modify the program label of the modified control element in the program list to a program label of the program equipped with the modified control element, and configuring the storage indication mark of the modified control element in the program list to not stored; and then executing program storage to store the program of the modified control element.
[0026] In a second aspect, the present invention provides an automatic storage and rollback device for automobile programs, comprising: a program management MCU communicatively connected to a gateway MCU in a gateway controller of a vehicle, the program management MCU being electrically connected to a storage module; the storage module storing at least one instruction, the program management MCU reading and executing the instruction to implement any one of the automatic storage and rollback control methods for automobile programs.
[0027] In a third aspect, the present invention provides a storage medium for implementing a method for automatically storing and rolling back a car program. The storage medium for implementing a method for automatically storing and rolling back a car program stores at least one instruction, and reads and executes the instruction to implement the method for automatically storing and rolling back a car program.
[0028] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0029] This application realizes automatic storage and rollback of programs of various control elements by means of a program pipeline MCU and a storage module that are connected to the MCU in the gateway controller in communication with the gateway controller. The program pipeline MCU and the storage module cooperate with the gateway controller to perform program tag modification and program storage, and can store the existing programs of the control elements in the local storage module of the car, so that the storage module saves the historical programs used by each control element. When the program update of the car control element fails or is incompatible after the upgrade, resulting in the loss of car functions, especially when the car cannot be connected to the Internet, the program of the control element can be restored to an available historical version by executing program rollback, which is convenient and efficient to maintain and improves the user's car experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0032] Figure 1 A schematic diagram of the application process of the method for automatically storing and rolling back a vehicle program provided in an embodiment of the present application;
[0033] Figure 2 A flowchart of using a gateway controller, a program management MCU and a storage module of a car to perform program storage provided in an embodiment of the present application;
[0034] Figure 3A flowchart of obtaining a target program to be stored according to a program list and storing it in a storage module provided in an embodiment of the present application;
[0035] Figure 4 A flowchart of performing program rollback using a gateway controller, a program management MCU and a storage module of a car provided in an embodiment of the present application;
[0036] Figure 5 A flowchart of a program management MCU provided in an embodiment of the present application searching for a target rollback program from a storage module according to a program rollback request and writing the target rollback program to a control element to be rolled back;
[0037] Figure 6 A flowchart of using a gateway controller, a program management MCU and a storage module of a car to perform program tag modification provided in an embodiment of the present application;
[0038] Figure 7 A schematic diagram of an automatic storage and rollback device for an automobile program is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0040] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0041] Example 1
[0042] See also Figure 1As shown, an embodiment of the present application provides an automatic storage rollback control method for an automobile program, which is implemented based on a gateway controller, a program management MCU communicatively connected to the MCU in the gateway controller, and a storage module connected to the program management MCU, and includes: S100, executing program storage so that the storage module stores programs of various control elements that can support normal operation of the automobile; S200, when an upgrade of an automobile control element fails or the upgrade is incompatible, executing a program rollback, and restoring the program of the control element to be rolled back to a target rollback program that can support normal operation of the automobile.
[0043] In the specific implementation process, S100 includes: when the car is offline, using the gateway controller, program management MCU and storage module of the car to perform program storage to store the program of the control element when the car is offline. S100 also includes: when the car functions normally after the control element is replaced or the control element configuration program is changed, performing program label modification to modify the program label of the modified control element in the program list to the program label of the program equipped with the modified control element, and configuring the storage indicator mark of the modified control element in the program list to not stored; and then performing program storage to store the program of the modified control element.
[0044] See also Figure 2 As shown, the method of using the gateway controller, program management MCU and storage module of the vehicle to perform program storage in S100 includes:
[0045] S101, sending a program storage request to a program management MCU that is communicatively connected to an MCU in a gateway controller.
[0046] S102, the program management MCU responds to the program storage request, initiates a first security encryption verification, and determines whether the first security encryption verification passes. If it fails, S103 is executed, and if it passes, S104 is executed.
[0047] S103, prompting that the first security encryption verification fails.
[0048] S104, obtaining the target program to be stored according to the program list and storing it in the storage module, and feeding back the storage result.
[0049] During the specific implementation process, see Figure 3 As shown, the step of acquiring the target program to be stored according to the program list and storing it in the storage module includes:
[0050] S1041, the program management MCU obtains and traverses the program list, and extracts the target control element and target program tag whose storage indicator indicates that the program is not stored in the storage module. The program list records all control elements connected to the gateway controller, the program tags of the control element configuration program, and the storage indicator used to indicate whether the program corresponding to the program tag has been stored in the storage module. When the car just rolls off the assembly line, all the storage indicator tags in the program list are set to not stored.
[0051] S1042, the program management MCU communicates with the target control element using the gateway controller.
[0052] S1043, the program management MCU obtains a preset first threshold of times for repeated storage attempts after a target program storage failure is allowed, and defines a storage failure count variable with an initial value of 0.
[0053] S1044, the program management MCU obtains the corresponding target program from the target control element according to the target program label and stores it; obtains the corresponding target program from the target control element according to the target program label and stores it in the storage module connected to the program management MCU. When storing the target program, the program label, program file and program calibration data of the target program are stored.
[0054] S1045, check whether the target program is stored successfully, if yes, execute S1046, otherwise execute S1047.
[0055] S1046, feedback that the target program is stored successfully.
[0056] S1047, the storage failure count variable is incremented by one.
[0057] S1048, determining whether the storage failure count variable is less than the first count threshold, if yes, allowing repeated attempts to obtain the target program and store it when failed, i.e. executing S1044, otherwise executing S1049,
[0058] S1049, prompting that the target program storage failed.
[0059] When the upgrade of the vehicle control component fails or the upgrade is incompatible, the program rollback is performed to restore the program of the control component to be rolled back to the target rollback program that can support the normal operation of the vehicle. The program rollback is performed using the vehicle's gateway controller, program management MCU and storage module to roll back the program of the specified control component on the vehicle to the previous program.
[0060] See also Figure 4 As shown, the program rollback performed by utilizing the gateway controller, program management MCU and storage module of the vehicle in S200 includes:
[0061] S201, sending a program rollback request to the program management MCU.
[0062] S202, the program management MCU responds to the program rollback request, initiates a second security encryption verification, and determines whether the second security encryption verification passes. If it fails, S203 is executed, and if it passes, S204 is executed.
[0063] S203, prompting that the second security encryption verification has failed.
[0064] S204, the program management MCU searches for a target rollback program from the storage module according to the program rollback request and writes the target rollback program to the control element to be rolled back.
[0065] During the specific implementation process, see Figure 5 As shown, the program management MCU searches for a target rollback program from a storage module according to a program rollback request and writes the target rollback program to a control element to be rolled back, including:
[0066] S2041, the program management MCU obtains the program tag indicating the target rollback program and the control element to be rolled back from the program rollback request.
[0067] S2042, the program management MCU uses the gateway controller to communicate with the control element that needs to be rolled back.
[0068] S2043, the program management MCU obtains a preset second threshold of times for repeated verification attempts after verification of the target rollback program fails, and defines a verification failure count variable with an initial value of 0.
[0069] S2044, the program management MCU searches the storage module for the corresponding target rollback program according to the program tag.
[0070] S2045, the program management MCU verifies whether the target rollback program is correct according to the verification strategy. If the verification is correct, execute S2046; if the verification is wrong, execute S2047.
[0071] S2046, the program management MCU writes the target rollback program to the control element to be rolled back according to the writing strategy.
[0072] Specifically, the program management MCU flashes the target rollback program to the control element to be rolled back according to the flashing strategy, including:
[0073] Get the third threshold for repeated attempts to rewrite the preset target rollback program after the rewrite fails, and define a rewrite failure count variable with an initial value of 0.
[0074] Check whether the target rollback program is successfully flashed.
[0075] If the target rollback program is successfully written, execute S205.
[0076] If the target rollback program fails to be flashed, the flash failure count variable will be incremented by one.
[0077] It is determined whether the flash failure count variable is less than the third number threshold. If yes, repeated attempts to flash the target rollback program are allowed when the flash fails. Otherwise, it is prompted that the target rollback program fails to be flashed, resulting in rollback failure.
[0078] S2047, the verification failure count variable is incremented by one.
[0079] S2048, determine whether the verification failure count variable is less than the second count threshold, if so, allow repeated attempts to verify the target rollback program when the verification fails, that is, execute S2045, otherwise execute S2049.
[0080] S2049, prompting that the target rollback program verification failed, resulting in rollback failure.
[0081] S205: If the flashing is successful, the program tag is modified to modify the existing program tag of the control element to be rolled back in the program list to the program tag of the rollback target program, and a flashing success log is recorded.
[0082] See also Figure 6 As shown, both S100 and S200 involve using the gateway controller, program management MCU and storage module of the automobile to perform program label modification, and S300 uses the gateway controller, program management MCU and storage module of the automobile to perform program label modification, including:
[0083] S301, sending a program tag modification request to the program management MCU.
[0084] S302, the program management MCU initiates a third security encryption verification in response to the program tag modification request, and determines whether the third security encryption verification passes, if not, execute S303, if yes, execute S304.
[0085] S303, prompting that the third security encryption verification has failed.
[0086] S304, the program management MCU obtains the modified control element and the modified program label from the label modification request.
[0087] S305, the program management MCU uses the modified control element to query the modified program label from the program list, and replaces the modified program label with the modified program label.
[0088] Example 2
[0089] See also Figure 7As shown, the present invention provides an automatic storage and rollback device for automobile programs, comprising: a program management MCU that is communicatively connected to the gateway MCU in the gateway controller of the vehicle, and the program management MCU is electrically connected to a storage module; the storage module stores at least one instruction, and the program management MCU reads and executes the instruction to implement the automatic storage and rollback control method for automobile programs. In the specific implementation process, the storage module includes a ROM memory and a FLASH memory, wherein the storage space of the FLASH memory is divided into 5 areas, and the 5 areas respectively store the vehicle information, program label, program file, program calibration data and flashing protocol of the automobile. Among them, the vehicle information includes VIN, offline time, and flashing success log file.
[0090] Example 3
[0091] An embodiment of the present invention provides a storage medium for implementing a method for automatically storing and rolling back a car program. The storage medium for implementing a method for automatically storing and rolling back a car program stores at least one instruction, and the instruction is read and executed to implement the method for automatically storing and rolling back a car program.
[0092] This application realizes automatic storage and rollback of programs of various control elements by means of a program pipeline MCU and a storage module that are connected to the MCU in the gateway controller in communication with the gateway controller. The program pipeline MCU and the storage module cooperate with the gateway controller to perform program tag modification and program storage, and can store the existing programs of the control elements in the local storage module of the car, so that the storage module saves the historical programs used by each control element. When the program update of the car control element fails or is incompatible after the upgrade, resulting in the loss of car functions, especially when the car cannot be connected to the Internet, the program of the control element can be restored to an available historical version by executing program rollback, which is convenient and efficient to maintain and improves the user's car experience.
[0093] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0095] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0096] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for controlling automatic storage and rollback of automobile programs, characterized in that: include: When the car functions normally after the control element is replaced or the control element configuration program is changed, the program label modification is executed to modify the program label of the modified control element in the program list to the program label of the program equipped with the modified control element, and the storage indication mark of the modified control element in the program list is configured as not stored; then the program storage is executed to store the program of the modified control element; wherein, the execution of the program storage enables the storage module to store the programs of various control elements that can support the normal operation of the car; the execution of the program storage includes: sending a program storage request to the program management MCU that is communicatively connected to the MCU in the gateway controller, the program management MCU responds to the program storage request, initiates a first security encryption verification, and after passing the first security encryption verification, obtains the target program to be stored according to the program list and stores it in the storage module, and feeds back the storage result; wherein, the program list records all the control elements that are communicatively connected to the gateway controller, the program labels of the control element configuration programs, and the storage indication mark used to indicate whether the program corresponding to the program label has been stored in the storage module; When the upgrade of the automobile control element fails or the upgrade is incompatible, a program rollback is executed to restore the program of the control element to be rolled back to a target rollback program that can support the normal operation of the automobile; wherein, executing the program rollback includes: sending a program rollback request to the program management MCU, the program management MCU responding to the program rollback request, initiating a second security encryption verification, and after passing the second security encryption verification, the program management MCU searches for the target rollback program from the storage module according to the program rollback request and writes the target rollback program to the control element to be rolled back. If the writing is successful, the program label modification is executed to modify the existing program label of the control element to be rolled back in the program list to the program label of the rollback target program, and record a log of successful writing.
2. The method for controlling the automatic storage and rollback of automobile programs according to claim 1, characterized in that: The step of acquiring the target program to be stored according to the program list and storing it in the storage module comprises: The program management MCU obtains the program list; Traversing the program list, extracting therefrom a target control element and a target program tag whose storage indication mark indicates that the program is not stored in the storage module; The program management MCU communicates with the target control element using the gateway controller; The corresponding target program is obtained from the target control element according to the target program label and stored in a storage module connected to the program management MCU. When storing the target program, the program label, program file and program calibration data of the target program are stored.
3. The method for controlling the automatic storage and rollback of automobile programs according to claim 2, characterized in that: Obtaining the corresponding target program from the target control element according to the target program tag and storing it includes: presetting a first number threshold for allowing repeated storage attempts after a target program storage failure; defining a storage failure count variable with an initial value of 0; if the target program storage fails, the storage failure count variable is incremented by one, and if the storage failure count variable is less than the first number threshold, repeated attempts to obtain the target program and store it are allowed when failure occurs, otherwise a prompt prompts that the target program storage has failed.
4. The method for controlling the automatic storage and rollback of automobile programs according to claim 1, characterized in that: The program management MCU searches for a target rollback program from a storage module according to a program rollback request and writes the target rollback program to a control element to be rolled back, including: The program management MCU obtains a program tag indicating a target rollback program and a control element to be rolled back from the program rollback request; The program management MCU uses the gateway controller to communicate with the control element that needs to be rolled back; The program management MCU searches for the corresponding target rollback program from the storage module according to the program tag; The program management MCU verifies whether the target rollback program is correct according to the verification strategy. If correct, the program management MCU writes the target rollback program to the control element to be rolled back according to the writing strategy.
5. The method for controlling the automatic storage and rollback of automobile programs according to claim 4, characterized in that: The program management MCU verifies whether the target rollback program is correct according to the verification strategy, including: A second threshold for the number of times the target rollback program verification is allowed to be repeated after verification fails is preset; a verification failure count variable with an initial value of 0 is defined; if the target rollback program verification fails, the verification failure count variable is incremented by one, and if the verification failure count variable is less than the second threshold, repeated attempts to verify the target rollback program are allowed when verification fails, otherwise a prompt is given that the target rollback program verification failed, resulting in rollback failure.
6. The method for controlling the automatic storage and rollback of automobile programs according to claim 4, characterized in that: The program management MCU writes the target rollback program to the control elements to be rolled back according to the writing strategy, including: A third threshold value for the number of times that repeated attempts to rewrite the preset target rollback program are allowed after the rewrite fails; a rewrite failure count variable with an initial value of 0 is defined; if the rewrite fails, the rewrite failure count variable is incremented by one; if the rewrite fails, and the rewrite failure count variable is less than the third threshold value, repeated attempts to rewrite the target rollback program are allowed when the rewrite fails, otherwise the rewrite failure is prompted.
7. The method for controlling the automatic storage and rollback of automobile programs according to claim 1, characterized in that: Executing program tag modifications include: A program tag modification request is sent to the program management MCU. The program management MCU initiates a third security encryption verification in response to the program tag modification request. After passing the third security encryption verification, the modified control element and the modified program tag are obtained from the tag modification request. The program management MCU uses the modified control element to query the modified program tag from the program list, and replaces the modified program tag with the modified program tag.
8. The method for controlling the automatic storage and rollback of automobile programs according to claim 1, characterized in that: Executing program storage so that the storage module stores programs of various control elements that can support the normal operation of the automobile includes: when the automobile functions normally after replacing the control element of the automobile or changing the configuration program of the control element, executing program label modification to modify the program label of the modified control element in the program list to the program label of the program equipped with the modified control element, and configuring the storage indication mark of the modified control element in the program list to not stored; and then executing program storage to store the program of the modified control element.
9. An automatic storage and rollback device for automobile programs, characterized in that: include: A program management MCU that is communicatively connected to a gateway MCU in a gateway controller of the vehicle, wherein the program management MCU is electrically connected to a storage module; The storage module stores at least one instruction, and the program management MCU reads and executes the instruction to implement the automobile program automatic storage rollback control method as described in any one of claims 1-8.
10. A storage medium for implementing an automatic storage rollback control method for an automobile program, characterized in that: The storage medium for implementing the method for automatically storing and rolling back a vehicle program stores at least one instruction, and reading and executing the instruction implements the method for automatically storing and rolling back a vehicle program as described in claims 1-8.
