WO2011116576A1 - Method and system for optimizing download speed of mobile terminal - Google Patents

Method and system for optimizing download speed of mobile terminal Download PDF

Info

Publication number
WO2011116576A1
WO2011116576A1 PCT/CN2010/075878 CN2010075878W WO2011116576A1 WO 2011116576 A1 WO2011116576 A1 WO 2011116576A1 CN 2010075878 W CN2010075878 W CN 2010075878W WO 2011116576 A1 WO2011116576 A1 WO 2011116576A1
Authority
WO
WIPO (PCT)
Prior art keywords
download
task
cycle
parallel
running
Prior art date
Application number
PCT/CN2010/075878
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 WO2011116576A1 publication Critical patent/WO2011116576A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication 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/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests

Definitions

  • the present invention relates to the field of download management and performance optimization of mobile terminals, and in particular, to a method and system for optimizing download speed of a mobile terminal. Background technique
  • the Internet access function is mainly divided into two parts: web browsing and data downloading. Among them, there are many other types of files in addition to audio and video resources. These resources not only make life rich, but also bring convenience to work and study.
  • the main technical problem to be solved by the present invention is to provide a method and system for optimizing the download speed of a mobile terminal, which can reduce the impact on other parallel running tasks when downloading in the background.
  • the present invention provides a method for optimizing a download speed of a mobile terminal.
  • the method includes: detecting a status of the download task; setting a download period of the download task; and running the download task according to the set download cycle; the method further includes:
  • the download cycle is adjusted according to the status of the download task and the number of other tasks running in parallel; the adjusted download cycle is set to the current download cycle.
  • the adjusting the download period according to the status of the download task and other tasks running in parallel includes:
  • the number of other tasks running in parallel is detected; when it is determined that the number of other tasks running in parallel changes, the current download cycle is adjusted according to a predetermined rule according to the number of other tasks running in parallel.
  • the predetermined rule includes: increasing the current download cycle time as the number of other tasks running in parallel increases.
  • the predetermined rule specifically includes:
  • the method further includes: adjusting the current download period to the shortest download period when the status of the download task changes from the background to the foreground.
  • a system for optimizing a terminal mobile download speed comprising: a monitoring module, a downloading module, and a control module, wherein
  • a monitoring module configured to detect a status of the download task
  • the control module is configured to set a download cycle of the download task, adjust the download cycle according to the state of the download task, and set the adjusted download cycle to the current download cycle.
  • the monitoring module includes a detecting unit and a determining unit, where
  • a detecting unit configured to detect other parallel running when the status of the download task is in the background Number of services
  • control module includes an adjusting unit, configured to adjust the current download according to a predetermined rule according to the number of other parallel running tasks when the number of other parallel running tasks changes cycle.
  • the predetermined rule includes: increasing the current download cycle time as the number of other tasks running in parallel increases.
  • the predetermined rule specifically includes:
  • the shortest download period is: The drive period used by the timer when only the download task is running.
  • the detecting unit is further configured to detect a status of the download task
  • the adjusting unit is further configured to adjust the current download period to the shortest download period when the status of the download task changes from the background to the foreground.
  • the download cycle of the current download task is adjusted according to the number of other tasks running in parallel, and the download cycle can be updated in real time, which not only ensures the download speed to the greatest extent, but also does not affect the normal operation of other parallel running tasks; , while still reducing the speed, the CPU occupancy is significantly reduced.
  • FIG. 1 is a schematic structural view of an embodiment of a system according to the present invention.
  • FIG. 2 is a schematic structural view of another embodiment of the system of the present invention.
  • 3 is a flow chart of an embodiment of a method of the present invention.
  • FIG. 4 is a flowchart of adjusting a download cycle in an embodiment of a method according to the present invention.
  • FIG. 5 is a specific flowchart of an embodiment of a method according to the present invention. detailed description
  • the user uses the mobile phone to browse the webpage.
  • the download task is placed in the background, and the webpage is continuously browsed in the foreground.
  • the system has automatically increased the download cycle, and the user almost does not feel the impact of the download task on the operation of the browser.
  • the download task increases the download cycle again, thereby ensuring smooth user call answering.
  • the user revisits the webpage.
  • the download cycle of the download task is automatically shortened, and the download speed is increased.
  • the user calls the download manager again to view the download status.
  • the download period in the present invention refers to the end from the time when the download task is started this time until the next start of the download task.
  • the system for optimizing the download speed of the mobile terminal is as shown in FIG. 1 , and an implementation manner thereof includes: a monitoring module, a downloading module, and a control module, where
  • a monitoring module configured to detect a status of the download task
  • the control module is configured to set a download cycle of the download task, adjust the download cycle according to the state of the download task, and set the adjusted download cycle to the current download cycle.
  • the monitoring module includes a detecting unit and a determining unit, where
  • a detecting unit configured to detect other parallel running when the status of the download task is in the background Number of services
  • the determining unit is configured to determine whether the number of other parallel running tasks changes; the control module includes an adjusting unit, configured to adjust the current downloading period according to a predetermined rule according to the number of other tasks running in parallel when the number of other parallel running tasks changes.
  • the predetermined rules include: when the number of other tasks running in parallel increases, the current download cycle time increases.
  • the shortest download period is the drive period used by the timer when only the download task is running.
  • the monitoring module may further include a storage unit (not shown in FIG. 2) for saving the number of other parallel running tasks of the initial running, and further for saving when the determining unit determines that the number of other parallel running tasks changes, after the change The number of tasks running in parallel.
  • a storage unit not shown in FIG. 2 for saving the number of other parallel running tasks of the initial running, and further for saving when the determining unit determines that the number of other parallel running tasks changes, after the change The number of tasks running in parallel.
  • the detecting unit is further configured to detect a status of the downloading task.
  • the adjusting unit is further configured to adjust the current downloading period to the shortest downloading period.
  • the method for optimizing the download speed of the mobile terminal according to the present invention includes the following steps:
  • Step 302 Detect the status of the download task.
  • Step 304 Set the download period of the download task.
  • Step 306 Run the download task according to the set download cycle.
  • Step 308 Adjust the download period according to the status of the download task and other tasks running in parallel.
  • Step 310 Set the adjusted download cycle to the current download cycle.
  • Step 402 When the status of the download task is background, Detect the number of other tasks running in parallel.
  • Step 404 Determine whether the number of other tasks running in parallel has changed.
  • Step 406 If a change occurs, the current download cycle is adjusted according to a predetermined rule according to the number of other tasks running in parallel.
  • the predetermined rule includes: when the number of other tasks running in parallel increases, the current download cycle time increases.
  • the shortest download period is the drive period used by the timer when only the download task is running.
  • the method of the present invention will be specifically described below by taking a mobile phone as an example. Assume that the user selects a download link using the mobile phone. After the link is successful, the system opens the download manager, prompting the user, and after the user specifies the download location, the download task starts running. As shown in FIG. 5, the method for optimizing the download speed of the mobile terminal specifically includes the following steps:
  • Step 502 Start the download task. Start the download task on your phone, including launching the download manager and specifying the download path to start data download.
  • Step 504 Run the download task. After the download task is started, it is segmented. Each run is driven by a timer. Therefore, whenever the timer expires, the download process will run.
  • Step 506 Determine whether it is a background download: judge whether the download task is placed in the background, if yes, go to step 508, otherwise go to step 512.
  • Step 508 Obtain the number of other tasks running in parallel.
  • the detecting unit acquires the current number of other tasks running in parallel.
  • Step 510 Determine whether the number of other tasks running in parallel has changed. If the change occurs, go to step 518; if no change occurs, go to step 520.
  • Step 512 Get the status of the download task.
  • the status of the download task includes foreground download and background download.
  • the detection unit periodically detects and acquires the status of the download task.
  • Step 514 Determine whether the status of the download task changes, when the status of the download task occurs.
  • the change that is, the status of the download task is changed from the foreground download to the background download
  • the process proceeds to step 516; when the status of the download task has not changed, the process proceeds to step 520.
  • Step 516 Obtain the number of other tasks running in parallel. In this step, when the status of the download task is changed from the foreground to the background, the number of other tasks running in parallel is obtained.
  • Step 518 Adjust the download cycle of the download task.
  • the adjustment unit adjusts the current download period according to a predetermined rule according to the number of other tasks running in parallel, and the predetermined rules include:
  • the shortest download period is: The drive period used by the timer when only the download task is running.
  • Table 1 is a correspondence table between the mobile phone download period and other tasks running in parallel. From Table 1, the adjustment results obtained according to the above formula can be seen;
  • Step 520 Download the data.
  • Step 522 Determine whether the download task is completed.
  • step 524 After obtaining the downloaded data, determining whether the download task is completed, if the download task is completed, proceeding to step 524; if the download task is not completed, suspending the download task, and proceeding to step 504, waiting for the timer to drive the download task again .
  • Step 524 End the download task. After the download task is completed, the download task is ended and the system resources are recycled.
  • the download cycle of the download task can be updated in real time, which not only ensures the download speed to the greatest extent, but also does not affect the normal operation of other tasks.
  • the data obtained by the inventor after actual testing on a mobile phone shows that using the shortest download cycle to run the download task, you can see that the CPU occupancy rate is close to 70%, and the current download cycle is adjusted to four times the shortest download cycle. The CPU occupancy rate has dropped by nearly 7%. It can be seen that the use of the method of the present invention significantly reduces the CPU occupancy rate at the expense of a small download speed.

