CN115314480A - Method and device for remotely upgrading terminal on line - Google Patents
Method and device for remotely upgrading terminal on line Download PDFInfo
- Publication number
- CN115314480A CN115314480A CN202210789216.5A CN202210789216A CN115314480A CN 115314480 A CN115314480 A CN 115314480A CN 202210789216 A CN202210789216 A CN 202210789216A CN 115314480 A CN115314480 A CN 115314480A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- size
- current network
- upgrade
- terminal
- 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 105
- 230000004044 response Effects 0.000 claims description 41
- 230000002596 correlated effect Effects 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 2
- 230000003247 decreasing effect Effects 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/22—Traffic shaping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/25—Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
-
- 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/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/303—Terminal profiles
-
- 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/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to the technical field of communication, in particular to a method and a device for remote online upgrading of a terminal. The method comprises the following steps: s1, detecting whether message pushing for remote online upgrading is received or not; s2, if message pushing is received, downloading an upgrading data packet according to a message pushing request; s3, detecting the current network quality at regular time in the process of downloading the upgrading data packet; and S4, adjusting the size of the single request data according to the current network quality, and downloading the upgrade data packet. The invention downloads the upgrading data packet according to the size of the single request data adjusted by different network quality on the existing upgrading mechanism, and sends a plurality of network connection requests to the server when the network is disconnected, thereby effectively solving the problem between the stability and the speed of the lower link in different network environments and improving the success rate of the single upgrading task.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for remote online upgrading of a terminal.
Background
The existing remote online upgrade of a terminal is that a server pushes upgrade information to the terminal or the terminal sends an upgrade request of a certain application to the server, the upgrade information comprises information such as a website of upgraded firmware, a version number of the firmware and the like, and the terminal acquires firmware package data by accessing the website in the upgrade information pushed by the server and caches the firmware package data locally. Because the firmware is relatively large, the upgrading is considered to fail due to interruption caused by network and other reasons in the downloading process.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for remotely upgrading a terminal on line, which comprises the following steps:
s1, detecting whether message pushing for remote online upgrading is received or not;
s2, if the message pushing is received, downloading an upgrading data packet according to the message pushing request;
s3, detecting the current network quality at regular time in the process of downloading the upgrading data packet;
and S4, adjusting the size of the single request data according to the current network quality, and downloading the upgrade data packet.
Further, in the method for remotely upgrading online the terminal according to the present invention, the step S3 includes: in the process of downloading the upgrade data packet, regularly detecting the size of the current network bandwidth;
the step S4 of adjusting the size of the single request data according to the current network quality includes: and adjusting the size of the single request data according to the current network bandwidth.
Further, in the method for remotely upgrading online a terminal according to the present invention, the adjusting the size of the single request data according to the current network bandwidth includes:
and adjusting the size of single request data according to the current network bandwidth, wherein the current network bandwidth is positively correlated with the size of the request data.
Further, in the method for remotely upgrading a terminal online according to the present invention, the step S3 includes: detecting the current network strength at regular time in the process of downloading the upgrade data packet;
the step S4 of adjusting the size of the single request data according to the current network quality includes: and adjusting the size of the single request data according to the current network intensity.
Further, in the method for remotely upgrading online a terminal according to the present invention, the adjusting the size of the single request data according to the current network strength includes:
adjusting the size of single request data according to the current network intensity, wherein the current network intensity is positively correlated with the size of the request data.
Further, in the method for remotely upgrading a terminal online according to the present invention, the step S2 includes: accessing the network address in the message push and requesting to download an upgrading data packet;
the step S3 includes: detecting the current network response time at regular time in the process of downloading the upgrading data packet, wherein the current network response time is the response time for accessing the network address;
the step S4 includes: and adjusting the size of the single request data according to the current network response time.
Further, in the method for remotely upgrading online a terminal according to the present invention, the adjusting the size of the single request data according to the current network response time includes:
and adjusting the size of the single request data according to the current network response time, wherein the current network response time is in negative correlation with the size of the request data.
Further, in the method for remotely upgrading online the terminal according to the present invention, after the step S1 and before the step S2, the method further includes the steps of:
s11, acquiring a version number and an MD5 value in the upgrading data;
s12, judging whether the version number in the upgrading data is the same as the version number in the application to be upgraded or not;
and step S13, if the difference is not the same, executing step S2.
Further, in the method for remotely upgrading a terminal online according to the present invention, after the step S12, the method further includes the steps of:
s14, when the version number in the upgrading data is the same as the version number in the application to be upgraded, judging whether the MD5 value in the upgrading data is the same as the MD5 value in the application to be upgraded;
step S15, if the breakpoint is the same as the breakpoint, acquiring the breakpoint of the last downloading, restarting the downloading from the breakpoint, and executing the step S3;
and step S16, if the difference is not the same, executing step S2.
Further, in the method for remotely upgrading the terminal online according to the present invention, after the step S2 and before the step S3, the method further includes the steps of:
s21, regularly detecting whether the current network is disconnected or not in the process of downloading the upgrading data packet;
step S22, if yes, the terminal initiates a network connection request;
and step S23, if not, executing step S3.
Further, in the method for remotely upgrading a terminal online according to the present invention, the step S22 includes:
judging whether the network connection request is successful;
if the network connection request is successful, executing step S3;
and if the network connection request fails, returning to the step S1.
Further, in the method for remotely upgrading a terminal online according to the present invention, if the network connection request fails, the step S1 of returning includes:
if the network connection request fails, judging whether the connection request times are less than the preset times;
if yes, go to step S22;
if not, the procedure returns to step S1.
Further, in the method for remotely upgrading online the terminal according to the present invention, after the step S4, the method further includes the steps of:
s5, judging whether all the upgrading data are completely downloaded;
if so, the terminal is upgraded on line in a remote mode successfully;
if not, the procedure returns to step S1.
In addition, the invention also provides a device for remotely upgrading the terminal on line, which comprises:
a receiving module: detecting whether message pushing for remote online upgrading is received or not;
a downloading module: if the message pushing is received, downloading an upgrading data packet according to the message pushing request;
a detection module: detecting the current network quality at regular time in the process of downloading the upgrade data packet;
an adjusting module: and adjusting the size of the single request data according to the current network quality, and downloading the upgrade data packet.
The method and the device for remotely upgrading the terminal online have the following beneficial effects: on the existing upgrading mechanism, the upgrading data packet is downloaded according to the size of the single request data adjusted by different network qualities, and a network connection request is sent to the server for multiple times when the network is disconnected, so that the problem between the stability and the speed of the lower link in different network environments is effectively solved, and the success rate of a single upgrading task is improved.
Drawings
The invention will be further described with reference to the following drawings and examples, in which:
fig. 1 is a flowchart of a method for remotely upgrading a terminal online according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for remotely upgrading a terminal online according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for remotely upgrading a terminal on line according to an embodiment of the present invention.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
In a preferred embodiment, referring to fig. 1, a method for remotely upgrading a terminal online in this embodiment includes the following steps:
s1, detecting whether message pushing for remote online upgrading is received or not;
s2, if message pushing is received, downloading an upgrading data packet according to a message pushing request;
s3, detecting the current network quality at regular time in the process of downloading the upgrading data packet;
and S4, adjusting the size of the single request data according to the current network quality, and downloading the upgrade data packet.
Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. In the process of downloading the data packet, the terminal device detects the network quality at regular time, for example, detects the bandwidth of the network, the strength of the network or the response time for detecting the access network address, and adjusts the size of the single request data according to the detected condition to download the upgrade packet. For example, the larger the network bandwidth, the larger the requested data; the stronger the network strength, the larger the request data; the shorter the response time for accessing the network address, the larger the request data, otherwise, the reverse. The network here includes broadband and WiFi, and the terminal device includes but is not limited to a mobile phone, a tablet, a notebook, and the like.
In the embodiment, on the existing upgrading mechanism, the upgrading data packet is downloaded by adjusting the size of the single request data according to different network qualities, and a plurality of network connection requests are sent to the server when the network is disconnected, so that the problem between the stability and the speed of the lower link in different network environments is effectively solved, and the success rate of the single upgrading task is improved.
In the method for remotely upgrading the terminal online according to some embodiments, step S3 includes: in the process of downloading the upgrade data packet, regularly detecting the size of the current network bandwidth; the step S4 of adjusting the size of the single request data according to the current network quality includes: and adjusting the size of the single request data according to the current network bandwidth. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. In the process of downloading the data packet, the terminal device detects the size of the network bandwidth at regular time and adjusts single request data according to the detected size of the network bandwidth.
On the basis of the above embodiment, the present embodiment explains the detected network quality. The size of the request data is adjusted by regularly detecting the size of the network bandwidth, so that the problem between the stability and the speed of a link in the downloading process is effectively solved.
In the method for remote online upgrade of the terminal according to some embodiments, adjusting the size of the single request data according to the current network bandwidth includes: and adjusting the size of the single request data according to the current network bandwidth, wherein the current network bandwidth is positively correlated with the size of the request data. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the upgrade message push is received, and after the upgrade message push is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. In the process of downloading the data packet, the terminal device detects the size of the network bandwidth at regular time and adjusts single request data according to the detected size of the network bandwidth. If the network bandwidth is larger, it indicates that the network quality is good, the requested data may be increased, otherwise, if the network bandwidth is smaller, it indicates that the network quality is not good, the requested data may be decreased.
On the basis of the above embodiment, the present embodiment explains the relationship between the network bandwidth and the request data. The larger the network bandwidth is, the larger the request data is; the smaller the network bandwidth is, the smaller the request data is, and the problem between the stability and the speed of a link in the downloading process is effectively solved.
In the method for remotely upgrading the terminal online according to some embodiments, step S3 includes: detecting the current network intensity in a fixed time in the process of downloading the upgrade data packet; the step S4 of adjusting the size of the single request data according to the current network quality includes: and adjusting the size of the single request data according to the current network intensity. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. In the process of downloading the data packet, the terminal equipment detects the size of the network strength at regular time and adjusts single request data according to the detected size of the network strength.
On the basis of the above embodiments, the present embodiment explains the detected network quality. The size of the request data is adjusted by regularly detecting the size of the network strength, so that the problem between the stability and the speed of a link in the downloading process is effectively solved.
In the method for remote online upgrade of the terminal according to some embodiments, the adjusting the size of the single request data according to the current network strength includes: and adjusting the size of the single request data according to the current network strength, wherein the current network strength is positively correlated with the size of the request data. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. In the process of downloading the data packet, the terminal equipment detects the size of the network strength at regular time and adjusts single request data according to the detected size of the network strength. The larger the network strength is, the better the network quality is, the more the request data can be increased, whereas the smaller the network strength is, the worse the network quality is, the less the request data can be decreased. For example, wiFi may work well with a network strength greater than-70 dbm, with the greater the strength, the greater the requested data.
On the basis of the above embodiment, the present embodiment explains the relationship between the network strength and the request data. The greater the network strength, the greater the requested data; the smaller the network intensity is, the smaller the request data is, and the problem between the stability and the speed of a link in the downloading process is effectively solved.
In the method for remotely upgrading the terminal online in some embodiments, step S2 includes: accessing a network address in message pushing and requesting to download an upgrading data packet; the step S3 comprises the following steps: detecting the current network response time at regular time in the process of downloading the upgrading data packet, wherein the current network response time is the response time of accessing a network address; step S4 comprises the following steps: and adjusting the size of the single request data according to the current network response time. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. In the process of downloading the data packet, the terminal equipment detects the response time of the terminal for accessing the network address at regular time, and adjusts the single request data according to the detected access time.
On the basis of the above embodiments, the present embodiment explains the detected network quality. The size of the request data is adjusted by detecting the response time of accessing the network address at regular time, so that the problem between the stability and the speed of a link in the downloading process is effectively solved.
In the method for remotely upgrading online the terminal according to some embodiments, the adjusting the size of the single request data according to the current network response time includes: and adjusting the size of the single request data according to the current network response time, wherein the current network response time is in negative correlation with the size of the request data. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. In the process of downloading the data packet, the terminal equipment detects the size of the network response time at regular time and adjusts single request data according to the detected size of the network response time. The shorter the network response time is, the better the network quality is, the more the request data can be increased, whereas the longer the network response time is, the worse the network quality is, the less the request data can be decreased. For example, if the response time for accessing the website at the first time is 2S and the response time for accessing the website at the second time is 30S, it indicates that the network quality at the first time is better than that at the second time, and the request data may be increased.
On the basis of the above embodiment, the present embodiment has explained the relationship between the network response time and the request data. The shorter the network response time is, the larger the request data is; the longer the network response time is, the smaller the request data is, and the problem between the stability and the speed of a link in the downloading process is effectively solved.
In the method for remotely upgrading the terminal online in some embodiments, after step S1 and before step S2, the method further includes the steps of: s11, acquiring a version number and an MD5 value in the upgrading data; s12, judging whether the version number in the upgrading data is the same as the version number in the application to be upgraded or not; and step S13, if the difference is not the same, executing step S2.
Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the upgrade message push is received, after the upgrade message push is received, the network address in the upgrade message is accessed to obtain the version number and an MD5 value in an upgrade data packet, the version number is compared with the version number in the application to be upgraded, and if the version number is different from the version number in the application to be upgraded, the upgrade data packet is downloaded for the first time and can be directly downloaded. In the process of downloading the data packet, the terminal device detects the network quality at regular time, for example, detects the bandwidth of the network, the strength of the network or the response time for detecting the access network address, and adjusts the size of the single request data according to the detected condition to download the upgrade packet.
On the basis of the above embodiment, the embodiment determines whether the data to be upgraded is the first-time upgrade data by comparing whether the version number in the upgrade data packet is the same as the version number of the application to be upgraded, thereby improving the accuracy of downloading the upgrade data packet.
In the method for remotely upgrading online the terminal according to some embodiments, after step S12, the method further includes the steps of: step S14, when the version number in the upgrading data is the same as the version number in the application to be upgraded, judging whether the MD5 value in the upgrading data is the same as the MD5 value in the application to be upgraded; s15, if the breakpoint is the same as the breakpoint, acquiring the breakpoint of the last downloading, restarting the downloading from the breakpoint, and executing the step S3; and step S16, if the difference is not the same, executing step S2. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the upgrade message push is received, the network address in the upgrade message is accessed to obtain the version number and an MD5 value in an upgrade data packet after the upgrade message push is received, the version number is compared with the version number in the application to be upgraded, and if the version number is different from the version number in the application to be upgraded, the upgrade data packet is downloaded for the first time and can be directly downloaded. If the values are the same, comparing the MD5 value in the upgrade data with the MD5 value in the application to be upgraded, and if the values are the same, indicating that the upgrade is not the first upgrade, and the download can be continued at the place where the last download is finished. If the two are different, the upgrade data packet is the first download, and can be directly downloaded. In the process of downloading the data packet, the terminal device detects the network quality at regular time, for example, detects the bandwidth of the network, the strength of the network or the response time for detecting the access network address, and adjusts the size of the single request data according to the detected condition to download the upgrade packet.
On the basis of the previous embodiment, the embodiment judges whether the data to be upgraded is the first-time upgrade data by comparing whether the version number in the upgrade data packet is the same as the version number of the application to be upgraded, so that the accuracy of downloading the upgrade data packet is improved, and the problem that resources are wasted and the same upgrade data packet is repeatedly downloaded is avoided.
In the method for remotely upgrading the terminal online in some embodiments, after step S2 and before step S3, the method further includes the steps of: s21, regularly detecting whether the current network is disconnected or not in the process of downloading the upgrading data packet; step S22, if yes, the terminal equipment initiates a network connection request; and step S23, if not, executing step S3. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. Detecting the network state at regular time in the downloading process, and if the network is disconnected, initiating a network connection request by the terminal equipment; if the network is not disconnected, in the process of downloading the data packet, the terminal device detects the network quality at regular time, for example, detects the bandwidth of the network, the strength of the network or the response time of detecting the access network address, and adjusts the size of the single request data according to the detected condition to download the upgrade packet.
On the basis of the above embodiments, in this embodiment, the terminal device initiates the network connection request when the network is disconnected, and continues to download the upgrade data packet when the network is normally connected, thereby improving the success rate of a single upgrade task.
In the method for remotely upgrading the terminal online in some embodiments, step S22 includes: judging whether the network connection request is successful; if the network connection request is successful, executing the step S3; if the network connection request fails, the procedure returns to step S1. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. And detecting the network state at regular time in the downloading process, initiating a network connection request by the terminal equipment when the network is disconnected, and continuously downloading the upgrading data packet if the network connection request is successful. If the network connection fails, the terminal equipment detects whether the upgraded message push is received or not.
On the basis of the previous embodiment, the terminal initiates the network connection request under the condition that the network is disconnected, continues to download the upgrading data packet under the condition that the network is normally connected, and initiates the network connection request under the condition that the network connection fails, so that the success rate of a single upgrading task is improved.
In the method for remotely upgrading a terminal online in some embodiments, if the network connection request fails, returning to step S1 includes: if the network connection request fails, judging whether the times of the connection request are less than the preset times; if yes, go to step S22; if not, the procedure returns to step S1. Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the upgrade message push is received, and after the upgrade message push is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. The method comprises the steps that the network state is detected regularly in the downloading process, when the network is disconnected, the terminal equipment initiates a network connection request, if the network connection request is successful, the upgrading data packet is continuously downloaded, if the network connection request fails, the network connection request is initiated again, if the network connection request fails, the network connection request is continuously initiated until the network connection request frequency is greater than the preset frequency, and at the moment, the terminal equipment detects whether the upgrading message pushing is received or not. The preset number may be four, five, etc.
On the basis of the previous embodiment, in the embodiment, the terminal device initiates the network connection request under the condition that the network is disconnected, the upgrade data packet is continuously downloaded under the condition that the network is normally connected, and the network connection request is continuously initiated under the condition that the network connection fails until the request times are greater than the preset times, so that the success rate of the single upgrade task is further improved.
In the method for remotely upgrading a terminal online in some embodiments, referring to fig. 2, after step S4, the method further includes the steps of: s5, judging whether all the upgrade data are completely downloaded; if yes, the terminal is upgraded on line in a remote mode successfully; if not, the procedure returns to step S1.
Specifically, the server pushes a message push of remote online upgrade to the terminal device, the upgrade message includes information such as a network address and a version number of an application to be upgraded, the terminal device detects whether the message push of the upgrade is received, and after the message push of the upgrade is received, the terminal device accesses the network address in the upgrade message to download an upgrade data packet. In the process of downloading the data packet, the terminal device detects the network quality at regular time, for example, detects the bandwidth of the network, the strength of the network or the response time for detecting the address of the access network, and adjusts the size of the single request data according to the detected condition to download the upgrade packet. For example, the larger the network bandwidth, the larger the requested data; the stronger the network strength is, the larger the request data is; the shorter the response time for accessing the network address, the larger the request data, and vice versa. Judging whether the upgrading data packet is finished or not, and if so, indicating that the remote online upgrading of the terminal is successful; and if not, the terminal equipment detects whether the upgrading message push is received or not. The network here includes broadband and WiFi, and the terminal device includes but is not limited to a mobile phone, a tablet, a notebook, and the like.
On the basis of the above embodiment, when the downloading is not completed, the terminal device continues to detect whether the message push for upgrading is received, so that the success rate of the upgrading task can be further improved.
In a preferred embodiment, referring to fig. 3, an apparatus for remotely upgrading a terminal online of this embodiment includes:
a receiving module: the system comprises a server and a server, wherein the server is used for detecting whether message pushing for remote online upgrading is received or not;
a downloading module: the system comprises a message pushing module, a message sending module, a message receiving module, a message sending module and a message sending module, wherein the message pushing module is used for downloading an upgrading data packet according to a message pushing request when receiving message pushing;
a detection module: the system is used for detecting the current network quality at regular time in the process of downloading the upgrade data packet;
an adjusting module: and the upgrading device is used for adjusting the size of the single request data according to the current network quality and downloading the upgrading data packet.
Specifically, the detection module is used for detecting whether message pushing for remote online upgrading is received or not; for example, the terminal device includes, but is not limited to, a mobile phone, a tablet, a notebook computer, etc., and detects whether an upgraded message push is received, and the download module downloads the upgrade data packet according to a network address in the message push when receiving the message push. In the process of downloading the data packet, the detection module detects the network quality at regular time, such as the bandwidth of the network, the strength of the network or the response time for detecting the address of the access network, and the adjustment module adjusts the size of the single request data according to the detected condition to download the upgrade packet. For example, the larger the network bandwidth, the larger the requested data; the stronger the network strength is, the larger the request data is; the shorter the response time for accessing the network address, the larger the request data, and vice versa.
In the embodiment, on the existing upgrading mechanism, the upgrading data packet is downloaded by adjusting the size of the single request data according to different network qualities, and a network connection request is sent to the server for multiple times when the network is disconnected, so that the problem between the stability and the speed of the lower link in different network environments is effectively solved, and the success rate of the single upgrading task is improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and are intended to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the scope of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.
Claims (14)
1. A method for remotely upgrading a terminal on line is characterized by comprising the following steps:
s1, detecting whether message pushing for remote online upgrading is received or not;
s2, if the message pushing is received, downloading an upgrading data packet according to the message pushing request;
s3, detecting the current network quality at regular time in the process of downloading the upgrade data packet;
and S4, adjusting the size of the single request data according to the current network quality, and downloading the upgrade data packet.
2. The method for remotely upgrading the terminal on line according to claim 1, wherein the step S3 comprises: in the process of downloading the upgrade data packet, regularly detecting the size of the current network bandwidth;
the step S4 of adjusting the size of the single request data according to the current network quality includes: and adjusting the size of the single request data according to the current network bandwidth.
3. The method for remote online upgrade of a terminal according to claim 2, wherein the adjusting the size of the single request data according to the current network bandwidth comprises:
and adjusting the size of single request data according to the current network bandwidth, wherein the current network bandwidth is positively correlated with the size of the request data.
4. The method for remotely upgrading the terminal on line according to claim 1, wherein the step S3 comprises: detecting the current network intensity in a fixed time in the process of downloading the upgrade data packet;
the step S4 of adjusting the size of the single request data according to the current network quality includes: and adjusting the size of the single request data according to the current network intensity.
5. The method for remote online upgrade of a terminal according to claim 4, wherein the adjusting the size of the single request data according to the current network strength comprises:
adjusting the size of single request data according to the current network intensity, wherein the current network intensity is positively correlated with the size of the request data.
6. The method for remotely upgrading the terminal on line according to claim 1, wherein the step S2 includes: accessing the network address in the message push and requesting to download an upgrading data packet;
the step S3 includes: detecting the current network response time at regular time in the process of downloading the upgrading data packet, wherein the current network response time is the response time for accessing the network address;
the step S4 includes: and adjusting the size of the single request data according to the current network response time.
7. The method for remote online upgrade of a terminal according to claim 6, wherein the adjusting the size of the single request data according to the current network response time comprises:
and adjusting the size of the single request data according to the current network response time, wherein the current network response time is in negative correlation with the size of the request data.
8. The method for remotely upgrading the terminal on line according to claim 1, further comprising the following step after the step S1 and before the step S2:
s11, acquiring a version number and an MD5 value in the upgrading data;
s12, judging whether the version number in the upgrading data is the same as the version number in the application to be upgraded or not;
and step S13, if the difference is not the same, executing step S2.
9. The method for remotely upgrading the terminal online according to claim 8, further comprising, after the step S12, the steps of:
s14, when the version number in the upgrading data is the same as the version number in the application to be upgraded, judging whether the MD5 value in the upgrading data is the same as the MD5 value in the application to be upgraded;
step S15, if the breakpoint is the same as the breakpoint, acquiring the breakpoint of the last downloading, restarting the downloading from the breakpoint, and executing the step S3;
and step S16, if the difference is not the same, executing step S2.
10. The method for remotely upgrading the terminal on line according to claim 1, further comprising the following step after the step S2 and before the step S3:
s21, regularly detecting whether the current network is disconnected or not in the process of downloading the upgrading data packet;
step S22, if yes, the terminal initiates a network connection request;
and step S23, if not, executing step S3.
11. The method for remotely upgrading the terminal on line according to claim 10, wherein the step S22 includes:
judging whether the network connection request is successful;
if the network connection request is successful, executing step S3;
and if the network connection request fails, returning to the step S1.
12. The method for remotely upgrading the terminal on line according to claim 11, wherein if the network connection request fails, returning to step S1 includes:
if the network connection request fails, judging whether the connection request times are less than the preset times;
if yes, go to step S22;
if not, the step S1 is returned to.
13. The method for remotely upgrading the terminal on line according to claim 1, further comprising the step of, after the step S4:
s5, judging whether all the upgrading data are completely downloaded;
if so, the terminal is upgraded on line in a remote mode successfully;
if not, the step S1 is returned to.
14. A device for remotely upgrading a terminal online is characterized by comprising:
a receiving module: detecting whether message pushing for remote online upgrading is received or not;
a downloading module: if the message pushing is received, downloading an upgrading data packet according to the message pushing request;
a detection module: detecting the current network quality at regular time in the process of downloading the upgrade data packet;
an adjustment module: and adjusting the size of the single request data according to the current network quality, and downloading the upgrade data packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210789216.5A CN115314480A (en) | 2022-07-06 | 2022-07-06 | Method and device for remotely upgrading terminal on line |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210789216.5A CN115314480A (en) | 2022-07-06 | 2022-07-06 | Method and device for remotely upgrading terminal on line |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115314480A true CN115314480A (en) | 2022-11-08 |
Family
ID=83857331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210789216.5A Pending CN115314480A (en) | 2022-07-06 | 2022-07-06 | Method and device for remotely upgrading terminal on line |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115314480A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116962376A (en) * | 2023-09-20 | 2023-10-27 | 季华实验室 | NB-IOT terminal upgrading method, device, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013004059A1 (en) * | 2011-07-04 | 2013-01-10 | 中兴通讯股份有限公司 | Version upgrade method, terminal and version upgrade system |
CN103326951A (en) * | 2013-06-25 | 2013-09-25 | 广东电网公司佛山供电局 | Bandwidth control method and device for electric power communication network |
WO2014059838A1 (en) * | 2012-10-18 | 2014-04-24 | 中兴通讯股份有限公司 | Method and device for adjusting quality of service policy |
KR20140113770A (en) * | 2013-03-13 | 2014-09-25 | 주식회사 케이티 | Method and system for upgrade file of M2M device based on multicast |
CN104317607A (en) * | 2014-09-27 | 2015-01-28 | 昆明钢铁集团有限责任公司 | Enterprise In-house IOS APP automatic update system and method |
WO2015117527A1 (en) * | 2014-07-21 | 2015-08-13 | 中兴通讯股份有限公司 | Upgrade method and device |
WO2016019725A1 (en) * | 2014-08-04 | 2016-02-11 | 中兴通讯股份有限公司 | Software upgrade management method, device, system and computer storage medium |
WO2017107684A1 (en) * | 2015-12-25 | 2017-06-29 | 北京奇虎科技有限公司 | Data download system and data download method |
KR20170109979A (en) * | 2016-03-22 | 2017-10-10 | 주식회사 케이티 | Method and terminal for multi-path transmission |
CN111638891A (en) * | 2020-04-15 | 2020-09-08 | 视联动力信息技术股份有限公司 | Equipment upgrading method and device, terminal equipment and storage medium |
-
2022
- 2022-07-06 CN CN202210789216.5A patent/CN115314480A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013004059A1 (en) * | 2011-07-04 | 2013-01-10 | 中兴通讯股份有限公司 | Version upgrade method, terminal and version upgrade system |
WO2014059838A1 (en) * | 2012-10-18 | 2014-04-24 | 中兴通讯股份有限公司 | Method and device for adjusting quality of service policy |
KR20140113770A (en) * | 2013-03-13 | 2014-09-25 | 주식회사 케이티 | Method and system for upgrade file of M2M device based on multicast |
CN103326951A (en) * | 2013-06-25 | 2013-09-25 | 广东电网公司佛山供电局 | Bandwidth control method and device for electric power communication network |
WO2015117527A1 (en) * | 2014-07-21 | 2015-08-13 | 中兴通讯股份有限公司 | Upgrade method and device |
WO2016019725A1 (en) * | 2014-08-04 | 2016-02-11 | 中兴通讯股份有限公司 | Software upgrade management method, device, system and computer storage medium |
CN104317607A (en) * | 2014-09-27 | 2015-01-28 | 昆明钢铁集团有限责任公司 | Enterprise In-house IOS APP automatic update system and method |
WO2017107684A1 (en) * | 2015-12-25 | 2017-06-29 | 北京奇虎科技有限公司 | Data download system and data download method |
KR20170109979A (en) * | 2016-03-22 | 2017-10-10 | 주식회사 케이티 | Method and terminal for multi-path transmission |
CN111638891A (en) * | 2020-04-15 | 2020-09-08 | 视联动力信息技术股份有限公司 | Equipment upgrading method and device, terminal equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116962376A (en) * | 2023-09-20 | 2023-10-27 | 季华实验室 | NB-IOT terminal upgrading method, device, electronic equipment and storage medium |
CN116962376B (en) * | 2023-09-20 | 2024-04-05 | 季华实验室 | NB-IOT terminal upgrading method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7945673B2 (en) | Reduced wireless internet connect time | |
CN110990339B (en) | File read-write method, device and platform for distributed storage and readable storage medium | |
CN110247985A (en) | A kind of resource downloading method, device, electronic equipment and medium | |
CN110730196A (en) | Network resource access method, computer equipment and storage medium | |
CN110851290A (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN109714757B (en) | Method and device for preparing eSIM card in shared mode | |
CN115314480A (en) | Method and device for remotely upgrading terminal on line | |
CN112398689A (en) | Network recovery method and device, storage medium and electronic equipment | |
CN115335803B (en) | Equipment upgrading method, intelligent equipment and computer readable storage medium | |
CN114090033A (en) | OTA (over the air) upgrading method and device, electronic equipment and readable medium | |
CN106470227B (en) | A kind of configuration method and device of OTA upgrade package | |
JP2000122938A (en) | Information processor | |
CN113342419B (en) | Push system loading method and device, electronic equipment and storage medium | |
CN100373849C (en) | Down loading system and down loading method | |
CN113452770B (en) | Data synchronization method, device, computer equipment and storage medium | |
US7864779B2 (en) | Internet service synchronization method for mobile communication terminal | |
CN113722003A (en) | Method, device and equipment for adjusting working mode of PHY chip | |
WO2021237431A1 (en) | Data processing method and apparatus, processing device, and data storage system | |
CN111596942A (en) | Method and device for forcibly triggering software upgrading and software upgrading system | |
CN110324436B (en) | Proxy method and device for transport layer proxy | |
CN112929099B (en) | Signal detection method, terminal and storage medium | |
CN113747490A (en) | WIFI connectivity detection method and device, terminal equipment and storage medium | |
US20080065744A1 (en) | Mobile communication terminal and download resumption control method | |
JPH11113066A (en) | Data communication method, portable data communication equipment and storage medium | |
CN108111561B (en) | Data downloading method and equipment thereof |
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 |