WO2017107684A1 - Data download system and data download method - Google Patents

Data download system and data download method Download PDF

Info

Publication number
WO2017107684A1
WO2017107684A1 PCT/CN2016/104575 CN2016104575W WO2017107684A1 WO 2017107684 A1 WO2017107684 A1 WO 2017107684A1 CN 2016104575 W CN2016104575 W CN 2016104575W WO 2017107684 A1 WO2017107684 A1 WO 2017107684A1
Authority
WO
WIPO (PCT)
Prior art keywords
download
data
downloaded
time
preset time
Prior art date
Application number
PCT/CN2016/104575
Other languages
French (fr)
Chinese (zh)
Inventor
李瑞峰
刘江明
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2017107684A1 publication Critical patent/WO2017107684A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Definitions

  • the present invention relates to the field of downloading technologies, and in particular to a data downloading system and a data downloading method.
  • the technical problem to be solved by the present invention is how to reduce the waiting time for the user to download data to the terminal.
  • the present invention provides a data downloading method, including: detecting a data amount of data to be downloaded in a terminal and a first download speed of a network environment in which the terminal is located; and calculating the first download speed and the data amount according to the first download speed and the data amount.
  • the download time required for the data to be downloaded determining whether the download time is less than a preset time; if yes, downloading the data to be downloaded.
  • the present invention also provides a data downloading system, comprising: a detecting unit, configured to detect a data amount of data to be downloaded in the terminal and a first download speed of a network environment where the terminal is located; and a calculating unit, configured to perform, according to the first download The speed and the amount of data are used to calculate the download time required for the data to be downloaded; the determining unit is configured to determine whether the download time is less than a preset time; The download unit downloads the data to be downloaded when the download time is less than a preset time.
  • the invention also proposes a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform the method as described above.
  • the invention also proposes a computer readable medium in which a computer program as described above is stored.
  • a prompt message may be generated to prompt the user that the download task of the data to be downloaded has been cached, thereby preventing the user from waiting to download the data to be downloaded for a long time, thereby improving the user experience;
  • the period of detecting the first download speed of the network environment may be shortened, and when the first download speed is increased enough that the data to be downloaded is downloaded within the preset time, The download is performed to determine the network environment that can meet the preset download time more quickly, so as to complete the download of the downloaded data as soon as possible, so as to avoid the user being unable to use the application corresponding to the data to be downloaded for a long time.
  • FIG. 1 shows a schematic flow chart of a data downloading method according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart showing data download after a cache download task according to an embodiment of the present invention
  • FIG. 3 is a schematic flow chart showing data download after continuing to cache a download task according to an embodiment of the present invention
  • FIG. 4 shows a schematic flow chart of a data download system in accordance with one embodiment of the present invention
  • Figure 5 shows a block diagram of a computing device for performing the method according to the invention
  • Figure 6 shows a schematic diagram of a memory unit for holding or carrying program code implementing the method according to the invention.
  • terminal and “terminal design” used herein A device that includes both a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a device for receiving and transmitting hardware having a receiving and capable of performing two-way communication on a two-way communication link A device that transmits hardware.
  • Such a device may include a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), Can combine voice, data processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receiver, pager, Internet/Intranet access, web environment browser, notepad, calendar And/or GPS (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having and/or including a conventional laptop and/or palmtop computer with a radio frequency receiver Or other equipment. "Terminal" and “terminal equipment” used here.
  • terminal may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or in distributed form, operating on Earth and/or space. Any other location may be used.
  • the "terminal” and “terminal device” used herein may also be a communication terminal, an internet terminal, a music/video playing terminal, such as a PDA, a MID (Mobile Internet Device), and/or
  • a mobile phone with music/video playback function can also be a smart TV, a set top box, and the like.
  • the concepts of servers, clouds, remote network environment devices and the like used herein have equivalent effects, including but not limited to computers, network environment hosts, single network environment servers, and multiple network environment server sets. Or a cloud of multiple servers.
  • the cloud is composed of a large number of computer or network environment servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • the communication between the remote network environment device, the terminal device and the WNS server can be implemented by any communication method, including but not limited to, 3GPP, LTE, WIMAX based mobile communication, based on TCP/IP, UDP protocol.
  • a data downloading method includes:
  • Detecting data to be downloaded in the terminal for example, an installation package of an application, or an update package, a patch, etc. of an installed application, in addition to data to be downloaded, the present invention is also applicable to data to be uploaded
  • the terminal is located at The first download speed of the network environment
  • the downloading time of the data to be downloaded is small, the data to be downloaded is downloaded, so that the downloading of the data to be downloaded is performed for a long time, and the downloading process is performed for a long time, resulting in a high memory occupancy rate for a long time, thereby causing the terminal to be terminated. Running slowly.
  • the preset time may be set by the user, or may be determined according to the amount of data of the data to be downloaded.
  • the preset time is large (for example, 5 minutes).
  • the preset time is small (for example, 30 seconds), so that the preset time more satisfies different data to be downloaded.
  • the method further includes:
  • a prompt message may be generated to prompt the user that the download task for downloading data has been cached. The user is prevented from waiting to download the data to be downloaded for a long time, thereby improving the user experience.
  • the method further includes:
  • the download may be continued according to the user's control, or the first download speed of the network environment may be detected according to the first period (the duration is equal to the first preset time period), and the first download speed is The download is performed if the data to be downloaded is increased enough to be downloaded within the preset time.
  • the method further includes:
  • the method further includes:
  • the first preset time period is longer than the second preset time period.
  • the period of detecting the first download speed of the network environment may be shortened, for example, according to the second period (the duration is equal to the second preset time) Segment) detecting the first download speed of the network environment, and downloading if the first download speed is increased enough that the data to be downloaded is downloaded within a preset time, so as to determine more quickly that the preset download time can be satisfied.
  • the network environment so as to complete the download of the downloaded data as soon as possible, to avoid the user can not use the application corresponding to the data to be downloaded for a long time.
  • step S11 after returning to step S10 when the recalculated download time is not less than the preset time shown in FIG. 3, when step S11 is performed again, the period of detecting the first download speed of the network environment is continuously shortened. That is, it is possible to detect whether the first download speed of the network environment is increased after the third preset time period (less than the second preset time period).
  • the method before determining whether the download time is less than a preset time, the method further includes:
  • the data to be downloaded is directly downloaded. Since the downloading data in the WiFi network environment is generally free, the use of user traffic can be reduced.
  • the method further includes:
  • the network environment is not a WiFi network environment, query the remaining data traffic of the terminal for the network environment;
  • the network environment targeted by the terminal may be a 2G, 3G or 4G network.
  • the download of the data to be downloaded may be completed by using the data traffic.
  • the method further includes:
  • the silent download in this embodiment may include downloading in the background, and may further include installing in the background after the download is completed.
  • Follow the silent download by restoring during the download process Continue to download the data to be downloaded, which can ensure that the data to be downloaded does not interfere with the operation of the user in the foreground during the download process.
  • continuing to download the data to be downloaded in a silent download manner specifically includes:
  • the download process in this embodiment may be recovered by receiving an instruction from the user, or may be automatically restored when the available network environment is automatically detected. Since the download speed of the network environment may be different before the download process is interrupted and after the download process is resumed, the undownloaded data can be accurately determined by recalculating the required download download time according to the undownloaded portion and the second speed of the current network environment. The time of download, and then accurately determine whether to download.
  • the first download speed and the second download speed are current download speeds corresponding to the network environment with the best connectivity in the network environment where the terminal is currently located.
  • the first download speed of the WiFi network environment it may be the download speed when the WiFi signal strength is the strongest.
  • the present invention also provides a data downloading system 10, including:
  • the detecting unit 11 is configured to detect a data amount of data to be downloaded in the terminal and a first download speed of a network environment where the terminal is located;
  • the calculating unit 12 is configured to calculate a download time required for the data to be downloaded according to the first download speed and the data amount;
  • the determining unit 13 is configured to determine whether the download time is less than a preset time
  • the download unit 14 downloads the data to be downloaded when the download time is less than the preset time.
  • the above system further comprises:
  • the cache unit 15 caches the download task of the data to be downloaded when the download time is greater than or equal to the preset time.
  • the detecting unit detects whether the first download speed of the network environment is increased after the first preset time period;
  • the calculating unit 12 recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
  • the determining unit 13 is further configured to determine whether the recalculated download time is less than a preset time
  • the download unit 14 downloads the data to be downloaded when the recalculated download time is less than the preset time.
  • the cache unit 15 continues to cache the download task of the data to be downloaded when the recalculated download time is greater than or equal to the preset time.
  • the detecting unit 11 detects whether the first download speed of the network environment is increased after the second preset time period;
  • the calculating unit 12 recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
  • the determining unit 13 is further configured to determine whether the recalculated download time is less than a preset time
  • the download unit 14 downloads the data to be downloaded when the recalculated download time is less than the preset time.
  • the first preset time period is longer than the second preset time period.
  • the determining unit 13 is further configured to determine whether the network environment is a WiFi network environment, and if yes, determine whether the download time is less than a preset time.
  • system 10 further includes:
  • the query unit 16 queries the remaining data traffic of the terminal when the network environment is not the WiFi network environment;
  • the determining unit 13 is further configured to determine whether the remaining data traffic is greater than the data volume. If the data volume is greater than the data volume, determine whether the download time is less than a preset time.
  • system 10 further includes:
  • the list adding unit 17 adds the download task of the data to be downloaded to the silent download list when the download process of the data to be downloaded is interrupted;
  • the download unit 14 continues to download the data to be downloaded in a silent download mode when the download process is resumed.
  • the detecting unit 11 determines an undownloaded portion of the data to be downloaded and a second download speed of the network environment in which the current terminal is located;
  • the calculating unit 12 recalculates the required continuation download time according to the second download speed and the undownloaded portion of the data to be downloaded;
  • the determining unit 13 determines whether the downloading time is less than the preset time
  • the download unit 14 continues to download the time less than the preset time when the downloading time is less than the preset time.
  • the first download speed and the second download speed are current download speeds corresponding to the network environment with the best connectivity in the network environment where the terminal is currently located.
  • a data downloading method including:
  • the data downloading method according to A1, the method further includes:
  • the download task of the data to be downloaded is cached.
  • the data downloading method according to 2A after the downloading task of the data to be downloaded is cached, the method further includes:
  • the download time required for the data to be downloaded is recalculated according to the first download speed and the data amount after the improvement;
  • the data downloading method according to A3, the method further includes:
  • the download task of the data to be downloaded is continued to be cached.
  • the data downloading method according to A4 after continuing to cache the downloading task of the data to be downloaded, the method further includes:
  • the download time required for the data to be downloaded is recalculated according to the first download speed and the data amount after the improvement;
  • A6 The data downloading method according to A5, wherein the first preset time period is longer than the second preset time period.
  • the data downloading method according to A1, before determining whether the downloading time is less than a preset time further includes:
  • A8 The data downloading method according to A7, the method further comprising:
  • the network environment is not a WiFi network environment, query the remaining data traffic of the terminal for the network environment;
  • the data downloading method according to A1 if the downloading process of the data to be downloaded is interrupted, the method further includes:
  • the data downloading method according to A9, when the downloading process is resumed, the downloading the data to be downloaded in a silent download manner includes:
  • the undownloaded portion of the data to be downloaded is downloaded.
  • A11 The data downloading method according to A10, wherein the first download speed and the second download speed are current download speeds corresponding to a network environment with the most connectivity in the network environment where the terminal is currently located.
  • a data downloading system comprising:
  • a detecting unit configured to detect a data volume of the data to be downloaded in the terminal and a first download speed of the network environment where the terminal is located;
  • a calculating unit configured to calculate, according to the first download speed and the data amount, a download time required for the data to be downloaded
  • a determining unit configured to determine whether the download time is less than a preset time
  • the download unit downloads the data to be downloaded when the download time is less than a preset time.
  • the cache unit caches the download task of the data to be downloaded when the download time is greater than or equal to the preset time.
  • the detecting unit after the buffering unit caches the downloading task of the data to be downloaded, detecting the network after the first preset time period Whether the first download speed of the environment is increased;
  • the calculating unit recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
  • the determining unit is further configured to determine whether the recalculated download time is less than a preset time
  • the download unit downloads the data to be downloaded when the recalculated download time is less than a preset time.
  • the data downloading system according to B4, the detecting unit, after the buffering unit continues to cache the downloading task of the data to be downloaded, detecting whether the first downloading speed of the network environment is improved after the second preset time period ;
  • the calculating unit recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
  • the determining unit is further configured to determine whether the recalculated download time is less than a preset time
  • the download unit downloads the data to be downloaded when the recalculated download time is less than a preset time.
  • the query unit queries the remaining data traffic of the terminal when the network environment is not a WiFi network environment
  • the determining unit is further configured to determine whether the remaining data traffic is greater than the data amount, and if the data volume is greater than the data amount, determine whether the download time is less than a preset time.
  • a list adding unit when the downloading process of the data to be downloaded is interrupted, adding the download task of the data to be downloaded to the silent download list;
  • the download unit continues to download the data to be downloaded in a silent download manner when the download process is resumed.
  • the detecting unit determines an undownloaded portion of the data to be downloaded and a second downloading speed of a network environment where the current terminal is located;
  • the calculating unit recalculates the required resume download time according to the second download speed and the undownloaded portion of the data to be downloaded;
  • the determining unit determines whether the resume download time is less than a preset time
  • the technical solution of the present invention downloads the data to be downloaded when the downloading time of the data to be downloaded is small, so as to avoid downloading the data to be downloaded for a long time, and causing the terminal to run the downloading program for a long time, resulting in long memory usage.
  • the time is maintained high, which in turn causes the terminal to run slowly.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the apparatus in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 5 illustrates a block diagram of a computing device in which the data download method in accordance with the present invention can be implemented.
  • the computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720.
  • Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Memory 720 has a storage space 730 that stores program code 731 for performing any of the method steps described above.
  • storage space 730 storing program code may store respective program code 731 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have a storage segment or storage space or the like that is similar to the storage 720 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit stores program code 731' for performing the steps of the method according to the invention, ie program code readable by a processor such as 710, which causes the calculation when the program code is run by the computing device The device performs the various steps in the methods described above.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the website security detection device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
  • Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention relates to a data download method, comprising: detecting a data volume of data to be downloaded in a terminal and a first download speed of a network environment where the terminal is located; according to the first download speed and the data volume, calculating a download time required by the data to be downloaded; judging whether the download time is less than a pre-set time; and if so, downloading the data to be downloaded. By downloading data to be downloaded when a download time of the data to be downloaded is relatively short, it is possible to avoid a terminal running a download program for a long time due to downloading the data to be downloaded for a long time, which causes memory occupancy rate to be kept relatively high for a long time, and thus the terminal runs slowly.

Description

数据下载系统和数据下载方法Data download system and data download method 技术领域Technical field
本发明涉及下载技术领域,具体而言,涉及一种数据下载系统和一种数据下载方法。The present invention relates to the field of downloading technologies, and in particular to a data downloading system and a data downloading method.
背景技术Background technique
对着智能手机的使用越来越广泛,应用而生的应用程序种类也越来越多。为了满足用户的需求增加用户粘度,应用程序的更新升级也非常频繁,而为了使用新增的功能或者享受更好的用户体验,手机用户必须对应用程序进行频繁的升级操作。The use of smartphones is becoming more widespread, and the variety of applications that are used by applications is increasing. In order to meet user needs and increase user viscosity, application updates and upgrades are also very frequent, and in order to use new features or enjoy a better user experience, mobile phone users must frequently upgrade the application.
但是有些应用程序的安装包/更新包比较大,在这种情况下,当用户进行下载操作时,一般都会习惯性地等待或关注下载过程的进行,但是如果待下载数据的数据量较大,而手机所处的网络环境下载速度较慢,那么可能使得待下载数据需要相当长的时间才能完成下载,导致用户长时间等待。However, some applications have larger installation packages/updates. In this case, when the user performs a download operation, they usually habitually wait or pay attention to the download process, but if the amount of data to be downloaded is large, The downloading speed of the network environment in which the mobile phone is located may be slow, so that the data to be downloaded may take a long time to complete the download, causing the user to wait for a long time.
发明内容Summary of the invention
本发明所要解决的技术问题是,如何减少用户对终端下载数据的等待时间。The technical problem to be solved by the present invention is how to reduce the waiting time for the user to download data to the terminal.
为此目的,本发明提出了一种数据下载方法,包括:检测终端中待下载数据的数据量和终端所处网络环境的第一下载速度;根据所述第一下载速度和数据量计算所述待下载数据需要的下载时间;判断所述下载时间是否小于预设时间;若是,则下载所述待下载数据。To this end, the present invention provides a data downloading method, including: detecting a data amount of data to be downloaded in a terminal and a first download speed of a network environment in which the terminal is located; and calculating the first download speed and the data amount according to the first download speed and the data amount. The download time required for the data to be downloaded; determining whether the download time is less than a preset time; if yes, downloading the data to be downloaded.
本发明还提出了一种数据下载系统,包括:检测单元,用于检测终端中待下载数据的数据量和终端所处网络环境的第一下载速度;计算单元,用于根据所述第一下载速度和数据量计算所述待下载数据需要的下载时间;判断单元,用于判断所述下载时间是否小于预设时间; 下载单元,在所述下载时间小于预设时间时,下载所述待下载数据。The present invention also provides a data downloading system, comprising: a detecting unit, configured to detect a data amount of data to be downloaded in the terminal and a first download speed of a network environment where the terminal is located; and a calculating unit, configured to perform, according to the first download The speed and the amount of data are used to calculate the download time required for the data to be downloaded; the determining unit is configured to determine whether the download time is less than a preset time; The download unit downloads the data to be downloaded when the download time is less than a preset time.
本发明还提出了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行如上文所述的方法。The invention also proposes a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform the method as described above.
本发明还提出了一种计算机可读介质,其中存储了如上文所述的计算机程序。The invention also proposes a computer readable medium in which a computer program as described above is stored.
根据上述技术方案,至少能够实现:According to the above technical solution, at least:
1、通过在待下载数据的下载时间较小时下载该待下载数据,可以避免长时间下载待下载数据,而使得终端长时间运行下载程序,导致内存占用率长时间维持较高,进而导致终端运行缓慢;1. By downloading the to-be-downloaded data when the downloading time of the data to be downloaded is small, the long-term downloading of the data to be downloaded can be avoided, and the terminal can run the downloading program for a long time, resulting in a high memory occupancy rate for a long time, which leads to the terminal running. slow;
2、通过缓存下载任务,可以在后续继续该下载任务。在缓存下载任务时,可以生成提示信息提示用户待下载数据的下载任务已缓存,从而避免用户长期等待下载待下载数据,进而提高用户体验;2. Through the cache download task, the download task can be continued later. When the download task is cached, a prompt message may be generated to prompt the user that the download task of the data to be downloaded has been cached, thereby preventing the user from waiting to download the data to be downloaded for a long time, thereby improving the user experience;
3、在继续缓存待下载数据的下载任务之后,可以缩短检测网络环境的第一下载速度的周期,并在第一下载速度提高到足以使的待下载数据在预设时间内下载完毕的情况下进行下载,以便更快地确定能够满足预设下载时间的网络环境,从而尽快完成对待下载数据的下载,以避免用户长时间无法使用待下载数据对应的应用程序。3. After continuing to cache the download task of the data to be downloaded, the period of detecting the first download speed of the network environment may be shortened, and when the first download speed is increased enough that the data to be downloaded is downloaded within the preset time, The download is performed to determine the network environment that can meet the preset download time more quickly, so as to complete the download of the downloaded data as soon as possible, so as to avoid the user being unable to use the application corresponding to the data to be downloaded for a long time.
附图说明DRAWINGS
通过参考附图会更加清楚的理解本发明的特征和优点,附图是示意性的而不应理解为对本发明进行任何限制,在附图中:The features and advantages of the present invention are more clearly understood from the following description of the drawings.
图1示出了根据本发明一个实施例的数据下载方法的示意流程图;FIG. 1 shows a schematic flow chart of a data downloading method according to an embodiment of the present invention; FIG.
图2示出了根据本发明一个实施例的缓存下载任务后的数据下载示意流程图;2 is a schematic flow chart showing data download after a cache download task according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的继续缓存下载任务后的数据下载示意流程图; FIG. 3 is a schematic flow chart showing data download after continuing to cache a download task according to an embodiment of the present invention; FIG.
图4示出了根据本发明一个实施例的数据下载系统的示意流程图;4 shows a schematic flow chart of a data download system in accordance with one embodiment of the present invention;
图5示出了用于执行根据本发明的方法的计算设备的框图;以及Figure 5 shows a block diagram of a computing device for performing the method according to the invention;
图6示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元示意图。Figure 6 shows a schematic diagram of a memory unit for holding or carrying program code implementing the method according to the invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。The singular forms "a", "an", "the" It is to be understood that the phrase "comprise" or "an" Integers, steps, operations, components, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element. Further, "connected" or "coupled" as used herein may include either a wireless connection or a wireless coupling. The phrase "and/or" used herein includes all or any one and all combinations of one or more of the associated listed.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art will appreciate that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs, unless otherwise defined. It should also be understood that terms such as those defined in a general dictionary should be understood to have meaning consistent with the meaning in the context of the prior art, and will not be idealized or excessive unless specifically defined as here. The formal meaning is explained.
本技术领域技术人员可以理解,这里所使用的“终端”、“终端设 备”既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,执行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(Personal Communications Service,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(Personal Digital Assistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络环境浏览器、记事本、日历和/或GPS(Global Positioning System,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(Mobile Internet Device,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that the "terminal" and "terminal design" used herein A device that includes both a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a device for receiving and transmitting hardware having a receiving and capable of performing two-way communication on a two-way communication link A device that transmits hardware. Such a device may include a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), Can combine voice, data processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receiver, pager, Internet/Intranet access, web environment browser, notepad, calendar And/or GPS (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having and/or including a conventional laptop and/or palmtop computer with a radio frequency receiver Or other equipment. "Terminal" and "terminal equipment" used here. It may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or in distributed form, operating on Earth and/or space. Any other location may be used. The "terminal" and "terminal device" used herein may also be a communication terminal, an internet terminal, a music/video playing terminal, such as a PDA, a MID (Mobile Internet Device), and/or A mobile phone with music/video playback function can also be a smart TV, a set top box, and the like.
本技术领域技术人员可以理解,这里所使用的服务器、云端、远端网络环境设备等概念,具有等同效果,其包括但不限于计算机、网络环境主机、单个网络环境服务器、多个网络环境服务器集或多个服务器构成的云。在此,云由基于云计算(Cloud Computing)的大量计算机或网络环境服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。本发明的实施例中,远端网络环境设备、终端设备与WNS服务器之间可通过任何通信方式实现通信,包括但不限于,基于3GPP、LTE、WIMAX的移动通信、基于TCP/IP、UDP协议的计算机网络环境通信以及基于蓝 牙、红外传输标准的近距无线传输方式。Those skilled in the art can understand that the concepts of servers, clouds, remote network environment devices and the like used herein have equivalent effects, including but not limited to computers, network environment hosts, single network environment servers, and multiple network environment server sets. Or a cloud of multiple servers. Here, the cloud is composed of a large number of computer or network environment servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers. In the embodiment of the present invention, the communication between the remote network environment device, the terminal device and the WNS server can be implemented by any communication method, including but not limited to, 3GPP, LTE, WIMAX based mobile communication, based on TCP/IP, UDP protocol. Computer network environment communication and based on blue Short-range wireless transmission method for teeth and infrared transmission standards.
本领域技术人员应当理解,本发明所称的“应用”、“应用程序”、“应用软件”以及类似表述的概念,是业内技术人员所公知的相同概念,是指由一系列计算机指令及相关数据资源有机构造的适于电子运行的计算机软件。除非特别指定,这种命名本身不受编程语言种类、级别,也不受其赖以运行的操作系统或平台所限制。理所当然地,此类概念也不受任何形式的终端所限制。Those skilled in the art should understand that the concepts of "application", "application", "application software" and similar expressions as used in the present invention are the same concepts well known to those skilled in the art, and are referred to by a series of computer instructions and related. Data software is an organically constructed computer software suitable for electronic operation. Unless otherwise specified, the naming itself is not limited by the type and level of programming language, nor by the operating system or platform on which it operates. Of course, such concepts are also not limited by any form of terminal.
如图1所示,根据本发明一个实施例的数据下载方法,包括:As shown in FIG. 1, a data downloading method according to an embodiment of the present invention includes:
S1,检测终端中待下载数据(例如应用程序的安装包,或已安装的应用程序的更新包、补丁等,除了待下载数据,本发明也适用于待上传数据)的数据量和终端所处网络环境的第一下载速度;S1. Detecting data to be downloaded in the terminal (for example, an installation package of an application, or an update package, a patch, etc. of an installed application, in addition to data to be downloaded, the present invention is also applicable to data to be uploaded) and the terminal is located at The first download speed of the network environment;
S2,根据第一下载速度和数据量计算待下载数据需要的下载时间;S2, calculating a download time required for the data to be downloaded according to the first download speed and the data amount;
S3,判断下载时间是否小于预设时间(例如1分钟);S3, determining whether the download time is less than a preset time (for example, 1 minute);
S4,若是,则下载(例如从服务器)待下载数据。S4, if yes, download (eg from the server) the data to be downloaded.
本实施例通过在待下载数据的下载时间较小时下载该待下载数据,可以避免长时间下载待下载数据,而使得终端长时间运行下载程序,导致内存占用率长时间维持较高,进而导致终端运行缓慢。In this embodiment, when the downloading time of the data to be downloaded is small, the data to be downloaded is downloaded, so that the downloading of the data to be downloaded is performed for a long time, and the downloading process is performed for a long time, resulting in a high memory occupancy rate for a long time, thereby causing the terminal to be terminated. Running slowly.
需要说明的是,上述预设时间可以是用户设置的,也可以是根据待下载数据的数据量而定,在数据量较大(例如大于30M)时,预设时间较大(例如5分钟),在数据量较小(例如小于500KB)时,预设时间较小(例如30秒),以使预设时间更满足不同的待下载数据。It should be noted that the preset time may be set by the user, or may be determined according to the amount of data of the data to be downloaded. When the amount of data is large (for example, greater than 30 M), the preset time is large (for example, 5 minutes). When the amount of data is small (for example, less than 500 KB), the preset time is small (for example, 30 seconds), so that the preset time more satisfies different data to be downloaded.
如图1所示,优选地,所述方法还包括:As shown in FIG. 1, preferably, the method further includes:
S5,若下载时间大于或等于预设时间,则缓存待下载数据的下载任务。S5. If the download time is greater than or equal to the preset time, the download task of the data to be downloaded is cached.
通过缓存下载任务,可以在后续继续该下载任务。在缓存下载任务时,可以生成提示信息提示用户待下载数据的下载任务已缓存,从 而避免用户长期等待下载待下载数据,进而提高用户体验。By downloading the download task, you can continue the download task later. When the cache download task is cached, a prompt message may be generated to prompt the user that the download task for downloading data has been cached. The user is prevented from waiting to download the data to be downloaded for a long time, thereby improving the user experience.
如图2所示,优选地,在缓存待下载数据的下载任务之后,所述方法还包括:As shown in FIG. 2, after the download task of the data to be downloaded is cached, the method further includes:
S6,在第一预设时间段后检测网络环境的第一下载速度是否提高;S6, detecting, after the first preset time period, whether the first download speed of the network environment is increased;
S7,若提高,则根据提高后的第一下载速度和数据量重新计算待下载数据所需的下载时间;S7, if it is raised, recalculating the download time required to download the data according to the increased first download speed and data amount;
S8,判断重新计算的下载时间是否小于预设时间;S8, determining whether the recalculated download time is less than a preset time;
S9,若是,则下载待下载数据。S9, if yes, download the data to be downloaded.
在缓存待下载数据的下载任务之后,可以根据用户的控制继续进行下载,也可以按照第一周期(时长等于第一预设时间段)检测网络环境的第一下载速度,并在第一下载速度提高到足以使的待下载数据在预设时间内下载完毕的情况下进行下载。After the download task of the data to be downloaded is cached, the download may be continued according to the user's control, or the first download speed of the network environment may be detected according to the first period (the duration is equal to the first preset time period), and the first download speed is The download is performed if the data to be downloaded is increased enough to be downloaded within the preset time.
如图2所示,优选地,所述方法还包括:As shown in FIG. 2, preferably, the method further includes:
S10,若重新计算的下载时间大于或等于预设时间,继续缓存待下载数据的下载任务。S10. If the recalculated download time is greater than or equal to the preset time, continue to cache the download task of the data to be downloaded.
如图3所示,优选地,在继续缓存待下载数据的下载任务之后,所述方法还包括:As shown in FIG. 3, after the download task of the data to be downloaded is continued, the method further includes:
S11,在第二预设时间段后检测网络环境的第一下载速度是否提高;S11, detecting, after the second preset time period, whether the first download speed of the network environment is increased;
S12,若提高,则根据提高后的第一下载速度和数据量重新计算待下载数据所需的下载时间;S12. If the value is increased, the download time required to download the data is recalculated according to the first download speed and the data amount after the improvement;
S13,判断重新计算的下载时间是否小于预设时间;S13. Determine whether the recalculated download time is less than a preset time;
S14,若是,则下载待下载数据。S14, if yes, download the data to be downloaded.
优选地,第一预设时间段较第二预设时间段长。Preferably, the first preset time period is longer than the second preset time period.
在继续缓存待下载数据的下载任务之后,可以缩短检测网络环境的第一下载速度的周期,例如按照第二周期(时长等于第二预设时间 段)检测网络环境的第一下载速度,并在第一下载速度提高到足以使的待下载数据在预设时间内下载完毕的情况下进行下载,以便更快地确定能够满足预设下载时间的网络环境,从而尽快完成对待下载数据的下载,以避免用户长时间无法使用待下载数据对应的应用程序。After continuing to cache the download task of the data to be downloaded, the period of detecting the first download speed of the network environment may be shortened, for example, according to the second period (the duration is equal to the second preset time) Segment) detecting the first download speed of the network environment, and downloading if the first download speed is increased enough that the data to be downloaded is downloaded within a preset time, so as to determine more quickly that the preset download time can be satisfied. The network environment, so as to complete the download of the downloaded data as soon as possible, to avoid the user can not use the application corresponding to the data to be downloaded for a long time.
需要说明的是,图3中所示的在重新计算的下载时间不小于预设时间的情况下返回步骤S10后,在再次进行步骤S11时,继续缩短检测网络环境的第一下载速度的周期,也即可以在第三预设时间段(小于第二预设时间段)后检测网络环境的第一下载速度是否提高。It should be noted that, after returning to step S10 when the recalculated download time is not less than the preset time shown in FIG. 3, when step S11 is performed again, the period of detecting the first download speed of the network environment is continuously shortened. That is, it is possible to detect whether the first download speed of the network environment is increased after the third preset time period (less than the second preset time period).
优选地,在判断下载时间是否小于预设时间之前还包括:Preferably, before determining whether the download time is less than a preset time, the method further includes:
判断网络环境是否为WiFi网络环境;Determine whether the network environment is a WiFi network environment;
若是,则执行判断下载时间是否小于预设时间的步骤。If yes, perform a step of determining whether the download time is less than a preset time.
本实施例可以在网络环境为WiFi网络环境时,直接下载待下载数据,由于在WiFi网络环境中下载数据一般是免费的,因此可以减少用户流量的使用。In this embodiment, when the network environment is a WiFi network environment, the data to be downloaded is directly downloaded. Since the downloading data in the WiFi network environment is generally free, the use of user traffic can be reduced.
优选地,所述方法还包括:Preferably, the method further includes:
若网络环境不是WiFi网络环境,则查询终端针对网络环境的剩余数据流量;If the network environment is not a WiFi network environment, query the remaining data traffic of the terminal for the network environment;
判断剩余数据流量是否大于待下载数据的数据量;Determining whether the remaining data traffic is greater than the amount of data to be downloaded;
若是,则执行判断下载时间是否小于预设时间的步骤。If yes, perform a step of determining whether the download time is less than a preset time.
终端针对的网络环境可以是2G、3G或4G网络,当剩余数据流量是大于待下载数据的数据量时,可以通过使用数据流量完成对待下载数据的下载。The network environment targeted by the terminal may be a 2G, 3G or 4G network. When the remaining data traffic is greater than the data volume of the data to be downloaded, the download of the data to be downloaded may be completed by using the data traffic.
优选地,若待下载数据的下载过程中断,方法还包括:Preferably, if the downloading process of the data to be downloaded is interrupted, the method further includes:
将待下载数据的下载任务添加至静默下载列表;Add the download task of the data to be downloaded to the silent download list;
在下载过程恢复时,以静默下载的方式继续下载待下载数据。When the download process is resumed, continue to download the data to be downloaded in a silent download.
本实施例中的静默下载可以包括在后台下载,还可以进一步包括下载完成后在后台安装。通过在下载过程恢复时以静默下载的方式继 续下载待下载数据,可以保证待下载数据在下载过程不会干扰用户在前台的操作。The silent download in this embodiment may include downloading in the background, and may further include installing in the background after the download is completed. Follow the silent download by restoring during the download process Continue to download the data to be downloaded, which can ensure that the data to be downloaded does not interfere with the operation of the user in the foreground during the download process.
优选地,在下载过程恢复时,以静默下载的方式继续下载待下载数据具体包括:Preferably, when the downloading process is resumed, continuing to download the data to be downloaded in a silent download manner specifically includes:
确定待下载数据的未下载部分和当前终端所处网络环境的第二下载速度;Determining an undownloaded portion of the data to be downloaded and a second download speed of the network environment in which the current terminal is located;
根据第二下载速度和待下载数据的未下载部分重新计算需的继续下载时间;Recalculating the required continued download time according to the second download speed and the undownloaded portion of the data to be downloaded;
判断继续下载时间是否小于预设时间;Determine whether the downloading time is less than the preset time;
若是,则下载待下载数据的未下载部分。If yes, download the undownloaded portion of the data to be downloaded.
本实施例中的下载过程可以通过接收用户的指令而恢复,也可以是在自动检测到可用网络环境时自动恢复。由于在下载过程中断前和下载过程恢复后的网络环境的下载速度可能不同,通过根据未下载部分和当前网络环境的第二速度重新计算所需的继续下载时间,可以准确地确定完成未下载数据下载的时间,进而准确地判断是否进行下载。The download process in this embodiment may be recovered by receiving an instruction from the user, or may be automatically restored when the available network environment is automatically detected. Since the download speed of the network environment may be different before the download process is interrupted and after the download process is resumed, the undownloaded data can be accurately determined by recalculating the required download download time according to the undownloaded portion and the second speed of the current network environment. The time of download, and then accurately determine whether to download.
优选地,第一下载速度和第二下载速度为终端当前所处网络环境中连通性最佳的网络环境对应的当前下载速度。例如对于WiFi网络环境的第一下载速度而言,可以是在WiFi信号强度最强时的下载速度。Preferably, the first download speed and the second download speed are current download speeds corresponding to the network environment with the best connectivity in the network environment where the terminal is currently located. For example, for the first download speed of the WiFi network environment, it may be the download speed when the WiFi signal strength is the strongest.
如图4所示,本发明还提出了一种数据下载系统10,包括:As shown in FIG. 4, the present invention also provides a data downloading system 10, including:
检测单元11,用于检测终端中待下载数据的数据量和终端所处网络环境的第一下载速度;The detecting unit 11 is configured to detect a data amount of data to be downloaded in the terminal and a first download speed of a network environment where the terminal is located;
计算单元12,用于根据第一下载速度和数据量计算待下载数据需要的下载时间;The calculating unit 12 is configured to calculate a download time required for the data to be downloaded according to the first download speed and the data amount;
判断单元13,用于判断下载时间是否小于预设时间;The determining unit 13 is configured to determine whether the download time is less than a preset time;
下载单元14,在下载时间小于预设时间时,下载待下载数据。The download unit 14 downloads the data to be downloaded when the download time is less than the preset time.
优选地,上述系统还包括: Preferably, the above system further comprises:
缓存单元15,在下载时间大于或等于预设时间时,缓存待下载数据的下载任务。The cache unit 15 caches the download task of the data to be downloaded when the download time is greater than or equal to the preset time.
优选地,检测单元在缓存单元15缓存待下载数据的下载任务后,在第一预设时间段后检测网络环境的第一下载速度是否提高;Preferably, after the cache unit 15 caches the download task of the data to be downloaded, the detecting unit detects whether the first download speed of the network environment is increased after the first preset time period;
计算单元12在第一下载速度提高时,根据提高后的第一下载速度和数据量重新计算待下载数据所需的下载时间;The calculating unit 12 recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
判断单元13还用于判断重新计算的下载时间是否小于预设时间;The determining unit 13 is further configured to determine whether the recalculated download time is less than a preset time;
下载单元14在重新计算的下载时间小于预设时间时,下载待下载数据。The download unit 14 downloads the data to be downloaded when the recalculated download time is less than the preset time.
优选地,缓存单元15在重新计算的下载时间大于或等于预设时间时,继续缓存待下载数据的下载任务。Preferably, the cache unit 15 continues to cache the download task of the data to be downloaded when the recalculated download time is greater than or equal to the preset time.
优选地,检测单元11在缓存单元15继续缓存待下载数据的下载任务后,在第二预设时间段后检测网络环境的第一下载速度是否提高;Preferably, after the buffer unit 15 continues to cache the download task of the data to be downloaded, the detecting unit 11 detects whether the first download speed of the network environment is increased after the second preset time period;
计算单元12在第一下载速度提高时,根据提高后的第一下载速度和数据量重新计算待下载数据所需的下载时间;The calculating unit 12 recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
判断单元13还用于判断重新计算的下载时间是否小于预设时间;The determining unit 13 is further configured to determine whether the recalculated download time is less than a preset time;
下载单元14在重新计算的下载时间小于预设时间时,下载待下载数据。The download unit 14 downloads the data to be downloaded when the recalculated download time is less than the preset time.
优选地,第一预设时间段较第二预设时间段长。Preferably, the first preset time period is longer than the second preset time period.
优选地,判断单元13还用于判断网络环境是否为WiFi网络环境,若是,则判断下载时间是否小于预设时间。Preferably, the determining unit 13 is further configured to determine whether the network environment is a WiFi network environment, and if yes, determine whether the download time is less than a preset time.
优选地,上述系统10还包括:Preferably, the system 10 further includes:
查询单元16,在网络环境不是WiFi网络环境时,查询终端的剩余数据流量;The query unit 16 queries the remaining data traffic of the terminal when the network environment is not the WiFi network environment;
其中,判断单元13还用于判断剩余数据流量是否大于数据量,若大于数据量,则判断下载时间是否小于预设时间。The determining unit 13 is further configured to determine whether the remaining data traffic is greater than the data volume. If the data volume is greater than the data volume, determine whether the download time is less than a preset time.
优选地,上述系统10还包括: Preferably, the system 10 further includes:
列表添加单元17,在待下载数据的下载过程中断时,将待下载数据的下载任务添加至静默下载列表;The list adding unit 17 adds the download task of the data to be downloaded to the silent download list when the download process of the data to be downloaded is interrupted;
其中,下载单元14在下载过程恢复时,以静默下载的方式继续下载待下载数据。The download unit 14 continues to download the data to be downloaded in a silent download mode when the download process is resumed.
优选地,在下载过程恢复时,检测单元11确定待下载数据的未下载部分和当前终端所处网络环境的第二下载速度;Preferably, when the download process is resumed, the detecting unit 11 determines an undownloaded portion of the data to be downloaded and a second download speed of the network environment in which the current terminal is located;
计算单元12根据第二下载速度和待下载数据的未下载部分重新计算需的继续下载时间;The calculating unit 12 recalculates the required continuation download time according to the second download speed and the undownloaded portion of the data to be downloaded;
判断单元13判断继续下载时间是否小于预设时间;The determining unit 13 determines whether the downloading time is less than the preset time;
下载单元14在继续下载时间小于预设时间时,继续下载时间是否小于预设时间The download unit 14 continues to download the time less than the preset time when the downloading time is less than the preset time.
优选地,第一下载速度和第二下载速度为终端当前所处网络环境中连通性最佳的网络环境对应的当前下载速度。Preferably, the first download speed and the second download speed are current download speeds corresponding to the network environment with the best connectivity in the network environment where the terminal is currently located.
本发明的实施例公开了:Embodiments of the invention disclose:
A1、一种数据下载方法,包括:A1. A data downloading method, including:
检测终端中待下载数据的数据量和终端所处网络环境的第一下载速度;Detecting the amount of data of the data to be downloaded in the terminal and the first download speed of the network environment where the terminal is located;
根据所述第一下载速度和数据量计算所述待下载数据需要的下载时间;Calculating a download time required for the data to be downloaded according to the first download speed and the data amount;
判断所述下载时间是否小于预设时间;Determining whether the download time is less than a preset time;
若是,则下载所述待下载数据。If yes, the data to be downloaded is downloaded.
A2、根据A1所述的数据下载方法,所述方法还包括:A2. The data downloading method according to A1, the method further includes:
若所述下载时间大于或等于预设时间,则缓存所述待下载数据的下载任务。If the download time is greater than or equal to the preset time, the download task of the data to be downloaded is cached.
A3、根据2A所述的数据下载方法,在缓存所述待下载数据的下载任务之后,所述方法还包括:A3. The data downloading method according to 2A, after the downloading task of the data to be downloaded is cached, the method further includes:
在第一预设时间段后检测网络环境的第一下载速度是否提高; Detecting whether the first download speed of the network environment is increased after the first preset time period;
若提高,则根据提高后的第一下载速度和数据量重新计算所述待下载数据所需的下载时间;If the value is increased, the download time required for the data to be downloaded is recalculated according to the first download speed and the data amount after the improvement;
判断重新计算的下载时间是否小于预设时间;Determining whether the recalculated download time is less than a preset time;
若是,则下载所述待下载数据。If yes, the data to be downloaded is downloaded.
A4、根据A3所述的数据下载方法,所述方法还包括:A4. The data downloading method according to A3, the method further includes:
若重新计算的下载时间大于或等于预设时间,继续缓存所述待下载数据的下载任务。If the recalculated download time is greater than or equal to the preset time, the download task of the data to be downloaded is continued to be cached.
A5、根据A4所述的数据下载方法,在继续缓存所述待下载数据的下载任务之后,所述方法还包括:A5. The data downloading method according to A4, after continuing to cache the downloading task of the data to be downloaded, the method further includes:
在第二预设时间段后检测网络环境的第一下载速度是否提高;Detecting whether the first download speed of the network environment is increased after the second preset time period;
若提高,则根据提高后的第一下载速度和数据量重新计算所述待下载数据所需的下载时间;If the value is increased, the download time required for the data to be downloaded is recalculated according to the first download speed and the data amount after the improvement;
判断重新计算的下载时间是否小于预设时间;Determining whether the recalculated download time is less than a preset time;
若是,则下载所述待下载数据。If yes, the data to be downloaded is downloaded.
A6、根据A5所述的数据下载方法,所述第一预设时间段较所述第二预设时间段长。A6. The data downloading method according to A5, wherein the first preset time period is longer than the second preset time period.
A7、根据A1所述的数据下载方法,在判断所述下载时间是否小于预设时间之前还包括:A7. The data downloading method according to A1, before determining whether the downloading time is less than a preset time, further includes:
判断所述网络环境是否为WiFi网络环境;Determining whether the network environment is a WiFi network environment;
若是,则执行判断所述下载时间是否小于预设时间的步骤。If yes, a step of determining whether the download time is less than a preset time is performed.
A8、根据A7所述的数据下载方法,所述方法还包括:A8. The data downloading method according to A7, the method further comprising:
若所述网络环境不是WiFi网络环境,则查询所述终端针对所述网络环境的剩余数据流量;If the network environment is not a WiFi network environment, query the remaining data traffic of the terminal for the network environment;
判断所述剩余数据流量是否大于所述数据量;Determining whether the remaining data traffic is greater than the data amount;
若是,则执行判断所述下载时间是否小于预设时间的步骤。If yes, a step of determining whether the download time is less than a preset time is performed.
A9、根据A1所述的数据下载方法,若所述待下载数据的下载过程中断,所述方法还包括: A9. The data downloading method according to A1, if the downloading process of the data to be downloaded is interrupted, the method further includes:
将所述待下载数据的下载任务添加至静默下载列表;Adding the download task of the data to be downloaded to the silent download list;
在所述下载过程恢复时,以静默下载的方式继续下载所述待下载数据。When the download process is resumed, the downloading of the data to be downloaded is continued in a silent download manner.
A10、根据A9所述的数据下载方法,在所述下载过程恢复时,以静默下载的方式继续下载所述待下载数据具体包括:A10. The data downloading method according to A9, when the downloading process is resumed, the downloading the data to be downloaded in a silent download manner includes:
确定所述待下载数据的未下载部分和当前终端所处网络环境的第二下载速度;Determining an undownloaded portion of the data to be downloaded and a second download speed of a network environment in which the current terminal is located;
根据所述第二下载速度和所述待下载数据的未下载部分重新计算所述需的继续下载时间;Recalculating the required resume download time according to the second download speed and the undownloaded portion of the data to be downloaded;
判断所述继续下载时间是否小于预设时间;Determining whether the continued download time is less than a preset time;
若是,则下载所述待下载数据的未下载部分。If so, the undownloaded portion of the data to be downloaded is downloaded.
A11、根据A10所述的数据下载方法,所述第一下载速度和第二下载速度为终端当前所处网络环境中连通性最佳的网络环境对应的当前下载速度。A11. The data downloading method according to A10, wherein the first download speed and the second download speed are current download speeds corresponding to a network environment with the most connectivity in the network environment where the terminal is currently located.
B1、一种数据下载系统,包括:B1. A data downloading system comprising:
检测单元,用于检测终端中待下载数据的数据量和终端所处网络环境的第一下载速度;a detecting unit, configured to detect a data volume of the data to be downloaded in the terminal and a first download speed of the network environment where the terminal is located;
计算单元,用于根据所述第一下载速度和数据量计算所述待下载数据需要的下载时间;a calculating unit, configured to calculate, according to the first download speed and the data amount, a download time required for the data to be downloaded;
判断单元,用于判断所述下载时间是否小于预设时间;a determining unit, configured to determine whether the download time is less than a preset time;
下载单元,在所述下载时间小于预设时间时,下载所述待下载数据。The download unit downloads the data to be downloaded when the download time is less than a preset time.
B2、根据B1所述的数据下载系统,还包括:B2. The data downloading system according to B1, further comprising:
缓存单元,在所述下载时间大于或等于预设时间时,缓存所述待下载数据的下载任务。The cache unit caches the download task of the data to be downloaded when the download time is greater than or equal to the preset time.
B3、根据B2所述的数据下载系统,所述检测单元在所述缓存单元缓存所述待下载数据的下载任务后,在第一预设时间段后检测网络 环境的第一下载速度是否提高;B3. The data downloading system according to B2, the detecting unit, after the buffering unit caches the downloading task of the data to be downloaded, detecting the network after the first preset time period Whether the first download speed of the environment is increased;
所述计算单元在所述第一下载速度提高时,根据提高后的第一下载速度和数据量重新计算所述待下载数据所需的下载时间;The calculating unit recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
所述判断单元还用于判断重新计算的下载时间是否小于预设时间;The determining unit is further configured to determine whether the recalculated download time is less than a preset time;
所述下载单元在重新计算的下载时间小于预设时间时,下载所述待下载数据。The download unit downloads the data to be downloaded when the recalculated download time is less than a preset time.
B4、根据B3所述的数据下载系统,所述缓存单元在重新计算的下载时间大于或等于预设时间时,继续缓存所述待下载数据的下载任务。B4. The data downloading system according to B3, wherein the cache unit continues to cache the download task of the data to be downloaded when the recalculated download time is greater than or equal to the preset time.
B5、根据B4所述的数据下载系统,所述检测单元在所述缓存单元继续缓存所述待下载数据的下载任务后,在第二预设时间段后检测网络环境的第一下载速度是否提高;B5. The data downloading system according to B4, the detecting unit, after the buffering unit continues to cache the downloading task of the data to be downloaded, detecting whether the first downloading speed of the network environment is improved after the second preset time period ;
所述计算单元在第一下载速度提高时,根据提高后的第一下载速度和数据量重新计算所述待下载数据所需的下载时间;The calculating unit recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
所述判断单元还用于判断重新计算的下载时间是否小于预设时间;The determining unit is further configured to determine whether the recalculated download time is less than a preset time;
所述下载单元在重新计算的下载时间小于预设时间时,下载所述待下载数据。The download unit downloads the data to be downloaded when the recalculated download time is less than a preset time.
B6、根据B5所述的数据下载系统,所述第一预设时间段较所述第二预设时间段长。B6. The data downloading system according to B5, wherein the first preset time period is longer than the second preset time period.
B7、根据B1所述的数据下载系统,所述判断单元还用于判断所述网络环境是否为WiFi网络环境,若是,则判断所述下载时间是否小于预设时间。B7. The data downloading system according to B1, wherein the determining unit is further configured to determine whether the network environment is a WiFi network environment, and if yes, determine whether the download time is less than a preset time.
B8、根据B7所述的数据下载系统,还包括:B8. The data downloading system according to B7, further comprising:
查询单元,在所述网络环境不是WiFi网络环境时,查询所述终端的剩余数据流量; The query unit queries the remaining data traffic of the terminal when the network environment is not a WiFi network environment;
其中,所述判断单元还用于判断所述剩余数据流量是否大于所述数据量,若大于所述数据量,则判断所述下载时间是否小于预设时间。The determining unit is further configured to determine whether the remaining data traffic is greater than the data amount, and if the data volume is greater than the data amount, determine whether the download time is less than a preset time.
B9、根据权B1所述的数据下载系统,还包括:B9. The data downloading system according to the right B1, further comprising:
列表添加单元,在所述待下载数据的下载过程中断时,将所述待下载数据的下载任务添加至静默下载列表;a list adding unit, when the downloading process of the data to be downloaded is interrupted, adding the download task of the data to be downloaded to the silent download list;
其中,所述下载单元在所述下载过程恢复时,以静默下载的方式继续下载所述待下载数据。The download unit continues to download the data to be downloaded in a silent download manner when the download process is resumed.
B10、根据B9所述的数据下载系统,在所述下载过程恢复时,所述检测单元确定所述待下载数据的未下载部分和当前终端所处网络环境的第二下载速度;B10. The data downloading system according to B9, when the downloading process is resumed, the detecting unit determines an undownloaded portion of the data to be downloaded and a second downloading speed of a network environment where the current terminal is located;
所述计算单元根据所述第二下载速度和所述待下载数据的未下载部分重新计算所述需的继续下载时间;The calculating unit recalculates the required resume download time according to the second download speed and the undownloaded portion of the data to be downloaded;
所述判断单元判断所述继续下载时间是否小于预设时间;The determining unit determines whether the resume download time is less than a preset time;
所述下载单元在所述继续下载时间小于预设时间时,所述继续下载时间是否小于预设时间Whether the downloading time is less than the preset time when the downloading time is less than the preset time
B11、根据B10所述的数据下载系统,所述第一下载速度和第二下载速度为终端当前所处网络环境中连通性最佳的网络环境对应的当前下载速度。B11. The data downloading system of B10, wherein the first download speed and the second download speed are current download speeds corresponding to a network environment in which the connectivity is optimal in the network environment in which the terminal is currently located.
综上所述,通过本发明的技术方案,在待下载数据的下载时间较小时下载该待下载数据,可以避免长时间下载待下载数据,而使得终端长时间运行下载程序,导致内存占用率长时间维持较高,进而导致终端运行缓慢。In summary, the technical solution of the present invention downloads the data to be downloaded when the downloading time of the data to be downloaded is small, so as to avoid downloading the data to be downloaded for a long time, and causing the terminal to run the downloading program for a long time, resulting in long memory usage. The time is maintained high, which in turn causes the terminal to run slowly.
应当注意,在此提供的算法和公式不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示例一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的 描述是为了披露本发明的最佳实施方式。It should be noted that the algorithms and formulas provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the examples based herein. The structure required to construct such a system is apparent from the above description. Moreover, the invention is not directed to any particular programming language. It will be appreciated that the teachings of the invention described herein can be implemented in a variety of programming languages, and that the above is done for a particular language. The description is for the purpose of illustrating the preferred embodiments of the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本发明并帮助理解本发明各个方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法和装置解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如权利要求书所反映,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the present invention are sometimes grouped together into a single embodiment in the above description of the exemplary embodiments of the present invention in order to the , diagram, or description of it. However, the method and apparatus disclosed are not to be interpreted as reflecting the invention that the claimed invention is claimed to have more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施 例。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Within and form different implementations example.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的装置的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the apparatus in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图5示出了可以实现根据本发明的数据下载方法的计算设备的框图。该计算设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有存储用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,存储程序代码的存储空间730可以存储分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图6所示的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器720类似布置的存储段或者存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元存储有用于执行根据本发明的方法步骤的程序代码731’,即可以由例如诸如710之类的处理器读取的程序代码,当这些程序代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。 For example, Figure 5 illustrates a block diagram of a computing device in which the data download method in accordance with the present invention can be implemented. The computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720. Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Memory 720 has a storage space 730 that stores program code 731 for performing any of the method steps described above. For example, storage space 730 storing program code may store respective program code 731 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG. The storage unit may have a storage segment or storage space or the like that is similar to the storage 720 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit stores program code 731' for performing the steps of the method according to the invention, ie program code readable by a processor such as 710, which causes the calculation when the program code is run by the computing device The device performs the various steps in the methods described above.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的网站安全检测设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the website security detection device in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above is only a part of the embodiments of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims (24)

  1. 一种数据下载方法,其特征在于,包括:A data downloading method, comprising:
    检测终端中待下载数据的数据量和终端所处网络环境的第一下载速度;Detecting the amount of data of the data to be downloaded in the terminal and the first download speed of the network environment where the terminal is located;
    根据所述第一下载速度和数据量计算所述待下载数据需要的下载时间;Calculating a download time required for the data to be downloaded according to the first download speed and the data amount;
    判断所述下载时间是否小于预设时间;Determining whether the download time is less than a preset time;
    若是,则下载所述待下载数据。If yes, the data to be downloaded is downloaded.
  2. 根据权利要求1所述的数据下载方法,其特征在于,所述方法还包括:The data downloading method according to claim 1, wherein the method further comprises:
    若所述下载时间大于或等于预设时间,则缓存所述待下载数据的下载任务。If the download time is greater than or equal to the preset time, the download task of the data to be downloaded is cached.
  3. 根据权利要求2所述的数据下载方法,其特征在于,在缓存所述待下载数据的下载任务之后,所述方法还包括:The data downloading method according to claim 2, wherein after the downloading of the data to be downloaded, the method further comprises:
    在第一预设时间段后检测网络环境的第一下载速度是否提高;Detecting whether the first download speed of the network environment is increased after the first preset time period;
    若提高,则根据提高后的第一下载速度和数据量重新计算所述待下载数据所需的下载时间;If the value is increased, the download time required for the data to be downloaded is recalculated according to the first download speed and the data amount after the improvement;
    判断重新计算的下载时间是否小于预设时间;Determining whether the recalculated download time is less than a preset time;
    若是,则下载所述待下载数据。If yes, the data to be downloaded is downloaded.
  4. 根据权利要求3所述的数据下载方法,其特征在于,所述方法还包括:The data downloading method according to claim 3, wherein the method further comprises:
    若重新计算的下载时间大于或等于预设时间,继续缓存所述待下载数据的下载任务。If the recalculated download time is greater than or equal to the preset time, the download task of the data to be downloaded is continued to be cached.
  5. 根据权利要求4所述的数据下载方法,其特征在于,在继续缓存所述待下载数据的下载任务之后,所述方法还包括:The data downloading method according to claim 4, further comprising: after continuing to cache the downloading task of the data to be downloaded, the method further comprising:
    在第二预设时间段后检测网络环境的第一下载速度是否提高;Detecting whether the first download speed of the network environment is increased after the second preset time period;
    若提高,则根据提高后的第一下载速度和数据量重新计算所述待 下载数据所需的下载时间;If it is increased, the calculation is recalculated according to the increased first download speed and data amount. The download time required to download the data;
    判断重新计算的下载时间是否小于预设时间;Determining whether the recalculated download time is less than a preset time;
    若是,则下载所述待下载数据。If yes, the data to be downloaded is downloaded.
  6. 根据权利要求5所述的数据下载方法,其特征在于,所述第一预设时间段较所述第二预设时间段长。The data downloading method according to claim 5, wherein the first preset time period is longer than the second preset time period.
  7. 根据权利要求1所述的数据下载方法,其特征在于,在判断所述下载时间是否小于预设时间之前还包括:The data downloading method according to claim 1, further comprising: before determining whether the downloading time is less than a preset time:
    判断所述网络环境是否为WiFi网络环境;Determining whether the network environment is a WiFi network environment;
    若是,则执行判断所述下载时间是否小于预设时间的步骤。If yes, a step of determining whether the download time is less than a preset time is performed.
  8. 根据权利要求7所述的数据下载方法,其特征在于,所述方法还包括:The data downloading method according to claim 7, wherein the method further comprises:
    若所述网络环境不是WiFi网络环境,则查询所述终端针对所述网络环境的剩余数据流量;If the network environment is not a WiFi network environment, query the remaining data traffic of the terminal for the network environment;
    判断所述剩余数据流量是否大于所述数据量;Determining whether the remaining data traffic is greater than the data amount;
    若是,则执行判断所述下载时间是否小于预设时间的步骤。If yes, a step of determining whether the download time is less than a preset time is performed.
  9. 根据权利要求1所述的数据下载方法,其特征在于,若所述待下载数据的下载过程中断,所述方法还包括:The data downloading method according to claim 1, wherein if the downloading process of the data to be downloaded is interrupted, the method further comprises:
    将所述待下载数据的下载任务添加至静默下载列表;Adding the download task of the data to be downloaded to the silent download list;
    在所述下载过程恢复时,以静默下载的方式继续下载所述待下载数据。When the download process is resumed, the downloading of the data to be downloaded is continued in a silent download manner.
  10. 根据权利要求9所述的数据下载方法,其特征在于,在所述下载过程恢复时,以静默下载的方式继续下载所述待下载数据具体包括:The data downloading method according to claim 9, wherein, when the downloading process is resumed, the downloading the data to be downloaded in a silent download manner comprises:
    确定所述待下载数据的未下载部分和当前终端所处网络环境的第二下载速度;Determining an undownloaded portion of the data to be downloaded and a second download speed of a network environment in which the current terminal is located;
    根据所述第二下载速度和所述待下载数据的未下载部分重新计算所述需的继续下载时间; Recalculating the required resume download time according to the second download speed and the undownloaded portion of the data to be downloaded;
    判断所述继续下载时间是否小于预设时间;Determining whether the continued download time is less than a preset time;
    若是,则下载所述待下载数据的未下载部分。If so, the undownloaded portion of the data to be downloaded is downloaded.
  11. 根据权利要求10所述的数据下载方法,其特征在于,所述第一下载速度和第二下载速度为终端当前所处网络环境中连通性最佳的网络环境对应的当前下载速度。The data downloading method according to claim 10, wherein the first download speed and the second download speed are current download speeds corresponding to a network environment in which the connectivity is optimal in the network environment in which the terminal is currently located.
  12. 一种数据下载系统,其特征在于,包括:A data downloading system, comprising:
    检测单元,用于检测终端中待下载数据的数据量和终端所处网络环境的第一下载速度;a detecting unit, configured to detect a data volume of the data to be downloaded in the terminal and a first download speed of the network environment where the terminal is located;
    计算单元,用于根据所述第一下载速度和数据量计算所述待下载数据需要的下载时间;a calculating unit, configured to calculate, according to the first download speed and the data amount, a download time required for the data to be downloaded;
    判断单元,用于判断所述下载时间是否小于预设时间;a determining unit, configured to determine whether the download time is less than a preset time;
    下载单元,在所述下载时间小于预设时间时,下载所述待下载数据。The download unit downloads the data to be downloaded when the download time is less than a preset time.
  13. 根据权利要求12所述的数据下载系统,其特征在于,还包括:The data downloading system according to claim 12, further comprising:
    缓存单元,在所述下载时间大于或等于预设时间时,缓存所述待下载数据的下载任务。The cache unit caches the download task of the data to be downloaded when the download time is greater than or equal to the preset time.
  14. 根据权利要求13所述的数据下载系统,其特征在于,所述检测单元在所述缓存单元缓存所述待下载数据的下载任务后,在第一预设时间段后检测网络环境的第一下载速度是否提高;The data downloading system according to claim 13, wherein the detecting unit detects the first download of the network environment after the first preset time period after the buffer unit caches the download task of the data to be downloaded. Whether the speed is increased;
    所述计算单元在所述第一下载速度提高时,根据提高后的第一下载速度和数据量重新计算所述待下载数据所需的下载时间;The calculating unit recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
    所述判断单元还用于判断重新计算的下载时间是否小于预设时间;The determining unit is further configured to determine whether the recalculated download time is less than a preset time;
    所述下载单元在重新计算的下载时间小于预设时间时,下载所述待下载数据。The download unit downloads the data to be downloaded when the recalculated download time is less than a preset time.
  15. 根据权利要求14所述的数据下载系统,其特征在于,所述缓存单元在重新计算的下载时间大于或等于预设时间时,继续缓存所述 待下载数据的下载任务。The data download system according to claim 14, wherein the cache unit continues to cache the recalculated download time when the download time is greater than or equal to a preset time. The download task of the data to be downloaded.
  16. 根据权利要求15所述的数据下载系统,其特征在于,所述检测单元在所述缓存单元继续缓存所述待下载数据的下载任务后,在第二预设时间段后检测网络环境的第一下载速度是否提高;The data downloading system according to claim 15, wherein the detecting unit detects the first of the network environment after the second preset time period after the buffer unit continues to cache the download task of the data to be downloaded. Whether the download speed is increased;
    所述计算单元在第一下载速度提高时,根据提高后的第一下载速度和数据量重新计算所述待下载数据所需的下载时间;The calculating unit recalculates the download time required for the data to be downloaded according to the increased first download speed and the data amount when the first download speed is increased;
    所述判断单元还用于判断重新计算的下载时间是否小于预设时间;The determining unit is further configured to determine whether the recalculated download time is less than a preset time;
    所述下载单元在重新计算的下载时间小于预设时间时,下载所述待下载数据。The download unit downloads the data to be downloaded when the recalculated download time is less than a preset time.
  17. 根据权利要求16所述的数据下载系统,其特征在于,所述第一预设时间段较所述第二预设时间段长。The data download system according to claim 16, wherein the first preset time period is longer than the second preset time period.
  18. 根据权利要求12所述的数据下载系统,其特征在于,所述判断单元还用于判断所述网络环境是否为WiFi网络环境,若是,则判断所述下载时间是否小于预设时间。The data downloading system according to claim 12, wherein the determining unit is further configured to determine whether the network environment is a WiFi network environment, and if yes, determine whether the download time is less than a preset time.
  19. 根据权利要求18所述的数据下载系统,其特征在于,还包括:The data downloading system of claim 18, further comprising:
    查询单元,在所述网络环境不是WiFi网络环境时,查询所述终端的剩余数据流量;The query unit queries the remaining data traffic of the terminal when the network environment is not a WiFi network environment;
    其中,所述判断单元还用于判断所述剩余数据流量是否大于所述数据量,若大于所述数据量,则判断所述下载时间是否小于预设时间。The determining unit is further configured to determine whether the remaining data traffic is greater than the data amount, and if the data volume is greater than the data amount, determine whether the download time is less than a preset time.
  20. 根据权利要求12所述的数据下载系统,其特征在于,还包括:The data downloading system according to claim 12, further comprising:
    列表添加单元,在所述待下载数据的下载过程中断时,将所述待下载数据的下载任务添加至静默下载列表;a list adding unit, when the downloading process of the data to be downloaded is interrupted, adding the download task of the data to be downloaded to the silent download list;
    其中,所述下载单元在所述下载过程恢复时,以静默下载的方式继续下载所述待下载数据。The download unit continues to download the data to be downloaded in a silent download manner when the download process is resumed.
  21. 根据权利要求20所述的数据下载系统,其特征在于,在所述下载过程恢复时,所述检测单元确定所述待下载数据的未下载部分和 当前终端所处网络环境的第二下载速度;A data downloading system according to claim 20, wherein said detecting unit determines an undownloaded portion of said data to be downloaded and said when said downloading process is resumed The second download speed of the network environment in which the current terminal is located;
    所述计算单元根据所述第二下载速度和所述待下载数据的未下载部分重新计算所述需的继续下载时间;The calculating unit recalculates the required resume download time according to the second download speed and the undownloaded portion of the data to be downloaded;
    所述判断单元判断所述继续下载时间是否小于预设时间;The determining unit determines whether the resume download time is less than a preset time;
    所述下载单元在所述继续下载时间小于预设时间时,所述继续下载时间是否小于预设时间Whether the downloading time is less than the preset time when the downloading time is less than the preset time
  22. 根据权利要求21所述的数据下载系统,其特征在于,所述第一下载速度和第二下载速度为终端当前所处网络环境中连通性最佳的网络环境对应的当前下载速度。The data downloading system according to claim 21, wherein the first download speed and the second download speed are current download speeds corresponding to a network environment in which the connectivity is optimal in the network environment in which the terminal is currently located.
  23. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-11中的任一项权利要求所述的方法。A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the method of any of claims 1-11.
  24. 一种计算机可读介质,其中存储了如权利要求23所述的计算机程序。 A computer readable medium storing the computer program of claim 23.
PCT/CN2016/104575 2015-12-25 2016-11-04 Data download system and data download method WO2017107684A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510997676.7A CN105610935A (en) 2015-12-25 2015-12-25 Data download system and data download method
CN201510997676.7 2015-12-25

Publications (1)

Publication Number Publication Date
WO2017107684A1 true WO2017107684A1 (en) 2017-06-29

Family

ID=55990469

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104575 WO2017107684A1 (en) 2015-12-25 2016-11-04 Data download system and data download method

Country Status (2)

Country Link
CN (1) CN105610935A (en)
WO (1) WO2017107684A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314480A (en) * 2022-07-06 2022-11-08 深圳拓邦股份有限公司 Method and device for remotely upgrading terminal on line

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610935A (en) * 2015-12-25 2016-05-25 北京奇虎科技有限公司 Data download system and data download method
CN105933855B (en) * 2016-06-30 2019-03-15 武汉科技大学 Car networking data download method based on user satisfaction
CN106911765A (en) * 2017-01-23 2017-06-30 北京思特奇信息技术股份有限公司 A kind of report file method for down loading and device
CN109041047A (en) * 2018-08-07 2018-12-18 环球天成科技(北京)有限公司 Method for down loading, terminal and the storage medium of terminal data
CN110401691B (en) * 2019-05-09 2021-11-16 腾讯科技(深圳)有限公司 Resource downloading control method, device and terminal
CN115174557B (en) * 2022-07-01 2024-03-01 济南浪潮数据技术有限公司 Log downloading scheduling method, device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1954296A (en) * 2004-03-16 2007-04-25 松下电器产业株式会社 Terminal device for updating computer program and update method
CN101951404A (en) * 2010-09-20 2011-01-19 优视科技有限公司 Downloading method and device for mobile communication equipment terminal
CN102238204A (en) * 2010-04-23 2011-11-09 腾讯科技(深圳)有限公司 Network data acquisition method and system
CN104602227A (en) * 2015-02-02 2015-05-06 携程计算机技术(上海)有限公司 Network-adaptive mobile application data loading method
CN105159781A (en) * 2015-08-25 2015-12-16 广东欧珀移动通信有限公司 Method and apparatus for adjusting network speed of application of intelligent terminal and intelligent terminal
CN105610935A (en) * 2015-12-25 2016-05-25 北京奇虎科技有限公司 Data download system and data download method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130044571A (en) * 2011-10-24 2013-05-03 삼성전자주식회사 Method and apparatus for providing cloud service
KR101354925B1 (en) * 2012-06-14 2014-01-24 주식회사에어플러그 Method for controlling receiving of content data through a plurality of wireless networks connected in multiple mode and an apparatus for said method
CN104796351B (en) * 2015-03-16 2017-11-24 广东欧珀移动通信有限公司 The method for down loading and device of a kind of network data
CN104753826A (en) * 2015-03-31 2015-07-01 天脉聚源(北京)教育科技有限公司 Bandwidth allocation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1954296A (en) * 2004-03-16 2007-04-25 松下电器产业株式会社 Terminal device for updating computer program and update method
CN102238204A (en) * 2010-04-23 2011-11-09 腾讯科技(深圳)有限公司 Network data acquisition method and system
CN101951404A (en) * 2010-09-20 2011-01-19 优视科技有限公司 Downloading method and device for mobile communication equipment terminal
CN104602227A (en) * 2015-02-02 2015-05-06 携程计算机技术(上海)有限公司 Network-adaptive mobile application data loading method
CN105159781A (en) * 2015-08-25 2015-12-16 广东欧珀移动通信有限公司 Method and apparatus for adjusting network speed of application of intelligent terminal and intelligent terminal
CN105610935A (en) * 2015-12-25 2016-05-25 北京奇虎科技有限公司 Data download system and data download method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314480A (en) * 2022-07-06 2022-11-08 深圳拓邦股份有限公司 Method and device for remotely upgrading terminal on line

Also Published As

Publication number Publication date
CN105610935A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
WO2017107684A1 (en) Data download system and data download method
WO2017107685A1 (en) Application program update system and method
US11956703B2 (en) Context-based dynamic policy system for mobile devices and supporting network infrastructure
US9021468B1 (en) Bundling extension installation with web browser installation
US8984058B2 (en) Pre-fetching remote resources
CN104754003B (en) Transmit the method and system of data
US9948750B2 (en) Tailoring content to be delivered to mobile device based upon features of mobile device
US20160119323A1 (en) Single sign on for native and wrapped web resources on mobile devices
AU2020203111B2 (en) Reducing data use in limited data environment
CN105808235A (en) Management method and device for notification bar messages of mobile terminal, and mobile terminal
WO2011047074A1 (en) Application whitelisting in a cloud-based computing device
US9351167B1 (en) SMS botnet detection on mobile devices
CN110780887A (en) Method and equipment for providing application installation package
CN103546887A (en) Application software transmitting method, device and terminal and server
US20120060149A1 (en) Integrated multimedia application for mobile devices
WO2023226757A1 (en) Video caching method and apparatus, device and storage medium
CN110401691B (en) Resource downloading control method, device and terminal
CN103631621A (en) Method and device for prompting information
KR101701623B1 (en) System and method for concealing bandwidth reduction for voice call of voice-over internet protocol
WO2019140565A1 (en) Cloud storage instruction management method and system
WO2018121795A1 (en) Method and device for connecting wireless access points
WO2019140578A1 (en) Data backup instruction management method and system
US20230396695A1 (en) App-Independent Resource Downloads
US20120059695A1 (en) Integrated promotion of multimedia applications for mobile devices
KR20150029973A (en) Method for controlling an url and an electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16877495

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877495

Country of ref document: EP

Kind code of ref document: A1