Abstract

A method for optimizing the download speed of a mobile terminal is provided in the present invention, which includes: detecting the state of a download task; setting a download period of the download task; performing the download task based on the download period; regulating the download period based on both the state of the download task and the number of other tasks performing in parallel; setting the regulated download period as current download period. The present invention also discloses a system for optimizing the download speed of a mobile terminal. The present invention regulates the download period of the download task based on the number of other tasks performing in parallel, thus increasing the response speed of the other tasks performing in parallel, and greatly improving the usage experience of a user.

Description

一种优化移动终端下载速度的方法及系统 技术领域  Method and system for optimizing download speed of mobile terminal
本发明涉及移动终端下载管理和性能优化的领域, 尤其涉及一种优化 移动终端下载速度的方法及系统。 背景技术  The present invention relates to the field of download management and performance optimization of mobile terminals, and in particular, to a method and system for optimizing download speed of a mobile terminal. Background technique
随着 2G 网络的日趋成熟, 3G 网络的渐渐完善, 加之无线应用协议 ( WAP, Wireless Application Protocol ) 的推广, 手机上网已经成为手机用 户熟悉而且钟爱的功能。 上网功能主要分为网页浏览和数据下载两个部分, 其中的下载资源除了音视频资源还有很多其它类型文件, 这些资源不但丰 富了生活, 也为曰常工作和学习带来了便利。  With the maturity of 2G networks, the gradual improvement of 3G networks, and the promotion of the WAP (Wireless Application Protocol), mobile Internet has become a familiar and favorite feature for mobile phone users. The Internet access function is mainly divided into two parts: web browsing and data downloading. Among them, there are many other types of files in addition to audio and video resources. These resources not only make life rich, but also bring convenience to work and study.
近年来, 随着手机性能飞速提高和无线网络带宽的提高, 高端手机不 但可以浏览器 WAP网页, 也可以浏览器 Web网页, 大大增加了无线网络 的资源, 各式各样的下载资源小到几 K, 大到几十兆, 甚至上百兆, 在用 户选择下载这样的资源时, 自然花费一些时间, 所以大多数用户会选择后 台下载, 而在前台进行其它操作。  In recent years, with the rapid improvement of mobile phone performance and the improvement of wireless network bandwidth, high-end mobile phones can not only use browser WAP pages, but also browser web pages, which greatly increase the resources of wireless networks, and various download resources are small. K, as large as a few tens of megabytes, or even hundreds of megabytes, naturally takes some time when users choose to download such resources, so most users will choose to download in the background and perform other operations in the foreground.
后台下载的优点显而易见, 但是, 当下载应用在后台进行高速下载时, 会占有系统的大量资源, 从而导致前台应用程序响应过慢, 影响用户的使 用。 发明内容  The advantages of background downloading are obvious. However, when downloading an application for high-speed download in the background, it will occupy a large amount of resources of the system, which may cause the foreground application to respond too slowly and affect the user's use. Summary of the invention
本发明要解决的主要技术问题是, 提供一种优化移动终端下载速度的 方法及系统, 能够在后台下载时, 减小对其它并行运行任务的影响。  The main technical problem to be solved by the present invention is to provide a method and system for optimizing the download speed of a mobile terminal, which can reduce the impact on other parallel running tasks when downloading in the background.
为解决上述技术问题, 本发明提供一种优化移动终端下载速度的方法, 包括: 检测下载任务的状态; 设置下载任务的下载周期; 按照设置的下载 周期运行下载任务; 该方法还包括: In order to solve the above technical problem, the present invention provides a method for optimizing a download speed of a mobile terminal. The method includes: detecting a status of the download task; setting a download period of the download task; and running the download task according to the set download cycle; the method further includes:
根据下载任务的状态及其它并行运行的任务数量调整下载周期; 将调 整后的下载周期设置为当前下载周期。  The download cycle is adjusted according to the status of the download task and the number of other tasks running in parallel; the adjusted download cycle is set to the current download cycle.
所述根据下载任务的状态及其它并行运行的任务数量调整下载周期包 括:  The adjusting the download period according to the status of the download task and other tasks running in parallel includes:
当所述下载任务的状态为后台时, 检测其它并行运行的任务数量; 在判断出其它并行运行的任务数量发生变化时, 根据其它并行运行的 任务数量按预定规则调整当前下载周期。  When the status of the download task is background, the number of other tasks running in parallel is detected; when it is determined that the number of other tasks running in parallel changes, the current download cycle is adjusted according to a predetermined rule according to the number of other tasks running in parallel.
所述预定规则包括: 当其它并行运行的任务数量增加时, 将当前下载 周期时间增长。  The predetermined rule includes: increasing the current download cycle time as the number of other tasks running in parallel increases.
所述预定规则具体包括:  The predetermined rule specifically includes:
当前下载周期 = (其它并行运行的任务数量 + 1 ) X最短下载周期; 其中, 最短下载周期为: 当只有下载任务运行时, 定时器所釆用的驱动周 期。  Current download cycle = (other number of tasks running in parallel + 1) X shortest download cycle; where, the shortest download cycle is: The drive cycle used by the timer when only the download task is running.
该方法还包括: 当下载任务的状态由后台变为前台时, 将当前下载周 期调整为最短下载周期。  The method further includes: adjusting the current download period to the shortest download period when the status of the download task changes from the background to the foreground.
一种优化终端移动下载速度的系统, 包括: 监听模块、 下载模块和控 制模块, 其中,  A system for optimizing a terminal mobile download speed, comprising: a monitoring module, a downloading module, and a control module, wherein
监听模块, 用于检测下载任务的状态;  a monitoring module, configured to detect a status of the download task;
下载模块, 用于按下载周期运行下载任务;  a download module for running a download task by download cycle;
控制模块, 用于设置下载任务的下载周期, 根据下载任务的状态调整 下载周期并将调整后的下载周期设置为当前下载周期。  The control module is configured to set a download cycle of the download task, adjust the download cycle according to the state of the download task, and set the adjusted download cycle to the current download cycle.
所述监听模块包括检测单元和判断单元, 其中,  The monitoring module includes a detecting unit and a determining unit, where
检测单元, 用于在下载任务的状态为后台时, 检测其它并行运行的任 务数量; a detecting unit, configured to detect other parallel running when the status of the download task is in the background Number of services;
判断单元, 用于判断其它并行运行的任务数量是否发生变化; 所述控制模块包括调整单元, 用于在其它并行运行的任务数量发生变 化时, 根据其它并行运行的任务数量按预定规则调整当前下载周期。  a judging unit, configured to determine whether the number of other parallel running tasks changes; the control module includes an adjusting unit, configured to adjust the current download according to a predetermined rule according to the number of other parallel running tasks when the number of other parallel running tasks changes cycle.
所述预定规则包括: 当其它并行运行的任务数量增加时, 将当前下载 周期时间增长。  The predetermined rule includes: increasing the current download cycle time as the number of other tasks running in parallel increases.
所述预定规则具体包括:  The predetermined rule specifically includes:
当前下载周期 = (其它并行运行的任务数量 + 1 ) X最短下载周期。 所述最短下载周期为: 当只有下载任务运行时, 定时器所釆用的驱动周期。  Current download cycle = (other number of tasks running in parallel + 1) X shortest download cycle. The shortest download period is: The drive period used by the timer when only the download task is running.
所述检测单元, 还用于检测下载任务的状态;  The detecting unit is further configured to detect a status of the download task;
所述调整单元, 还用于在下载任务的状态由后台变为前台时, 将当前 下载周期调整为最短下载周期。  The adjusting unit is further configured to adjust the current download period to the shortest download period when the status of the download task changes from the background to the foreground.
本发明的有益效果包括:  Advantageous effects of the present invention include:
(1) 本发明中, 由于根据下载任务的状态及并行运行任务的数量, 对下 载任务的下载周期进行了调整, 提升了其它并行运行任务的响应速度, 极 大程度地提升了用户的使用体验;  (1) In the present invention, since the download cycle of the download task is adjusted according to the state of the download task and the number of tasks running in parallel, the response speed of other parallel running tasks is improved, and the user experience is greatly improved. ;
(2) 本发明中, 当下载任务为后台下载时, 根据其它并行运行的任务数 量按预定规则调整当前下载周期的方法简单, 操作容易;  (2) In the present invention, when the download task is downloaded in the background, the method of adjusting the current download cycle according to a predetermined rule according to the number of other tasks running in parallel is simple and easy to operate;
(3)本发明中, 根据其它并行运行的任务数量调整当前下载任务的下载 周期, 可实时更新下载周期, 不但最大程度地保证了下载速度, 而且不会 影响其它并行运行任务的正常运行; 同时, 还在降低很少的速度的情况下, 明显地降低了 CPU的占有率。 附图说明  (3) In the present invention, the download cycle of the current download task is adjusted according to the number of other tasks running in parallel, and the download cycle can be updated in real time, which not only ensures the download speed to the greatest extent, but also does not affect the normal operation of other parallel running tasks; , while still reducing the speed, the CPU occupancy is significantly reduced. DRAWINGS
图 1为本发明系统实施方式中的结构示意图;  1 is a schematic structural view of an embodiment of a system according to the present invention;
图 2为本发明系统另一种实施方式中的结构示意图; 图 3为本发明方法实施方式中的流程图; 2 is a schematic structural view of another embodiment of the system of the present invention; 3 is a flow chart of an embodiment of a method of the present invention;
图 4为本发明方法实施方式中调整下载周期的流程图;  4 is a flowchart of adjusting a download cycle in an embodiment of a method according to the present invention;
图 5为本发明方法实施方式中的具体流程图。 具体实施方式  FIG. 5 is a specific flowchart of an embodiment of a method according to the present invention. detailed description
下面通过具体实施方式结合附图对本发明作进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
本发明的具体实施方式中, 用户使用手机进行网页浏览, 当用户选中 一个下载链接后, 将下载任务置于后台, 并在前台继续浏览网页。 当用户 浏览网页时, 系统已经自动增长了下载周期, 用户几乎感觉不到下载任务 对浏览器的运行带来的影响。 这时如有电话打进来, 用户选择接听电话时, 系统资源再次增加消耗, 这时, 下载任务再次增长下载周期, 从而保证用 户来电接听的顺畅。 接听完电话, 用户重新浏览网页, 这时下载任务的下 载周期会自动减短, 提高下载速度。 用户再次调出下载管理器查看下载情 况, 这时下载任务置于前台, 系统将下载周期设置为最短下载周期, 使系 统达到最快的下载速度。 本发明中的下载周期指从本次启动下载任务时起 到下次启动下载任务之前结束。  In a specific implementation manner of the present invention, the user uses the mobile phone to browse the webpage. When the user selects a download link, the download task is placed in the background, and the webpage is continuously browsed in the foreground. When the user browses the webpage, the system has automatically increased the download cycle, and the user almost does not feel the impact of the download task on the operation of the browser. At this time, if a call comes in, when the user chooses to answer the call, the system resources are increased again. At this time, the download task increases the download cycle again, thereby ensuring smooth user call answering. After receiving the call, the user revisits the webpage. At this time, the download cycle of the download task is automatically shortened, and the download speed is increased. The user calls the download manager again to view the download status. At this time, the download task is placed in the foreground, and the system sets the download cycle to the shortest download cycle, so that the system can achieve the fastest download speed. The download period in the present invention refers to the end from the time when the download task is started this time until the next start of the download task.
本发明中的其它并行运行任务, 是指除下载任务以外的正在并行运行 的任务。  Other parallel running tasks in the present invention refer to tasks that are running in parallel except for downloading tasks.
如图 1、图 2所示,本发明优化移动终端下载速度的系统,如图 1所示, 其一种实施方式包括: 监听模块、 下载模块和控制模块, 其中,  As shown in FIG. 1 and FIG. 2, the system for optimizing the download speed of the mobile terminal is as shown in FIG. 1 , and an implementation manner thereof includes: a monitoring module, a downloading module, and a control module, where
监听模块, 用于检测下载任务的状态;  a monitoring module, configured to detect a status of the download task;
下载模块, 用于按下载周期运行下载任务;  a download module for running a download task by download cycle;
控制模块, 用于设置下载任务的下载周期, 根据下载任务的状态调整 下载周期, 并将调整后的下载周期设置为当前下载周期。  The control module is configured to set a download cycle of the download task, adjust the download cycle according to the state of the download task, and set the adjusted download cycle to the current download cycle.
如图 2所示, 监听模块包括检测单元和判断单元, 其中,  As shown in FIG. 2, the monitoring module includes a detecting unit and a determining unit, where
检测单元, 用于在下载任务的状态为后台时, 检测其它并行运行的任 务数量; a detecting unit, configured to detect other parallel running when the status of the download task is in the background Number of services;
判断单元, 用于判断其它并行运行的任务数量是否发生变化; 控制模块包括调整单元, 用于在其它并行运行的任务数量发生变化时, 根据其它并行运行的任务数量按预定规则调整当前下载周期。 其中, 预定 规则包括: 当其它并行运行的任务数量增加时, 将当前下载周期时间增长。 在一种具体实施方式中, 具体可以是: 当前下载周期 = (其它并行运行的 任务数量 + 1 ) X最短下载周期。 其中, 最短下载周期为当只有下载任务 运行时, 定时器所釆用的驱动周期。  The determining unit is configured to determine whether the number of other parallel running tasks changes; the control module includes an adjusting unit, configured to adjust the current downloading period according to a predetermined rule according to the number of other tasks running in parallel when the number of other parallel running tasks changes. The predetermined rules include: when the number of other tasks running in parallel increases, the current download cycle time increases. In a specific implementation, the specific may be: current download cycle = (other number of tasks running in parallel + 1) X shortest download cycle. The shortest download period is the drive period used by the timer when only the download task is running.
监听模块还可以包括存储单元(图 2中未示出), 用于保存初始运行的 其它并行运行的任务数量, 还进一步用于保存当判断单元判断其它并行运 行的任务数量发生变化时, 变化后的并行运行的任务数量。  The monitoring module may further include a storage unit (not shown in FIG. 2) for saving the number of other parallel running tasks of the initial running, and further for saving when the determining unit determines that the number of other parallel running tasks changes, after the change The number of tasks running in parallel.
检测单元, 还用于检测下载任务的状态, 当下载任务的状态由后台变 为前台时, 所述调整单元, 还用于将当前下载周期调整为最短下载周期。  The detecting unit is further configured to detect a status of the downloading task. When the status of the downloading task is changed from the background to the foreground, the adjusting unit is further configured to adjust the current downloading period to the shortest downloading period.
本发明优化移动终端下载速度的方法, 其一种实施方式, 如图 3所示, 包括以下步骤:  The method for optimizing the download speed of the mobile terminal according to the present invention, as shown in FIG. 3, includes the following steps:
步骤 302: 检测下载任务的状态。  Step 302: Detect the status of the download task.
步骤 304: 设置下载任务的下载周期。  Step 304: Set the download period of the download task.
步骤 306: 按照设置的下载周期运行下载任务。  Step 306: Run the download task according to the set download cycle.
步骤 308:根据下载任务的状态及其它并行运行的任务数量调整下载周 期。  Step 308: Adjust the download period according to the status of the download task and other tasks running in parallel.
步骤 310: 将调整后的下载周期设置为当前下载周期。  Step 310: Set the adjusted download cycle to the current download cycle.
本发明优化移动终端下载速度的方法, 其中根据下载任务的状态及其 它并行运行的任务数量调整下载周期, 如图 4所示, 可以包括以下步骤: 步骤 402:当下载任务的状态为后台时,检测其它并行运行的任务数量。 步骤 404: 判断其它并行运行的任务数量是否发生变化。 步骤 406: 若发生变化, 根据其它并行运行的任务数量按预定规则调整 当前下载周期。 The method for optimizing the download speed of the mobile terminal, wherein the download period is adjusted according to the state of the download task and the number of other tasks running in parallel, as shown in FIG. 4, the following steps may be included: Step 402: When the status of the download task is background, Detect the number of other tasks running in parallel. Step 404: Determine whether the number of other tasks running in parallel has changed. Step 406: If a change occurs, the current download cycle is adjusted according to a predetermined rule according to the number of other tasks running in parallel.
其中, 预定规则包括: 当其它并行运行的任务数量增加时, 将当前下 载周期时间增长。 在一种具体实施方式中, 具体可以是: 当前下载周期 = (其它并行运行的任务数量 + 1 ) X最短下载周期。 其中, 最短下载周期 为当只有下载任务运行时, 定时器所釆用的驱动周期。  The predetermined rule includes: when the number of other tasks running in parallel increases, the current download cycle time increases. In a specific implementation, the specific may be: current download cycle = (other number of tasks running in parallel + 1) X shortest download cycle. The shortest download period is the drive period used by the timer when only the download task is running.
下面以手机为例, 具体说明本发明的方法。 假定用户使用手机选中一 个下载链接, 链接成功后, 系统打开下载管理器, 提示用户, 用户指定好 下载位置后, 下载任务便开始运行。 如图 5 所示, 该优化移动终端下载速 度的方法, 具体包括以下步骤:  The method of the present invention will be specifically described below by taking a mobile phone as an example. Assume that the user selects a download link using the mobile phone. After the link is successful, the system opens the download manager, prompting the user, and after the user specifies the download location, the download task starts running. As shown in FIG. 5, the method for optimizing the download speed of the mobile terminal specifically includes the following steps:
步骤 502: 启动下载任务。 在手机上启动下载任务, 包括启动下载管理 器和指定下载路径, 开始数据下载。  Step 502: Start the download task. Start the download task on your phone, including launching the download manager and specifying the download path to start data download.
步骤 504: 运行下载任务。 下载任务启动后是分段进行的, 每次运行都 是靠定时器(Timer ) 来去驱动, 所以每当定时器到时的时候, 便会运行一 次下载流程;  Step 504: Run the download task. After the download task is started, it is segmented. Each run is driven by a timer. Therefore, whenever the timer expires, the download process will run.
步骤 506: 判断是否为后台下载: 判断下载任务是否被置于后台, 如果 是, 转入步骤 508, 否则转入步骤 512。  Step 506: Determine whether it is a background download: judge whether the download task is placed in the background, if yes, go to step 508, otherwise go to step 512.
步骤 508: 获取其它并行运行的任务数量。 本步骤中, 当下载任务在后 台运行时, 检测单元获取当前其它并行运行的任务数量。  Step 508: Obtain the number of other tasks running in parallel. In this step, when the download task is running in the background, the detecting unit acquires the current number of other tasks running in parallel.
步骤 510: 判断其它并行运行的任务数量是否发生变化, 如果发生变化 转入步骤 518; 如果未发生变化, 转入步骤 520。  Step 510: Determine whether the number of other tasks running in parallel has changed. If the change occurs, go to step 518; if no change occurs, go to step 520.
步骤 512: 获取下载任务的状态。 下载任务的状态包括前台下载和后台 下载, 当下载任务被置于前台运行时, 检测单元定时检测并获取下载任务 的状态。  Step 512: Get the status of the download task. The status of the download task includes foreground download and background download. When the download task is placed in the foreground, the detection unit periodically detects and acquires the status of the download task.
步骤 514: 判断下载任务的状态是否发生变化, 当下载任务的状态发生 变化时, 即下载任务的状态由前台下载变为后台下载时, 转入步骤 516; 当 下载任务的状态未发生变化时, 转入步骤 520。 Step 514: Determine whether the status of the download task changes, when the status of the download task occurs. When the change, that is, the status of the download task is changed from the foreground download to the background download, the process proceeds to step 516; when the status of the download task has not changed, the process proceeds to step 520.
步骤 516: 获取其它并行运行的任务数量。 本步骤中, 当下载任务的状 态由前台转变为后台时, 获取其它并行运行的任务数量。  Step 516: Obtain the number of other tasks running in parallel. In this step, when the status of the download task is changed from the foreground to the background, the number of other tasks running in parallel is obtained.
步骤 518: 调整下载任务的下载周期。  Step 518: Adjust the download cycle of the download task.
当下载任务的相关数据发生变化时, 如果其它并行运行的任务数量发 生变化时, 调整单元根据其它并行运行的任务数量按预定规则调整当前下 载周期, 预定规则包括:  When the related data of the download task changes, if the number of other tasks running in parallel changes, the adjustment unit adjusts the current download period according to a predetermined rule according to the number of other tasks running in parallel, and the predetermined rules include:
当前下载周期 = (其它并行运行的任务数量 + 1 ) X最短下载周期。 其中, 最短下载周期为: 当只有下载任务运行时, 定时器所釆用的驱动周 期。  Current download cycle = (other number of tasks running in parallel + 1) X shortest download cycle. The shortest download period is: The drive period used by the timer when only the download task is running.
表 1为手机下载周期和其它并行运行的任务数量的对应表, 从表 1中, 可以看到根据上面公式计算后所得到的调整结果;  Table 1 is a correspondence table between the mobile phone download period and other tasks running in parallel. From Table 1, the adjustment results obtained according to the above formula can be seen;
Figure imgf000009_0001
Figure imgf000009_0001
表 1  Table 1
步骤 520: 下载数据。  Step 520: Download the data.
步骤 522: 判断是否完成下载任务。  Step 522: Determine whether the download task is completed.
本步骤中, 获得下载数据后, 判断下载任务是否完成, 如果下载任务 完成, 转入步骤 524; 如果下载任务没有完成, 挂起下载任务, 并转入步骤 504, 等待定时器再次驱动运行下载任务。  In this step, after obtaining the downloaded data, determining whether the download task is completed, if the download task is completed, proceeding to step 524; if the download task is not completed, suspending the download task, and proceeding to step 504, waiting for the timer to drive the download task again .
步骤 524: 结束下载任务。 下载任务完成后, 结束下载任务, 回收系统 资源。  Step 524: End the download task. After the download task is completed, the download task is ended and the system resources are recycled.
这样下载任务的下载周期可以实时更新, 不但最大程度保证了下载速 度, 同时也不会影响其它任务的正常运行。 本发明人经过在一款手机上实际测试后得到的数据显示, 使用最短下 载周期运行下载任务, 可以看到 CPU的占有率接近 70% , 将当前下载周期 调整为最短下载周期的四倍时, CPU的占有率下降了近 7%, 可以看出在牺 牲下载速度很小的情况下, 釆用本发明方法明显降低了 CPU的占有率。 In this way, the download cycle of the download task can be updated in real time, which not only ensures the download speed to the greatest extent, but also does not affect the normal operation of other tasks. The data obtained by the inventor after actual testing on a mobile phone shows that using the shortest download cycle to run the download task, you can see that the CPU occupancy rate is close to 70%, and the current download cycle is adjusted to four times the shortest download cycle. The CPU occupancy rate has dropped by nearly 7%. It can be seen that the use of the method of the present invention significantly reduces the CPU occupancy rate at the expense of a small download speed.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明, 不 能认定本发明的具体实施只局限于这些说明。 对于本发明所属技术领域的 普通技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若干简单 推演或替换, 都应当视为属于本发明的保护范围。  The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It is to be understood by those skilled in the art that the present invention may be practiced without departing from the spirit and scope of the invention.

