CN113641379A - OTA upgrading method and system - Google Patents

OTA upgrading method and system Download PDF

Info

Publication number
CN113641379A
CN113641379A CN202110794852.2A CN202110794852A CN113641379A CN 113641379 A CN113641379 A CN 113641379A CN 202110794852 A CN202110794852 A CN 202110794852A CN 113641379 A CN113641379 A CN 113641379A
Authority
CN
China
Prior art keywords
ota
upgrading
upgrade
popup
upgrade package
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
CN202110794852.2A
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.)
FAW Bestune Car Co Ltd
Original Assignee
FAW Bestune Car 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 FAW Bestune Car Co Ltd filed Critical FAW Bestune Car Co Ltd
Priority to CN202110794852.2A priority Critical patent/CN113641379A/en
Publication of CN113641379A publication Critical patent/CN113641379A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

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

Abstract

The invention discloses an OTA upgrading method, belonging to the technical field of wireless communication, comprising the following steps: obtaining OTA upgrade package permission; the OTA upgrade package is sent to an upgrade cache region of a pre-upgrade system; and reading the OTA upgrade package and writing the OTA upgrade package into a pre-upgrade system. In the invention, the man-machine interaction can be better realized through the display of the popup window, so that a user can understand the state of the vehicle in the OTA upgrading process at the moment, and the operation is carried out according to the index of the popup window. The OTA upgrading method can help to promote smooth OTA upgrading process, meanwhile, the occurrence of unexpected problems under a plurality of failure conditions is avoided, risks are avoided for a host factory, and a guarantee is provided for a user.

Description

