CN114915618B - Upgrade package downloading method and device - Google Patents

Upgrade package downloading method and device Download PDF

Info

Publication number
CN114915618B
CN114915618B CN202110130639.1A CN202110130639A CN114915618B CN 114915618 B CN114915618 B CN 114915618B CN 202110130639 A CN202110130639 A CN 202110130639A CN 114915618 B CN114915618 B CN 114915618B
Authority
CN
China
Prior art keywords
upgrade package
upgraded
server
target
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110130639.1A
Other languages
Chinese (zh)
Other versions
CN114915618A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110130639.1A priority Critical patent/CN114915618B/en
Publication of CN114915618A publication Critical patent/CN114915618A/en
Application granted granted Critical
Publication of CN114915618B publication Critical patent/CN114915618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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]
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method and a device for downloading an upgrade package, wherein the method comprises the following steps: receiving information of mobile equipment to be upgraded; sending a first acquisition request to a packet searching server, wherein the first acquisition request contains information of mobile equipment to be upgraded; according to the download address of the target upgrade package of the mobile device to be upgraded, which is sent by the package searching server, respectively downloading sub-upgrade packages of the target upgrade package from the download server to a plurality of sub-devices of the distributed server; and respectively sending the sub-upgrade packages in the plurality of sub-devices of the distributed server to the mobile device to be upgraded. Compared with the prior art, when the mobile devices to be upgraded are more, the mobile devices to be upgraded can directly download the upgrade package from the distributed server, so that each mobile device to be upgraded is prevented from independently downloading the upgrade package from the download server, a large number of link resources are prevented from being occupied, and the download pressure of the download server is reduced.

Description

