CN105871986A - Data downloading method and device, and terminal - Google Patents

Data downloading method and device, and terminal Download PDF

Info

Publication number
CN105871986A
CN105871986A CN201510921086.6A CN201510921086A CN105871986A CN 105871986 A CN105871986 A CN 105871986A CN 201510921086 A CN201510921086 A CN 201510921086A CN 105871986 A CN105871986 A CN 105871986A
Authority
CN
China
Prior art keywords
data
region
download
stream
size
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
Application number
CN201510921086.6A
Other languages
Chinese (zh)
Inventor
燕冠楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201510921086.6A priority Critical patent/CN105871986A/en
Publication of CN105871986A publication Critical patent/CN105871986A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a data downloading method and device, wherein the data downloading method comprises following steps of detecting whether a data downloading instruction from a user is received or not; extracting data streams of a data file corresponding to the data downloading instruction if the data downloading instruction is received; dividing the data streams into at least two regions; downloading data information corresponding to the data streams of each region at the same time, wherein the data bandwidth occupied by the data streams of each region is the bandwidth of a downloading network. Through adoption of the method, when the data information corresponding to the data streams of each region is downloaded, the maximum bandwidth of the downloading network is occupied by all the data streams; the downloaded data information still belongs to the same data file; the downloading time of the whole data file is shortened; and the data downloading speed is effectively improved.

Description

