CN105873022A - Downloading method and device for mobile terminal - Google Patents
Downloading method and device for mobile terminal Download PDFInfo
- Publication number
- CN105873022A CN105873022A CN201510888478.7A CN201510888478A CN105873022A CN 105873022 A CN105873022 A CN 105873022A CN 201510888478 A CN201510888478 A CN 201510888478A CN 105873022 A CN105873022 A CN 105873022A
- Authority
- CN
- China
- Prior art keywords
- network
- downloaded
- current
- download
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
Abstract
The embodiment of the invention provides a downloading method and device for a mobile terminal, relates to the field of mobile internets, and solves the disadvantage that the whole operates slowly, even a memory overflows, due to the fact that the number of downloading threads of the mobile terminal is too large in the prior art. The method comprises the following steps of: judging a downloading network environment including a mobile network and a WiFi network; monitoring whether the network flow of the mobile terminal is up to a pre-set flow threshold value while judging that the network environment is the WiFi network; reducing the number of currently downloading network threads if the network flow is up to the flow threshold value; and adjusting the number of the currently downloading network threads according to the current network speed if the network flow is not up to the flow threshold value. According to the embodiment of the invention, the purpose of rapidly and stably downloading in the mobile terminal can be realized by dynamically adjusting the number of the network threads.
Description
Technical field
The present embodiments relate to mobile Internet field, particularly relate to a kind of downloading method of mobile terminal and
Device.
Background technology
Along with the development of mobile Internet, the function of smart mobile phone from strength to strength, owing to user is to intelligence
The demand of handset capability is more and more higher, it is therefore desirable to smart mobile phone carries out upgrading in every respect and optimizes.Its
In, it is most commonly that the hardware to smart mobile phone is upgraded, although the hardware configuration of current smart mobile phone
The highest, but still there is certain gap compared with computer, therefore also need to the operation at smart mobile phone
It is optimized by aspect.
During using smart mobile phone, inventor finds: along with the network bandwidth and the raising of network speed,
User needs to have more preferable downloading experience on smart mobile phone, due to be loaded under single-threaded network fluctuation or
Speed of download and download efficiency under vulnerable network environment are too low, therefore start to commonly use many in prior art
Thread is downloaded.But in the case of mobile terminal limited memory, too much or consume energy when downloading Thread Count
Time excessive, the situation that the overall operation of smart mobile phone can be caused the most even to occur that internal memory overflows occurs, and makes
Become the Consumer's Experience of extreme difference, the most how can realize on mobile-terminal platform the most more stable under
Load becomes problem demanding prompt solution during use mobile terminal.
Summary of the invention
The embodiment of the present invention provides a kind of downloading method of mobile terminal and device, in order to solve in prior art
The defect that overall operation the most even internal memory overflows is caused when the downloading wire number of passes of mobile terminal is too much, logical
Cross and dynamically adjust the purpose that network thread quantity realizes downloading at mobile terminal fast and stable.
The embodiment of the present invention provides a kind of downloading method of mobile terminal, including:
Judging the network environment downloaded, described network environment includes: mobile network and WiFi network;
When judging that described network environment is WiFi network, whether the network traffics of monitoring mobile terminal reach
The flow threshold preset;
If described network traffics reach described flow threshold, then reduce the current network thread quantity downloaded;
If described network traffics are not up to described flow threshold, then adjust current download according to current network speed
Network thread quantity.
The embodiment of the present invention provides a kind of mobile terminal download apparatus, including:
Judging unit, for judge download network environment, described network environment includes: mobile network and
WiFi network;
Monitoring unit, for when described judging unit judges that described network environment is WiFi network, monitors
Whether the network traffics of mobile terminal reach default flow threshold;
Processing unit, for reaching described flow threshold when described monitoring unit monitors described network traffics,
Reduce the current network thread quantity downloaded;
Described processing unit is additionally operable to be not up to described stream when described monitoring unit monitors described network traffics
Amount threshold value, then adjust the current network thread quantity downloaded according to current network speed.
The downloading method of mobile terminal of embodiment of the present invention offer and device, it is possible to the net downloaded by judgement
Network environment, monitors the network traffics that mobile terminal is current, when monitoring network flow when being in WiFi network
When amount reaches default flow threshold, reduce the current network thread quantity downloaded;When monitoring network flow
During the flow threshold that amount is not up to preset, adjust the current network thread quantity downloaded according to current network speed.
The embodiment of the present invention, based on the real-time network traffics of mobile terminal and network speed, does not reaches in network traffics
On the premise of flow threshold, dynamically adjust network thread quantity thus make full use of the network bandwidth, it is achieved
The purpose that mobile terminal fast and stable is downloaded, solves in prior art when the downloading wire number of passes mistake of mobile terminal
Defect that is many or that cause overall operation the most even internal memory to overflow when consuming energy excessive.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under,
Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The flow chart of a kind of downloading method of mobile terminal that Fig. 1 provides for the embodiment of the present invention;
The composition frame chart of a kind of mobile terminal download apparatus that Fig. 2 provides for the embodiment of the present invention;
The composition frame chart of the another kind of mobile terminal download apparatus that Fig. 3 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Along with the universal of the mobile terminals such as smart mobile phone and development, the requirement of mobile terminal performance is got over by people
Come the highest.Wherein, due to the network bandwidth and the raising of network speed, under making user intentionally get preferably
Carrier is tested, but in existing download scenarios, when the network thread downloaded, too much or network traffics disappear
When consuming excessive, the situation that whole running of mobile terminal the most even internal memory can be caused to overflow occurs, and causes pole
The Consumer's Experience of difference.
In order to solve the problems referred to above, the embodiment of the present invention provides a kind of downloading method of mobile terminal, such as Fig. 1
Shown in, described method includes:
101, the network environment downloaded is judged.
Existing perform downloading task by mobile terminal time, after needing even to connect mobile terminal to the Net
Data content required for download, its network environment residing when connecting network generally includes: mobile network
And WiFi network.Wherein, mobile network includes common 2G network, 3G network, 4G network etc.,
But when mobile terminal uses these mobile networks to download data, higher traffic fee can be produced;And WiFi
Web vector graphic WiFi wireless signal makes mobile terminal can not pass through 2G network, 3G network, 4G network
Get online without being tethered to a cable Deng mobile network, thus save the traffic fee produced when downloading data;Meanwhile, logical
Stability and the data interaction speed of crossing WiFi network online will be substantially better than 2G network, 3G net
The mobile networks such as network, 4G network.Therefore the embodiment of the present invention needs the net judging to download in a step 101
Network environment, formulates different download policy according to different network environments.
102, when judging that network environment is WiFi network, whether the network traffics of monitoring mobile terminal reach
To the flow threshold preset.
Generally network traffics refer to the data volume of transmission over networks, and mobile terminal is downloading number on network
According to time also can produce certain data volume, the network traffics that namely mobile terminal produces when downloading.For
For network, the size of the network traffics great significance for design to the network architecture, just as according to dealing
Vehicle number with flow to design the width of road similar with connected mode, using mobile terminal download
During data, it is also desirable to design mobile terminal uses network flow quantitative limitation, if mobile terminal is not downloaded
Time the network traffics that produce limit, then from network to meeting when transmitting substantial amounts of data mobile terminal
Produce " Data Storm ", after causing the internal memory of mobile terminal, CPU etc. to process resource overload, can make
The operation collapse of mobile terminal.Accordingly, it would be desirable to mobile terminal to be preset a flow threshold, namely move
Dynamic terminal current properly functioning time the maximum of network traffics that can bear, when mobile terminal is currently downloaded
After the network traffics produced exceed default flow threshold, it will have a strong impact on the properly functioning of mobile terminal.
In embodiments of the present invention, when judging that the network environment downloaded is WiFi network by step 101
Time, although without the concern for the traffic fee produced when downloading data, but in order to avoid mobile terminal uses
Causing running of mobile terminal to collapse during excessive network traffics, the embodiment of the present invention also needs to perform step 102
When judging that network environment is WiFi network, whether the network traffics of monitoring mobile terminal reach default stream
Amount threshold value.
103, the current network thread quantity downloaded is reduced.
When monitoring, by step 102, the flow that the network traffics produced when mobile terminal is downloaded reach default
During threshold value, illustrate that current mobile terminal obtains substantial amounts of network traffics from network, reached to move
The load capacity limit of dynamic terminal.Owing to a network thread can obtain certain network traffics, therefore
When the network traffics of mobile terminal reach default flow threshold, illustrate that now network thread quantity is too much
And obtain too much network traffics.Therefore, in order to avoid running of mobile terminal collapses, mobile terminal is made
Can be more stable complete downloading task, the embodiment of the present invention needs to perform step 103 when monitoring movement
When the network traffics produced during terminal downloads reach default flow threshold, reduce the current grid line downloaded
Number of passes amount.
104, the current network thread quantity downloaded is adjusted according to current network speed.
When monitoring, by step 102, the stream that the network traffics produced when mobile terminal is downloaded not up to are preset
During amount threshold value, illustrate that the load capacity of mobile terminal can also carry more network traffics, due to one
Network thread can obtain certain network traffics, therefore not up to presets when the network traffics of mobile terminal
Flow threshold time, illustrate that now mobile terminal can also be set up more network thread and obtain more
Network traffics, promote the speed of download of mobile terminal.Therefore, in order to make mobile terminal the most more stable
Completing downloading task, the embodiment of the present invention needs to perform step 103 and produces when monitoring mobile terminal and downloading
During the flow threshold that raw network traffics are not up to preset, adjust the current network downloaded according to current network speed
Number of threads.
The downloading method of mobile terminal that the embodiment of the present invention provides, it is possible to the network environment downloaded by judgement,
Monitor the network traffics that mobile terminal is current when being in WiFi network, reach pre-when monitoring network traffics
If flow threshold time, reduce the current network thread quantity downloaded;When monitoring network traffics not up to
During the flow threshold preset, adjust the current network thread quantity downloaded according to current network speed.The present invention is real
Execute example based on the real-time network traffics of mobile terminal and network speed, do not reach flow threshold in network traffics
On the premise of, dynamically adjust network thread quantity thus make full use of the network bandwidth, it is achieved at mobile terminal
The purpose that fast and stable is downloaded, solves in prior art when the downloading wire number of passes of mobile terminal is too much or consumption
Energy causes the defect that overall operation the most even internal memory overflows time excessive.
In order to preferably understand the method shown in Fig. 1, the embodiment of the present invention will be to use intelligence hands
As a example by machine is downloaded, it is described in detail for each step in Fig. 1.
Owing to the embodiment of the present invention is when adjusting the download policy of smart mobile phone, need to judge currently to download institute
The network environment at place, and mobile network belongs to vulnerable network for WiFi network, its stability in the large
With speed all not as good as WiFi network, therefore when judging that current download uses mobile network, the present invention implements
Example is downloaded still according to original network thread quantity, it is not necessary to adjust current network thread quantity,
If because increasing network thread quantity, too much traffic fee not only can be produced, but also is likely to result in download
Process is unstable;If reducing network thread quantity, download efficiency can be affected.
The mobile networks such as 2G network, 3G network it are better than due to WiFi network stability in the large and speed,
And without the concern for traffic fee when using WiFi network, therefore the embodiment of the present invention is mainly for intelligence hands
Machine download policy under WiFi network environment adjusts, when judging that current download uses WiFi network,
Need the current network flow of monitoring intelligent mobile phone.During monitoring intelligent mobile phone current network flow,
If find current smart mobile phone suspend download, leave download the page or carry out other need not use flow
Operation (namely operate without networking) time, the backstage download function of smart mobile phone can be started, will
Downloading task is downloaded on backstage, namely carries out backstage and mourns in silence download, and the data downloaded on backstage
Cache, in the cache file on concrete data write backstage backstage can downloaded.The present invention is real
Execute example and carried out, by backstage, download of mourning in silence in the download gap of smart mobile phone, do not affect other of smart mobile phone
On the premise of operation, the data that backstage is downloaded are cached, in order to when smart mobile phone continues downloading task
Directly can read the data downloaded from cache file, thus significantly improve speed of download, and
And it is quick to read this process stabilization of data downloaded from cache file, is not affected by network state.
Owing to smart mobile phone can produce network traffics when from network download data, if smart mobile phone is current
Download the operation stability influencing whether smart mobile phone when producing excessive network traffics.Therefore, in monitoring
During smart mobile phone current network flow, if finding when current smart mobile phone is normally downloaded, need prison
Whether the network traffics of control smart mobile phone reach default flow threshold.The flow threshold preset is typically intelligence
The maximum network flow that energy mobile phone can bear when normal download data, smart mobile phone is when downloading data
When the network traffics only produced are less than the flow threshold preset, could stably download data.
Therefore, when the network traffics monitoring smart mobile phone reach default flow threshold, need to reduce
The current network thread quantity downloaded.Concrete, when reducing the current network thread quantity downloaded, this
Inventive embodiments except random reduce this simple mode of network thread quantity in addition to, more importantly basis
The network traffic conditions of current smart mobile phone carries out adaptability reduction to network thread quantity.Wherein, intelligence is worked as
The current network traffics of mobile phone can reach default flow threshold, or differ not with default flow threshold
Time big, can be that each downloading task distributes network thread according to default individual task network thread quantity,
Such as presetting individual task network thread quantity is 3, then one downloading task of explanation can only distribute 3
Network thread, if smart mobile phone currently performs 2 downloading task, each downloading task can only be distributed
To 3 network thread.Certainly, above-mentioned default individual task network thread quantity is an example, no
Only can preset individual task network thread quantity is 3, it is also possible to digital for other, as long as fall can be reached
The network thread quantity of low current download.When the network traffics that smart mobile phone is current reach default stream
Amount two times of threshold value, or when being more or less the same with two times of default flow threshold, can be according to default rule
Then distribute a network thread for downloading task, such as, when current smart mobile phone performs a downloading task
Use 5 network thread, then need the network thread quantity of described downloading task to be dropped according to preset rules
As little as 1.Needing exist for explanation, the above-mentioned network traffics current at smart mobile phone reach default
In the case of two kinds of flow threshold reduce network thread quantity processing mode be the embodiment of the present invention can
Select embodiment, as long as after the current network traffics of smart mobile phone reach default flow threshold, any
Reduce the mode of network thread quantity all in the process range of the embodiment of the present invention.
When the flow threshold that the network traffics monitoring smart mobile phone are not up to preset, can only illustrate current
The load of smart mobile phone can also continue to increase network thread, but determine final network thread quantity time
Wait the current network flow of smart mobile phone to be considered, in addition it is also necessary to consider current network speed.Therefore
When the flow threshold that the network traffics monitoring smart mobile phone are not up to preset, the embodiment of the present invention is not
It is necessarily to increase network thread quantity, but needs to adjust the current network thread downloaded according to current network speed
Quantity.During reality adjusts the current network thread quantity downloaded according to current network speed, first need
Obtain current network speed, can periodically obtain current net in embodiments of the present invention according to prefixed time interval
Speed, it is also possible to obtain current network speed in real time, concrete can send a ping order by smart mobile phone
Server or conventional network address to downloading task obtain real-time network speed.If the current network speed got is just
Often, when namely current network speed is not less than default network speed, and memory usage is less than presetting EMS memory occupation
During rate threshold value, illustrate that each side resource can meet the requirement increasing network thread, therefore can increase
The network thread quantity of downloading task;If the current network speed got is poor, namely current network speed is less than pre-
If during network speed, illustrate that current network speed is insufficient for current network thread quantity, it is therefore desirable under minimizing
The network thread quantity of load task, keeps being downloaded under low network thread.
The network traffics and the network speed that produce when downloading due to smart mobile phone are dynamically changes, therefore this
Bright embodiment is in the network traffics of above-mentioned monitoring mobile terminal and periodically obtains network speed or obtains net in real time
During speed, need according to the network traffics situation of change of mobile terminal (rise to reach flow threshold,
It is decreased below flow threshold) and the situation of change (being not less than default network speed, less than presetting network speed) of network speed,
Dynamically increase network thread quantity or reduce network thread quantity.
When smart mobile phone downloading task, owing to may there is multiple downloading task simultaneously, therefore work as shifting
When dynamic terminal has two or more downloading task, the current network speed of above-mentioned basis adjusts current download
Network thread quantity be accomplished by the concrete network traffics current according to current network speed, smart mobile phone and
The file size of downloading task is that each downloading task dynamically distributes network thread.Due in multitask situation
Under, the downloading task of big file has higher priority, namely can be assigned to more grid line
Journey, it is therefore desirable to be each according to the file size of downloading task by the network thread quantity to be used that determines
The network thread that downloading task quantity allotted does not waits, the downloading task more network thread of distribution of big file,
The downloading task of small documents distributes a small amount of network thread.When determining network thread quantity to be used, need
To determine according to the file size of downloading task, the sum of downloading task and network thread amount threshold,
Owing to the download length/size disappearance of each network thread can cause serious consequence, it is therefore desirable to the most every
Download length/the size of individual network thread the appropriate number of net of file size allocation according to downloading task
Winding thread journey, it is ensured that the file size that the file of download is corresponding with server is consistent, under such guarantee
Load task is properly downloaded.Owing to smart mobile phone has certain memory source, therefore its net that can open
There is ultimate value in network number of threads, namely network thread amount threshold, therefore when by the way will
After the network thread of each downloading task determines, it is necessary to according to the sum of downloading task, each is downloaded
The network thread quantity of task is added, it is judged that whether it exceedes the network thread amount threshold of smart mobile phone,
If the network thread amount threshold less than smart mobile phone, it is possible to the network thread Number dynamics that will determine
Distribute to each downloading task.
Need exist for explanation, start backstage at above-mentioned smart mobile phone and download, the data that backstage is downloaded
After caching;Or after the file of downloading task is correctly downloaded by smart mobile phone, the present invention is real
Execute example and the data of the backstage download of caching or the file downloaded can also be uploaded to cloud service by backstage
Device/cloud disk, in order to when later needing the file downloading same task, can be speeded up to by cloud faster
Download.
As to the application of method shown in above-mentioned Fig. 1, the embodiment of the present invention provides a kind of mobile terminal to download
Device, as in figure 2 it is shown, shown device includes:
Judging unit 21, for judging the network environment downloaded, described network environment includes: mobile network
And WiFi network;
Monitoring unit 22, for when judging unit 21 judges that described network environment is WiFi network, supervises
Whether the network traffics of control mobile terminal reach default flow threshold;
Processing unit 23, for reaching described flow threshold when monitoring unit 22 monitors described network traffics
Value, reduces the current network thread quantity downloaded;
Processing unit 23 is additionally operable to be not up to described flow when monitoring unit 22 monitors described network traffics
Threshold value, adjusts the current network thread quantity downloaded according to current network speed.
Further, processing unit 23 is additionally operable to when judging unit 21 judges that described network environment is as mobile
During network, it is downloaded according to original network thread quantity.
Further, as it is shown on figure 3, described device also includes:
Buffer unit 24, is used for after judging unit 21 judges that described network environment is WiFi network,
Start backstage download the data that described backstage is downloaded to be cached, and download when mobile terminal suspends,
Leave the download page or operation starts backstage when not using flow and downloads, the data that described backstage is downloaded are write
Enter cache file.The embodiment of the present invention is carried out, by backstage, download of mourning in silence in the download gap of smart mobile phone,
On the premise of not affecting other operations of smart mobile phone, buffer unit 24 data that backstage is downloaded are carried out
Caching, in order to smart mobile phone continues can directly read from cache file during downloading task to have downloaded
Data, thus significantly improve speed of download, and read from cache file the data downloaded this
Process stabilization is quick, is not affected by network state.
Further, processing unit 23 is additionally operable to, when described network traffics reach described flow threshold, press
It is that each downloading task distributes network thread according to default individual task network thread quantity, and when described
When network traffics reach two times of described flow threshold, it is that downloading task distributes a net according to preset rules
Winding thread journey.
Further, processing unit 23 also includes:
Acquisition module 231, is used for obtaining current network speed, and the current network speed of described acquisition includes: according to presetting
Time interval periodically obtains current network speed and obtains current network speed in real time;
Adjusting module 232, for being not less than default network speed and memory usage less than pre-at current network speed
If during memory usage threshold value, increase the network thread quantity of downloading task;
Adjusting module 232, is additionally operable at current network speed less than when presetting network speed, reduces the net of downloading task
Network number of threads.
Concrete, acquisition module 231 can be by sending a ping order extremely in embodiments of the present invention
Server or the conventional network address of downloading task obtain real-time network speed;Owing to smart mobile phone produces when downloading
Raw network traffics and network speed are dynamically changes, and therefore the embodiment of the present invention is at above-mentioned monitoring mobile terminal
Network traffics and during periodically obtaining network speed or obtaining network speed in real time, need adjusting module 232
Network traffics situation of change according to mobile terminal (rises to reach flow threshold, be decreased below flow
Threshold value) and the situation of change (being not less than default network speed, less than presetting network speed) of network speed, dynamically increase net
Network number of threads or minimizing network thread quantity.
Further, processing unit 23 is additionally operable to according to current network speed, network traffics and downloading task
Size be that each downloading task dynamically distributes network thread.
Further, processing unit 23 also includes:
Determine module 233, for according to the file size/size of current downloading task, current downloading task
Sum and network thread amount threshold obtain network thread quantity to be used;
Distribution module 234, for according to the network thread quantity described to be used determining that module 233 obtains
And the grid line that file size/size is each downloading task distribution respective numbers of current downloading task
Journey.
Further, described device also includes: uploading unit 25, for cached by buffer unit 24
The data that described backstage is downloaded are uploaded to Cloud Server by backstage.Uploading unit 25 is additionally operable at smart mobile phone
After correctly being downloaded by the file of downloading task, the file downloaded is uploaded to Cloud Server/cloud by backstage
Dish, in order to when later needing the file downloading same task, can speed up to download faster by cloud.
For above-mentioned mobile terminal download apparatus it should be noted that every use in embodiments of the present invention
The function of the unit module arrived can pass through hardware processor (hardware processor)
Realize.
The mobile terminal download apparatus that the embodiment of the present invention provides, it is possible to the network environment downloaded by judgement,
Monitor the network traffics that mobile terminal is current when being in WiFi network, reach pre-when monitoring network traffics
If flow threshold time, reduce the current network thread quantity downloaded;When monitoring network traffics not up to
During the flow threshold preset, adjust the current network thread quantity downloaded according to current network speed.The present invention is real
Execute example based on the real-time network traffics of mobile terminal and network speed, do not reach flow threshold in network traffics
On the premise of, dynamically adjust network thread quantity thus make full use of the network bandwidth, it is achieved at mobile terminal
The purpose that fast and stable is downloaded, solves in prior art when the downloading wire number of passes of mobile terminal is too much or consumption
Energy causes the defect that overall operation the most even internal memory overflows time excessive.
Additionally, the embodiment of the present invention provide mobile terminal download apparatus can not only according to real-time network speed with
The current network flow of mobile terminal adjusts network thread quantity, but also combines in practical situation and download
The file size of task, is that each downloading task distributes rational grid line according to the priority of downloading task
Number of passes amount, it is ensured that each downloading task can be stablized and quickly downloads;File/the number simultaneously download completed
According to or backstage cache file docking cloud disk/Cloud Server corresponding to downloading task, realize further mobile eventually
The intellectuality of end download and ecology.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality
The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly
Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words
Dividing and can embody with the form of software product, this computer software product can be stored in computer can
Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one
Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented
The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it
Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area
Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill
The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a downloading method of mobile terminal, it is characterised in that described method includes:
Judging the network environment downloaded, described network environment includes: mobile network and WiFi network;
When judging that described network environment is WiFi network, whether the network traffics of monitoring mobile terminal reach
The flow threshold preset;
If described network traffics reach described flow threshold, then reduce the current network thread quantity downloaded;
If described network traffics are not up to described flow threshold, then adjust current download according to current network speed
Network thread quantity.
Method the most according to claim 1, it is characterised in that judge download network environment it
After, described method also includes:
When judging that described network environment is mobile network, it is downloaded according to original network thread quantity.
Method the most according to claim 1, it is characterised in that when judging that described network environment is
After during WiFi network, described method also includes:
Start backstage to download, the data that described backstage is downloaded are cached;
Described startup backstage is downloaded, and the data that described backstage is downloaded is cached, including:
Download when mobile terminal suspends, leave to download the page or operate startup backstage when not using flow and download,
The data write cache file that described backstage is downloaded.
Method the most according to claim 1, it is characterised in that if described network traffics reach described
Flow threshold, then reduce the current network thread quantity downloaded, including:
When described network traffics reach described flow threshold, according to default individual task grid line number of passes
Amount distributes network thread for each downloading task;
When described network traffics reach two times of described flow threshold, it is downloading task according to preset rules
Distribute a network thread.
Method the most according to claim 1, it is characterised in that if described network traffics are not up to institute
State flow threshold, then adjust the current network thread quantity downloaded according to current network speed, including:
Obtaining current network speed, the current network speed of described acquisition includes: periodically obtains according to prefixed time interval and works as
Front network speed and the in real time current network speed of acquisition;
If current network speed is not less than default network speed and memory usage less than presetting memory usage threshold value
Time, increase the network thread quantity of downloading task;
If current network speed is less than when presetting network speed, reduce the network thread quantity of downloading task.
Method the most according to claim 1, it is characterised in that when mobile terminal has two or two
During individual above downloading task, the current network speed of described basis adjusts the current network thread quantity downloaded, including:
Size according to current network speed, network traffics and downloading task is that each downloading task is dynamically divided
Distribution network thread;
Described dynamic distribution network thread includes: according to the file size/size of current downloading task, current
The sum of downloading task and network thread amount threshold obtain network thread quantity to be used;
File size/size according to described network thread quantity to be used and current downloading task is every
The network thread of individual downloading task distribution respective numbers.
Method the most according to claim 3, it is characterised in that download on described startup backstage, will
After the data that described backstage is downloaded cache, described method also includes:
The data that the described backstage of caching is downloaded are uploaded to Cloud Server by backstage.
8. a mobile terminal download apparatus, it is characterised in that described device includes:
Judging unit, for judge download network environment, described network environment includes: mobile network and
WiFi network;
Monitoring unit, for when described judging unit judges that described network environment is WiFi network, monitors
Whether the network traffics of mobile terminal reach default flow threshold;
Processing unit, for reaching described flow threshold when described monitoring unit monitors described network traffics,
Reduce the current network thread quantity downloaded;
Described processing unit is additionally operable to be not up to described stream when described monitoring unit monitors described network traffics
Amount threshold value, adjusts the current network thread quantity downloaded according to current network speed.
Device the most according to claim 8, it is characterised in that described processing unit is additionally operable to work as institute
State judging unit and judge when described network environment is mobile network, carry out according to original network thread quantity
Download.
Device the most according to claim 8, it is characterised in that described device also includes:
Buffer unit, for after described judging unit judges that described network environment is WiFi network, opens
Dynamic backstage is downloaded and the data that described backstage is downloaded is cached;
Described buffer unit be additionally operable to when mobile terminal suspend download, leave download the page or operation do not use
Start backstage during flow to download, the data write cache file downloaded on described backstage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510888478.7A CN105873022A (en) | 2015-12-07 | 2015-12-07 | Downloading method and device for mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510888478.7A CN105873022A (en) | 2015-12-07 | 2015-12-07 | Downloading method and device for mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105873022A true CN105873022A (en) | 2016-08-17 |
Family
ID=56624100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510888478.7A Pending CN105873022A (en) | 2015-12-07 | 2015-12-07 | Downloading method and device for mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105873022A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106254566A (en) * | 2016-10-31 | 2016-12-21 | 乐视控股(北京)有限公司 | A kind of data download processing method and device |
CN106357736A (en) * | 2016-08-26 | 2017-01-25 | 百度在线网络技术(北京)有限公司 | The method and device used to transmit documents |
CN109040230A (en) * | 2018-07-31 | 2018-12-18 | 优视科技新加坡有限公司 | Method for down loading, device, equipment/terminal/server and the storage medium of file |
CN109241012A (en) * | 2018-10-12 | 2019-01-18 | 平安科技(深圳)有限公司 | Sample input method, device, computer equipment and storage medium |
CN109412959A (en) * | 2018-09-10 | 2019-03-01 | 广州小鹏汽车科技有限公司 | A kind of vehicle OTA upgrading Current limited Control mthods, systems and devices |
CN109548117A (en) * | 2018-11-23 | 2019-03-29 | 维沃移动通信有限公司 | A kind of network selecting method and mobile terminal |
CN109743308A (en) * | 2018-12-28 | 2019-05-10 | 上海众源网络有限公司 | A kind of data transmission method and device |
CN109753849A (en) * | 2017-11-03 | 2019-05-14 | 杭州海康威视数字技术股份有限公司 | The method and apparatus for handling video analytic tasks |
CN110224863A (en) * | 2019-05-22 | 2019-09-10 | 钛马信息网络技术有限公司 | A kind of file accelerates method for down loading and device |
CN110417609A (en) * | 2018-04-26 | 2019-11-05 | 中移(苏州)软件技术有限公司 | A kind of statistical method of network flow, device, electronic equipment and storage medium |
CN110855759A (en) * | 2019-10-29 | 2020-02-28 | 广州西山居世游网络科技有限公司 | Method and system for dynamically adjusting game downloading |
CN110851822A (en) * | 2019-11-19 | 2020-02-28 | 东北石油大学 | Network download safety processing method and device |
CN112422632A (en) * | 2020-10-26 | 2021-02-26 | 京东方科技集团股份有限公司 | File uploading control method and device, electronic equipment and storage medium |
CN114338657A (en) * | 2022-03-15 | 2022-04-12 | 北京搜狐新动力信息技术有限公司 | Video file downloading method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056264A (en) * | 2007-04-25 | 2007-10-17 | 华为技术有限公司 | Traffic control method and service processing system |
CN101626554A (en) * | 2009-08-13 | 2010-01-13 | 中兴通讯股份有限公司 | Multi-mode mobile terminal and resource downloading method thereof |
CN101730086A (en) * | 2009-12-02 | 2010-06-09 | 北京盈通创新数字技术有限公司 | High speed downloading method of mobile terminal connecting multiple gateways and starting multiple threads |
US20140026140A1 (en) * | 2012-07-17 | 2014-01-23 | Adobe Systems Inc. | Method and apparatus for optimizing download operations |
-
2015
- 2015-12-07 CN CN201510888478.7A patent/CN105873022A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056264A (en) * | 2007-04-25 | 2007-10-17 | 华为技术有限公司 | Traffic control method and service processing system |
CN101626554A (en) * | 2009-08-13 | 2010-01-13 | 中兴通讯股份有限公司 | Multi-mode mobile terminal and resource downloading method thereof |
CN101730086A (en) * | 2009-12-02 | 2010-06-09 | 北京盈通创新数字技术有限公司 | High speed downloading method of mobile terminal connecting multiple gateways and starting multiple threads |
US20140026140A1 (en) * | 2012-07-17 | 2014-01-23 | Adobe Systems Inc. | Method and apparatus for optimizing download operations |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357736A (en) * | 2016-08-26 | 2017-01-25 | 百度在线网络技术(北京)有限公司 | The method and device used to transmit documents |
CN106357736B (en) * | 2016-08-26 | 2019-04-23 | 百度在线网络技术(北京)有限公司 | The method and apparatus for being used for transmission file |
CN106254566A (en) * | 2016-10-31 | 2016-12-21 | 乐视控股(北京)有限公司 | A kind of data download processing method and device |
CN109753849A (en) * | 2017-11-03 | 2019-05-14 | 杭州海康威视数字技术股份有限公司 | The method and apparatus for handling video analytic tasks |
CN110417609A (en) * | 2018-04-26 | 2019-11-05 | 中移(苏州)软件技术有限公司 | A kind of statistical method of network flow, device, electronic equipment and storage medium |
CN109040230B (en) * | 2018-07-31 | 2021-06-04 | 优视科技新加坡有限公司 | File downloading method, device, equipment/terminal/server and storage medium |
CN109040230A (en) * | 2018-07-31 | 2018-12-18 | 优视科技新加坡有限公司 | Method for down loading, device, equipment/terminal/server and the storage medium of file |
CN109412959A (en) * | 2018-09-10 | 2019-03-01 | 广州小鹏汽车科技有限公司 | A kind of vehicle OTA upgrading Current limited Control mthods, systems and devices |
CN109412959B (en) * | 2018-09-10 | 2022-08-16 | 广州小鹏汽车科技有限公司 | Vehicle OTA (over the air) upgrading current-limiting control method, system and device |
CN109241012A (en) * | 2018-10-12 | 2019-01-18 | 平安科技(深圳)有限公司 | Sample input method, device, computer equipment and storage medium |
CN109241012B (en) * | 2018-10-12 | 2024-02-02 | 平安科技(深圳)有限公司 | Sample entry method, device, computer equipment and storage medium |
CN109548117A (en) * | 2018-11-23 | 2019-03-29 | 维沃移动通信有限公司 | A kind of network selecting method and mobile terminal |
CN109743308B (en) * | 2018-12-28 | 2021-11-05 | 上海众源网络有限公司 | Data transmission method and device |
CN109743308A (en) * | 2018-12-28 | 2019-05-10 | 上海众源网络有限公司 | A kind of data transmission method and device |
CN110224863A (en) * | 2019-05-22 | 2019-09-10 | 钛马信息网络技术有限公司 | A kind of file accelerates method for down loading and device |
CN110855759A (en) * | 2019-10-29 | 2020-02-28 | 广州西山居世游网络科技有限公司 | Method and system for dynamically adjusting game downloading |
CN110851822A (en) * | 2019-11-19 | 2020-02-28 | 东北石油大学 | Network download safety processing method and device |
CN112422632A (en) * | 2020-10-26 | 2021-02-26 | 京东方科技集团股份有限公司 | File uploading control method and device, electronic equipment and storage medium |
CN112422632B (en) * | 2020-10-26 | 2023-09-12 | 京东方科技集团股份有限公司 | File uploading control method and device, electronic equipment and storage medium |
CN114338657A (en) * | 2022-03-15 | 2022-04-12 | 北京搜狐新动力信息技术有限公司 | Video file downloading method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105873022A (en) | Downloading method and device for mobile terminal | |
CN106997351B (en) | Resource cache management method, system and device | |
EP2434802B1 (en) | Method for reducing power consumption of wapi mobile terminal and wapi mobile terminal | |
CN110662260B (en) | Information processing method and device, network element and storage medium | |
CN109672627A (en) | Method for processing business, platform, equipment and storage medium based on cluster server | |
CN108696911B (en) | Method and device for selecting data transmission mode of Internet of things | |
CN111225209B (en) | Video data plug flow method, device, terminal and storage medium | |
US10652348B2 (en) | Device mode settings to provide an enhanced user experience | |
CN104767809A (en) | Downloading control method and system | |
CN106059952A (en) | Bandwidth application management method and device | |
CN113381944A (en) | System current limiting method, apparatus, electronic device, medium, and program product | |
WO2012106906A1 (en) | Stream dispatching method and device for multi-core processor | |
CN103312824A (en) | Peer-to-peer (P2P) network intelligent speed governing method, device and system | |
CN112241331A (en) | Mobile Web task dynamic migration method based on deep neural network | |
EP3414938A1 (en) | Dynamic network rate control | |
Du et al. | Application specific mobile edge computing through network softwarization | |
CN106851790B (en) | Power consumption change control method and system and mobile terminal | |
CN110868323B (en) | Bandwidth control method, device, equipment and medium | |
CN105874861A (en) | Method and apparatus for adjusting air interface capacity density | |
CN109120480B (en) | Link optimization method and device based on data center | |
CN109788508B (en) | Data caching method and storage medium | |
CN105450480B (en) | A kind of information processing method and device | |
CN115066873A (en) | Multiple network controller systems, methods and computer programs for providing enhanced network services | |
US10129355B2 (en) | Adaptive content optimization | |
CN114661431A (en) | Task scheduling method, storage medium and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160817 |
|
WD01 | Invention patent application deemed withdrawn after publication |