Upgrade package downloading method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for downloading an upgrade package.
Background
Over The Air (OTA) is a technique that enables remote management of mobile device and subscriber identity module (Subscriber Identity Module, SIM) data Over the Air interface of mobile communications. As the variety of mobile devices increases, users may use different mobile devices to perform OTA upgrades at different time and place every day.
In the related art, in the process of performing OTA upgrade, each mobile device needs to be independently linked to the cloud end, interact with a package searching server (Query Cloud Server), and acquire a download address of an upgrade package. Subsequently, the upgrade package is downloaded from the download server (Download Cloud Server) using the download address again.
However, with the increase of mobile devices, each mobile device is individually linked to the cloud for downloading the upgrade package, which occupies a large amount of link resources in the cloud, so that the downloading pressure of the downloading server is too high.
Disclosure of Invention
The embodiment of the application provides a method and a device for downloading an upgrade package, which are used for solving the technical problem that the downloading pressure of a downloading server is overlarge in the prior art.
The first aspect of the present application provides a method for downloading an upgrade package, which is applied to a distributed server, and the method comprises: the distributed server receives information of the mobile device to be upgraded. And secondly, the distributed server sends a first acquisition request to the packet searching server, wherein the first acquisition request contains information of the mobile equipment to be upgraded. And thirdly, the distributed server downloads the sub-upgrading packages of the target upgrading packages from the downloading server to a plurality of sub-devices of the distributed server according to the downloading address of the target upgrading packages of the mobile device to be upgraded, which is sent by the package searching server. And finally, the distributed server respectively sends the sub-upgrade packages in the plurality of sub-devices of the distributed server to the mobile device to be upgraded.
According to the upgrade package downloading method, when the upgrade package is downloaded, the distributed server can download the sub-upgrade package of the target upgrade package from the download server, and then the sub-upgrade package of the target upgrade package is sent to the mobile device, so that each device to be upgraded is prevented from independently downloading the upgrade package from the download server, a large number of link resources are prevented from being occupied, and the downloading pressure of the download server is reduced.
In one possible design, the first acquisition request further includes information of the distributed server. The information of the distributed server and the information of the mobile device to be upgraded are also used for establishing a configuration table of a target upgrade package in the package searching server, and the configuration table of the target upgrade package is used for dynamically updating the download address of the target upgrade package.
Through the possible design, when the target upgrade package is downloaded, the download address of the target upgrade package can be dynamically managed through the configuration table in the package searching server, so that the real-time management and the dynamic update of the download address of the target upgrade package are realized.
In one possible design, after downloading the sub-upgrade packages of the target upgrade package from the download server to the plurality of sub-devices of the distributed server, respectively, the upgrade package downloading method further includes: the distributed server sends a configuration table updating instruction to the packet searching server, wherein the configuration table updating instruction comprises a download address of the target upgrade packet in the distributed server. And the distributed server updates the configuration table of the target upgrade package according to the download address of the target upgrade package in the distributed server.
In one possible design, the download address of the target upgrade package in the distributed server includes a save path of the child upgrade package of the target upgrade package in the child device of the distributed server.
In one possible design, before the sub-upgrade packages in the plurality of sub-devices of the distributed server are respectively sent to the mobile device to be upgraded, the upgrade package downloading method further includes: the distributed server receives a first downloading request sent by the mobile device to be upgraded, wherein the first downloading request is used for requesting to download sub-upgrade packages of the target upgrade packages from a plurality of sub-devices of the distributed server respectively.
The second aspect of the present application provides a method for downloading an upgrade package, which is applied to a package searching server, and the method comprises: the method comprises the steps that a packet searching server firstly receives a first acquisition request sent by a distributed server, wherein the first acquisition request contains information of mobile equipment to be upgraded. And then, the packet searching server determines the download address of the target upgrade packet of the mobile device to be upgraded according to the information of the mobile device to be upgraded. And finally, the packet searching server sends a first downloading instruction to the distributed server, wherein the first downloading instruction comprises the downloading address of the target upgrading packet of the mobile equipment to be upgraded.
In one possible design, the first acquisition request further includes information of the distributed server, and after determining a download address of the target upgrade package of the mobile device to be upgraded, the upgrade package downloading method further includes: the searching server establishes a configuration table of the target upgrading package according to the information of the mobile device to be upgraded, the information of the distributed server and the downloading address of the target upgrading package, and the configuration table of the target upgrading package is used for dynamically updating the downloading address of the target upgrading package.
In one possible design, after the first download indication is to be sent to the distributed server, the upgrade package downloading method further includes: the packet searching server firstly receives a configuration table updating instruction sent by the distributed server, wherein the configuration table updating instruction comprises a download address of a target upgrade packet in the distributed server. And then, the searching server updates the configuration table of the target upgrading packet according to the downloading address of the target upgrading packet in the distributed server.
In one possible design, the download address of the target upgrade package in the distributed server includes a save path of the child upgrade package of the target upgrade package in the child device of the distributed server.
In one possible design, after updating the configuration table of the target upgrade package according to the download address of the target upgrade package in the distributed server, the upgrade package download method further includes: the packet searching server sends a third downloading instruction to the mobile equipment to be upgraded, wherein the third downloading instruction contains the information required by upgrading of the mobile equipment to be upgraded, which is extracted from the configuration table of the target upgrading packet.
In one possible design, the information required for upgrading the mobile device to be upgraded includes the updated download address of the target upgrade package, the start address of each sub-upgrade package, the offset of each sub-upgrade package, and the address of the sub-device of the distributed server.
The third aspect of the present application provides a method for downloading an upgrade package, which is applied to a mobile device to be upgraded, and the method comprises: the mobile equipment to be upgraded firstly transmits information of the mobile equipment to be upgraded to the distributed server. And secondly, the mobile equipment to be upgraded receives a third download instruction sent by the packet searching server, wherein the third download instruction contains information required by upgrading the mobile equipment to be upgraded. And thirdly, the mobile equipment to be upgraded downloads the sub-upgrade package of the target upgrade package of the mobile equipment to be upgraded from a plurality of sub-equipment of the distributed server according to the information required by the upgrade of the mobile equipment to be upgraded. And finally, the mobile equipment to be upgraded combines the sub-upgrade packages into a target upgrade package.
In one possible design, the information required for upgrading the mobile device to be upgraded includes the updated download address of the target upgrade package, the start address of each sub-upgrade package, the offset of each sub-upgrade package, and the address of the sub-device of the distributed server.
A fourth aspect of the present application provides an upgrade package downloading apparatus, including: the receiving module is used for receiving the information of the mobile equipment to be upgraded; the sending module is used for sending a first acquisition request to the packet searching server, wherein the first acquisition request contains information of the mobile equipment to be upgraded; the processing module is used for respectively downloading sub-upgrade packages of the target upgrade packages from the download server to a plurality of sub-devices of the upgrade package downloading device according to the download address of the target upgrade package of the mobile device to be upgraded, which is sent by the package searching server; and the sending module is also used for respectively sending the sub-upgrade packages in the plurality of sub-devices of the upgrade package downloading device to the mobile device to be upgraded.
In one possible design, the first acquisition request further includes information of the upgrade package downloading device; the information of the upgrade package downloading device and the information of the mobile equipment to be upgraded are also used for establishing a configuration table of the target upgrade package in the package searching server, and the configuration table of the target upgrade package is used for dynamically updating the downloading address of the target upgrade package.
In one possible design, the sending module is further configured to send a configuration table update indication to the packet search server, where the configuration table update indication includes a download address of the target upgrade packet in the upgrade packet downloading device; and the processing module is also used for updating the configuration table of the target upgrade package according to the download address of the target upgrade package in the upgrade package download device.
In one possible design, the download address of the target upgrade package in the upgrade package download device includes a save path of the child upgrade package of the target upgrade package in the child equipment of the upgrade package download device.
In one possible design, the receiving module is further configured to receive a first download request sent by the mobile device to be upgraded, where the first download request is used to request downloading sub-upgrade packages of the target upgrade package from a plurality of sub-devices of the upgrade package downloading apparatus, respectively.
A fifth aspect of the present application provides an upgrade package downloading apparatus, the apparatus comprising: the receiving module is used for receiving a first acquisition request sent by the distributed server, wherein the first acquisition request contains information of the mobile equipment to be upgraded; the processing module is used for determining the download address of the target upgrade package of the mobile equipment to be upgraded according to the information of the mobile equipment to be upgraded; the sending module is used for sending a first downloading instruction to the distributed server, wherein the first downloading instruction comprises the downloading address of the target upgrading packet of the mobile device to be upgraded.
In one possible design, the first acquisition request further includes information of the distributed server; the processing module is further used for establishing a configuration table of the target upgrade package according to the information of the mobile device to be upgraded, the information of the distributed server and the download address of the target upgrade package, wherein the configuration table of the target upgrade package is used for dynamically updating the download address of the target upgrade package.
In one possible design, the receiving module is further configured to receive a configuration table update indication sent by the distributed server, where the configuration table update indication includes a download address of the target upgrade package in the distributed server; and the processing module is also used for updating the configuration table of the target upgrade package according to the download address of the target upgrade package in the distributed server.
In one possible design, the download address of the target upgrade package in the distributed server includes a save path of the child upgrade package of the target upgrade package in the child device of the distributed server.
In one possible design, the sending module is further configured to send a third download instruction to the mobile device to be upgraded, where the third download instruction includes information required for upgrading the mobile device to be upgraded, which is extracted from the configuration table of the target upgrade package.
In one possible design, the information required for upgrading the mobile device to be upgraded includes the updated download address of the target upgrade package, the start address of each sub-upgrade package, the offset of each sub-upgrade package, and the address of the sub-device of the distributed server.
A sixth aspect of the present application provides an upgrade package downloading apparatus, the apparatus comprising: the sending module is used for sending the information of the upgrade package downloading device to the distributed server; the receiving module is used for receiving a third downloading instruction sent by the package searching server, wherein the third downloading instruction comprises information required by upgrading of the upgrade package downloading device; the processing module is used for downloading sub-upgrade packages of the target upgrade packages of the upgrade package downloading device from a plurality of sub-devices of the distributed server according to the information required by the upgrade of the upgrade package downloading device; and combining the sub-upgrade packages into a target upgrade package.
In one possible design, the information required for the upgrade of the upgrade package downloading device includes the download address of the updated target upgrade package, the start address of each sub-upgrade package, the offset of each sub-upgrade package, and the address of the sub-device of the distributed server.
A seventh aspect of the present application provides an upgrade package downloading system, including: the system comprises a distributed server, a packet searching server, a downloading server and mobile equipment to be upgraded, wherein the distributed server consists of a plurality of sub-equipment;
the mobile equipment to be upgraded sends information of the mobile equipment to be upgraded to the distributed server; the distributed server sends a first acquisition request to the packet searching server, wherein the first acquisition request comprises information of the mobile equipment to be upgraded and information of the distributed server; the packet searching server determines the download address of the target upgrade packet of the mobile device to be upgraded according to the information of the mobile device to be upgraded; the method comprises the steps that a packet searching server establishes a configuration table of a target upgrade packet according to information of mobile equipment to be upgraded, information of a distributed server and a download address of the target upgrade packet, wherein the configuration table of the target upgrade packet is used for dynamically updating the download address of the target upgrade packet; the method comprises the steps that a packet searching server sends a first downloading instruction to a distributed server, wherein the first downloading instruction comprises a downloading address of a target upgrading packet of mobile equipment to be upgraded; the download address of the target upgrade package of the distributed server, and the sub upgrade packages of the target upgrade package are respectively downloaded to a plurality of sub devices of the distributed server from the download server; the distributed server sends a configuration table updating instruction to the packet searching server, wherein the configuration table updating instruction comprises a download address of a target upgrade packet in the distributed server; the searching server updates a configuration table of the target upgrading packet according to the downloading address of the target upgrading packet in the distributed server; the packet searching server sends a third downloading instruction to the mobile equipment to be upgraded, wherein the third downloading instruction comprises information required by upgrading of the mobile equipment to be upgraded, which is extracted from a configuration table of a target upgrading packet; the mobile equipment to be upgraded downloads a sub-upgrading packet of a target upgrading packet of the mobile equipment to be upgraded from a plurality of sub-equipment of the distributed server according to the information required by upgrading of the mobile equipment to be upgraded; the mobile device to be upgraded combines the sub-upgrade packages into a target upgrade package.
A seventh aspect of the present application provides a distributed server, comprising: one or more memories and one or more processors;
wherein the one or more storages store one or more programs;
the one or more processors, when executing the one or more programs, cause the distributed server to implement the method as in the first aspect.
An eighth aspect of the present application provides a packet search server, including: one or more memories and one or more processors;
wherein the one or more storages store one or more programs;
the one or more processors, when executing the one or more programs, cause the search server to implement the method as in the second aspect.
A ninth aspect of the present application provides a mobile device comprising: one or more memories and one or more processors;
wherein the one or more storages store one or more programs;
the one or more processors, when executing the one or more programs, cause the mobile device to implement the method as the third aspect.
A tenth aspect of the application provides a computer program product comprising computer instructions which, when executed by a processor, implement the method of the first aspect.
An eleventh aspect of the application provides a computer program product comprising computer instructions which, when executed by a processor, implement the method of the second aspect.
A twelfth aspect of the application provides a computer program product comprising computer instructions which, when executed by a processor, implement the method of the third aspect.
A thirteenth aspect of the present application provides a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the method steps of the first aspect described above.
A fourteenth aspect of the present application provides a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the method steps of the second aspect described above.
A fifteenth aspect of the present application provides a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the method steps of the third aspect described above.
According to the upgrade package downloading method and device provided by the embodiment of the application, the distributed server firstly receives the information of the mobile device to be upgraded, which is sent by the mobile device to be upgraded. And secondly, the distributed server sends a first acquisition request to the packet searching server, wherein the first acquisition request contains information of the mobile equipment to be upgraded. And thirdly, the distributed server downloads the sub-upgrading packages of the target upgrading packages from the downloading server to a plurality of sub-devices of the distributed server according to the downloading address of the target upgrading packages of the mobile device to be upgraded, which is sent by the package searching server. And finally, the distributed server respectively sends the sub-upgrade packages in the plurality of sub-devices of the distributed server to the mobile device to be upgraded. Compared with the prior art, when the mobile devices to be upgraded are more, the mobile devices to be upgraded can directly download the upgrade package from the distributed server, so that each mobile device to be upgraded is prevented from independently downloading the upgrade package from the download server, a large number of link resources are prevented from being occupied, and the download pressure of the download server is reduced.
Drawings
FIG. 1 is a schematic diagram of an upgrade package downloading system according to the prior art;
fig. 2 is a schematic diagram of an upgrade package downloading system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a mobile device according to an embodiment of the present application;
fig. 4 is a software structural block diagram of a mobile device according to an embodiment of the present application;
fig. 5 is a signaling interaction diagram of an upgrade package downloading method according to an embodiment of the present application;
FIGS. 6a-6b are schematic diagrams illustrating interfaces of a mobile device according to embodiments of the present application;
fig. 7 is a signaling schematic diagram of another upgrade package downloading method according to an embodiment of the present application;
fig. 8 is a signaling schematic diagram of another method for downloading an upgrade package according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an upgrade package downloading device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another upgrade package downloading device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another upgrade package downloading device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a distributed server according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a packet search server according to an embodiment of the present application;
Fig. 14 is a schematic structural diagram of a mobile device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a schematic diagram of an upgrade package downloading system in the prior art, as shown in fig. 1, where the existing upgrade package downloading system includes a mobile device 11, a network device 12, a package searching server 13, and a download server 14. The mobile device 11 interacts with a package search server 13 and a download server 14 through a network device 12. When the mobile device 11 needs to download the upgrade package, a download address acquisition request may be sent to the package search server 13 through the network device 12, and the package search server 13 may send the download address of the upgrade package to the mobile device 11 after receiving the download address acquisition request. Subsequently, the mobile device 11 transmits a download request to the download server 14 according to the download address of the upgrade package, and downloads the upgrade package from the download server 14.
However, with the increase of mobile devices, when multiple mobile devices download the upgrade packages of the same version at the same time, each mobile device occupies a separate link resource, which results in an excessive downloading pressure of the download server, and thus, the downloading pressure of the download server is excessive.
In order to solve the above problems, an embodiment of the present application provides a method and an apparatus for downloading an upgrade package, where a plurality of mobile devices form a distributed server, and the plurality of mobile devices in the distributed server download the upgrade package from a download server in parallel. When the terminal equipment to be upgraded needs to download the upgrade package, the upgrade package can be directly downloaded from a plurality of mobile equipment in the distributed server, so that each mobile equipment to be upgraded is prevented from occupying separate link resources, and the downloading pressure of the download server is further reduced.
The following embodiments show application scenarios of the upgrade package downloading method provided by the embodiments of the present application.
In the first application scenario, in areas with poor network devices such as mountainous areas, mobile phones of mountain users cannot conveniently download upgrade packages with large data volume due to the poor network devices. At this time, a fixed number of mobile phones can form a distributed server 'mobile phone cloud', the mobile phone cloud downloads the upgrade package, and mobile phones of other mountain users download the upgrade package from the mobile phone cloud, so that the traffic is saved.
In the second application scenario, in the areas needing strict confidentiality such as scientific research project groups and laboratories, a distributed server can be formed by a plurality of fixed mobile devices, and the mobile devices with authority can download upgrade packages from the distributed server, so that the safety management and control of the mobile devices are realized.
The following describes the architecture of the upgrade package downloading system provided by the embodiment of the present application.
Fig. 2 is a schematic diagram of an architecture of an upgrade package downloading system according to an embodiment of the present application, where, as shown in fig. 2, a mobile device 21, a mobile device 22, a mobile device 23, and so on form a distributed server. The distributed server acquires the download address of the upgrade package from the package searching server 25 through the network device 24, and downloads the upgrade package from the download server 26 according to the download address of the upgrade package. When the terminal device 27 and the terminal device 28 outside the distributed server need to download the upgrade package, the network device 204 may obtain the download address of the upgrade package in the distributed server from the package searching server 25, and download the upgrade package from the mobile device 21, the mobile device 22 and the mobile device 23 in the distributed server according to the download address of the upgrade package in the distributed server.
The mobile device in the distributed system and the mobile device to be upgraded according to the present application may include, but are not limited to: a mobile phone, a tablet computer, an electronic reader, a remote controller, a personal computer (personal computer, PC), a notebook computer, a personal digital assistant (personal digital assistant, PDA), a vehicle-mounted device, a wearable device, a smart watch, a smart bracelet, and the like.
The mobile device according to the present application will be specifically described below with reference to fig. 3 by taking a mobile phone as an example.
Fig. 3 is a schematic structural diagram of a mobile device according to an embodiment of the present application. As shown in fig. 3, the mobile device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc.
The controller may be a neural hub and command module of the mobile device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data.
The charge management module 140 is configured to receive a charge input from a charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110.
The wireless communication function of the mobile device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the mobile device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on a mobile device.
The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
The mobile device implements display functions through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel.
The mobile device may implement shooting functionality through an ISP, camera 193, video codec, GPU, display 194, application processor, and the like.
The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or video.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the mobile device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 executes various functional applications of the mobile device and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area.
The mobile device may implement audio functionality through an audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, and an application processor, among others. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. The earphone interface 170D is used to connect a wired earphone.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. The gyro sensor 180B may be used to determine a motion gesture of the mobile device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor. The mobile device may detect the opening and closing of the flip holster using the magnetic sensor 180D. The acceleration sensor 180E may detect the magnitude of acceleration of the mobile device in various directions (typically three axes). A distance sensor 180F for measuring a distance. The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense ambient light level. The fingerprint sensor 180H is used to collect a fingerprint. The temperature sensor 180J is for detecting temperature. The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The bone conduction sensor 180M may acquire a vibration signal.
The keys 190 include a power-on key, a volume key, etc. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card.
It will be appreciated that the illustrated construction of the present application does not constitute a particular limitation on the mobile device. In other embodiments, the mobile device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The software system for the mobile device is described below. The software system of the mobile device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The application takes an Android system with a layered architecture as an example, and illustrates a software structure of mobile equipment. The application is not limited to the type of the operating system of the electronic device. For example, an Android system, a hong Meng operating system (Harmony Operating System, hong Meng OS), and the like.
Fig. 4 is a software structural block diagram of a mobile device according to an embodiment of the present application. As shown in fig. 4, the layered architecture divides the software into several layers, each with a clear role and division of work. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications such as cameras, gallery, calendar, phone calls, map, navigation, WLAN, bluetooth, music, video, games, shopping, travel, instant messaging (e.g., short messages), smart home, device control, etc.
The intelligent home application can be used for controlling or managing home equipment with networking function. For example, home appliances may include electric lights, televisions, and air conditioners. For another example, the home appliances may also include a burglarproof door lock, a speaker, a floor sweeping robot, a socket, a body fat scale, a desk lamp, an air purifier, a refrigerator, a washing machine, a water heater, a microwave oven, an electric cooker, a curtain, a fan, a television, a set-top box, a door and window, and the like.
In addition, the application package may further include: a home screen (i.e., desktop), a negative screen, a control center, a notification center, a card application, a card service application, and the like.
The negative one screen, which may be referred to as "-1 screen", refers to a User Interface (UI) that slides the screen rightward on the main screen of the electronic device until it slides to the leftmost split screen. For example, the negative screen may be used to place shortcut service functions and notification messages, such as global search, shortcut entries (payment codes, weChat, etc.) for a page of an application, instant messaging and reminders (express information, expense information, commute road conditions, driving travel information, schedule information, etc.), and attention dynamics (football stand, basketball stand, stock information, etc.), etc. The control center is a drop-down message notification bar of the electronic device, i.e., a user interface displayed by the electronic device when a user performs a downward operation on the electronic device. The notification center is a pull-up message notification bar of the electronic device, i.e., a user interface displayed by the electronic device when a user performs an upward operation on the electronic device. The card application is referred to below and will not be described in detail herein. The card service application is used for providing card services to support UI display of the card, sharing among various application programs in the same device, sharing among cross devices and the like.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to the application. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the mobile device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The technical scheme shown in the application is described in detail by specific examples. It should be noted that the following embodiments may exist independently or may be combined with each other, and for the same or similar content, the description will not be repeated in different embodiments.
Fig. 5 is a signaling interaction diagram of an upgrade package downloading method according to an embodiment of the present application. The method of the present embodiment relates to a process how the mobile device to be upgraded downloads an upgrade package. As shown in fig. 5, the method of the present embodiment may include:
s201, the mobile device to be upgraded sends information of the mobile device to be upgraded to the distributed server, and the information of the mobile device to be upgraded is used for determining a download address of a target upgrade package of the mobile device to be upgraded.
The distributed server is composed of a plurality of mobile devices, and can comprise the same type of mobile devices or different types of mobile devices. By way of example, the distributed server may be a "handset cloud" consisting of a plurality of handsets.
It should be noted that, the embodiment of the present application does not limit how to form a distributed server from a plurality of mobile devices, and an exemplary mobile device may send a registration request to a packet search server, so that the packet search server registers the mobile device as a member of the distributed server.
In some embodiments, after the packet search server receives the registration request sent by the mobile device, the registration request may be checked using public key infrastructure (Public Key Infrastructure, PKI) to determine the legitimacy of the mobile devices in the distributed server.
It should be understood that the embodiment of the present application also does not limit how the mobile device to be upgraded sends the information of the mobile device to be upgraded to the distributed server. In some embodiments, the mobile device may send information of the mobile device to be upgraded to the distributed server through the distributed download application. For example, any mobile device in the distributed server may generate and display a two-dimensional code containing the distributed server information. When the mobile equipment to be upgraded needs to send the information of the mobile equipment to be upgraded to the mobile equipment in the distributed server, the two-dimensional code displayed by any mobile equipment in the distributed server can be scanned, and the information of the distributed server can be obtained. The mobile device to be upgraded may then send the information of the mobile device to be upgraded and the information of the distributed server to the application server, so that the application server sends the information of the mobile device to be upgraded to the mobile devices in the distributed server according to the information of the distributed server. In other embodiments, the mobile device may also connect with the mobile device bluetooth in the distributed server, so as to send the information of the mobile device to be upgraded to the mobile device in the distributed server through bluetooth communication.
It should be noted that, the mobile device to be upgraded may send the information of the mobile device to be upgraded to all mobile devices in the distributed server, or may send the information of the mobile device to be upgraded to some mobile devices in the distributed server, which is not limited in the embodiment of the present application.
The information of the mobile device to be upgraded may also be referred to as packet searching information, and the information of the mobile device to be upgraded may include a device identifier of the mobile device to be upgraded, a current version number of the mobile device to be upgraded, a country of a provider of the mobile device to be upgraded, and the like.
Fig. 6a-6b are schematic diagrams illustrating interfaces of a mobile device according to an embodiment of the present application. For example, when the user needs to perform upgrade detection on the mobile device to be upgraded, a first interface as shown in fig. 6a may be opened, where the current version of the mobile device to be upgraded is displayed on the first interface. If the user clicks a direct check update button on a first interface of the mobile device to be upgraded, the mobile device to be upgraded directly sends information of the mobile device to be upgraded to a package searching server so as to acquire a download address of an upgrade package sent by the package searching server. If the user clicks the "mobile phone cloud check update" button on the first interface of the mobile device to be upgraded, the mobile device to be upgraded displays a second interface as shown in fig. 6b, where the second interface includes a code scanning frame. After a user uses the mobile device to be upgraded to scan the two-dimensional code of the mobile device in the distributed server to obtain the information of the distributed server, the information of the mobile device to be upgraded and the information of the distributed server can be sent to the application server, and the application server sends the searching packet information to the distributed server according to the information of the distributed server.
S202, the distributed server sends a first acquisition request to the package searching server, wherein the first acquisition request is used for requesting to acquire a download address of a target upgrade package, and the first acquisition request contains information of mobile equipment to be upgraded.
In some embodiments, the distributed server may send the first acquisition request to the packet search server immediately after receiving the information of the mobile device to be upgraded sent by the mobile device to be upgraded. In other embodiments, after the mobile device to be upgraded sends the information of the mobile device to be upgraded to the distributed server, when version update is required, an upgrade instruction is further sent to the distributed server, and the distributed server sends the first acquisition request to the packet search server after receiving the upgrade instruction.
It should be understood that, the distributed server may send the first acquisition request to the packet searching server, which may be sent to the packet searching server for one mobile device in the distributed server, or may send the first acquisition request to the packet searching server for a plurality of mobile devices in the distributed server, which is not limited in this embodiment of the present application.
The embodiment of the application also does not limit how the distributed server sends the first acquisition request to the packet searching server, for example, the first acquisition request can be transmitted through a hypertext transfer security protocol (Hyper Text Transfer Protocol over SecureSocket Layer, HTTPS). Since the HTTPS performs transmission encryption and identity authentication when transmitting data, the security of the first acquisition request in the transmission process can be ensured by transmitting the first acquisition request through the HTTPS.
It should be noted that, the information of the distributed server in the first acquisition request may only include the information of the mobile device that sends the first acquisition request, or may include the information of all the mobile devices in the distributed server, which is not limited in the embodiment of the present application.
In an alternative embodiment, the first acquisition request further includes information of the distributed server. The information of the distributed server and the information of the mobile device to be upgraded are also used for establishing a configuration table of a target upgrade package in the package searching server, and the configuration table of the target upgrade package is used for dynamically updating the download address of the target upgrade package.
S203, the packet searching server determines the download address of the target upgrade packet of the mobile device to be upgraded according to the information of the mobile device to be upgraded.
It should be understood that, in the embodiment of the present application, how the packet search server determines the download address of the target upgrade packet of the mobile device to be upgraded is not limited, and may be specifically set according to practical situations.
In some embodiments, the packet search server may pre-store the download addresses of the plurality of upgrade packets and a mapping relationship table between the download addresses of the upgrade packets and the mobile device. When the packet searching server receives the information of the mobile device to be upgraded, the download address of the upgrade packet corresponding to the mobile device to be upgraded can be determined by searching in a mapping relation table of the download address of the upgrade packet and the mobile device.
In other embodiments, the packet search server may send an address query request to the download server after receiving the information of the mobile device to be upgraded, so as to query the upgrade packet of the mobile device to be upgraded, and the download address of the upgrade packet in the download server.
S204, the packet searching server establishes a configuration table of the target upgrade packet according to the information of the mobile device to be upgraded, the information of the distributed server and the download address of the target upgrade packet, wherein the information of the distributed server and the download address of the target upgrade packet.
The target upgrade package may include an upgrade package of an operating system of the mobile device to be upgraded, and may also include an upgrade package of an application in the mobile device to be upgraded.
The embodiment of the application does not limit the configuration table of how to generate the target upgrade package, and in some embodiments, the package searching server can determine the target upgrade package of the mobile device to be upgraded according to the current version number of the device to be upgraded in the information of the mobile device to be upgraded. And then, the searching server saves and binds the information of the mobile device to be upgraded in the information of the mobile device to be upgraded and the information of the mobile device in the distributed server, so as to generate a configuration table of the target upgrading package. Preferably, the download address of the target upgrade package may be added to the configuration table of the target upgrade package.
Exemplary, table 1 is a configuration table of a target upgrade package provided in an embodiment of the present application. As shown in table 1, the configuration table includes an identification number (Identity Document, ID) of the mobile phone a in the "mobile phone cloud", an internet protocol (Internet Protocol, IP) address, a device name of the mobile phone L1 to be upgraded, an ID of the mobile phone L1 to be upgraded, a vendor country (vendorcounty) of the mobile device L1 to be upgraded, a protection wall (FirmWare) of the mobile phone L1 to be upgraded, a start address (start) of the target upgrade package, and an offset (offset) of the target upgrade package. The information of the mobile phone A in the mobile phone cloud and the information of the mobile phone L1 to be upgraded are mutually bound.
TABLE 1
In some embodiments, if the first obtaining request includes information of all mobile devices in the distributed server, the packet search server may directly establish a binding relationship between information of all mobile devices in the distributed server and information of the device to be upgraded, respectively. In other embodiments, if the first acquisition request includes only the information of the mobile device that sends the first acquisition request, the mobile device in the distributed server that provides the download service for the mobile device to be upgraded may sequentially send the first acquisition request to the packet search server, so that the packet search server sequentially adds the information of the mobile device in the distributed server to the configuration table of the target upgrade packet.
It should be noted that, if the first obtaining request includes information of a plurality of mobile devices to be upgraded for the target upgrade package of the mobile devices to be generated, or after generating the configuration table of the target upgrade package, the package searching server receives information of other mobile devices to be upgraded for the target upgrade package of the mobile devices to be upgraded, the package searching server may update the configuration table of the target upgrade package, so that the configuration table of the target upgrade package includes information of the plurality of mobile devices to be upgraded, and the information of the plurality of mobile devices to be upgraded is respectively bound with information of the mobile devices in the distributed server. Exemplary, table 2 is a configuration table of another target upgrade package provided in an embodiment of the present application. As shown in table 2, the configuration table of the target upgrade package includes information of the mobile device L1 to be upgraded and information of the mobile device L2 to be upgraded.
TABLE 2
It should be noted that, in the embodiment of the present application, the configuration table of the target upgrade package is dynamically updated. For example, if the IP address of the mobile device in the distributed server is changed, the mobile device may send a refresh request to the packet search server to refresh the IP address of the mobile device in the target upgrade packet.
S205, the package searching server sends a first downloading instruction to the distributed server, wherein the first downloading instruction comprises a downloading address of a target upgrading package.
The download address of the target upgrade package is the download address of the target upgrade package in the download server.
In some embodiments, the packet search server may send the first download instruction to a plurality of mobile devices in the distributed server, or may send the first download instruction to one mobile device in the distributed server, and then the mobile device forwards the first download instruction to other mobile devices in the distributed server.
In some embodiments, before sending the first download instruction to the distributed server, the packet searching server may further determine a size of the target upgrade packet, and if the target upgrade packet is smaller than the threshold, the packet searching server may send a second download instruction to the device to be upgraded, and the device to be upgraded downloads the upgrade packet directly from the download server.
For the upgrade package smaller than 3G, the package searching server directly sends a second downloading instruction to the device to be upgraded, the device to be upgraded directly downloads the upgrade package from the downloading server, and for the upgrade package larger than 3G, the package searching server sends a first downloading instruction to the distributed server, and the distributed server downloads the upgrade package from the downloading server.
It should be noted that, if the first mobile device in the packet searching server fails to download, the first mobile device may send a re-download request to the packet searching server to query the download address of the target upgrade packet. If the download address is not changed, the packet searching server sends the original download address to the first mobile device, and if the download address is changed, the packet searching server sends the changed download address to the first mobile device. Because the configuration table of the target upgrade package contains the initial position and the offset of the sub upgrade package downloaded by each mobile device in the distributed server, after the first mobile device fails to download, the download server can send information to the package search server to update the initial position and the offset of the sub upgrade package, thereby realizing breakpoint continuous transmission.
S206, the distributed server sends a second downloading request to the downloading server according to the downloading address of the target upgrading packet.
The second downloading request comprises the identification and the address of the sub-equipment required to be used by the distributed server.
S207, the download server sends the sub-upgrade packages of the target upgrade packages to the sub-devices of the distributed server respectively.
In the embodiment of the application, since the distributed server comprises a plurality of mobile devices, the distributed server can divide the target upgrade package into a plurality of sub upgrade packages according to the number of the mobile devices in the distributed server after receiving the first download instruction sent by the package searching server. Subsequently, the distributed server sends a second downloading request to the downloading server according to the downloading address of the target upgrading packet, so that each mobile device in the distributed server downloads one sub-upgrading packet respectively.
It should be noted that, downloading a sub-upgrade package by each mobile device in the distributed server may be accomplished by setting a start address and an offset.
For example, if the distributed server includes the mobile phone a and the mobile phone B, the target upgrade package is 6G, the target upgrade package may be divided into a first sub-upgrade package and a second sub-upgrade package, where the first sub-upgrade package and the second sub-upgrade package are both 3G. Then, the mobile phone a sets the start address to 0G, sets the offset to 3G, and downloads the first sub-upgrade package from the download server through the download address. The mobile phone A sets the initial address as 3G, sets the offset as 3G, and downloads the second sub-upgrade package from the download server through the download address.
In the embodiment of the application, the distributed server downloads the target upgrade package in a sectional downloading mode, and each mobile device in the distributed server only downloads one sub upgrade package in the target upgrade package, so that the downloading speed of the upgrade package from the downloading server is increased.
S208, the distributed server sends a configuration table update instruction to the package searching server, wherein the configuration table update instruction comprises a download address of the target upgrade package in the distributed server.
It should be appreciated that the download address of the target upgrade package in the distributed server includes the save path of the child upgrade package of the target upgrade package in the mobile device in the distributed server.
For example, if the distributed server includes a mobile phone a and a mobile phone B, the mobile phone a downloads the first sub-upgrade package of the target upgrade package to a first storage path "/data/update/other/P1" of the mobile phone a, and the mobile phone B downloads the first sub-upgrade package of the target upgrade package to a second storage path "/data/update/other/P1" of the mobile phone B, then the configuration table update instruction sent by the distributed server to the package search server may include the first storage path of the mobile phone a and the second storage path of the mobile phone B.
S209, the searching server updates a configuration table of the target upgrading packet according to the downloading address of the target upgrading packet in the distributed server.
The embodiment of the application is not limited to how to update the configuration table of the target upgrade package, and in some embodiments, the package searching server may add the download address of the target upgrade package in the distributed server in the configuration update table of the target upgrade package.
It should be appreciated that, since different sub-upgrade packages of the target upgrade package are stored in different mobile devices in the distributed server, the package search server may add a storage path of the sub-upgrade package in the mobile device in the distributed server to a location corresponding to the mobile device in the distributed server.
Exemplary, table 3 is a configuration table of still another target upgrade package provided in an embodiment of the present application. As shown in table 3, a download address of the target upgrade package in the distributed server is added to the information of the mobile phone L1 to be upgraded at a position corresponding to the mobile phone in the mobile phone cloud, so as to realize that the mobile phone L1 to be upgraded downloads the target upgrade package from the mobile phone cloud.
TABLE 3 Table 3
It should be understood that the total number of mobile phones of the mobile device L1 to be upgraded is registered in the configuration table of the target upgrade package, which can be understood as the number of mobile phones serving as cloud servers for the mobile device L1 to be upgraded in the mobile phone cloud. Since the mobile device to be upgraded L1 and the mobile device to be upgraded L2 download the same upgrade package, the number of registered handsets of the mobile device to be upgraded L1 and the mobile device to be upgraded L2 is the same.
It should be noted that, if the mobile phone L2 to be upgraded subsequently downloads the same target upgrade package, the download address of the target upgrade package in the distributed server may be copied to the information of the mobile phone L2 to be upgraded, so as to realize that the mobile phone L2 to be upgraded downloads the target upgrade package from the mobile phone cloud.
The start address of the sub-upgrade package and the offset of the sub-upgrade package are described below.
It should be appreciated that the offset of the child upgrade package may be determined by the ratio of the size of the target upgrade package to the number N of child devices used in the distributed server to download the target upgrade package. In some embodiments, if the target upgrade package is XG and the number of sub-devices used to download the target upgrade package is N, the Offset of the sub-upgrade package is Offset XG/N. For example, if the target upgrade package is 6G and the number of child devices is 2, the Offset of the child upgrade package is Offset 3G.
It should be appreciated that the initial download address of the child upgrade package may be determined by the size of the target upgrade package, the number N of child devices used in the distributed server to download the target upgrade package, and the serial numbers of the child devices. In some embodiments, if the target upgrade package is XG and the number of sub-devices used for downloading the target upgrade package is N, the Start address Start of the sub-upgrade package required to be downloaded by the mth sub-device is 0+6g/N (M-1). For example, if the target upgrade package is 6G and the number of the sub-devices is 2, the initial download address of the sub-upgrade package corresponding to the first sub-device is 0, and the initial download address of the sub-upgrade package corresponding to the second sub-device is 3G.
S210, the package searching server sends a third downloading instruction to the mobile device to be upgraded, wherein the third downloading instruction comprises information required by upgrading the mobile device to be upgraded, which is extracted from a configuration table of the target upgrading package.
In some embodiments, after updating the configuration table of the target upgrade package, the package searching server may extract information required for upgrading the mobile device to be upgraded from the updated configuration table of the target upgrade package, and send a third download instruction to the mobile device to be upgraded, where the third download instruction includes the information required for upgrading the mobile device to be upgraded.
The information required for upgrading the mobile device to be upgraded can include an IP address of the mobile device in the distributed system, a storage path of the sub-upgrade package in the mobile device in the distributed server, a start address of each sub-upgrade package, and an offset of each sub-upgrade package.
In some optional embodiments, the configuration table of the target upgrade package further includes authority information of the mobile device to be upgraded, before the package searching server sends the third download instruction to the mobile device to be upgraded, the package searching server may verify the authority information of the mobile device to be upgraded, and if the mobile device to be upgraded has the authority of the target upgrade package, the package searching server sends the third download instruction to the mobile device to be upgraded. If the mobile equipment to be upgraded does not have the authority of the target upgrade package, the package searching server sends prompt information to the mobile equipment to be upgraded, wherein the prompt information is used for prompting a user to authorize the mobile equipment to be upgraded.
S211, the mobile device to be upgraded sends a first downloading request to the distributed server.
In the embodiment of the application, after receiving the third download instruction, the mobile device to be upgraded can acquire the information required by the upgrade of the mobile device to be upgraded in the third download instruction, send the first download request to the distributed server according to the information required by the upgrade of the mobile device to be upgraded, and sequentially download the sub-upgrade packages of the target upgrade packages from the mobile device of the distributed server.
S212, the distributed server sends a target upgrade package to the mobile equipment to be upgraded.
In the embodiment of the application, after receiving the first downloading request, the distributed server can send the sub-upgrade packages to the mobile equipment to be upgraded respectively by the sub-equipment of the distributed server. Then, after downloading the sub-upgrade packages of all the target upgrade packages is completed, the mobile device to be upgraded may combine the sub-upgrade packages into the target upgrade package.
For example, if the distributed server includes a mobile phone a and a mobile phone B, the mobile device L1 to be upgraded downloads the first sub-upgrade package according to the IP address of the mobile phone a and the first sub-upgrade package in the storage path of the mobile phone a, and the mobile device L1 to be upgraded downloads the second sub-upgrade package according to the IP address of the mobile phone B and the second sub-upgrade package in the storage path of the mobile phone B. Subsequently, the mobile device L1 to be upgraded determines a combination manner of the first sub-upgrade package and the second sub-upgrade package according to the starting position of the first sub-upgrade package, the first sub-upgrade package offset, the starting position of the second sub-upgrade package and the second sub-upgrade package offset, and combines the first sub-upgrade package and the second sub-upgrade package into the target upgrade package according to the combination manner.
In some embodiments, after combining the sub-upgrade package into the target upgrade package, the mobile device to be upgraded may also check the integrity of the target upgrade package. The embodiment of the application does not limit the way of integrity verification, and can be used for verification by a key and hash value way by way of example.
In the application, the mobile device to be upgraded and the sub-devices of the distributed server are both positioned in the intranet, and the mobile device to be upgraded downloads the upgrade package from the distributed server, so that the download time can be greatly reduced because the network speed of the intranet is generally due to the network speed of the external network. Meanwhile, aiming at the equipment to be upgraded in the same intranet, repeated downloading of the upgrade package to the download server can be avoided, bandwidth waste can be avoided, and downloading traffic is saved.
According to the upgrade package downloading method provided by the embodiment of the application, the distributed server firstly receives the information of the mobile device to be upgraded, which is sent by the mobile device to be upgraded, and the information of the mobile device to be upgraded is used for determining the downloading address of the target upgrade package of the mobile device to be upgraded. Secondly, the distributed server sends a first acquisition request to the package searching server, wherein the first acquisition request is used for requesting to acquire a download address of a target upgrade package, and the first acquisition request contains information of mobile equipment to be upgraded. And thirdly, the distributed server receives a first downloading instruction sent by the packet searching server, wherein the first downloading instruction comprises the downloading address of the target upgrading packet of the mobile equipment to be upgraded. And finally, the distributed server downloads the sub-upgrade packages of the target upgrade packages from the download server to a plurality of sub-devices of the distributed server according to the download address of the target upgrade packages, and sends the sub-upgrade packages of the plurality of sub-devices of the distributed server to the mobile device to be upgraded. Compared with the prior art, when the mobile devices to be upgraded are more, the mobile devices to be upgraded can directly download the upgrade package from the distributed server, so that each mobile device to be upgraded is prevented from independently downloading the upgrade package from the download server, a large number of link resources are prevented from being occupied, and the download pressure of the download server is reduced.
Based on the foregoing description, fig. 7 is a signaling schematic diagram of another upgrade package downloading method according to an embodiment of the present application. Compared with the embodiment, the method and the device can judge the size of the target upgrade package before the target upgrade package is downloaded by the distributed server, and can be directly downloaded from the download server by the mobile device to be upgraded for the smaller target upgrade package. Referring to fig. 7, the network allocation method of the present application may include:
s301, the mobile device to be upgraded sends information of the mobile device to be upgraded to the sub-devices of the distributed server.
S302, the distributed server sends a first acquisition request to the packet searching server, wherein the first acquisition request contains information of the mobile equipment to be upgraded and information of the distributed server.
S303, the searching server determines a target upgrading packet according to the information of the mobile device to be upgraded.
S304, the searching server establishes a configuration table of the target upgrading packet.
S305, the searching server determines whether the target upgrade package is larger than a threshold value.
If yes, step S307 is executed, and if no, step S306 is executed.
In the embodiment of the application, before the first download instruction is sent to the distributed server, the packet searching server can also judge the size of the target upgrade packet, if the target upgrade packet is smaller than the threshold value, the packet searching server can send a second download instruction to the equipment to be upgraded, and the equipment to be upgraded downloads the upgrade packet directly from the download server.
The threshold value is not limited in the embodiment of the application, and can be set according to the actual network condition.
For the upgrade package smaller than 3G, the package searching server directly sends a second downloading instruction to the device to be upgraded, the device to be upgraded directly downloads the upgrade package from the downloading server, and for the upgrade package larger than 3G, the package searching server sends a first downloading instruction to the distributed server, and the distributed server downloads the upgrade package from the downloading server.
By the method, for the smaller upgrade package, the mobile equipment to be upgraded can be directly indicated to be downloaded from the download server, so that the problem that the distributed server needs to download too many target upgrade packages is avoided, and the downloading speed of the target upgrade package is improved.
S306, the package searching server sends a second downloading instruction to the mobile device to be upgraded, wherein the second downloading instruction comprises a downloading address of the target upgrading package.
S307, the package searching server sends a first downloading instruction to the distributed server, wherein the first downloading instruction comprises a downloading address of the target upgrading package.
And S308, the distributed server sends a second downloading request to the downloading server according to the downloading address of the target upgrading packet.
S309, the download server sends the target upgrade package to the distributed server.
S310, the distributed server sends a configuration table update instruction to the package searching server, wherein the configuration table update instruction comprises a download address of the target upgrade package in the distributed server.
S311, the searching server updates the configuration table of the target upgrading packet according to the downloading address of the target upgrading packet in the distributed server.
S312, the package searching server checks whether the mobile device to be upgraded has the downloading authority of the target upgrade package.
If yes, step S314 is executed, and if no, step S313 is executed.
In the embodiment of the application, the package searching server can also manage the authority of the mobile equipment to be upgraded, and only the mobile equipment to be upgraded with the authority can download the target upgrade package through the distributed server. By the method, whether the mobile equipment to be upgraded is upgraded or not can be effectively managed, and the upgrading operation of unauthorized equipment is avoided, so that the management and control of the system version of the mobile equipment in a specific area are realized.
S313, the package searching server sends prompt information to the server to be upgraded, wherein the prompt information is used for prompting a user to authorize the mobile device to be upgraded.
S314, the package searching server sends a third downloading instruction to the mobile device to be upgraded according to the updated configuration table of the target upgrade package.
S315, the mobile device to be upgraded sends a first downloading request to the distributed server.
S316, the distributed server sends a target upgrade package to the mobile equipment to be upgraded.
S317, the mobile device to be upgraded uses the target upgrade package to upgrade the operating system of the mobile device to be upgraded.
The technical terms, effects, features, and alternative embodiments of S301-S317 may be understood with reference to S201-S211 shown in fig. 5, and will not be described again here for repeated contents.
Based on the foregoing description, fig. 8 is a signaling schematic diagram of still another upgrade package downloading method according to an embodiment of the present application. Compared with the embodiment, the method and the device for updating the target upgrade package do not generate the configuration table, but directly send the target upgrade package to the mobile device to be updated after the target upgrade package is downloaded by the distributed server. Referring to fig. 8, the network allocation method of the present application may include:
s401, the mobile device to be upgraded sends information of the mobile device to be upgraded to the sub-devices of the distributed server.
S402, the distributed server sends information of the mobile device to be upgraded to the packet searching server.
S403, the searching server determines a target upgrading packet according to the information of the mobile device to be upgraded.
S404, the package searching server sends a first downloading instruction to the mobile device to be upgraded, wherein the first downloading instruction comprises a downloading address of the target upgrading package.
S405, the distributed server sends a second downloading request to the downloading server according to the downloading address of the target upgrading packet.
S406, the download server sends a target upgrade package to the distributed server.
S407, the distributed server sends a target upgrade package to the mobile equipment to be upgraded.
The technical terms, effects, features, and alternative embodiments of S401-S407 may be understood with reference to S201-S211 shown in fig. 5, and will not be further described herein for repeated matters.
According to the method for downloading the upgrade package, the package searching server sends the download address of the target upgrade package to the distributed server. And then, after the distributed server downloads the target upgrade package, the target upgrade package is sent to the mobile equipment to be upgraded. The distributed server can download in parallel, so that the downloading time of the target upgrade package can be greatly reduced. Meanwhile, the distributed server and the mobile device to be upgraded usually belong to intranet communication, and the transmission speed of the distributed server and the mobile device to be upgraded is often larger than that of extranet communication. Therefore, by the method, the downloading speed of the target upgrade package can be greatly improved, and the downloading time of the target upgrade package is shortened.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
Fig. 9 is a schematic structural diagram of an upgrade package downloading device according to an embodiment of the present application. The upgrade package downloading device can be realized by software, hardware or a combination of the software and the hardware, and can be any one of the distributed server or any subset of the distributed server so as to execute the upgrade package downloading method of the distributed server side. As shown in fig. 9, the upgrade package downloading apparatus 500 includes: a receiving module 501, a processing module 502 and a transmitting module 503.
The receiving module 501 is configured to receive information of a mobile device to be upgraded sent by the mobile device to be upgraded.
A sending module 503, configured to send a first acquisition request to the packet search server, where the first acquisition request includes information of the mobile device to be upgraded.
The processing module 502 is further configured to download sub-upgrade packages of the target upgrade package from the download server to a plurality of sub-devices of the distributed server according to the download address of the target upgrade package of the mobile device to be upgraded, which is sent by the package search server.
The sending module 503 is further configured to send sub-upgrade packages in the plurality of sub-devices of the upgrade package downloading apparatus to mobile devices to be upgraded, respectively.
In one possible design, the first obtaining request further includes information of an upgrade package downloading device of the upgrade package downloading device and information of the mobile device to be upgraded, and the information is further used for establishing a configuration table of the target upgrade package in the package searching server, where the configuration table of the target upgrade package is used for dynamically updating a downloading address of the target upgrade package.
In one possible design, the sending module 503 is further configured to send a configuration table update indication to the packet search server, where the configuration table update indication includes a download address of the target upgrade packet in the upgrade packet downloading device; and the processing module is also used for updating the configuration table of the target upgrade package according to the download address of the target upgrade package in the upgrade package download device.
In one possible design, the download address of the target upgrade package in the upgrade package download device includes a save path of the child upgrade package of the target upgrade package in the child equipment of the upgrade package download device.
In one possible design, the receiving module 501 is further configured to receive a first download request sent by a mobile device to be upgraded, where the first download request is used to request downloading sub-upgrade packages of the target upgrade package from a plurality of sub-devices of the upgrade package downloading apparatus, respectively.
The upgrade package downloading device provided by the embodiment of the application can execute the actions of the upgrade package downloading method of the distributed server side in the method embodiment, and the implementation principle and the technical effect are similar, and are not repeated here.
Fig. 10 is a schematic structural diagram of another upgrade package downloading device according to an embodiment of the present application. The upgrade package downloading device can be realized by software, hardware or a combination of the software and the hardware, and can be the package searching server so as to execute the upgrade package downloading method of the package searching server side. As shown in fig. 10, the upgrade package downloading apparatus 600 includes: a receiving module 601, a processing module 602 and a transmitting module 603.
The receiving module 601 is configured to receive a first acquisition request sent by the distributed server, where the first acquisition request includes information of a mobile device to be upgraded.
The processing module 602 is configured to determine, according to information of the mobile device to be upgraded, a download address of a target upgrade package of the mobile device to be upgraded.
The sending module 603 is configured to send a first download instruction to the distributed server, where the first download instruction includes a download address of a target upgrade package of the mobile device to be upgraded.
In one possible design, the first acquisition request further includes information of the distributed server; the processing module 602 is further configured to establish a configuration table of the target upgrade package according to the information of the mobile device to be upgraded, the information of the distributed server, and the download address of the target upgrade package, where the configuration table of the target upgrade package is used to dynamically update the download address of the target upgrade package.
In one possible design, the receiving module 601 is further configured to receive a configuration table update indication sent by the distributed server, where the configuration table update indication includes a download address of the target upgrade package in the distributed server.
The processing module 602 is further configured to update a configuration table of the target upgrade package according to a download address of the target upgrade package in the distributed server.
In one possible design, the download address of the target upgrade package in the distributed server includes a save path of the child upgrade package of the target upgrade package in the child device of the distributed server.
In one possible design, the sending module 603 is further configured to send a third download instruction to the mobile device to be upgraded, where the third download instruction includes information required for upgrading the mobile device to be upgraded, which is extracted from the configuration table of the target upgrade package.
In one possible design, the information required for upgrading the mobile device to be upgraded includes the updated download address of the target upgrade package, the start address of each sub-upgrade package, the offset of each sub-upgrade package, and the address of the sub-device of the distributed server.
The upgrade package downloading device provided by the embodiment of the application can execute the action of the upgrade package downloading method at the package searching server side in the method embodiment, and the implementation principle and the technical effect are similar, and are not repeated here.
Fig. 11 is a schematic structural diagram of another upgrade package downloading device according to an embodiment of the present application. The upgrade package downloading device can be realized by software, hardware or a combination of the software and the hardware, and can be the mobile equipment to be upgraded so as to execute the upgrade package downloading method of the mobile equipment side to be upgraded. As shown in fig. 11, the upgrade package downloading apparatus 700 includes: a receiving module 701, a processing module 702 and a transmitting module 703.
And a sending module 703, configured to send the information of the upgrade package downloading device to the distributed server.
The receiving module 701 is configured to receive a third download instruction sent by the packet search server, where the third download instruction includes information required for upgrading of the upgrade packet downloading device.
A processing module 702, configured to download a sub-upgrade package of a target upgrade package of the upgrade package downloading device from a plurality of sub-devices of the distributed server according to information required for upgrade of the upgrade package downloading device; and combining the sub-upgrade packages into a target upgrade package.
In one possible design, the information required for the upgrade of the upgrade package downloading device includes the download address of the updated target upgrade package, the start address of each sub-upgrade package, the offset of each sub-upgrade package, and the address of the sub-device of the distributed server.
The upgrade package downloading device provided by the embodiment of the application can execute the action of the upgrade package downloading method of the mobile equipment side to be upgraded in the method embodiment, and the implementation principle and the technical effect are similar, and are not repeated here.
Fig. 12 is a schematic structural diagram of a distributed server according to an embodiment of the present application. As shown in fig. 12, the distributed server may include: a processor 801 (e.g., CPU), a memory 802, a transceiver 803; the transceiver 803 is coupled to the processor 801, and the processor 801 controls the transceiving actions of the transceiver 803; the memory 802 may include a random-access memory (RAM) and may also include a non-volatile memory (NVM), such as at least two disk memories, in which various instructions may be stored in the memory 802 for performing various processing functions and implementing method steps of the present application. In one embodiment, the distributed server according to the present application may further include: a power supply 804, a communication bus 805, and a communication port 806. The transceiver 803 may be integrated into a transceiver of the distributed server or may be a separate transceiver antenna on the distributed server. Communication bus 805 is used to enable communication connections between the elements. The communication ports 806 are used to enable connection communications between the distributed server and other peripheral devices.
In the embodiment of the present application, the memory 802 is configured to store computer executable program codes, where the program codes include instructions; when the processor 801 executes the instructions, the instructions cause the processor 801 of the distributed server to execute the processing action on the distributed server side in the above method embodiment, and cause the transceiver 803 to execute the receiving and sending action on the distributed server side in the above method embodiment, so that the implementation principle and technical effects are similar, and are not repeated herein.
Fig. 13 is a schematic structural diagram of a packet search server according to an embodiment of the present application. As shown in fig. 13, the packet search server may include: a processor 901 (e.g., CPU), a memory 902, a transceiver 903; the transceiver 903 is coupled to the processor 901, and the processor 901 controls the transceiver 903 to perform transceiving actions; the memory 902 may include a random-access memory (RAM) and may also include a non-volatile memory (NVM), such as at least two magnetic disk memories, in which various instructions may be stored in the memory 902 for performing various processing functions and implementing method steps on the packet server side of the present application. In one embodiment, the packet searching server according to the present application may further include: a power supply 904, a communication bus 905, and a communication port 906. The transceiver 903 may be integrated into a transceiver of the packet search server, or may be a separate transceiver antenna on the packet search server. The communication bus 905 is used to enable communication connections between the elements. The communication port 906 is used to implement connection communication between the packet search server and other peripheral devices.
In the embodiment of the present application, the memory 902 is configured to store computer executable program codes, where the program codes include instructions; when the processor 901 executes the instruction, the instruction causes the processor 901 of the packet searching server to execute the processing action on the packet searching server side in the above method embodiment, and causes the transceiver 903 to execute the receiving and transmitting action on the packet searching server side in the above method embodiment, so that the implementation principle and technical effects are similar, and are not repeated herein.
Fig. 14 is a schematic structural diagram of a mobile device according to an embodiment of the present application. As shown in fig. 14, the mobile device to be upgraded may include: a processor 1001 (e.g., CPU), a memory 1002, a transceiver 1003; the transceiver 1003 is coupled to the processor 1001, and the processor 1001 controls the transceiving operation of the transceiver 1003; the memory 1002 may include a random-access memory (RAM) and may also include a non-volatile memory (NVM), such as at least two magnetic disk memories, in which various instructions may be stored in the memory 1002 for performing various processing functions and implementing the method steps of the present application on the mobile device side to be upgraded. In one embodiment, the mobile device to be upgraded according to the present application may further include: a power supply 1004, a communication bus 1005, and a communication port 1006. The transceiver 1003 may be integrated into the transceiver of the mobile device to be upgraded or may be a separate transceiver antenna on the mobile device to be upgraded. A communication bus 1005 is used to enable communication connections between the elements. The communication port 1006 is used for implementing connection communication between the mobile device to be upgraded and other peripheral devices.
In the embodiment of the present application, the memory 1002 is configured to store computer executable program codes, where the program codes include instructions; when the processor 1001 executes the instruction, the instruction causes the processor 1001 of the mobile device to be upgraded to execute the processing action on the mobile device side to be upgraded in the above method embodiment, and causes the transceiver 1003 to execute the receiving and transmitting action on the mobile device side to be upgraded in the above method embodiment, so that its implementation principle and technical effects are similar, and will not be repeated here.
The embodiment of the application also provides a system for downloading the upgrade package, which comprises the following steps: the system comprises a distributed server, a packet searching server, a downloading server and mobile equipment to be upgraded, wherein the distributed server consists of a plurality of sub-equipment;
the mobile equipment to be upgraded sends information of the mobile equipment to be upgraded to the distributed server; the distributed server sends a first acquisition request to the packet searching server, wherein the first acquisition request comprises information of the mobile equipment to be upgraded and information of the distributed server; the packet searching server determines the download address of the target upgrade packet of the mobile device to be upgraded according to the information of the mobile device to be upgraded; the method comprises the steps that a packet searching server establishes a configuration table of a target upgrade packet according to information of mobile equipment to be upgraded, information of a distributed server and a download address of the target upgrade packet, wherein the configuration table of the target upgrade packet is used for dynamically updating the download address of the target upgrade packet; the method comprises the steps that a packet searching server sends a first downloading instruction to a distributed server, wherein the first downloading instruction comprises a downloading address of a target upgrading packet of mobile equipment to be upgraded; the download address of the target upgrade package of the distributed server, and the sub upgrade packages of the target upgrade package are respectively downloaded to a plurality of sub devices of the distributed server from the download server; the distributed server sends a configuration table updating instruction to the packet searching server, wherein the configuration table updating instruction comprises a download address of a target upgrade packet in the distributed server; the searching server updates a configuration table of the target upgrading packet according to the downloading address of the target upgrading packet in the distributed server; the packet searching server sends a third downloading instruction to the mobile equipment to be upgraded, wherein the third downloading instruction comprises information required by upgrading of the mobile equipment to be upgraded, which is extracted from a configuration table of a target upgrading packet; the mobile equipment to be upgraded downloads a sub-upgrading packet of a target upgrading packet of the mobile equipment to be upgraded from a plurality of sub-equipment of the distributed server according to the information required by upgrading of the mobile equipment to be upgraded; the mobile device to be upgraded combines the sub-upgrade packages into a target upgrade package.
The embodiment of the application also provides a chip which comprises a processor and an interface. Wherein the interface is used for inputting and outputting data or instructions processed by the processor. The processor is configured to perform the methods provided in the method embodiments above. The chip can be applied to a distributed server or a packet searching server or a mobile device.
The present application also provides a program for executing the method provided in the above method embodiment when executed by a processor.
Embodiments of the present application also provide a program product, such as a computer-readable storage medium, having instructions stored therein, which when run on a computer, cause the computer to perform the method provided by the method embodiments described above.
The embodiment of the application provides a chip, which comprises: the system comprises a memory and a processor, wherein the memory is used for storing program instructions, and the processor is used for calling the program instructions in the memory to execute the method provided by the method embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital driver line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.