Claims

权利要求书 Claim
1、 一种优化移动终端下载速度的方法, 其特征在于, 包括: 检测下载 任务的状态; 设置下载任务的下载周期; 按照设置的下载周期运行下载任 务; 该方法还包括:  A method for optimizing download speed of a mobile terminal, comprising: detecting a status of a download task; setting a download cycle of the download task; and running a download task according to the set download cycle; the method further comprising:
根据下载任务的状态及其它并行运行的任务数量调整下载周期; 将调 整后的下载周期设置为当前下载周期。  The download cycle is adjusted according to the status of the download task and the number of other tasks running in parallel; the adjusted download cycle is set to the current download cycle.
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据下载任务的状 态及其它并行运行的任务数量调整下载周期包括:  2. The method according to claim 1, wherein the adjusting the download period according to the status of the download task and the number of other tasks running in parallel comprises:
当所述下载任务的状态为后台时, 检测其它并行运行的任务数量; 在判断出其它并行运行的任务数量发生变化时, 根据其它并行运行的 任务数量按预定规则调整当前下载周期。  When the status of the download task is background, the number of other tasks running in parallel is detected; when it is determined that the number of other tasks running in parallel changes, the current download cycle is adjusted according to a predetermined rule according to the number of other tasks running in parallel.
3、 根据权利要求 2所述的方法, 其特征在于, 所述预定规则包括: 当 其它并行运行的任务数量增加时, 将当前下载周期时间增长。  3. The method according to claim 2, wherein the predetermined rule comprises: increasing a current download cycle time when the number of other tasks running in parallel increases.
4、根据权利要求 3所述的方法, 其特征在于, 所述预定规则具体包括: 当前下载周期 = (其它并行运行的任务数量 + 1 ) X最短下载周期; 其中, 最短下载周期为: 当只有下载任务运行时, 定时器所釆用的驱动周 期。  The method according to claim 3, wherein the predetermined rule specifically comprises: a current download period = (other number of tasks running in parallel + 1) X shortest download period; wherein, the shortest download period is: when only The drive cycle used by the timer when the download task is running.
5、 根据权利要求 4所述的方法, 其特征在于, 该方法还包括: 当下载 任务的状态由后台变为前台时, 将当前下载周期调整为最短下载周期。  The method according to claim 4, wherein the method further comprises: adjusting the current download period to the shortest download period when the status of the download task changes from the background to the foreground.
6、 一种优化终端移动下载速度的系统, 其特征在于, 包括: 监听模块、 下载模块和控制模块, 其中,  A system for optimizing a mobile terminal download speed, comprising: a monitoring module, a downloading module, and a control module, wherein
监听模块, 用于检测下载任务的状态;  a monitoring module, configured to detect a status of the download task;
下载模块, 用于按下载周期运行下载任务;  a download module for running a download task by download cycle;
控制模块, 用于设置下载任务的下载周期, 根据下载任务的状态调整 下载周期并将调整后的下载周期设置为当前下载周期。 The control module is configured to set a download cycle of the download task, adjust the download cycle according to the state of the download task, and set the adjusted download cycle to the current download cycle.
7、 根据权利要求 6所述的系统, 其特征在于, 所述监听模块包括检测 单元和判断单元, 其中, The system according to claim 6, wherein the monitoring module comprises a detecting unit and a determining unit, wherein
检测单元, 用于在下载任务的状态为后台时, 检测其它并行运行的任 务数量;  a detecting unit, configured to detect the number of other tasks running in parallel when the status of the download task is in the background;
判断单元, 用于判断其它并行运行的任务数量是否发生变化; 所述控制模块包括调整单元, 用于在其它并行运行的任务数量发生变 化时, 根据其它并行运行的任务数量按预定规则调整当前下载周期。  a judging unit, configured to determine whether the number of other parallel running tasks changes; the control module includes an adjusting unit, configured to adjust the current download according to a predetermined rule according to the number of other parallel running tasks when the number of other parallel running tasks changes cycle.
8、 根据权利要求 7所述的系统, 其特征在于, 所述预定规则包括: 当 其它并行运行的任务数量增加时, 将当前下载周期时间增长。  8. The system according to claim 7, wherein the predetermined rule comprises: increasing a current download cycle time when the number of other tasks running in parallel increases.
9、根据权利要求 8所述的系统, 其特征在于, 所述预定规则具体包括: 当前下载周期 = (其它并行运行的任务数量 + 1 ) X最短下载周期。 所述最短下载周期为: 当只有下载任务运行时, 定时器所釆用的驱动周期。  The system according to claim 8, wherein the predetermined rule specifically comprises: a current download period = (other number of tasks running in parallel + 1) X shortest download period. The shortest download period is: The drive period used by the timer when only the download task is running.
10、 根据权利要求 9所述的系统, 其特征在于, 所述检测单元, 还用 于检测下载任务的状态;  The system according to claim 9, wherein the detecting unit is further configured to detect a status of the download task;
所述调整单元, 还用于在下载任务的状态由后台变为前台时, 将当前 下载周期调整为最短下载周期。  The adjusting unit is further configured to adjust the current download period to the shortest download period when the status of the download task changes from the background to the foreground.
PCT/CN2010/075878 2010-03-24 2010-08-11 Method and system for optimizing download speed of mobile terminal WO2011116576A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010135144.X 2010-03-24
CN201010135144A CN101827354A (en) 2010-03-24 2010-03-24 Method and system for optimizing download speed of mobile terminal

