OTA upgrade interruption method, electronic device, vehicle and storage medium
By detecting and handling interruptions based on the OTA upgrade status, it solves the problems of interruption safety and low flexibility in car OTA upgrades, and improves the user experience and the security of the processing module.
Patent Information
- Application Number
- CN202210094779.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-01-26
AI Technical Summary
During the car OTA upgrade process, users cannot safely interrupt the upgrade of the processing module, resulting in low car flexibility and poor car experience. Interruption processing may cause processing module abnormalities and reduce safety.
By detecting the OTA upgrade status of each processing module in the target device, interrupt processing is performed according to the current OTA upgrade stage, reducing the number of processing modules that need to be upgraded, and ensuring the safety and efficiency of interrupt processing.
It achieves safe interrupt processing during the OTA upgrade process, reduces user waiting time, improves vehicle flexibility and experience, and ensures the security and version consistency of the processing module.
Smart Images

Figure CN116541138B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of OTA upgrade, and in particular to an OTA upgrade interruption method, electronic equipment, vehicle and storage medium. Background Art
[0002] With the development of the automobile industry and the popularization of automobile OTA (Over The Air) upgrade function, more and more users are accustomed to using the OTA upgrade function to upgrade their cars. Generally, when performing OTA upgrades on the processing module in the car (such as the preparation upgrade stage, the upgrading stage), it is necessary to ensure that the car is in a stationary state before the upgrade can be completed. In the above OTA upgrade stage, if the user needs to use the car, the user needs to wait for the OTA upgrade to be completed before the user can use the car normally. In the actual use process, there are often multiple processing modules in the car. At this time, if it is necessary to wait for all processing modules to complete the OTA upgrade, it will undoubtedly lead to low flexibility for users to use the car, and the time required for all processing modules to complete the OTA upgrade is long and cannot be interrupted (if the user forcibly interrupts the OTA upgrade process of the processing module, it may cause the processing module to be abnormal, reducing the safety of the OTA upgrade process of the processing module), so that the user needs to wait for a long time before using the car, which leads to a poor user experience. Summary of the invention
[0003] The embodiments of the present invention provide an OTA upgrade interruption method, an electronic device, a vehicle and a storage medium to solve the problem in the prior art that the OTA upgrade process of the processing module of the automobile cannot be safely interrupted, resulting in low flexibility and poor vehicle experience for users.
[0004] An OTA upgrade interruption method, the OTA upgrade interruption method comprising:
[0005] When receiving an OTA upgrade interruption signal for a target device, detecting the OTA upgrade status of each processing module in the target device; the target device includes a plurality of the processing modules;
[0006] The current OTA upgrade stage is determined according to the OTA upgrade status of each processing module, and OTA upgrade interrupt processing is performed on each processing module according to the current OTA upgrade stage.
[0007] An electronic device is used to execute the above OTA upgrade interruption method.
[0008] A vehicle comprises the above electronic device.
[0009] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned OTA upgrade interruption method is implemented.
[0010] The above-mentioned OTA upgrade interrupt method, electronic device, vehicle and storage medium, after receiving the OTA upgrade interrupt signal, the method detects the OTA upgrade status of each processing module in the target device, and determines the current OTA upgrade stage of the target device according to the OTA upgrade status of each processing module, thereby performing corresponding interrupt processing on the processing module according to different current OTA upgrade stages, thereby realizing the operation of safely executing interrupt processing during the OTA upgrade process of the processing module. In this way, the number of processing modules for each OTA upgrade can be appropriately reduced through interrupt processing, thereby reducing the upgrade time of the processing modules required for OTA upgrade in the current stage, so that under the premise that the processing module can safely stop the OTA upgrade, the waiting time required for users to use the car is reduced, thereby improving the flexibility and car-using experience of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0012] Figure 1 is a flow chart of an OTA upgrade interruption method in one embodiment of the present invention;
[0013] Figure 2 is a flow chart of step S20 in the OTA upgrade interruption method in one embodiment of the present invention;
[0014] Figure 3 It is a flow chart of step S204 in the OTA upgrade interruption method in one embodiment of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0016] In one embodiment, if Figure 1 As shown, an OTA upgrade interruption method is provided, and the OTA upgrade interruption method includes the following steps:
[0017] S10: When receiving an OTA upgrade interruption signal for a target device, detecting the OTA upgrade status of each processing module in the target device; the target device includes a plurality of the processing modules.
[0018] The target device may be a car.
[0019] It can be understood that in the present invention, the OTA upgrade interrupt signal is the highest priority signal, that is, the OTA upgrade interrupt signal can be sent at any stage of the OTA upgrade of the processing module of the target device. Further, the OTA upgrade interrupt signal can be generated by a combination of hardware signals of the target device, or by software, or by combining the hardware signals and software of the target device, for example:
[0020] First, the hardware signal combination of the target device can be generated by: using the unlock key and trunk opening key combination on the car key associated with the target device, such as the user pressing the unlock key and the trunk opening key at the same time and pressing them three times in a row, an OTA upgrade interrupt signal can be generated;
[0021] Second: generated by software, for example, installing the corresponding application in the user's mobile terminal, and when the user clicks the forced interrupt OTA button in the application, a confirmation box and a cancel box pop up, and an OTA upgrade interrupt signal is generated when the user clicks the confirmation box. When the user clicks the cancel box, or does not click the confirmation box or cancel box within a certain period of time (such as 5s), the OTA upgrade interrupt signal will not be generated;
[0022] Third: The hardware signal and software of the target device are jointly generated. For example, when the user clicks the forced interrupt OTA button in the application and presses the unlock button and the trunk open button at the same time within a certain period of time (such as within 2 seconds), the OTA upgrade interrupt signal is automatically generated.
[0023] Furthermore, the processing module refers to various modules in the target device. There may be version associations between these processing modules (processing modules with version associations need to maintain consistent versions, such as the front host and rear host in the target device), or they may be independent modules. The OTA upgrade status can be a ready-to-upgrade status, an upgrading status, an upgraded status, or a rollback status. Among them, if the OTA upgrade status of a processing module is a ready-to-upgrade status, it indicates that the processing module is waiting for an OTA upgrade; if the OTA upgrade status of a processing module is an upgrading status, it indicates that the processing module is undergoing an OTA upgrade; if the OTA upgrade status of a processing module is an upgraded status, it indicates that the OTA upgrade of the processing module is completed; if the OTA upgrade status of a processing module is a rollback status, it indicates that the processing module is performing a version rollback. It should be noted that OTA upgrade means version upgrade of the processing module; version rollback includes: first, when the OTA upgrade of the processing module fails, the processing module is restored to the version before the upgrade; second, when the upgrade of another processing module associated with a processing module fails, both processing modules need to be rolled back, that is, both processing modules are restored to their corresponding versions before the upgrade, so as to ensure that the versions of the two associated processing modules are consistent.
[0024] Furthermore, a display screen can be set in the target device, and when each processing module is undergoing OTA upgrade or rollback, the OTA upgrade status of each processing module can be displayed on the display screen, such as displaying whether each processing module is upgraded or rolled back, as well as the upgrade progress or rollback progress, etc. The upgrade or rollback status of each processing module can also be displayed in the mobile terminal of the owner of the target device, and the OTA upgrade status of each processing module can be directly determined from the display screen in the target device or the mobile terminal of the owner.
[0025] S20: Determine the current OTA upgrade stage according to the OTA upgrade status of each processing module, and perform OTA upgrade interrupt processing on each processing module according to the current OTA upgrade stage.
[0026] It can be understood that the above description points out that the OTA upgrade status of the processing module includes the ready-to-upgrade status, the upgrading status, the upgraded status or the rollback status, etc. The current OTA upgrade stage includes the ready-to-upgrade stage and the upgrading stage. Among them, when the OTA upgrade status of all processing modules is the ready-to-upgrade status, the current OTA upgrade stage is the ready-to-upgrade stage; when the OTA upgrade status of at least one processing module is the upgrading status or the upgraded status, the current OTA upgrade stage is the upgrading stage. Furthermore, when the OTA upgrade status of at least one processing module is the upgraded status, if there is a processing module whose OTA upgrade status is the rollback status, the current OTA upgrade stage is also the upgrading stage.
[0027] Furthermore, after determining the current OTA upgrade stage according to the OTA upgrade status of each processing module, the processing module that needs to be interrupted is determined from each processing module according to the current OTA upgrade stage, and then the OTA upgrade interruption processing is performed on the processing module that needs to be interrupted, so that the processing module that needs to be interrupted no longer performs OTA upgrade. Furthermore, in this embodiment, the OTA upgrade interruption processing is performed on each processing module according to the current OTA upgrade stage, which can be performed by a device such as a computer or other processor, that is, after determining the current OTA upgrade stage by the above-mentioned processor, the central processing module or electronic device on the target device can be controlled to perform the OTA upgrade interruption processing operation according to the determined current OTA upgrade stage.
[0028] In this embodiment, after receiving the OTA upgrade interrupt signal, the OTA upgrade status of each processing module in the target device is detected, and the current OTA upgrade stage of the target device is determined according to the OTA upgrade status of each processing module, so that corresponding interrupt processing is performed on the processing module according to different current OTA upgrade stages, so that the interrupt processing operation can be safely performed during the OTA upgrade process of the processing module. In this way, the number of processing modules for each OTA upgrade can be appropriately reduced through interrupt processing, thereby reducing the upgrade time of the processing modules required for OTA upgrade in the current stage, so that under the premise that the processing module can safely stop the OTA upgrade, the waiting time required for users to use the car is reduced, thereby improving the flexibility and car-using experience of users.
[0029] In one embodiment, after step S20, that is, after performing OTA upgrade interrupt processing on each processing module according to the current OTA upgrade stage, the method further includes:
[0030] The OTA upgrade interruption result is sent to the preset server, and the version upgrade update information fed back by the preset server is received; the version upgrade update information is generated by the preset server after determining the module to be upgraded from all the processing modules according to the OTA upgrade interruption result; the OTA upgrade interruption result is obtained after performing OTA upgrade interruption processing on each of the processing modules according to the current OTA upgrade stage.
[0031] It can be understood that since the current OTA upgrade stage includes the upgrade preparation stage and the upgrading stage, when the OTA upgrade interrupt processing is performed on the processing module, it may include the upgraded processing module, the upgraded processing module, the non-upgraded processing module or the reviewed processing module, and then all the results of all the processing modules will be stored in the OTA upgrade interrupt result, that is, the OTA upgrade interrupt result will include: the OTA upgrade result of the upgraded processing module (such as successful upgrade or failed upgrade); the interruption result of the non-upgraded processing module; the rollback result of the rolled back processing module (such as successful rollback or failed rollback).
[0032] Specifically, after performing OTA upgrade interrupt processing on each of the processing modules according to the current OTA upgrade stage and obtaining the OTA upgrade interrupt result, the OTA upgrade interrupt result is sent to the preset server. After receiving the OTA upgrade interrupt result, the preset server can obtain the version information of the processing module of the target device, and then determine the module to be upgraded according to the version information and the OTA upgrade interrupt result. It can be understood that the OTA upgrade interrupt result includes the interrupt result of the processing module that has not been upgraded, and then the version information corresponding to the processing module that has not been upgraded can be determined, and then it can be determined whether the processing module of the version information still needs to be upgraded by OTA. When the processing module still needs to be upgraded by OTA, the processing module can be recorded as the module to be upgraded; for example, the OTA upgrade interrupt result includes the OTA upgrade result of the processing module. Assuming that the OTA upgrade result of a processing module indicates that the upgrade has failed, it can be determined whether there is a new upgrade package for the processing module, and then it can be confirmed whether the processing module still needs to continue the OTA upgrade. If necessary, the processing module can be recorded as the module to be upgraded.
[0033] Furthermore, the version upgrade update information records the module to be upgraded, the current version information of the module to be upgraded, and the upgraded version information of the module to be upgraded. Among them, the current version information indicates the current version of the module to be upgraded; the upgraded version information indicates the upgraded version of the module to be upgraded. Furthermore, after performing OTA upgrade interrupt processing on the non-upgraded processing module in step S20, the upgrade package and other data corresponding to the non-upgraded processing module can be retained in the electronic device, so that in step S40, the modules to be upgraded in these non-upgraded processing modules can be directly OTA upgraded, without the need to re-download the corresponding upgrade package and other data.
[0034] Furthermore, if there is a processing module that fails to upgrade or roll back, the electronic device will report information related to the processing module that failed to upgrade or roll back to the preset server, so that the preset server can confirm the reason for the upgrade failure or roll back, and send information related to the processing module that failed to upgrade or roll back to the car owner's mobile terminal to prompt the car owner.
[0035] The module to be upgraded is OTA upgraded according to the OTA upgrade interruption result and the version upgrade update information.
[0036] Specifically, after the OTA upgrade interruption result is sent to the preset server, so that the preset server determines the module to be upgraded from all the processing modules according to the OTA upgrade interruption result, generates version upgrade update information and feedbacks it, the version upgrade update information fed back by the preset server is received, and the module to be upgraded is OTA upgraded according to the upgrade interruption result and the version upgrade update information. It should be noted that there are prerequisites for OTA upgrading the module to be upgraded, and the prerequisites may include but are not limited to: the vehicle speed of the target device is 0, the remaining SOC value of the battery of the target device is greater than the set SOC threshold (the set SOC threshold may be 70%, 80%, etc.), the gear of the target device is P gear, the motor speed of the target device is 0, etc.
[0037] In this embodiment, the module to be upgraded can be determined according to the OTA upgrade interruption result, so that after receiving the version upgrade update information fed back by the preset server, the module to be upgraded can be OTA upgraded according to the version upgrade update information and the OTA upgrade interruption result. In this way, it can be ensured that the upgrade task of the processing module will not be shelved after the interruption, thereby keeping the version function of the processing module in the latest version status.
[0038] In one embodiment, in step S20, that is, determining the current OTA upgrade stage according to the OTA upgrade status of each processing module, includes:
[0039] When the OTA upgrade status of all the processing modules in the target device is in the ready-to-upgrade status, it is determined that the current OTA upgrade stage is the ready-to-upgrade stage.
[0040] Specifically, after confirming whether the OTA upgrade status of the processing module is the ready-to-upgrade status, if the OTA upgrade status of all processing modules is the ready-to-upgrade status, it means that all processing modules have not performed OTA upgrade. At this time, it can be determined that the current OTA upgrade stage is the ready-to-upgrade stage.
[0041] When the OTA upgrade state of at least one of the processing modules is in an upgrading state or an upgraded state, it is determined that the current OTA upgrade stage is in an upgrading stage.
[0042] Specifically, after confirming whether the OTA upgrade status of the processing module is the ready-to-upgrade status, if the OTA upgrade status of at least one processing module is the upgrading status or the upgraded status, it indicates that there is a processing module being upgraded or the upgrade has been completed, and the current OTA upgrade stage is determined to be the upgrading stage.
[0043] In one embodiment, in step S20, that is, performing OTA upgrade interrupt processing on each processing module according to the current OTA upgrade stage, includes:
[0044] When the current OTA upgrade stage is the preparation upgrade stage, an OTA upgrade interrupt operation is performed on all the processing modules to obtain the OTA upgrade interrupt result.
[0045] Specifically, when it is determined that the OTA upgrade stage is the preparation upgrade stage, it indicates that all processing modules are in the preparation upgrade state. At this time, there is no need to consider whether the processing module needs to continue to be upgraded or rolled back, etc., and the OTA upgrade interrupt operation can be directly performed on all processing modules to obtain the OTA upgrade interrupt result. At this time, the OTA upgrade interrupt result includes the interrupt status corresponding to each processing module.
[0046] In one embodiment, if Figure 2 As shown, the OTA upgrade interrupt processing is performed on each processing module according to the current OTA upgrade stage, including:
[0047] S201: When the current OTA upgrade stage is the upgrading stage, the processing module whose OTA upgrade status is the upgraded status is recorded as a historical upgrade module, and the next processing module after the historical upgrade module in the preset upgrade sequence is recorded as a current upgrade module.
[0048] It can be understood that if the current OTA upgrade stage is the upgrading stage, the processing module may include an upgraded processing module or a processing module being upgraded, so the processing module whose OTA upgrade status is the upgraded status is recorded as the historical upgrade module, and the next processing module after the historical upgrade module in the preset upgrade sequence is recorded as the current upgrade module. Among them, the processing modules can be inserted into the sequence according to the set order to obtain the preset upgrade order. For example, the processing modules can be sorted from small to large according to the upgrade time of each processing module.
[0049] S202: Determine whether there is a processing module having a version association relationship with the current upgrade module;
[0050] It can be understood that if there is a version association relationship between two processing modules, it means that the two processing modules need to maintain the same version. If they are not consistent, the functions corresponding to the two processing modules may fail. Then, after recording the processing module whose OTA upgrade status is upgraded as a historical upgrade module and recording the next processing module after the historical upgrade module in the preset upgrade sequence as the current upgrade module, determine whether there is a processing module with a version association relationship with the current upgrade module from all processing modules except the current upgrade module.
[0051] S203: If there is no processing module having a version association relationship with the current upgrade module, determine the upgrade interruption gap according to the OTA upgrade state of the current upgrade module when the OTA upgrade interruption signal is received, and perform OTA upgrade interruption processing in the upgrade interruption gap to obtain a gap interruption processing result.
[0052] Specifically, after determining whether there is a processing module having a version association relationship with the current upgrade module in all processing modules except the current upgrade module, if there is no processing module having a version association relationship with the current upgrade module, there is no need to judge the impact of other processing modules on the upgrade or rollback of the current upgrade module, and then it is only necessary to determine the OTA upgrade status of the current upgrade module when the OTA upgrade interrupt signal is received, such as obtaining the receiving time when the OTA upgrade interrupt signal is received, and then determining the OTA upgrade status of the current upgrade module at the receiving time, and then determining the upgrade interruption gap according to the OTA upgrade status. For example, when the OTA upgrade status of the current upgrade module is in the ready to upgrade status, the upgrade interruption gap, which is the gap before the current upgrade module performs OTA upgrade, is determined as the upgrade interruption gap, and then OTA upgrade interrupt processing is performed in the upgrade interruption gap to obtain the gap interrupt processing result.
[0053] S204: If there is a processing module having a version association relationship with the current upgrade module, determine the minimum interruption duration according to the version rollback time or version upgrade time of each processing module having a version association relationship with the current upgrade module, and determine the time interruption processing result according to the minimum interruption duration;
[0054] Specifically, after determining whether there is a processing module that has a version association relationship with the current upgrade module, if there is a processing module that has a version association relationship with the current upgrade module, that is, there is a processing module that has been upgraded that has a version association relationship with the current upgrade module, and there may also be a processing module that has not been upgraded that has a version association relationship with the current upgrade module. Therefore, the minimum interruption duration can be determined according to the version rollback time or version upgrade time of each processing module that has a version association relationship with the current upgrade module, and the time interruption processing result can be determined according to the minimum interruption duration.
[0055] In one embodiment, the gap interruption processing result includes a first interruption result; determining the upgrade interruption gap according to the OTA upgrade state of the current upgrade module when the OTA upgrade interruption signal is received, and performing OTA upgrade interruption processing in the upgrade interruption gap to obtain the gap interruption processing result includes:
[0056] If the OTA upgrade status of the current upgrade module is the ready-to-upgrade status when the OTA upgrade interrupt signal is received, the upgrade gap before the current upgrade module is determined as the upgrade interrupt gap, and OTA upgrade interrupt processing is performed on all processing modules except the historical upgrade module to obtain a first interrupt result; the first interrupt result includes the OTA upgrade result corresponding to the historical upgrade module, and the OTA interrupt results corresponding to all processing modules except the historical upgrade module.
[0057] Further, after determining the OTA upgrade status of the current upgrade module when the OTA upgrade interrupt signal is received, if the OTA upgrade status of the current upgrade module is in the ready-to-upgrade status when the OTA upgrade interrupt signal is received, it indicates that the current upgrade module has not been upgraded yet, so the upgrade interrupt gap at this time is the gap before the current upgrade module performs OTA upgrade, so that all processing modules (including the current upgrade module) other than the historical upgrade module can be subjected to OTA upgrade interrupt processing after the interrupt gap to obtain the first interrupt result. Among them, since the historical upgrade module has been upgraded, the first interrupt result includes the OTA upgrade result corresponding to the historical upgrade module; since all processing modules except the historical upgrade module have not been upgraded and the upgrade is interrupted, the first interrupt result also includes the OTA interrupt results corresponding to all processing modules except the historical upgrade module.
[0058] In this embodiment, after determining that the current upgrade module does not have a processing module with a version association relationship, and after the OTA upgrade status of the current upgrade module is the ready-to-upgrade status when the OTA upgrade interrupt signal is received, OTA upgrade interrupt processing can be performed on all processing modules except the historical upgrade module, that is, the OTA upgrade interrupt operation can be performed in the gap between upgrading multiple processing modules. In this way, the OTA upgrade validity of the upgraded processing modules can be guaranteed, and the interrupt processing of other processing modules that have not been upgraded can be quickly performed, thereby improving the rationality and efficiency of the OTA upgrade interruption.
[0059] In one embodiment, the gap interruption processing result includes a second interruption result; the determining the upgrade interruption gap according to the OTA upgrade state of the current upgrade module when the OTA upgrade interruption signal is received, and performing OTA upgrade interruption processing in the upgrade interruption gap to obtain the gap interruption processing result also includes:
[0060] If the OTA upgrade state of the current upgrade module is in the upgrading state when the OTA upgrade interruption signal is received, the upgrade gap after the current upgrade module is determined as the upgrade interruption gap, and the current upgrade module is OTA upgraded.
[0061] Specifically, after determining the OTA upgrade status of the current upgrade module when the OTA upgrade interrupt signal is received, if the OTA upgrade status of the current upgrade module is in the upgrading status when the OTA upgrade interrupt signal is received, it indicates that the current upgrade module is undergoing OTA upgrade, and it is necessary to continue the OTA upgrade of the current upgrade module until the OTA upgrade of the current upgrade module is completed, and then the OTA upgrade interrupt processing operation is executed. Therefore, the upgrade gap after the upgrade of the current upgrade module is completed is determined as the upgrade interrupt gap, and then the OTA upgrade interrupt processing operation is executed on all processing modules other than the historical upgrade module (excluding the current upgrade module) after the upgrade interrupt gap.
[0062] When the OTA upgrade of the current upgrade module is completed, OTA upgrade interrupt processing is performed on all processing modules except the current upgrade module and the historical upgrade module to obtain a second interrupt result; the second interrupt result includes the OTA upgrade results corresponding to the current upgrade module and the historical upgrade module one by one, and the OTA interrupt results corresponding to all processing modules except the current upgrade module and the historical upgrade module.
[0063] Specifically, after the current upgrade module is OTA upgraded, when the OTA upgrade of the current upgrade module is completed, the OTA upgrade interrupt processing can be performed on all processing modules except the current upgrade module and the historical upgrade module to obtain the second interrupt result. Among them, since the historical upgrade module and the current upgrade module have been upgraded, the second interrupt result includes the OTA upgrade results corresponding to the historical upgrade module and the current upgrade module respectively; since all processing modules except the historical upgrade module and the current upgrade module have not been OTA upgraded and the upgrade is interrupted, the second interrupt result also includes the OTA interrupt results corresponding to all processing modules except the historical upgrade module and the current upgrade module.
[0064] Furthermore, since the present embodiment needs to execute the OTA upgrade interrupt processing operation after the OTA upgrade of the current upgrade module is completed, the OTA upgrade interrupt delay information can be sent to the car owner's mobile terminal in advance. The OTA upgrade interrupt delay information includes the delay time. The delay time in the present embodiment is the time required for the OTA upgrade of the current upgrade module.
[0065] In this embodiment, after determining that the current upgrade module does not have a processing module with a version association relationship, and the OTA upgrade status of the current upgrade module is in the upgrading status when receiving the OTA upgrade interrupt signal, the OTA upgrade process of the current upgrade module is completed first, and then the OTA upgrade interrupt processing is performed on the processing modules other than the current upgrade module and the upgraded modules. In this way, it can be ensured that the OTA upgrade process of the current upgrade module is not interfered with. After the OTA upgrade of the current upgrade module is completed, the interrupt processing operation is immediately performed on the non-upgraded processing modules other than the historical upgrade modules and the current upgrade module, thereby improving the efficiency and accuracy of the OTA upgrade interrupt processing.
[0066] In one embodiment, if Figure 3 As shown, in step S204, that is, determining the minimum interruption duration according to the version rollback time or version upgrade time of each processing module having a version association relationship with the current upgrade module, and determining the time interruption processing result according to the minimum interruption duration, including:
[0067] S2041: Record the processing modules other than the historical upgrade modules that have a version association relationship with the current upgrade module as modules whose versions have not been upgraded, and record the historical upgrade modules that have a version association relationship with the current upgrade module as upgraded modules.
[0068] Specifically, after determining whether there is a processing module that has a version association relationship with the current upgrade module, if there is a processing module that has a version association relationship with the current upgrade module, it means that there may be a historical upgrade module that has a version association relationship with the current upgrade module, and there may also be other processing modules other than the historical upgrade module that have a version association relationship with the current upgrade module. Then, the historical upgrade module that has an association relationship with the current upgrade module is recorded as an upgraded module, and the processing modules that have a version association relationship with the current upgrade module and other than the historical upgrade modules are recorded as modules that have not been upgraded.
[0069] S2042: Determine the OTA upgrade status of the current upgrade module when the OTA upgrade interrupt signal is received.
[0070] S2043: If the OTA upgrade status of the current upgrade module is in the upgrading status or the preparing to upgrade status when the OTA upgrade interrupt signal is received, then obtain the first rollback time corresponding to the upgraded module and the second rollback time corresponding to the current upgrade module, and record the sum of the first rollback time and the second rollback time as the total rollback duration.
[0071] It is understandable that since the OTA upgrade status of the current upgrade module is in the upgrading status or the ready-to-upgrade status, it is necessary to consider factors such as the corresponding upgrade time and the time of the module that has not been upgraded, as well as the rollback time of the upgraded module. The upgraded module is a module that has been upgraded, so the first rollback time refers to the time required for the upgraded module to restore the version before the upgrade; if the current upgrade module is in the ready-to-upgrade status, the second rollback time corresponding to the current upgrade module is 0; if the current upgrade module is in the upgrading status, the second rollback time corresponding to the current upgrade module is the time required to restore the current upgrade module to the version before the upgrade. The total rollback time is the sum of the first rollback time and the second rollback time.
[0072] S2044: Obtain the total upgrade duration corresponding to the module whose version has not been upgraded, determine the minimum interruption duration according to the total upgrade duration and the total rollback duration, and determine the time interruption processing result according to the minimum interruption duration.
[0073] It can be understood that the total upgrade time is the sum of the time required for OTA upgrade of each version of the non-upgraded module. For example, if there are two versions of the non-upgraded modules, the total upgrade time is the sum of the time required for OTA upgrade of one version of the non-upgraded module and the time required for OTA upgrade of the other version of the non-upgraded module.
[0074] Further, after determining the total upgrade duration and the total rollback duration, the minimum interruption duration can be determined according to the total upgrade duration and the total rollback duration, that is, the shorter value of the total upgrade duration and the total rollback duration, and then the time interruption processing result is determined according to the minimum interruption duration. Among them, there are the following two situations: First, when the total upgrade duration is less than or equal to the total rollback duration, the minimum interruption duration is the value corresponding to the total upgrade duration, and the OTA upgrade interruption processing operation can be performed after the current upgrade module and the version of the non-upgraded module are upgraded, so that more processing modules can be guaranteed to complete the OTA upgrade; second, when the total upgrade duration is greater than the total rollback duration, the minimum interruption duration is the value corresponding to the total rollback duration, and the OTA upgrade interruption processing operation can be performed after the current upgrade module and the upgraded module are rolled back, so that the versions of all processing modules (including upgraded modules and non-upgraded modules) with version association relationships with the current upgrade module can be guaranteed to be consistent, so as to avoid the inconsistency of the versions of the processing modules with version association relationships and the corresponding function failure.
[0075] In one embodiment, the time interruption processing result includes a third interruption result; determining the minimum interruption duration according to the total upgrade duration and the total rollback duration, and determining the time interruption processing result according to the minimum interruption duration, includes:
[0076] The total upgrade duration is compared with the total rollback duration.
[0077] When the total upgrade duration is less than or equal to the total rollback duration, the total upgrade duration is determined as the minimum interruption duration, and the currently upgraded module and the module whose version has not been upgraded are OTA upgraded.
[0078] Specifically, after determining the total upgrade time and the total rollback time, the total upgrade time is compared with the total rollback time. If the total upgrade time is less than or equal to the total rollback time, the total upgrade time is determined as the minimum interruption time, and the time required for the upgraded version of the non-upgraded module is less than the time required to roll back the upgraded module. However, since the current upgrade module is in the current queue, and regardless of whether the current upgrade module is in the ready-to-upgrade state or the upgraded state, all non-upgraded modules with version associations need to be OTA upgraded, in order to maintain version consistency between the current upgrade module and the non-upgraded modules with version associations and the upgraded modules, it is necessary to perform OTA upgrades on both the current upgrade module and the non-upgraded modules.
[0079] When the OTA upgrades of the current upgrade module and the module whose version has not been upgraded are completed, OTA upgrade interrupt processing is performed on the remaining upgrade modules to obtain a third interrupt result; the remaining upgrade modules refer to all processing modules except the current upgrade module, the upgraded modules and the module whose version has not been upgraded; the third interrupt result includes the OTA upgrade results corresponding to the upgraded modules, the modules whose version has not been upgraded and the current upgrade module, and the OTA interrupt results corresponding to the remaining upgrade modules.
[0080] Specifically, after the current upgrade module and the module whose version has not been upgraded are OTA upgraded, when the OTA upgrade of the current upgrade module and the module whose version has not been upgraded is completed, OTA upgrade interrupt processing is performed on all processing modules except the current upgrade module, the upgraded module and the module whose version has not been upgraded, thereby obtaining a third interrupt result. Among them, since the upgraded module, the current upgrade module and the module whose version has not been upgraded have all been upgraded, the third interrupt result includes the OTA upgrade results corresponding to the upgraded module, the current upgrade module and the module whose version has not been upgraded respectively; since the remaining upgrade modules have not been OTA upgraded and the upgrade is interrupted, the third interrupt result also includes the OTA interrupt results corresponding to the remaining upgrade modules.
[0081] Furthermore, since the present embodiment needs to execute the OTA upgrade interrupt processing operation after the OTA upgrade of the current upgrade module and the module whose version has not been upgraded is completed, the OTA upgrade interrupt delay information can be sent to the car owner's mobile terminal in advance. The OTA upgrade interrupt delay information includes the delay time. The delay time in the present embodiment is the sum of the time required for the OTA upgrade of the current upgrade module and the module whose version has not been upgraded.
[0082] In this embodiment, when it is determined that the total upgrade duration is less than or equal to the total rollback duration, the OTA upgrade process of the current upgrade module and the modules whose versions have not been upgraded can be completed. This can ensure that more processing modules complete the OTA upgrade, and make the current upgrade module and the modules whose versions have not been upgraded with version associations consistent with the versions of the upgraded modules. When the OTA upgrade of the current upgrade module and the modules whose versions have not been upgraded is completed, the OTA upgrade interrupt processing is immediately performed on the remaining upgrade modules, thereby improving the flexibility and efficiency of OTA upgrade interruptions.
[0083] In one embodiment, the OTA upgrade interruption result further includes a fourth interruption result; after comparing the total upgrade duration with the total rollback duration, the method further includes:
[0084] When the total upgrade duration is greater than the total rollback duration, an OTA upgrade is performed on the current upgrade module.
[0085] Specifically, after comparing the total upgrade duration with the total rollback duration, if the total upgrade duration is greater than the total rollback duration, it indicates that the time for OTA upgrade of the modules whose versions have not been upgraded and the current upgrade module is longer than the time for rolling back the upgraded modules and the current upgrade module, and thus only the current upgrade module is OTA upgraded, and there is no need to OTA upgrade the modules whose versions have not been upgraded. It can be understood that OTA upgrade of the current upgrade module is an operation performed when the OTA upgrade status of the current upgrade module is in the upgrading status. Assuming that the OTA upgrade status of the current upgrade module is in the ready-to-upgrade status, it is also possible not to perform OTA upgrade on the current upgrade module and retain the current version of the current upgrade module.
[0086] When the OTA upgrade of the current upgrade module is completed, the current upgrade module and the upgraded modules are rolled back.
[0087] Specifically, after the OTA upgrade of the current upgrade module, if the OTA upgrade of the current upgrade module is completed, the current upgrade module and the upgraded modules are rolled back, so that the current upgrade module and the upgraded modules are restored to the version before the OTA upgrade, and since the modules that have not been upgraded have not been OTA upgraded, after the rollback of the current upgrade module and the upgraded modules is completed, the versions of the current upgrade module, the upgraded modules and the modules that have not been upgraded are guaranteed to be consistent.
[0088] When the rollback of the current upgrade module and the upgraded module is completed, OTA upgrade interrupt processing is performed on all the processing modules to obtain a fourth interrupt result; the fourth interrupt result includes the OTA upgrade results corresponding to the current upgrade module and the upgraded module respectively, the rollback results corresponding to the current upgrade module and the upgraded module one by one, and the OTA interrupt results corresponding to all processing modules.
[0089] Specifically, after the current upgrade module and the upgraded module are rolled back, after the current upgrade module and the upgraded module are rolled back, since the current upgrade module and the upgraded module are rolled back to the version before the OTA upgrade, in order to avoid the current upgrade module and the upgraded module from re-performing the OTA upgrade, the OTA upgrade interruption processing is performed on all processing modules, so that all processing modules stop the OTA upgrade and obtain the fourth interruption result. Among them, since the upgraded module and the current upgrade module have both undergone the OTA upgrade process, the fourth interruption result includes the OTA upgrade results corresponding to the upgraded module and the current upgrade module respectively; since the upgraded module and the current upgrade module are both rolled back, the fourth interruption result also includes the rollback results corresponding to the upgraded module and the current upgrade module respectively; since all processing modules are interrupted for upgrade, the fourth interruption result also includes the OTA interruption results corresponding to all processing modules.
[0090] Furthermore, since the present embodiment needs to execute the OTA upgrade interrupt processing operation after the current upgrade module and the upgraded module are rolled back, the OTA upgrade interrupt delay information can be sent to the car owner's mobile terminal in advance. The OTA upgrade interrupt delay information includes the delay time. The delay time in the present embodiment is the sum of the time required for the OTA upgrade of the current upgrade module, the time required for the rollback of the current upgrade module, and the time required for the rollback of the upgraded module.
[0091] In one embodiment, the time interruption processing result includes a fifth interruption result; determining the minimum interruption duration according to the version rollback time or version upgrade time of each of the processing modules having a version association relationship with the current upgrade module, and determining the time interruption processing result according to the minimum interruption duration, includes:
[0092] If the OTA upgrade state of the current upgrade module is a rollback state when the OTA upgrade interrupt signal is received, the current upgrade module and the upgraded module are rolled back.
[0093] Specifically, after determining the OTA upgrade status of the current upgrade module when receiving the OTA upgrade interrupt signal, if the OTA upgrade status of the current upgrade module is a rollback status, it is necessary to roll back the current upgrade module and the upgraded module, so that the current upgrade module and the upgraded module are restored to the version before the OTA upgrade, thereby ensuring the version consistency of the current upgrade module, the upgraded module and the module that has not been upgraded.
[0094] When the rollback of the current upgrade module and the upgraded module is completed, OTA upgrade interrupt processing is performed on all the processing modules to obtain a fifth interrupt result; the fifth interrupt result includes the rollback results corresponding to the current upgrade module and the upgraded module one by one, and the OTA interrupt results corresponding to all processing modules.
[0095] Specifically, after the current upgrade module and the upgraded module are rolled back, when the current upgrade module and the upgraded module are rolled back, the OTA upgrade interruption processing can be performed on all processing modules to obtain the fifth interruption result. Among them, since the upgraded module has undergone the OTA upgrade process, the fifth interruption result includes the OTA upgrade result corresponding to the upgraded module. Further, since the current upgrade module is already in the rollback process, the current upgrade module may have entered the rollback process after the OTA upgrade is completed, so the fifth interruption result may also include the OTA upgrade result corresponding to the current upgrade module; since the upgraded module and the current upgrade module are both rolled back, the fifth interruption result also includes the rollback results corresponding to the upgraded module and the current upgrade module respectively; since all processing modules are interrupted for upgrade, the fifth interruption result also includes the OTA interruption results corresponding to all processing modules.
[0096] Furthermore, since the present embodiment needs to execute the OTA upgrade interrupt processing operation after the rollback of the current upgrade module and the upgraded module is completed, the OTA upgrade interrupt delay information can be sent to the car owner's mobile terminal in advance. The OTA upgrade interrupt delay information includes the delay time. The delay time in the present embodiment is the sum of the time required for the rollback of the current upgrade module and the time required for the rollback of the upgraded module.
[0097] In one embodiment, after performing OTA upgrade interrupt processing on each of the processing modules according to the current OTA upgrade stage, the method further includes:
[0098] Obtain the interruption delay duration; the interruption delay duration refers to the total duration required for performing OTA upgrade interruption processing on each processing module according to the current OTA upgrade stage.
[0099] It can be understood that the above description points out that the time for executing OTA upgrade interrupt processing is different in different situations. Therefore, there are corresponding interrupt delay durations in different situations. The interrupt delay duration is the total time required for OTA upgrade interrupt processing of each processing module according to the current OTA upgrade stage.
[0100] For example, before obtaining the second interrupt result as mentioned above, since it is necessary to execute the OTA upgrade interrupt processing operation after the OTA upgrade of the current upgrade module is completed, the OTA upgrade interrupt delay information can be sent to the car owner's mobile terminal in advance. The OTA upgrade interrupt delay information includes the delay time. In this embodiment, the delay time is the time required for the OTA upgrade of the current upgrade module.
[0101] As another example, before the third interruption result is obtained as mentioned above, since it is necessary to execute the OTA upgrade interruption processing operation after the OTA upgrade of the current upgrade module and the module whose version has not been upgraded is completed, the OTA upgrade interruption delay information can be sent to the car owner's mobile terminal in advance. The OTA upgrade interruption delay information includes the delay time. In this embodiment, the delay time is the sum of the time required for the OTA upgrade of the current upgrade module and the module whose version has not been upgraded.
[0102] As another example, before the fourth interruption result is obtained as mentioned above, since it is necessary to execute the OTA upgrade interruption processing operation after the current upgrade module and the upgraded module are rolled back, the OTA upgrade interruption delay information can be sent to the car owner's mobile terminal in advance. The OTA upgrade interruption delay information includes the delay time. In this embodiment, the delay time is the sum of the time required for the OTA upgrade of the current upgrade module, the time required for the rollback of the current upgrade module, and the time required for the rollback of the upgraded module.
[0103] As another example, before the fifth interruption result is obtained as mentioned above, since it is necessary to execute the OTA upgrade interruption processing operation after the current upgrade module and the upgraded module are rolled back, the OTA upgrade interruption delay information can be sent to the car owner's mobile terminal in advance. The OTA upgrade interruption delay information includes the delay time. In this embodiment, the delay time is the sum of the time required for the rollback of the current upgrade module and the time required for the rollback of the upgraded module.
[0104] The interruption delay duration is sent to a terminal of a target user corresponding to the target device.
[0105] Specifically, after obtaining the interruption delay duration, the interruption delay duration can be sent to the target user's terminal corresponding to the target device (such as a mobile phone, computer and other devices) to prompt the car owner in advance of the time required for the OTA interruption processing to end.
[0106] It should be understood that the order of execution of the steps in the above embodiment does not necessarily 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 invention.
[0107] In one embodiment, an electronic device is provided, and the electronic device is used to execute the OTA upgrade interruption method in the above embodiment.
[0108] In one embodiment, a vehicle is provided, the vehicle comprising the above-mentioned electronic device.
[0109] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the OTA upgrade interruption method in the above embodiment is implemented.
[0110] Those of ordinary skill in the art can understand that all or part of the processes in the OTA upgrade interruption method of the above-mentioned embodiment can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0111] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0112] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for interrupting OTA upgrade. It is characterized in that include: When receiving an OTA upgrade interrupt signal for a target device, detecting an OTA upgrade status of each processing module in the target device; The target device includes a plurality of the processing modules; Determine the current OTA upgrade stage according to the OTA upgrade status of each processing module, and perform OTA upgrade interrupt processing on each processing module according to the current OTA upgrade stage; Determining the current OTA upgrade stage according to the OTA upgrade status of each processing module includes: When the OTA upgrade status of all the processing modules in the target device is in the ready-to-upgrade status, determining that the current OTA upgrade stage is the ready-to-upgrade stage; When the OTA upgrade state of at least one of the processing modules is in an upgrading state or an upgraded state, determining that the current OTA upgrade stage is in an upgrading stage; The performing OTA upgrade interrupt processing on each of the processing modules according to the current OTA upgrade stage includes: When the current OTA upgrade stage is the upgrading stage, recording the processing module whose OTA upgrade status is the upgraded status as a historical upgrade module, and recording the next processing module after the historical upgrade module in the preset upgrade sequence as the current upgrade module; Determine whether there is a processing module having a version association relationship with the current upgrade module; If there is no processing module having a version association relationship with the current upgrade module, determining an upgrade interruption gap according to the OTA upgrade state of the current upgrade module when the OTA upgrade interruption signal is received, and performing OTA upgrade interruption processing in the upgrade interruption gap to obtain a gap interruption processing result; If there is a processing module that has a version association relationship with the current upgrade module, the minimum interruption duration is determined according to the version rollback time or version upgrade time of each processing module that has a version association relationship with the current upgrade module, and the time interruption processing result is determined according to the minimum interruption duration.
2. The OTA upgrade interruption method according to claim 1, It is characterized in that The performing OTA upgrade interrupt processing on each of the processing modules according to the current OTA upgrade stage includes: When the current OTA upgrade stage is the preparation upgrade stage, an OTA upgrade interrupt operation is performed on all the processing modules to obtain the OTA upgrade interrupt result.
3. The OTA upgrade interruption method according to claim 1, It is characterized in that The gap interruption processing result includes a first interruption result; determining the upgrade interruption gap according to the OTA upgrade state of the current upgrade module when the OTA upgrade interruption signal is received, and performing OTA upgrade interruption processing in the upgrade interruption gap to obtain the gap interruption processing result, including: If the OTA upgrade status of the current upgrade module is the ready-to-upgrade status when the OTA upgrade interrupt signal is received, the upgrade gap before the current upgrade module is determined as the upgrade interrupt gap, and OTA upgrade interrupt processing is performed on all processing modules except the historical upgrade module to obtain a first interrupt result; the first interrupt result includes the OTA upgrade result corresponding to the historical upgrade module, and the OTA interrupt results corresponding to all processing modules except the historical upgrade module.
4. The OTA upgrade interruption method according to claim 1, It is characterized in that The gap interruption processing result includes a second interruption result; the upgrade interruption gap is determined according to the OTA upgrade state of the current upgrade module when the OTA upgrade interruption signal is received, and the OTA upgrade interruption processing is performed in the upgrade interruption gap to obtain the gap interruption processing result, and also includes: If the OTA upgrade state of the current upgrade module is in the upgrading state when the OTA upgrade interruption signal is received, the upgrade gap after the current upgrade module is determined as the upgrade interruption gap, and the current upgrade module is OTA upgraded; When the OTA upgrade of the current upgrade module is completed, OTA upgrade interrupt processing is performed on all processing modules except the current upgrade module and the historical upgrade module to obtain a second interrupt result; the second interrupt result includes the OTA upgrade results corresponding to the current upgrade module and the historical upgrade module one by one, and the OTA interrupt results corresponding to all processing modules except the current upgrade module and the historical upgrade module.
5. The OTA upgrade interruption method according to claim 1, It is characterized in that The determining of the minimum interruption duration according to the version rollback time or version upgrade time of each processing module having a version association relationship with the current upgrade module, and determining the time interruption processing result according to the minimum interruption duration, includes: Recording the processing modules other than the historical upgrade modules that have a version association relationship with the current upgrade module as modules whose versions have not been upgraded, and recording the historical upgrade modules that have a version association relationship with the current upgrade module as upgraded modules; Determine the OTA upgrade state of the current upgrade module when the OTA upgrade interrupt signal is received; If the OTA upgrade status of the current upgrade module is in the upgrading status or the ready-to-upgrade status when the OTA upgrade interrupt signal is received, a first rollback time corresponding to the upgraded module and a second rollback time corresponding to the current upgrade module are obtained, and the sum of the first rollback time and the second rollback time is recorded as the total rollback duration; The total upgrade duration corresponding to the module whose version has not been upgraded is obtained, and a minimum interruption duration is determined according to the total upgrade duration and the total rollback duration, and a time interruption processing result is determined according to the minimum interruption duration.
6. The OTA upgrade interruption method according to claim 5, It is characterized in that The time interruption processing result includes a third interruption result; the determining of the minimum interruption duration according to the total upgrade duration and the total rollback duration, and determining the time interruption processing result according to the minimum interruption duration, includes: Compare the total upgrade duration with the total rollback duration; When the total upgrade duration is less than or equal to the total rollback duration, the total upgrade duration is determined as the minimum interruption duration, and the currently upgraded module and the module whose version has not been upgraded are OTA upgraded; When the OTA upgrades of the current upgrade module and the module whose version has not been upgraded are completed, OTA upgrade interrupt processing is performed on the remaining upgrade modules to obtain a third interrupt result; the remaining upgrade modules refer to all processing modules except the current upgrade module, the upgraded modules and the module whose version has not been upgraded; the third interrupt result includes the OTA upgrade results corresponding to the upgraded modules, the modules whose version has not been upgraded and the current upgrade module, and the OTA interrupt results corresponding to the remaining upgrade modules.
7. The OTA upgrade interruption method according to claim 6, It is characterized in that The time interruption processing result also includes a fourth interruption result; after comparing the total upgrade duration with the total rollback duration, it also includes: When the total upgrade duration is greater than the total rollback duration, determining the total rollback duration as the minimum interruption duration, and performing OTA upgrade on the current upgrade module; When the OTA upgrade of the current upgrade module is completed, rolling back the current upgrade module and the upgraded module; When the rollback of the current upgrade module and the upgraded module is completed, OTA upgrade interrupt processing is performed on all the processing modules to obtain a fourth interrupt result; the fourth interrupt result includes the OTA upgrade results corresponding to the current upgrade module and the upgraded module respectively, the rollback results corresponding to the current upgrade module and the upgraded module one by one, and the OTA interrupt results corresponding to all processing modules.
8. The OTA upgrade interruption method according to claim 5, It is characterized in that The time interruption processing result includes a fifth interruption result; the minimum interruption duration is determined according to the version rollback time or version upgrade time of each processing module having a version association relationship with the current upgrade module, and the time interruption processing result is determined according to the minimum interruption duration, including: If the OTA upgrade state of the current upgrade module is a rollback state when the OTA upgrade interrupt signal is received, rollback processing is performed on the current upgrade module and the upgraded module; When the rollback of the current upgrade module and the upgraded modules is completed, OTA upgrade interrupt processing is performed on all the processing modules to obtain a fifth interrupt result; the fifth interrupt result includes the OTA upgrade result corresponding to the upgraded module, the rollback results corresponding to the current upgrade module and the upgraded module one by one, and the OTA interrupt results corresponding to all processing modules.
9. The OTA upgrade interruption method according to claim 1, It is characterized in that After performing OTA upgrade interrupt processing on each processing module according to the current OTA upgrade stage, the method further includes: The OTA upgrade interruption result is sent to the preset server, and the version upgrade update information fed back by the preset server is received; the version upgrade update information is generated by the preset server after determining the module to be upgraded from all the processing modules according to the OTA upgrade interruption result; the OTA upgrade interruption result is obtained after performing OTA upgrade interruption processing on each of the processing modules according to the current OTA upgrade stage; The module to be upgraded is OTA upgraded according to the OTA upgrade interruption result and the version upgrade update information.
10. The OTA upgrade interruption method according to claim 1, It is characterized in that After performing OTA upgrade interrupt processing on each processing module according to the current OTA upgrade stage, the method further includes: Obtaining the interruption delay duration; the interruption delay duration refers to the total duration required for performing OTA upgrade interruption processing on each processing module according to the current OTA upgrade stage; The interruption delay duration is sent to a terminal of a target user corresponding to the target device.
11. An electronic device, It is characterized in that The electronic device is used to execute the OTA upgrade interruption method according to any one of claims 1 to 10.
12. A vehicle, It is characterized in that The vehicle includes the electronic device as claimed in claim 11.
13. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the OTA upgrade interruption method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Vehicle control device, vehicle control method, and storage medium
CN111038414A
Information update device and information update method
CN111201510A
OTA upgrading method and device based on finite-state machine
CN111722860A
OTA upgrading task life cycle strategy management method
CN112134940A
Software update apparatus
JP2017097620A