Claims (18)

1. An upgrade package downloading method, applied to a distributed server, the distributed server including a plurality of sub-devices, the method comprising:
receiving information of mobile equipment to be upgraded;
sending a first acquisition request to a packet searching server, wherein the first acquisition request comprises information of the mobile equipment to be upgraded;
according to the download address of the target upgrade package of the mobile device to be upgraded, which is sent by the package searching server, respectively downloading sub-upgrade packages of the target upgrade package from a download server to a plurality of sub-devices of the distributed server;
respectively sending sub-upgrade packages in a plurality of sub-devices of the distributed server to the mobile device to be upgraded;
the first acquisition request also comprises information of the distributed server; the information of the distributed server and the information of the mobile equipment to be upgraded are also used for establishing a configuration table of the target upgrade package in the package searching server, and the configuration table of the target upgrade package is used for dynamically updating the download address of the target upgrade package.
2. The method of claim 1, wherein after the downloading of the sub-packages of the target package from the download server to the plurality of sub-devices of the distributed server, respectively, the method further comprises:
Sending a configuration table updating instruction to the package searching server, wherein the configuration table updating instruction comprises a download address of the target upgrade package in the distributed server;
and updating the configuration table of the target upgrade package according to the download address of the target upgrade package in the distributed server.
3. The method of claim 2, wherein the download address of the target upgrade package in the distributed server comprises a save path of a child upgrade package of the target upgrade package in a child device of the distributed server.
4. A method according to any of claims 1-3, wherein before said sending the sub-upgrade packages of the plurality of sub-devices of the distributed server to the mobile device to be upgraded, respectively, the method further comprises:
and receiving a first downloading request sent by the mobile equipment to be upgraded, wherein the first downloading request is used for requesting to download sub-upgrading packages of the target upgrading packages from a plurality of sub-equipment of the distributed server respectively.
5. An upgrade package downloading method, which is applied to a package searching server, comprises the following steps:
receiving a first acquisition request sent by a distributed server, wherein the first acquisition request contains information of mobile equipment to be upgraded;
Determining a download address of a target upgrade package of the mobile equipment to be upgraded according to the information of the mobile equipment to be upgraded;
sending a first downloading instruction to the distributed server, wherein the first downloading instruction comprises a downloading address of a target upgrading packet of the mobile equipment to be upgraded;
the first acquisition request also comprises information of the distributed server; after the determining the download address of the target upgrade package of the mobile device to be upgraded, the method further comprises:
and establishing a configuration table of the target upgrade package according to the information of the mobile equipment to be upgraded, the information of the distributed server and the download address of the target upgrade package, wherein the configuration table of the target upgrade package is used for dynamically updating the download address of the target upgrade package.
6. The method of claim 5, wherein after said sending the first download indication to the distributed server, the method further comprises:
receiving a configuration table updating instruction sent by the distributed server, wherein the configuration table updating instruction comprises a download address of the target upgrade package in the distributed server;
And updating the configuration table of the target upgrade package according to the download address of the target upgrade package in the distributed server.
7. The method of claim 6, wherein the download address of the target upgrade package in the distributed server comprises a save path of a child upgrade package of the target upgrade package in a child device of the distributed server.
8. The method according to claim 6 or 7, wherein after the updating of the configuration table of the target upgrade package according to the download address of the target upgrade package in the distributed server, the method further comprises:
and sending a third download instruction to the mobile equipment to be upgraded, wherein the third download instruction comprises information required by upgrading of the mobile equipment to be upgraded, which is extracted from the configuration table of the target upgrade package.
9. The method of claim 8, wherein the information required for upgrading the mobile device to be upgraded includes a download address of the target upgrade package after being updated, a start address of each sub upgrade package, an offset of each sub upgrade package, and an address of a sub device of the distributed server.
10. An upgrade package downloading method, which is applied to a mobile device to be upgraded, the method comprising:
Transmitting the information of the mobile equipment to be upgraded to a distributed server;
receiving a third download instruction sent by a packet searching server, wherein the third download instruction comprises information required by upgrading of the mobile equipment to be upgraded;
downloading a sub-upgrade package of the target upgrade package of the mobile equipment to be upgraded from a plurality of sub-equipment of the distributed server according to the information required by the upgrade of the mobile equipment to be upgraded;
combining the sub-upgrade packages into the target upgrade package;
the information required by the upgrade of the mobile equipment to be upgraded is based on a configuration table of the target upgrade package, the configuration table of the target upgrade package is used for dynamically updating the download address of the target upgrade package, and the configuration table of the target upgrade package is established based on the information of the distributed server and the information of the mobile equipment to be upgraded.
11. The method of claim 10, wherein the information required for the upgrade of the mobile device to be upgraded includes a download address of the target upgrade package after the update, a start address of each sub upgrade package, an offset of each sub upgrade package, and an address of a sub device of the distributed server.
12. An upgrade package downloading apparatus, the apparatus comprising:
the receiving module is used for receiving the information of the mobile equipment to be upgraded;
the sending module is used for sending a first acquisition request to the packet searching server, wherein the first acquisition request comprises the information of the mobile equipment to be upgraded;
the processing module is used for respectively downloading sub-upgrade packages of the target upgrade packages from a download server to a plurality of sub-devices of the upgrade package downloading device according to the download address of the target upgrade package of the mobile device to be upgraded, which is sent by the package searching server;
the sending module is further configured to send sub-upgrade packages in a plurality of sub-devices of the upgrade package downloading device to the mobile device to be upgraded respectively;
the first acquisition request also comprises information of the upgrade package downloading device; the information of the upgrade package downloading device and the information of the mobile equipment to be upgraded are also used for establishing a configuration table of the target upgrade package in the package searching server, and the configuration table of the target upgrade package is used for dynamically updating the downloading address of the target upgrade package.
13. An upgrade package downloading apparatus, the apparatus comprising:
The mobile equipment upgrading system comprises a receiving module, a first updating module and a second updating module, wherein the receiving module is used for receiving a first acquisition request sent by a distributed server, and the first acquisition request contains information of mobile equipment to be upgraded;
the processing module is used for determining the download address of the target upgrade package of the mobile equipment to be upgraded according to the information of the mobile equipment to be upgraded;
the sending module is used for sending a first downloading instruction to the distributed server, wherein the first downloading instruction comprises a downloading address of a target upgrading packet of the mobile equipment to be upgraded;
the first acquisition request also comprises information of the distributed server;
the processing module is further configured to establish a configuration table of the target upgrade package according to the information of the mobile device to be upgraded, the information of the distributed server and the download address of the target upgrade package, where the configuration table of the target upgrade package is used to dynamically update the download address of the target upgrade package.
14. An upgrade package downloading apparatus, the apparatus comprising:
the sending module is used for sending the information of the upgrade package downloading device to the distributed server;
the receiving module is used for receiving a third downloading instruction sent by the package searching server, wherein the third downloading instruction comprises information required by upgrading of the upgrading package downloading device;
The processing module is used for downloading a sub-upgrade package of a target upgrade package of the upgrade package downloading device from a plurality of sub-devices of the distributed server according to the information required by the upgrade of the upgrade package downloading device; combining the sub-upgrade packages into the target upgrade package;
the information required by the upgrade of the upgrade package downloading device is based on a configuration table of the target upgrade package, the configuration table of the target upgrade package is used for dynamically updating the download address of the target upgrade package, and the configuration table of the target upgrade package is established based on the information of the distributed server and the information of the upgrade package downloading device.
15. An upgrade package download system, comprising: the system comprises a distributed server, a packet searching server, a downloading server and mobile equipment to be upgraded, wherein the distributed server consists of a plurality of sub-equipment;
the mobile equipment to be upgraded sends information of the mobile equipment to be upgraded to the distributed server;
the distributed server sends a first acquisition request to the packet searching server, wherein the first acquisition request comprises information of the mobile equipment to be upgraded and information of the distributed server;
The packet searching server determines the download address of the target upgrade packet of the mobile equipment to be upgraded according to the information of the mobile equipment to be upgraded;
the searching server establishes a configuration table of the target upgrading package according to the information of the mobile equipment to be upgraded, the information of the distributed server and the downloading address of the target upgrading package, and the configuration table of the target upgrading package is used for dynamically updating the downloading address of the target upgrading package;
the packet searching server sends a first downloading instruction to the distributed server, wherein the first downloading instruction comprises a downloading address of a target upgrading packet of the mobile equipment to be upgraded;
the download address of the target upgrade package of the distributed server, and the sub upgrade packages of the target upgrade package are respectively downloaded to a plurality of sub devices of the distributed server from the download server;
the distributed server sends a configuration table update instruction to the packet searching server, wherein the configuration table update instruction comprises a download address of the target upgrade packet in the distributed server;
the searching server updates a configuration table of the target upgrading packet according to the downloading address of the target upgrading packet in the distributed server;
The packet searching server sends a third downloading instruction to the mobile equipment to be upgraded, wherein the third downloading instruction comprises information required by upgrading of the mobile equipment to be upgraded, which is extracted from a configuration table of the target upgrading packet;
the mobile equipment to be upgraded downloads a sub-upgrade package of a target upgrade package of the mobile equipment to be upgraded from a plurality of sub-equipment of the distributed server according to the information required by the upgrade of the mobile equipment to be upgraded;
and the mobile equipment to be upgraded combines the sub-upgrade packages into the target upgrade package.
16. A distributed server, comprising: one or more memories and one or more processors;
wherein the one or more storages store one or more programs;
the one or more processors, when executing the one or more programs, cause the distributed server to implement the method of any of claims 1-4.
17. A search package server, comprising: one or more memories and one or more processors;
wherein the one or more storages store one or more programs;
The method of any one of claims 5 to 9 when the one or more processors are executing the one or more programs, causing the search package server to implement.
18. A mobile device, comprising: one or more memories and one or more processors;
wherein the one or more storages store one or more programs;
the one or more processors, when executing the one or more programs, cause the mobile device to implement the method of claim 10 or 11.
CN202110130639.1A 2021-01-29 2021-01-29 Upgrade package downloading method and device Active CN114915618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110130639.1A CN114915618B (en) 2021-01-29 2021-01-29 Upgrade package downloading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110130639.1A CN114915618B (en) 2021-01-29 2021-01-29 Upgrade package downloading method and device