Data download method, device and terminal
Technical field
It relates to data downloading technology field, particularly relate to a kind of data download method, device and terminal.
Background technology
User is in order to ensure the smooth degree during watching video or listening music, if it is bigger to relate to data file If video or music, the most all can select to download on user terminal data message in advance, then review, effectively Promote vision or the audio experience of user.
In correlation technique, during carrying out data download, owing to the network bandwidth of data download channel is certain, and right When individual data file is downloaded, data are downloaded the maximum speed of download that can reach and not can exceed that the network bandwidth is corresponding Network speed of download, such as, needs to be downloaded the data file of a 400MB size by home network, if network width Band for 10MB broadband, is then downloaded the maximum speed of download that this 400MB size data file can reach and is about 1.25MB/ Second, then downloading this 400MB size data file at least needs 320 seconds.
But, it is generally the case that if unstable networks causes data file to be unable to reach maximum speed of download feelings when downloading Under condition, then this data file downloads the time needed may be long, thus largely effects on the downloading rate of data, enters And affect the experience of user.
Summary of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of data download method and device.
First aspect according to disclosure embodiment, it is provided that a kind of data download method, the method includes:
Detect whether to receive the data download instruction from user;
If receiving the data download instruction from user, extract the number of data file corresponding to described data download instruction According to stream;
Described data stream is divided at least two region, downloads the data message that the data stream in each region is corresponding simultaneously, its
In, the data bandwidth that the data stream in each region takies is the bandwidth downloading network.
Second aspect according to disclosure embodiment, it is provided that a kind of data download apparatus, this device includes:
Detector unit, for detecting whether receive the data download instruction from user;
Extraction unit, for when receiving the data download instruction from user, extracts described data download instruction corresponding The data stream of data file;
Download unit, for described data stream is divided at least two region, the data stream simultaneously downloading each region is corresponding Data message, wherein, the data bandwidth that the data stream in each region takies be download network bandwidth.
The third aspect according to disclosure embodiment, it is provided that a kind of terminal, this terminal includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detect whether to receive the data download instruction from user;
If receiving the data download instruction from user, extract the number of data file corresponding to described data download instruction According to stream;
Described data stream is divided at least two region, downloads the data message that the data stream in each region is corresponding simultaneously, its In, the data bandwidth that the data stream in each region takies is the bandwidth downloading network.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
The method that disclosure embodiment provides, when the data download instruction from user being detected, controls and these data Data file burst corresponding to download instruction, download corresponding data message simultaneously, thus be effectively improved under data download Carry speed.
When applying the method, by data file stream corresponding for data download instruction being divided at least two region, not Data stream is divided into multiple data file so that the data stream in each region download corresponding data message time, data Stream all takies the maximum bandwidth downloading network, so that download when data message corresponding to each area data stream is downloaded Speed gets a promotion, and the data message after download is still same data file, during so that whole data file is downloaded Between shorten, be effectively improved data download speed, make Consumer's Experience more preferably.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, can not Limit the disclosure.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet embodiments of the invention, And for explaining the principle of the present invention together with description.
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 embodiment or existing In technology description, the required accompanying drawing used is briefly described, it should be apparent that, for those of ordinary skill in the art Speech, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of data download method proposed according to an exemplary embodiment;
Fig. 2 is the schematic flow sheet of the another kind of data download method proposed according to an exemplary embodiment;
Fig. 3 is the schematic flow sheet of another data download method proposed according to an exemplary embodiment;
Fig. 4 is the schematic flow sheet of another data download method proposed according to an exemplary embodiment;
Fig. 5 is the structural representation of a kind of data download apparatus proposed according to an exemplary embodiment;
Fig. 6 is the structural representation of the another kind of data download apparatus proposed according to an exemplary embodiment;
Fig. 7 is the structural representation of another the data download apparatus proposed according to an exemplary embodiment;
Fig. 8 is the structural representation of another the data download apparatus proposed according to an exemplary embodiment;
Fig. 9 is the structural representation of a kind of terminal proposed according to an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to attached During figure, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary is implemented Embodiment described in example does not represent all embodiments consistent with the present invention.On the contrary, they be only with such as The example of the apparatus and method that some aspects that described in detail in appended claims, the present invention are consistent.
The data download method or the data download apparatus that there is provided in the disclosed embodiments all can apply to existing download apparatus In, such as the video downloaded software that this data download method or data download apparatus are installed in mobile terminal or have download In the video software of function, this mobile terminal can be carried out by the GPRS network of self or by wireless connections wireless network Data are downloaded, and are not further qualified at this.Below for the exemplary embodiment made according to the method or device.
Fig. 1 is the flow chart according to a kind of data download method shown in an exemplary embodiment, and the method can apply to Mobile terminal device, such as: mobile phone or PAD equipment etc..The method may include steps of:
Step S101, detects whether to receive the data download instruction from user.Otherwise, flow process is terminated.
In the disclosed embodiments, data download instruction is the operational order for downloading data file, mobile terminal device Can only receive the data download instruction of a data file, it is also possible to the data download simultaneously receiving multiple data file refers to Order, to be confirmed continues subsequent operation when receiving this data download instruction, otherwise, does not make any process.
When receiving data download instruction, in step s 102, the data file that described data download instruction is corresponding is extracted Data stream.
Each data file is to there being data stream, and this data stream is made up of multiple bytes, by obtaining each number According to the data message that stream byte is corresponding, combine and be the data message of this data file.Therefore, downloaded by data Instruction finds the data file of correspondence, and each data character stream prestored by data file is saved, and can extract Data stream to this data file.
When extracting the data stream of data file, in step s 103, described data stream is divided at least two region, Download the data message that the data stream in each region is corresponding simultaneously.
The all corresponding user of each data download instruction needs the data file downloaded, and this data download instruction can be deposited in advance Contain the identification mark of corresponding data file, when receiving data download instruction, refer to by inquiring about the download of these data The identification mark that order is carried, inquires the data file corresponding with data download instruction, thus controls to download this data The data message that file is corresponding.
In the disclosed embodiments, when the data message that download data file is corresponding, need to the data literary composition extracted The data stream of part carries out subregion, will be divided into two or more region by this data stream, thus download each district respectively The data message that numeric field data stream is corresponding, and in downloading process, when obtaining data message corresponding to data stream, each region The data bandwidth taken is identical, and the data bandwidth shared by each region is the bandwidth downloading network, thus is downloading During the data download bandwidth in each region increase, then improve the data speed of download of entirety.
In correlation technique, when downloading data file, obtain corresponding successively according to the data character stream joint that data file is corresponding Data message, the maximum bandwidth that the speed of download of whole data file can only achieve when mobile terminal device receives network is downloaded Speed;Such as: it is 10MB that mobile terminal device receives the maximum bandwidth of network, then the speed of download of this data file is Big to 1MB/s.
Application the method, by data file is divided multiple regions, the data stream in each region obtains corresponding number respectively It is believed that breath, and the data character stream joint of zones of different obtains corresponding data message simultaneously, the data character stream joint in each region obtains Speed of download when taking corresponding data information can reach maximum bandwidth during mobile terminal device reception network, the most multiple districts The data character stream joint in territory obtains the speed of download of corresponding data information and i.e. can reach when existing mobile terminal device receives network N times of big bandwidth, wherein, N is by data file zoning number, i.e. can reach N*1MB/s;Thus reach data Parallel download, thus it is effectively improved the speed of download that data are downloaded.
In the above-described embodiments, as long as receiving data download instruction i.e. corresponding data file is carried out burst, simultaneously Download, such as when user needs to download the relatively small data file of data space, as user needs to download Data file data space be only 5MB or less time, if mobile terminal device connect wireless network, no Need to remain to reach speed of download faster when being downloaded by this data file burst;So, when data file burst is downloaded just The unnecessary memory source taking mobile terminal, affects the speed of service of mobile terminal, makes user operation inconvenience.
To this end, in another embodiment of the disclosure, as in figure 2 it is shown, the method can also comprise the steps:
In step S1011, when receiving data download instruction, extract the data literary composition that described data download instruction is corresponding The size of data of part.
When mobile terminal receives data download instruction, whether need to judge data file corresponding to this data download instruction Need to carry out burst download, thus when receiving data download instruction, extract the data literary composition that this data download instruction is corresponding The size of data of part, this size of data is the size of data space.
When extracting the size of data of data file, in step is 1012, it is judged that the size of data of described data file Whether beyond data size thresholds.Otherwise, data file is downloaded according to normal downloading mode.
In the disclosed embodiments, the method needs to pre-set data size thresholds, and this data size thresholds can basis The memory headroom of mobile terminal presets, it is also possible to the size of data of the data file downloaded as required presets; By comparing size of data and the data size thresholds of data file corresponding to data download instruction, it may be judged whether need to carry out The action of step S102.Such as: when the size of data of data file is more than or equal to data size thresholds, it may be determined that connect Receive this data download instruction, thus download this data file according to the method burst of step S102;Number when data file During according to size less than data size thresholds, then download data file according to normal downloading mode, i.e. corresponding according to data file Data character stream joint obtain successively correspondence data message.
When the size of data of data file is beyond data size thresholds, in step S1013, determines and receive from user Data download instruction.
Above-described embodiment is by judging that whether the size of data file is beyond data size thresholds set in advance, it may be judged whether Need the data file that this data download instruction is corresponding is carried out burst, downloaded simultaneously, it is to avoid by number less for size of data Carry out burst download according to file, although due to when the less data file burst of size of data is downloaded speed of download be faster than normally The speed of download of downloading mode, but, speed of download embodies inconspicuous, and can too much account for when downloading data file fragmentation With the memory source of mobile terminal, thus when the size of data of data file is beyond data size thresholds, determine that reception comes From the data download instruction of user, and to data file burst corresponding to this data download instruction, download simultaneously, effectively carry Rise the speed of download that the bigger data file of memory space is downloaded.
Certainly, in the disclosed embodiments, it is also possible to do not carry out the judgement of size of data, each data of reception are downloaded Instruction, all can carry out burst download to the data file that this data download instruction is corresponding, will the data stream of this data file It is divided into multiple region, and does not change overall data flow separation.These are only illustrative embodiments, do not limit at this Fixed.
Abovementioned steps S103 being mentioned, by data stream being divided at least two region, thus downloading each region simultaneously The data message that data stream is corresponding.In a particular application, on Fig. 2 basis, as it is shown on figure 3, step S103 is permissible Comprise the steps.
In step S1031, search the position of the data stream corresponding with described data size thresholds.
In the disclosed embodiments, correspondence the position to corresponding data stream, example can be searched according to data size thresholds As: the size of data of a video flowing is 1024bit (in the disclosed embodiments with bit for minimum byte unit), this number Be 600bit according to size threshold value, then the position of corresponding with this data size thresholds data stream is the data stream of 600bit At byte.
When searching the position of the data stream corresponding with data size thresholds, in step S1032, big with described data The position mark burst of the data stream that little threshold value is corresponding downloads mark, and described data stream is divided at least two region.
In the disclosed embodiments, mark is downloaded by labelling burst in a stream, by data stream corresponding for data file It is divided into multiple region, wherein, if this data size thresholds includes a threshold value: first threshold, then by this data flow point Become two regions;If this data size thresholds includes two threshold values: first threshold and Second Threshold, then by this data stream It is divided into three regions;If this data size thresholds includes three threshold values: first threshold, Second Threshold and the 3rd threshold value, Then this data stream is divided into four regions;Such as, two threshold values are included when this data size thresholds: first threshold and second During threshold value, if data file size is 1024bit, first threshold is 350bit, and Second Threshold is 700bit, then at this At 350bit and 700bit of data file, labelling burst downloads mark respectively, thus this data stream is divided into three downloads Region: 1bit-349bit, 350bit-699bit and 700bit-1024bit, and then obtain the data of zones of different simultaneously The data message that stream is corresponding.
When data stream is divided into two or more region, in step S1033, obtain the data stream in each region simultaneously Corresponding data message.
In the disclosed embodiments, in order to improve the speed of download that data are downloaded, data stream is divided into two or more region After, the data stream correspondence in each region obtains corresponding data message, and the data stream correspondence in each region obtains corresponding The data bandwidth taken during data message is identical, is maximum bandwidth shared during mobile terminal downloading data.
Should in aforementioned manners, by the data character stream of data file is saved zoning, thus each region is from initial data Stream byte starts to obtain successively the data message of correspondence, obtains corresponding number owing to the data character stream in each region saves simultaneously It is believed that breath, therefore, the data character stream joint in each region is just being mobile terminal in shared space when obtaining data message Download maximum bandwidth during data in the case of Chang, thus be effectively improved data speed of download, make data speed of download carry at double High.And, data file is not separated into multiple data file by the method, when the data file of zones of different has been downloaded It is still same data file after one-tenth, it is to avoid when checking data file, need the feelings that between multiple data file, discontinuity is play Condition.Make Consumer's Experience more preferably.
It addition, in the disclosed embodiments, the method can also include: preliminary setting data size threshold value, and these data are big Little threshold value can include first threshold, Second Threshold and the 3rd threshold value (not shown in figures).
In specific implementation process, if the size of data of data file is big beyond the data of first threshold, i.e. data file Little more than or equal to first threshold and less than Second Threshold time, this data file is divided into two regions;If data are civilian The size of data of part more than or equal to Second Threshold and is less than the 3rd beyond the size of data of Second Threshold, i.e. data file During threshold value, this data file is divided into three regions;If the size of data of data file exceeds the 3rd threshold value, i.e. data The size of data of file is more than or equal to the 3rd threshold value, and this data file is divided into four regions.Thus to this data file Carry out subregion download.
The method disclosed in above-described embodiment is mainly by pre-setting data size thresholds, and the data to data file This data file is divided into two or more region by the mode of stream type flags segmental identification, thus is downloaded data file Corresponding data message.
Disclosure embodiment also proposes another data download method, and as shown in Figure 4, the method can include walking as follows Suddenly.
When extracting the data stream of data file, in step S1034, described data levelling is divided at least two Region, downloads mark to the original position labelling burst of the data stream in each region.
In the disclosed embodiments, data size thresholds can not be pre-set, by being divided into many to data stream byte Individual region, downloads mark, this burst to the data character stream shackle mark burst of the original position of each area data stream byte Downloading mark can be to distinguish the mark of each area data stream byte.Such as: the size of data of a video flowing is 453MB (with MB for minimum memory unit in this embodiment), then this data character stream joint can be divided into four regions, such as the One region is 1MB-151MB, second area is 152MB-302MB, the 3rd region is 303MB-453MB, the most respectively 1MB, The position mark burst of the data character stream joint of 152MB and 306MB downloads mark, thus downloads what mark started from this burst Data character stream joint obtains corresponding data message.
When the complete burst of labelling downloads mark, in step S1035, from the beginning of described burst downloads mark, obtain simultaneously The data message that the data stream in each region is corresponding.
In the disclosed embodiments, this burst is downloaded to identify and be may be used for identifying the data character stream of each region original position Joint, thus the data character stream joint downloading mark corresponding with this burst starts, the data stream obtaining zones of different respectively is corresponding Data message, and the data stream in each region to take data bandwidth identical.
Application the method, by being divided into multiple region to the data character stream of data file joint, it is to avoid some number of regions More according to stream byte, when causing this area data stream byte correspondence to download data message, speed delays overall data literary composition relatively slowly The speed of download of part.In the disclosed embodiments, typically the data character stream of data file can be saved be divided into two, three or Four regions, in concrete application process, can be according to the size mean allocation of data file.
Above-mentioned for disclosure embodiment provide embodiment of the method, by application the method download data file time can be effective Improve the speed of download that data file is downloaded.Corresponding the method embodiment, it is real that disclosure embodiment also provides for corresponding device Execute mode, specifically can see below embodiment.
Fig. 5 is the device block diagram downloaded according to a kind of data shown in an exemplary embodiment, and this device can apply to move In dynamic terminal, such as: mobile phone or panel computer, it is also possible to be applied to terminal unit, such as: PC or other equipment etc.. With reference to shown in Fig. 5, the present embodiment is as a example by mobile terminal, and this device can include detector unit 11, extraction unit 12 With download unit 13, this detector unit 11, extraction unit 12 electrically connect with download unit 13.
This detector unit 11 is configured to detect whether mobile terminal receives the data download instruction from user;Wherein, This data download instruction is for indicating the instruction downloading data file corresponding thereto;
Extraction unit 12 is configured to extract the data stream of the data file corresponding with this data download instruction;
Download unit 13 is configured as extraction unit 12 when extracting with the data stream of the data file of data download instruction, Control the data stream of the data file corresponding with this data download instruction, this data stream is divided at least two region, thus Download the data message that the data stream in each region is corresponding simultaneously;And each region downloads bandwidth shared during data message It is the maximum bandwidth downloading network.Thus realize the Parallel download of multiple area data file, effectively promote data and download Speed.
This device can be installed in current video downloader or other data download apparatus, thus when applying this device, Burst can be carried out by needing the data downloaded, download simultaneously so that when the data of each panel region are downloaded when burst is downloaded Shared bandwidth all can reach maximum bandwidth, and the data file downloaded is still for same data file;The disclosure is public This device opened is only data file separately to be downloaded, and does not disassemble data file, thus is effectively improved data Speed of download.
In another embodiment of the disclosure, as shown in Figure 6, above-mentioned detector unit 11 also includes: the first extraction unit 111, Judging unit 112 and determine unit 113, this first extraction unit 111, judging unit 112 and determine unit 113 successively Connect.
When this first extraction unit 111 is configured as receiving data download instruction, extract this data download instruction corresponding The size of data of data file;This size of data is size or this data of the data character stream joint of this data file The size of the memory space of file;
Judging unit 112 is configured to judge that whether the size of data of data file is beyond data size thresholds;
Wherein, this data size thresholds can be according to the preset amount of data file memory space, it is also possible to set in advance Determine certain value, if the size of data of data file is beyond this definite value, it is determined that this data file can be by above-mentioned enforcement Example method processes;If the size of data of data file is without departing from this definite value, it is determined that this data file need not pass through Above-described embodiment method processes, and can process according to the method that conventional data are downloaded.
Determine when unit 113 is configured as the size of data of data file beyond data size thresholds, determine that reception arrives The data download instruction sent from user, then the data download method provided by above-described embodiment downloads this data file.
Apply this device, can decide whether to be carried by above-described embodiment by judging the size of data of data file The data download method of confession processes, and can not only accelerate the speed of download of data file, it is also possible to avoid unnecessary burst Download the internal memory taking mobile terminal, affect the processing speed of mobile terminal.
In another embodiment of the disclosure, can be on the basis of above-mentioned embodiment illustrated in fig. 6, as it is shown in fig. 7, under above-mentioned Carrier unit 13 can include searching unit the 131, first indexing unit 132 and the first acquiring unit 133, this lookup unit 131, the first indexing unit 132 and the first acquiring unit 133 are sequentially connected with.
Search unit 131 and be configured to search the position of the data stream corresponding with data size thresholds;This data size thresholds It is data character stream joint, so, it is and number by searching the data stream position identical with the byte of this data size thresholds Position according to data stream corresponding to size threshold value;
The position mark burst that first indexing unit 132 is configured to searching the data stream that unit 131 is searched downloads mark, Download mark by this burst and data stream is divided at least two region;Burst according to labelling is downloaded the number of mark and is determined By the number in the region that data stream is divided into, wherein, the number in the region that data stream is divided into adds 1 for downloading mark number;
First acquiring unit 133 is configured to obtain the data message that the data stream of zones of different is corresponding simultaneously;Wherein, often It is identical that the data stream in individual region takies data bandwidth, downloads bandwidth during individual data for mobile terminal.
In the disclosed embodiments, as a example by mobile terminal downloading data file, such as: mobile terminal passes through communication module Connecting wireless network, the maximum bandwidth such as this wireless network is 10MB, when applying this device to download data file, if will Data stream corresponding to this data file is divided into two regions, and the data stream correspondence in the most each region obtains during data message shared Data bandwidth be 10MB.
Application this device shown in above-described embodiment, downloads data file by burst, it is possible to be effectively improved what data were downloaded Speed of download.These are only an exemplary embodiment, and the data bandwidth that the zones of different described in above-described embodiment takies is equal For taking the maximum bandwidth of wireless network under optimal way, in actual application, may due to mobile terminal other Data occupied bandwidth and impacted, no longer elaborate at this.
It addition, in the disclosed embodiments, mobile terminal can include presetting unit, and this default unit is configured in advance Setting data size threshold value, wherein, this data size thresholds includes first threshold, Second Threshold and the 3rd threshold value;If The size of data of this data file exceeds first threshold, and this data file can be divided into two regions;If this data literary composition The size of data of part exceeds Second Threshold, and this data file can be divided into three regions;If the data of this data file Size exceeds the 3rd threshold value, and data file can be divided into three regions.
Certainly, this default unit is not limited to preset above three threshold value, can carry out according to the size of data file Set, and this threshold number is the most infinitely great, when threshold number infinity, may be owing to taking mobile terminal internal memory More, affect mobile terminal processing speed.
On the basis of embodiment illustrated in fig. 5, the disclosure also provides for another embodiment.As shown in Figure 8, this device Can also include the second indexing unit 134 and second acquisition unit 135, this second indexing unit 134 and second obtains list Unit 135 is sequentially connected with.
This second indexing unit 134 is configured to be divided into this data levelling multiple region, and the data to each region The original position labelling burst of stream downloads mark;
Wherein, this data stream is the data character stream joint of data file, by the many major generals data character stream to data stream byte Joint is divided into multiple region, and the traffic locality labelling burst started in each region downloads mark, so that The original position of the data stream in each region is the data character stream joint that this burst downloads home position.
Second acquisition unit 135 is configured to from the beginning of this burst downloads mark, obtains the data letter that data stream is corresponding respectively Breath, wherein, it is identical that the data stream in each region takies data bandwidth.
Apply this device, the data character stream joint of data file is divided into multiple region, and the data shared by each region Stream byte number is identical, thus when corresponding zones of different data character stream joint obtains corresponding data message, zones of different data stream Byte obtains the time of data message may be identical, it is possible to avoids first area data character stream joint corresponding data information such as to obtain Take into, and other area data stream byte corresponding data acquisition of informations are not fully complete, cause the whole data file still cannot be complete Become situation about downloading, thus be effectively improved data speed of download.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment is described in detail, explanation will be not set forth in detail herein.
Fig. 9 is the block diagram according to a kind of terminal 800 shown in an exemplary embodiment.Such as, terminal 800 can be to move Mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, Body-building equipment, personal digital assistant etc..
With reference to Fig. 9, terminal 800 can include following one or more assembly: processes assembly 802, memorizer 804, electricity Source component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor group Part 814, and communications component 816.
Process assembly 802 and generally control the integrated operation of terminal 800, such as with display, call, data communication, The operation that camera operation and record operation are associated.Process assembly 802 and can include that one or more processor 820 is held Row instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or many Individual module, it is simple to process between assembly 802 and other assemblies is mutual.Such as, process assembly 802 and can include many matchmakers Module, with facilitate multimedia groupware 808 and process between assembly 802 mutual.
Memorizer 804 is configured to store various types of data to support the operation in terminal 800.Showing of these data Example include in terminal 800 operation any application program or the instruction of method, contact data, telephone book data, Message, picture, video etc..Memorizer 804 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic Memorizer, flash memory, disk or CD.
The various assemblies that power supply module 806 is terminal 800 provide electric power.Power supply module 806 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for terminal 800, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 808 is included between described terminal 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more Touch sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch Or the border of sliding action, but also detect the persistent period relevant to described touch or slide and pressure.At some In embodiment, multimedia groupware 808 includes a front-facing camera and/or post-positioned pick-up head.When terminal 800 is in operation Pattern, during such as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive the multimedia number of outside According to.Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and optics change Burnt ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.Such as, audio-frequency assembly 810 includes a Mike Wind (MIC), when terminal 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, Mike Wind is configured to receive external audio signal.The audio signal received can be further stored at memorizer 804 or warp Sent by communications component 816.In certain embodiments, audio-frequency assembly 810 also includes a speaker, is used for exporting sound Frequently signal.
I/O interface 812 provides interface for processing between assembly 802 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, startup are pressed Button and locking press button.
Sensor cluster 814 includes one or more sensor, for providing the state estimation of various aspects for terminal 800. Such as, what sensor cluster 814 can detect terminal 800 opens/closed mode, the relative localization of assembly, such as institute Stating display and keypad that assembly is terminal 800, sensor cluster 814 can also detect terminal 800 or terminal 800 The position change of one assembly, the presence or absence that user contacts with terminal 800, terminal 800 orientation or acceleration/deceleration Variations in temperature with terminal 800.Sensor cluster 814 can include proximity transducer, is configured to the most any Physical contact time detection near the existence of object.Sensor cluster 814 can also include optical sensor, such as CMOS or Ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 is all right Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to facilitate the communication of wired or wireless mode between terminal 800 and other equipment.Terminal 800 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.An example Property embodiment in, communications component 816 receives from the external broadcasting management broadcast singal of system or broadcast via broadcast channel Relevant information.In one exemplary embodiment, described communications component 816 also includes near-field communication (NFC) module, with Promote junction service.Such as, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) Technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal 800 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field-programmable gate array Row (FPGA), controller, microcontroller, microprocessor or other electronic components realize, and are used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction is additionally provided, such as Including the memorizer 804 of instruction, above-mentioned instruction can have been performed said method by the processor 820 of terminal 800.Example As, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, Tape, floppy disk and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal Time so that terminal is able to carry out a kind of data download method, and described method includes:
Detect whether to receive the data download instruction from user;
If receiving the data download instruction from user, extract the number of data file corresponding to described data download instruction According to stream;
Described data stream is divided at least two region, downloads the data message that the data stream in each region is corresponding simultaneously, its In, the data bandwidth that the data stream in each region takies is the bandwidth downloading network.
It should be noted that in this article, such as the relational terms of " first " and " second " or the like be used merely to by One entity or operation separate with another entity or operating space, and not necessarily require or imply these entities or behaviour Relation or the backward of any this reality is there is between work.And, term " includes ", " comprising " or its any its His variant is intended to comprising of nonexcludability, so that include the process of a series of key element, method, device or set Standby not only include those key elements, but also include other key elements being not expressly set out, or also include for this process, The key element that method, device or equipment are intrinsic.In the case of there is no more restriction, by statement " including ... " The key element limited, it is not excluded that there is also other phase in including the process of described key element, method, device or equipment Same key element.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other of the present invention Embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes Or adaptations follow the present invention general principle and include the disclosure undocumented in the art known often Know or conventional techniques means.Description and embodiments is considered only as exemplary, true scope and spirit of the invention by under The claim in face is pointed out.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and Various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (11)

1. a data download method, it is characterised in that including:
Detect whether to receive the data download instruction from user;
If receiving the data download instruction from user, extract the number of data file corresponding to described data download instruction According to stream;
Described data stream is divided at least two region, downloads the data message that the data stream in each region is corresponding simultaneously, its In, the data bandwidth that the data stream in each region takies is the bandwidth downloading network.
Data download method the most according to claim 1, it is characterised in that described in detect whether to receive and use by oneself The data download instruction at family, including:
When receiving data download instruction, extract the size of data of data file corresponding to described data download instruction;
Judge that whether the size of data of described data file is beyond data size thresholds;
If the size of data of described data file exceeds data size thresholds, determine that the data received from user are downloaded Instruction.
Data download method the most according to claim 2, it is characterised in that described described data levelling is divided into At least two region, downloads the data message that the data stream in each region is corresponding simultaneously, including:
Search the position of the data stream corresponding with described data size thresholds;
Position mark burst at the data stream corresponding with described data size thresholds downloads mark, is divided into by described data stream At least two region;
Obtain the data message that the data stream in each region is corresponding simultaneously.
Data download method the most according to claim 2, it is characterised in that described described data levelling is divided into At least two region, downloads the data message that the data stream in each region is corresponding simultaneously, including:
Described data levelling is divided at least two region, under the original position labelling burst of the data stream in each region Carry mark;
From the beginning of described burst downloads mark, obtain the data message that the data stream in each region is corresponding simultaneously.
Data download method the most according to claim 1, it is characterised in that also include:
Preliminary setting data size threshold value, described data size thresholds includes first threshold, Second Threshold and the 3rd threshold value;
If the size of data of described data file exceeds first threshold, described data stream is divided into two regions;Or,
If the size of data of described data file exceeds Second Threshold, described data stream is divided into three regions;Or,
If the size of data of described data file exceeds the 3rd threshold value, described data stream is divided into four regions.
6. a data download apparatus, it is characterised in that including:
Detector unit, for detecting whether receive the data download instruction from user;
Extraction unit, for when receiving the data download instruction from user, extracts described data download instruction corresponding The data stream of data file;
Download unit, for described data stream is divided at least two region, the data stream simultaneously downloading each region is corresponding Data message, wherein, the data bandwidth that the data stream in each region takies be download network bandwidth.
Data download apparatus the most according to claim 6, it is characterised in that described detector unit includes:
First extraction unit, for when receiving data download instruction, extracts the data that described data download instruction is corresponding The size of data of file;
Judging unit, for judging that whether the size of data of described data file is beyond data size thresholds;
Determine unit, for when described data file size of data beyond data size thresholds time, determine receive from The data download instruction of user.
Data download apparatus the most according to claim 7, it is characterised in that described download unit includes:
Search unit, for searching the position of the data stream corresponding with described data size thresholds;
First indexing unit, downloads mark for the position mark burst at the data stream corresponding with described data size thresholds, Described data stream is divided at least two region;
First acquiring unit, for obtaining the data message that the data stream in each region is corresponding simultaneously.
Data download apparatus the most according to claim 7, it is characterised in that described download unit includes:
Second indexing unit, for being divided at least two region by described data levelling, to the data stream in each region Original position labelling burst downloads mark;
Second acquisition unit, from the beginning of downloading mark from described burst, the data stream simultaneously obtaining each region is corresponding Data message.
Data download apparatus the most according to claim 6, it is characterised in that also include:
Presetting unit, for preliminary setting data size threshold value, described data size thresholds includes first threshold, the second threshold Value and the 3rd threshold value;Wherein,
If the size of data of described data file exceeds first threshold, described data stream is divided into two regions;Or,
If the size of data of described data file exceeds Second Threshold, described data stream is divided into three regions;Or,
If the size of data of described data file exceeds the 3rd threshold value, described data stream is divided into four regions.
11. 1 kinds of terminals, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detect whether to receive the data download instruction from user;
If receiving the data download instruction from user, extract the number of data file corresponding to described data download instruction According to stream;
Described data stream is divided at least two region, downloads the data message that the data stream in each region is corresponding simultaneously, its In, the data bandwidth that the data stream in each region takies is the bandwidth downloading network.
CN201510921086.6A 2015-12-11 2015-12-11 Data downloading method and device, and terminal Pending CN105871986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510921086.6A CN105871986A (en) 2015-12-11 2015-12-11 Data downloading method and device, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510921086.6A CN105871986A (en) 2015-12-11 2015-12-11 Data downloading method and device, and terminal

Publications (1)

Publication Number Publication Date
CN105871986A true CN105871986A (en) 2016-08-17

Family

ID=56624545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510921086.6A Pending CN105871986A (en) 2015-12-11 2015-12-11 Data downloading method and device, and terminal

Country Status (1)

Country Link
CN (1) CN105871986A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278232A (en) * 2018-03-16 2019-09-24 腾讯科技(深圳)有限公司 A kind of method and device, the system of the downloading of control data
WO2022148299A1 (en) * 2021-01-07 2022-07-14 苏州浪潮智能科技有限公司 File transmission method and apparatus, device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873355A (en) * 2010-06-28 2010-10-27 深圳市迅雷网络技术有限公司 Method, device and system for downloading file
CN101925051A (en) * 2010-08-23 2010-12-22 中兴通讯股份有限公司 Mobile terminal and download method thereof
CN102130928A (en) * 2010-01-19 2011-07-20 腾讯科技(深圳)有限公司 Method and device for downloading data
CN104182437A (en) * 2014-02-25 2014-12-03 无锡天脉聚源传媒科技有限公司 File pulling method and device
CN104184789A (en) * 2014-02-24 2014-12-03 无锡天脉聚源传媒科技有限公司 File downloading method and device
CN104506950A (en) * 2014-12-29 2015-04-08 珠海全志科技股份有限公司 Multithread download method and download device in network streaming media play, and download equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130928A (en) * 2010-01-19 2011-07-20 腾讯科技(深圳)有限公司 Method and device for downloading data
CN101873355A (en) * 2010-06-28 2010-10-27 深圳市迅雷网络技术有限公司 Method, device and system for downloading file
CN101925051A (en) * 2010-08-23 2010-12-22 中兴通讯股份有限公司 Mobile terminal and download method thereof
CN104184789A (en) * 2014-02-24 2014-12-03 无锡天脉聚源传媒科技有限公司 File downloading method and device
CN104182437A (en) * 2014-02-25 2014-12-03 无锡天脉聚源传媒科技有限公司 File pulling method and device
CN104506950A (en) * 2014-12-29 2015-04-08 珠海全志科技股份有限公司 Multithread download method and download device in network streaming media play, and download equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278232A (en) * 2018-03-16 2019-09-24 腾讯科技(深圳)有限公司 A kind of method and device, the system of the downloading of control data
CN110278232B (en) * 2018-03-16 2021-08-17 腾讯科技(深圳)有限公司 Method, device and system for controlling data downloading
WO2022148299A1 (en) * 2021-01-07 2022-07-14 苏州浪潮智能科技有限公司 File transmission method and apparatus, device, and storage medium
US11792258B1 (en) 2021-01-07 2023-10-17 Inspur Suzhou Intelligent Technology Co., Ltd. File transmission method and apparatus, device, and storage medium

