Application program update data packet downloading processing method and apparatus
An application and data download technology, applied in the Internet field, can solve the problems affecting the application and occupation of smart terminals
Inactive Publication Date: 2017-02-01
LETV HLDG BEIJING CO LTD +1
3 Cites 3 Cited by
AI-Extracted Technical Summary
Problems solved by technology
[0005] Embodiments of the present invention provide a method and device for downloading and processing application program update data packets, which are used to solve the problem that in the existing method, when th...
Method used
In this embodiment, by obtaining the downlink occupied bandwidth of the smart terminal in the preset time period, the bandwidth usage of other applications using bandwidth resources in the smart terminal can be known; and the application update data packet is downloaded according to the downlink idle bandwidth , under the premise of not affecting the current bandwidth usage of other applications, the download of the application update data package can be realized.
In...
Abstract
The embodiment of the invention provides an application program update data packet downloading processing method and apparatus. The method comprises the following steps: acquiring an occupied downlink bandwidth of an intelligent terminal, and acquiring an idle downlink bandwidth for downloading an application program update data packet according to the occupied downlink bandwidth and a total downlink bandwidth; and downloading the application program update data packet based on the idle downlink bandwidth. The apparatus comprises a bandwidth detection module and a data downloading module. According to the method provided by the embodiment of the invention, the occupied downlink bandwidth of the intelligent terminal within a preset time period is acquired, and thus the bandwidth use conditions of other application programs that are using bandwidth resources in the intelligent terminal can be acquired; and the application program update data packet is downloaded according to the idle downlink bandwidth, so that the application program update data packet can be downloaded on the premise of not affecting the current bandwidth use of the other application programs.
Application Domain
TransmissionNetwork data management
Technology Topic
Application softwareReal-time computing +2
Image
Examples
- Experimental program(1)
Example Embodiment
[0033] In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
[0034] figure 1 Shows a schematic flow chart of the method for downloading an application program update data package provided by this embodiment, including:
[0035] S101. Obtain downlink occupied bandwidth of the smart terminal, and obtain downlink idle bandwidth used for downloading application update data packets according to the downlink occupied bandwidth and the total downlink bandwidth.
[0036] Specifically, after the smart terminal receives the configuration file sent by the update server, it parses the configuration file to obtain configuration information corresponding to each application, and then the central processing unit in the smart terminal sends the corresponding configuration information to the application. The application program receives the configuration information sent by the central processing unit, and obtains the download address of the update data package corresponding to the application included in the configuration information, and obtains the smart terminal before downloading the update data package according to the download address The downlink occupied bandwidth within a preset time period, and by querying the total downlink bandwidth of the smart terminal and subtracting the downlink occupied bandwidth, the currently unused downlink bandwidth can be calculated and obtained according to a specific bandwidth allocation strategy Downlink idle bandwidth for downloading application update data packets;
[0037] Wherein, the smart terminal may be a mobile phone, a tablet computer or other terminal with computing and data processing capabilities; the update server is a server that provides the smart terminal with a configuration file for updating; the update data package is a pair of The data package for updating the application.
[0038] The downlink occupied bandwidth refers to the transmission rate when the server sends data to the smart terminal, and is the total transmission rate at which all applications in the smart terminal receive data sent by the server.
[0039] The total downlink bandwidth is the maximum transmission rate at which the smart terminal can receive data sent by the server.
[0040] The downlink idle bandwidth is a transmission rate used to receive application program update data packets.
[0041] The bandwidth allocation strategy is to predict the downlink bandwidth that needs to be reserved for each application based on the historical usage of bandwidth by each application of the smart terminal, and then subtract the downlink bandwidth that needs to be reserved from the currently unused downlink bandwidth, The downlink idle bandwidth used for downloading the application program update data packet is calculated.
[0042] S102. Download the application program update data package based on the downlink idle bandwidth.
[0043] Specifically, the central processing unit of the smart terminal allocates the downlink idle bandwidth to the application program, and the application program downloads the application program update data packet based on the downlink idle bandwidth.
[0044] In this embodiment, by acquiring the downlink occupied bandwidth of the smart terminal within a preset time period, the bandwidth usage of other applications that are using bandwidth resources in the smart terminal can be learned; and the application update data package can be downloaded according to the downlink idle bandwidth. Under the premise that the current bandwidth usage of other applications is not affected, the download of application update data packages is realized.
[0045] Further, on the basis of the foregoing method embodiment, S102 further includes: if the downlink idle bandwidth is less than a preset bandwidth, serially downloading a plurality of the application update data packets.
[0046] Wherein, the preset bandwidth may be preset according to the size of the application update data packet, or may be preset according to other factors, and represents the bandwidth size used to determine how many application update data packets can be downloaded at the same time.
[0047] The serial download is that all update data packets are downloaded sequentially, that is, only one update data packet is downloaded at the same time.
[0048] For example, the smart terminal includes 3 application update data packets, the sizes of which are 8M, 10M, and 11M respectively. The current downlink free bandwidth is 500KB, and the preset bandwidth is 1M. Then update the data packet string for 3 applications Online downloading, that is, downloading three application update data packages in sequence, and the downlink bandwidth of each application update data package during downloading is 500KB.
[0049] Serial download of application program update data packets is performed based on the preset bandwidth judgment. When the downlink idle bandwidth is small, serial download can be adopted so that some application update data packets can be downloaded and used first.
[0050] Further, on the basis of the foregoing method embodiment, the serial downloading of the multiple application program update data packets in S102 includes:
[0051] S1021. Sort the multiple application update data packages according to the order of the amount of data from small to large, and set corresponding download priorities for the multiple application update data packages according to the sorted order;
[0052] Wherein, the download priority is the download priority order of all update data packets during serial download.
[0053] For example, this embodiment includes 4 application update data packages, namely data package A, data package B, data package C, and data package D. Among them, data package A is 3M, data package B is 5M, and data package C is 4M, data package D is 6M, then the 4 application update data packages can be sorted from small to large into data package A, data package C, data package B, and data package D. Further, according to the data package The smaller the amount of data, the higher the download priority is. The download priority corresponding to the 4 application update data packages is data package A, data package C, data package B, and data package D from high to low.
[0054] S1022: Perform serial download according to respective download priorities of the multiple application update data packets.
[0055] By setting the download priority from small to large for serial downloading, more update packets can be completed within a specified time.
[0056] Further, on the basis of the foregoing method embodiment, S102 further includes:
[0057] If the downlink idle bandwidth is greater than or equal to the condition of the preset bandwidth, parallel downloading of a plurality of the application program update data packets.
[0058] Wherein, the parallel downloading means that multiple update data packages are downloaded at the same time, that is, multiple update data packages are downloaded at the same time.
[0059] For example, the smart terminal includes 3 application update data packets, the sizes of which are 8M, 10M, and 11M respectively. The current downlink idle bandwidth is 1.5M, and the preset bandwidth is 1M. Then update the data packets for 3 applications Parallel download, that is, download 3 application update data packages at the same time, and the downlink bandwidth of each application update data package is 500KB when downloading.
[0060] Parallel download of application update data packets is performed by the preset bandwidth judgment. When the free downlink bandwidth is large, parallel download can be used to download multiple applications at the same time while ensuring the download time of each application update data package in advance Update the data package.
[0061] Further, on the basis of the foregoing method embodiment, the acquiring the downlink idle bandwidth used for downloading the application update data packet according to the downlink occupied bandwidth and the total downlink bandwidth further includes:
[0062] Calculate the bandwidth difference between the total downlink bandwidth and the downlink occupied bandwidth, and obtain the downlink idle bandwidth according to the bandwidth difference and the reserved downlink bandwidth.
[0063] By calculating the bandwidth difference, the downlink idle bandwidth can be quickly determined.
[0064] figure 2 Shows a schematic structural diagram of an application program update data packet download processing apparatus provided in this embodiment. The apparatus includes a bandwidth detection module 21 and a data download module 22, wherein:
[0065] The bandwidth detection module 21 is configured to obtain the downlink occupied bandwidth of the smart terminal, and obtain the downlink idle bandwidth used for downloading the application update data package according to the downlink occupied bandwidth and the total downlink bandwidth;
[0066] The data download module 22 is configured to download the application update data package based on the downlink idle bandwidth.
[0067] Specifically, the bandwidth detection module 21 obtains the downlink occupied bandwidth of the smart terminal within a preset time period, and obtains the downlink idle bandwidth used for downloading the application update data packet according to the downlink occupied bandwidth and the total downlink bandwidth; The data download module 22 downloads the application update data package based on the downlink idle bandwidth.
[0068] In this embodiment, by acquiring the downlink occupied bandwidth of the smart terminal within a preset time period, the bandwidth usage of other applications that are using bandwidth resources in the smart terminal can be learned; and the application update data package can be downloaded according to the downlink idle bandwidth. Under the premise that the current bandwidth usage of other applications is not affected, the download of application update data packages is realized.
[0069] Further, on the basis of the foregoing device embodiment, the data download module 22 is further configured to perform serial download of a plurality of the application update data packets if the downlink idle bandwidth is less than a preset bandwidth.
[0070] Further, on the basis of the foregoing device embodiment, the data download module 22 includes:
[0071] The priority setting unit 221 is configured to sort the plurality of application update data packages according to the order of the amount of data from small to large, and set corresponding download priorities for the plurality of application update data packages according to the sorted order level;
[0072] The serial download unit 222 is configured to perform serial download according to the respective download priorities of the multiple application program update data packets.
[0073] Further, on the basis of the foregoing device embodiment, the data download module 22 is further configured to download a plurality of the application update data packets in parallel if the downlink idle bandwidth is greater than or equal to a preset bandwidth.
[0074] Furthermore, on the basis of the foregoing device embodiment, the bandwidth detection module is further configured to calculate the bandwidth difference between the total downlink bandwidth and the downlink occupied bandwidth, and according to the bandwidth difference and the reserved downlink bandwidth, Obtain the downlink idle bandwidth.
[0075] The principles and technical effects of the apparatus for downloading and processing application program update data packets provided in the foregoing embodiment are the same as those in the corresponding method embodiments, and will not be repeated here.
[0076] image 3 A schematic diagram showing the physical structure of an application update data packet download processing terminal provided in an embodiment of the present invention. The terminal includes a processor 301, a memory 302, a communications interface 303, and a bus 304, Among them, the processor 301, the memory 302, and the communication interface 303 communicate with each other through the bus 304. The communication interface 303 may be used for information transmission between the server and the application update data package download processing terminal.
[0077] The memory 302 is used to store application program update data packets;
[0078] The processor 301 may call the application program in the memory 302 to update the data package to execute the following method:
[0079] Obtain the downlink occupied bandwidth of the smart terminal within a preset time period, and obtain the downlink idle bandwidth used for downloading the application update data packet according to the downlink occupied bandwidth and the total downlink bandwidth;
[0080] Based on the downlink idle bandwidth, download the application update data packet.
[0081] In addition, the above-mentioned application program update data package in the memory 302 may be implemented in the form of a software functional unit and when sold or used as an independent product, it may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including The original picture is used to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
[0082] In this embodiment, by acquiring the downlink occupied bandwidth of the smart terminal within a preset time period, the bandwidth usage of other applications that are using bandwidth resources in the smart terminal can be learned; and the application update data package can be downloaded according to the downlink idle bandwidth. Under the premise that the current bandwidth usage of other applications is not affected, the download of application update data packages is realized.
[0083] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement without creative work.
[0084] Through the description of the above implementation manners, those skilled in the art can clearly understand that each implementation manner can be implemented by software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic A disc, an optical disc, etc., include a number of instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiment.
[0085] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
PUM


Description & Claims & Application Information
We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.