CN110839235A - Terminal upgrading method, device, equipment and computer readable medium - Google Patents

Terminal upgrading method, device, equipment and computer readable medium Download PDF

Info

Publication number
CN110839235A
CN110839235A CN201810942471.2A CN201810942471A CN110839235A CN 110839235 A CN110839235 A CN 110839235A CN 201810942471 A CN201810942471 A CN 201810942471A CN 110839235 A CN110839235 A CN 110839235A
Authority
CN
China
Prior art keywords
terminal
upgrade
upgrade package
package
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810942471.2A
Other languages
Chinese (zh)
Other versions
CN110839235B (en
Inventor
邱振辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201810942471.2A priority Critical patent/CN110839235B/en
Publication of CN110839235A publication Critical patent/CN110839235A/en
Application granted granted Critical
Publication of CN110839235B publication Critical patent/CN110839235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Abstract

The embodiment of the invention discloses a terminal upgrading method, a device, equipment and a computer readable medium, wherein the method comprises the following steps: the first terminal downloads an upgrade package from an upgrade server; and the first terminal transmits the upgrade package to a second terminal, wherein the first terminal and the second terminal are in the same peer-to-peer network, and the upgrade package is used for indicating the first terminal and the second terminal to finish upgrading. The embodiment of the invention can avoid wasting limited network resources and accelerate the downloading speed of the upgrade package, thereby accelerating the terminal upgrade speed.

Description

Terminal upgrading method, device, equipment and computer readable medium
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, a device, and a computer-readable medium for upgrading a terminal.
Background
The related upgrade package is downloaded to the terminal device by the upgrade tool provided by the device manufacturer through the physical link and then upgraded, and the scheme is used for production, test and after sale. However, the mainstream upgrade scheme for upgrading currently is Over-the-Air Technology (OTA), that is, each terminal device polls an upgrade server according to a specified upgrade policy, and if an upgrade package for upgrading the terminal is found in the server, the upgrade package is downloaded to upgrade the terminal device.
Therefore, the terminal upgrading scheme is generally based on an upgrading server, that is, each device needs to download its own upgrading package from the upgrading server, and when a large-scale terminal (e.g., an internet of things terminal) needs to be upgraded, a large amount of resources need to be occupied.
Disclosure of Invention
The terminal upgrading method, device, equipment and computer readable medium provided by the embodiment of the invention solve the problem of large resource occupation when massive and cluster distributed terminals are upgraded.
The terminal upgrading method provided by the embodiment of the invention comprises the following steps:
the first terminal requests and downloads the upgrade package from an upgrade server with the upgrade package;
and the first terminal transmits the upgrade package to a second terminal, wherein the upgrade package is used for indicating the first terminal and the second terminal in the same peer-to-peer network to be upgraded.
The embodiment of the invention provides a terminal upgrading device, which comprises:
the acquisition module is used for requesting and downloading the upgrade package from the upgrade server with the upgrade package;
and the transmission module is used for transmitting the upgrade package to a second terminal, wherein the upgrade package is used for indicating the first terminal and the second terminal which are in the same peer-to-peer network to be upgraded.
The embodiment of the invention provides a terminal upgrading device, which comprises: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the above-mentioned terminal upgrade method.
The embodiment of the invention provides a computer readable medium, on which a computer program is stored, and the computer program realizes the steps of the terminal upgrading method when being executed by a processor.
The first terminal of the embodiment of the invention transmits the downloaded upgrade package to the second terminal of the peer-to-peer network, so that the equipment and network resources can be reasonably used, the resource waste is avoided, the download speed of the upgrade package is accelerated, and the terminal upgrade speed is accelerated.
Drawings
Fig. 1 is a schematic flowchart of upgrading a first terminal according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal upgrade system according to an embodiment of the present invention;
fig. 3 is a detailed flowchart of the upgrade of the first terminal when the second terminal is a terminal that does not download the upgrade package from the upgrade server according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of the upgrade of the second terminal when the second terminal is a terminal that does not download the upgrade package from the upgrade server according to the embodiment of the present invention;
fig. 5 is a detailed flowchart of the upgrade of the first terminal when the second terminal is a terminal that downloads the upgrade package from the upgrade server according to the embodiment of the present invention;
fig. 6 is a schematic block diagram of a terminal upgrading apparatus according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a terminal upgrading device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the embodiments described below are only for illustrating and explaining the present invention and are not intended to limit the present invention.
The embodiment of the invention can be applied to networks with large equipment quantity, wide deployment and distribution range and limited resources, such as an Internet of things system, in particular to a narrow-band Internet of things system.
Fig. 1 is a schematic flowchart of upgrading a first terminal according to an embodiment of the present invention, and as shown in fig. 1, the method may include:
step S101: the first terminal downloads all or part of the upgrade package from the upgrade server.
Step S102: and the first terminal transmits the upgrade package to a second terminal, wherein the first terminal and the second terminal are in the same peer-to-peer network, and the upgrade package is used for indicating the first terminal and the second terminal to finish upgrading.
The peer-to-peer network is established by at least one of the first terminals and at least one of the second terminals.
In an embodiment, the upgrade package downloaded by the first terminal in step S101 may refer to all of the upgrade packages, that is, a complete upgrade package, where the upgrade package transmitted by the first terminal to the second terminal in step S102 refers to all of the upgrade packages.
In this embodiment, the second terminal is a terminal that does not download the upgrade package from the upgrade server.
In this embodiment, the first terminal initiates a first request for querying an upgrade package to the upgrade server, so that after receiving the first request, if it is determined that the first terminal that sends the first request is a terminal that can download the upgrade package, the upgrade package is sent to the first terminal, and then the first terminal receives the upgrade package that is found and sent by the upgrade server according to the first request.
In this embodiment, the first terminal receives an upgrade package download request initiated by the second terminal, and transmits the upgrade package to the second terminal through a point-to-point transmission protocol according to the upgrade package download request, in other words, the second terminal interacts with the first terminal through a peer-to-peer network to obtain the upgrade package, and completes the upgrade by using the upgrade package. It should be noted that, in order to increase the downloading rate, the first terminal may segment the upgrade package into a plurality of data blocks for the second terminal to download in units of data blocks, and at this time, the second terminal that has obtained the upgrade package or is obtaining the upgrade package transmits the obtained part of the upgrade package (i.e., the obtained data blocks) to other second terminals in the peer-to-peer network through the peer-to-peer transmission protocol.
In this embodiment, after the first terminal and the second terminal in the peer-to-peer network both obtain the upgrade package, the upgrade may be performed according to an upgrade policy of an upgrade server, for example, each terminal may be upgraded independently, some terminals may be upgraded simultaneously, or all terminals may be upgraded simultaneously.
It should be noted that, in this embodiment, the number of the first terminals may be determined according to a network topology and a load capacity of the upgrade server, and a plurality of the first terminals may be distributed in the peer-to-peer network in a uniformly distributed manner.
In the related technology, in order to avoid the shortage of the upgrade server resources, the terminal can download and update the upgrade package according to a certain upgrade strategy, and the upgrade process is time-consuming for massive and cluster distributed terminals (such as internet of things terminal equipment). In the embodiment, the terminals are divided into a first class terminal (comprising at least one first terminal) and a second class terminal (comprising at least one second terminal), only the first class terminal can download the upgrade package from the upgrade server, so that the resources of the upgrade server are saved, and meanwhile, the first terminal can transmit the downloaded upgrade package to the second terminal of the peer-to-peer network, so that the equipment and the network resources can be reasonably used, the waste of limited resources is avoided, the download speed of the upgrade package can be accelerated, and the upgrade updating speed is accelerated.
In another embodiment, the upgrade package downloaded by the first terminal in step S101 may refer to a part of the upgrade package, and the upgrade package delivered by the first terminal to the second terminal in step S102 refers to a part of the upgrade package.
In this embodiment, the second terminal is a terminal that downloads the upgrade package from an upgrade server.
In this embodiment, each terminal in the peer-to-peer network downloads a part of the upgrade package from the upgrade server, and after the download is completed, the first terminal acquires the remaining part of the upgrade package from the neighboring second terminal by interacting with the neighboring second terminal until the complete upgrade package is obtained, and completes the upgrade by using the complete upgrade package. The second terminal that has obtained or is obtaining the upgrade package transfers the obtained portion of the upgrade package (i.e., the obtained upgrade package data) to other second terminals in the peer-to-peer network via a point-to-point transmission protocol.
In the related technology, in order to avoid the shortage of the upgrade server resources, the terminal can download and update the upgrade package according to a certain upgrade strategy, and the upgrade process is time-consuming for massive and cluster distributed terminals (such as internet of things terminal equipment). Each terminal of the embodiment downloads only the part of the upgrade package from the upgrade server, so that the resources of the upgrade server are saved, and the terminals in the peer-to-peer network interact with the downloaded parts to obtain the complete upgrade package. The method and the device can reasonably use equipment and network resources, avoid wasting limited resources, reduce transmission pressure for downloading the upgrade package from the upgrade server, and accelerate the download speed of the upgrade package, thereby accelerating the upgrade and update speed.
The upgrade package of the embodiment of the invention can be a version file for version upgrade, and can also be various types of upgrade files for system upgrade and the like.
Fig. 2 is a schematic diagram of an architecture of a terminal upgrade system according to an embodiment of the present invention, as shown in fig. 2, the system mainly includes three parts: respectively an upgrade server (or version upgrade server), a base station and a terminal device. The upgrade server is deployed at the cloud end and provides an upgrade policy for configuring and managing the relevant terminal devices, a device upgrade package (such as a version file) and release of device update configuration information (or upgrade configuration information). And the base station provides service for the terminal equipment to access the network.
In this embodiment, the upgrade server may be a server for version upgrade, or may be a server for multiple types of upgrade such as system upgrade.
In this embodiment, the terminal device may be an NB-IoT (Narrow Band Internet of Things) device, mainly refers to a related terminal device deployed in an NB network to complete a related emerging Internet of Things service function, and is an Internet of Things terminal device with a general application scenario that is wide in deployment distribution range, large in device quantity, and limited in resources, where the base station is an NB-IoT base station.
Fig. 3 is a detailed flowchart of the upgrade of the first terminal when the second terminal is a terminal that does not download the upgrade package from the upgrade server according to the embodiment of the present invention, and as shown in fig. 3, an implementation process of this embodiment includes:
step S301: and updating and polling the terminal equipment.
The terminal device (or the first terminal) initiates a polling request (or an updating request or a first request) to the upgrading server at the cloud end according to the updating strategy, checks whether new upgrading information exists, checks and confirms the updating strategy of the current terminal device to the upgrading server if the upgrading server is checked to have the new upgrading information, and waits for next polling updating according to the updating strategy if the upgrading server is checked to have no new upgrading information.
The upgrading server carries out identity check on the terminal equipment initiating the polling request according to the updating strategy configured by the server, confirms the corresponding upgrading strategy, if the terminal equipment requesting upgrading (namely the appointed equipment) needing to download the upgrading package specified in the updating strategy is confirmed, the downloading flow of upgrading updating is continuously executed, and the terminal equipment downloads and updates through the upgrading server based on the network.
It should be noted that the specific device configured in the upgrade server refers to a terminal device (i.e., a first terminal) that is evenly distributed in the network according to the network deployment according to the topology and distance of the network device nodes, and will subsequently serve as a local P2P network to provide the upgrade download for the adjacent terminal device (i.e., a second terminal). The number of designated devices configured to download the upgrade package may be determined according to the networking deployment and the load of the upgrade server, so as to ensure that at least one terminal device (i.e., the designated device or the first terminal) configured to download the upgrade package is included in the local P2P network formed by the terminal devices.
When the terminal device network is deployed, a specific calculation method of the terminal device (namely, the designated device or the first terminal) required to be designated for upgrading is as follows:
the number of terminal device deployments for the specified upgrade is (the local P2P network networking coverage of the terminal device x the local P2P network networking number)/the local communication coverage of the terminal.
There may be a plurality of independent local P2P networks when terminal devices are deployed, due to network topology or network layout. The local communication coverage range of the terminal refers to the effective communication range of the short-distance wireless communication technology (such as WiFi, Bluetooth, ZigBee and the like) in the network.
To facilitate networking deployment and upgrade server configuration, the terminal device (i.e., the designated device or first terminal) that downloads the upgrade package by default may use, but is not limited to, a different product color appearance or a distinct identification pattern, and the upgrade server configures this type of terminal device as the designated device for downloading the version file by default.
Step S302: the terminal device (or first terminal) downloads the upgrade package from the upgrade server.
Step S303: the terminal device (or the first terminal) performs downloading update of the upgrade package based on the local network, namely, the terminal device which completes update with the upgrade server builds and initializes the distributed P2P (Peer-to-Peer) local network and provides download of the upgrade package.
Step S304: and the terminal equipment finishes upgrading.
And after all the terminal equipment in the local network finish the downloading task of the upgrade package, finishing the integral upgrade of all the terminal equipment according to the upgrade strategy. The upgrade strategy can be understood as that in order to meet various scenes of terminal equipment upgrade, after the terminal equipment finishes downloading the upgrade package, the terminal equipment is decided to be independently upgraded according to the upgrade configuration information in the upgrade server, and part of the terminal equipment is upgraded together with all the terminal equipment in the whole network.
In this embodiment, the network may be an internet of things network, such as an NB-IoT network, the terminal device may be an NB-IoT device, and the upgrade server may be a version upgrade server, where the upgrade information is version information, the upgrade policy is a version upgrade policy, the update policy is a version update policy, and the upgrade package is a new version file.
Fig. 4 is a schematic flowchart of the upgrade of the second terminal when the second terminal is a terminal that does not download the upgrade package from the upgrade server according to the embodiment of the present invention, and as shown in fig. 4, an implementation process of this embodiment includes:
step S401: and updating and polling the terminal equipment.
And the terminal equipment (or the second terminal) initiates a polling request (namely a second request) to the upgrading server at the cloud end according to the updating strategy, checks whether new upgrading information exists, checks and confirms the updating strategy of the current terminal equipment to the upgrading server if the upgrading server is checked to have the new upgrading information, and waits for next polling updating according to the updating strategy if the upgrading server is checked to have no new upgrading information.
The upgrading server performs identity verification on the terminal equipment initiating the polling request according to the updating strategy configured by the server, confirms the corresponding upgrading strategy, and executes the process of updating the configuration information of the upgrading package if the terminal equipment which is not specified in the updating strategy and needs to download the upgrading package and requests for upgrading (namely, non-specified equipment) is confirmed.
Step S402: the terminal device (or second terminal) downloads the updated configuration information from the upgrade server.
The second terminal is a terminal device that does not need to download the upgrade package from the upgrade server, but needs to download the update configuration information deployed in the upgrade server. The update configuration information mainly comprises: 1) and the fingerprint value of the data block of the upgrade package is used for data verification in the download process of the upgrade package, so that the effectiveness and the safety of the upgrade package are ensured. The upgrading package is deployed in an upgrading server and can be divided into a plurality of data blocks according to upgrading requirements for improving the downloading rate; 2) the local P2P network provides address identity information of the terminal device (i.e. the designated device or the first terminal) for downloading the upgrade package, and the terminal device can communicate with the terminal device that has downloaded the upgrade package and initiate a request for downloading the relevant version according to the address information.
Step S403: after the terminal device (or the second terminal) finishes downloading the updated configuration information from the upgrade server, the distributed P2P network is constructed and initialized, the terminal device (or the second terminal) joining the local P2P network searches the network node devices (for example, the terminal devices closest to the terminal device) adjacent to the network through a P2P protocol (for example, Kademlia protocol) to obtain the related upgrade package information and the routing list on the node device through the distributed P2P local network composed of the terminal devices, and then starts downloading the related upgrade package. That is, the terminal device that is downloading and has finished downloading the upgrade package updates the routing list configuration information on the device according to the P2P protocol, and after the neighboring terminal device obtains the updated routing list configuration information, it can download the upgrade package required by itself from the updated configuration information list according to the upgrade package downloading state of its own device. The upgrade package downloading updating speed of the terminal devices in the whole local network is accelerated and the upgrade package downloading task of all the terminal devices in the whole network is completed through the coordinated distributed P2P network.
It should be noted that each second terminal in the peer-to-peer network may search for other neighboring terminals, which may be the first terminal or other second terminals, through the peer-to-peer network protocol.
Step S404: and the terminal equipment finishes version upgrading.
And after all the terminal equipment in the local network finish the downloading task of the upgrade package, finishing the integral upgrade of all the terminal equipment according to the upgrade strategy. The upgrade strategy can be understood that in order to meet various scenes of terminal equipment upgrade, after the terminal equipment finishes version downloading, the terminal equipment is decided to be independently upgraded according to upgrade configuration information in the server, and part of terminal equipment is upgraded together with all terminal equipment in the whole network.
In this embodiment, the network may be an internet of things network, such as an NB-IoT network, the terminal device may be an NB-IoT device, and the upgrade server may be a version upgrade server, where the upgrade information is version information, the upgrade policy is a version upgrade policy, the update policy is a version update policy, and the upgrade package is a new version file.
It should be noted that, in fig. 3 and fig. 4, the upgrade package may be a version file for version upgrade, and may also be multiple types of upgrade files for system upgrade, and the like.
Generally, in an intelligent terminal upgrading process, each terminal device polls an upgrading server according to a specified upgrading strategy, and if an upgrading package capable of being upgraded is found in the upgrading server, the upgrading package is downloaded for upgrading. Many application scenarios are clustered or require cooperation with each other to complete the relevant application. In the traditional terminal upgrading scheme, each device can only independently download and upgrade the upgrading package through the upgrading server, and the scene requirements of high real-time performance and rapid completion of upgrading of the devices cannot be met. Through fig. 3 and fig. 4, the terminal device of the embodiment of the present invention initiates an update polling request (or a request for querying a new version file) according to the update policy, and according to the relevant device upgrade policy configured by the upgrade server, the specified terminal device (or the first terminal) downloads the upgrade package (e.g., the relevant version upgrade file), and the other terminal devices (or the second terminals) only update the local network upgrade configuration information (or update configuration information). The embodiment of the invention completes the complete upgrade package downloading task of the terminal equipment of the whole network through the distributed P2P local network, and after all the terminal equipment in the network completes the complete upgrade package downloading task, the equipment is upgraded according to the appointed upgrade strategy, thereby accelerating the downloading speed and the upgrading speed, and reasonably utilizing the equipment and network resources.
Fig. 5 is a detailed flowchart of the upgrade of the first terminal when the second terminal downloads the upgrade package from the upgrade server according to the embodiment of the present invention, and as shown in fig. 5, an implementation process of this embodiment includes:
step S501: and the terminal equipment (or the first terminal) initiates a polling request to an upgrading server at the cloud end according to the updating strategy and checks whether new upgrading information exists.
Step S502: if it is checked that the upgrade server has new upgrade information, the terminal device (or the first terminal) downloads a part of the upgrade package from the upgrade server.
In this embodiment, each terminal device in the peer-to-peer network downloads a portion of the upgrade package from the upgrade server.
Step S503: after the terminal device (or first terminal) finishes downloading from the upgrade server, the distributed P2P network is constructed and initialized.
Step S504: the terminal equipment (or the first terminal) searches the adjacent terminal equipment on the P2P network, acquires the upgrade package information and the routing list on the adjacent terminal equipment, and acquires the rest part of the upgrade package from the P2P network according to the upgrade package information and the routing list.
Step S505: and the terminal equipment combines the part of the upgrade package downloaded from the upgrade server with the rest part of the upgrade package acquired from the P2P network so as to upgrade the terminal equipment according to the upgrade strategy of the upgrade server.
The upgrade strategy can be that after the terminal equipment finishes the download of the upgrade package, the terminal equipment is decided to be independently upgraded according to the upgrade configuration information in the upgrade server, and part of the terminal equipment is upgraded together with all the terminal equipment in the whole network.
In this embodiment, if the terminal device (or the first terminal) acquires the part of the upgrade package in step S502, the terminal device (or the first terminal) acquires the remaining part of the upgrade package from the neighboring terminal device (or the second terminal) by interacting with the neighboring terminal device (or the second terminal) in step S504 until the complete upgrade package is acquired.
On the basis of the above-described embodiment, the second terminal that has obtained the upgrade package or is obtaining the remaining part of the upgrade package transmits the obtained part of the upgrade package (i.e., the obtained upgrade package data) to other second terminals in the peer-to-peer network through a point-to-point transmission protocol.
It should be noted that, in fig. 5, the upgrade package downloaded from the upgrade server refers to a part of the upgrade package, and the upgrade package may be a version file for version upgrade, or may be multiple types of upgrade files for system upgrade, and the like.
Each terminal device of the embodiment of the invention acquires the part of the upgrade package from the upgrade server, and then acquires the rest part by interacting with other terminal devices of the local P2P network, thereby not only avoiding resource waste, but also accelerating the downloading and upgrading speed.
Fig. 6 is a schematic block diagram of a terminal upgrading apparatus according to an embodiment of the present invention, and as shown in fig. 6, the apparatus may include:
an obtaining module 61, configured to download an upgrade package from an upgrade server;
a transmitting module 62, configured to transmit the upgrade package to a second terminal, where the first terminal and the second terminal are in the same peer-to-peer network, and the upgrade package is used to indicate that the first terminal and the second terminal complete upgrading.
The peer-to-peer network is formed by at least one first terminal and at least one second terminal.
In one embodiment, the upgrade package downloaded by the obtaining module 61 may refer to all of the upgrade package, that is, a complete upgrade package (for example, a complete new version file), where the upgrade package delivered to the second terminal by the delivering module 62 refers to all of the upgrade package.
In this embodiment, the second terminal is a terminal that does not download the upgrade package from the upgrade server.
In this embodiment, the obtaining module 61 of the first terminal initiates a first request for querying an upgrade package to the upgrade server, and receives the upgrade package found and sent by the upgrade server according to the first request. The transmitting module 62 of the first terminal may then transmit the data blocks of the upgrade package to the second terminal via a point-to-point transmission protocol, and the second terminal that has obtained the upgrade package or is obtaining the upgrade package transmits the obtained portion of the upgrade package (i.e., the obtained data blocks) to other second terminals in the peer-to-peer network via a point-to-point transmission protocol.
In this embodiment, the second terminal only obtains the update configuration file (which may include the address information of the first terminal and the fingerprint value of the data block of the upgrade package) from the upgrade server, and obtains the upgrade package from the peer-to-peer network where the second terminal is located by using the upgrade configuration file, which not only can speed up the downloading and upgrading, but also can avoid resource waste.
In another embodiment, the upgrade package downloaded by the obtaining module 61 may refer to a part of the upgrade package, and the upgrade package delivered to the second terminal by the delivering module 62 refers to a part of the upgrade package.
In this embodiment, the second terminal is a terminal that downloads the upgrade package from an upgrade server.
In this embodiment, after the download of the part of the upgrade package downloaded from the upgrade server by the obtaining module 61 of each terminal in the peer-to-peer network is completed, the transmitting module 62 of the first terminal obtains the remaining part of the upgrade package from the neighboring second terminal by interacting with the neighboring second terminal until the complete upgrade package is obtained, so that the upgrade can be completed by using the complete upgrade package. The second terminal that has obtained the upgrade package or is obtaining the remainder of the upgrade package may transmit the obtained portion of the upgrade package (i.e., with the obtained upgrade package data) to other second terminals in the peer-to-peer network via a point-to-point transmission protocol using its own transmission module 62.
The upgrade package of the embodiment of the invention can be a version file for version upgrade, and can also be various types of upgrade files for system upgrade and the like.
Fig. 7 is a schematic block diagram of a terminal upgrading device according to an embodiment of the present invention, and as shown in fig. 7, the device may include: a memory 71, a processor 72 and a computer program stored on the memory 71 and executable on the processor 72, which computer program, when executed by the processor 72, performs the steps of the above described terminal upgrade method.
The embodiment of the present invention further provides a computer readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the terminal upgrading method described above.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Compared with the traditional upgrading scheme, the method and the device are safer, more stable and faster, the downloading and updating speed of the terminal upgrading package (such as the whole version) deployed in the network (such as the Internet of things) is increased, the upgrading and updating of the whole network terminal device can be completed quickly, the waste of limited network resources is avoided, and the requirement of the whole upgrading of more network application scenes can be met.
Although the embodiments of the present invention have been described in detail above, the embodiments of the present invention are not limited thereto, and those skilled in the art can make various modifications according to the principles of the embodiments of the present invention. Therefore, any modifications made to the principles of the embodiments of the present invention should be understood to fall within the scope of the present invention.