Similar Documents

Publication Publication Date Title
CN104156233B (en) Light application off-line update method, device and terminal
CN105677460A (en) Application processing method and apparatus
CN105807873A (en) Temperature control method and device
CN105244048A (en) Audio play control method and apparatus
CN104955126A (en) Operator network access method and device
CN104239094A (en) Method and device for controlling background application programs and terminal equipment
CN104933170A (en) Information exhibition method and device
CN104869574A (en) Wireless network connection method and apparatus
CN105487863A (en) Interface setting method and device based on scene
CN104618218A (en) Information reminding method and device
CN105183513A (en) Application recommendation method and apparatus
CN105553963A (en) Control method and device of positioning services
CN104320774A (en) Updating method, device and facility
CN104079964B (en) The method and device of transmission of video information
CN105208177B (en) Address book updating method and device
CN106095407A (en) icon arrangement method, device and mobile device
CN105578401A (en) Locating information collection method, locating information collection device and mobile terminal
CN107870712A (en) A kind of screenshot processing method and device
CN105677338A (en) Application program display method and device
CN105681549B (en) Export the method and device of prompt information
CN105792328A (en) Terminal device network connection method, terminal device network connection apparatus and terminal device
CN104216672A (en) Display control method and display control device
CN105335714A (en) Photograph processing method, device and apparatus
CN107220059A (en) The display methods and device of application interface
CN104853223A (en) Video stream intercutting method 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