CN111414185B - Terminal upgrading method and device, terminal and storage medium - Google Patents

Terminal upgrading method and device, terminal and storage medium Download PDF

Info

Publication number
CN111414185B
CN111414185B CN202010129462.9A CN202010129462A CN111414185B CN 111414185 B CN111414185 B CN 111414185B CN 202010129462 A CN202010129462 A CN 202010129462A CN 111414185 B CN111414185 B CN 111414185B
Authority
CN
China
Prior art keywords
upgrading
upgraded
terminal
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.)
Active
Application number
CN202010129462.9A
Other languages
Chinese (zh)
Other versions
CN111414185A (en
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.)
Shanxi Geely New Energy Commercial Vehicle Co ltd
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd
Geely Sichuan Commercial Vehicle Co Ltd
Original Assignee
Shanxi Geely New Energy Commercial Vehicle Co ltd
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd
Geely Sichuan Commercial Vehicle 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 Shanxi Geely New Energy Commercial Vehicle Co ltd, Zhejiang Geely Holding Group Co Ltd, Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd, Geely Sichuan Commercial Vehicle Co Ltd filed Critical Shanxi Geely New Energy Commercial Vehicle Co ltd
Priority to CN202010129462.9A priority Critical patent/CN111414185B/en
Publication of CN111414185A publication Critical patent/CN111414185A/en
Application granted granted Critical
Publication of CN111414185B publication Critical patent/CN111414185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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 upgrading requirements of all devices to be upgraded and upgrading tasks 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

Terminal upgrading method and device, terminal and storage medium
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 rapidly develop. The Internet not only brings technical innovation, but also greatly influences the living habits of human beings, and the Internet technology has deepened 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 rapidness and has considerable potential safety hazard; 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 technologies on the whole automobiles is also increased, and the software has the following bugs and defects in the development and use processes; 1. problems are caused in the existing controller, manual updating needs 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 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 possessed when the vehicle leaves a factory, and the vehicle needs to be manually updated by an after-sale service department 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, 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, and further upgrades a device to be upgraded in the target upgrading terminal.
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 packet comprises device upgrading packets 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, and enabling the target upgrading terminal to upgrade each device to be upgraded in the target upgrading terminal according to the upgrading strategy and the upgrading package.
Further, the method also comprises the following steps:
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 a 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 upgrade of the current device to be upgraded is successful, 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 upgrade of the current device to be upgraded is successful 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 according to 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 making any creative effort based on the embodiments in the present invention, belong to the protection 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 other sequences 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 package 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 by 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 materials 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 listed in the embodiment is only one of many step execution sequences, and does not represent a unique execution sequence, and the terminal upgrade method may be executed according to the method sequence shown in the embodiment or the 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 the embodiment of this 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 a version state of a target upgrading terminal;
in this specification, the system version information and version status of the target upgrade terminal may be the 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 specification, the upgrade requirement of the target upgrade terminal can be the upgrade of the target upgrade terminal part or the complete upgrade;
and S3, 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 can comprise an upgrading mode of the target upgrading terminal and state monitoring of an upgrading 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, a precondition of each device to be upgraded (for example, a current software version number, a new software version number, an existing version backup path, an upgrade software digital signature), 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 this 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 of the target upgrade terminal, the feasibility of the upgrade time and the like, 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 accords with 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 the devices 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 flow diagram 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, determining a current device to be upgraded from a device to be upgraded set consisting of the devices to be upgraded according to the upgrading rule;
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, the upgrade status of the device to be upgraded currently 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.
And S311, if the upgrade of the current device to be upgraded fails, executing rollback operation 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 packet comprises device upgrading packets 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 and the determined upgrading strategy of the target upgrading terminal, which are generated according to the acquired data information of the target terminal, and the upgrading strategy of the target upgrading terminal and the upgrading task 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 device, as shown in fig. 4, which is a schematic structural diagram of the vehicle upgrading device 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 upgrade requirements of the devices 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 formed by 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 or not 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 processor (or CPU) is a computing core and a control core of the terminal upgrading terminal. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The Memory (Memory) is a Memory device in the terminal upgrading terminal and is used for storing programs and data. It is understood that the memory herein can be a high-speed RAM storage device, and can also be a non-volatile memory device (non-volatile memory), such as at least one magnetic disk storage device; optionally, at least one memory device located remotely from the processor. The memory provides a storage space storing an operating system of the terminal upgrade terminal, which may include but is not limited to: windows system (an operating system), linux (an operating system), etc., which are not limited in this respect; also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space and are adapted to be loaded and executed by the processor. In an embodiment of this specification, the processor loads and executes one or more instructions stored in the memory to implement the terminal upgrading method provided in the foregoing method embodiment.
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 disk, or an optical disk, and 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 that specific embodiments 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 relatively simple, and reference may be made to the partial description of the method embodiments for relevant points.
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 (9)