Claims (10)

1. A terminal upgrading method is characterized by comprising the following steps:
the first terminal downloads an upgrade package from an upgrade server;
and the first terminal transmits the upgrade package to a second terminal, wherein the first terminal and the second terminal are in the same peer-to-peer network, and the upgrade package is used for indicating the first terminal and the second terminal to finish upgrading.
2. The method of claim 1, wherein the second terminal is a terminal that does not download the upgrade package from the upgrade server.
3. The method of claim 2, wherein the first terminal downloading the upgrade package from the upgrade server comprises:
initiating a first request for inquiring an upgrade package to the upgrade server;
and receiving the upgrade package which is found and sent by the upgrade server according to the first request.
4. The method of claim 3, wherein the first terminal transmitting the upgrade package to a second terminal comprises:
and receiving an upgrade package downloading request initiated by the second terminal, and transmitting the upgrade package to the second terminal according to the upgrade package downloading request.
5. The method of claim 1, wherein the second terminal is a terminal that downloads the upgrade package from the upgrade server.
6. The method of claim 5, wherein each terminal in the peer-to-peer network downloads a portion of the upgrade package from the upgrade server, and wherein after downloading is complete, the method further comprises:
and acquiring the rest part of the upgrade package from the adjacent second terminal through interaction with the adjacent second terminal until the upgrade package is acquired, and completing the upgrade by using the upgrade package.
7. The method of claim 4 or 6, further comprising:
the second terminal that has obtained or is obtaining the upgrade package transmits the obtained portion of the upgrade package to other second terminals in the peer-to-peer network via a point-to-point transmission protocol.
8. A terminal upgrade apparatus, characterized in that the apparatus comprises:
the acquisition module is used for downloading the upgrade package from the upgrade server;
and the transmission module is used for transmitting the upgrade package to a second terminal, wherein the first terminal and the second terminal are in the same peer-to-peer network, and the upgrade package is used for indicating the first terminal and the second terminal to finish upgrading.
9. A terminal upgrade apparatus, the apparatus comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the computer program, when executed by the processor, implements the steps of the terminal upgrade method according to any of the preceding claims 1 to 7.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for upgrading a terminal according to any one of claims 1 to 7.
CN201810942471.2A 2018-08-17 2018-08-17 Terminal upgrading method, device, equipment and computer readable medium Active CN110839235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810942471.2A CN110839235B (en) 2018-08-17 2018-08-17 Terminal upgrading method, device, equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810942471.2A CN110839235B (en) 2018-08-17 2018-08-17 Terminal upgrading method, device, equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN110839235A true CN110839235A (en) 2020-02-25
CN110839235B CN110839235B (en) 2022-07-05