Publications (1)

Publication Number Publication Date
WO2011116576A1 true WO2011116576A1 (en) 2011-09-29

Family

ID=42691007

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/075878 WO2011116576A1 (en) 2010-03-24 2010-08-11 Method and system for optimizing download speed of mobile terminal

Country Status (2)

Country Link
CN (1) CN101827354A (en)
WO (1) WO2011116576A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291799A (en) * 2020-10-23 2021-01-29 北京小米移动软件有限公司 Download network speed determining method and device, user equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951642A (en) * 2010-09-16 2011-01-19 中兴通讯股份有限公司 Method and device for regulating download speed of mobile terminal
CN102480470B (en) * 2010-11-29 2015-04-29 腾讯科技(深圳)有限公司 Method for downloading game, apparatuses thereof and system thereof
CN110445867A (en) * 2019-08-12 2019-11-12 深圳市网心科技有限公司 A kind of event distributing method, device, system and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652536A (en) * 2004-02-06 2005-08-10 三星电子株式会社 Home network system for adjusting data transmission rate and method thereof
CN101039187A (en) * 2006-03-17 2007-09-19 腾讯科技(深圳)有限公司 Method for downloading data and system thereof
CN101453295A (en) * 2007-12-06 2009-06-10 英业达股份有限公司 Method for regulating network data sending speed according to data processing speed of customer terminal
US20090147732A1 (en) * 2007-12-06 2009-06-11 Ralink Technology Corporation Method for adjusting transmission speed of wireless network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100664955B1 (en) * 2005-10-20 2007-01-04 삼성전자주식회사 Method for controlling download speed of broadcast receiving device and apparatus for the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652536A (en) * 2004-02-06 2005-08-10 三星电子株式会社 Home network system for adjusting data transmission rate and method thereof
CN101039187A (en) * 2006-03-17 2007-09-19 腾讯科技(深圳)有限公司 Method for downloading data and system thereof
CN101453295A (en) * 2007-12-06 2009-06-10 英业达股份有限公司 Method for regulating network data sending speed according to data processing speed of customer terminal
US20090147732A1 (en) * 2007-12-06 2009-06-11 Ralink Technology Corporation Method for adjusting transmission speed of wireless network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291799A (en) * 2020-10-23 2021-01-29 北京小米移动软件有限公司 Download network speed determining method and device, user equipment and storage medium
CN112291799B (en) * 2020-10-23 2024-04-09 北京小米移动软件有限公司 Method and device for determining download network speed, user equipment and storage medium

Also Published As

Publication number Publication date
CN101827354A (en) 2010-09-08

Similar Documents

Publication Publication Date Title
KR101326390B1 (en) Power optimisation of a mobile device using transmission requests delaying based on historical user behavior
EP2597912A1 (en) File downloading method and device based on wireless fidelity wifi
EP2664214B1 (en) Method for multipath scheduling based on a lookup table
EP2487883B1 (en) Browser adjusting method and mobile terminal
CN102377588B (en) Network transmission control method and system
US8407310B2 (en) Method for data communication, data communication system and mobile communication terminal
WO2013007147A1 (en) Webpage browsing method and device
CN103222254B (en) Portable terminal and communication control method
WO2011017890A1 (en) Multimode mobile terminal and method for downloading resources thereof
JP5161400B2 (en) Terminal device, data receiving method, data receiving program
WO2012048539A1 (en) Method for downloading data and mobile terminal
CN105873022A (en) Downloading method and device for mobile terminal
WO2011116576A1 (en) Method and system for optimizing download speed of mobile terminal
WO2013071747A1 (en) Method and apparatus for obtaining file
WO2014187220A1 (en) Electronic device, storage medium and file transferrting method
WO2011143865A1 (en) Processing method and apparatus for load balancing in side of mobile terminal supporting cloud computing
WO2015043406A1 (en) Method and device for acquiring streaming media data, and storage medium
JP2006100885A (en) Streaming data receiving and reproducing terminal
US11502925B2 (en) Information processing terminal and control method
WO2013013561A1 (en) Method and apparatus for downloading web content
JP5517951B2 (en) TCP transmission control apparatus and TCP transmission control method
WO2022206132A1 (en) Network switching method, storage medium, and electronic device
WO2012024863A1 (en) Mobile terminal and download method thereof
JP6129526B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
WO2013167061A2 (en) Method, device, system and user equipment for updating applications

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: 10848238

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: 10848238

Country of ref document: EP

Kind code of ref document: A1