OTA upgrading method and system
Technical Field
The invention discloses an OTA upgrading method, and belongs to the technical field of wireless communication.
Background
In the application of wireless communication devices, after new products are released, new functions are developed or existing problems are corrected, the system is often required to be upgraded to apply the updates, and Over-the-air (OTA) is a method for distributing new software, new configuration and even updating encryption keys for the devices, so that the Over-the-air (OTA) method becomes an upgrading scheme considered by more and more manufacturers due to the advantages of convenience and high efficiency.
Therefore, the OTA remote download technology becomes a hot technology for vehicle-mounted. And the host factory deploys the tasks, pushes the upgrading tasks to the users, and the users upgrade themselves after receiving the tasks. How to set up reasonable popup strategy can guarantee that the user can effectively understand the upgrading task pushed by the host factory, and upgrade according to own will, whether effective information feedback can be given to the user in the upgrading process enables the user to understand the current process and cooperate to complete the upgrading task, which becomes the problem to be solved at present.
Disclosure of Invention
The invention aims to solve the problem that the existing OTA remote downloading technology cannot be upgraded according to the will of a user, and provides an OTA upgrading method and system.
The invention aims to solve the problems and is realized by the following technical scheme:
according to a first aspect of an embodiment of the present invention, there is provided an OTA upgrading method, including:
obtaining OTA upgrade package permission;
the OTA upgrade package is sent to an upgrade cache region of a pre-upgrade system;
and reading the OTA upgrade package and writing the OTA upgrade package into a pre-upgrade system.
Preferably, the obtaining of OTA upgrade package license includes:
when receiving the upgradable task request data, generating an upgrading task popup by the upgradable task request data;
acquiring whether the popup data is upgrade permission data or not through the upgrade task popup:
if yes, executing the next step;
and if not, ending the upgrading task.
Preferably, the step of sending the OTA upgrade package to the upgrade cache region of the pre-upgrade system includes:
acquiring an OTA upgrade package download link;
caching all partition data of the OTA upgrade package to corresponding positions of the upgrade cache region;
judging whether the OTA upgrade package is complete:
if yes, executing the next step;
and if not, repeating the OTA upgrade package downloading link.
Preferably, the reading the OTA upgrade package and writing the OTA upgrade package into the pre-upgrade system include:
reading the OTA upgrade package;
presetting an upgrading strategy and integrity and version number information of each partition data to obtain an upgrading progress and generate an upgrading progress popup;
obtaining whether the upgrade is cancelled through an upgrade progress popup:
if yes, ending upgrading;
if not, continuously acquiring the OTA upgrading progress, and executing the next step;
and judging the upgrading state according to the OTA upgrading progress.
Preferably, the determining the upgrade status according to the OTA upgrade progress includes:
when the upgrading state is completely finished, sending a popup instruction for finishing OTA upgrading, and acquiring a command for finishing the OTA upgrading popup data:
if yes, closing the pop-up window;
if not, keeping the state of sending the instruction for finishing the OTA upgrading popup;
and when the upgrading state is not started or partial upgrading is completed, continuously reading the OTA upgrading packet and writing the OTA upgrading packet into a pre-upgrading system.
According to a second aspect of the embodiments of the present invention, there is provided an OTA upgrading system, including:
the obtaining module is used for obtaining OTA upgrade package permission;
the OTA upgrade package is downloaded to an upgrade cache region of a pre-upgrade system;
and the upgrading module reads the OTA upgrading packet and writes the OTA upgrading packet into a pre-upgrading system.
Preferably, the obtaining module is configured to:
when receiving the upgradable task request data, generating an upgrading task popup by the upgradable task request data;
acquiring whether the popup data is upgrade permission data or not through the upgrade task popup:
if yes, executing the next step;
and if not, ending the upgrading task.
Preferably, the downloading module is configured to:
acquiring an OTA upgrade package download link;
caching all partition data of the OTA upgrade package to corresponding positions of the upgrade cache region;
judging whether the OTA upgrade package is complete:
if yes, executing the next step;
and if not, repeating the OTA upgrade package downloading link.
Preferably, the upgrade module is configured to:
reading the OTA upgrade package;
presetting an upgrading strategy and integrity and version number information of each partition data to obtain an upgrading progress and generate an upgrading progress popup;
obtaining whether the upgrade is cancelled through an upgrade progress popup:
if yes, ending upgrading;
if not, continuously acquiring the OTA upgrading progress, and executing the next step;
and judging the upgrading state according to the OTA upgrading progress.
Preferably, the upgrade module is further configured to:
when the upgrading state is completely finished, sending a popup instruction for finishing OTA upgrading, and acquiring a command for finishing the OTA upgrading popup data:
if yes, closing the pop-up window;
if not, keeping the state of sending the instruction for finishing the OTA upgrading popup;
and when the upgrading state is not started or partial upgrading is completed, continuously reading the OTA upgrading packet and writing the OTA upgrading packet into a pre-upgrading system.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
in the invention, the man-machine interaction can be better realized through the display of the popup window, so that a user can understand the state of the vehicle in the OTA upgrading process at the moment, and the operation is carried out according to the index of the popup window. The OTA upgrading method can help to promote smooth OTA upgrading process, meanwhile, the occurrence of unexpected problems under a plurality of failure conditions is avoided, risks are avoided for a host factory, and a guarantee is provided for a user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flow diagram illustrating a method for upgrading an OTA in accordance with an exemplary embodiment;
fig. 2 is a block diagram illustrating an upgrade system for an OTA in accordance with an exemplary embodiment.
Detailed Description
The invention is further illustrated below with reference to the accompanying figures 1-2:
the technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood 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.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
As shown in fig. 1, a first embodiment of the present patent provides an OTA upgrading method based on the prior art, including:
step 101, obtaining an OTA upgrade package license, which comprises the following specific processes:
when receiving the upgradable task request data, generating an upgrading task popup by the upgradable task request data;
acquiring whether the popup data is upgrade permission data or not through the upgrade task popup:
if yes, executing the next step;
and if not, ending the upgrading task.
102, the OTA upgrade package is sent to an upgrade cache area of a pre-upgrade system, and the specific process is as follows:
acquiring an OTA upgrade package download link;
caching all partition data of the OTA upgrade package to corresponding positions of the upgrade cache region;
judging whether the OTA upgrade package is complete:
if yes, executing the next step;
and if not, repeating the OTA upgrade package downloading link.
Step 103, reading the OTA upgrade package and writing the OTA upgrade package into a pre-upgrade system, wherein the specific process is as follows:
reading the OTA upgrade package;
presetting an upgrading strategy and integrity and version number information of each partition data to obtain an upgrading progress and generate an upgrading progress popup;
obtaining whether the upgrade is cancelled through an upgrade progress popup:
if yes, ending upgrading;
if not, continuously acquiring the OTA upgrading progress, and executing the next step;
and judging the upgrading state according to the OTA upgrading progress.
The upgrade status includes the following cases:
when the upgrading state is completely finished, sending a popup instruction for finishing OTA upgrading, and acquiring a command for finishing the OTA upgrading popup data:
if yes, closing the pop-up window;
if not, keeping the state of sending the instruction for finishing the OTA upgrading popup;
and when the upgrading state is not started or partial upgrading is completed, continuously reading the OTA upgrading packet and writing the OTA upgrading packet into a pre-upgrading system.
According to a second aspect of the embodiment of the present invention, as shown in fig. 2, there is provided an OTA upgrading system, including:
an obtaining module 201, configured to obtain OTA upgrade package permission:
when receiving the upgradable task request data, generating an upgrading task popup by the upgradable task request data;
acquiring whether the popup data is upgrade permission data or not through the upgrade task popup:
if yes, executing the next step;
and if not, ending the upgrading task.
A downloading module 202, configured to download the OTA upgrade package to an upgrade cache area of the pre-upgrade system:
acquiring an OTA upgrade package download link;
caching all partition data of the OTA upgrade package to corresponding positions of the upgrade cache region;
judging whether the OTA upgrade package is complete:
if yes, executing the next step;
and if not, repeating the OTA upgrade package downloading link.
The upgrade module 203 is configured to read the OTA upgrade package and write the OTA upgrade package into the pre-upgrade system:
reading the OTA upgrade package;
presetting an upgrading strategy and integrity and version number information of each partition data to obtain an upgrading progress and generate an upgrading progress popup;
obtaining whether the upgrade is cancelled through an upgrade progress popup:
if yes, ending upgrading;
if not, continuously acquiring the OTA upgrading progress, and executing the next step;
and judging the upgrading state according to the OTA upgrading progress.
When the upgrading state is completely finished, sending a popup instruction for finishing OTA upgrading, and acquiring a command for finishing the OTA upgrading popup data:
if yes, closing the pop-up window;
if not, keeping the state of sending the instruction for finishing the OTA upgrading popup;
and when the upgrading state is not started or partial upgrading is completed, continuously reading the OTA upgrading packet and writing the OTA upgrading packet into a pre-upgrading system.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An OTA upgrading method, comprising:
obtaining OTA upgrade package permission;
the OTA upgrade package is sent to an upgrade cache region of a pre-upgrade system;
and reading the OTA upgrade package and writing the OTA upgrade package into a pre-upgrade system.
2. The OTA upgrade method of claim 1, wherein the obtaining OTA upgrade package license comprises:
when receiving the upgradable task request data, generating an upgrading task popup by the upgradable task request data;
acquiring whether the popup data is upgrade permission data or not through the upgrade task popup:
if yes, executing the next step;
and if not, ending the upgrading task.
3. The OTA upgrading method according to claim 1, wherein the OTA upgrading packet is sent to an upgrade buffer of a pre-upgrade system, and comprises:
acquiring an OTA upgrade package download link;
caching all partition data of the OTA upgrade package to corresponding positions of the upgrade cache region;
judging whether the OTA upgrade package is complete:
if yes, executing the next step;
and if not, repeating the OTA upgrade package downloading link.
4. The OTA upgrading method according to claim 1, wherein the reading the OTA upgrade package and writing the OTA upgrade package into a pre-upgrade system comprises:
reading the OTA upgrade package;
presetting an upgrading strategy and integrity and version number information of each partition data to obtain an upgrading progress and generate an upgrading progress popup;
obtaining whether the upgrade is cancelled through an upgrade progress popup:
if yes, ending upgrading;
if not, continuously acquiring the OTA upgrading progress, and executing the next step;
and judging the upgrading state according to the OTA upgrading progress.
5. The OTA upgrading method according to claim 1, wherein the determining the upgrade status according to the OTA upgrading progress comprises:
when the upgrading state is completely finished, sending a popup instruction for finishing OTA upgrading, and acquiring a command for finishing the OTA upgrading popup data:
if yes, closing the pop-up window;
if not, keeping the state of sending the instruction for finishing the OTA upgrading popup;
and when the upgrading state is not started or partial upgrading is completed, continuously reading the OTA upgrading packet and writing the OTA upgrading packet into a pre-upgrading system.
6. An OTA upgrade system, comprising:
the obtaining module is used for obtaining OTA upgrade package permission;
the OTA upgrade package is downloaded to an upgrade cache region of a pre-upgrade system;
and the upgrading module reads the OTA upgrading packet and writes the OTA upgrading packet into a pre-upgrading system.
7. The OTA upgrade system of claim 6, wherein the obtaining module is configured to:
when receiving the upgradable task request data, generating an upgrading task popup by the upgradable task request data;
acquiring whether the popup data is upgrade permission data or not through the upgrade task popup:
if yes, executing the next step;
and if not, ending the upgrading task.
8. The OTA upgrade system of claim 6, wherein the download module is configured to:
acquiring an OTA upgrade package download link;
caching all partition data of the OTA upgrade package to corresponding positions of the upgrade cache region;
judging whether the OTA upgrade package is complete:
if yes, executing the next step;
and if not, repeating the OTA upgrade package downloading link.
9. The OTA upgrade system of claim 6, wherein the upgrade module is configured to:
reading the OTA upgrade package;
presetting an upgrading strategy and integrity and version number information of each partition data to obtain an upgrading progress and generate an upgrading progress popup;
obtaining whether the upgrade is cancelled through an upgrade progress popup:
if yes, ending upgrading;
if not, continuously acquiring the OTA upgrading progress, and executing the next step;
and judging the upgrading state according to the OTA upgrading progress.
10. The OTA upgrading system according to claim 9, wherein the upgrading module is further configured to:
when the upgrading state is completely finished, sending a popup instruction for finishing OTA upgrading, and acquiring a command for finishing the OTA upgrading popup data:
if yes, closing the pop-up window;
if not, keeping the state of sending the instruction for finishing the OTA upgrading popup;
and when the upgrading state is not started or partial upgrading is completed, continuously reading the OTA upgrading packet and writing the OTA upgrading packet into a pre-upgrading system.
CN202110794852.2A 2021-07-14 2021-07-14 OTA upgrading method and system Pending CN113641379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110794852.2A CN113641379A (en) 2021-07-14 2021-07-14 OTA upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110794852.2A CN113641379A (en) 2021-07-14 2021-07-14 OTA upgrading method and system

Publications (1)

Publication Number Publication Date
CN113641379A true CN113641379A (en) 2021-11-12

Family

ID=78417375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110794852.2A Pending CN113641379A (en) 2021-07-14 2021-07-14 OTA upgrading method and system

Country Status (1)

Country Link
CN (1) CN113641379A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933150A (en) * 2016-04-20 2016-09-07 努比亚技术有限公司 OTA upgrade method, device and system
CN110597542A (en) * 2019-09-17 2019-12-20 Oppo(重庆)智能科技有限公司 Automatic OTA (over the air) software upgrading method and device and electronic equipment
US20190391800A1 (en) * 2018-06-20 2019-12-26 Aptiv Technologies Limited Over-the-air (ota) mobility services platform
CN110851157A (en) * 2019-10-28 2020-02-28 上海旗旌科技有限公司 Method and equipment for updating vehicle-mounted terminal equipment system
CN111158718A (en) * 2019-12-26 2020-05-15 智车优行科技(北京)有限公司 Local communication server, OTA (over the air) upgrading method thereof and cloud server
CN112363742A (en) * 2020-11-03 2021-02-12 北京牛电科技有限责任公司 Firmware system upgrading method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933150A (en) * 2016-04-20 2016-09-07 努比亚技术有限公司 OTA upgrade method, device and system
US20190391800A1 (en) * 2018-06-20 2019-12-26 Aptiv Technologies Limited Over-the-air (ota) mobility services platform
CN110597542A (en) * 2019-09-17 2019-12-20 Oppo(重庆)智能科技有限公司 Automatic OTA (over the air) software upgrading method and device and electronic equipment
CN110851157A (en) * 2019-10-28 2020-02-28 上海旗旌科技有限公司 Method and equipment for updating vehicle-mounted terminal equipment system
CN111158718A (en) * 2019-12-26 2020-05-15 智车优行科技(北京)有限公司 Local communication server, OTA (over the air) upgrading method thereof and cloud server
CN112363742A (en) * 2020-11-03 2021-02-12 北京牛电科技有限责任公司 Firmware system upgrading method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN112486554B (en) Vehicle-mounted networking terminal software upgrading method
US10705820B2 (en) Method and apparatus for secure multi-cycle vehicle software updates
CN106899540B (en) Update method, management system, eUICC and the terminal of user contracting data
EP1973035B1 (en) System and method for the management of wireless communications device system software downloads in the field
CN1158881C (en) Method for managing mobile station operation parameter
KR100911604B1 (en) System and method for the management of wireless communications device system software downloads in the field
EP3337219B1 (en) Carrier configuration processing method, device and system, and computer storage medium
JP4865835B2 (en) Method, software, and apparatus for performing actions on a wireless device using action lists and versioning
CN1918932B (en) Updating of the preferred roaming list (prl) in a sim (subscriber identity module) / ruim (removable user identity module) card.
WO2018108132A1 (en) Access control method and system, electronic device, and computer storage medium
JP2005500607A (en) System and method for temporary application component removal and reloading in a wireless device
CN111158738B (en) Headset firmware upgrading method and device and readable storage medium
KR20100033451A (en) Mobile terminals and method for updating software thereof
CN103475512A (en) Internet of Things remote management platform migration method, device and Internet of Things terminal
CN101895883B (en) Smart card supporting authentication arithmetic update and method for updating authentication arithmetic
JP4203232B2 (en) Communication terminal and communication control program
CN112202920A (en) Vehicle machine system upgrading method and device
CN104793998A (en) Terminal system resource management method and device
CN115220767A (en) Software upgrading method, system, electronic equipment and storage medium
CN113641379A (en) OTA upgrading method and system
KR101587030B1 (en) System and method for api call policy management of m2m application
CN113672264B (en) System upgrading method and device of embedded universal integrated circuit card and electronic equipment
CN113734095B (en) Vehicle unlocking method and device, wireless key terminal and medium
CN115499821A (en) eSIM signing method and device
CN100593960C (en) Method for accessing mobile phone digital certificate based on WAPI

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