Family

ID=69574416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810942471.2A Active CN110839235B (en) 2018-08-17 2018-08-17 Terminal upgrading method, device, equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN110839235B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917583A (en) * 2020-07-31 2020-11-10 中国联合网络通信集团有限公司 Internet of things terminal, software upgrading method thereof and Internet of things platform
CN111934928A (en) * 2020-08-03 2020-11-13 杭州海康威视数字技术股份有限公司 Terminal equipment upgrading method, device, management platform, system and equipment
CN112491956A (en) * 2020-10-27 2021-03-12 深圳市广和通无线股份有限公司 Method and device for upgrading communication module in Internet of things equipment and computer equipment
CN114157645A (en) * 2021-12-02 2022-03-08 深圳市绿联科技股份有限公司 Software upgrading method, software upgrading device and storage medium
CN114666311A (en) * 2022-03-25 2022-06-24 深圳海星智驾科技有限公司 Engineering machine, and engineering machine software upgrading method and device
CN114915618A (en) * 2021-01-29 2022-08-16 华为技术有限公司 Upgrade package downloading method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030163702A1 (en) * 2001-04-06 2003-08-28 Vigue Charles L. System and method for secure and verified sharing of resources in a peer-to-peer network environment
KR100723674B1 (en) * 2006-01-12 2007-05-30 에스케이 텔레콤주식회사 Method, navigation terminal and system for providing automatic update of map data by using mobile communication network
CN101060534A (en) * 2007-06-13 2007-10-24 中兴通讯股份有限公司 A P2P network application system and network side system
CN103092657A (en) * 2013-01-18 2013-05-08 郑州威科姆科技股份有限公司 Embedded device upgrade method based on peer-to-peer (P2P)
CN107222532A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of radio firmware upgrade method, device and computer-readable recording medium
CN108173774A (en) * 2018-02-27 2018-06-15 北京明朝万达科技股份有限公司 The upgrade method and system of a kind of client

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030163702A1 (en) * 2001-04-06 2003-08-28 Vigue Charles L. System and method for secure and verified sharing of resources in a peer-to-peer network environment
KR100723674B1 (en) * 2006-01-12 2007-05-30 에스케이 텔레콤주식회사 Method, navigation terminal and system for providing automatic update of map data by using mobile communication network
CN101060534A (en) * 2007-06-13 2007-10-24 中兴通讯股份有限公司 A P2P network application system and network side system
CN103092657A (en) * 2013-01-18 2013-05-08 郑州威科姆科技股份有限公司 Embedded device upgrade method based on peer-to-peer (P2P)
CN107222532A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of radio firmware upgrade method, device and computer-readable recording medium
CN108173774A (en) * 2018-02-27 2018-06-15 北京明朝万达科技股份有限公司 The upgrade method and system of a kind of client

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917583A (en) * 2020-07-31 2020-11-10 中国联合网络通信集团有限公司 Internet of things terminal, software upgrading method thereof and Internet of things platform
CN111934928A (en) * 2020-08-03 2020-11-13 杭州海康威视数字技术股份有限公司 Terminal equipment upgrading method, device, management platform, system and equipment
CN112491956A (en) * 2020-10-27 2021-03-12 深圳市广和通无线股份有限公司 Method and device for upgrading communication module in Internet of things equipment and computer equipment
CN114915618A (en) * 2021-01-29 2022-08-16 华为技术有限公司 Upgrade package downloading method and device
CN114915618B (en) * 2021-01-29 2023-09-12 华为技术有限公司 Upgrade package downloading method and device
CN114157645A (en) * 2021-12-02 2022-03-08 深圳市绿联科技股份有限公司 Software upgrading method, software upgrading device and storage medium
CN114666311A (en) * 2022-03-25 2022-06-24 深圳海星智驾科技有限公司 Engineering machine, and engineering machine software upgrading method and device

