CN115480806A - Upgrading method and device of over-the-air technology OTA - Google Patents

Upgrading method and device of over-the-air technology OTA Download PDF

Info

Publication number
CN115480806A
CN115480806A CN202210989454.0A CN202210989454A CN115480806A CN 115480806 A CN115480806 A CN 115480806A CN 202210989454 A CN202210989454 A CN 202210989454A CN 115480806 A CN115480806 A CN 115480806A
Authority
CN
China
Prior art keywords
upgrading
ota
partition
software
upgrade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210989454.0A
Other languages
Chinese (zh)
Inventor
刘健
何磊
顾晓强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yingche Technology Zhejiang Co ltd
Original Assignee
Yingche Technology Zhejiang Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yingche Technology Zhejiang Co ltd filed Critical Yingche Technology Zhejiang Co ltd
Priority to CN202210989454.0A priority Critical patent/CN115480806A/en
Publication of CN115480806A publication Critical patent/CN115480806A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an over-the-air technology OTA upgrading method and a device, comprising the following steps: acquiring an over-the-air technology OTA upgrade package; pre-upgrading the controller to be upgraded and informing a user that OTA upgrading can be carried out; and upgrading the currently running software by using an upgrading packet of the OTA on the pre-upgraded controller according to the received instruction for determining the OTA upgrading by the user. The invention shortens the OTA upgrading time, optimizes the upgrading process and improves the OTA upgrading experience of the user.

Description

Upgrading method and device of over-the-air technology OTA
Technical Field
The invention relates to the technical field of electric digital data processing, in particular to an over-the-air technology OTA upgrading method and device.
Background
The Over the Air (OTA for short) technology is a technology for downloading data through a wireless network. With The continuous development of Over-The-Air (OTA for short) technology, OTA upgrade has become a standard mode for upgrading an operating system of a terminal. In the using process, the terminal can automatically download the OTA upgrade package through the network, so that the operating system can be upgraded without loss.
At present, the OTA upgrade method has a concern that software on a terminal can still normally operate when a refresh failure occurs, but neglects the influence of the software on the upgrade time, and there is a need for an OTA upgrade method capable of shortening the upgrade time while ensuring that the software can still normally operate when the refresh failure occurs.
Disclosure of Invention
The invention provides an over-the-air technology OTA upgrading method and device, which are used for solving the problems.
The invention provides an over-the-air technology OTA upgrading method, which comprises the following steps:
acquiring an over-the-air technology OTA upgrade package;
pre-upgrading the controller to be upgraded and informing a user that OTA upgrading can be carried out;
and upgrading the currently running software by using an upgrading packet of the OTA on the pre-upgraded controller according to the received instruction for determining the OTA upgrading by the user.
According to the upgrading method of the OTA, the controller to be upgraded is a single-operation partition controller, and the single-operation partition controller comprises an operation partition and a backup partition;
correspondingly, the pre-upgrading of the controller to be upgraded comprises the following steps:
pre-backing up the currently running software in the running partition into the backup partition so as to complete pre-upgrading;
the method for upgrading the software running at present by using the over-the-air technology OTA upgrading packet on the pre-upgraded controller comprises the following steps:
and upgrading the currently running software in the running partition by using the upgrading packet of the OTA.
According to the upgrading method of the over-the-air technology OTA provided by the invention, after the software currently running in the running partition is upgraded by using the upgrading packet of the over-the-air technology OTA, the method comprises the following steps:
and under the condition that the currently running software fails to be upgraded, restoring the software which fails to be upgraded in the running partition by using the currently running software which is backed up in the backup partition in advance.
According to the upgrading method of the OTA, the controller to be upgraded is a multi-operation partition controller, and the multi-operation partition controller comprises an operation partition in an activated state and an operation partition in an inactivated state;
correspondingly, the pre-upgrading of the controller to be upgraded comprises:
upgrading the software in the running partition in the inactivated state according to the upgrading packet of the OTA to complete pre-upgrading;
the method for upgrading the software running at present by using the over-the-air technology OTA upgrading packet on the pre-upgraded controller comprises the following steps:
and switching the activated state corresponding to the running partition where the currently running software is located into the inactivated state, and switching the inactivated state corresponding to the running partition where the upgraded software is located into the activated state to complete the upgrade.
According to the upgrading device of the over-the-air technology OTA, after the software in the running partition in the non-activated state is upgraded according to the upgrading packet of the over-the-air technology OTA, the method further comprises the following steps:
and in the case of failure of software upgrading in the running partition in the inactivated state, continuing running with the currently running software in the running partition in the activated state.
The invention also provides an over the air technology OTA upgrading device, which comprises:
the upgrading package obtaining module is used for obtaining an upgrading package of an over-the-air technology OTA;
the pre-upgrading and informing module is used for pre-upgrading the controller to be upgraded and informing a user that OTA upgrading can be carried out;
and the upgrading module is used for upgrading the currently running software by using an upgrading package of the OTA on the controller after pre-upgrading according to the received instruction for determining the OTA upgrading by the user.
According to the upgrading device of the OTA, the controller to be upgraded is a single-operation partition controller, and the single-operation partition controller comprises an operation partition and a backup partition;
accordingly, the pre-upgrade and notification module comprises:
the single-operation pre-backup unit is used for backing up the currently-operated software in the operation partition into the backup partition in advance so as to complete pre-upgrading;
the upgrade module includes:
and the single-operation upgrading unit is used for upgrading the software currently operated in the operation subarea by using the upgrading packet of the OTA.
According to the upgrading device of the OTA, the controller to be upgraded is a multi-operation partition controller, and the multi-operation partition controller comprises an operation partition in an activated state and an operation partition in an inactivated state;
accordingly, the pre-upgrade and notification module comprises:
the multi-operation pre-upgrading unit is used for upgrading the software in the operation subarea in the inactivated state according to the upgrading packet of the OTA to finish pre-upgrading;
the upgrade module includes:
and the multi-operation state switching unit is used for switching the activation state corresponding to the operation partition where the currently-operated software is located into the deactivation state and switching the deactivation state corresponding to the operation partition where the upgraded software is located into the activation state so as to complete the upgrade.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the program, the upgrading method of the OTA is realized.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of upgrading over the air technology, OTA, as in any one of the above.
The method and the device for upgrading the OTA in the over-the-air technology provided by the invention can be used for upgrading the currently running software by pre-upgrading the controller to be upgraded and after the received user determines the OTA upgrading instruction, thereby finishing the whole OTA upgrading. Before the user selects formal upgrade, the preparation work is completed in advance, so that the time of the formal upgrade is shortened, the flow of the formal upgrade is optimized, and the OTA upgrade experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow diagram of a single run zone controller OTA upgrade method in the prior art;
FIG. 2 is a flow diagram of a prior art OTA upgrade method for a multiple run zone controller;
FIG. 3 is a flowchart illustrating an over-the-air technology OTA upgrading method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a single-run partition controller OTA upgrade method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a multi-operation partition controller OTA upgrade method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an over-the-air technology OTA upgrading device provided in an embodiment of the present invention;
fig. 7 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Over-the-air technology OTA upgrades on vehicles can generally be divided into OTA upgrades on single-run zone controllers and OTA upgrades on multi-run zone controllers.
As shown in FIG. 1, a single-run zone controller has only one run zone, while typically having one backup zone. Wherein, the upgrading and the running of the software are both in the running partition. When the software is upgraded, the software currently running in the running partition can be backed up to the backup partition, and if the upgrade fails, the software in the backup partition can be restored to the running partition.
As shown in fig. 2, the multi-partition controller includes multiple partitions, but only one partition is activated at a time, the other partitions are not activated, and the software is run in the activated partition and upgraded in the non-activated partition. When the upgrade is successful, switching the activation partition to the operation partition of the upgrade to realize the enablement of new software; and if the upgrading fails, not switching the activated partition.
Based on the two OTA upgrading principles, the invention optimizes the backup upgrading processes of the single-operation partition controller and the multi-operation partition controller in the OTA process, optimizes the OTA processes, and provides the OTA upgrading method and device of the over-the-air downloading technology, which can effectively shorten the OTA upgrading time of a user.
The method and apparatus for upgrading over the air technology OTA of the present invention will be specifically described with reference to the accompanying drawings.
FIG. 3 is a flowchart illustrating an over-the-air technology OTA upgrading method according to an embodiment of the present invention; as shown in fig. 3, an over-the-air technology OTA upgrading method includes the following steps:
s301, an over-the-air technology OTA upgrade package is obtained.
In this step, the OTA server receives the software of the latest version uploaded by the developer and applied to the controller, sends an OTA upgrade request to the OTA device after receiving the file of the latest version, and the OTA device acquires the software of the latest version from the OTA server according to the OTA upgrade request, namely, the OTA upgrade package of the over-the-air download technology OTA.
S302, the controller to be upgraded is pre-upgraded, and the user is informed that OTA upgrade can be carried out.
In this step, the controller that needs software upgrade, whether it is a single-operation partition controller or a multi-operation partition controller, performs pre-upgrade work, that is, preparation work for subsequent formal upgrade, and after completing the preparation work, notifies the user that the upgrade preparation work has been completed, and may perform formal OTA upgrade. Specifically, the completion of the pre-upgrading work of the user is prompted on the automobile display screen through the HMI, and the user can perform subsequent formal upgrading. The specific pre-upgrade process is different for different controllers, and the pre-upgrade process for different controllers is described below.
And S303, upgrading the currently running software by using an upgrading package of the OTA on the pre-upgraded controller according to the received instruction for determining the OTA upgrading by the user.
In this step, the user may perform OTA upgrade according to his own needs after seeing the notification in S102, and after receiving the instruction for the user to determine OTA upgrade, the OTA device upgrades the software currently running on the controller on the basis of completing the pre-upgrade work. The specific upgrading process is different according to different controllers, and the upgrading process of different controllers is described in the following.
The method for upgrading the OTA in the over-the-air technology provided by the embodiment of the invention upgrades the controller to be upgraded in advance, and upgrades the currently running software by using the controller after the upgrade is performed in advance after the received user determines the OTA upgrade instruction, thereby completing the whole OTA upgrade. Before the user selects formal upgrading, the preparation work is completed in advance, so that the formal upgrading time is shortened, the formal upgrading process is optimized, the OTA upgrading experience of the user is improved, and the problem that the user cannot normally use the OTA in the driving process due to the fact that the OTA needs too long time to be upgraded is solved.
Further, the controller to be upgraded is a single-operation partition controller, and the single-operation partition controller comprises an operation partition and a backup partition.
Correspondingly, the pre-upgrading of the controller to be upgraded comprises the following steps:
and pre-backing up the currently running software in the running partition into the backup partition so as to finish pre-upgrading.
In this embodiment, the pre-upgrade performed on the single-operation partition controller is that after receiving the OTA upgrade package of the latest version and before the user determines the formal software upgrade, the upgrade Master (i.e., OTA Master) backs up the currently-operating software in the operation partition to the backup partition in advance, instead of backing up the currently-operating software to the partition after the user issues the OTA upgrade instruction.
The upgrading of the currently running software by using the upgrading packet of the over-the-air technology OTA on the pre-upgraded controller comprises the following steps:
and upgrading the currently running software in the running partition by using the upgrading packet of the OTA.
In this embodiment, if an instruction for determining the formal upgrade by the user is received, the upgrade master control directly upgrades the currently running software in the running partition without backing up the currently running software in the formal upgrade process, and then upgrades the currently running software in the running partition according to the upgrade package of the over-the-air technology OTA, so that the time for the formal OTA upgrade is greatly shortened, and the user experience is improved.
According to the method for upgrading the OTA in the air download technology, provided by the embodiment of the invention, aiming at a single-operation partition controller, after receiving an OTA upgrade package of a latest version and before a user determines formal software upgrade, the software currently operated in an operation partition is backed up to a backup partition in advance; when receiving an OTA formal upgrade instruction, the software currently running in the running partition is upgraded directly according to the OTA upgrade package, so that the backup time of the currently running software after the OTA upgrade is started by a user is saved, and the user experience is improved.
FIG. 4 is a flowchart illustrating a single-run partition controller OTA upgrade method according to an embodiment of the present invention; as shown in fig. 4, after the software currently running in the running partition is upgraded by using the upgrade package of the over-the-air technology OTA, the method includes:
and under the condition that the currently-operated software fails to be upgraded, restoring the software which fails to be upgraded in the operating partition by using the currently-operated software which is backed up in the backup partition in advance.
In this embodiment, if the currently running software in the running partition fails to be upgraded, the software backed up in the backup partition is rolled back to the running partition in advance, and the running partition still runs normally with the previous software, so as to ensure the normal running of the single-running partition controller.
In addition, in the software backup process, the backup result is recorded through a mark bit which can show whether the backup is successful or not; in the formal upgrading process, whether the backup of the current software needs to be skipped is determined according to the mark bit, and the software in the running partition is directly upgraded. If the mark bit shows that the backup is not successful, the currently running software needs to be backed up in the formal upgrading process. And if the mark bit shows that the backup is successful, directly skipping the backup in the formal upgrading process, and upgrading the currently running software according to the OTA upgrading packet.
The upgrading method of the OTA provided by the embodiment of the invention can directly utilize the software which is pre-backed up in the backup partition in the pre-upgrading process under the condition that the upgrading of the currently running software fails, thereby ensuring the normal running of the controller.
Fig. 5 is a schematic flowchart of a method for upgrading a multi-partition controller OTA according to an embodiment of the present invention, and as shown in fig. 5, in another embodiment of the present invention, the controller to be upgraded is a multi-partition controller, and the multi-partition controller includes a running partition in an active state and a running partition in an inactive state.
The running partition in the activated state is the running partition in which the current software runs, and the running partition in the inactivated state is the running partition in which the software waits for upgrading.
Correspondingly, the pre-upgrading of the controller to be upgraded comprises the following steps:
and upgrading the software in the running partition in the inactivated state according to the upgrading packet of the OTA to finish pre-upgrading.
In this embodiment, if the controller to be upgraded is a multi-operation partition controller, the pre-upgrade operation is to upgrade software in an inactive operation partition according to the received OTA upgrade package of the latest version after receiving the OTA upgrade package of the latest version and before the user determines the formal software upgrade, so that the software in the inactive operation partition becomes the latest version.
It should be noted that the pre-upgrade process is automatically performed after the OTA upgrade package is acquired, and the user is notified of the formal upgrade after the pre-upgrade is completed, instead of starting after the user issues the formal upgrade instruction.
The method for upgrading the software running at present by using the over-the-air technology OTA upgrading packet on the pre-upgraded controller comprises the following steps:
and switching the activated state corresponding to the running partition where the currently running software is located into the inactivated state, and switching the inactivated state corresponding to the running partition where the upgraded software is located into the activated state to complete the upgrade.
In this embodiment, since the pre-upgrade work has already upgraded the software in an operating partition in an inactive state, after receiving a formal upgrade instruction issued by a user, the software in the operating partition in the inactive state does not need to be upgraded, and only the operating partition state corresponding to the software having the latest version is converted from the inactive state to the active state, and the operating partition state where the original software is located is converted from the active state to the inactive state, so that the software runs in the latest state.
According to the method for upgrading the OTA in the air download technology, provided by the embodiment of the invention, aiming at a multi-operation partition controller, after receiving an OTA upgrade package of the latest version and before a user determines formal software upgrade, software in an operation partition in an inactivated state is upgraded in advance; when receiving an OTA formal upgrade instruction, the state of the operation partition is directly adjusted to complete formal upgrade, thereby greatly saving the software upgrade time of a user after starting OTA upgrade and improving the user experience.
Further, after the upgrading the software in the running partition in the inactive state according to the upgrade package of the over-the-air technology OTA, the method further comprises:
and in the case of failure of software upgrading in the running partition in the inactivated state, continuing running with the currently running software in the running partition in the activated state.
In this embodiment, if the software in the running partition in the inactive state fails to be upgraded in the pre-upgrade process, the current running software continues to run, and the state of the running partition is not switched.
It should be noted that the software upgrade result in the running partition in the inactive state is recorded by the flag bit, and when the official OTA is upgraded, whether the software upgrade in the running partition in the inactive state is successful is determined by the flag bit. And if the mark bit shows that the software in the running partition in the inactivated state is successfully upgraded, directly switching the state of the running partition in which the software of the latest version is located in the formal OTA upgrading process, thereby completing the OTA upgrading. If the flag bit shows that the software in the running partition in the inactivated state is not successfully upgraded, the software in the running partition in the inactivated state needs to be tried to be upgraded again in the formal OTA upgrading process.
According to the over-the-air technology OTA upgrading method provided by the embodiment of the invention, under the condition that the software in the running partition in the non-activated state fails to be upgraded, the currently running software in the running partition in the activated state continues to run, so that the normal running of the controller is ensured.
In addition, no matter the controller runs in a single mode or runs in multiple modes, the result after formal upgrading can be displayed to the user through the HMI, and the user can know whether the software running currently is the latest version.
The upgrading device of the over-the-air technology OTA provided by the invention is described below, and the upgrading device of the over-the-air technology OTA described below and the upgrading method of the over-the-air technology OTA described above can be referred to correspondingly.
Fig. 6 is a schematic structural diagram of an over-the-air technology OTA upgrading device according to an embodiment of the present invention, and as shown in fig. 6, the over-the-air technology OTA upgrading device includes an upgrade package obtaining module 601, a pre-upgrade and notification module 602, and an upgrade module 603.
The upgrade package obtaining module 601 is configured to obtain an upgrade package of an over-the-air technology OTA.
In the module, the OTA server receives software of the latest version uploaded by a developer and applied to the controller, the OTA server sends an OTA upgrading request to the OTA equipment after receiving the file of the latest version, and the OTA equipment acquires the software of the latest version from the OTA server according to the OTA upgrading request, namely an OTA upgrading package.
A pre-upgrade and notification module 602, configured to pre-upgrade a controller to be upgraded and notify a user that OTA upgrade is available.
In this module, the controller that needs software upgrade, whether it is a single-operation partition controller or a multi-operation partition controller, performs pre-upgrade work, that is, preparation work for subsequent formal upgrade, and after completing the preparation work, notifies the user that the upgrade preparation work has been completed, and may perform formal OTA upgrade. Specifically, the completion of the pre-upgrading work of the user is prompted on the automobile display screen through the HMI, and the user can perform subsequent formal upgrading. The specific pre-upgrade process is different for different controllers, and the pre-upgrade process for different controllers is described below.
And the upgrading module 603 is configured to upgrade, according to the received instruction for determining the OTA upgrading by the user, the currently running software on the pre-upgraded controller by using the over-the-air technology OTA upgrade package.
In this module, the user can perform OTA upgrade according to his own needs after seeing the notification in the pre-upgrade and notification module 602, and after receiving the instruction that the user determines the OTA upgrade, the OTA device upgrades the software currently running on the controller on the basis that the pre-upgrade work has been completed. The specific upgrading process is different according to different controllers, and the upgrading process of different controllers is described in the following.
The device for generating the test scene of the automatic driving provided by the embodiment of the invention carries out the pre-upgrading on the controller to be upgraded, and utilizes the controller after the pre-upgrading to upgrade the currently running software after the received instruction of the OTA upgrading determined by the user, thereby finishing the whole OTA upgrading. Before the user selects formal upgrade, the preparation work is completed in advance, so that the time of the formal upgrade is shortened, the process of the formal upgrade is optimized, the OTA upgrade experience of the user is improved, and the problem that the user cannot normally use the OTA upgrade in the driving process due to the fact that the OTA upgrade needs too long time is solved.
Further, the controller to be upgraded is a single-operation partition controller, and the single-operation partition controller comprises an operation partition and a backup partition.
Accordingly, the pre-upgrade and notification module comprises: and the single-operation pre-backup unit is used for backing up the currently operated software in the operation partition into the backup partition in advance so as to finish pre-upgrading.
In the single-operation pre-backup unit, the pre-upgrade performed on the single-operation partition controller means that after receiving the OTA upgrade package of the latest version and before the user determines the formal software upgrade, the upgrade Master (i.e., OTA Master) backs up the currently-operating software in the operation partition to the backup partition in advance, instead of backing up the currently-operating software to the partition after the user issues the OTA upgrade instruction.
The upgrade module includes: and the single-operation upgrading unit is used for upgrading the currently operated software in the operation subarea by using the upgrading packet of the OTA.
In the single-operation upgrading unit, if an instruction for determining formal upgrading by a user is received, the upgrading main control can directly upgrade the currently-operating software in the operating subarea without backing up the currently-operating software in the formal upgrading process, and then upgrade the currently-operating software in the operating subarea according to an upgrading packet of an over-the-air technology OTA, so that the upgrading time of the formal OTA is greatly shortened, and the user experience is improved.
According to the upgrading device of the OTA, provided by the embodiment of the invention, aiming at a single-operation partition controller, after receiving an OTA upgrading packet of the latest version and before a user determines formal software upgrading, the software currently running in an operation partition is backed up to a backup partition in advance; when receiving an OTA formal upgrade instruction, the software currently running in the running partition is upgraded directly according to the OTA upgrade package, so that the backup time of the currently running software after the OTA upgrade is started by a user is saved, and the user experience is improved.
In another embodiment provided by the present invention, the controller to be upgraded is a multi-operation partition controller, and the multi-operation partition controller includes an operation partition in an active state and an operation partition in an inactive state.
The running partition in the activated state is the running partition in which the current software runs, and the running partition in the inactivated state is the running partition in which the software waits for upgrading.
Accordingly, the pre-upgrade and notification module comprises: and the multi-operation pre-upgrading unit is used for upgrading the software in the operation subarea in the inactivated state according to the upgrading packet of the OTA to complete pre-upgrading.
In this embodiment, if the controller to be upgraded is a multi-operation partition controller, the pre-upgrade operation is to upgrade software in an inactive operation partition according to the received OTA upgrade package of the latest version after receiving the OTA upgrade package of the latest version and before the user determines the formal software upgrade, so that the software in the inactive operation partition becomes the latest version.
It should be noted that the pre-upgrade process is automatically performed after the OTA upgrade package is acquired, and the user is notified of the formal upgrade after the pre-upgrade is completed, instead of starting after the user issues the formal upgrade instruction.
The upgrade module includes: and the multi-operation state switching unit is used for switching the activation state corresponding to the operation partition where the currently-operated software is located into the non-activation state and switching the non-activation state corresponding to the operation partition where the upgraded software is located into the activation state so as to complete the upgrade.
In this embodiment, since the foregoing pre-upgrade work has already upgraded the software in a certain inactive running partition, after receiving a formal upgrade instruction issued by a user, the software in the inactive running partition is not upgraded, but only the running partition corresponding to the software with the latest version is converted from the inactive state to the active state, and the running partition state where the original software is located is converted from the active state to the inactive state, so that the latest software runs.
According to the upgrading device of the OTA, provided by the embodiment of the invention, aiming at a multi-operation partition controller, after receiving an OTA upgrading packet of the latest version and before a user determines formal software upgrading, software in an operation partition in an inactivated state is upgraded in advance; when receiving an OTA formal upgrade instruction, the state of the operation partition is directly adjusted to complete formal upgrade, thereby greatly saving the software upgrade time of a user after starting OTA upgrade and improving the user experience.
Fig. 7 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device may include: a processor (processor) 701, a communication Interface (Communications Interface) 702, a memory (memory) 703 and a communication bus 704, wherein the processor 701, the communication Interface 702 and the memory 703 are in communication with each other via the communication bus 704. The processor 701 may invoke logic instructions in the memory 703 to perform a method for upgrading an over-the-air technology, OTA, comprising: acquiring an over-the-air technology OTA upgrade package; pre-upgrading the controller to be upgraded and informing a user that OTA upgrading can be carried out; and upgrading the currently running software by using an upgrading packet of the OTA on the pre-upgraded controller according to the received instruction for determining the OTA upgrading by the user.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for upgrading an over-the-air technology OTA, the method being provided by the above method, the method for upgrading an over-the-air technology OTA comprising: acquiring an over-the-air technology OTA upgrade package; pre-upgrading the controller to be upgraded and informing a user that OTA upgrading can be carried out; and upgrading the currently running software by using an upgrading packet of the OTA on the pre-upgraded controller according to the received instruction for determining the OTA upgrading by the user.
The above-described embodiments of the apparatus are merely illustrative, and units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of various embodiments or some parts of embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An over the air technology OTA upgrading method is characterized by comprising the following steps:
acquiring an over-the-air technology OTA upgrade package;
pre-upgrading the controller to be upgraded and informing a user that OTA upgrading can be carried out;
and upgrading the currently running software by using an upgrading packet of the OTA on the pre-upgraded controller according to the received instruction for determining the OTA upgrading by the user.
2. The over-the-air technology (OTA) upgrade method according to claim 1, wherein the controller to be upgraded is a single-run partition controller comprising a run partition and a backup partition;
correspondingly, the pre-upgrading of the controller to be upgraded comprises the following steps:
pre-backing up the currently running software in the running partition into the backup partition so as to complete pre-upgrading;
the upgrading of the currently running software by using the upgrading packet of the over-the-air technology OTA on the pre-upgraded controller comprises the following steps:
and upgrading the currently running software in the running partition by using the upgrading packet of the OTA.
3. The method for upgrading the OTA according to claim 2, wherein after the software currently running in the running partition is upgraded by the upgrade package of the OTA, the method comprises:
and under the condition that the currently running software fails to be upgraded, restoring the software which fails to be upgraded in the running partition by using the currently running software which is backed up in the backup partition in advance.
4. The over-the-air technology (OTA) upgrade method according to claim 1, wherein the controller to be upgraded is a multi-run partition controller comprising a run partition in an active state and a run partition in an inactive state;
correspondingly, the pre-upgrading of the controller to be upgraded comprises the following steps:
upgrading the software in the running partition in the inactivated state according to the upgrading packet of the OTA to complete pre-upgrading;
the upgrading of the currently running software by using the upgrading packet of the over-the-air technology OTA on the pre-upgraded controller comprises the following steps:
and switching the activated state corresponding to the running partition where the currently running software is located into the inactivated state, and switching the inactivated state corresponding to the running partition where the upgraded software is located into the activated state to complete the upgrade.
5. The over-the-air technology (OTA) upgrade method according to claim 4, wherein after the upgrade package according to the OTA upgrades the software in the running partition in the inactive state, the method further comprises:
and in the case of failure of software upgrading in the running partition in the inactivated state, continuing running with the currently running software in the running partition in the activated state.
6. An over the air technology OTA upgrading device is characterized by comprising:
the upgrading package obtaining module is used for obtaining an upgrading package of an over-the-air technology OTA;
the pre-upgrading and informing module is used for pre-upgrading the controller to be upgraded and informing a user that OTA upgrading can be carried out;
and the upgrading module is used for upgrading the currently running software by using an upgrading package of the OTA on the controller after pre-upgrading according to the received instruction for determining the OTA upgrading by the user.
7. The over-the-air technology (OTA) upgrading device according to claim 6, wherein the controller to be upgraded is a single-run zone controller comprising a run zone and a backup zone;
correspondingly, the pre-upgrade and notification module comprises:
the single-operation pre-backup unit is used for backing up the currently operated software in the operation partition into the backup partition in advance so as to complete pre-upgrading;
the upgrade module includes:
and the single-operation upgrading unit is used for upgrading the currently operated software in the operation subarea by using the upgrading packet of the OTA.
8. The over-the-air technology (OTA) upgrading device according to claim 6, wherein the controller to be upgraded is a multi-run partition controller comprising a run partition in an active state and a run partition in an inactive state;
accordingly, the pre-upgrade and notification module comprises:
the multi-operation pre-upgrading unit is used for upgrading the software in the operation subarea in the inactivated state according to the upgrading packet of the OTA to complete pre-upgrading;
the upgrade module includes:
and the multi-operation state switching unit is used for switching the activation state corresponding to the operation partition where the currently-operated software is located into the deactivation state and switching the deactivation state corresponding to the operation partition where the upgraded software is located into the activation state so as to complete the upgrade.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements a method of over the air technology, OTA, upgrade as claimed in any of claims 1-5.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements a method of upgrading an over-the-air technology, OTA, as claimed in any of claims 1 to 5.
CN202210989454.0A 2022-08-17 2022-08-17 Upgrading method and device of over-the-air technology OTA Pending CN115480806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210989454.0A CN115480806A (en) 2022-08-17 2022-08-17 Upgrading method and device of over-the-air technology OTA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210989454.0A CN115480806A (en) 2022-08-17 2022-08-17 Upgrading method and device of over-the-air technology OTA

Publications (1)

Publication Number Publication Date
CN115480806A true CN115480806A (en) 2022-12-16

Family

ID=84421955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210989454.0A Pending CN115480806A (en) 2022-08-17 2022-08-17 Upgrading method and device of over-the-air technology OTA

Country Status (1)

Country Link
CN (1) CN115480806A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117270902A (en) * 2023-08-09 2023-12-22 大拓(山东)物联网科技有限公司 OTA upgrade package generation method and device, OTA upgrade method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117270902A (en) * 2023-08-09 2023-12-22 大拓(山东)物联网科技有限公司 OTA upgrade package generation method and device, OTA upgrade method and device

Similar Documents

Publication Publication Date Title
CN108241498B (en) Vehicle-mounted equipment upgrading method and device and vehicle
CN112732616B (en) BMC starting method, device and equipment based on SPI controller
CN111901142A (en) Firmware silent upgrading method and device for embedded equipment cluster
US20200394144A1 (en) Information processing system, information processing device, bios updating method for information processing device, and bios updating program for information processing device
US20210132937A1 (en) Vehicle control device, program update method, and program update system
CN102214106B (en) Automatic dual-system guide method of embedded device
CN110865819B (en) OS installation method, server and system
CN115480806A (en) Upgrading method and device of over-the-air technology OTA
US20230359454A1 (en) Software update device, update control method, and non-transitory storage medium
CN114172803B (en) Multi-FPGA version control and configuration system and method based on Ethernet switching technology
US20240069906A1 (en) Server, software update system, distribution method, and non-transitory storage medium
CN102065582A (en) Communication method and communication system
CN112596764B (en) Internet of things monitoring method and device based on NB-IoT remote upgrade
CN110309018B (en) Charging equipment system switching method, charging equipment and readable storage medium
CN114780114A (en) Firmware upgrading method, system, vehicle and storage medium
CN112118280A (en) Recovery method after OTA upgrade failure of WI-FI equipment
CN112166411A (en) Equipment control method, system and control terminal
CN112867026B (en) Networking processing method and device
CN110704079A (en) Vehicle-mounted system upgrading method and system based on mobile terminal
WO2017097180A1 (en) Method and apparatus for quickly starting base station
CN112732290B (en) Equipment upgrading method and device, storage medium and electronic device
CN112954036B (en) Software upgrading method, terminal equipment and system
CN113938238B (en) Time synchronization method and system
CN116931979A (en) Upgrade method, device, processor and storage medium for vehicle system
CN113835857B (en) Mounting method, device, equipment and medium of external storage equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination