A kind of data download processing method and deviceTechnical field
The present embodiments relate to radio network technique field, particularly relate to a kind of data download processing method and device.
Background technology
Along with the development of radio network technique, the mobile terminal such as mobile phone and flat board is increasingly favored by modern, especiallyIt is in the large size city such as wide of going up north, when people spend at least 1 hour every day on road on and off duty or during the journey time, often lead toCross mobile terminal and carry out the operations such as news browsing, chat interaction and video playback.
Owing to the mobile network signals on the vehicles such as Tube and Train is more unstable, when user play video or itsIn its file download process, prior art once detects that network interrupts, then stop data and download, need user to manually boot,Extreme influence Consumer's Experience.
During realizing the embodiment of the present invention, inventor find existing method when wireless network instability, nothingMethod keeps the data of mobile terminal to download.
Summary of the invention
The embodiment of the present invention provides a kind of data download processing method and device, cannot in order to solve existing mobile terminalWhen wireless network instability, keep the problem that the data of mobile terminal are downloaded.
The embodiment of the present invention provides a kind of data download processing method, including:
During mobile terminal by being connected download data to be downloaded with the radio communication set up between server, if inspectionMeasure described radio communication connect interrupt, then to described server send re-establish radio communication connect connection pleaseAsk;
Described mobile terminal, after the described radio communication re-established between server is connected, continues to download instituteState data to be downloaded;
Wherein, detecting that described radio communication connects generation and interrupts to having re-established what described radio communication connectedDuring, downloading process is in suspended state.
Preferably, described transmission to described server sets up the connection request that radio communication connects again, farther includes:
Send to described server in Preset Time and again set up the connection request that radio communication connects.
Preferably, described transmission to described server sets up the connection request that radio communication connects again, farther includes:
The connection request again setting up radio communication connection of preset times is sent to described server.
Preferably, described transmission to described server sets up the connection request that radio communication connects again, farther includes:
The connection request again setting up radio communication connection of recurrence interval is sent to described server.
Preferably, also include:
If described mobile terminal sends to described server after re-establishing the connection request that radio communication connects, it is impossible to buildVertical described radio communication connects, then point out automatic connection failure information.
The data download processing method that the embodiment of the present invention provides, interrupts by detecting that described radio communication connectsTime, send to described server and re-establish the connection request that radio communication connects so that once there be wireless network signal, energyEnough radio communications of setting up immediately connect;And it is described wireless re-established between server by described mobile terminalAfter communication connection, continue to download described data to be downloaded, it is possible to automatically carry out data download, it is not necessary to user manually connects, to carryHigh Consumer's Experience.
The embodiment of the present invention provides a kind of data download process device, including:
Connection request module, for by being connected the mistake downloading data to be downloaded with the radio communication set up between serverCheng Zhong, interrupts if detecting that described radio communication connects, then send to described server and re-establish radio communication connectionConnection request;
Data download module, for after the described radio communication re-established between server is connected, continuesDownload described data to be downloaded;
Wherein, detecting that described radio communication connects generation and interrupts to having re-established what described radio communication connectedDuring, downloading process is in suspended state.
Preferably, described connection request module is further used in Preset Time sending to described server again setting upThe connection request that radio communication connects.
Preferably, described connection request module is further used for sending the foundation nothing again of preset times to described serverThe connection request of line communication connection.
Preferably, described connection request module is further used for sending the foundation nothing again of recurrence interval to described serverThe connection request of line communication connection.
Preferably, also include:
Connection failure prompting module, for re-establishing radio communication even when described mobile terminal to the transmission of described serverAfter the connection request connect, it is impossible to when setting up the connection of described radio communication, point out automatic connection failure information.
The data download processing method that the embodiment of the present invention provides, interrupts by detecting that described radio communication connectsTime, send to described server and re-establish the connection request that radio communication connects so that once there be wireless network signal, energyEnough radio communications of setting up immediately connect;And it is described wireless re-established between server by described mobile terminalAfter communication connection, continue to download described data to be downloaded, it is possible to automatically carry out data download, it is not necessary to user manually connects, to carryHigh Consumer's Experience.
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 embodiment or existingIn having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is thisSome bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to rootOther accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of data download processing method in one embodiment of the invention;
Fig. 2 is the structural representation of data download process device in another embodiment of the present invention;
Fig. 3 is the entity structure schematic diagram of data download process device in another 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 the embodiment of the present inventionIn accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment isThe a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the artThe every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Embodiment 1:
Fig. 1 is the schematic flow sheet of data download processing method in the present embodiment, including:
S101, mobile terminal download the process of data to be downloaded with the radio communication set up between server by being connectedIn, interrupt if detecting that described radio communication connects, then send to described server and re-establish what radio communication connectedConnection request;
Wherein, mobile terminal can be mobile phone, panel computer or other moveable terminal.
During mobile terminal and server communication, due to the reason such as obstacle or signal disturbing cause mobile terminal withThe radio communication of server connects in generation has no progeny, and mobile terminal sends to described server and re-establishes what radio communication connectedConnection request.
S102, described mobile terminal, after the described radio communication re-established between server is connected, continueDownload described data to be downloaded;
Wherein, detecting that described radio communication connects generation and interrupts to having re-established what described radio communication connectedDuring, downloading process is in suspended state.
Described radio communication connects generation and interrupts referring to owing to connecting time-out, the IO exception of network, domain name mapping mistake, clothesThe mobile terminal that the reasons such as business device internal error, obstacle or signal disturbing cause directly cannot be carried out data transmission with serverState.
Described suspended state refers to not destroy process, makes process placed in a suspend state, and once radio communication connection is built againAfter having stood, continuation is downloaded by process, to complete the downloading task of described data to be downloaded.
Described downloading process refers to the process performing to download described data to be downloaded.
When the present embodiment is by detecting that described radio communication connects generation interruption, sends to described server and re-establishThe connection request that radio communication connects so that once there be wireless network signal, it is possible to set up radio communication immediately and connect;And lead toCross described mobile terminal after the described radio communication having re-established between server is connected, continue to download described in treat downCarry data, it is possible to automatically carry out data download, it is not necessary to user manually connects, to improve Consumer's Experience.
Embodiment 2:
Further, send to described server described in embodiment 1 and again set up the connection request that radio communication connects,Including:
Send to described server in Preset Time and again set up the connection request that radio communication connects.
Wherein, Preset Time can determine according to environment communication disruption easily occur that user often locates, such as subway, electricityLadder, train isotype.
For example, when user it is frequently necessary to take subway, Preset Time can be 5 minutes;When user it is frequently necessary toWhen taking the elevator of dtr signal, Preset Time can be 1 minute;When user it is frequently necessary to used during taking train, Preset Time canThink 10 minutes.
Preset Time is defined, it is possible to make to send to described server in Preset Time by mobile terminal local environmentAgain set up the connection request that radio communication connects, once exceed Preset Time, then stop sending to described server again buildingThe connection request that vertical radio communication connects, to prevent mobile terminal will be chronically at network interrupt status but still constantly to describedServer sends connection request, causes unnecessary resource consumption.
Embodiment 3:
Further, send to described server described in embodiment 1 and again set up the connection request that radio communication connects,Including:
The connection request again setting up radio communication connection of preset times is sent to described server.
Wherein, preset times can determine according to environment communication disruption easily occur that user often locates, such as subway, electricityLadder, train isotype.
For example, when user it is frequently necessary to take subway, preset times can be 20;When user it is frequently necessary to takeDuring the elevator of dtr signal, preset times can be 5;When user it is frequently necessary to used during taking train, preset times can be 50.
Preset times is defined, it is possible to make to send preset times again to described server by mobile terminal local environmentThe secondary connection request setting up radio communication connection, once exceedes preset times, then stop sending to described server again setting upThe connection request that radio communication connects, to prevent mobile terminal will be chronically at network interrupt status but still constantly to described clothesBusiness device sends connection request, causes unnecessary resource consumption.
Embodiment 4:
Further, above-described embodiment 1-3 sets up channel radio again to the transmission of described server described in any embodimentThe connection request that letter connects, including:
The connection request again setting up radio communication connection of recurrence interval is sent to described server.
Wherein, interval can determine according to environment communication disruption easily occur that user often locates, such as subway, elevator,Train isotype.
For example, when user it is frequently necessary to take subway, interval can be 3 seconds;When user it is frequently necessary to take letterDuring number poor elevator, interval can be 1 second;When user it is frequently necessary to used during taking train, interval can be 5 seconds.
The recurrence interval sent by the definition request of mobile terminal local environment, it is possible to make to send weight to described serverThe connection request again setting up radio communication connection at multiple interval, to determine different transmission intervals according to varying environment feature,Maximize the consumption saving mobile terminal, simultaneously once occur that radio communication connects, can start to download data immediately, improveConsumer's Experience.
Embodiment 5:
Further, the described data download processing method that in above-described embodiment 1-3, any embodiment provides also includes:
If the described mobile terminal of S103 sends to described server after re-establishing the connection request that radio communication connects,Described radio communication cannot be set up connect, then point out automatic connection failure information.
If after the connection request of Preset Time or transmission preset times, it is impossible to set up described radio communication and connect,Then prompt the user with automatic connection failure information;Described automatic connection failure information can be realized by message box, or at the pageIn directly display.
By prompting the user with automatic connection failure information, it is possible to remind at user's Current wireless communication network long periodIn interrupt status, it is proposed that user changes to network condition preferably place and reattempts connection, to avoid user to wait as long for, carriesRise Consumer's Experience.
Embodiment 6:
Fig. 2 is the structural representation of data download process device in the present embodiment, and described data download process device includesConnection request module 21 and data download module 22;
Wherein, described data download process device is described mobile terminal.
Described connection request module 21 for by being connected download number to be downloaded with the radio communication set up between serverDuring according to, interrupt if detecting that described radio communication connects, then send to described server and re-establish channel radioThe connection request that letter connects;
Described data download module 22 is used for after the described radio communication re-established between server is connected,Continue to download described data to be downloaded;
Wherein, detecting that described radio communication connects generation and interrupts to having re-established what described radio communication connectedDuring, downloading process is in suspended state.
Specifically, described connection request module 21 is to be downloaded by being connected download with the radio communication set up between serverDuring data, interrupt if detecting that described radio communication connects, then re-establish wireless to the transmission of described serverThe connection request of communication connection;Data download module 22 is connected in the described radio communication re-established between serverAfter, continue to download described data to be downloaded.
When the present embodiment is by detecting that described radio communication connects generation interruption, sends to described server and re-establishThe connection request that radio communication connects so that once there be wireless network signal, it is possible to set up radio communication immediately and connect;And lead toCross described device after the described radio communication having re-established between server is connected, continue to download described number to be downloadedAccording to, it is possible to automatically carry out data download, it is not necessary to user manually connects, to improve Consumer's Experience.
Further, described connection request module is for again setting up wireless to the transmission of described server in Preset TimeThe connection request of communication connection, or please to the connection again setting up radio communication connection of described server transmission preset timesAsk, or send the connection request again setting up radio communication connection of recurrence interval to described server.
Further, described data download process device also includes:
Connection failure prompting module 23, for re-establishing radio communication when described mobile terminal to the transmission of described serverAfter the connection request connected, it is impossible to when setting up the connection of described radio communication, point out automatic connection failure information.
The principle of described data download process mobile terminal that above-described embodiment provides and technique effect and corresponding methodEmbodiment is identical, does not repeats them here.
Embodiment 7:
Fig. 3 shows the entity structure schematic diagram of the data download process device that the embodiment of the present invention provides, this device bagInclude: processor (processor) 310, communication interface (Communications Interface) 320, memorizer (memory)330 and bus 340, wherein, processor 310, communication interface 320, memorizer 330 completes mutual communication by bus 340.Communication interface 340 may be used for the information transmission between server and mobile terminal.
Described memorizer 330, is used for storing data to be downloaded;
Processor 310 can call the data to be downloaded in memorizer 330, to perform following method:
By be connected download data to be downloaded with the radio communication set up between server during, if detecting describedRadio communication connects interrupts, then send to described server and re-establish the connection request that radio communication connects;
After the described radio communication re-established between server is connected, continue to download described number to be downloadedAccording to;
Wherein, detecting that described radio communication connects generation and interrupts to having re-established what described radio communication connectedDuring, downloading process is in suspended state.
Additionally, the data to be downloaded in above-mentioned memorizer 330 can be realized by the form of SFU software functional unit and be madeDuring for independent production marketing or use, can be stored in a computer read/write memory medium.Based on such understanding,Part or the part of this technical scheme that prior art is contributed by technical scheme the most in other words are permissibleEmbodying with the form of software product, this computer software product is stored in a storage medium, including data to be downloadedWith so that computer equipment (can be personal computer, server, or the network equipment etc.) perform the present invention eachAll or part of step of method described in embodiment.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDEtc. the various media that can store program code.
When the present embodiment is by detecting that described radio communication connects generation interruption, sends to described server and re-establishThe connection request that radio communication connects so that once there be wireless network signal, it is possible to set up radio communication immediately and connect;And lead toCross described mobile terminal after the described radio communication having re-established between server is connected, continue to download described in treat downCarry data, it is possible to automatically carry out data download, it is not necessary to user manually connects, to improve Consumer's Experience.
Device embodiment described above is only schematically, and the wherein said unit illustrated as separating component canTo be or to may not be physically separate, the parts shown as unit can be or may not be physics listUnit, i.e. may be located at a place, or can also be distributed on multiple NE.Can be selected it according to the actual needsIn some or all of module realize the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying creativenessWork in the case of, be i.e. appreciated that and implement.
Through the above description of the embodiments, those skilled in the art it can be understood that to each embodiment canThe mode adding required general hardware platform by software realizes, naturally it is also possible to pass through hardware.Based on such understanding, onState the part that prior art contributes by technical scheme the most in other words to embody with the form of software product, shouldComputer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingersMake with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs each and implementsThe method described in some part of example or embodiment.
It is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although referenceThe present invention has been described in detail by previous embodiment, it will be understood by those within the art that: it still can be rightTechnical scheme described in foregoing embodiments is modified, or wherein portion of techniques feature is carried out equivalent;And thisA little amendments or replacement, do not make the essence of appropriate technical solution depart from spirit and the model of various embodiments of the present invention technical schemeEnclose.