Back-off method and back-off device
By using the unified diagnostic service or the partition method of communication messages in the dual-partition system of the controller, the function of rolling back from the new version of the software to the old version is realized, which solves the problem of being unable to proactively roll back after the controller software is upgraded, and improves improve the stability and reliability of the system.
Patent Information
- Application Number
- CN202411205841.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology cannot actively roll back after the controller software is successfully upgraded, resulting in insufficient system stability and reliability, and cannot effectively solve compatibility issues and functional failures.
In the dual-partition system of the controller, the active area and the inactive area are switched based on the unified diagnostic service or communication message, thereby rolling back the software from the new version to the old version to ensure the stable operation of the system. .
It realizes active rollback after the controller software is successfully upgraded, improves the stability and reliability of the system, makes up for the shortcomings of the existing technology, and ensures the compatibility and security of the software.
Smart Images

Figure CN118708237A
Abstract
Description
Technical Field
[0001] The present application relates to but is not limited to the field of software rollback, and in particular to a rollback method and a rollback device. Background Art
[0002] With the rapid development of software technology, software needs to be constantly updated and upgraded to fix vulnerabilities, add features, and improve performance. However, after a new version of software is successfully upgraded, compatibility issues or functional failures may occur. In this case, the new version of software needs to be rolled back to the stable and reliable old version of software to ensure normal operation.
[0003] In the related art, the software rollback strategy of the controller is usually a passive rollback mechanism, which can only perform passive rollback when the controller software upgrade fails, and cannot achieve active rollback after the controller software upgrade is successful. Summary of the invention
[0004] In view of this, embodiments of the present application provide a rollback method and a rollback device.
[0005] The technical solution of this application is implemented as follows: In the first aspect, an embodiment of the present application provides a rollback method, which is applied to a host computer, including: after a first version program of a target application is successfully flashed to a dual-partition system of a controller, detecting a working state of the controller; wherein the dual-partition system includes an activation area and an inactivation area; the first version program runs in the activation area, and the inactivation area stores a second version program of the target application; in the event that an abnormality occurs in the working state of the controller, controlling the controller to switch between the activation area and the inactivation area based on a target area switching method; wherein the target area switching method is one of a service area switching method and a message area switching method; the service area switching method is a area switching method based on a unified diagnostic service; the message area switching method is a area switching method based on a communication message; after a successful switch, the target application is rolled back from the first version program to the second version program.
[0006] In the embodiment of the present application, when the working state of the controller is abnormal after the first version of the program is successfully flashed to the dual partition system of the controller, by selecting a unified diagnostic service-based or communication message-based zone switching method to control the controller to switch between the active area and the inactive area, the first version of the program can be actively rolled back to the second version of the program after the controller software is successfully upgraded. In this way, it can not only make up for the technical gap that the prior art cannot actively roll back after the controller software is successfully upgraded, but also take into account the rollback efficiency and security of the controller software, and improve the stability and reliability of the system.
[0007] In some embodiments, the service area switching method includes a first service area switching method and a second service area switching method, the first service area switching method is a area switching method based on a unified diagnostic service of an application, and the second service area switching method is a area switching method based on a unified diagnostic service of a boot program; based on the target area switching method, the controller is controlled to switch between the activated area and the deactivated area, including: when the working status of the unified diagnostic service of the application is normal, the controller is controlled to switch between the activated area and the deactivated area based on the first service area switching method; when the working status of the unified diagnostic service of the application is abnormal, the controller is controlled to switch between the activated area and the deactivated area based on the second service area switching method.
[0008] In the embodiment of the present application, by determining the working state of the unified diagnostic service of the application, it is possible to select one of the unified diagnostic service of the application and the unified diagnostic service of the boot program to trigger the controller's zone switching operation according to the different working states of the unified diagnostic service of the application, thereby completing the rollback of the controller software. In this way, by selecting a feasible unified diagnostic service according to different operating system running stages, it is possible to effectively improve the adaptability and flexibility of the controller's zone switching operation triggered by the unified diagnostic service, and meet the rollback requirements in different rollback scenarios.
[0009] In some embodiments, the message zone switching method includes a first message zone switching method and a second message zone switching method, the first message zone switching method is a zone switching method based on a first communication message of the controller, and the first communication message is a controller area network CAN message; the second message zone switching method is a zone switching method based on a second communication message of the controller, and the second communication message is a universal calibration protocol XCP message; based on the target zone switching method, the controller is controlled to switch between the activated area and the deactivated area, including: when the working state of the first communication message of the controller is normal, the controller is controlled to switch between the activated area and the deactivated area based on the first message zone switching method; when the working state of the first communication message of the controller is abnormal, the controller is controlled to switch between the activated area and the deactivated area based on the second message zone switching method.
[0010] In the embodiment of the present application, by determining the working state of the first communication message of the controller, it is possible to select one of the first communication message of the controller and the second communication message of the controller to trigger the controller's zone switching operation according to the different working states of the first communication message of the controller, thereby completing the rollback of the controller software. In this way, by selecting a convenient and feasible communication message type according to the receiving and sending states of different communication messages, the adaptability and flexibility of the controller's zone switching operation triggered by the communication message can be effectively improved, and the rollback requirements in different rollback scenarios can be met.
[0011] In some embodiments, controlling a controller to switch between activated areas and inactivated areas based on a first service area switching method includes: sending an area switching diagnosis request to the controller; wherein the area switching diagnosis request is used to enable the controller to call an area switching diagnosis routine to perform area switching diagnosis; the area switching diagnosis routine is used to perform an area switching condition check and identity security verification on the controller; when the area switching diagnosis result sent by the controller is passed, sending an area switching execution request to the controller to enable the controller to call the area switching execution routine to switch between activated areas and inactivated areas.
[0012] In the embodiment of the present application, by pre-configuring the zone switching diagnosis routine, the zone switching diagnosis routine can be used to perform a comprehensive and accurate pre-zone switching inspection on the controller, discover potential problems and risks in advance, and provide accurate evaluation and decision-making basis for subsequent zone switching operations; by pre-configuring the zone switching execution routine, the zone switching execution routine can be used to perform the zone switching operation according to preset rules and steps, thereby minimizing the time delay and resource consumption during the switching process. In this way, the efficiency, stability and security of the zone switching process can be improved, and the successful execution of the zone switching operation can be ensured.
[0013] In some embodiments, controlling the controller to switch between activated areas and inactivated areas based on a second service area switching mode includes: turning on a target function of the controller; the target function is used to keep the controller in a boot program running stage; in response to successful turning on of the target function, controlling the controller to switch between activated areas and inactivated areas based on the second service area switching mode.
[0014] In the embodiment of the present application, by enabling the target function of the controller and keeping the controller in the boot program running stage, the controller switching operation can be triggered based on the unified diagnostic service of the boot program during the boot program stage. In this way, when the working state of the unified diagnostic service of the application is abnormal, the controller switching operation can still be triggered based on the unified diagnostic service, which can meet the fallback requirements in different fallback scenarios while taking into account the fallback efficiency and security of the controller software.
[0015] In some embodiments, controlling a controller to switch between an activated area and an inactivated area based on a first message switching method includes: sending a unique sequence value acquisition request to the controller; the unique sequence value acquisition request is used to request the controller to return a unique sequence value of the controller; encrypting a target CAN message based on the unique sequence value; sending the encrypted target CAN message to the controller, so that the controller switches between the activated area and the inactivated area in response to the encrypted target CAN message.
[0016] In the embodiment of the present application, by obtaining the unique sequence value of the controller, the target CAN message can be encrypted and transmitted based on the unique sequence value of the controller, so that the controller switches the activation area and the inactivation area in response to the encrypted target CAN message. In this way, by using the target CAN message to bind the zone switching operation, the triggering method of the zone switching operation can be made more flexible and easy to implement, which helps to improve the universality and diversity of the triggering method of the zone switching operation, and can also reduce the risk of the target CAN message being illegally intercepted and cracked, and improve the security and confidentiality of triggering the zone switching operation based on the communication message.
[0017] In some embodiments, the fallback method also includes: obtaining reference priority information; the reference priority information is used to characterize the priority between the service area switching mode and the message area switching mode; when the reference priority information characterizes that the service area switching mode takes precedence over the message area switching mode, the service area switching mode is determined as the target area switching mode; when the reference priority information characterizes that the message area switching mode takes precedence over the service area switching mode, the message area switching mode is determined as the target area switching mode.
[0018] In the embodiment of the present application, by obtaining reference priority information, the target area switching mode of the controller can be determined in the service area switching mode and the message area switching mode according to the different priorities between the service area switching mode and the message area switching mode. In this way, the triggering mode of the area switching operation can be made more reasonable and efficient, ensuring that the area switching operation can be triggered in the best way in different usage scenarios.
[0019] In some embodiments, before obtaining the reference priority information, the fallback method also includes: respectively determining the feasibility scores of the service area switching method and the message area switching method to obtain a first feasibility score and a second feasibility score; the feasibility score is determined based on the safety level and complexity level when executing at least one area switching step included in the area switching method; when the first feasibility score is greater than or equal to the second feasibility score, determining the reference priority information to be that the service area switching method takes precedence over the message area switching method; when the first feasibility score is less than the second feasibility score, determining the reference priority information to be that the message area switching method takes precedence over the service area switching method.
[0020] In the embodiment of the present application, by determining the first feasibility score and the second feasibility score of the service area switching mode and the message area switching mode based on the safety level and complexity level when executing at least one area switching step included in the area switching mode, it is possible to determine the different priorities between the service area switching mode and the message area switching mode according to the size relationship between the first feasibility score and the second feasibility score. In this way, by conducting a scientific, reasonable, systematic and comprehensive feasibility evaluation on the service area switching mode and the message area switching mode, the accuracy and rationality of the reference priority information finally obtained can be improved, and a clear basis can be provided for the controller to select the most appropriate area switching mode, ensuring that the system can complete the area switching operation conveniently and safely under various circumstances.
[0021] In the second aspect, an embodiment of the present application provides another rollback method, which is applied to a controller, including: receiving a rollback request sent by a host computer; the rollback request is sent when an abnormal working state of the controller occurs after the first version program of the target application is successfully flashed to the dual partition system of the controller, and the dual partition system includes an activation area and an inactive area; the first version program runs in the activation area, and the inactive area stores the second version program of the target application; the rollback request carries a target area switching mode of the controller; the target area switching mode is one of a service area switching mode and a message area switching mode; the service area switching mode is a area switching mode based on a unified diagnostic service; the message area switching mode is a area switching mode based on a communication message; interacting with the host computer based on the target area switching mode, and switching the activation area and the inactive area; performing a restart operation after the switch is successful, so that the controller starts based on the second version of the program.
[0022] In the embodiment of the present application, by receiving the rollback request sent by the host computer, it is possible to realize that when the working state of the controller is abnormal after the first version program is successfully flashed to the dual partition system of the controller, the active area and the inactive area of the dual partition system of the controller are switched based on the unified diagnostic service or the communication message, thereby realizing the active rollback of the first version program to the second version program after the controller software is successfully upgraded. In this way, it can not only make up for the technical gap that the prior art cannot actively roll back after the controller software is successfully upgraded, but also take into account the rollback efficiency and security of the controller software, and improve the stability and reliability of the system.
[0023] In a third aspect, an embodiment of the present application provides a rollback device, which is deployed on a host computer and includes: A detection unit, configured to detect a working state of the controller after the first version of the target application is successfully flashed to the dual partition system of the controller; wherein the dual partition system includes an active area and an inactive area; the first version of the program runs in the active area, and the second version of the target application is stored in the inactive area; A control unit, used for controlling the controller to switch between the activated area and the inactivated area based on a target area switching mode when an abnormality occurs in the working state of the controller; wherein the target area switching mode is one of a service area switching mode and a message area switching mode; the service area switching mode is an area switching mode based on a unified diagnostic service; and the message area switching mode is an area switching mode based on a communication message; The rollback unit is used to roll back the target application from the first version program to the second version program after the switch is successful.
[0024] In a fourth aspect, an embodiment of the present application provides another rollback device, which is deployed in a controller and includes: A receiving unit, used for receiving a rollback request sent by a host computer; the rollback request is sent when an abnormal working state of the controller occurs after the first version of the target application program is successfully flashed to the dual partition system of the controller, and the dual partition system includes an activation area and an inactive area; the first version of the program runs in the activation area, and the inactive area stores the second version of the target application program; the rollback request carries a target area switching mode of the controller; the target area switching mode is one of a service area switching mode and a message area switching mode; the service area switching mode is an area switching mode based on a unified diagnostic service; the message area switching mode is an area switching mode based on a communication message; A switching unit, used to interact with the host computer based on the target area switching mode and switch the active area and the inactive area; The restart unit is used to perform a restart operation after the switching is successful, so that the controller starts based on the second version of the program.
[0025] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein a computer program or instructions are stored in the memory, and when the computer program or instructions are executed by the processor, the fallback method provided in the first or second aspect above is implemented.
[0026] In a sixth aspect, an embodiment of the present application provides a storage medium having a computer program or instruction stored thereon, and when the computer program or instruction is executed by a processor, the rollback method provided in the first aspect or the second aspect is implemented.
[0027] In a seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, the rollback method provided in the first or second aspect above is implemented.
[0028] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0030] Figure 1 A schematic diagram of a first optional flow chart of a rollback method provided in an embodiment of the present application; Figure 2 A second optional flow chart of the rollback method provided in the embodiment of the present application; Figure 3 A third optional flow chart of the rollback method provided in the embodiment of the present application; Figure 4 A fourth optional flow chart of the rollback method provided in the embodiment of the present application; Figure 5 A fifth optional flow chart of the rollback method provided in the embodiment of the present application; Figure 6 A sixth optional flow chart of the rollback method provided in the embodiment of the present application; Figure 7 A seventh optional flow chart of the rollback method provided in the embodiment of the present application; Figure 8 An eighth optional flowchart of the rollback method provided in the embodiment of the present application; Fig. 9 A schematic diagram of an optional flow chart of another fallback method provided in the related art; Fig.10 An optional schematic diagram of partition management in the fallback method provided in an embodiment of the present application; Fig.11 A schematic diagram of an optional first service area switching method in the fallback method provided in an embodiment of the present application; Fig.12 A first optional schematic diagram of a first message zone switching method in the fallback method provided in an embodiment of the present application; Fig.13 A second optional schematic diagram of the first message area switching method in the fallback method provided in an embodiment of the present application; Fig.14 An optional schematic diagram of a second message switching area in the fallback method provided in an embodiment of the present application; Fig.15 A schematic diagram of an optional structure of a retraction device provided in an embodiment of the present application; Fig.16 A schematic diagram of an optional structure of another retraction device provided in an embodiment of the present application; Fig.17 An optional structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0032] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in this application are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0033] In the following description, reference is made to “some embodiments”, “this embodiment”, “embodiments of the present application” and examples, etc., which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0034] If similar descriptions of "first / second" appear in the application documents, the following explanation is added. In the following description, the terms "first / second / third" involved are merely to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first / second / third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0035] The embodiments of the present application provide a fallback method, a fallback device, a device, a storage medium, and a computer program product. In practical applications, the fallback method can be implemented by the fallback device, and each functional entity in the fallback device can be collaboratively implemented by hardware resources of the electronic device, such as computing resources such as a processor, and communication resources (such as for supporting various communication methods such as optical cables and cellular).
[0036] The following describes various embodiments of the rollback method, rollback device, equipment, storage medium, and computer program product provided in the embodiments of the present application.
[0037] The embodiment of the present application provides a rollback method. The function implemented by the method can be implemented by calling program code by a processor in an electronic device, and of course the program code can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium.
[0038] Below, a rollback method provided in an embodiment of the present application is described.
[0039] The rollback method provided in the embodiment of the present application is applied to a host computer.
[0040] refer to Figure 1 As shown in the content, the process may include but is not limited to the following S101 to S103.
[0041] S101 . After a first version of a target application program is successfully written to a dual partition system of a controller, a working status of the controller is detected.
[0042] The dual partition system includes an active area and an inactive area; a first version program runs in the active area, and a second version program of a target application is stored in the inactive area.
[0043] Here, the embodiment of the present application does not limit the specific type of the controller, and can be set according to actual conditions. For example, the controller can be a vehicle controller, an IoT device controller, a smart home system controller, etc.
[0044] The target application may be any program running on the controller. The specific type and number of the target application are not limited in the embodiment of the present application, and can be set according to the actual situation. For example, the target application may be a boot program running on the controller, or any application running on the controller, or may include both of the above.
[0045] It can be understood that the bootloader refers to the program that runs first when the operating system starts, which is used to complete the system initialization and prepare for the application program to run. System initialization can include detecting whether the hardware equipment is normal, establishing a basic operating environment, loading necessary system configuration information, etc.; preparing for the application program to run can include loading necessary drivers, allocating memory space for the application, configuring the application's access rights and encryption mechanism, etc. An application program refers to a program that runs on the operating system and is used to perform specific tasks or provide specific functions. The application program running on the vehicle controller can be used to implement the vehicle's assisted driving function, intelligent cockpit adjustment function, infotainment function, etc.
[0046] The first version program may be a new version program of the target application, and the second version program may be an old version program of the target application.
[0047] In actual applications, the dual partition system of the controller can include active areas and inactive areas according to different functional purposes. The active area refers to the area currently in use or in an active state, where the stored programs or data are being executed or accessed by the central processing unit (CPU), and is usually used to store and run new versions of programs; the inactive area refers to the area that is not currently in use or in an inactive state. The inactive area is not directly executed or accessed by the CPU, and can be used to store backup programs, backup data, or as a target area for upgrades and switching, and is usually used to store old versions of programs.
[0048] Here, the abnormal working state of the controller may include but is not limited to the following situations: system crash or freeze problems (such as the controller frequently restarts and cannot enter the normal working mode), functional failure problems (such as specific functions of related applications cannot be executed normally), compatibility problems (such as conflicts with other installed software or hardware), data errors or loss problems (such as configuration information in the controller is incorrectly modified or cleared), communication failure problems (such as inability to exchange data with other devices), performance degradation problems (such as a longer response time for a certain operation), abnormal error problems (such as frequent pop-up error prompts or warning messages), etc.
[0049] Exemplarily, the controller is pre-configured with a working status field for recording the working status of the controller. When the controller works normally, the field is assigned a value of "0". When the controller has problems such as system crash or freeze, functional failure, compatibility, data error or loss, communication failure, performance degradation, abnormal error, etc., the field is assigned a value of "1". Correspondingly, S101 can be implemented as follows: after the first version of the target application program is successfully flashed to the dual partition system of the controller, read the working status field of the controller; if the value of the field is "0", it is determined that the working status of the controller is normal; if the value of the field is "1", it is determined that the working status of the controller is abnormal.
[0050] S102: When the working state of the controller is abnormal, the controller is controlled to switch the active area and the inactive area based on the target area switching method.
[0051] The target switching mode is one of a service switching mode and a message switching mode; the service switching mode is a switching mode based on a unified diagnosis service; the message switching mode is a switching mode based on a communication message.
[0052] Here, the target area switching mode refers to a mode of triggering an area switching operation of the controller when the first version of the target application is rolled back to the second version after the target application is successfully upgraded. It can be understood that the area switching operation refers to an operation of switching between an active area and an inactive area.
[0053] In actual applications, since the active area is used to store and run the new version of the program, and the inactive area is used to store the old version of the program, the new version of the program can be rolled back to the old version of the program by partitioning the active area and the inactive area (i.e., switching the area).
[0054] It should be noted that the methods for triggering the controller's zone switching operation are different at different stages. For example, when the controller software upgrade fails, since the software upgrade code usually predefines the fallback conditions and fallback steps when the upgrade fails, the controller's zone switching operation can be triggered based on the software upgrade program code when the controller software upgrade fails.
[0055] The service zone switching method refers to the method of triggering the controller zone switching operation based on the unified diagnostic service. Unified Diagnostic Services (UDS) is a set of standardized diagnostic communication protocols, and its main applications include diagnosis / communication management, data processing, fault information reading, online programming, and function / component testing. UDS adopts a request / response communication method, which is standardized, feature-rich, and highly secure, and can provide comprehensive diagnostic services for electronic control units (such as controllers).
[0056] The message switching mode refers to a mode of triggering the controller's switching operation based on the communication message. The communication message refers to the message used when the controller communicates with other devices or modules. The embodiment of the present application does not limit the specific type and number of communication messages, which can be set according to actual conditions.
[0057] Here, the embodiment of the present application does not limit the specific method for determining the target area switching mode in the service area switching mode and the message area switching mode, and can be set according to the actual situation. For example, the target area switching mode can be determined in the service area switching mode and the message area switching mode by comprehensively considering and analyzing the working status of the unified diagnostic service, the working status of the communication message, and the priority between the service area switching mode and the message area switching mode.
[0058] In practical applications, the priority information between the service switching mode and the message switching mode can be determined in advance through human experience or a specific algorithm or a specific model. In this way, when the controller software needs to be rolled back later, the target switching mode of the controller can be directly determined according to the priority information, and the controller can be controlled to perform the switching operation based on the target switching mode, thereby completing the rollback of the controller software.
[0059] In a possible implementation, S102 may be implemented as follows: when the working state of the controller is abnormal, triggering a zone switching operation of the controller based on a unified diagnostic service, so that the controller switches between an active area and an inactive area.
[0060] In another possible implementation, S102 may be implemented as follows: when the working state of the controller is abnormal, triggering a zone switching operation of the controller based on a communication message, so that the controller switches between the active area and the inactive area.
[0061] S103: After the switch is successful, the target application is rolled back from the first version program to the second version program.
[0062] Here, after the active area and the inactive area are successfully switched, the dual partition system of the controller needs to be started from the active area to complete the rollback of the target application from the first version program to the second version program.
[0063] Exemplarily, S103 may be implemented as: restarting the dual partition system of the controller; when restarting, the dual partition system of the controller identifies and loads the second version of the program to start.
[0064] It can be understood that by restarting the dual partition system of the controller, the restart operation can clear the configuration and changes written by the first version of the program, ensuring that the system can be loaded and run according to the second version of the program.
[0065] In the embodiment of the present application, when the working state of the controller is abnormal after the first version of the program is successfully flashed to the dual partition system of the controller, by selecting a unified diagnostic service-based or communication message-based zone switching method to control the controller to switch between the active area and the inactive area, the first version of the program can be actively rolled back to the second version of the program after the controller software is successfully upgraded. In this way, it can not only make up for the technical gap that the prior art cannot actively roll back after the controller software is successfully upgraded, but also take into account the rollback efficiency and security of the controller software, and improve the stability and reliability of the system.
[0066] Next, the process of controlling the controller to switch the active area and the inactive area based on the target area switching mode in S102 is described. The process may include the following case 1 and case 2.
[0067] Case 1: The target area switching method is the service area switching method.
[0068] Case 2: The target area switching method is the message area switching method.
[0069] Next, the process of controlling the controller to switch the active area and the inactive area based on the target area switching mode in the first situation is described.
[0070] The service area switching method includes a first service area switching method and a second service area switching method. The first service area switching method is a area switching method based on a unified diagnostic service of an application program, and the second service area switching method is a area switching method based on a unified diagnostic service of a boot program.
[0071] The first service zone switching method refers to a method of triggering a zone switching operation of the controller based on a unified diagnostic service of an application program.
[0072] The second service zone switching method refers to a method of triggering a zone switching operation of the controller based on a unified diagnostic service of a boot program.
[0073] Here, since unified diagnostic services are configured in both the application and the boot program, it is necessary to further select one of the unified diagnostic services of the application and the unified diagnostic services of the boot program to trigger the controller's zone switching operation, thereby completing the rollback of the controller software.
[0074] It is understandable that since the application and boot program have different functions and operating environments, unified diagnostic services are configured in both the application and the boot program. The unified diagnostic service of the application can timely discover and solve functional anomalies, performance bottlenecks, compatibility conflicts and other problems that occur during the operation of the application, ensuring that users can use the various services provided by the application in a stable and efficient manner; the unified diagnostic service of the boot program can detect the initial status of the hardware device, verify the correctness of the system configuration, prevent potential startup failures and security risks, and ensure the smooth operation of the system during the startup phase.
[0075] It should be noted that the zone switching method based on the unified diagnostic service of the boot program can only be executed when the controller's operating system is running in the boot program stage; the zone switching method based on the unified diagnostic service of the application program can only be executed when the controller's operating system is running in the application program stage.
[0076] refer to Figure 2 As shown in the content, the process may include but is not limited to the following S201 and S202.
[0077] S201: When the working state of the unified diagnostic service of the application is normal, control a controller to switch between an active area and an inactive area based on a first service area switching mode.
[0078] S202: When the working state of the unified diagnostic service of the application is abnormal, control the controller to switch the active area and the inactive area based on the second service area switching mode.
[0079] Here, when the working status of the unified diagnostic service of the application is normal, the zone switching method based on the unified diagnostic service of the application can be directly used to perform the zone switching operation, without performing other additional operations to find other feasible zone switching methods. The implementation plan is simple, efficient and not prone to errors. When the working status of the unified diagnostic service of the application is abnormal, the zone switching method based on the unified diagnostic service of the application cannot be implemented normally. At this time, the controller can be allowed to work in the boot program stage, and the zone switching method based on the unified diagnostic service of the boot program can be used to perform the zone switching operation. In this way, the switching of activated areas and inactive areas based on the unified diagnostic service can also be realized.
[0080] In actual applications, the host computer can send a detection request to the controller to detect the working status of the unified diagnostic service of the application; the controller responds to the detection request, detects the working status of the unified diagnostic service of the application, and returns the detection result; the host computer receives and parses the detection result to obtain the working status of the unified diagnostic service of the application.
[0081] Exemplarily, S201 and S202 can be implemented as follows: when the working status of the unified diagnostic service of the application is normal, the zone switching operation of the controller is triggered based on the unified diagnostic service of the application; the controller switches the activated area and the inactive area; when the working status of the unified diagnostic service of the application is abnormal, the zone switching operation of the controller is triggered based on the unified diagnostic service of the boot program; the controller switches the activated area and the inactive area.
[0082] In the embodiment of the present application, by determining the working state of the unified diagnostic service of the application, it is possible to select one of the unified diagnostic service of the application and the unified diagnostic service of the boot program to trigger the controller's zone switching operation according to the different working states of the unified diagnostic service of the application, thereby completing the rollback of the controller software. In this way, by selecting a convenient and feasible unified diagnostic service according to different operating system operation stages, the adaptability and flexibility of the controller's zone switching operation triggered by the unified diagnostic service can be effectively improved, and the rollback requirements in different rollback scenarios can be met.
[0083] Next, the process of controlling the controller to switch the active area and the inactive area based on the target area switching mode in the second situation is described.
[0084] The message zone cutting method includes a first message zone cutting method and a second message zone cutting method. The first message zone cutting method is a zone cutting method based on a first communication message of the controller, and the first communication message is a controller area network CAN message; the second message zone cutting method is a zone cutting method based on a second communication message of the controller, and the second communication message is a universal calibration protocol XCP message.
[0085] The first message zone switching method refers to a method of triggering a zone switching operation of the controller based on a first communication message of the controller.
[0086] The second message zone switching method refers to a method of triggering a zone switching operation of the controller based on the second communication message of the controller.
[0087] Here, since the controller may communicate with other devices or modules using a variety of different communication messages, it is necessary to further select one of the multiple different communication messages to trigger the controller's zone switching operation, thereby completing the rollback of the controller software.
[0088] It is understandable that since the controller needs to transmit different data with different types of devices or modules, the controller and other devices or modules may use a variety of different communication messages to communicate, and these multiple different communication messages are transmitted in parallel and do not interfere with each other. Among them, CAN messages are the most common and widely used communication message type. Since the controller and other devices or modules may use a variety of different communication messages to communicate, two of the most representative communication messages are selected to bind the zone cutting action. In actual applications, other communication message types can also be used to bind the zone cutting action. Other communication message types can refer to the implementation process and will not be listed here one by one.
[0089] It should be noted that the zone switching method based on the first communication message of the controller can only be executed when the first communication message of the controller is sent and received normally; the zone switching method based on the second communication message of the controller can only be executed when the second communication message of the controller is sent and received normally.
[0090] refer to Figure 3 As shown in the content, the process may include but is not limited to the following S301 and S302.
[0091] S301: When the working state of the first communication message of the controller is normal, control the controller to switch the active area and the inactive area based on the first message area switching mode.
[0092] S302: When the working state of the first communication message of the controller is abnormal, control the controller to switch the active area and the inactive area based on the second message area switching method.
[0093] Here, since CAN messages are the most common and widely used type of communication messages, when the working state of the first communication message of the controller is normal, the zone switching method based on the first communication message of the controller can be directly used to perform the zone switching operation without having to find other feasible zone switching methods. The implementation scheme is simple, efficient and error-prone. When the working state of the first communication message of the controller is abnormal, the zone switching method based on the first communication message of the controller cannot be implemented normally. At this time, considering the applicable scope of the XCP message, the zone switching method based on the XCP message of the controller can be used to perform the zone switching operation. In this way, the switching of the activated area and the inactivated area based on the communication message can also be realized.
[0094] In actual applications, the host computer can send a detection request to the controller to detect the working status of the first communication message of the controller; the controller responds to the detection request, detects the working status of the first communication message of the controller, and returns the detection result; the host computer receives and parses the detection result to obtain the working status of the first communication message.
[0095] Exemplarily, S301 may be implemented as follows: when the working state of the first communication message of the controller is normal, triggering a zone switching operation of the controller based on the first communication message of the controller, so that the controller switches the active area and the inactive area.
[0096] Here, the controller's zone switching operation is triggered based on the controller's first communication message, so that the controller switches the active area and the inactive area. This can be implemented as follows: the host computer sends a target CAN message to the controller, so that the controller responds to the target CAN message and switches the active area and the inactive area. Among them, the target CAN message refers to a message used to indicate the switching between the active area and the inactive area. In actual applications, a specific CAN message can be used to bind the zone switching operation, and the controller can perform the zone switching operation after receiving the specific CAN message.
[0097] Exemplarily, S302 may be implemented as follows: when the working state of the first communication message of the controller is abnormal, triggering the area switching operation of the controller based on the second communication message of the controller, so that the controller switches the active area and the inactive area.
[0098] Here, based on the second communication message of the controller to trigger the zone switching operation of the controller, so that the controller switches the active area and the inactive area, it can be implemented as follows: the host computer sends a target XCP message to the controller, so that the controller responds to the target XCP message and switches the active area and the inactive area. Among them, the target XCP message refers to a message used to indicate the switching of the active area and the inactive area. In actual applications, a specific XCP message can be used to bind the zone switching operation, and the controller can perform the zone switching operation after receiving the specific XCP message.
[0099] In the embodiment of the present application, by determining the working state of the first communication message of the controller, it is possible to select one of the first communication message of the controller and the second communication message of the controller to trigger the controller's zone switching operation according to the different working states of the first communication message of the controller, thereby completing the rollback of the controller software. In this way, by selecting a convenient and feasible communication message type according to the receiving and sending states of different communication messages, the adaptability and flexibility of the controller's zone switching operation triggered by the communication message can be effectively improved, and the rollback requirements in different rollback scenarios can be met.
[0100] Next, the process of controlling the controller to switch the active area and the inactive area based on the first service area switching mode in S201 is described.
[0101] refer to Figure 4 The method may include but is not limited to the following S401 and S402.
[0102] S401, sending a zone switching diagnosis request to a controller; the zone switching diagnosis request is used to enable the controller to call a zone switching diagnosis routine to perform zone switching diagnosis; the zone switching diagnosis routine is used to perform zone switching condition check and identity security verification on the controller.
[0103] Here, the region switching diagnosis request refers to a request for instructing to perform region switching diagnosis on the controller. The specific type and content of the region switching diagnosis request are not limited in the embodiment of the present application and can be set according to actual conditions.
[0104] The area cutting diagnosis routine refers to a series of diagnosis and detection procedures that need to be executed before the area cutting operation, mainly including the area cutting condition check and identity security verification. The embodiment of the application does not limit the specific content and writing language of the area cutting diagnosis routine, which can be set according to actual conditions.
[0105] The zone cutting condition check is used to check whether the controller currently meets the zone cutting conditions, which may include resource availability check, hardware status check, system environment check, data integrity check, etc. The identity security check is used to verify the identity information of the participants to ensure authenticity and legality, which may include permission check, certificate verification, etc. The embodiments of the present application do not limit the specific content and implementation steps of the zone cutting condition check and identity security check, which can be set according to actual conditions.
[0106] It should be noted that before the host computer sends a zone switching diagnosis request to the controller, the controller needs to enter the Over-the-Air Technology (OTA) session mode first. Only in the OTA session mode can the host computer interact with the controller related to zone switching. For example, since UDS adopts a request / response communication method, the host computer can send an OTA session entry request to the controller. After the controller enters the OTA session mode, it returns a positive response to the host computer that it has successfully entered the OTA session.
[0107] Exemplarily, S401 may be implemented as follows: the host computer sends a zone cutting diagnosis request to the controller; the controller receives and responds to the zone cutting diagnosis request, calls the zone cutting diagnosis routine to perform zone cutting diagnosis on the controller, and after the zone cutting diagnosis is complete, obtains and returns the zone cutting diagnosis result to the host computer.
[0108] S402: When the zone switching diagnosis result sent by the controller is passed, a zone switching execution request is sent to the controller, so that the controller calls a zone switching execution routine to switch the active area and the inactive area.
[0109] Here, the region switching execution request refers to a request for instructing the controller to execute a region switching operation. The specific type and content of the region switching execution request are not limited in the embodiment of the present application and can be set according to actual conditions.
[0110] The area cutting execution routine refers to a series of programs and steps used to actually execute the area cutting operation. The embodiment of the present application does not limit the specific content and writing language of the area cutting diagnosis routine, which can be set according to actual conditions.
[0111] It should be noted that after the controller successfully performs the zone switching operation, the controller also needs to exit the OTA session mode. For example, the host computer can send an exit OTA session request to the controller, and after the controller exits the OTA session mode, it returns a positive response to the host computer indicating that the OTA session has been successfully exited.
[0112] Exemplarily, S402 may be implemented as follows: the host computer receives and determines whether the zone switching diagnosis result is passed, and if so, sends a zone switching execution request to the controller; the controller receives and responds to the zone switching execution request, and calls the zone switching execution routine to switch the active area and the inactive area.
[0113] In the embodiment of the present application, by pre-configuring the zone switching diagnosis routine, the zone switching diagnosis routine can be used to perform a comprehensive and accurate pre-zone switching inspection on the controller, discover potential problems and risks in advance, and provide accurate evaluation and decision-making basis for subsequent zone switching operations; by pre-configuring the zone switching execution routine, the zone switching execution routine can be used to perform the zone switching operation according to preset rules and steps, thereby minimizing the time delay and resource consumption during the switching process. In this way, the efficiency, stability and security of the zone switching process can be improved, and the successful execution of the zone switching operation can be ensured.
[0114] Next, the process of controlling the controller to switch the active area and the inactive area based on the second service area switching mode in S202 is described.
[0115] refer to Figure 5 The method may include but is not limited to the following S501 and S502.
[0116] S501, start the target function of the controller; the target function is used to keep the controller in the boot program running stage.
[0117] Here, the target function refers to a function of keeping a device or system in a startup state without entering a normal operation mode. For example, the target function may be a boot program maintenance function of a controller, namely, a Stay In Boot function.
[0118] It is understandable that since the zone switching method based on the unified diagnostic service of the boot program can only be executed when the operating system of the controller is running in the boot program running stage, before executing the zone switching method based on the unified diagnostic service of the boot program, the controller needs to be kept in the boot program running stage.
[0119] Exemplarily, S501 can be implemented as follows: the host computer sends an activation request to the controller for activating the target function of the controller; the controller responds to the activation request, activates the target function of the controller, and returns the execution result; the host computer receives and parses the execution result to confirm whether the target function has been successfully activated.
[0120] S502: In response to successful activation of the target function, control the controller to switch the active area and the inactive area based on the second service switching mode.
[0121] It can be understood that since the first service area switching method and the second service area switching method both refer to methods of triggering the area switching operation of the controller based on the unified diagnostic service, the execution process and steps of the first service area switching method and the second service area switching method are the same. For details, please refer to the detailed descriptions in S401 and S402 above.
[0122] Exemplarily, S502 can be implemented as follows: in response to the successful activation of the target function, the host computer sends a zone cutting diagnosis request to the controller, so that the controller responds to the zone cutting diagnosis request, calls the zone cutting diagnosis routine to perform zone cutting diagnosis, and returns the zone cutting diagnosis result; the zone cutting diagnosis routine is used to check the zone cutting conditions and identity security of the controller; the zone cutting diagnosis result is received; and when the zone cutting diagnosis result is passed, a zone cutting execution request is sent to the controller, so that the controller calls the zone cutting execution routine to switch the activated area and the inactivated area.
[0123] In the embodiment of the present application, by enabling the target function of the controller and keeping the controller in the boot program running stage, the controller switching operation can be triggered based on the unified diagnostic service of the boot program during the boot program stage. In this way, when the working state of the unified diagnostic service of the application is abnormal, the controller switching operation can still be triggered based on the unified diagnostic service, which can meet the fallback requirements in different fallback scenarios while taking into account the fallback efficiency and security of the controller software.
[0124] Next, the process of controlling the controller to switch the active area and the inactive area based on the first message area switching mode in S301 is described.
[0125] refer to Figure 6 As shown in the content, the process may include but is not limited to the following S601 to S603.
[0126] S601. Send a unique sequence value acquisition request to a controller; the unique sequence value acquisition request is used to request the controller to return a unique sequence value of the controller.
[0127] Here, the unique sequence value acquisition request refers to a request for acquiring the unique sequence value of the controller. The specific type and content of the unique sequence value acquisition request are not limited in the embodiment of the present application and can be set according to actual conditions.
[0128] The unique sequence value of a controller refers to an identifier that is unique and deterministic and is assigned to the controller. The specific content of the unique sequence value of the controller is not limited in the embodiment of the present application, and can be set according to actual conditions. For example, the unique sequence value can be the device serial number of the controller, which is unique, deterministic, permanent, traceable, and secure.
[0129] Exemplarily, S601 may be implemented as follows: the host computer sends a unique sequence value acquisition request to the controller; the controller receives and responds to the unique sequence value acquisition request, acquires its own unique sequence value, and returns it to the host computer.
[0130] S602: Encrypt the target CAN message based on the unique sequence value.
[0131] Here, since the unique sequence value of the controller is unique, the target CAN message is encrypted based on the unique sequence value, which can ensure the transmission security and confidentiality of the target CAN message.
[0132] The embodiment of the present application does not limit the specific encryption method for encrypting the target CAN message based on the unique sequence value, and can be set according to the actual situation. For example, a symmetric encryption algorithm, an asymmetric encryption algorithm, etc. can be used.
[0133] Exemplarily, S602 may be implemented as follows: the host computer encrypts the target CAN message using a symmetric encryption algorithm based on the unique sequence value to obtain an encrypted target CAN message.
[0134] S603: Send the encrypted target CAN message to the controller, so that the controller switches the active area and the inactive area in response to the encrypted target CAN message.
[0135] Exemplarily, S603 may be implemented as follows: the host computer sends the encrypted target CAN message to the controller; the controller receives and responds to the encrypted target CAN message, and switches the active area and the inactive area.
[0136] In the embodiment of the present application, by obtaining the unique sequence value of the controller, the target CAN message can be encrypted and transmitted based on the unique sequence value of the controller, so that the controller switches the activation area and the inactivation area in response to the encrypted target CAN message. In this way, by using the target CAN message to bind the zone switching operation, the triggering method of the zone switching operation can be made more flexible and easy to implement, which helps to improve the universality and diversity of the triggering method of the zone switching operation, and can also reduce the risk of the target CAN message being illegally intercepted and cracked, and improve the security and confidentiality of triggering the zone switching operation based on the communication message.
[0137] The embodiment of the present application may further include a process of determining a target area switching method in a service area switching method and a message area switching method.
[0138] refer to Figure 7 As shown in the content, the process may include but is not limited to the following S701 to S703.
[0139] S701. Obtain reference priority information. The reference priority information is used to represent the priority between a service switching mode and a message switching mode.
[0140] The specific determination method of the reference priority information is not limited in the embodiment of the present application, and can be set according to actual conditions. For example, the priority between the service switching mode and the message switching mode can be determined by human experience or a specific algorithm or a specific model to obtain the reference priority information.
[0141] Exemplarily, the host computer stores reference priority information in advance, and the reference priority information is determined by human experience or a specific algorithm or a specific model. Correspondingly, S701 can be implemented as follows: the host computer obtains the reference priority information from the local computer.
[0142] S702: When the reference priority information indicates that the service switching mode has priority over the message switching mode, determine the service switching mode as the target switching mode.
[0143] Exemplarily, S702 may be implemented as follows: the host computer reads and parses the reference priority information; if the service switching mode takes precedence over the message switching mode, the service switching mode is determined as the target switching mode.
[0144] S703: When the reference priority information indicates that the message switching mode has priority over the service switching mode, determine the message switching mode as the target switching mode.
[0145] Exemplarily, S703 may be implemented as follows: the host computer reads and parses the reference priority information; if the message switching mode takes precedence over the service switching mode, the service switching mode is determined as the target switching mode.
[0146] In the embodiment of the present application, by obtaining reference priority information, the target area switching mode of the controller can be determined in the service area switching mode and the message area switching mode according to the different priorities between the service area switching mode and the message area switching mode. In this way, the triggering mode of the area switching operation can be made more reasonable and efficient, ensuring that the area switching can be performed in the optimal way in different usage scenarios, thereby improving the stability and adaptability of the system.
[0147] The embodiment of the present application may also include a process for determining reference priority information.
[0148] refer to Figure 8 As shown in the content, the process may include but is not limited to the following S801 to S803.
[0149] S801. Determine feasibility scores of a service switching method and a message switching method respectively, and obtain a first feasibility score and a second feasibility score.
[0150] The feasibility score is determined based on the safety level and complexity level when performing at least one zoning step included in the zoning method.
[0151] Here, the feasibility score refers to a quantitative indicator used to measure the feasibility of the zoning method, which is determined based on the safety and complexity of executing at least one zoning step included in the zoning method.
[0152] The embodiment of the present application does not limit the specific method for determining the feasibility score of the zoning method based on the safety level and complexity level when executing at least one zoning step included in the zoning method, and can be set according to actual conditions. Exemplarily, first, all zoning steps included in the zoning method are determined; second, the feasibility score of each zoning step is determined, specifically including: for each zoning step, the safety level and complexity level when executing the zoning step are evaluated and quantified through human experience or a specific algorithm or a specific model to obtain a safety level score and a complexity level score, and the sum of the safety level score and the complexity level score is determined as the feasibility score of the zoning step; finally, the feasibility scores of all zoning steps are weighted averaged according to the weight values of all zoning steps to obtain the feasibility score of the zoning method.
[0153] The first feasibility score and the second feasibility score refer to the feasibility scores of the service switching method and the message switching method respectively.
[0154] In practical applications, various factors can also be considered comprehensively, such as the difficulty of technical implementation, resource requirements, impact on system performance, risk level, etc., and the service switching method and message switching method can be evaluated through specific evaluation methods to obtain the first feasibility score and the second feasibility score, so as to intuitively reflect the feasibility of the two switching methods.
[0155] Exemplarily, S801 can be implemented as follows: evaluating and quantifying the safety level and complexity level when executing at least one of the switching steps included in the service switching method and the message switching method through human experience or a specific algorithm or a specific model, and obtaining a first feasibility score of the service switching method and a second feasibility score of the message switching method.
[0156] It should be noted that in order to ensure the correctness and fairness of the comparison between the service area switching method and the message area switching method, it is necessary to sample the same evaluation method to evaluate and quantify the security and complexity of executing at least one area switching step included in the service area switching method and the message area switching method.
[0157] S802: When the first feasibility score is greater than or equal to the second feasibility score, determine the reference priority information to indicate that the service switching mode takes precedence over the message switching mode.
[0158] S803: When the first feasibility score is less than the second feasibility score, determine the reference priority information to indicate that the message switching mode takes precedence over the service switching mode.
[0159] Exemplarily, S802 and S803 can be implemented as follows: determine the relationship between the first feasibility score and the second feasibility score; if greater than or equal to, determine that the reference priority information is that the service area switching method takes precedence over the message area switching method; if less than, determine that the reference priority information is that the message area switching method takes precedence over the service area switching method.
[0160] In the embodiment of the present application, by determining the first feasibility score and the second feasibility score of the service area switching mode and the message area switching mode based on the safety level and complexity level when executing at least one area switching step included in the area switching mode, it is possible to determine the different priorities between the service area switching mode and the message area switching mode according to the size relationship between the first feasibility score and the second feasibility score. In this way, by conducting a scientific, reasonable, systematic and comprehensive feasibility evaluation on the service area switching mode and the message area switching mode, the accuracy and rationality of the reference priority information finally obtained can be improved, and a clear basis can be provided for the controller to select the most appropriate area switching mode, ensuring that the system can complete the area switching operation conveniently and safely under various circumstances.
[0161] Next, another rollback method provided in an embodiment of the present application is described.
[0162] The rollback method provided in the embodiment of the present application is applied to a controller.
[0163] refer to Fig. 9 As shown in the content, the process may include but is not limited to the following S901 to S903.
[0164] S901. Receive a rollback request sent by a host computer.
[0165] A rollback request is sent when an abnormal working state of the controller occurs after the first version of the target application program is successfully flashed to the dual-partition system of the controller. The dual-partition system includes an activation area and an inactivation area. The first version of the program runs in the activation area, and the inactivation area stores the second version of the target application program. The rollback request carries the target zone switching mode of the controller. The target zone switching mode is one of the service zone switching mode and the message zone switching mode. The service zone switching mode is a zone switching mode based on a unified diagnostic service. The message zone switching mode is a zone switching mode based on a communication message.
[0166] Here, the rollback request refers to a request for instructing to roll back the controller software. The specific type and content of the rollback request are not limited in the embodiment of the present application and can be set according to actual conditions.
[0167] For the method of determining the rollback request, please refer to the detailed description of the rollback method on the host computer side, which will not be repeated here.
[0168] Exemplarily, S901 may be implemented as follows: the controller receives a rollback request sent by the host computer through a receiving module.
[0169] S902: interact with the host computer based on the target area switching method, and switch the activated area and the inactivated area.
[0170] In a possible implementation, S902 may be implemented as follows: when the target area switching mode is the service area switching mode, triggering an area switching operation of the controller based on a unified diagnostic service; and the controller switches the activated area and the inactivated area.
[0171] In another possible implementation, S902 may be implemented as follows: when the target area switching mode is the message area switching mode, triggering an area switching operation of the controller based on the communication message; and the controller switches the activated area and the inactivated area.
[0172] S903: After the switch is successful, a restart operation is performed to enable the controller to start based on the second version of the program.
[0173] Exemplarily, S903 may be implemented as follows: after the switch is successful, a restart operation is performed on the dual partition system of the controller; when the dual partition system of the controller is restarted, it identifies and loads the second version of the program to start.
[0174] In the embodiment of the present application, by receiving the rollback request sent by the host computer, it is possible to realize that when the working state of the controller is abnormal after the first version program is successfully flashed to the dual partition system of the controller, the active area and the inactive area of the dual partition system of the controller are switched based on the unified diagnostic service or the communication message, thereby realizing the active rollback of the first version program to the second version program after the controller software is successfully upgraded. In this way, it can not only make up for the technical gap that the prior art cannot actively roll back after the controller software is successfully upgraded, but also take into account the rollback efficiency and security of the controller software, and improve the stability and reliability of the system.
[0175] Below, the rollback method provided in the embodiment of the present application is explained through a complete embodiment.
[0176] At present, some vehicles on the market are equipped with chips that support partition switching (AB Swap). This redundant mechanism ensures that the existing vehicle segment always has two sets of programs. After updating to the new version of the software, there may be problems such as the new version of the software being incompatible with the existing vehicle segment or affecting another function. At this time, it is necessary to roll back the old version of the software. The current practice is to re-flash the previous version of the software, which is not only time-consuming, but also may cause the program to be flashed incorrectly, resulting in failure to roll back to the previous version normally. The existing solution does not make full use of the existing features of the old version and directly rolls back. The current rollback mechanism used by vehicle controllers is passive rollback. When the chip cannot complete the complete flashing process, it rolls back to the original regional software. This solution cannot achieve active rollback after the software is running after the flashing is completed.
[0177] After successfully updating to a new version of the software, there may be problems such as incompatibility between the new version of the software and the existing vehicle segment or software malfunctions. In this case, you need to roll back to the old version of the software. At this stage, the conventional practice is to find the previous version of the software that was flashed on the actual vehicle, and then re-flash the previous version of the software. This process requires manual intervention, and the old version of the software package is manually selected for flashing. Fig.10 In a controller supporting the partition exchange function, a non-volatile random access memory flash (NOR Flash) 100 is divided into an active area 1001 and an inactive area 1002. A new version of software 1003 (including a new version of application and a new version of boot program) is stored in the active area 1001, and an old version of software 1004 (including an old version of application and an old version of boot program) is stored in the inactive area 1002. After the upgrade is successful, if an error or failure occurs in the new version of software 1003, the old version of software 1004 needs to be manually rewritten.
[0178] Since the current rollback strategy is a passive rollback mechanism, it is impossible to implement active rollback after the software is running after the flash is completed. In view of this, the embodiment of the present application proposes a rollback method, which mainly uses the software functions that can be used normally in the successfully flashed software package for active rollback, such as the Unified Diagnostic Services (UDS) diagnostic function of the application, the Unified Diagnostic Services (UDS) diagnostic function of the boot program, the ordinary Controller Area Network (CAN) message function, the Universal Calibration Protocol (XCP) message function, and also adds a diagnostic process that complies with information security and uses encrypted messages for transmission.
[0179] The fallback method proposed in the embodiment of the present application mainly includes: first, based on the UDS diagnostic function of the application, a set of UDS diagnostic processes for switching partitions is performed, and the zone switching action is implemented in the diagnostic routine function interface of the zone switching; and, when the application startup is abnormal, the chip is always reset, and the UDS diagnosis cannot be performed, the boot mode stay function (STAY IN BOOT) integrated in the boot program can be used to make it stay in the boot program to perform the UDS diagnostic process for switching partitions; when the software cannot implement the UDS diagnostic function, the simplest ordinary CAN message can also be used for operation, that is, a specific CAN message is used to bind the zone switching action. The message can also be securely encrypted and sent through the controller unique value (barcode) to avoid being intercepted by abnormalities and the risk of information security leakage; when the above functions are all unavailable, a unique XCP message can be sent to identify the zone switching using the chip XCP driver.
[0180] Next, combine Fig.11 , describes a set of zone-cutting diagnostic processes based on the UDS diagnostic function in the application, and the specific steps for implementing zone-cutting actions in the zone-cutting diagnostic routine function interface. In this fallback mode, the data flow between the host computer and the vehicle is described in Fig.11 shown.
[0181] Step 1: Vehicle 1102 enters an Over-the-Air Technology (OTA) session. In this step, host computer 1101 sends an OTA session entry request "$10 60" to vehicle 1102. After vehicle 1102 enters the OTA session mode, it returns a positive response "$50 60 xxxxxxxx" indicating successful entry into the OTA session to host computer 1101. The specific service identifier can be set based on actual conditions.
[0182] Step 2: Vehicle 1102 checks program preconditions. In this step, host computer 1101 sends a request "$31 01 AFE3" to vehicle 1102 to check program preconditions. After vehicle 1102 checks program preconditions, it returns a positive response "$71 01 AEF3 00" indicating that the check is passed to host computer 1101.
[0183] Step 3: Vehicle 1102 performs identity authentication. In this step, the host computer 1101 sends an identity authentication request "$29 xx" to the vehicle 1102. After the vehicle 1102 performs identity authentication, it returns a positive response "$69 xx" indicating successful authentication to the host computer 1101. The specific service identifier can be set based on actual conditions.
[0184] Step 4: Vehicle 1102 executes the zone switching action. In this step, the host computer 1101 sends a zone switching action request "$31 01 AFE9" to the vehicle 1102. After the vehicle 1102 successfully executes the zone switching action, it returns a positive response "$71 01 AFE9 00" indicating the zone switching success to the host computer 1101. Fig.12 The vehicle 1102 calls the zone switching diagnostic routine function interface to implement the zone switching action, and performs partition exchange between the active zone 1001 and the inactive zone 1002. After the zone switching is successful, a switching success message is returned.
[0185] Step 5: Vehicle 1102 returns to the default session. In this step, the host computer 1101 sends a request "$ 10 01" to return to the default session to the vehicle 1102. After the vehicle 1102 returns to the default session mode, it returns a positive response "$ 50 10 xxxxxxxx" to the host computer 1101 indicating that the default session has been successfully entered. The specific service identifier can be set based on the actual situation.
[0186] When the application starts abnormally, the chip keeps resetting, and the UDS diagnosis cannot be performed, you can use the boot mode stay function (STAY IN BOOT) integrated in the boot program to keep it in the boot program to perform the UDS diagnosis process of the switch partition. For details, please refer to the detailed description of steps 1 to 5 above.
[0187] When the software cannot implement the UDS diagnostic function, you can also use the simplest common CAN message to operate, that is, use a specific CAN message to bind the zone switching action. Fig.12 In the controller supporting the partition exchange function, NORFlash 120 is divided into an inactive area 1201 and an active area 1202. The old version boot program 1203 and the old version application program 1204 are stored in the inactive area 1201, and the new version boot program 1205 and the new version application program 1206 are stored in the active area 1202. In this fallback mode, the data flow between the host computer and the vehicle is shown in Fig.12 As shown, when the vehicle 1102 receives a specific CAN message from the host computer 1101 for instructing to perform a rollback operation, the vehicle 1102 performs a zone switching action to switch the partitions of the inactive zone 1201 and the active zone 1202 .
[0188] The message can also be sent out after being securely encrypted by the unique value of the controller to avoid being intercepted by anomalies and the risk of information security leakage. Fig.13As shown, first, the host computer 1101 sends a controller unique value request to the vehicle 1102 to request the provision of a controller unique value. After receiving the request, the vehicle 1102 returns a controller unique value response including the controller unique value. Then, the host computer 1101 encrypts a specific CAN message for indicating the execution of a fallback operation according to the controller unique value, obtains a specific encrypted CAN message and sends it to the vehicle 1102. Finally, when the vehicle 1102 receives the specific encrypted CAN message, it performs a zone switching action to switch the inactive zone 1201 and the active zone 1202.
[0189] When the above functions are not available, you can use a specific XCP message to bind the zone switching action, send a unique XCP message, and use the chip XCP driver to identify the zone switching. In this fallback mode, the data flow between the host computer and the vehicle is shown in Fig.14 As shown, when the vehicle 1102 receives a specific XCP message from the host computer 1101 for instructing to perform a rollback operation, the vehicle 1102 performs a zone switching action to perform zone switching between the inactive zone 1201 and the active zone 1202 .
[0190] The embodiment of the present application provides a rollback device, which is deployed on a host computer. Fig.15 As shown, the rollback device 150 includes: a detection unit 1501, a control unit 1502, and a rollback unit 1503. Among them: The detection unit 1501 is used to detect the working status of the controller after the first version program of the target application is successfully flashed to the dual partition system of the controller; wherein the dual partition system includes an activation area and an inactivation area; the first version program runs in the activation area, and the inactivation area stores the second version program of the target application.
[0191] The control unit 1502 is used to control the controller to switch the activated area and the inactive area based on the target area switching method when an abnormality occurs in the working state of the controller; wherein the target area switching method is one of the service area switching method and the message area switching method; the service area switching method is a area switching method based on a unified diagnostic service; and the message area switching method is a area switching method based on a communication message.
[0192] The rollback unit 1503 is used to roll back the target application from the first version program to the second version program after the switch is successful.
[0193] In some embodiments, the service area switching mode includes a first service area switching mode and a second service area switching mode, the first service area switching mode is a area switching mode based on the unified diagnostic service of the application, and the second service area switching mode is a area switching mode based on the unified diagnostic service of the boot program. The control unit 1502 is also used to: when the working state of the unified diagnostic service of the application is normal, control the controller to switch between the activated area and the inactivated area based on the first service area switching mode; when the working state of the unified diagnostic service of the application is abnormal, control the controller to switch between the activated area and the inactivated area based on the second service area switching mode.
[0194] In some embodiments, the message area switching method includes a first message area switching method and a second message area switching method, the first message area switching method is a method of area switching based on a first communication message of the controller, the first communication message is a controller area network CAN message; the second message area switching method is a method of area switching based on a second communication message of the controller, the second communication message is a universal calibration protocol XCP message. The control unit 1502 is also used to: when the working state of the first communication message of the controller is normal, control the controller to switch between the activated area and the inactivated area based on the first message area switching method; when the working state of the first communication message of the controller is abnormal, control the controller to switch between the activated area and the inactivated area based on the second message area switching method.
[0195] In some embodiments, the control unit 1502 is also used to: send a zone cutting diagnosis request to the controller; wherein the zone cutting diagnosis request is used to enable the controller to call a zone cutting diagnosis routine to perform zone cutting diagnosis; the zone cutting diagnosis routine is used to perform zone cutting condition check and identity security verification on the controller; when the zone cutting diagnosis result sent by the controller is passed, send a zone cutting execution request to the controller so that the controller calls the zone cutting execution routine to switch the activated area and the inactivated area.
[0196] In some embodiments, the control unit 1502 is also used to: enable a target function of the controller; the target function is used to keep the controller in the boot program running stage; in response to the successful activation of the target function, control the controller to switch between the activated area and the inactivated area based on the second service switching mode.
[0197] In some embodiments, the control unit 1502 is also used to: send a unique sequence value acquisition request to the controller; the unique sequence value acquisition request is used to request the controller to return the unique sequence value of the controller; encrypt the target CAN message based on the unique sequence value; send the encrypted target CAN message to the controller, so that the controller switches the activation area and the inactive area in response to the encrypted target CAN message.
[0198] In some embodiments, the fallback device 150 also includes a determination unit, which is used to: obtain reference priority information; the reference priority information is used to characterize the priority between the service area switching mode and the message area switching mode; when the reference priority information characterizes that the service area switching mode takes precedence over the message area switching mode, the service area switching mode is determined as the target area switching mode; when the reference priority information characterizes that the message area switching mode takes precedence over the service area switching mode, the message area switching mode is determined as the target area switching mode.
[0199] In some embodiments, before obtaining the reference priority information, the determination unit is also used to: respectively determine the feasibility scores of the service area switching method and the message area switching method to obtain a first feasibility score and a second feasibility score; the feasibility score is determined based on the safety level and complexity level when executing at least one area switching step included in the area switching method; when the first feasibility score is greater than or equal to the second feasibility score, determine that the reference priority information is that the service area switching method takes precedence over the message area switching method; when the first feasibility score is less than the second feasibility score, determine that the reference priority information is that the message area switching method takes precedence over the service area switching method.
[0200] The present application embodiment provides another rollback device, which is deployed in a controller. Fig.16 As shown, the rollback device 160 includes: a receiving unit 1601, a switching unit 1602, and a restarting unit 1603. Among them: The receiving unit 1601 is used to receive a rollback request sent by the upper computer; the rollback request is sent when the working state of the controller becomes abnormal after the first version program of the target application is successfully flashed to the dual partition system of the controller, and the dual partition system includes an activation area and an inactive area; the first version program runs in the activation area, and the inactive area stores the second version program of the target application; the rollback request carries the target zone switching mode of the controller; the target zone switching mode is one of the service zone switching mode and the message zone switching mode; the service zone switching mode is a zone switching mode based on a unified diagnostic service; the message zone switching mode is a zone switching mode based on a communication message.
[0201] The switching unit 1602 is used to interact with the host computer based on the target area switching mode and switch the active area and the inactive area.
[0202] The restart unit 1603 is used to perform a restart operation after the switch is successful, so that the controller starts based on the second version of the program.
[0203] It should be noted that the various units included in the fallback device provided in the embodiment of the present application can be implemented by a processor in the user equipment; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor (DSP, Digital Signal Processor) or a field programmable gate array (FPGA, Field-Programmable Gate Array), etc.
[0204] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0205] It should be noted that in the embodiments of the present application, if the above-mentioned fallback method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0206] An embodiment of the present application also provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the rollback method provided in the above embodiment are implemented.
[0207] Combine the following Fig.17 The user equipment 170 shown is used to illustrate a structural diagram of the user equipment.
[0208] In one example, if Fig.17 As shown, the user equipment 170 includes: a processor 1701, at least one communication bus 1702, at least one external communication interface 1703 and a memory 1704. The communication bus 1702 is configured to realize connection communication between these components. The external communication interface 1703 may include a standard wired interface and a wireless interface.
[0209] The memory 1704 is configured to store instructions and applications executable by the processor 1701, and can also cache data to be processed or processed by the processor 1701 and various modules in the user equipment (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0210] An embodiment of the present application also provides a storage medium, that is, a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the rollback method provided in the above embodiment are implemented.
[0211] An embodiment of the present application also provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, the steps in the rollback method provided in the above embodiment are implemented.
[0212] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0213] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0214] 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.
[0215] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. 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 can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0216] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; 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 present embodiment.
[0217] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0218] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, read-only memories (ROM), magnetic disks or optical disks.
[0219] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0220] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A rollback method, characterized in that: The fallback method is applied to the host computer, and the fallback method includes: After the first version of the target application is successfully written to the dual partition system of the controller, detecting the working state of the controller; wherein the dual partition system includes an active area and an inactive area; the first version of the program runs in the active area, and the second version of the target application is stored in the inactive area; In the case that the working state of the controller is abnormal, the controller is controlled to switch the activated area and the inactivated area based on a target area switching mode; wherein the target area switching mode is one of a service area switching mode and a message area switching mode; the service area switching mode is a area switching mode based on a unified diagnostic service; and the message area switching mode is a area switching mode based on a communication message; After the switch is successful, the target application is rolled back from the first version program to the second version program.
2. The rollback method according to claim 1, characterized in that: The service switching mode includes a first service switching mode and a second service switching mode, wherein the first service switching mode is a switching mode based on a unified diagnostic service of an application program, and the second service switching mode is a switching mode based on a unified diagnostic service of a boot program; The controlling the controller to switch the active area and the inactive area based on the target area switching method includes: When the working state of the unified diagnostic service of the application is normal, controlling the controller to switch between the active area and the inactive area based on the first service switching mode; When the working state of the unified diagnostic service of the application is abnormal, the controller is controlled to switch between the active area and the inactive area based on the second service switching mode.
3. The rollback method according to claim 1, characterized in that: The message zone switching method includes a first message zone switching method and a second message zone switching method, wherein the first message zone switching method is a zone switching method based on a first communication message of the controller, and the first communication message is a controller area network (CAN) message; the second message zone switching method is a zone switching method based on a second communication message of the controller, and the second communication message is a universal calibration protocol (XCP) message; The controlling the controller to switch the active area and the inactive area based on the target area switching method includes: When the working state of the first communication message of the controller is normal, controlling the controller to switch between the active area and the inactive area based on the first message switching mode; When the working state of the first communication message of the controller is abnormal, the controller is controlled to switch between the active area and the inactive area based on the area switching mode of the second message.
4. The rollback method according to claim 2, characterized in that: The controlling the controller to switch the activated area and the inactivated area based on the first service area switching mode includes: Sending a zone cutting diagnosis request to the controller; wherein the zone cutting diagnosis request is used to enable the controller to call a zone cutting diagnosis routine to perform zone cutting diagnosis; the zone cutting diagnosis routine is used to perform zone cutting condition check and identity security verification on the controller; When the zone switching diagnosis result sent by the controller is passed, a zone switching execution request is sent to the controller, so that the controller calls a zone switching execution routine to switch the active area and the inactive area.
5. The rollback method according to claim 2, characterized in that: The controlling the controller to switch the activated area and the inactivated area based on the second service area switching mode includes: Turning on a target function of the controller; the target function is used to keep the controller in a boot program running stage; In response to successful activation of the target function, the controller is controlled to switch between the active area and the inactive area based on the second service switching mode.
6. The rollback method according to claim 3, characterized in that: The controlling the controller to switch the active area and the inactive area based on the first message switching area mode includes: Sending a unique sequence value acquisition request to the controller; the unique sequence value acquisition request is used to request the controller to return the unique sequence value of the controller; Encrypting the target CAN message based on the unique sequence value; The encrypted target CAN message is sent to the controller, so that the controller switches the active area and the inactive area in response to the encrypted target CAN message.
7. The rollback method according to claim 1, characterized in that: The fallback method further includes: Acquire reference priority information; the reference priority information is used to characterize the priority between the service switching mode and the message switching mode; In a case where the reference priority information indicates that the service switching mode has priority over the message switching mode, determining the service switching mode as the target switching mode; In a case where the reference priority information indicates that the message switching mode has priority over the service switching mode, the message switching mode is determined as the target switching mode.
8. The rollback method according to claim 7, characterized in that: Before obtaining the reference priority information, the fallback method further includes: Determine the feasibility scores of the service switching mode and the message switching mode respectively, and obtain a first feasibility score and a second feasibility score; the feasibility score is determined based on the security level and complexity level when executing at least one switching step included in the switching mode; When the first feasibility score is greater than or equal to the second feasibility score, determining that the reference priority information indicates that the service switching mode takes precedence over the message switching mode; When the first feasibility score is less than the second feasibility score, it is determined that the reference priority information indicates that the message switching mode takes precedence over the service switching mode.
9. A rollback method, characterized in that: The fallback method is applied to the controller, and the fallback method includes: Receive a rollback request sent by a host computer; the rollback request is sent when an abnormality occurs in the working state of the controller after the first version of the target application is successfully flashed to the dual partition system of the controller, and the dual partition system includes an activation area and an inactive area; the first version of the program runs in the activation area, and the inactive area stores the second version of the target application; the rollback request carries a target area switching mode of the controller; the target area switching mode is one of a service area switching mode and a message area switching mode; the service area switching mode is an area switching mode based on a unified diagnostic service; the message area switching mode is an area switching mode based on a communication message; Interacting with the host computer based on the target area switching mode, and switching the activated area and the inactivated area; After the switching is successful, a restart operation is performed to enable the controller to start based on the second version program.
10. A retraction device, characterized in that: The rollback device is deployed on the host computer, and the rollback device includes: A detection unit, configured to detect a working state of the controller after the first version of the target application is successfully flashed to the dual partition system of the controller; wherein the dual partition system includes an active area and an inactive area; the first version of the program runs in the active area, and the second version of the target application is stored in the inactive area; A control unit, configured to control the controller to switch between the activated area and the inactivated area based on a target area switching mode when an abnormality occurs in the working state of the controller; wherein the target area switching mode is one of a service area switching mode and a message area switching mode; the service area switching mode is an area switching mode based on a unified diagnostic service; and the message area switching mode is an area switching mode based on a communication message; The rollback unit is used to roll back the target application from the first version program to the second version program after the switching is successful.
11. A retraction device, characterized in that: The rollback device is deployed on the controller, and the rollback device includes: A receiving unit, used for receiving a rollback request sent by a host computer; the rollback request is sent when an abnormal working state of the controller occurs after the first version program of the target application is successfully flashed to the dual partition system of the controller, and the dual partition system includes an activation area and an inactive area; the first version program runs in the activation area, and the inactive area stores the second version program of the target application; the rollback request carries a target area switching mode of the controller; the target area switching mode is one of a service area switching mode and a message area switching mode; the service area switching mode is an area switching mode based on a unified diagnostic service; the message area switching mode is an area switching mode based on a communication message; A switching unit, used to interact with the host computer based on the target area switching mode, and switch the activated area and the inactivated area; A restart unit is used to perform a restart operation after the switching is successful, so that the controller starts based on the second version program.
Citation Information
Patent Citations
Electronic module and software wireless upgrading method thereof
CN110633091A
Partition switching method and device, vehicle and storage medium
CN113824620A
Double-partition upgrading method and system based on UDS protocol
CN117112000A
Software upgrading method and device, vehicle and storage medium
CN117950694A
Method for updating a computing device, computing device and motor vehicle with a computing device
DE102022112047A1
