CN111414185A - Terminal upgrading method and device, terminal and storage medium - Google Patents
Terminal upgrading method and device, terminal and storage medium Download PDFInfo
- Publication number
- CN111414185A CN111414185A CN202010129462.9A CN202010129462A CN111414185A CN 111414185 A CN111414185 A CN 111414185A CN 202010129462 A CN202010129462 A CN 202010129462A CN 111414185 A CN111414185 A CN 111414185A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- terminal
- upgraded
- target
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a terminal upgrading method, a device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring an upgrading task of a target upgrading terminal, version information of each device to be upgraded in the target upgrading terminal, upgrading requirements of each device to be upgraded and an original software package corresponding to each device to be upgraded; making an object upgrading terminal upgrading package according to the version information of each device to be upgraded and the original software package corresponding to the device to be upgraded; determining an upgrading strategy of a target upgrading terminal according to the upgrading requirements of all devices to be upgraded and the upgrading task of the target upgrading terminal; when the upgrading strategy of the target upgrading terminal meets the first preset condition, the target upgrading terminal upgrading package is pushed to the target upgrading terminal based on the upgrading strategy of the target upgrading terminal, so that the target upgrading terminal can upgrade each device to be upgraded in the target upgrading terminal according to the upgrading strategy and the upgrading package.
Description
Technical Field
The present invention relates to the field of terminal upgrading technologies, and in particular, to a terminal upgrading method and apparatus, a terminal, and a storage medium.
Background
The huge success of the internet industry brings great influence to world civilization, so that the industrial age enters the information explosion age, and all the industries are rapidly developed. The internet not only brings technical innovation, but also greatly influences the living habits of human beings, and the internet technology has penetrated into all corners of the world at present; the automobile industry is a national key industry and represents the industrial strength of a country, so that the intelligent vehicle-mounted terminal is a necessary trend in the internet technology with more vehicle applications.
In view of the technical characteristics of the internet and application experience for many years, the method brings convenience and is also quite safe and hidden; the vehicle development has higher and higher requirements on the controller, and more users have very strict requirements on hardware and software depending on the internet technology;
along with the increasing intellectualization of automobiles, the application degree of electronic modules and software technology on the whole automobiles is also higher, and the software has the following bugs and defects in the development and use processes; 1. the existing controller generates problems, manual updating is needed to be carried out on site in a manual mode, if the problems are serious, the problems need to be solved in a recall mode, and the operation and maintenance cost is increased; 2. the existing software has no capability of repairing software bugs, and if the software is attacked to generate bugs, the software can be updated only through manual field after problems occur; 3. at present, the functions of the vehicle can only be achieved when the vehicle leaves a factory, and the vehicle is manually updated when a new function is added in the later period.
Disclosure of Invention
In order to solve the technical problems, the invention discloses a terminal upgrading method, a remote server side generates an upgrading packet of a target upgrading terminal and a determined upgrading strategy of the target upgrading terminal according to acquired data information of the target terminal, and pushes upgrading task information to the target upgrading terminal according to the upgrading strategy of the target upgrading terminal and an upgrading task of the target upgrading terminal, so that upgrading of a device to be upgraded in the target upgrading terminal is realized.
In order to achieve the above object, the present invention provides a terminal upgrading method, where the method includes:
acquiring data information of a target upgrading terminal, wherein the data information of the target upgrading terminal comprises an upgrading task of the target upgrading terminal, version information of each device to be upgraded in the target upgrading terminal, upgrading requirements of each device to be upgraded and an original software package corresponding to each device to be upgraded;
making an object upgrading terminal upgrading package according to the version information of each device to be upgraded and the original software package corresponding to the device to be upgraded; the target upgrading terminal upgrading package comprises device upgrading packages to be upgraded corresponding to the devices to be upgraded;
determining an upgrading strategy of a target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading tasks of the target upgrading terminal;
judging whether the upgrading strategy of the target upgrading terminal meets a first preset condition or not;
if yes, pushing a target upgrading terminal upgrading package to the target upgrading terminal based on the upgrading strategy of the target upgrading terminal, so that the target upgrading terminal upgrades the devices to be upgraded in the target upgrading terminal according to the upgrading strategy and the upgrading package.
Further, still include:
and acquiring the upgrading state of each device to be upgraded of the target upgrading terminal in real time, and displaying the upgrading state.
Further, the obtaining of the upgrade task of the target upgrade terminal includes:
acquiring system version information and version state of a target upgrading terminal;
determining the upgrading requirement of the target upgrading terminal according to the system version information and the version state of the target upgrading terminal;
and determining an upgrading task of the target upgrading terminal according to the upgrading requirement of the target upgrading terminal, wherein the upgrading task of the target upgrading terminal comprises an upgrading mode of the target upgrading terminal and state monitoring of an upgrading process.
Further, the determining an upgrade policy of a target upgrade terminal according to the upgrade requirement of each device to be upgraded and the target upgrade terminal upgrade package, before, further includes:
judging whether the target upgrading terminal upgrading packet meets a preset second condition or not;
and if so, determining an upgrading strategy of the target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the target upgrading terminal upgrading package.
Further, the pushing a target upgrade terminal upgrade package to the target upgrade terminal based on the upgrade policy of the target upgrade terminal so that the target upgrade terminal upgrades each device to be upgraded in the target upgrade terminal according to the upgrade policy and the upgrade package includes:
determining an upgrading rule of each device to be upgraded in the target upgrading terminal based on the upgrading strategy of the target upgrading terminal;
according to the upgrading rule, determining a current device to be upgraded from a device set to be upgraded consisting of the devices to be upgraded;
pushing an upgrade package corresponding to the current device to be upgraded so that the current device to be upgraded is upgraded according to the upgrade package;
judging whether the current device to be upgraded is successfully upgraded or not;
if the current device to be upgraded is successfully upgraded, taking the current device to be upgraded which is successfully upgraded as a target device to be moved out of the device set to be upgraded, selecting another device to be upgraded from the device set to be upgraded as the current device to be upgraded according to the upgrading rule, and upgrading the current device to be upgraded until the upgrading of each device to be upgraded in the device set to be upgraded is completed.
Further, after determining whether the current device to be upgraded is successfully upgraded, the method further includes:
and if the upgrading of the current device to be upgraded fails, performing rollback operation on the current device to be upgraded and the successfully upgraded target device in the target upgrading terminal.
Further, the determining whether the current device to be upgraded is successfully upgraded includes:
acquiring the upgrading state of the current device to be upgraded in real time;
analyzing the upgrading state to obtain an upgrading result of the current device to be upgraded;
and judging whether the current device to be upgraded is successfully upgraded or not according to the upgrading result.
The invention provides a vehicle upgrading device, which comprises:
the system comprises a data information acquisition module, a data information acquisition module and a data information acquisition module, wherein the data information acquisition module is used for acquiring data information of a target upgrading terminal, and the data information of the target upgrading terminal comprises an upgrading task of the target upgrading terminal, version information of each device to be upgraded in the target upgrading terminal, upgrading requirements of each device to be upgraded and an original software package corresponding to each device to be upgraded;
the upgrading package obtaining module is used for manufacturing a target upgrading terminal upgrading package according to the version information of each device to be upgraded and the original software package corresponding to the device to be upgraded; the target upgrading terminal upgrading package comprises device upgrading packages to be upgraded corresponding to the devices to be upgraded;
the upgrading strategy acquisition module is used for determining the upgrading strategy of the target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading tasks of the target upgrading terminal;
the upgrading strategy judging module is used for judging whether the upgrading strategy of the target upgrading terminal meets a first preset condition or not;
and the upgrading task information sending module is used for pushing a target upgrading terminal upgrading packet to the target upgrading terminal based on the upgrading strategy of the target upgrading terminal so that the target upgrading terminal upgrades the devices to be upgraded in the target upgrading terminal according to the upgrading strategy and the upgrading packet.
The invention provides a vehicle upgrading terminal, which comprises a processor and a memory, wherein the processor is used for processing the vehicle upgrading terminal;
the memory stores one or more instructions, and the one or more instructions are suitable for the processor to load and execute so as to realize the terminal upgrading method.
The present invention provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or an instruction set is stored, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the terminal upgrade method described above.
The embodiment of the invention has the following beneficial effects:
according to the terminal upgrading method disclosed by the invention, the remote server side generates the upgrading packet of the target upgrading terminal and the determined upgrading strategy of the target upgrading terminal according to the acquired data information of the target terminal, and pushes the upgrading task information to the target upgrading terminal according to the upgrading strategy of the target upgrading terminal and the upgrading task of the target upgrading terminal, so that the upgrading of a device to be upgraded in the target upgrading terminal is realized.
Drawings
In order to more clearly illustrate the terminal upgrading method, apparatus, terminal and storage medium of the present invention, the drawings required for the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a system provided by an embodiment of the present invention;
fig. 2 is a schematic flowchart of a terminal upgrading method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an upgrading method for each device to be upgraded in a target upgrading device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a vehicle upgrading device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a vehicle upgrade terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 shows a system that can be used to implement the solution of the embodiment of the present invention, as shown in fig. 1, the system may at least include a remote server 01 and at least one target upgrade terminal 02, where the remote server 01 communicates with the target upgrade terminal 02, and a plurality of control units are disposed in the target upgrade terminal, where the control units interact with the remote server 01 to implement upgrading of the target upgrade terminal according to data information of the target upgrade terminal acquired by the remote server 01.
The remote server 01 may be an over-the-air management service (OTA) platform.
Specifically, the OTA platform comprises a terminal management module, an upgrade patch manufacturing module, a device to be upgraded management module, an upgrade strategy management module, a task management module and a data statistics module;
when the terminal is a vehicle, the terminal management module is used for managing vehicle types and basic configuration data of the vehicle;
the upgrade package manufacturing module is used for manufacturing a differential upgrade package or a whole upgrade package for the software package;
the controller management module is used for managing basic configuration data such as manufacturer and model of the controller;
the upgrade strategy management module is used for configuring a whole vehicle upgrade strategy according to the upgrade requirement of the device to be upgraded;
the task management module is used for checking the downloading and upgrading processes and upgrading results of the upgrading package through a display device of the OTA platform;
and the data statistics module is used for summarizing and analyzing the upgrading state, the upgrading vehicle number, the upgrading success number, the upgrading failure number and the like of the device to be upgraded.
The target upgrading terminal 02 may be a vehicle control device, a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, an intelligent wearable device, or other types of entity devices; wherein, wearable equipment of intelligence can include intelligent bracelet, intelligent wrist-watch, intelligent glasses, intelligent helmet etc.. Of course, the target upgrade terminal 02 is not limited to the electronic device with certain entities, and may also be software running in the electronic device, for example, the target upgrade terminal 02 may be a web page or an application provided by a service provider to a user.
The target upgrade terminal 02 may include a display screen, a storage device, and a processor connected through a data bus. The display screen is used for displaying an operation interface or interacting with a user and the like, and the display screen can be a touch screen of a vehicle machine, a mobile phone or a tablet computer and the like. The storage device is used for storing program codes, data information and the like of the shooting device, and the storage device may be a memory of the target upgrade terminal 02, or may be a storage device such as a smart media card (smart media card), a secure digital card (secure digital card), a flash memory card (flash card) and the like. The processor may be a single core or multi-core processor.
The following describes the terminal upgrading method based on the above system in conjunction with fig. 2, which can be applied to a remote terminal upgrading method, and this embodiment is applied to a remote server side.
Referring to fig. 2, which is a flowchart illustrating a method for upgrading a terminal according to an embodiment of the present invention, the present specification provides the method steps according to the embodiment or the flowchart, but based on the conventional method; or the inventive process may include additional or fewer steps. The step sequence recited in the embodiment is only one of the execution sequences of the steps, and does not represent the only execution sequence, and the terminal upgrading method can be executed according to the method sequence shown in the embodiment or the attached drawings. Specifically, as shown in fig. 2, the method includes:
s201, acquiring data information of a target upgrading terminal, wherein the data information of the target upgrading terminal comprises an upgrading task of the target upgrading terminal, version information of each device to be upgraded in the target upgrading terminal, upgrading requirements of each device to be upgraded and an original software package corresponding to each device to be upgraded;
it should be noted that, in this embodiment of the present specification, the data information of the target upgrade terminal may be that the remote service platform sends the format of the data that is provided by the remote service provider and needs to be screened to a production process execution system (MES) platform, and the MES platform sends the data information of the target upgrade terminal to the remote service platform according to the format; the target upgrading terminal can be a vehicle terminal;
the obtaining of the upgrade task of the target upgrade terminal may include:
s1, acquiring system version information and version state of the target upgrading terminal;
in this embodiment of the present specification, the system version information and the version status of the target upgrade terminal may be current version information of the system;
s2, determining the upgrading requirement of the target upgrading terminal according to the system version information and the version state of the target upgrading terminal;
in the embodiment of the present specification, the upgrade requirement of the target upgrade terminal may be that the target upgrade terminal is upgraded or upgraded completely;
s3, determining the upgrade task of the target upgrade terminal according to the upgrade requirement of the target upgrade terminal, wherein the upgrade task of the target upgrade terminal may include the upgrade mode of the target upgrade terminal and the state monitoring of the upgrade process.
In an embodiment of the present specification, the upgrade task may include the number of devices to be upgraded in the target terminal; the upgrading mode of each device to be upgraded; the upgrade may include a full upgrade or a partial upgrade.
In the embodiment of the present specification, the upgrade requirement of the device to be upgraded may be whether the device to be upgraded needs to be upgraded, and whether the device to be upgraded needs to be partially upgraded or completely upgraded.
S203, making an object upgrading terminal upgrading package according to the version information of each device to be upgraded and the original software package corresponding to the device to be upgraded; the target upgrading terminal upgrading package comprises device upgrading packages to be upgraded corresponding to the devices to be upgraded;
in this embodiment of the present specification, the target upgrade terminal upgrade package may be a compressed package in which upgrade packages of devices to be upgraded corresponding to the devices to be upgraded are combined together;
specifically, when the target upgrade terminal upgrade package subsequently upgrades each device to be upgraded in the target upgrade terminal, decompression may be performed first, and then the device to be upgraded is upgraded according to the upgrade package corresponding to the device to be upgraded.
In a specific embodiment, the upgrade package is an encrypted upgrade package to ensure the security of data transmission.
S205, determining an upgrading strategy of a target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading tasks of the target upgrading terminal;
in this embodiment of the present specification, the upgrade policy may include an upgrade order of each device to be upgraded in the target upgrade terminal, preconditions (e.g., a current software version number, a new software version number, an existing version backup path, an upgrade software digital signature) of each device to be upgraded, whether upgrade failure is rolled back, and the like;
in an embodiment of this specification, before determining an upgrade policy of a target upgrade terminal according to an upgrade requirement of each device to be upgraded and an upgrade task of the target upgrade terminal, the method further includes:
judging whether the target upgrading terminal upgrading packet meets a preset second condition or not;
in the embodiment of the present specification, the preset second condition may include, but is not limited to, that the authenticity and accuracy of the target upgrade terminal upgrade package are checked to pass;
before the target upgrading terminal upgrading package is released, verifying authenticity and accuracy of the target upgrading terminal upgrading package, and if the verification is passed, judging that the target upgrading terminal upgrading package meets a preset second condition;
further comprising: auditing the upgrade task, specifically, by auditing the accuracy of the configuration task, the feasibility of the upgrade time and the like of the target upgrade terminal, the upgrade task can be issued by an auditing party;
and subsequently, determining an upgrading strategy of the target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading task of the target upgrading terminal.
S207, judging whether the upgrading strategy of the target upgrading terminal meets a first preset condition or not;
in the embodiment of the present specification, the first preset condition may include, but is not limited to, that the precondition (for example, current software version number, new software version number, existing version backup path, upgrade software digital signature) of each device to be upgraded conforms to a preset setting;
namely, judging whether the upgrading strategy of the target upgrading terminal meets the preset setting;
if so, judging that the upgrading strategy of the target upgrading terminal meets a first preset condition;
s209, if yes, pushing a target upgrading terminal upgrading package to the target upgrading terminal based on the upgrading strategy of the target upgrading terminal, so that the target upgrading terminal upgrades each device to be upgraded in the target upgrading terminal according to the upgrading strategy and the upgrading package;
as shown in fig. 3, in the embodiment of the present specification, a schematic flowchart of an upgrading method for each device to be upgraded in a target upgrading device according to an embodiment of the present invention is shown; specifically, the following is:
s301, determining an upgrading rule of each device to be upgraded in the target upgrading terminal based on an upgrading strategy of the target upgrading terminal;
in the embodiment of the present specification, the upgrade rule may be an upgrade order of each device to be upgraded;
s303, according to the upgrading rule, determining a current device to be upgraded from a device set to be upgraded consisting of the devices to be upgraded;
in the embodiment of the description, according to the upgrade rule, selecting a current device to be upgraded which needs to be upgraded first from a device set to be upgraded;
s305, pushing an upgrade package corresponding to the current device to be upgraded so that the current device to be upgraded is upgraded according to the upgrade package;
s307, judging whether the current device to be upgraded is successfully upgraded;
in an embodiment of this specification, the determining whether the current device to be upgraded is successfully upgraded includes:
a1. acquiring the upgrading state of the current device to be upgraded in real time;
in this embodiment of the present specification, the upgrade status of the current device to be upgraded may include: upgrade progress, upgrade time, etc.;
a2. analyzing the upgrading state to obtain an upgrading result of the current device to be upgraded;
in this embodiment of the present specification, the upgrade result may include upgrade failure, upgrade success, upgrade timeout, and the like.
a3. And judging whether the current device to be upgraded is successfully upgraded or not according to the upgrading result.
S309, if the current device to be upgraded is successfully upgraded, taking the current device to be upgraded which is successfully upgraded as a target device to be moved out of the device set to be upgraded, selecting another device to be upgraded from the device set to be upgraded as the current device to be upgraded according to the upgrading rule, and upgrading the current device to be upgraded until the upgrading of each device to be upgraded in the device set to be upgraded is completed.
S311, if the upgrade of the current device to be upgraded fails, the rollback operation is executed on the current device to be upgraded and the successfully upgraded target device in the target upgrade terminal.
In this specification, after the rollback operation is performed, the method further includes:
acquiring a rollback state; obtaining a rollback result according to the rollback state;
when the rollback fails, ending the upgrading program;
and when the rollback is successful, continuing the upgrading program.
In the embodiment of this specification, still include:
acquiring the upgrading state of each device to be upgraded of the target upgrading terminal in real time, and displaying the upgrading state;
and judging the upgrading result of each device to be upgraded according to the upgrading state.
In the embodiment of the present specification, the remote service platform further sends the upgrade status and the upgrade result of the device to be upgraded to the remote service provider in real time, so that the remote service provider can conveniently check the upgrade status of the terminal in real time.
In the embodiment of the description, in the upgrading process of a terminal (such as a vehicle), the reporting data of the upgrading state, the rollback state and the like of each device to be upgraded are fed back to a remote server in real time; so that the user can view the whole downloading and upgrading process of the vehicle and the upgrading result through the display platform of the remote server.
The upgrade status of the device to be upgraded may include: the version is the latest version, the updating information is found, the user cancels, the downloading is in the middle, the downloading is completed, the downloading fails, the verification of the upgrade package is successful, the verification of the upgrade package is failed, the verification of the signature of the upgrade package is successful, the verification of the signature of the upgrade package is failed, the device is restarted, the updating of the device is successful, the rollback of the device is failed, and the like;
the reward data may further include: upgrade activity ID, serial number of device registered on server, etc.
As can be seen from the above embodiments of the terminal upgrading method, device, terminal and storage medium provided by the present invention, in the embodiments of the present invention, data information of a target upgrading terminal is obtained, where the data information of the target upgrading terminal includes an upgrading task of the target upgrading terminal, version information of each device to be upgraded in the target upgrading terminal, an upgrading requirement of each device to be upgraded, and an original software package corresponding to each device to be upgraded; making an object upgrading terminal upgrading package according to the version information of each device to be upgraded and the original software package corresponding to the device to be upgraded; the target upgrading terminal upgrading package comprises device upgrading packages to be upgraded corresponding to the devices to be upgraded; determining an upgrading strategy of a target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading tasks of the target upgrading terminal; judging whether the upgrading strategy of the target upgrading terminal meets a first preset condition or not; if yes, pushing a target upgrading terminal upgrading package to the target upgrading terminal based on the upgrading strategy of the target upgrading terminal, so that the target upgrading terminal upgrades each device to be upgraded in the target upgrading terminal according to the upgrading strategy and the upgrading package; by using the technical scheme provided by the embodiment of the specification, the remote server side pushes the upgrading task information to the target upgrading terminal according to the upgrading packet of the target upgrading terminal generated according to the acquired data information of the target terminal and the determined upgrading strategy of the target upgrading terminal and the upgrading strategy of the target upgrading terminal, so that the upgrading of the device to be upgraded in the target upgrading terminal is realized.
An embodiment of the present invention further provides a vehicle upgrading apparatus, as shown in fig. 4, which is a schematic structural diagram of the vehicle upgrading apparatus provided in the embodiment of the present invention; specifically, the device comprises:
a data information obtaining module 410, configured to obtain data information of a target upgrade terminal, where the data information of the target upgrade terminal includes an upgrade task of the target upgrade terminal, version information of each device to be upgraded in the target upgrade terminal, an upgrade requirement of each device to be upgraded, and an original software package corresponding to each device to be upgraded;
an upgrade package obtaining module 420, configured to make an upgrade package of a target upgrade terminal according to version information of each device to be upgraded and an original software package corresponding to the device to be upgraded; the target upgrading terminal upgrading package comprises device upgrading packages to be upgraded corresponding to the devices to be upgraded;
an upgrade policy obtaining module 430, configured to determine an upgrade policy of a target upgrade terminal according to an upgrade requirement of each device to be upgraded and an upgrade task of the target upgrade terminal;
the upgrade policy judgment module 440 is configured to judge whether an upgrade policy of the target upgrade terminal meets a first preset condition;
an upgrade task information sending module 450, configured to push a target upgrade terminal upgrade package to the target upgrade terminal based on the upgrade policy of the target upgrade terminal, so that the target upgrade terminal upgrades each device to be upgraded in the target upgrade terminal according to the upgrade policy and the upgrade package.
In the embodiment of this specification, still include:
and the upgrading state acquisition module is used for acquiring the upgrading state of each device to be upgraded of the target upgrading terminal in real time and displaying the upgrading state.
In this embodiment of the present specification, the data information obtaining module 410 includes:
the first obtaining unit is used for obtaining system version information and a version state of the target upgrading terminal;
the first determining unit is used for determining the upgrading requirement of the target upgrading terminal according to the system version information and the version state of the target upgrading terminal;
and the second determining unit is used for determining an upgrading task of the target upgrading terminal according to the upgrading requirement of the target upgrading terminal, wherein the upgrading task of the target upgrading terminal comprises the upgrading mode of the target upgrading terminal and the state monitoring of the upgrading process.
In this embodiment of the present specification, before the upgrade policy obtaining module 430, the method further includes:
and the upgrade patch judgment module is used for judging whether the target upgrade terminal upgrade patch meets a preset second condition.
In this embodiment of the present specification, the upgrade task information sending module 450 includes:
a third determining unit, configured to determine an upgrade rule of each device to be upgraded in the target upgrade terminal based on an upgrade policy of the target upgrade terminal;
a fourth determining unit, configured to determine, according to the upgrade rule, a current device to be upgraded from a device set to be upgraded that is composed of the devices to be upgraded;
the first pushing unit is used for pushing an upgrading packet corresponding to the current device to be upgraded so that the current device to be upgraded is upgraded according to the upgrading packet;
the first judging unit is used for judging whether the current device to be upgraded is upgraded successfully;
the upgrading unit is used for taking the current device to be upgraded which is successfully upgraded as a target device to be moved out of the device set to be upgraded if the current device to be upgraded is successfully upgraded, selecting another device to be upgraded from the device set to be upgraded as the current device to be upgraded according to the upgrading rule, and upgrading the current device to be upgraded until the upgrading of each device to be upgraded in the device set to be upgraded is completed;
and the rollback operation unit is used for executing rollback operation on the current device to be upgraded and the successfully upgraded target device in the target upgrading terminal if the current device to be upgraded fails to be upgraded.
In an embodiment of the present specification, the first determination unit includes:
the upgrading state acquisition subunit is used for acquiring the upgrading state of the current device to be upgraded in real time;
the upgrading result obtaining subunit is used for analyzing the upgrading state to obtain the upgrading result of the current device to be upgraded;
the first judging subunit is used for judging whether the current device to be upgraded is successfully upgraded according to the upgrading result;
the embodiment of the invention provides a terminal upgrading terminal, which comprises a processor and a memory;
the memory stores one or more instructions, and the one or more instructions are suitable for the processor to load and execute so as to realize the terminal upgrading method according to the method embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
Fig. 5 is a schematic structural diagram of a terminal upgrade terminal according to an embodiment of the present invention, where an internal structure of the terminal upgrade terminal may include, but is not limited to: the terminal upgrading terminal comprises a processor, a network interface and a memory, wherein the processor, the network interface and the memory in the terminal upgrading terminal can be connected through a bus or in other ways, and the connection through the bus is taken as an example in fig. 5 shown in the embodiment of the specification.
The network interface may optionally include a standard wired interface, a wireless interface (such as WI-FI, mobile communication interface, etc.), a Memory device in the terminal upgrade terminal for storing programs and data, it is understood that the Memory may be a high-speed RAM Memory device, a non-volatile Memory device (such as at least one magnetic disk Memory device), or at least one Memory device located remotely from the processor, the Memory provides a Memory space storing an operating system of the terminal upgrade terminal, which may include, but is not limited to, a Windows system (an operating system), L inux (an operating system), and the like, and the Memory space further stores one or more instructions suitable for being loaded and executed by the processor, which may be one or more instructions stored in the computer or a computer (including one or more computer program) for implementing the method, and the method for implementing the method.
Embodiments of the present invention also provide a computer-readable storage medium, which may be disposed in a terminal upgrade terminal to store at least one instruction, at least one program, a code set, or an instruction set related to implementing a terminal upgrade method in the method embodiments, where the at least one instruction, the at least one program, the code set, or the instruction set may be loaded and executed by a processor of an electronic device to implement the terminal upgrade method provided in the method embodiments.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device and server embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (10)
1. A terminal upgrading method is characterized in that: the method comprises the following steps:
acquiring data information of a target upgrading terminal, wherein the data information of the target upgrading terminal comprises an upgrading task of the target upgrading terminal, version information of each device to be upgraded in the target upgrading terminal, upgrading requirements of each device to be upgraded and an original software package corresponding to each device to be upgraded;
making an object upgrading terminal upgrading package according to the version information of each device to be upgraded and the original software package corresponding to the device to be upgraded; the target upgrading terminal upgrading package comprises device upgrading packages to be upgraded corresponding to the devices to be upgraded;
determining an upgrading strategy of a target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading tasks of the target upgrading terminal;
judging whether the upgrading strategy of the target upgrading terminal meets a first preset condition or not;
if yes, pushing a target upgrading terminal upgrading package to the target upgrading terminal based on the upgrading strategy of the target upgrading terminal, so that the target upgrading terminal upgrades the devices to be upgraded in the target upgrading terminal according to the upgrading strategy and the upgrading package.
2. The terminal upgrading method according to claim 1, characterized in that: further comprising:
and acquiring the upgrading state of each device to be upgraded of the target upgrading terminal in real time, and displaying the upgrading state.
3. The terminal upgrading method according to claim 1, characterized in that: the acquiring of the upgrade task of the target upgrade terminal includes:
acquiring system version information and version state of a target upgrading terminal;
determining the upgrading requirement of the target upgrading terminal according to the system version information and the version state of the target upgrading terminal;
and determining an upgrading task of the target upgrading terminal according to the upgrading requirement of the target upgrading terminal, wherein the upgrading task of the target upgrading terminal comprises an upgrading mode of the target upgrading terminal and state monitoring of an upgrading process.
4. The terminal upgrading method according to claim 1, characterized in that: the method for determining the upgrading strategy of the target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading tasks of the target upgrading terminal comprises the following steps:
judging whether the target upgrading terminal upgrading packet meets a preset second condition or not;
and if so, determining an upgrading strategy of the target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading task of the target upgrading terminal.
5. The terminal upgrading method according to claim 1, characterized in that: the pushing of a target upgrade terminal upgrade package to the target upgrade terminal based on the upgrade strategy of the target upgrade terminal so that the target upgrade terminal upgrades each device to be upgraded in the target upgrade terminal according to the upgrade strategy and the upgrade package includes:
determining an upgrading rule of each device to be upgraded in the target upgrading terminal based on the upgrading strategy of the target upgrading terminal;
according to the upgrading rule, determining a current device to be upgraded from a device set to be upgraded consisting of the devices to be upgraded;
pushing an upgrade package corresponding to the current device to be upgraded so that the current device to be upgraded is upgraded according to the upgrade package;
judging whether the current device to be upgraded is successfully upgraded or not;
if the current device to be upgraded is successfully upgraded, taking the current device to be upgraded which is successfully upgraded as a target device to be moved out of the device set to be upgraded, selecting another device to be upgraded from the device set to be upgraded as the current device to be upgraded according to the upgrading rule, and upgrading the current device to be upgraded until the upgrading of each device to be upgraded in the device set to be upgraded is completed.
6. The terminal upgrading method according to claim 5, characterized in that: after judging whether the current device to be upgraded is upgraded successfully, the method further comprises the following steps:
and if the upgrading of the current device to be upgraded fails, performing rollback operation on the current device to be upgraded and the successfully upgraded target device in the target upgrading terminal.
7. The terminal upgrade method according to claim 5 or 6, characterized in that: the judging whether the current device to be upgraded is successfully upgraded comprises the following steps:
acquiring the upgrading state of the current device to be upgraded in real time;
analyzing the upgrading state to obtain an upgrading result of the current device to be upgraded;
and judging whether the current device to be upgraded is successfully upgraded or not according to the upgrading result.
8. A terminal upgrading device is characterized in that: the device comprises:
the system comprises a data information acquisition module, a data information acquisition module and a data information acquisition module, wherein the data information acquisition module is used for acquiring data information of a target upgrading terminal, and the data information of the target upgrading terminal comprises an upgrading task of the target upgrading terminal, version information of each device to be upgraded in the target upgrading terminal, upgrading requirements of each device to be upgraded and an original software package corresponding to each device to be upgraded;
the upgrading package obtaining module is used for manufacturing a target upgrading terminal upgrading package according to the version information of each device to be upgraded and the original software package corresponding to the device to be upgraded; the target upgrading terminal upgrading package comprises device upgrading packages to be upgraded corresponding to the devices to be upgraded;
the upgrading strategy acquisition module is used for determining the upgrading strategy of the target upgrading terminal according to the upgrading requirements of the devices to be upgraded and the upgrading tasks of the target upgrading terminal;
the upgrading strategy judging module is used for judging whether the upgrading strategy of the target upgrading terminal meets a first preset condition or not;
and the upgrading task information sending module is used for pushing a target upgrading terminal upgrading packet to the target upgrading terminal based on the upgrading strategy of the target upgrading terminal so that the target upgrading terminal upgrades the devices to be upgraded in the target upgrading terminal according to the upgrading strategy and the upgrading packet.
9. A terminal upgrading terminal is characterized in that: the terminal comprises a processor and a memory;
the memory stores one or more instructions adapted to be loaded and executed by the processor to implement the terminal upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium characterized by: the storage medium has stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that is loaded and executed by a processor to implement the terminal upgrade method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010129462.9A CN111414185B (en) | 2020-02-28 | 2020-02-28 | Terminal upgrading method and device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010129462.9A CN111414185B (en) | 2020-02-28 | 2020-02-28 | Terminal upgrading method and device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111414185A true CN111414185A (en) | 2020-07-14 |
CN111414185B CN111414185B (en) | 2023-01-10 |
Family
ID=71491062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010129462.9A Active CN111414185B (en) | 2020-02-28 | 2020-02-28 | Terminal upgrading method and device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111414185B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111857780A (en) * | 2020-07-22 | 2020-10-30 | 中国联合网络通信集团有限公司 | Terminal firmware upgrading method and device |
CN112068869A (en) * | 2020-09-10 | 2020-12-11 | 浪潮商用机器有限公司 | CPLD upgrading method, device and equipment |
CN113885930A (en) * | 2021-10-22 | 2022-01-04 | 浙江中控技术股份有限公司 | Industrial control system software upgrading method and device |
CN114443105A (en) * | 2022-04-11 | 2022-05-06 | 深圳市帝迈生物技术有限公司 | Method, apparatus, medium, and program product for upgrading pipeline system |
CN114675902A (en) * | 2022-03-11 | 2022-06-28 | 潍柴动力股份有限公司 | Software version management method and management device based on embedded equipment |
WO2022165711A1 (en) * | 2021-02-04 | 2022-08-11 | 华为技术有限公司 | Upgrading method and apparatus based on over-the-air (ota) technology |
WO2023272699A1 (en) * | 2021-07-01 | 2023-01-05 | 华为技术有限公司 | Over-the-air (ota) upgrading method and apparatus |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006136060A1 (en) * | 2005-06-24 | 2006-12-28 | Zte Corporation | Multi-software system upgrading method |
US20140304697A1 (en) * | 2011-12-01 | 2014-10-09 | Tencent Technology (Shenzhen) Company Limited | Method and system for upgrading software |
WO2015131603A1 (en) * | 2014-07-24 | 2015-09-11 | 中兴通讯股份有限公司 | Differential upgrade method, serving end and terminal |
CN105183496A (en) * | 2015-07-21 | 2015-12-23 | 浪潮软件集团有限公司 | Method for automatically upgrading and pushing software based on domestic CPU and operating system |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
WO2016086654A1 (en) * | 2014-12-03 | 2016-06-09 | 广州广电运通金融电子股份有限公司 | Remote upgrade method and system for software on self-service terminal, and upgrade package creation method |
CN105978921A (en) * | 2016-07-29 | 2016-09-28 | 重庆长安汽车股份有限公司 | Remote upgrading method for vehicle-mounted communication terminal |
CN106126285A (en) * | 2016-06-22 | 2016-11-16 | 天维尔信息科技股份有限公司 | A kind of method for upgrading software and terminal |
US20170206079A1 (en) * | 2014-05-19 | 2017-07-20 | Zte Corporation | Method and Device for Upgrading Software |
WO2018006677A1 (en) * | 2016-07-06 | 2018-01-11 | 中兴通讯股份有限公司 | Smart upgrade method, server, terminal and system |
CN108415714A (en) * | 2018-02-08 | 2018-08-17 | 上海商米科技有限公司 | The method for upgrading system and device of mobile terminal |
CN109375933A (en) * | 2018-09-25 | 2019-02-22 | 郑州云海信息技术有限公司 | A kind of method and apparatus of client upgrading |
CN109582340A (en) * | 2018-12-07 | 2019-04-05 | 安徽江淮汽车集团股份有限公司 | A kind of method and system of electric car remote upgrade |
CN110134418A (en) * | 2019-05-10 | 2019-08-16 | 上海擎感智能科技有限公司 | Vehicle upgrade method and device, storage medium and terminal based on space download technology |
CN110351314A (en) * | 2018-04-03 | 2019-10-18 | 厦门雅迅网络股份有限公司 | The remote upgrade method and computer readable storage medium of automobile controller |
CN110704083A (en) * | 2019-09-26 | 2020-01-17 | 上海科世达-华阳汽车电器有限公司 | Automobile online upgrading method, device and system and readable storage medium |
CN110837392A (en) * | 2019-11-06 | 2020-02-25 | 四川天邑康和通信股份有限公司 | Method and system for self-adaptive differential upgrading of IPTV (Internet protocol television) or convergence gateway |
-
2020
- 2020-02-28 CN CN202010129462.9A patent/CN111414185B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006136060A1 (en) * | 2005-06-24 | 2006-12-28 | Zte Corporation | Multi-software system upgrading method |
US20140304697A1 (en) * | 2011-12-01 | 2014-10-09 | Tencent Technology (Shenzhen) Company Limited | Method and system for upgrading software |
US20170206079A1 (en) * | 2014-05-19 | 2017-07-20 | Zte Corporation | Method and Device for Upgrading Software |
WO2015131603A1 (en) * | 2014-07-24 | 2015-09-11 | 中兴通讯股份有限公司 | Differential upgrade method, serving end and terminal |
WO2016086654A1 (en) * | 2014-12-03 | 2016-06-09 | 广州广电运通金融电子股份有限公司 | Remote upgrade method and system for software on self-service terminal, and upgrade package creation method |
CN105183496A (en) * | 2015-07-21 | 2015-12-23 | 浪潮软件集团有限公司 | Method for automatically upgrading and pushing software based on domestic CPU and operating system |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
CN106126285A (en) * | 2016-06-22 | 2016-11-16 | 天维尔信息科技股份有限公司 | A kind of method for upgrading software and terminal |
WO2018006677A1 (en) * | 2016-07-06 | 2018-01-11 | 中兴通讯股份有限公司 | Smart upgrade method, server, terminal and system |
CN105978921A (en) * | 2016-07-29 | 2016-09-28 | 重庆长安汽车股份有限公司 | Remote upgrading method for vehicle-mounted communication terminal |
CN108415714A (en) * | 2018-02-08 | 2018-08-17 | 上海商米科技有限公司 | The method for upgrading system and device of mobile terminal |
CN110351314A (en) * | 2018-04-03 | 2019-10-18 | 厦门雅迅网络股份有限公司 | The remote upgrade method and computer readable storage medium of automobile controller |
CN109375933A (en) * | 2018-09-25 | 2019-02-22 | 郑州云海信息技术有限公司 | A kind of method and apparatus of client upgrading |
CN109582340A (en) * | 2018-12-07 | 2019-04-05 | 安徽江淮汽车集团股份有限公司 | A kind of method and system of electric car remote upgrade |
CN110134418A (en) * | 2019-05-10 | 2019-08-16 | 上海擎感智能科技有限公司 | Vehicle upgrade method and device, storage medium and terminal based on space download technology |
CN110704083A (en) * | 2019-09-26 | 2020-01-17 | 上海科世达-华阳汽车电器有限公司 | Automobile online upgrading method, device and system and readable storage medium |
CN110837392A (en) * | 2019-11-06 | 2020-02-25 | 四川天邑康和通信股份有限公司 | Method and system for self-adaptive differential upgrading of IPTV (Internet protocol television) or convergence gateway |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111857780A (en) * | 2020-07-22 | 2020-10-30 | 中国联合网络通信集团有限公司 | Terminal firmware upgrading method and device |
CN111857780B (en) * | 2020-07-22 | 2023-06-06 | 中国联合网络通信集团有限公司 | Terminal firmware upgrading method and device |
CN112068869A (en) * | 2020-09-10 | 2020-12-11 | 浪潮商用机器有限公司 | CPLD upgrading method, device and equipment |
WO2022165711A1 (en) * | 2021-02-04 | 2022-08-11 | 华为技术有限公司 | Upgrading method and apparatus based on over-the-air (ota) technology |
WO2023272699A1 (en) * | 2021-07-01 | 2023-01-05 | 华为技术有限公司 | Over-the-air (ota) upgrading method and apparatus |
CN113885930A (en) * | 2021-10-22 | 2022-01-04 | 浙江中控技术股份有限公司 | Industrial control system software upgrading method and device |
CN114675902A (en) * | 2022-03-11 | 2022-06-28 | 潍柴动力股份有限公司 | Software version management method and management device based on embedded equipment |
CN114675902B (en) * | 2022-03-11 | 2023-08-18 | 潍柴动力股份有限公司 | Management method and management device for software version based on embedded equipment |
CN114443105A (en) * | 2022-04-11 | 2022-05-06 | 深圳市帝迈生物技术有限公司 | Method, apparatus, medium, and program product for upgrading pipeline system |
CN114443105B (en) * | 2022-04-11 | 2022-08-02 | 深圳市帝迈生物技术有限公司 | Method, apparatus, medium, and program product for upgrading pipeline system |
Also Published As
Publication number | Publication date |
---|---|
CN111414185B (en) | 2023-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111414185B (en) | Terminal upgrading method and device, terminal and storage medium | |
CN111414177A (en) | Vehicle upgrading method, device, terminal and storage medium | |
EP1770512A2 (en) | Method and system for updating software | |
CN107547239B (en) | Configuration object updating method and device | |
CN1791859A (en) | Methods and apparatus for generating upgraded software from initial software and software upgrade packages | |
CN106502747A (en) | A kind of method of application upgrade and mobile terminal | |
CN109062598A (en) | A kind of safe OTA upgrade method and system | |
CN110597542A (en) | Automatic OTA (over the air) software upgrading method and device and electronic equipment | |
CN106980565A (en) | Escalation process monitoring method and device | |
CN105786636B (en) | A kind of system repair and device | |
CN108322540A (en) | Customized data lead-in method, terminal and computer readable storage medium | |
CN114265606B (en) | Firmware upgrading method, device, equipment and storage medium | |
CN110580556A (en) | Data processing method and system and processor | |
CN110045969B (en) | Application program installation method, server, system, device and storage medium | |
CN114915554A (en) | Remote upgrading method and device, computer equipment and storage medium | |
CN106648784B (en) | OTA (over-the-air) upgrading method and system based on android system and android terminal | |
CN111131861B (en) | Upgrading method, terminal and storage medium for recovering partitions | |
CN112433935A (en) | Test method, test device, electronic equipment and storage medium | |
CN112860297A (en) | Storage system based on automobile binocular camera and system updating method | |
CN112579398A (en) | Monitoring deployment method and device | |
CN113868531A (en) | Information acquisition method and device, electronic device and medium | |
CN115357260A (en) | Program upgrading method and device for terminal equipment, terminal equipment and storage medium | |
CN115454472A (en) | Remote upgrading problem solving method, device, equipment and readable storage medium | |
CN113849215A (en) | Wireless firmware upgrading method and device | |
CN113535558A (en) | Software version transmission method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |