CN113076117A - OTA (over the air) upgrading method and device, electronic equipment and storage medium - Google Patents

OTA (over the air) upgrading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113076117A
CN113076117A CN202010006587.2A CN202010006587A CN113076117A CN 113076117 A CN113076117 A CN 113076117A CN 202010006587 A CN202010006587 A CN 202010006587A CN 113076117 A CN113076117 A CN 113076117A
Authority
CN
China
Prior art keywords
program
upgrading
ota
upgraded
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
Application number
CN202010006587.2A
Other languages
Chinese (zh)
Other versions
CN113076117B (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.)
Beijing Orion Star Technology Co Ltd
Original Assignee
Beijing Orion Star Technology 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 Beijing Orion Star Technology Co Ltd filed Critical Beijing Orion Star Technology Co Ltd
Priority to CN202010006587.2A priority Critical patent/CN113076117B/en
Publication of CN113076117A publication Critical patent/CN113076117A/en
Application granted granted Critical
Publication of CN113076117B publication Critical patent/CN113076117B/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
    • 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 embodiment of the invention provides an OTA upgrading method, an OTA upgrading device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving an OTA upgrade package sent by a server, wherein the OTA upgrade package comprises configuration information representing a program of a hardware module to be upgraded and an upgrade package of the program of the hardware module to be upgraded; determining a program to be upgraded from programs of a plurality of hardware modules based on the configuration information; and upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet. By adopting the method provided by the embodiment of the invention, the upgrading requirements of diversified hardware modules in the terminal equipment are met, the corresponding OTA upgrading package is used for upgrading, and the upgrading experience of users is improved.

Description

OTA (over the air) upgrading method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to an OTA upgrading method and apparatus, an electronic device, and a storage medium.
Background
OTA (Over the Air Technology, spatial download Technology) is a Technology for remotely managing data and applications of a terminal device through an Air interface of mobile communication. OTA upgrading is that the terminal equipment downloads an upgrading packet on a remote server through a wireless network, and then the system of the terminal equipment is upgraded by using the upgrading packet. Because the system after OTA upgrade can repair the vulnerability of the system before upgrade and optimize the system, the terminal equipment can perform OTA upgrade in multiple options.
At present, the application scenario of OTA upgrade is complicated, for example, a terminal device providing service at night cannot perform OTA upgrade at night, while a terminal device applied to a shopping mall may perform OTA upgrade at night. For complex application scenarios, the existing OTA upgrade scheme is mainly designed for different scenarios, and one OTA upgrade scheme is usually only suitable for one application scenario.
Therefore, the existing OTA upgrading scheme cannot meet the diversified upgrading scene of each hardware module of the terminal device, so that the use of a user is not convenient enough, and the upgrading experience of the user is poor.
Disclosure of Invention
The embodiment of the invention aims to provide an OTA upgrading method, which aims to realize the OTA upgrading capable of automatically adapting to each hardware module of terminal equipment and improve the user upgrading experience.
In order to achieve the above object, an embodiment of the present invention provides an OTA upgrading method, which is applied to a terminal device, where the terminal device includes a plurality of hardware modules, and a program of each hardware module is installed in the terminal device, and the method includes:
receiving an OTA upgrade package sent by a server, wherein the OTA upgrade package comprises configuration information representing a program of a hardware module needing to be upgraded and an upgrade package of the program of the hardware module needing to be upgraded;
determining a program to be upgraded from programs of the plurality of hardware modules based on the configuration information;
and upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet.
Optionally, first upgrade configuration information is set for a program of each hardware module, where the first upgrade configuration information indicates whether to allow program upgrade of the hardware module;
determining programs of the hardware modules needing to be upgraded from the programs of the hardware modules based on the configuration information, wherein the programs are used as programs to be upgraded and comprise:
determining programs of the hardware modules needing to be upgraded from the programs of the hardware modules based on the configuration information; and
and selecting the program of the hardware module which is allowed to be upgraded from the programs of the hardware modules which need to be upgraded based on the first upgrading configuration information, and determining the program as the program to be upgraded.
Optionally, the following steps are adopted to determine the first upgrade configuration information:
for each program of the hardware module, if the upgrade-allowed option corresponding to the program of the hardware module is selected, determining that the first upgrade configuration information of the program of the hardware module indicates that the program of the hardware module is allowed to be upgraded; or if the upgrading impermissible option corresponding to the program of the hardware module is selected, determining that the first upgrading configuration information of the program of the hardware module indicates that the upgrading of the program of the hardware module is impermissible.
Optionally, second upgrade configuration information is preset for the terminal device, where the second upgrade configuration information indicates an OTA upgrade scheme allowed to be used by the terminal device;
the upgrading of the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet comprises the following steps:
and when the upgrading condition of the OTA upgrading scheme allowed to be used by the terminal equipment is triggered, upgrading the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet according to the OTA upgrading scheme.
Optionally, third upgrade configuration information is preset for a program of each hardware module, where the third upgrade configuration information indicates an OTA upgrade scheme that is allowed to be used for the program of the hardware module;
the upgrading of the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet comprises the following steps:
and for each program to be upgraded, when the upgrading condition of the OTA upgrading scheme allowed to be used by the program to be upgraded is triggered, upgrading the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet according to the OTA upgrading scheme.
Optionally, the OTA upgrade scheme allowed to be used includes at least one of the following upgrade schemes:
the terminal equipment is changed from power-on to power-on, and then the power-on automatic upgrading scheme is triggered;
restoring the factory setting and then upgrading scheme, wherein the factory setting and then upgrading scheme is triggered after the terminal equipment is restored to the factory setting;
and setting a time period upgrading scheme, wherein the time period upgrading scheme is triggered when the current time is monitored to be within a preset time period.
Optionally, the following steps are adopted to determine the second upgrade configuration information:
for each OTA upgrading scheme which can be used, if an upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the second upgrading configuration information indicates that the terminal equipment is permitted to use the OTA upgrading scheme; or if the upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the second upgrading configuration information indicates that the terminal equipment is not permitted to use the OTA upgrading scheme.
Optionally, the following steps are adopted, and for a program of each hardware module, the third upgrade configuration information of the program is determined:
for each OTA upgrading scheme which can be used, if an upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the third upgrading configuration information of the program of the hardware module indicates that the program of the hardware module is permitted to use the OTA upgrading scheme; or if the upgrade disallowance option corresponding to the OTA upgrade scheme is selected, determining that the third upgrade configuration information of the program of the hardware module indicates that the program of the hardware module does not allow the OTA upgrade scheme to be used.
Optionally, second upgrade configuration information is preset for the terminal device, where the second upgrade configuration information indicates an OTA upgrade scheme allowed to be used by the terminal device;
before receiving the OTA upgrade package sent by the server, the method further includes:
receiving new version information sent by a server, wherein the new version information represents a program of a hardware module capable of being upgraded;
when the new version information carries upgrading type information and an OTA upgrading scheme represented by the upgrading type information is an OTA upgrading scheme allowed to be used by the terminal equipment, requesting the server to download an OTA upgrading packet;
the upgrading of the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet comprises the following steps:
and according to the OTA upgrading scheme represented by the upgrading type information, upgrading the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet.
Optionally, the OTA upgrade scheme represented by the upgrade type information is as follows: one of a forced upgrade scheme and a silent upgrade scheme.
In order to achieve the above object, correspondingly, an embodiment of the present invention further provides an OTA upgrading method applied to a server, where an upgrading program of a hardware module is maintained for each hardware module in the server, and the method includes:
generating configuration information indicating that each program needs to be upgraded aiming at the program of each hardware module needing to be upgraded in the terminal equipment;
creating an OTA upgrade package containing the configuration information and the upgrade package of each program;
and sending the OTA upgrade package to the terminal equipment.
In order to achieve the above object, an embodiment of the present invention further provides an OTA upgrading apparatus, which is applied to a terminal device, where the terminal device includes a plurality of hardware modules, and a program of each hardware module is installed in the terminal device, and the apparatus includes:
the first receiving module is used for receiving an OTA upgrading packet sent by a server, wherein the OTA upgrading packet comprises configuration information representing a program of a hardware module needing to be upgraded and an upgrading packet of the program of the hardware module needing to be upgraded;
a first determining module, configured to determine a program to be upgraded from programs of the plurality of hardware modules based on the configuration information;
and the upgrading module is used for upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet.
In order to achieve the above object, correspondingly, an embodiment of the present invention further provides an OTA upgrading apparatus, which is applied to a server, where an upgrade program of a hardware module is maintained for each hardware module in the server, and the apparatus includes:
the information generation module is used for generating configuration information which indicates that each program needs to be upgraded aiming at the program of each hardware module needing to be upgraded in the terminal equipment;
the creating module is used for creating an OTA upgrading packet containing the configuration information and the upgrading packet of each program;
and the sending module is used for sending the OTA upgrade package to the terminal equipment.
In order to achieve the above object, an embodiment of the present invention provides an electronic device, which includes a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface are configured to complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any OTA upgrading method step applied to the terminal equipment when executing the program stored in the memory.
In order to achieve the above object, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the OTA upgrading method steps applied to a terminal device.
To achieve the above object, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform any of the OTA upgrade method steps applied to a terminal device.
In order to achieve the above object, an embodiment of the present invention provides an electronic device, which includes a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface are configured to complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any OTA upgrading method step applied to the server when executing the program stored in the memory.
In order to achieve the above object, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the OTA upgrading method steps applied to a server.
To achieve the above object, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform any of the OTA upgrade method steps described above as applied to a server.
The OTA-based system upgrading method provided by the embodiment of the invention receives an OTA upgrading packet sent by a server, wherein the OTA upgrading packet comprises configuration information representing a program of a hardware module to be upgraded and an upgrading packet of the program of the hardware module to be upgraded; determining a program to be upgraded from programs of a plurality of hardware modules based on the configuration information; and upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet. By adopting the method provided by the embodiment of the invention, the program to be upgraded is determined from the programs of the hardware modules of the terminal equipment through the configuration information, and the program to be upgraded is upgraded, so that the upgrading requirement of diversified hardware modules in the terminal equipment is met, the corresponding OTA upgrading package is used for upgrading, and the upgrading experience of a user is improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an OTA upgrading method according to an embodiment of the present invention;
fig. 2 is a flowchart of another OTA upgrading method according to an embodiment of the present invention;
fig. 3 is a flowchart of another OTA upgrading method according to an embodiment of the present invention;
fig. 4 is a flowchart of another OTA upgrading method according to an embodiment of the present invention;
fig. 5a is a flowchart of a forced upgrade scheme in an OTA upgrade method according to an embodiment of the present invention;
fig. 5b is a flowchart of a silent upgrade scheme in the OTA upgrade method according to an embodiment of the present invention;
fig. 5c is a flowchart of a boot automatic upgrade scheme in the OTA upgrade method according to an embodiment of the present invention;
fig. 5d is a flowchart of an upgrade scheme after factory settings are restored in the OTA upgrade method according to the embodiment of the present invention;
fig. 5e is a flowchart of an upgrade scheme for setting a time period in the OTA upgrade method according to the embodiment of the present invention;
fig. 6 is a flowchart of another OTA upgrading method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an OTA upgrading apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another OTA upgrading apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another OTA upgrading apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another electronic device 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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses an OTA upgrading method, which is applied to terminal equipment, wherein the terminal equipment comprises a plurality of hardware modules, and programs of the hardware modules are installed in the terminal equipment, as shown in figure 1, the method can comprise the following steps:
step 101, receiving an OTA upgrade package sent by a server, where the OTA upgrade package includes configuration information indicating a program of a hardware module to be upgraded and an upgrade package indicating a program of a hardware module to be upgraded.
And 102, determining programs of each hardware module needing to be upgraded from programs of a plurality of hardware modules based on the configuration information, and taking the programs as programs to be upgraded.
And 103, upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet.
By adopting the method provided by the embodiment of the invention, the program to be upgraded is determined from the programs of the hardware modules of the terminal equipment through the configuration information, and the program to be upgraded is upgraded, so that the upgrading requirements of diversified hardware modules in the terminal equipment are met, the program to be upgraded is upgraded by using the corresponding upgrading packet, and the upgrading experience of a user is improved.
In the embodiment of the present invention, the program of the hardware module may be a system program or an application program loaded on the hardware module of the terminal device. There may be one or more hardware modules in the terminal device. For example, for a plurality of hardware modules of the robot, such as a navigation module, a vision module and a power supply module, the programs of the hardware modules may be system programs loaded on the navigation module, the vision module and the power supply module of the robot respectively.
In the embodiment of the invention, when the program to be upgraded is upgraded, the electric quantity of the terminal equipment can be monitored, when the electric quantity of the terminal equipment is smaller than the preset electric quantity threshold value, the terminal equipment is charged, and until the electric quantity of the terminal equipment is not smaller than the preset electric quantity threshold value, the program to be upgraded can be upgraded by using the OTA upgrade package of the program to be upgraded according to the corresponding OTA upgrade scheme. The preset electric quantity threshold value can be set according to the actual upgrading condition, and for example, the preset electric quantity threshold value can be set to be 30% of the rated maximum electric quantity.
The method and apparatus of the present invention will be described in detail with reference to the accompanying drawings using specific embodiments.
In an embodiment of the present invention, the OTA upgrading method provided in the embodiment of the present invention, wherein first upgrade configuration information is set for a program of each hardware module, the first upgrade configuration information indicates whether to allow the program of the hardware module to be upgraded, second upgrade configuration information is set in advance for the terminal device, and the second upgrade configuration information indicates an OTA upgrading scheme allowed to be used by the terminal device, as shown in fig. 2, the OTA upgrading method may include the following steps:
step 201, receiving an OTA upgrade package sent by a server, where the OTA upgrade package includes configuration information indicating a program of a hardware module to be upgraded and an upgrade package of the program of the hardware module to be upgraded.
In the embodiment of the invention, the request for obtaining the OTA upgrade package can be sent to the server through the terminal equipment, the server can send the OTA upgrade package to the terminal equipment after receiving the request sent by the terminal equipment, and then the terminal equipment receives the OTA upgrade package sent by the server. The request sent by the terminal device to the server may include: the identification information of each hardware module to be upgraded in the terminal device may specifically be a name of each hardware module. After receiving the identification information included in the request sent by the terminal device, the server may send an OTA upgrade package to the terminal device, where the OTA upgrade package includes configuration information indicating a program of a hardware module that needs to be upgraded in the terminal device, and an upgrade package indicating a program of a hardware module that needs to be upgraded in the terminal device.
In the embodiment of the invention, the OTA upgrade package can also be directly sent to the terminal equipment through the server, and the terminal equipment receives the OTA upgrade package sent by the server. The server directly sends the OTA upgrade package to the terminal device, wherein the upgrade package may include configuration information indicating a program of an upgradable hardware module existing in the server and an upgrade package indicating a program of an upgradable hardware module existing in the server.
Step 202, determining the program of each hardware module to be upgraded from the programs of the plurality of hardware modules based on the configuration information.
In the embodiment of the present invention, the configuration information may be a file named config.xml contained in the OTA upgrade package, and a target upgrade version number of a program of a hardware module to be upgraded in the terminal device, a file name of the upgrade package of the program of the hardware module to be upgraded, and an MD5 (information digest algorithm) value of the upgrade package of the program of the hardware module to be upgraded are recorded in the config.xml file. In the embodiment of the present invention, the program of each hardware module that needs to be upgraded may be determined from the programs of each hardware module of the terminal device according to the target upgrade version number recorded in the config.
In this step, for the programs of the multiple hardware modules of the terminal device, when the configuration information includes the target upgrade version number of the program of the hardware module, the file name of the OTA upgrade package of the program of the hardware module, or the MD5 value of the OTA upgrade package of the program of the hardware module, it may be determined that the program of the hardware module is the program of the hardware module that needs to be upgraded.
Step 203, based on the first upgrade configuration information, selecting the program of the hardware module allowed to be upgraded from the programs of the hardware modules required to be upgraded, and determining the program as the program to be upgraded.
In the embodiment of the invention, if the first upgrade configuration information is not configured, the programs of all the hardware modules can be defaulted to be upgraded, and under the condition, the programs of all the hardware modules in the OTA upgrade package received by the terminal equipment are determined to be the programs to be upgraded.
In the embodiment of the present invention, the first upgrade configuration information may be set for a program of each hardware module.
In this step, the first upgrade configuration information may be determined in the following manner:
for each program of each hardware module, if an upgrade-allowed option corresponding to the program of the hardware module is selected, determining that first upgrade configuration information of the program of the hardware module indicates that the program of the hardware module is allowed to be upgraded; or if the upgrading impermissible option corresponding to the program of the hardware module is selected, determining that the first upgrading configuration information of the program of the hardware module indicates that the upgrading of the program of the hardware module is impermissible.
For example, the upgrade allowing option and the upgrade disallowing option corresponding to the program of each hardware module may be displayed through the configuration interface. Aiming at the programs of the hardware modules, a user can click an upgrade-allowed option corresponding to the program of the hardware module on a display interface on the display interface to determine that the first upgrade configuration information of the program of the hardware module represents that the program of the hardware module is allowed to be upgraded; or, the user may also determine that the first upgrade configuration information of the program of the hardware module indicates that the program upgrade of the hardware module is not allowed by clicking a non-upgrade-allowed option corresponding to the program of the hardware module on the presentation interface.
The user can also determine that the first upgrade configuration information of the programs of all the hardware modules in the terminal equipment indicates that the upgrade is allowed by clicking all the allowed options on the display interface; or, the user may also determine that the first upgrade configuration information of the programs of all the hardware modules in the terminal device indicates that the upgrade is not allowed by clicking all the disallowed options on the presentation interface.
In this step, the program of the default hardware module to be upgraded in the terminal device may also be determined as the program to be upgraded.
And 204, when the upgrading condition of the OTA upgrading scheme allowed to be used by the terminal equipment is triggered based on the second upgrading configuration information, upgrading the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet according to the OTA upgrading scheme.
In the embodiment of the present invention, the second upgrade configuration information may be determined as follows:
for each OTA upgrading scheme which can be used, if an upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the second upgrading configuration information indicates that the terminal equipment is permitted to use the OTA upgrading scheme; or if the upgrading impermissible option corresponding to the OTA upgrading scheme is selected, determining that the second upgrading configuration information indicates that the terminal equipment is not allowed to use the OTA upgrading scheme.
Illustratively, the upgrade allowing option and the upgrade disallowing option corresponding to each OTA upgrade scheme can be displayed through a configuration interface.
For each OTA upgrading scheme, a user can click an upgrading permission option corresponding to the OTA upgrading scheme on the display interface to determine that second upgrading configuration information of the OTA upgrading scheme indicates that the terminal equipment is allowed to use the OTA upgrading scheme; or, the user may also determine that the terminal device is not allowed to use the OTA upgrade scheme by clicking a non-upgrade allowed option corresponding to the OTA upgrade scheme on the display interface according to the second upgrade configuration information of the OTA upgrade scheme.
The user can also determine that the second upgrade configuration information indicates that the terminal equipment is allowed to use all OTA upgrade schemes by clicking all allowed options on the display interface; or, the user may also determine that the second upgrade configuration information indicates that the terminal device is not allowed to use any OTA upgrade scheme by clicking all the disallowed options on the presentation interface.
In this step, the default OTA upgrade scheme allowed to be used in the terminal device may also be determined as the OTA upgrade scheme allowed to be used by the terminal device and indicated by the second upgrade configuration information.
In this step, the OTA upgrade scheme allowed to be used, which is determined based on the second upgrade configuration information, may include at least one of the following upgrade schemes:
the terminal equipment is changed from the non-starting to the starting and then triggers the starting automatic upgrading scheme;
restoring the factory setting and upgrading scheme, wherein the terminal equipment is triggered to restore the factory setting and then the upgrading scheme is restored;
and setting a time period upgrading scheme, wherein the time period upgrading scheme is triggered when the current time is monitored to be within a preset time period, the preset time period can be specifically set according to actual requirements, and for example, the preset time period can be 1 to 6 points at night.
By adopting the method provided by the embodiment of the invention, the program to be upgraded is determined from the programs of the hardware modules of the terminal equipment through the configuration information and the first configuration information, the OTA upgrading scheme allowed to be used by the terminal equipment is determined through the second configuration information, and the program to be upgraded is upgraded according to the OTA upgrading scheme, so that the upgrading requirements of diversified hardware modules in the terminal equipment and diversified actual application scenes are upgraded by adopting the corresponding OTA upgrading scheme, and the upgrading experience of a user is improved.
In an embodiment of the present invention, the OTA upgrading method provided in the embodiment of the present invention, wherein first upgrade configuration information is set for a program of each hardware module, the first upgrade configuration information indicates whether to allow the program of the hardware module to be upgraded, second upgrade configuration information is set in advance for the terminal device, and the second upgrade configuration information indicates an OTA upgrading scheme allowed to be used by the terminal device, as shown in fig. 3, the OTA upgrading method may include the following steps:
step 301, receiving new version information sent by the server, where the new version information indicates that a program of a hardware module to be upgraded exists.
In this step, a request for acquiring the new version information may be sent to the server through the terminal device, and after receiving the request sent by the terminal device, the server may send the new version information to the terminal device, and the terminal device may receive the new version information sent by the server; the new version information can also be directly sent to the terminal equipment through the server, and the terminal equipment can receive the new version information sent by the server. The new version information may include an upgrade version number of the OTA upgrade package, and the new version information may also carry upgrade type information, where the upgrade type information may be an identifier of an OTA upgrade scheme.
Step 302, judging whether the new version information carries the upgrade type information, and whether the OTA upgrade scheme represented by the upgrade type information is an OTA upgrade scheme allowed to be used by the terminal device, if so, executing step 303, and if not, executing step 308.
In this step, when the upgrade type information is in the new version information, whether the OTA upgrade scheme indicated by the upgrade type information is an OTA upgrade scheme allowed to be used by the terminal device may be determined by monitoring the second upgrade configuration information. The specific judgment method may be:
when it is monitored that an upgrade-allowed option corresponding to the OTA upgrade scheme indicated by the upgrade type information in the second upgrade configuration information is selected, determining that the second upgrade configuration information indicates that the terminal device is allowed to use the OTA upgrade scheme; or monitoring that an upgrading impermissible option corresponding to the OTA upgrading scheme represented by the upgrading type information in the second upgrading configuration information is selected, and determining that the OTA upgrading scheme is not allowed to be used by the terminal equipment represented by the second upgrading configuration information. The method for determining the second upgrade configuration information is described in detail in step 204, and is not described herein again.
And 303, when the new version information carries the upgrade type information and the OTA upgrade scheme represented by the upgrade type information is the OTA upgrade scheme allowed to be used by the terminal equipment, requesting to download the OTA upgrade package from the server.
In this step, the OTA upgrade scheme represented by the upgrade type information may be: one of a forced upgrade scheme and a silent upgrade scheme.
For the forced upgrading scheme, whether the terminal equipment receives new version information sent by the server or not can be monitored; after receiving new version information sent by a server, determining whether the new version information carries upgrading type information representing a forced upgrading scheme; when the new version information carries the upgrade type information representing the forced upgrade scheme, and the forced upgrade scheme is an OTA upgrade scheme allowed to be used by the terminal equipment, the OTA upgrade package can be requested to be downloaded to the server.
Aiming at the silent upgrade scheme, monitoring whether the terminal equipment receives new version information sent by the server; after receiving new version information sent by a server, determining whether the new version information carries upgrading type information representing a silent upgrading scheme; when the new version information carries the upgrade type information representing the silent upgrade scheme, and the silent upgrade scheme is an OTA upgrade scheme allowed to be used by the terminal equipment, the OTA upgrade package can be requested to be downloaded from the server.
For example, when the acquired new version information carries an identifier of the forced upgrade scheme and the terminal device allows the forced upgrade scheme to be used, the terminal device may request the server to download the OTA upgrade package.
Step 304-step 306 are the same as step 201-step 203, and are not described herein again.
And 307, upgrading the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet according to the OTA upgrading scheme represented by the upgrading type information.
In this step, for example, when the obtained new version information carries an identifier of the forced upgrade scheme and the terminal device allows the forced upgrade scheme to be used, after requesting to download the OTA upgrade package from the server, the upgrade package of the program to be upgraded in the OTA upgrade package may be used to upgrade the program to be upgraded according to the forced upgrade scheme.
And step 308, ending the operation.
By adopting the method provided by the embodiment of the invention, the program to be upgraded is determined from the programs of the hardware modules of the terminal equipment through the configuration information and the first configuration information, the OTA upgrading scheme allowed to be used by the terminal equipment is determined through the new version information and the second configuration information, and the program to be upgraded is upgraded according to the OTA upgrading scheme, so that the upgrading requirements of diversified hardware modules in the terminal equipment and diversified actual application scenes can be upgraded by adopting the corresponding OTA upgrading scheme, and the upgrading experience of users is improved.
In an embodiment of the present invention, an OTA upgrading method provided in an embodiment of the present invention is an OTA upgrading method, where first upgrade configuration information is set for a program of each hardware module, where the first upgrade configuration information indicates whether to allow the program of the hardware module to be upgraded, third upgrade configuration information is preset for the program of each hardware module, and the third upgrade configuration information indicates an OTA upgrading scheme that is allowed to be used for the program of the hardware module, as shown in fig. 4, the OTA upgrading method may include the following steps:
steps 401 to 403 correspond to steps 201 to 203, respectively, and are not described herein again.
Step 404, for each program to be upgraded, determining whether an upgrade condition of the OTA upgrade scheme allowed to be used by the program to be upgraded, which is determined based on the third upgrade configuration information, is triggered, if so, executing step 405, and if not, executing step 406.
In this step, the OTA upgrade scheme allowed to be used, which is determined based on the third upgrade configuration information, may include at least one of the following upgrade schemes:
the method comprises the steps of starting up an automatic upgrading scheme, wherein after terminal equipment is changed from being started up to being started up, the upgrading condition of the automatic upgrading scheme is determined to be triggered;
restoring the factory setting and upgrading scheme, wherein after the terminal equipment is restored to the factory setting, determining that upgrading conditions of the upgrading scheme after the factory setting is restored are triggered;
and setting a time period upgrading scheme, wherein when the current time is monitored to be within a preset time period, it is determined that upgrading conditions of the time period upgrading scheme are triggered, the preset time period can be specifically set according to actual requirements, and for example, the preset time period can be 1 to 6 points at night.
In the embodiment of the present invention, for the program of each hardware module, the third upgrade configuration information may be determined as follows:
for each OTA upgrading scheme which can be used, if an upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the third upgrading configuration information of the program of the hardware module indicates that the program of the hardware module is permitted to use the OTA upgrading scheme; or if the upgrade disallowance option corresponding to the OTA upgrade scheme is selected, determining that the third upgrade configuration information of the program of the hardware module indicates that the program of the hardware module does not allow the OTA upgrade scheme to be used. The upgrading permission option and the upgrading non-permission option corresponding to each OTA upgrading scheme of the program of each usable hardware module can be displayed on the same display interface.
And 405, when the upgrade condition of the OTA upgrade scheme allowed to be used by each program to be upgraded and determined based on the third upgrade configuration information is triggered, upgrading the program to be upgraded by using the upgrade package of the program to be upgraded in the OTA upgrade package according to the OTA upgrade scheme.
Step 406, the operation ends.
By adopting the method provided by the embodiment of the invention, the program to be upgraded is determined from the programs of the hardware modules of the terminal equipment through the configuration information and the first configuration information, the OTA upgrading scheme allowed to be used by the program to be upgraded is determined through the third configuration information, and the program to be upgraded is upgraded according to the OTA upgrading scheme. And in various OTA upgrading schemes such as a starting-up automatic upgrading scheme, an upgrading scheme after factory setting is restored, a time period setting upgrading scheme and the like, whether the upgrading condition of the corresponding OTA upgrading scheme is triggered or not is monitored, and the corresponding OTA upgrading scheme is determined to upgrade the program to be upgraded, so that the corresponding OTA upgrading scheme can be adopted for upgrading aiming at diversified practical application scenes, diversified upgrading requirements are met, and the upgrading experience of a user is improved.
In the embodiment of the present invention, in practical application, for different OTA upgrade schemes, the process of upgrading a program to be upgraded according to the OTA upgrade scheme may specifically include the following steps:
mode A: as shown in fig. 5a, the process of forcing the program to be upgraded corresponding to the upgrade scheme to upgrade may specifically include the following steps:
step 501a, receiving new version information sent by the server.
Step 502a, when the new version information carries the upgrade type information of the forced upgrade scheme and the terminal device allows to use the forced upgrade scheme, downloading the OTA upgrade package from the server to the terminal device.
Step 503a, after the OTA upgrade package is downloaded, automatically using the upgrade package corresponding to the program to be upgraded in the OTA upgrade package to upgrade the program to be upgraded.
Mode B: as shown in fig. 5b, the process of upgrading the program to be upgraded corresponding to the silent upgrade scheme may specifically include the following steps:
and step 501b, receiving the new version information sent by the server.
And step 502b, when the new version information carries the upgrade type information of the silent upgrade scheme and the terminal equipment allows the silent upgrade scheme to be used, starting a download cycle timer and an upgrade cycle timer.
The download cycle timer is provided with a download period, the time for starting the download cycle timer is taken as an initial time, the download cycle timer is up after every n download periods, n is {1,2,3, … }, the download period can be adaptively set according to a specific application scene, and the download period can be set to be 1 hour;
the upgrade cycle timer is provided with an upgrade period, the time for starting the upgrade cycle timer is taken as an initial time, after each m upgrade periods, the upgrade cycle timer expires, where m is {1,2,3, … }, and the upgrade period may be adaptively set according to a specific application scenario, for example, the upgrade period may be set to 2 hours;
wherein, the download period and the upgrade period may be the same or different.
Step 503b, after the download cycle timer expires after n download cycles, determining whether the current time is within the preset silent download time period, if so, executing step 504b, and if not, executing step 507b, wherein the preset silent download time period can be set according to specific application requirements.
Step 504b, start downloading OTA upgrade package;
step 505b, judging whether the OTA upgrade package is downloaded in the preset silent downloading time period, if so, executing step 506b, and if not, executing step 507 b;
step 506b, after the upgrade cycle timer expires after m upgrade periods, determining whether the current time is within a preset silent upgrade time period, if so, executing step 508b, and if not, executing step 509b, wherein the preset silent upgrade time period can be set according to specific application requirements;
and step 507b, adding 1 to the n value to serve as a new n value, and returning to step 503 b.
And step 508b, upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet.
Step 509b, add 1 to the m value as a new m value, and return to step 506 b;
step 510b, judging whether the OTA upgrade is finished in the preset silent upgrade time period, if so, executing step 511b, and if not, executing step 509 b;
and 511b, canceling the download cycle timer and the upgrade cycle timer after the OTA upgrade is finished.
Mode C: as shown in fig. 5c, the process of upgrading a program to be upgraded corresponding to the boot automatic upgrade scheme may specifically include the following steps:
step 501c, when the terminal equipment is changed from being started up to being started up, detecting whether an OTA upgrade package exists in the terminal equipment;
and step 502c, when detecting that the OTA upgrade package exists in the terminal equipment, automatically using the upgrade package corresponding to the program to be upgraded in the OTA upgrade package to upgrade the program to be upgraded.
Mode D: as shown in fig. 5d, the process of upgrading the program to be upgraded corresponding to the upgrade scheme after the factory is restored may specifically include the following steps:
step 501d, after the terminal device is restored to factory settings, monitoring whether a new OTA upgrade package exists in the server;
step 502d, when a new OTA upgrade package exists in the monitoring server, downloading the OTA upgrade package from the server to the terminal equipment;
and 503d, automatically using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet, and upgrading the program to be upgraded.
Mode E: the process of setting the program to be upgraded corresponding to the time period upgrading scheme to perform upgrading may specifically include the following steps, as shown in fig. 5 e:
step 501e, monitoring whether a new OTA upgrade package exists in the server within a preset time period;
step 502e, when a new OTA upgrade package exists in the monitoring server, downloading the OTA upgrade package from the server to the terminal equipment within a preset time period at night;
step 503e, in a preset time period at night, automatically using the upgrade package corresponding to the program to be upgraded in the OTA upgrade package, and upgrading the program to be upgraded.
By adopting the method provided by the embodiment of the invention, the corresponding OTA upgrading scheme is determined to upgrade the program to be upgraded by monitoring whether the upgrading condition of the OTA upgrading scheme is triggered or not in various OTA upgrading schemes, so that the corresponding OTA upgrading scheme can be adopted for upgrading aiming at diversified practical application scenes, and the upgrading experience of users is improved.
Based on the same inventive concept, correspondingly, another embodiment of the present invention further provides an OTA upgrading method applied to a server, where an upgrading program of a hardware module is maintained for each hardware module in the server, as shown in fig. 6, the method specifically includes:
step 601, generating configuration information indicating that each program needs to be upgraded aiming at the program of each hardware module needing to be upgraded in the terminal equipment.
In this step, the server may generate configuration information according to the program of each hardware module to be upgraded in the terminal device, where the configuration information may be a file named config.xml contained in the OTA upgrade package, and the config.xml file records a target upgrade version number of the program of the hardware module to be upgraded in the terminal device, a file name of the OTA upgrade package of the program of the hardware module to be upgraded, and an MD5 (information digest algorithm) value of the OTA upgrade package of the program of the hardware module to be upgraded.
In this step, the program of each hardware module that needs to be upgraded by the terminal device may be determined through request information sent by the terminal device box server, where the request information may carry first upgrade configuration information set for the program of each hardware module, and the first upgrade configuration information indicates whether the program of the hardware module is allowed to be upgraded. In this step, the program of each hardware module that needs to be upgraded in the terminal device may be determined based on the configuration information and the first upgrade configuration information.
Step 602, create an OTA upgrade package containing configuration information and upgrade packages for each program.
In this step, an OTA upgrade package including the configuration information and the determined upgrade package of the program of each hardware module that needs to be upgraded in the terminal device may be generated.
Step 603, sending the OTA upgrade package to the terminal device.
By adopting the method provided by the embodiment of the invention, the server can generate the configuration information indicating that each program needs to be upgraded according to the upgrading requirements of diversified hardware modules in the terminal equipment, create the OTA upgrading packet containing the configuration information and the upgrading packet of each program, and enable the terminal equipment to upgrade the programs to be upgraded by using the corresponding upgrading packets through the upgrading packets corresponding to the programs to be upgraded contained in the created OTA upgrading packet, thereby realizing the purpose of meeting the upgrading requirements of the diversified hardware modules in the terminal equipment and improving the upgrading experience of users. And the server generates the upgrade package aiming at each hardware module in the terminal equipment, so that different terminal equipment containing the same hardware module can be upgraded by using the same upgrade package in the server, and the modularized upgrade and maintenance of the upgrade package are realized.
Based on the same inventive concept, according to the OTA upgrading method provided in the above embodiment of the present invention, correspondingly, another embodiment of the present invention further provides an OTA upgrading apparatus, which is applied to a terminal device, where the terminal device includes a plurality of hardware modules, and a program of each hardware module is installed in the terminal device, and a schematic structural diagram of the OTA upgrading apparatus is shown in fig. 7, and specifically includes:
a first receiving module 701, configured to receive an OTA upgrade package sent by a server, where the OTA upgrade package includes configuration information indicating a program of a hardware module to be upgraded and an upgrade package of the program of the hardware module to be upgraded;
a first determining module 702, configured to determine, based on the configuration information, a program of each hardware module that needs to be upgraded from programs of the multiple hardware modules, as a program to be upgraded;
the upgrading module 703 is configured to upgrade the program to be upgraded by using an upgrade package corresponding to the program to be upgraded in the OTA upgrade package.
Therefore, by adopting the device provided by the embodiment of the invention, the program to be upgraded is determined from the programs of the hardware modules of the terminal equipment through the configuration information, and the program to be upgraded is upgraded, so that the upgrading requirements of diversified hardware modules in the terminal equipment are met, the diversified upgrading requirements are met, and the upgrading experience of a user is improved.
Optionally, first upgrade configuration information is set for a program of each hardware module, where the first upgrade configuration information indicates whether to allow program upgrade of the hardware module;
a first determining module 702, configured to determine, based on the configuration information, a program of each hardware module that needs to be upgraded from programs of a plurality of hardware modules; and selecting the program of the hardware module which is allowed to be upgraded from the programs of the hardware modules which need to be upgraded based on the first upgrading configuration information, and determining the program as the program to be upgraded.
Optionally, as shown in fig. 8, the apparatus further includes: a second determining module 801, configured to determine the first upgrade configuration information by:
for each program of each hardware module, if an upgrade-allowed option corresponding to the program of the hardware module is selected, determining that first upgrade configuration information of the program of the hardware module indicates that the program of the hardware module is allowed to be upgraded; or if the upgrading impermissible option corresponding to the program of the hardware module is selected, determining that the first upgrading configuration information of the program of the hardware module indicates that the upgrading of the program of the hardware module is impermissible.
Optionally, second upgrade configuration information is preset for the terminal device, and the second upgrade configuration information indicates an OTA upgrade scheme allowed to be used by the terminal device;
the upgrading module 703 is specifically configured to, when an upgrading condition of the OTA upgrading scheme allowed to be used by the terminal device is triggered, upgrade the program to be upgraded by using an upgrading packet of the program to be upgraded in the OTA upgrading packet according to the OTA upgrading scheme.
Optionally, third upgrade configuration information is preset for the program of each hardware module, where the third upgrade configuration information indicates an OTA upgrade scheme allowed to be used for the program of the hardware module;
the upgrading module 703 is specifically configured to, for each program to be upgraded, when an upgrading condition of an OTA upgrading scheme allowed to be used for the program to be upgraded is triggered, upgrade the program to be upgraded according to the OTA upgrading scheme by using an upgrading packet of the program to be upgraded in the OTA upgrading packet.
Optionally, the OTA upgrade scheme allowed to be used includes at least one of the following upgrade schemes:
the terminal equipment is changed from the non-starting to the starting and then triggers the starting automatic upgrading scheme;
restoring the factory setting and upgrading scheme, wherein the terminal equipment is triggered to restore the factory setting and then the upgrading scheme is restored;
and setting a time period upgrading scheme, wherein the time period upgrading scheme is triggered when the current time is monitored to be within a preset time period.
Optionally, as shown in fig. 8, the apparatus further includes:
a third determining module 802, configured to determine the second upgrade configuration information by using the following steps:
for each OTA upgrading scheme which can be used, if an upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the second upgrading configuration information indicates that the terminal equipment is permitted to use the OTA upgrading scheme; or if the upgrading impermissible option corresponding to the OTA upgrading scheme is selected, determining that the second upgrading configuration information indicates that the terminal equipment is not allowed to use the OTA upgrading scheme.
Optionally, as shown in fig. 8, the apparatus further includes:
a fourth determining module 803, configured to determine, for a program of each hardware module, third upgrade configuration information of the program by:
for each OTA upgrading scheme which can be used, if an upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the third upgrading configuration information of the program of the hardware module indicates that the program of the hardware module is permitted to use the OTA upgrading scheme; or if the upgrade disallowance option corresponding to the OTA upgrade scheme is selected, determining that the third upgrade configuration information of the program of the hardware module indicates that the program of the hardware module does not allow the OTA upgrade scheme to be used.
Optionally, second upgrade configuration information is preset for the terminal device, and the second upgrade configuration information indicates an OTA upgrade scheme allowed to be used by the terminal device;
as shown in fig. 8, the apparatus further includes:
a second receiving module 804, configured to receive new version information sent by the server, where the new version information indicates that a program of a hardware module capable of being upgraded exists; when the new version information carries the upgrade type information and the OTA upgrade scheme represented by the upgrade type information is an OTA upgrade scheme allowed to be used by the terminal equipment, requesting to download an OTA upgrade package to the server;
the upgrade module 703 is specifically configured to upgrade the program to be upgraded by using the upgrade package of the program to be upgraded in the OTA upgrade package according to the OTA upgrade scheme indicated by the upgrade type information.
Optionally, the OTA upgrade scheme represented by the upgrade type information is as follows: one of a forced upgrade scheme and a silent upgrade scheme.
Accordingly, based on the same inventive concept, another embodiment of the present invention further provides an OTA upgrading apparatus, which is applied to a server, where an upgrading program for maintaining a hardware module for each hardware module in the server is shown in fig. 9, and the apparatus includes:
an information generating module 901, configured to generate configuration information indicating that each program needs to be upgraded, for a program of each hardware module that needs to be upgraded in the terminal device;
a creating module 902, configured to create an OTA upgrade package that includes configuration information and an upgrade package for each program;
and a sending module 903, configured to send the OTA upgrade package to the terminal device.
Based on the same inventive concept, according to the OTA upgrading method provided by the above embodiment of the present invention, correspondingly, the embodiment of the present invention further provides an electronic device, as shown in fig. 10, including a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete mutual communication through the communication bus 1004,
a memory 1003 for storing a computer program;
the processor 1001 is configured to implement the following steps when executing the program stored in the memory 1003:
receiving an OTA upgrade package sent by a server, wherein the OTA upgrade package comprises configuration information representing a program of a hardware module needing to be upgraded and an upgrade package of the program of the hardware module needing to be upgraded;
determining programs of the hardware modules needing to be upgraded from the programs of the hardware modules based on the configuration information, wherein the programs are used as programs to be upgraded;
and upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet.
Based on the same inventive concept, according to the OTA upgrading method provided by the above embodiment of the present invention, correspondingly, the embodiment of the present invention further provides an electronic device, as shown in fig. 11, which includes a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102 and the memory 1103 complete mutual communication through the communication bus 1104,
a memory 1103 for storing a computer program;
the processor 1101 is configured to implement the following steps when executing the program stored in the memory 1103:
generating configuration information indicating that each program needs to be upgraded aiming at the program of each hardware module needing to be upgraded in the terminal equipment;
creating an OTA upgrade package containing the configuration information and the upgrade package of each program;
and sending the OTA upgrade package to the terminal equipment.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In a further embodiment provided by the present invention, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any OTA upgrade method described above as applied to a terminal device.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the OTA upgrade methods applied to the terminal device in the above embodiments.
In yet another embodiment provided by the present invention, a computer readable storage medium is further provided, having a computer program stored therein, which when executed by a processor, implements the steps of any of the OTA upgrade methods described above as applied to a server.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the OTA upgrade methods applied to the server in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device, the electronic apparatus and the storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A space download technology OTA upgrading method is applied to terminal equipment, the terminal equipment comprises a plurality of hardware modules, and programs of the hardware modules are installed in the terminal equipment, the method comprises the following steps:
receiving an OTA upgrade package sent by a server, wherein the OTA upgrade package comprises configuration information representing a program of a hardware module needing to be upgraded and an upgrade package of the program of the hardware module needing to be upgraded;
determining a program to be upgraded from programs of the plurality of hardware modules based on the configuration information;
and upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet.
2. The method according to claim 1, wherein first upgrade configuration information is set for a program of each of the hardware modules, the first upgrade configuration information indicating whether or not the program upgrade of the hardware module is allowed;
determining programs of the hardware modules needing to be upgraded from the programs of the hardware modules based on the configuration information, wherein the programs are used as programs to be upgraded and comprise:
determining programs of the hardware modules needing to be upgraded from the programs of the hardware modules based on the configuration information; and
and selecting the program of the hardware module which is allowed to be upgraded from the programs of the hardware modules which need to be upgraded based on the first upgrading configuration information, and determining the program as the program to be upgraded.
3. The method of claim 2, wherein the first upgrade configuration information is determined by:
for each program of the hardware module, if the upgrade-allowed option corresponding to the program of the hardware module is selected, determining that the first upgrade configuration information of the program of the hardware module indicates that the program of the hardware module is allowed to be upgraded; or if the upgrading impermissible option corresponding to the program of the hardware module is selected, determining that the first upgrading configuration information of the program of the hardware module indicates that the upgrading of the program of the hardware module is impermissible.
4. The method according to claim 1, characterized in that second upgrade configuration information is preset for the terminal device, wherein the second upgrade configuration information represents an OTA upgrade scheme allowed to be used by the terminal device;
the upgrading of the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet comprises the following steps:
and when the upgrading condition of the OTA upgrading scheme allowed to be used by the terminal equipment is triggered, upgrading the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet according to the OTA upgrading scheme.
5. The method according to claim 1, characterized in that third upgrade configuration information is preset for the program of each hardware module, and the third upgrade configuration information represents OTA upgrade schemes allowed to be used for the program of the hardware module;
the upgrading of the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet comprises the following steps:
and for each program to be upgraded, when the upgrading condition of the OTA upgrading scheme allowed to be used by the program to be upgraded is triggered, upgrading the program to be upgraded by using the upgrading packet of the program to be upgraded in the OTA upgrading packet according to the OTA upgrading scheme.
6. The method of claim 4, wherein the second upgrade configuration information is determined by:
for each OTA upgrading scheme which can be used, if an upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the second upgrading configuration information indicates that the terminal equipment is permitted to use the OTA upgrading scheme; or if the upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the second upgrading configuration information indicates that the terminal equipment is not permitted to use the OTA upgrading scheme.
7. The method according to claim 5, wherein the third upgrade configuration information of each program of the hardware module is determined by the following steps:
for each OTA upgrading scheme which can be used, if an upgrading permission option corresponding to the OTA upgrading scheme is selected, determining that the third upgrading configuration information of the program of the hardware module indicates that the program of the hardware module is permitted to use the OTA upgrading scheme; or if the upgrade disallowance option corresponding to the OTA upgrade scheme is selected, determining that the third upgrade configuration information of the program of the hardware module indicates that the program of the hardware module does not allow the OTA upgrade scheme to be used.
8. The utility model provides a space download technology OTA upgrading device which characterized in that is applied to terminal equipment, terminal equipment includes a plurality of hardware modules, just install the procedure of each hardware module in the terminal equipment, the device includes:
the first receiving module is used for receiving an OTA upgrading packet sent by a server, wherein the OTA upgrading packet comprises configuration information representing a program of a hardware module needing to be upgraded and an upgrading packet of the program of the hardware module needing to be upgraded;
a first determining module, configured to determine a program to be upgraded from programs of the plurality of hardware modules based on the configuration information;
and the upgrading module is used for upgrading the program to be upgraded by using the upgrading packet corresponding to the program to be upgraded in the OTA upgrading packet.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN202010006587.2A 2020-01-03 2020-01-03 OTA upgrading method and device, electronic equipment and storage medium Active CN113076117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010006587.2A CN113076117B (en) 2020-01-03 2020-01-03 OTA upgrading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010006587.2A CN113076117B (en) 2020-01-03 2020-01-03 OTA upgrading method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113076117A true CN113076117A (en) 2021-07-06
CN113076117B CN113076117B (en) 2024-05-07

Family

ID=76608437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010006587.2A Active CN113076117B (en) 2020-01-03 2020-01-03 OTA upgrading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113076117B (en)

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917343A (en) * 2011-08-04 2013-02-06 中兴通讯股份有限公司 Firmware upgrading method, device and system
CN103559065A (en) * 2013-11-13 2014-02-05 广东欧珀移动通信有限公司 Method and system for OTA (Over-the-Air Technology) upgrade
CN104991797A (en) * 2015-06-23 2015-10-21 上海卓易科技股份有限公司 Firmware updating method for mobile terminal and mobile terminal
CN105700918A (en) * 2016-01-05 2016-06-22 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN105915401A (en) * 2016-06-29 2016-08-31 北京小米移动软件有限公司 Firmware upgrading method and device of smart hardware, and equipment
CN106201552A (en) * 2016-07-22 2016-12-07 北京智能管家科技有限公司 A kind of method for upgrading software, client, server and system
CN106250183A (en) * 2016-07-27 2016-12-21 乐视控股(北京)有限公司 A kind of mobile device method for upgrading software and device
CN106339248A (en) * 2016-10-09 2017-01-18 大道网络(上海)股份有限公司 Remote software upgrading method and remote software upgrading system
WO2017063577A1 (en) * 2015-10-15 2017-04-20 中兴通讯股份有限公司 Firmware upgrade method and apparatus for optical module
CN107301058A (en) * 2017-08-28 2017-10-27 四川长虹电器股份有限公司 Implement the method for television system OTA upgradings based on version number's Discrete control
CN108132798A (en) * 2017-12-20 2018-06-08 深圳创维-Rgb电子有限公司 Upgrade method, device and computer readable storage medium
WO2019029253A1 (en) * 2017-08-09 2019-02-14 南京阿凡达机器人科技有限公司 Fota-based remote upgrade control method and system
CN109582325A (en) * 2017-09-28 2019-04-05 深圳市优必选科技有限公司 Method for upgrading software, robot and the computer readable storage medium of robot
CN109669714A (en) * 2018-12-19 2019-04-23 广东美的暖通设备有限公司 Firmware upgrade method, device and computer readable storage medium
US20190250900A1 (en) * 2018-02-14 2019-08-15 Micron Technology, Inc. Over-the-air (ota) update for firmware of a vehicle component
CN110300406A (en) * 2019-06-26 2019-10-01 上海擎感智能科技有限公司 Vehicle online upgrading method and system, storage medium and car-mounted terminal based on OTA
US20190305927A1 (en) * 2016-03-18 2019-10-03 University Of Florida Research Foundation Incorporated Bitstream security based on node locking
CN110365510A (en) * 2018-04-10 2019-10-22 上海仪电(集团)有限公司中央研究院 It is a kind of can to network node batch OTA upgrade things-internet gateway and OTA upgrade method
CN110417871A (en) * 2019-07-05 2019-11-05 青岛海信智慧家居系统股份有限公司 A kind of smart machine upgrade method
CN110597536A (en) * 2019-08-28 2019-12-20 深圳市优必选科技股份有限公司 Software upgrading method, system and terminal equipment

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917343A (en) * 2011-08-04 2013-02-06 中兴通讯股份有限公司 Firmware upgrading method, device and system
CN103559065A (en) * 2013-11-13 2014-02-05 广东欧珀移动通信有限公司 Method and system for OTA (Over-the-Air Technology) upgrade
CN104991797A (en) * 2015-06-23 2015-10-21 上海卓易科技股份有限公司 Firmware updating method for mobile terminal and mobile terminal
WO2017063577A1 (en) * 2015-10-15 2017-04-20 中兴通讯股份有限公司 Firmware upgrade method and apparatus for optical module
CN105700918A (en) * 2016-01-05 2016-06-22 青岛海信移动通信技术股份有限公司 System upgrading method and device
US20190305927A1 (en) * 2016-03-18 2019-10-03 University Of Florida Research Foundation Incorporated Bitstream security based on node locking
CN105915401A (en) * 2016-06-29 2016-08-31 北京小米移动软件有限公司 Firmware upgrading method and device of smart hardware, and equipment
CN106201552A (en) * 2016-07-22 2016-12-07 北京智能管家科技有限公司 A kind of method for upgrading software, client, server and system
CN106250183A (en) * 2016-07-27 2016-12-21 乐视控股(北京)有限公司 A kind of mobile device method for upgrading software and device
CN106339248A (en) * 2016-10-09 2017-01-18 大道网络(上海)股份有限公司 Remote software upgrading method and remote software upgrading system
WO2019029253A1 (en) * 2017-08-09 2019-02-14 南京阿凡达机器人科技有限公司 Fota-based remote upgrade control method and system
CN107301058A (en) * 2017-08-28 2017-10-27 四川长虹电器股份有限公司 Implement the method for television system OTA upgradings based on version number's Discrete control
CN109582325A (en) * 2017-09-28 2019-04-05 深圳市优必选科技有限公司 Method for upgrading software, robot and the computer readable storage medium of robot
CN108132798A (en) * 2017-12-20 2018-06-08 深圳创维-Rgb电子有限公司 Upgrade method, device and computer readable storage medium
US20190250900A1 (en) * 2018-02-14 2019-08-15 Micron Technology, Inc. Over-the-air (ota) update for firmware of a vehicle component
CN110365510A (en) * 2018-04-10 2019-10-22 上海仪电(集团)有限公司中央研究院 It is a kind of can to network node batch OTA upgrade things-internet gateway and OTA upgrade method
CN109669714A (en) * 2018-12-19 2019-04-23 广东美的暖通设备有限公司 Firmware upgrade method, device and computer readable storage medium
CN110300406A (en) * 2019-06-26 2019-10-01 上海擎感智能科技有限公司 Vehicle online upgrading method and system, storage medium and car-mounted terminal based on OTA
CN110417871A (en) * 2019-07-05 2019-11-05 青岛海信智慧家居系统股份有限公司 A kind of smart machine upgrade method
CN110597536A (en) * 2019-08-28 2019-12-20 深圳市优必选科技股份有限公司 Software upgrading method, system and terminal equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
田不脱: "硬核高能!解析STM32 ota固件升级的全过程!", pages 1 - 5, Retrieved from the Internet <URL:《https://zhuanlan.zhihu.com/p/73998216》> *
许梦茹: "车载嵌入式设备的远程升级系统设计", 《万方》, 30 April 2019 (2019-04-30), pages 1 - 67 *
魏中华: "机顶盒软件升级方式设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, 15 February 2018 (2018-02-15), pages 136 - 1319 *

Also Published As

Publication number Publication date
CN113076117B (en) 2024-05-07

Similar Documents

Publication Publication Date Title
CN106897086B (en) Method, device and system for upgrading robot operating system
CN106792023B (en) Method and system for controlling smart television application by mobile terminal
CN107168765B (en) Method and system for remotely compiling software
US20130060890A1 (en) Apparatus and method for providing application execution using a cloud system
WO2004086196A2 (en) Electronic device supporting multiple update agents
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN103916846A (en) Terminal application updating method, system and device
CN108664799B (en) Permission setting method and device for equipment management application
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
CN113709530B (en) Resource downloading method, system, electronic equipment and storage medium
CN106293814B (en) Upgrading method and device
CN110493644B (en) Television application upgrading method, television terminal and server
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN113596087A (en) Application upgrading method and device and computer readable storage medium
CN110780944B (en) Method and device for starting application permission and machine-readable storage medium
CN111679842B (en) Application program hot update processing method, device and system
CN113076117A (en) OTA (over the air) upgrading method and device, electronic equipment and storage medium
CN115296999B (en) Mobile terminal hot repair method, device, hot repair system and readable storage medium
CN112040320B (en) Television fruit application upgrading method and device
CN111400327B (en) Data synchronization method and device, electronic equipment and storage medium
CN111679850B (en) Application program hot update processing method, device and system
KR20210034297A (en) Apparatus and control method therof for setting update alarm
RU2520942C2 (en) Method of computer-aided power system operation and computer-aided power system
US9830207B2 (en) Message communication system and operation method thereof
CN113094211B (en) Backup data processing 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