1. A terminal upgrading method is characterized in that: the method is applied to a remote server and 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 packet comprises device upgrading packets to be upgraded corresponding to the devices to be upgraded;
determining an upgrading strategy of the target upgrading terminal according to upgrading requirements of the devices to be upgraded and upgrading tasks of the target upgrading terminal under the conditions that the authenticity and the accuracy of an upgrading packet of the target upgrading terminal are checked to be passed and the accuracy and the upgrading time feasibility of the upgrading tasks of the target upgrading terminal are checked to be passed;
judging whether the upgrading strategy of the target upgrading terminal meets preset precondition corresponding to each device to be upgraded; the precondition comprises a current software version number, a new software version number, an existing version backup path and an upgrading software digital signature;
if yes, 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; the upgrading rule refers to the upgrading sequence of each device to be upgraded;
according to the upgrading rule, determining a current device to be upgraded from a device set to be upgraded consisting of all 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.
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 comprises the following steps of pushing an upgrade package corresponding to the device to be upgraded at present so as to upgrade the device to be upgraded at present according to the upgrade package, and then:
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.
5. The terminal upgrading method according to claim 4, 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.
6. The terminal upgrading method according to claim 4 or 5, 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 the 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.
7. A terminal upgrading device is characterized in that: applied to a remote server, the device comprising:
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 packet comprises device upgrading packets 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 task of the target upgrading terminal under the conditions that the authenticity and the accuracy of the upgrading packet of the target upgrading terminal are checked to be passed and the accuracy and the upgrading time feasibility of the upgrading task of the target upgrading terminal are checked to be passed;
the upgrading strategy judgment module is used for judging whether the upgrading strategy of the target upgrading terminal meets preset precondition corresponding to each device to be upgraded; the precondition comprises a current software version number, a new software version number, an existing version backup path and an upgrading software digital signature;
the upgrading task information sending module is used for determining the upgrading rules of the devices to be upgraded in the target upgrading terminal based on the upgrading strategy of the target upgrading terminal; the upgrading rule refers to the upgrading sequence of each device to be upgraded; according to the upgrading rule, determining a current device to be upgraded from a device set to be upgraded consisting of all 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.
8. A terminal upgrading terminal is characterized in that: the terminal comprises a processor and a memory;
the memory stores one or more instructions suitable for the processor to load and execute so as to realize the terminal upgrading method according to any one of claims 1 to 6.
9. 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 6.
CN202010129462.9A 2020-02-28 2020-02-28 Terminal upgrading method and device, terminal and storage medium Active CN111414185B (en)

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 CN111414185A (en) 2020-07-14
CN111414185B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114675902B (en) * 2022-03-11 2023-08-18 潍柴动力股份有限公司 Management method and management device for software version based on embedded equipment
CN114443105B (en) * 2022-04-11 2022-08-02 深圳市帝迈生物技术有限公司 Method, apparatus, medium, and program product for upgrading pipeline system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006136060A1 (en) * 2005-06-24 2006-12-28 Zte Corporation Multi-software system upgrading method
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
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
CN110837392A (en) * 2019-11-06 2020-02-25 四川天邑康和通信股份有限公司 Method and system for self-adaptive differential upgrading of IPTV (Internet protocol television) or convergence gateway

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9043778B2 (en) * 2011-12-01 2015-05-26 Tencent Technology (Shenzhen) Company Limited Method and system for upgrading software
CN105094875A (en) * 2014-05-19 2015-11-25 中兴通讯股份有限公司 Software upgrading method and device
CN105183496A (en) * 2015-07-21 2015-12-23 浪潮软件集团有限公司 Method for automatically upgrading and pushing software based on domestic CPU and operating system
CN105373410B (en) * 2015-12-22 2019-04-30 京信通信系统(中国)有限公司 Base station software difference upgrade method and its device
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
CN110351314B (en) * 2018-04-03 2023-11-21 厦门雅迅网络股份有限公司 Remote upgrading method of automobile controller and computer readable storage medium
CN109375933B (en) * 2018-09-25 2023-03-03 郑州云海信息技术有限公司 Method and equipment for upgrading client
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
CN110704083B (en) * 2019-09-26 2024-01-19 上海科世达-华阳汽车电器有限公司 On-line upgrading method, device and system for automobile and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006136060A1 (en) * 2005-06-24 2006-12-28 Zte Corporation Multi-software system upgrading method
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
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
CN110837392A (en) * 2019-11-06 2020-02-25 四川天邑康和通信股份有限公司 Method and system for self-adaptive differential upgrading of IPTV (Internet protocol television) or convergence gateway

Also Published As

Publication number Publication date
CN111414185A (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN111414185B (en) Terminal upgrading method and device, terminal and storage medium
CN103744686B (en) Control method and the system of installation is applied in intelligent terminal
CN107547239B (en) Configuration object updating method and device
CN107645546B (en) File monitoring method based on android system, intelligent device and storage medium
CN105389263A (en) Method, system and equipment for monitoring application software permissions
CN111414177A (en) Vehicle upgrading method, device, terminal and storage medium
CN105786636B (en) A kind of system repair and device
CN110045969B (en) Application program installation method, server, system, device and storage medium
CN106325896A (en) Method and device for processing shared function library file of installation package
CN110580556B (en) Data processing method and system and processor
CN115437915A (en) Vehicle-based version testing method and device and electronic equipment
CN111831300A (en) APP updating method and device, electronic equipment and computer readable 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
CN103365672A (en) Method and system for processing description information of application program
CN112667272A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN114915554B (en) Remote upgrading method, device, computer equipment and storage medium
CN102902564B (en) Method and the device of patch are installed
CN115454472A (en) Remote upgrading problem solving method, device, equipment and readable storage medium
CN113868531A (en) Information acquisition method and device, electronic device and medium
CN114465876A (en) Fault processing method, device, equipment and storage medium
CN101464876A (en) Data updating method for electronic dictionary machine
CN114546842A (en) Interface test method and device, storage medium and electronic equipment
CN114090055A (en) Application program updating method and device, terminal and storage medium

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