Publications (2)

Publication Number Publication Date
CN114915618A CN114915618A (en) 2022-08-16
CN114915618B true CN114915618B (en) 2023-09-12

Family

ID=82762149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110130639.1A Active CN114915618B (en) 2021-01-29 2021-01-29 Upgrade package downloading method and device

Country Status (1)

Country Link
CN (1) CN114915618B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135048A (en) * 2022-09-20 2023-11-28 深圳Tcl新技术有限公司 Device upgrading method, system, device and computer readable storage medium
CN116661821B (en) * 2023-05-10 2024-06-14 浙江简捷物联科技有限公司 Application upgrading method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780189A (en) * 2014-01-13 2015-07-15 中兴通讯股份有限公司 Software upgrading method and software upgrading device
CN105933150A (en) * 2016-04-20 2016-09-07 努比亚技术有限公司 OTA upgrade method, device and system
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN107329741A (en) * 2017-06-12 2017-11-07 北京北信源软件股份有限公司 A kind of software distribution upgrade method and device based on fingerprint recognition
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN109309725A (en) * 2018-10-25 2019-02-05 深圳市腾讯信息技术有限公司 Using downloading and update method, device, computer equipment and storage medium
CN110839235A (en) * 2018-08-17 2020-02-25 中兴通讯股份有限公司 Terminal upgrading method, device, equipment and computer readable medium
CN111324363A (en) * 2019-11-14 2020-06-23 杭州海康威视***技术有限公司 Equipment upgrading method, upgrading terminal, equipment and storage medium
CN111629065A (en) * 2020-06-05 2020-09-04 宁波方太厨具有限公司 Method and system for controlling OTA (over the air) upgrade of equipment in networking system
CN111770169A (en) * 2020-06-29 2020-10-13 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for upgrading equipment firmware
CN112073994A (en) * 2020-09-03 2020-12-11 百度在线网络技术(北京)有限公司 Method and device for over-the-air upgrading, electronic equipment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013078951A1 (en) * 2011-12-01 2013-06-06 腾讯科技(深圳)有限公司 Method and system for upgrading software

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780189A (en) * 2014-01-13 2015-07-15 中兴通讯股份有限公司 Software upgrading method and software upgrading device
CN105933150A (en) * 2016-04-20 2016-09-07 努比亚技术有限公司 OTA upgrade method, device and system
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN107329741A (en) * 2017-06-12 2017-11-07 北京北信源软件股份有限公司 A kind of software distribution upgrade method and device based on fingerprint recognition
CN110839235A (en) * 2018-08-17 2020-02-25 中兴通讯股份有限公司 Terminal upgrading method, device, equipment and computer readable medium
CN109309725A (en) * 2018-10-25 2019-02-05 深圳市腾讯信息技术有限公司 Using downloading and update method, device, computer equipment and storage medium
CN111324363A (en) * 2019-11-14 2020-06-23 杭州海康威视***技术有限公司 Equipment upgrading method, upgrading terminal, equipment and storage medium
CN111629065A (en) * 2020-06-05 2020-09-04 宁波方太厨具有限公司 Method and system for controlling OTA (over the air) upgrade of equipment in networking system
CN111770169A (en) * 2020-06-29 2020-10-13 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for upgrading equipment firmware
CN112073994A (en) * 2020-09-03 2020-12-11 百度在线网络技术(北京)有限公司 Method and device for over-the-air upgrading, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114915618A (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN111221845A (en) Cross-device information searching method and terminal device
CN115039378A (en) Audio output method and terminal equipment
CN112860445B (en) Method and terminal for sharing data between fast application and native application
CN114915618B (en) Upgrade package downloading method and device
CN114124980B (en) Method, device, system, terminal and storage medium for starting application
WO2022089121A1 (en) Method and apparatus for processing push message
CN111159604A (en) Picture resource loading method and device
CN113032766A (en) Application authority management method and device
WO2022253158A1 (en) User privacy protection method and apparatus
CN113051015B (en) Page rendering method and device, electronic equipment and storage medium
CN116431044A (en) Method and device for starting application program and terminal equipment
CN115879088A (en) Authority checking method and electronic equipment
CN114741256B (en) Sensor monitoring method and device and terminal equipment
US11991040B2 (en) Network configuration method and device
CN112612539A (en) Data model unloading method and device, electronic equipment and storage medium
CN113468606A (en) Application program access method and electronic equipment
CN112612540A (en) Data model configuration method and device, electronic equipment and storage medium
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN115114607A (en) Sharing authorization method, device and storage medium
CN114116072A (en) Shared library multiplexing method and electronic equipment
CN115250261B (en) Information display method and electronic equipment
CN116056176B (en) APN switching method and related equipment
CN116546042A (en) IoT device control methods, devices, systems, and computer readable storage media
CN117950677A (en) Software distribution method, electronic equipment and system
CN115913600A (en) Method, apparatus, electronic device and medium for identifying device

Legal Events

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