Also Published As

Publication number Publication date
CN110839235B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
CN110839235B (en) Terminal upgrading method, device, equipment and computer readable medium
US10630548B2 (en) Update file download method, device, and system
WO2022061843A1 (en) Vehicle upgrading method and apparatus
US20140112200A1 (en) Apparatus, system, and method for peer group formation for mobile devices by proximity sensing
CN110061871B (en) Base station opening method and device, computer storage medium and equipment
CN111885122B (en) Remote pushing method, system, server and computer readable storage medium
CN107977215B (en) Vehicle-mounted system upgrading method and device
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN112737847A (en) Node upgrading method and device, storage medium and electronic device
US10827404B2 (en) Controlling client connectivity during access point upgrades
US11068251B2 (en) Method for distributing software upgrade in a communication network
CN111418185A (en) Method, system and node device for locating information available at a node device in a network of communicatively interconnected node devices
US10924589B2 (en) RF transceiver and wireless mesh network
CN109450692B (en) Network networking method, system and terminal equipment
CN115335803A (en) Equipment upgrading method, intelligent equipment and computer readable storage medium
CN116996376A (en) Method, device, equipment and storage medium for updating configuration of fixed network terminal
CN114257509A (en) Module upgrading method and device, storage medium and electronic device
CN113259928A (en) OTA (over the air) upgrading method and device, electronic equipment, storage medium and program product
US20170311172A1 (en) Methods, apparatuses and system for inter-operator spectrum sharing
CN111417112A (en) Distributed OTA gateway networking and terminal access method and OTA upgrading system
US9883408B2 (en) Gateway apparatus and communications system
CN114697375B (en) Voice packet switching method and device, storage medium and electronic device
CN113852940B (en) Command distribution and synchronization method, device, equipment and readable storage medium
CN113746938B (en) File transmission method, device and system
CN112422305B (en) Upgrading method and device of communication equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant