CN105872106A - Over-the-air upgrade method, over-the-air server and terminal - Google Patents
Over-the-air upgrade method, over-the-air server and terminal Download PDFInfo
- Publication number
- CN105872106A CN105872106A CN201610415948.2A CN201610415948A CN105872106A CN 105872106 A CN105872106 A CN 105872106A CN 201610415948 A CN201610415948 A CN 201610415948A CN 105872106 A CN105872106 A CN 105872106A
- Authority
- CN
- China
- Prior art keywords
- upgrade
- terminal
- upgrading
- success rate
- version
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000012545 processing Methods 0.000 claims description 19
- 238000010586 diagram Methods 0.000 description 7
- 239000000243 solution Substances 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000011664 signaling Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000012085 test solution Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides an over-the-air upgrade method, an over-the-air server and a terminal. After the terminal receives an upgrade success rate transmitted by the OTA (over-the-air) server, the upgrade success rate is used for indicating the probability of successfully upgrading the terminal from a current version into a target version, and then the terminal determines whether upgrade is performed or not according to the upgrade success rate. When upgrade is needed, a differential upgrade package is downloaded to perform upgrade. In the process, as the upgrade success rate is capable of indicating the probability of successfully upgrading the terminal from the current version to the target version by the aid of the differential upgrade package, the terminal can accurately determine whether upgrade is performed or not according to the upgrade success rate, and the problem of reduction of OTA upgrade user experience due to terminal failure caused by OTA upgrade is effectively avoided.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an over-the-air upgrading method, an over-the-air server and a terminal.
Background
Over the Air Technology (OTA) is a Technology for downloading data through a wireless network, and is now widely used in network upgrade of devices such as smart televisions, mobile phones, tablet computers, and set-top boxes. The user downloads the differential file aiming at the current software version of the client provided by the server and updates the differential file to the current software version in a patching mode, so that the OTA is upgraded. Usually, the differential file only contains file information that needs to be upgraded, for example, the differential file V2-V1 only contains application information that the version V2 changes relative to the version V1, and if the upgrade is implemented by the differential file V2-V1, the current version of the client must contain important files of V1.
Generally, a terminal device manufacturer, such as a smartphone manufacturer, will sort the problems encountered during the use of a user and feedback opinions, and then develop product software again to form an upgraded version so as to modify the problems existing in the existing version. In order to facilitate a user to solve the problem of system upgrading by himself, a mobile terminal manufacturer compresses the system upgrading version with the repaired problem into an OTA upgrading packet to be placed on an OTA server, and the user downloads and upgrades the system upgrading packet by himself. In the OTA upgrading process, the terminal initiates a version inquiry request to the OTA server to inquire whether the OTA server has a high-level version, if so, the OTA server returns the upgradable state and the version information higher than the current version of the terminal. And if the user decides to upgrade, the OTA server pushes the address of the current upgradable version, the terminal downloads the differential upgrade package according to the address, and the upgrade is automatically performed after the download is finished.
However, the differential upgrade package downloaded by the terminal may not be compatible with the terminal, for example, due to a bug (bug) made by the differential upgrade package, the bug is not discovered during the test solution; as another example, the setting of the terminal is not compatible with the setting of the differential upgrade package, and the like. After the OTA is upgraded, the incompatible differential upgrade packet causes the terminal to be invalid and can not be used again.
Disclosure of Invention
The embodiment of the invention provides an over-the-air upgrading method, an over-the-air server and a terminal, aiming at solving the problem of terminal failure caused by OTA upgrading.
In a first aspect, an embodiment of the present invention provides an over-the-air upgrade method, including:
the terminal receives an upgrading success rate sent by an over-the-air OTA server, wherein the upgrading success rate is used for indicating the probability of successfully upgrading from a current version to a target version;
the terminal determines whether to upgrade according to the upgrade success rate;
and if the terminal determines to upgrade, downloading a differential upgrade package, wherein the differential upgrade package is the differential upgrade package for upgrading the terminal from the current version to the target version, and the target version is higher than the current version.
In a second aspect, an embodiment of the present invention provides an over-the-air upgrade method, including:
when a target version of an over-the-air downloading OTA server is higher than a current version of a terminal, the OTA server determines an upgrading success rate, wherein the upgrading success rate is used for indicating the probability of successfully upgrading from the current version to the target version;
and the OTA server sends the upgrade success rate to the terminal so that the terminal determines whether to download a differential upgrade package according to the upgrade success rate, wherein the differential upgrade package is a differential upgrade package for upgrading the terminal from the current version to a target version, and the target version is higher than the current version.
In a third aspect, an embodiment of the present invention provides a terminal, including:
the system comprises a receiving and sending module, a judging module and a sending and receiving module, wherein the receiving and sending module is used for receiving an upgrading success rate sent by an over-the-air OTA server, and the upgrading success rate is used for indicating the probability of successfully upgrading from a current version to a target version;
the processing module is used for determining whether to upgrade according to the upgrade success rate;
and the downloading module is used for downloading a differential upgrade package if the processing module determines to upgrade, wherein the differential upgrade package is a differential upgrade package for upgrading the terminal from the current version to the target version, and the target version is higher than the current version.
In a fourth aspect, an embodiment of the present invention provides an over-the-air OTA server, including:
the terminal comprises a processing module, a judging module and a judging module, wherein the processing module is used for determining an upgrading success rate when a target version on an OTA server downloaded in the air is higher than a current version of the terminal, and the upgrading success rate is used for indicating the probability of successfully upgrading from the current version to the target version;
and the transceiver module is used for sending the upgrade success rate to the terminal so that the terminal determines whether to download a differential upgrade package according to the upgrade success rate, wherein the differential upgrade package is a differential upgrade package for upgrading the terminal from the current version to the target version, and the target version is higher than the current version.
According to the over-the-air upgrading method, the over-the-air server and the terminal, after the terminal receives the upgrading success power sent by the OTA server, the upgrading success power is used for indicating the probability of successfully upgrading the current version to the target version, whether upgrading is conducted or not is further determined according to the upgrading success power, and when upgrading is needed, the differential upgrading packet is downloaded and upgrading is conducted. In the process, the upgrading success rate can indicate the probability that the terminal successfully upgrades the current version to the target version by using the differential upgrading packet, so that the terminal can accurately make the decision of whether to upgrade or not according to the upgrading success rate, and the problem that the OTA upgrading user experience is reduced due to terminal failure caused by OTA upgrading is effectively avoided.
Drawings
Fig. 1 is a signaling diagram of a first embodiment of an OTA upgrading method according to the present invention;
fig. 2 is a signaling diagram of a second embodiment of the OTA upgrading method according to the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an OTA server 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 terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, 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, for example, capable of operation in sequences other than those illustrated or otherwise 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 apparatus 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.
Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. The method provided by the embodiment of the invention is applied to version upgrade of the terminal, and for example, the method provided by the embodiment of the invention can be applied to OTA differential upgrade of a software version in the terminal and can also be applied to OTA differential upgrade of a terminal system version, such as OTA differential upgrade of an IOS system version, OTA differential upgrade of an Android system version and the like. By way of example, the terminal according to the embodiment of the invention may be a smart phone, a tablet computer, a smart television, a smart wearable device, or the like.
Fig. 1 is a flowchart of an OTA upgrading method according to an embodiment of the present invention, where an execution main body of the OTA upgrading method according to the embodiment of the present invention is a terminal, and referring to fig. 1, the method includes:
101. the over-the-air OTA server determines the upgrade success rate.
The embodiment of the invention is suitable for version differential upgrading of software, system version differential upgrading of a terminal and the like. In this step, the OTA server determines an upgrade success rate, and the upgrade success rate is used to indicate a probability of successfully upgrading from the current version to the target version. In a feasible implementation manner, a user queries whether a high version, namely a target version, higher than a current version exists through a terminal, at this time, the user sends a version query request to an OTA server through the terminal used by the user, the version query request carries version information, such as a version number and the like, of the current version, namely the current version of the terminal, and when the OTA server determines whether the target version higher than the current version exists, the OTA server determines that the terminal is successfully upgraded to upgrade success power from the current version to the target version. In another feasible implementation manner, the server periodically acquires the version information of the terminal, and when the server judges that the version information of the terminal is lower than the version information on the server, the success rate of upgrading is determined. Specifically, the OTA server traverses all the stored versions and determines whether a target version higher than the current version exists. If the terminal does not exist, the OTA server sends an indication message which does not need to be upgraded to the terminal; otherwise, determining the upgrade success rate of the terminal which can be successfully upgraded to the target version. In the determining process, the upgrading success rate can be determined according to the upgrading times of other terminals by using the differential upgrading packet, the upgrading times of the current version to the target version by using the differential upgrading packet and the like.
For example, when the target version on the OTA server is higher than the current version of the terminal, the OTA server determines a first ratio of a second variable to a first variable, and takes the first ratio as an upgrade success rate, wherein the first variable is used for indicating the number of times of upgrading by using a differential upgrade package; the second variable is used to indicate the number of times the differential upgrade package is used to successfully upgrade from the current version to the target version.
It should be noted that, in addition to the OTA server determining the upgrade success rate, the terminal itself may also determine the upgrade success rate. For example, the OTA server sends the first variable and the second variable to the terminal, and the terminal determines the upgrade success rate according to the variables, that is, when the target version on the OTA server is higher than the current version of the terminal, the upgrade success rate sent by the OTA server to the terminal may be a first ratio of the second variable to the first variable, or may be the second variable to the first variable, and the terminal determines the first ratio of the second variable to the first variable according to the second variable and the first variable.
102. And the OTA server sends the upgrade success rate to the terminal.
The OTA server sends the upgrade success rate to the terminal when the target version on the OTA server is higher than the current version of the terminal.
It should be noted that, when the target version on the OTA server is higher than the current version of the terminal, the OTA server may send an upgrade success rate to the terminal, and may also send an upgrade reminding message to the terminal, for reminding the user that the current version of the terminal is lower than the target version on the OTA server.
103. And the terminal determines whether to upgrade or not according to the upgrade success rate.
In this step, the terminal determines whether upgrading is required according to the upgrading success rate. Specifically, the terminal may preset a threshold to determine whether upgrading is required or not, or determine whether upgrading is required according to the operation of the user. When the terminal automatically determines whether upgrading is needed according to a preset threshold value, the terminal is provided with the preset threshold value, the terminal determines whether the upgrading success rate is higher than the preset threshold value, if the upgrading success rate is higher than the preset threshold value, upgrading is needed, otherwise, upgrading is not needed; when the terminal determines whether upgrading is needed according to the operation of a user, the terminal is a terminal with a display screen, the upgrading success rate is displayed on the display screen, if the user considers that the upgrading success rate is high, preset operation is carried out on the display screen, if clicking, double clicking and the like are carried out, when the terminal detects the preset operation acted on the display screen by the user, upgrading is determined, otherwise, if the user considers that the upgrading success rate is low, the display screen is not operated, and when the terminal detects the preset operation within a certain time, upgrading is carried out 105 and abandoned.
104. If the terminal determines to upgrade, downloading the differential upgrade package;
and after the fact that upgrading is needed is determined, the terminal downloads the differential upgrading package and carries out upgrading.
105. The upgrade is abandoned.
Specifically, when it is determined that upgrade is to be abandoned, the terminal does not download the differential upgrade package.
According to the OTA upgrading method provided by the embodiment of the invention, after the terminal receives the upgrading success power sent by the OTA server, the upgrading success power is used for indicating the probability of successfully upgrading the current version to the target version, whether the upgrading is carried out or not is further determined according to the upgrading success power, and when the upgrading is needed, the differential upgrading packet is downloaded and the upgrading is carried out. In the process, the upgrading success rate can indicate the probability that the terminal successfully upgrades the current version to the target version by using the differential upgrading packet, so that the terminal can accurately make the decision of whether to upgrade or not according to the upgrading success rate, and the problem that the OTA upgrading user experience is reduced due to terminal failure caused by OTA upgrading is effectively avoided.
In the above embodiment, the first variable is used to indicate the number of times of upgrading using the differential upgrade package; the second variable is used to indicate the number of times the differential upgrade package is used to successfully upgrade from the current version to the target version. In order to ensure the accuracy of the variables, the variables also need to be updated. Specifically, if the terminal determines to upgrade, after downloading the differential upgrade package, the terminal also sends upgrade information to the OTA server, so that the OTA server updates the upgrade success rate according to the upgrade information, and the upgrade information is used for indicating whether the terminal is upgraded successfully. Wherein, the condition of unsuccessful upgrade includes unsuccessful download of the differential upgrade package, successful download of the differential upgrade package but failed upgrade; the case of successful upgrade includes successful download of the differential upgrade package and successful upgrade.
It should be noted that, in the embodiment of the present invention, before the differential upgrade package is pushed to the user, large-scale trial and test are performed inside the differential upgrade package, so that the OTA server must have about thousands of upgrade records. Therefore, when the first user initiates an OTA request, the OTA server determines a first variable as the number of times the differential upgrade package is used for upgrading in the trial and test phase, and a second variable as the number of times the differential upgrade package is successfully upgraded from the current version to the target version in the trial and test phase. Certainly, when the first user initiates the OTA request, the OTA server may not have the upgrade success rate information corresponding to the differential upgrade packet, that is, the first variable and the second variable are 0.
The OTA upgrade method described above is described in detail below with reference to a specific embodiment. In particular, see fig. 2. Fig. 2 is a signaling diagram of a second embodiment of the OTA upgrading method according to the present invention, which includes:
201. and the terminal sends a version inquiry request to the OTA server.
202. And the OTA server determines whether a target version exists according to the version inquiry request. If not, go to 203; otherwise, execute 204
203. And the OTA server sends an indication message without upgrading to the terminal.
204. The OTA server sends an upgradable indication message to the terminal.
205. The OTA server determines the upgrade success rate.
In this step, the OTA server interacts with a database (not shown in the figure), and obtains the number of times (i.e., a first variable) that the differential upgrade package is used to upgrade, the number of times (i.e., a second variable) that the differential upgrade package is used to successfully upgrade from the current version to the target version, and the like in history or a certain period. Then, an upgrade success rate is determined according to the variables. The database may be a local database of the server or a remote database.
It should be noted that, in step 205, the OTA server determines the upgrade success rate by determining the first variable and the second variable. However, the present invention is not limited thereto, and in other feasible manners, the upgrade success rate may be determined in other manners, for example, the number of times that the terminal, including the terminal currently used by the user, and the terminal communicating with the OTA server during a certain period apply to download the differential upgrade package is used as a third variable, and the upgrade success rate is determined by determining a ratio of the second variable to the third variable.
In addition, it should be noted that, in the above steps 201 to 205, the triggering condition for triggering the OTA server to determine the upgrade success rate is that the terminal sends a version query request to the OTA server, and the server determines that the target version exists. However, the embodiment of the present invention is not limited to this, and in other possible implementation manners, the OTA server may autonomously and periodically determine whether a target version higher than the current version of the terminal exists, and if so, determine to increase the power level.
206. And the OTA server sends the upgrade success rate to the terminal.
207. The terminal determines whether to upgrade according to the upgrade success rate, and if not, 208 is executed; otherwise, 209 is performed.
In the embodiment of the invention, the terminal determines whether the upgrade is needed according to the relationship between the preset threshold value set by the terminal and the upgrade success rate or the operation performed by the user according to the upgrade success rate. Next, the following describes in detail by taking an example that the terminal determines whether the upgrade is needed according to a relationship between a preset threshold set by the terminal and the upgrade success rate.
In a possible implementation manner, if the first ratio (i.e., the upgrade success rate) of the second variable to the first variable exceeds the preset threshold in step 205, it indicates that the probability of successfully upgrading from the current version to the target version using the differential upgrade package is high, and the version can be upgraded, and then the current version is upgraded to the target version according to the differential upgrade package; otherwise, the probability that the differential upgrade package is used for successfully upgrading the current version to the target version is low, that is, the differential upgrade package is likely to fail in version upgrading, so that the terminal is disabled, and the user is advised not to upgrade. For example, the number of times that a terminal, including a terminal currently used by a user, and a terminal communicating with an OTA server within a certain period is upgraded using a differential upgrade package is 20, while the number of times that the terminal successfully upgrades from a current version to a target version using the differential upgrade package is only 2, if a preset threshold is 0.25, since a first ratio of a second variable to a first variable is 0.1, it indicates that, after more terminals download the differential upgrade package, in the process of upgrading the current version to the target version using the differential upgrade package, an error occurs to cause a version upgrade failure, and at this time, the terminal may decide not to upgrade.
In the above implementation manner, if the first ratio (i.e., the upgrade success rate) of the second variable and the first variable by the OTA server in step 205 exceeds the preset threshold, it indicates that the differential upgrade packet meets the requirement, and the OTA server can be upgraded, and then upgraded from the current version to the target version according to the differential upgrade packet; otherwise, the quality of the differential upgrade package is poor, and the user is advised not to upgrade. For example, the number of times that the terminal, including the terminal currently used by the user and the terminal communicating with the OTA server within a certain period, is upgraded using the differential upgrade package is 10 times, while the number of times that the terminal successfully upgrades from the current version to the target version using the differential upgrade package is 7 times, if the preset threshold is 0.6, since the ratio of the second variable to the first variable (i.e., the upgrade success rate) is 0.7, it is indicated that the terminal is upgraded using the differential upgrade package, and the upgrade failure probability is small, so that the terminal can be upgraded.
In another possible implementation manner, if the second ratio (i.e., the upgrade success rate) of the third variable and the second variable exceeds the preset threshold in step 205, it indicates that the reliability of the communication link is high, and the version upgrade can be performed, that is, the differential upgrade packet can be downloaded, and then the current version is upgraded to the target version according to the differential upgrade packet; otherwise, the quality of the communication link is poor, the user is advised not to upgrade, version upgrading failure caused by downloading failure in the process of downloading the differential upgrading packet by the user is avoided, and meanwhile, the waste of flow caused by downloading failure by the user can be effectively avoided. For example, the terminal includes a terminal currently used by a user, and the number of times of applying for downloading the differential upgrade package to the OTA server within a certain period is 20, the number of times of using the differential upgrade package for upgrading is only 2, if the preset threshold is 0.25, because the ratio of the third variable to the second variable is 0.1, it indicates that some terminals do not find that upgrading is not needed after trying to download the differential upgrade package, or the differential upgrade package is difficult to download due to a network problem, and the downloading may cause abnormal consumption of traffic and abnormal occupation of memory, and the like, and at this time, the terminal may decide not to perform upgrading.
It should be noted that, in step 205, the OTA server may also send the first variable or the third variable and the second variable to the terminal, so that the terminal may determine whether the version upgrade is required according to any one of the variables. Alternatively, the variables are combined to determine whether a version upgrade is required.
208. The current flow is ended.
209. And the terminal sends an upgrading request to the OTA server.
In this step, the terminal sends an upgrade request to the OTA server to apply for downloading the differential upgrade package.
210. And the OTA server adds 1 to the third variable to update the third variable, and stores the updated third variable in the database.
211. And the OTA server sends the download address of the differential upgrade package to the terminal.
In this step, the OTA server pushes the download address of the differential upgrade package to the OTA server.
212. And the terminal downloads the differential upgrade package according to the download address.
Specifically, the terminal sends a differential upgrade package download request to the OTA server, and the OTA server sends the differential upgrade package to the terminal.
213. And the terminal sends a successful downloading response message to the OTA server.
In this step, the terminal sends a successful download response message to the OTA server after the differential upgrade package is successfully downloaded.
214. And the terminal carries out version upgrading according to the differential upgrading packet.
In this step, the terminal upgrades from the current version to the target version according to the differential upgrade package.
215. And the OTA server adds 1 to the first variable to update the first variable, and stores the updated first variable in the database.
In step 214, the terminal uses the downloaded differential upgrade package to upgrade, and at this time, the OTA server adds 1 to the first variable used for indicating the number of times of upgrading using the differential upgrade package, thereby updating the first variable.
216. The terminal determines whether the version upgrading is successfully carried out, if the version upgrading is not successfully carried out, 217 is carried out; otherwise, 218 is performed.
217. And the terminal sends an upgrade failure message to the OTA server.
218. And the terminal sends an upgrading success indication message to the OTA server.
219. And the OTA server adds 1 to the second variable to update the second variable, and stores the updated second variable in the database.
Step 218 illustrates that the terminal successfully upgrades from the current version to the target version using the differential upgrade package, and at this time, the OTA server adds 1 to the second variable indicating the number of times of successfully upgrading from the current version to the target version using the differential upgrade package, thereby updating the second variable.
It should be noted that, since the upgrade success rate is determined according to the first variable and the second variable, or the second variable and the third variable, the upgrade success rate can be finally updated by updating the first variable, the second variable, and the third variable.
Fig. 3 is a schematic structural diagram of a terminal according to a first embodiment of the present invention. The terminal provided in this embodiment may implement the steps of the over-the-air upgrade method applied to the terminal side provided in any embodiment of the present invention. Specifically, the terminal provided in this embodiment includes:
the receiving and sending module 11 is configured to receive an upgrade success rate sent by an over-the-air OTA server, where the upgrade success rate is used to indicate a probability of successfully upgrading from a current version to a target version;
the processing module 12 is configured to determine whether to upgrade according to the upgrade success rate;
a downloading module 13, configured to download a differential upgrade package if the processing module 12 determines to upgrade, where the differential upgrade package is a differential upgrade package in which the terminal is upgraded from the current version to the target version, and the target version is higher than the current version.
According to the terminal provided by the embodiment of the invention, after the terminal receives the upgrade success power sent by the OTA server, the upgrade success power is used for indicating the probability of successfully upgrading the current version to the target version, whether upgrading is carried out or not is further determined according to the upgrade success power, and when upgrading is needed, the differential upgrade package is downloaded and upgraded. In the process, the upgrading success rate can indicate the probability that the terminal successfully upgrades the current version to the target version by using the differential upgrading packet, so that the terminal can accurately make the decision of whether to upgrade or not according to the upgrading success rate, and the problem that the OTA upgrading user experience is reduced due to terminal failure caused by OTA upgrading is effectively avoided.
Optionally, in an embodiment of the present invention, the transceiver module 11 is further configured to send, after the downloading module 13 downloads the differential upgrade package, upgrade information to the OTA server, so that the OTA server updates the upgrade success rate according to the upgrade information, where the upgrade information is used to indicate whether the terminal is upgraded successfully.
Optionally, in an embodiment of the present invention, the processing module 12 is specifically configured to determine whether the upgrade success rate exceeds a preset threshold, if so, determine to upgrade, otherwise, not upgrade;
or,
the processing module 12 is specifically configured to display the upgrade success rate on a display screen, determine upgrade if a preset operation that the user acts on the display screen is detected, and otherwise, not upgrade.
Fig. 4 is a schematic structural diagram of an OTA server according to a first embodiment of the present invention. The OTA server provided in this embodiment may implement the steps of the above-described over-the-air technology upgrading method applied to the OTA server provided in any embodiment of the present invention. Specifically, the OTA server provided in this embodiment includes:
the processing module 21 is configured to determine an upgrade success rate when a target version on the over-the-air OTA server is higher than a current version of the terminal, where the upgrade success rate is used to indicate a probability that the target version is successfully upgraded from the current version;
a transceiver module 22, configured to send the upgrade success rate to the terminal, so that the terminal determines whether to download a differential upgrade package according to the upgrade success rate, where the differential upgrade package is a differential upgrade package in which the terminal is upgraded from the current version to the target version, and the target version is higher than the current version.
The OTA server provided by the embodiment of the invention determines the upgrade success rate and sends the upgrade success rate to the terminal, the upgrade success rate is used for indicating the probability of successfully upgrading the current version to the target version, so that the terminal determines whether to upgrade according to the upgrade success rate, and when the upgrade is needed, the differential upgrade package is downloaded and upgraded. In the process, the upgrading success rate can indicate the probability that the terminal successfully upgrades the current version to the target version by using the differential upgrading packet, so that the terminal can accurately make the decision of whether to upgrade or not according to the upgrading success rate, and the problem that the OTA upgrading user experience is reduced due to terminal failure caused by OTA upgrading is effectively avoided.
Optionally, in an embodiment of the present invention, after sending the upgrade success rate to the terminal, the transceiver module 22 is further configured to receive upgrade information sent by the terminal, where the upgrade information is used to indicate whether the terminal is upgraded successfully;
the processing module 21 is further configured to update the upgrade success rate according to the upgrade information.
Optionally, in an embodiment of the present invention, the processing module 21 is specifically configured to determine a first ratio between a second variable and a first variable when a target version of the over-the-air OTA server is higher than a current version of the terminal, and use the first ratio as the upgrade success rate; the first variable is used for indicating the number of times of upgrading by using the differential upgrading packet; the second variable is used for indicating the number of times of successfully upgrading from the current version to the target version by using the differential upgrade package.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (12)
1. An over-the-air upgrade method, comprising:
the terminal receives an upgrading success rate sent by an over-the-air OTA server, wherein the upgrading success rate is used for indicating the probability of successfully upgrading from a current version to a target version;
the terminal determines whether to upgrade according to the upgrade success rate;
and if the terminal determines to upgrade, downloading a differential upgrade package, wherein the differential upgrade package is the differential upgrade package for upgrading the terminal from the current version to the target version, and the target version is higher than the current version.
2. The method of claim 1, wherein after downloading the differential upgrade package if the terminal determines the upgrade, further comprising:
and the terminal sends upgrading information to the OTA server so that the OTA server updates the upgrading success rate according to the upgrading information, and the upgrading information is used for indicating whether the terminal is upgraded successfully or not.
3. The method according to claim 1 or 2, wherein the terminal determines whether to upgrade according to the upgrade success rate, including:
the terminal determines whether the upgrading success rate exceeds a preset threshold value, if so, upgrading is determined, otherwise, upgrading is not performed;
or,
and the terminal displays the upgrading success rate on a display screen, if the preset operation acting on the display screen is detected, upgrading is determined, and if not, upgrading is not performed.
4. An over-the-air upgrade method, comprising:
when a target version of an over-the-air downloading OTA server is higher than a current version of a terminal, the OTA server determines an upgrading success rate, wherein the upgrading success rate is used for indicating the probability of successfully upgrading from the current version to the target version;
and the OTA server sends the upgrade success rate to the terminal so that the terminal determines whether to download a differential upgrade package according to the upgrade success rate, wherein the differential upgrade package is a differential upgrade package for upgrading the terminal from the current version to the target version, and the target version is higher than the current version.
5. The method of claim 4, wherein after the OTA server sends the upgrade success rate to the terminal, the method further comprises:
the OTA server receives upgrade information sent by the terminal, wherein the upgrade information is used for indicating whether the terminal is upgraded successfully;
and the OTA server updates the upgrading success rate according to the upgrading information.
6. The method of claim 4 or 5, wherein the determining by the OTA server of the upgrade success rate when the target version on the OTA server is higher than the current version of the terminal comprises:
when the target version of the over-the-air downloading OTA server is higher than the current version of the terminal, the OTA server determines a first ratio of a second variable to a first variable, and the first ratio is used as the upgrading success rate;
the first variable is used for indicating the number of times of upgrading by using the differential upgrading packet; the second variable is used for indicating the number of times of successfully upgrading from the current version to the target version by using the differential upgrade package.
7. A terminal, comprising:
the system comprises a receiving and sending module, a judging module and a sending and receiving module, wherein the receiving and sending module is used for receiving an upgrading success rate sent by an over-the-air OTA server, and the upgrading success rate is used for indicating the probability of successfully upgrading from a current version to a target version;
the processing module is used for determining whether to upgrade according to the upgrade success rate;
and the downloading module is used for downloading a differential upgrade package if the processing module determines to upgrade, wherein the differential upgrade package is a differential upgrade package for upgrading the terminal from the current version to the target version, and the target version is higher than the current version.
8. The terminal of claim 7,
the transceiver module is further configured to send upgrade information to the OTA server after the download module downloads the differential upgrade package, so that the OTA server updates the upgrade success rate according to the upgrade information, where the upgrade information is used to indicate whether the terminal is upgraded successfully.
9. The terminal according to claim 7 or 8,
the processing module is specifically configured to determine whether the upgrade success rate exceeds a preset threshold, determine upgrade if the upgrade success rate exceeds the preset threshold, and otherwise, not upgrade;
or,
the processing module is specifically configured to display the upgrade success rate on a display screen, determine upgrade if a preset operation acting on the display screen is detected, and not upgrade if the preset operation acting on the display screen is detected.
10. An over-the-air OTA server, comprising:
the terminal comprises a processing module, a judging module and a judging module, wherein the processing module is used for determining an upgrading success rate when a target version on an OTA server downloaded in the air is higher than a current version of the terminal, and the upgrading success rate is used for indicating the probability of successfully upgrading from the current version to the target version;
and the transceiver module is used for sending the upgrade success rate to the terminal so that the terminal determines whether to download a differential upgrade package according to the upgrade success rate, wherein the differential upgrade package is a differential upgrade package for upgrading the terminal from the current version to the target version, and the target version is higher than the current version.
11. The OTA server of claim 10,
the transceiver module is used for receiving upgrade information sent by the terminal after sending the upgrade success rate to the terminal, wherein the upgrade information is used for indicating whether the terminal is upgraded successfully;
the processing module is further configured to update the upgrade success rate according to the upgrade information.
12. The OTA server of claim 10 or 11,
the processing module is specifically configured to determine a first ratio of a second variable to a first variable when the target version on the over-the-air OTA server is higher than the current version of the terminal, and use the first ratio as the upgrade success rate;
the first variable is used for indicating the number of times of upgrading by using the differential upgrading packet; the second variable is used for indicating the number of times of successfully upgrading from the current version to the target version by using the differential upgrade package.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610415948.2A CN105872106A (en) | 2016-06-14 | 2016-06-14 | Over-the-air upgrade method, over-the-air server and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610415948.2A CN105872106A (en) | 2016-06-14 | 2016-06-14 | Over-the-air upgrade method, over-the-air server and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105872106A true CN105872106A (en) | 2016-08-17 |
Family
ID=56650131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610415948.2A Pending CN105872106A (en) | 2016-06-14 | 2016-06-14 | Over-the-air upgrade method, over-the-air server and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105872106A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134418A (en) * | 2019-05-10 | 2019-08-16 | 上海擎感智能科技有限公司 | Vehicle upgrade method and device, storage medium and terminal based on space download technology |
US20210136329A1 (en) * | 2018-08-01 | 2021-05-06 | Huawei Technologies Co., Ltd. | Method and system for software-defined camera and camera |
CN112783522A (en) * | 2020-12-28 | 2021-05-11 | 北京五八信息技术有限公司 | File loading method, file loading device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090004974A1 (en) * | 2007-06-28 | 2009-01-01 | Seppo Pyhalammi | System, apparatus and method for associating an anticipated success indication with data delivery |
CN101616018A (en) * | 2008-06-27 | 2009-12-30 | 中兴通讯股份有限公司 | The method of upgrading network management software and device |
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN103123588A (en) * | 2013-02-05 | 2013-05-29 | 东莞宇龙通信科技有限公司 | Method and system for obtaining difference upgrade patch |
US8782633B1 (en) * | 2011-09-21 | 2014-07-15 | Emc Corporation | Upgrading firmware of a power supply |
CN105335181A (en) * | 2014-08-06 | 2016-02-17 | 中兴通讯股份有限公司 | OTA upgrade realization method and terminal |
-
2016
- 2016-06-14 CN CN201610415948.2A patent/CN105872106A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090004974A1 (en) * | 2007-06-28 | 2009-01-01 | Seppo Pyhalammi | System, apparatus and method for associating an anticipated success indication with data delivery |
CN101616018A (en) * | 2008-06-27 | 2009-12-30 | 中兴通讯股份有限公司 | The method of upgrading network management software and device |
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
US8782633B1 (en) * | 2011-09-21 | 2014-07-15 | Emc Corporation | Upgrading firmware of a power supply |
CN103123588A (en) * | 2013-02-05 | 2013-05-29 | 东莞宇龙通信科技有限公司 | Method and system for obtaining difference upgrade patch |
CN105335181A (en) * | 2014-08-06 | 2016-02-17 | 中兴通讯股份有限公司 | OTA upgrade realization method and terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210136329A1 (en) * | 2018-08-01 | 2021-05-06 | Huawei Technologies Co., Ltd. | Method and system for software-defined camera and camera |
US11979686B2 (en) * | 2018-08-01 | 2024-05-07 | Huawei Technologies Co., Ltd. | Method and system for software-defined camera and camera |
CN110134418A (en) * | 2019-05-10 | 2019-08-16 | 上海擎感智能科技有限公司 | Vehicle upgrade method and device, storage medium and terminal based on space download technology |
CN112783522A (en) * | 2020-12-28 | 2021-05-11 | 北京五八信息技术有限公司 | File loading method, file loading device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106897086B (en) | Method, device and system for upgrading robot operating system | |
CN107547239B (en) | Configuration object updating method and device | |
EP2456257B1 (en) | Method and system for upgrading wireless data card | |
CN107608701A (en) | A kind of method and apparatus of firmware updating | |
CN104066077A (en) | OTA downloading and upgrading method and device thereof | |
US20060200658A1 (en) | Agent framework for mobile devices | |
CN105307195B (en) | A kind of method and device updating access point name parameter | |
US10394572B2 (en) | Power adapter and method for upgrading the power adapter | |
EP2608585B1 (en) | Method, device and system for triggering terminal operation | |
CN105517015A (en) | Upgrading method, device of wifi product by over the air OTA and terminal | |
US9626174B2 (en) | Cancelling device over the air software update | |
CN102271327A (en) | Method and equipment for indicating software version updating | |
CN105530130A (en) | Method and device for upgrading Over-The-Air downloading technology | |
CN106648781B (en) | Method and system for upgrading remote firmware of communication equipment | |
CN111142905A (en) | OTA (over-the-air) upgrading method, OTA server and OTA upgrading system | |
CN109067559A (en) | A kind of device updating method and device | |
CN105872106A (en) | Over-the-air upgrade method, over-the-air server and terminal | |
CN113504922A (en) | Robot software upgrading method and device, bridge server and upgrading server | |
CN103916846A (en) | Terminal application updating method, system and device | |
CN102348195A (en) | Wireless communication terminal and software updating method thereof | |
CN114675855A (en) | Vehicle software remote upgrading method and device and platform equipment | |
CN103517258A (en) | A method of updating software on a mobile terminal, a mobile terminal and a server | |
CN106912037A (en) | A kind of OTA upgrade methods and device | |
CN104333856A (en) | Method for switching network of Java SIM card, SIM card, server and system | |
CN105227600A (en) | The method of mobile device system upgrading |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160817 |
|
RJ01 | Rejection of invention patent application after publication |