Search

CN-121996270-A - OTA upgrading method and device, computer readable storage medium and vehicle

CN121996270ACN 121996270 ACN121996270 ACN 121996270ACN-121996270-A

Abstract

The application discloses an OTA upgrading method and device, a computer readable storage medium and a vehicle, and relates to the technical field of OTA service; and when the target task is in a trigger state, determining the response state of the target task based on the state of the flag bit. The method of the application can effectively coordinate system resource allocation in the key stage of OTA upgrading, and reduce upgrading abnormality caused by resource competition, thereby improving the stability and success rate of OTA upgrading process and improving user experience.

Inventors

  • MA ZHANMIN

Assignees

  • 长城汽车股份有限公司

Dates

Publication Date
20260508
Application Date
20260120

Claims (10)

  1. 1. An OTA upgrade method, the method comprising: Setting a zone bit for a target stage in the OTA upgrading process; Acquiring the triggering condition of the target task when executing the upgrading task corresponding to the target stage; And under the condition that the target task is in a trigger state, determining the response state of the target task based on the state of the flag bit.
  2. 2. The OTA upgrade method of claim 1 wherein the determining the response status of the target task based on the status of the flag bit comprises: And under the condition that the flag bit is in the effective state, determining that the response state of the target task is an unresponsive state.
  3. 3. The OTA upgrade method of claim 2 wherein the determining that the flag bit is in a valid state comprises: and under the condition that the zone bit is a first preset threshold value, determining that the zone bit is in the valid state.
  4. 4. The OTA upgrade method of claim 1, wherein the method further comprises: Acquiring an upgrading state of the upgrading task; and under the condition that the upgrading state is the upgrading completion state, clearing the flag bit.
  5. 5. The OTA upgrade method according to claim 2 or 4, wherein the method further comprises: and under the condition that the zone bit is in an invalid state, determining the response state of the target task as a response state.
  6. 6. The OTA upgrade method of claim 5, further comprising: And under the condition that the zone bit is a second preset threshold value, determining that the zone bit is in the invalid state.
  7. 7. The OTA upgrade method of claim 1 wherein the target tasks include a log compression task, an upgrade data backup task, and/or a cache clean-up task.
  8. 8. A computer readable storage medium, having stored thereon a program which when executed by a processor implements the OTA upgrading method according to any one of claims 1-7.
  9. 9. A vehicle comprising a memory, a processor and a program stored on the memory and executable on the processor, the processor implementing the OTA upgrade method according to any one of claims 1-7 when executing the program.
  10. 10. An OTA upgrading device, said device comprising: The setting module is used for setting a zone bit for a target stage in the OTA upgrading process; the acquisition module is used for acquiring the triggering condition of the target task when the upgrading task corresponding to the target stage is executed; And the control module is used for determining the response state of the target task based on the state of the zone bit under the condition that the target task is in a trigger state.

Description

OTA upgrading method and device, computer readable storage medium and vehicle Technical Field The present application relates to the field of OTA service technologies, and in particular, to an OTA upgrading method, a computer readable storage medium, a vehicle, and an OTA upgrading device. Background When an OTA (Over-The-Air) upgrade enters a silence period and performs key steps of high resource occupation such as security access, fingerprint writing and The like, if The upgrade system triggers a background task of high resource occupation at The same time, the two will compete with limited CPU (Central Processing Unit ) and memory resources. The concurrent execution of such resource-intensive tasks results in temporary exhaustion of upgrade system resources, severely affecting reliability and user experience of OTA upgrades. Disclosure of Invention The present application aims to solve at least one of the technical problems in the related art to some extent. Therefore, a first objective of the present application is to provide an OTA upgrade method, in which a flag bit is set in a target stage during an OTA upgrade process to identify a state of the stage, when an upgrade task corresponding to the target stage starts to be executed, a trigger condition of the target task is first obtained, if the target task is in a triggered state, a response state of the target task is determined according to a current state of the flag bit, if the flag bit is in an effective state, the target task is controlled to be temporarily executed, so that a critical operation of the target task and an upgrade system in the target stage is prevented from preempting resources, and if the flag bit is in an ineffective state, the target task is allowed to be normally executed. Through the dynamic response control mechanism based on the flag bit state, system resource allocation can be effectively coordinated in a key stage of OTA upgrading, and upgrading abnormality caused by resource competition is reduced, so that stability and success rate of an OTA upgrading process are improved, and user experience is improved. A second object of the present application is to propose a computer readable storage medium. A third object of the present application is to propose a vehicle. A fourth objective of the present application is to provide an OTA upgrading device. In order to achieve the above purpose, an embodiment of a first aspect of the present application provides an OTA upgrade method, where in an OTA upgrade process, a flag bit is set for a target stage, when an upgrade task corresponding to the target stage is executed, a trigger condition of the target task is obtained, and in a case that the target task is in a trigger condition, a response condition of the target task is determined based on a state of the flag bit. According to the OTA upgrading method provided by the embodiment of the application, in the OTA upgrading process, the flag bit is set for the target stage, the triggering condition of the target task is obtained when the upgrading task corresponding to the target stage is executed, and the response state of the target task is determined based on the state of the flag bit under the condition that the target task is in the triggering state. Therefore, the method can effectively coordinate system resource allocation in the key stage of OTA upgrading, and reduce upgrading abnormality caused by resource competition, thereby improving the stability and success rate of the OTA upgrading process and improving user experience. In addition, the OTA upgrading method according to the above embodiment of the present application may further have the following additional technical features: According to one embodiment of the application, the determining the response state of the target task based on the state of the flag bit comprises determining that the response state of the target task is a non-response state if the flag bit is determined to be in a valid state. According to one embodiment of the application, the determination that the flag bit is in the valid state comprises determining that the flag bit is in the valid state when the flag bit is a first preset threshold. According to one embodiment of the application, the method further comprises the steps of obtaining the upgrading state of the upgrading task, and clearing the flag bit when the upgrading state is the upgrading completion state. According to one embodiment of the application, the method further comprises determining that the response state of the target task is a response state in the case that the flag bit is in an invalid state. According to one embodiment of the application, the method further comprises determining that the flag bit is in the invalid state if the flag bit is a second preset threshold. According to one embodiment of the application, the target tasks comprise a log compression task, an upgrade data backup task and/or a cache cleaning task. T