CN104216739A - Method, device and terminal for download processing - Google Patents

Method, device and terminal for download processing Download PDF

Info

Publication number
CN104216739A
CN104216739A CN201410419479.2A CN201410419479A CN104216739A CN 104216739 A CN104216739 A CN 104216739A CN 201410419479 A CN201410419479 A CN 201410419479A CN 104216739 A CN104216739 A CN 104216739A
Authority
CN
China
Prior art keywords
server
file destination
downloading
connection
data
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.)
Granted
Application number
CN201410419479.2A
Other languages
Chinese (zh)
Other versions
CN104216739B (en
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.)
Kingsoft Guangzhou Network Technology Co Ltd
Original Assignee
Kingsoft Guangzhou Network Technology 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 Kingsoft Guangzhou Network Technology Co Ltd filed Critical Kingsoft Guangzhou Network Technology Co Ltd
Priority to CN201410419479.2A priority Critical patent/CN104216739B/en
Publication of CN104216739A publication Critical patent/CN104216739A/en
Application granted granted Critical
Publication of CN104216739B publication Critical patent/CN104216739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The embodiment of the invention relates to the technical field of Internet, and discloses a method, a device and a terminal for download processing. The method comprises the following steps: establishing a first connection for downloading an object file with a server; when the condition that the first connection is abnormal is detected, establishing a second connection for downloading the object file with the server, and judging whether data in the object file sent by the server through the second connection are received, if yes, setting the number of retries of connection for downloading the object file to be a first value. According to the method, the device and the terminal, disclosed by the embodiment of the invention, the number of retries for establishing the connections can be set according to the condition of the network, and thus the success rate of download is improved, the consumption of resources due to blind trying for establishing the connections is reduced, and the user experience is improved.

Description

A kind of download process method and device, terminal
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of download process method and device, terminal.
Background technology
Along with the development of network technology, support the PC of various network access mode, mobile phone, Set Top Box, the terminal device such as fixing or mobile can be more and more abundanter from the kind of the content of Network Capture and business, especially content of multimedia.But; the fast development of content of multimedia also brings challenge to web download; in actual applications; usually can there is network and connect the overtime failed download caused in the instability of network environment; cause downloading success ratio low; or user needs constantly to refresh downloading page to complete download, brings bad Consumer's Experience.
Summary of the invention
The embodiment of the invention discloses a kind of download process method and device, terminal, under making terminal device be in unstable network environment, the number of retries of attempting connecting can be set in real time, improve and download success ratio, improve Consumer's Experience.
Embodiment of the present invention first aspect discloses a kind of download process method, comprising:
Set up with server and be connected for first of downloading object file;
When described first connect occur abnormal time, set up for second being connected of downloading described file destination with described server;
Judge whether to receive described server by the data in the described file destination of described second connection transmission, if so, then the number of retries being used for the connection of downloading described file destination is set to the first value.
Alternatively, described when described first connect occur abnormal time, set up for second being connected of downloading described file destination with described server, comprising:
When receiving the server exception message of described first connection that described server sends, generate the first exceptional instructions;
Respond described first exceptional instructions, set up for second being connected of downloading described file destination with described server,
Alternatively, described when detect described first connect occur abnormal time, set up for second being connected of downloading described file destination with described server, comprising:
When detecting that described first connects appearance exception, generate the second exceptional instructions;
Respond described second exceptional instructions, set up for second being connected of downloading described file destination with described server.
Further, described method also comprises:
Described second connect occur abnormal time, according to described first value that described number of retries is arranged, set up for the 3rd being connected of downloading described file destination with described server.
Alternatively, described method also comprises:
Do not receive described server if judge by the data in the described file destination of described second connection transmission, then the number of retries being used for the connection of downloading described file destination is set to zero.
Alternatively, receive described server if described by the data in the described file destination of described second connection transmission, the number of retries being used for the connection of downloading described file destination be set to the first value, comprise:
When receiving described server by the data in the described file destination of described second connection transmission, and when the data volume of these data is more than or equal to predetermined threshold value, the number of retries being used for the connection of downloading described file destination is set to the first value.
Alternatively, described method also comprises:
When receiving described server by the data in the described file destination of described second connection transmission, and the data volume of these data is when being less than described predetermined threshold value, the number of retries being used for the connection of downloading described file destination is set to the second value, and wherein, described second value is less than described first value.
Embodiment of the present invention second aspect discloses a kind of download process device, it is characterized in that, comprising:
First link block, is connected for first of downloading object file for setting up with server;
Second link block, when occurring abnormal for connecting when detect that described first link block sets up first, sets up for second being connected of downloading described file destination with described server;
Judge module, for judging whether the data received in the described file destination of the second connection transmission that described server is set up by described second link block;
First processing module, for in the judged result of described judge module be receive described server by described second link block set up second connect send described file destination in data time, the number of retries being used for the connection of downloading described file destination is set to the first value.
Particularly, described second link block comprises:
First generation unit, for when receiving the server exception message of described first connection that described server sends, generates the first exceptional instructions;
First response unit, for responding the first exceptional instructions that described generation unit generates, sets up for second being connected of downloading described file destination with described server.
Alternatively, described second link block, comprising:
Second generation unit, for when detecting that described first connects appearance exception, generates the second exceptional instructions;
Second response unit, for responding described second exceptional instructions, sets up for second being connected of downloading described file destination with described server.
Further, described device also comprises:
Link block, for described second connect occur abnormal time, described first value arranged according to described number of retries or described second value, set up for the 3rd being connected of downloading described file destination with described server.
Alternatively, described device also comprises:
Second processing module, for in the judged result of described judge module be do not receive described server by described second link block set up second connect send described file destination in data time, the number of retries being used for the connection of downloading described file destination is set to zero.
Alternatively, described first processing module is specifically for the data in the described file destination receiving the second connection transmission that described server is set up by described second link block, and the data volume of these data is when being more than or equal to predetermined threshold value, the number of retries being used for the connection of downloading described file destination is set to the first value.
Alternatively, described first processing module is also for the data in the described file destination receiving the second connection transmission that described server is set up by described second link block, and the data volume of these data is when being less than described predetermined threshold value, the number of retries being used for the connection of downloading described file destination is set to the second value, wherein, described second value is less than described first value.
The embodiment of the present invention third aspect discloses a kind of terminal, and described terminal comprises the device described in foregoing invention embodiment.
In the embodiment of the present invention, terminal device can be set up with server and be connected for first of downloading object file, when first connects appearance exception, can set up with server and be connected for second of downloading object file, and judge whether to receive server by the data in the file destination of the second connection transmission, if receive, the number of retries of the connection being used for downloading object file can be set to the first value.Therefore, in the embodiment of the present invention, terminal device can arrange number of retries according to network connection, thus, improve download success ratio, reduce the resource consumed because of constantly retry connection, and improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of download process method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of download process method disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the embodiment of the present invention another download process method disclosed;
Fig. 4 is the structural representation of a kind of download process device disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another kind of download process device disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of download process method and device, terminal, download success ratio can be improved, reduce the resource consumed because of constantly retry connection, and can Consumer's Experience be improved.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of download process method disclosed in the embodiment of the present invention.As shown in Figure 1, this download process method can comprise the following steps.
S101, to set up with server and be used for first being connected of downloading object file.
In the embodiment of the present invention, the terminal device need be able to downloaded by smart mobile phone, computer, TV and the accessible network equipment etc. is set up with server and is connected for first of downloading object file.Wherein, terminal device can set up connection between server by http protocol.
Particularly, the process that terminal device and server connect is: according to download address, and the server corresponding to download address sends connection request; If receive the request response that server returns, then return ACK instruction to server, and start to read the data of file destination corresponding to download address that server returns.
S102, when detecting that the first connection occurs abnormal, setting up with server and being connected for second of downloading object file.
For example, setting up in the first connection procedure, it is 10 seconds that terminal device can set connection time-out time, if terminal device did not read the data of file destination from server more than 10 seconds, then can generate exceptional instructions, namely terminal device detects that the first connection occurs extremely, now, terminal device can be set up with server and be connected for second of downloading object file, specifically can comprise the following steps:
11) when detecting that the first connection occurs abnormal, the second exceptional instructions is generated;
12) respond the second exceptional instructions, set up with server and be connected for second of downloading object file.
Again for example, terminal device also when receiving the server exception message of the first connection that server sends, can be set up with server and being connected for second of downloading object file, specifically comprising the following steps:
21) when receiving the server exception message of the first connection that server sends, the first exceptional instructions is generated;
22) respond the first exceptional instructions, set up with server and be connected for second of downloading object file.
S103, judge whether to receive server and connect data in the file destination sent by second.
If S104 receives server by the data in the file destination of the second connection transmission, then the number of retries of the connection being used for downloading object file is set to the first value.
As one embodiment alternatively, terminal device is when receiving server and connecting the data in the file destination sent by second, the data volume of these data and the size of predetermined threshold value can be judged further, if data volume is more than or equal to predetermined threshold value, number of retries can be set to the first value; If data volume is less than predetermined threshold value, number of retries can be set to the second value, wherein, second value is less than the first value, the data volume of the data of the file destination that can be received by current time like this, judges the validity of network, thus arranges different values to number of retries, with as far as possible while the resource reducing retry connection consumption, increase and download successful possibility.
If S105 does not receive server by the data in the file destination of the second connection transmission, then the number of retries of the connection being used for downloading object file is set to zero.
Terminal device do not receive server by second connect send file destination in data time, the number of retries of the connection being used for downloading object file can be set to zero, terminate to connect with server, namely reduce retry further and connect the resource consumed, as the process resource of terminal device and energy resource etc.
Further, after terminal device executes above-mentioned steps, according to set number of retries, the server corresponding with download address can be continued and set up the 3rd connection, until when connection establishment success or file destination are downloaded complete, stop the operation attempting connecting.
In the method described by Fig. 1, terminal device can be set up with server and be connected for first of downloading object file, when first connects appearance exception, can set up with server and be connected for second of downloading object file, and judge whether to receive server by the data in the file destination of the second connection transmission, if receive, the number of retries of the connection being used for downloading object file can be set to the first value.Visible, the method described by Fig. 1 can arrange number of retries according to network connection, improves download success ratio, reduces because constantly retry connects the resource consumed, and improves Consumer's Experience.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of download process method disclosed in the embodiment of the present invention.As shown in Figure 2, this download process method can comprise the following steps.
S201, terminal device and server are set up and are connected for first of downloading object file.
S202, terminal device, when receiving the server exception message of the first connection that server sends, generate the first exceptional instructions.
Correspondingly, if when terminal device does not receive the server exception message of the first connection that server sends, detection first can be continued and connect whether connect time-out, if overtime, also the first exceptional instructions can be generated, particularly, the underlying device of terminal device can when receiving server exception message, generate the first exceptional instructions, and the first exceptional instructions is delivered to network layer, to perform step S203.
Wherein, server exception message can be the of short duration failure message etc. such as shake, power-off of server.
S203, terminal device respond the first exceptional instructions, set up be connected for second of downloading object file with server.
S204, terminal device judge whether to receive server by the data in the file destination of the second connection transmission, if so, then perform step S205, otherwise, perform step S206.
The number of retries of the connection being used for downloading object file, when receiving server and connecting the data in the file destination sent by second, is set to the first value by S205, terminal device.
The number of retries of the connection being used for downloading object file, when not receiving server and connecting the data in the file destination sent by second, is set to zero by S206, terminal device.
In the method described by Fig. 2, terminal device can when receiving the server exception message of the first connection that server sends, generate the first exceptional instructions, so that terminal device is according to this first exceptional instructions, sets up with server and be connected for second of downloading object file.Visible, the method described by Fig. 2 can improve download success ratio equally, relatively reduces the resource consumption connecting retry and cause, improves Consumer's Experience further.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the embodiment of the present invention another download process method disclosed.Wherein, method as indicated at 3 comprises the following steps:
S301, to set up with server and be used for first being connected of downloading object file.
S302, when detecting that the first connection occurs abnormal, generate the second exceptional instructions.
S303, respond the second exceptional instructions, set up with server and be used for second of downloading object file and be connected.
It should be noted that when the first connection occurs extremely and file destination has not been downloaded, terminal device can be set up with server and be connected for second of downloading object file.
S304, judge whether to receive server and connect data in the file destination sent by second, if so, then perform step S305, otherwise perform step S306.
S305, when receive server by second connect send file destination in data time, judge whether the data volume of these data is more than or equal to predetermined threshold value, if be more than or equal to, then perform step S307, otherwise, perform step S308.
S306, when do not receive server by second connect send file destination in data time, the number of retries of the connection being used for downloading object file is set to zero.
S307, to connect data in the file destination sent by second when receiving server, and the data volume of these data is more than or equal to predetermined threshold value, then the number of retries of the connection being used for downloading object file is set to the first value.
S308, to connect data in the file destination sent by second when receiving server, and the data volume of these data is less than predetermined threshold value, then the number of retries of the connection being used for downloading object file is set to the second value.
Wherein, the first value is greater than the second value.Judge to receive the situation of server by the data in the file destination of the second connection transmission, respectively number of retries is arranged above-mentioned two values, can when terminal device processing load be large, rationally number of retries is set, while success ratio is downloaded in raising, reduce retry and connect the resource consumed, and ensure the convenience of user operation terminal.
S309, the first value arranged according to number of retries or the second value, sets up the 3rd to be connected for downloading object file with server.
In step S309, the number of retries that terminal device is arranged according to step S301 to S308, attempt setting up with server being connected (wherein for the 3rd of downloading object file, 3rd connects the connection for general reference trial foundation), until the number of times attempting connecting reaches set number of retries, or when file destination is downloaded complete, stop setting up with server being connected for the 3rd of downloading object file.
In the method described by Fig. 3, when terminal device can detect that the first connection occurs abnormal, generate the second exceptional instructions, so that terminal device is according to this second exceptional instructions, set up with server and be connected for second of downloading object file, and connect the data volume of the data of the file destination sent by second according to the server received, number of retries is set to the first value or the second value.Visible, what the method described by Fig. 3 can be more concrete arranges number of retries according to network connection status, thus, improve and download success ratio, and the resource relatively reducing repeatedly retry to connect and consume, improve Consumer's Experience further.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of download process device disclosed in the embodiment of the present invention.Wherein, the download process device shown in Fig. 4 comprises with lower module:
First link block 1, is connected for first of downloading object file for setting up with server.
Second link block 2, during for occurring abnormal when the first connection detecting that the first link block 1 is set up, setting up with server and being connected for second of downloading object file.
Correspondingly, this device can also comprise detection module, set up for detecting the first link block 1 first connects whether occur exception, if when detecting abnormal, trigger the second link block 2 by the first link block 1, set up to make the second link block 2 and server and be connected for second of downloading object file.
Judge module 3, for judging whether the data received in the file destination of the second connection transmission that server is set up by the second link block 2.
First processing module 4, for in the judged result of described judge module 3 be receive that server set up by the second link block second connect the data in the file destination sent time, the number of retries of the connection being used for downloading object file is set to the first value.
Accordingly, when judge module 3 judges the data received in the file destination of the second connection transmission that server is set up by the second link block 2, trigger the first processing module 4 and perform the operation number of retries of the connection being used for downloading object file being set to the first value.
See also Fig. 5, Fig. 5 is the structural representation of another kind of download process device disclosed in the embodiment of the present invention.Wherein, the download process device shown in Fig. 5 is that download process device is as shown in Figure 4 optimized and obtains.Compared with the download process device shown in Fig. 4, the download process device shown in Fig. 5 also comprises:
Second processing module 5, in the judged result of judge module 3 be do not receive server by the second link block 2 set up second connect send file destination in data time, the number of retries of the connection being used for downloading object file is set to zero.
Accordingly, judge module 3 judge not receive server by the second link block 2 set up second connect the data in the file destination sent time, trigger the second processing module 5 and perform the operation number of retries of the connection being used for downloading object file being set to zero.
Link block 6, for the first value arranged by described first processing module 4 according to number of retries, sets up with server and is connected for the 3rd of downloading object file.
As one embodiment alternatively, the second link block 2, specifically for when receiving the server exception message of the first connection that server sends, being set up with server and being connected for second of downloading object file.
Particularly, in the download process device shown in Fig. 5, the second link block 2 comprises:
First generation unit 21, for when receiving the server exception message of the first connection that server sends, generates the first exceptional instructions.
First response unit 22, for responding the first exceptional instructions that the first generation unit generates, setting up with server and being connected for second of downloading object file.
Correspondingly, the first link block 1, when detection module detects that its connection of setting up is abnormal, can trigger the operation that the first generation unit 21 performs generation first exceptional instructions; First response unit 22 after foundation connects for second of downloading object file, can trigger judge module 3 and performs the operation judging whether the data received in the file destination of the second connection transmission that server is set up by the first response unit 22.
As another kind embodiment alternatively, in the download process device shown in Fig. 5, the second link block 2, can also comprise:
Second generation unit 23, for when detecting that the first connection occurs abnormal, generates the second exceptional instructions;
Second response unit 24, for responding the second exceptional instructions that the second generation unit 23 generates, setting up with server and being connected for second of downloading object file.
In specific implementation, the second generation unit 23 may be used for, when detecting that described first connects time-out, generating the described first exceptional instructions connected.
Correspondingly, the first link block 1 also when detection module detects that the connection that the first link block 1 is set up is abnormal, can trigger the operation that the second generation unit 23 performs generation second exceptional instructions; Second response unit 24 after foundation connects for second of downloading object file, can trigger judge module 3 and performs the operation judging whether the data received in the file destination of the second connection transmission that server is set up by the second response unit 24.
It should be noted that, in the download process device shown in Fig. 5, second link block 2 can comprise the first generation unit 21 and the first response unit 22 in the first embodiment simultaneously, and the second generation unit 23 and the second generation unit 24 in the second embodiment; Or in the download process device shown in Fig. 5, the second link block 2 also can comprise any one combination in two kinds of embodiments.
For example, when second processing module 5 is specifically for connecting the data in the file destination sent do not receive that server set up by the second link block second, the number of retries of the connection being used for downloading object file is set to zero, thus the resource that ineffectually trial can be reduced as far as possible to connect and consume.
First processing module 4 specifically for receive server by the second link block 2 in the first response unit 22 or the second response unit 24 set up second connect data in the file destination sent, and the data volume of these data is when being more than or equal to predetermined threshold value, the number of retries of the connection being used for downloading object file is set to the first value.
First processing module 4 also for receive server by the second link block 2 in the first response unit 22 or the second response unit 24 set up second connect the data in the file destination sent time, and the data volume of these data is when being less than predetermined threshold value, the number of retries being used for the connection of downloading described file destination is set to the second value.
Wherein, the first above-mentioned value is greater than the second value.
Second link block 2, specifically for when the first connection occurs extremely and file destination has not been downloaded, is set up with server and is connected for second of downloading object file.
Correspondingly, first processing module 4 is also for after being provided with the number of retries for the connection of downloading object file, trigger link block 6 according to the number of retries arranged, set up the 3rd connection being used for downloading object file, when until trial connects, number of times reaches set number of retries or downloaded file destination, stop connecting with server.
In the download process device described by Fig. 4, Fig. 5, terminal device can when first connects appearance exception, set up with server and be connected for second of downloading object file, and judge whether to receive server by the data in the file destination of the second connection transmission, if receive server by the data in the file destination of the second connection transmission, the number of retries of the connection being used for downloading object file can be set to the first value, otherwise, number of retries can be set to the second value, wherein, the second value is less than the first value.Improve download success ratio, improve Consumer's Experience.Further, in the download process device that Fig. 5 describes, can arrange number of retries according to network connection is the first value, the second value or the 3rd value, can improve while downloading success ratio, reduces because attempting the resource consumed that connects.
Correspondingly, the embodiment of the invention discloses a kind of terminal, this terminal can comprise the download process device shown in Fig. 4 or Fig. 5, therefore, this terminal can arrange the number of retries of attempting connecting according to network connection, thus improve download success ratio, the resource that reduction is blindly repeatedly attempted connecting and consumed, and Consumer's Experience can be improved.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (15)

1. a download process method, is characterized in that, comprising:
Set up with server and be connected for first of downloading object file;
When detect described first connect occur abnormal time, set up for second being connected of downloading described file destination with described server;
Judge whether to receive described server by the data in the described file destination of described second connection transmission, if so, then the number of retries being used for the connection of downloading described file destination is set to the first value.
2. the method for claim 1, is characterized in that, described when detect described first connect occur abnormal time, set up for second being connected of downloading described file destination with described server, comprising:
When receiving the server exception message of described first connection that described server sends, generate the first exceptional instructions;
Respond described first exceptional instructions, set up for second being connected of downloading described file destination with described server.
3. the method for claim 1, is characterized in that, described when detect described first connect occur abnormal time, set up for second being connected of downloading described file destination with described server, comprising:
When detecting that described first connects appearance exception, generate the second exceptional instructions;
Respond described second exceptional instructions, set up for second being connected of downloading described file destination with described server.
4. the method for claim 1, is characterized in that, described method also comprises:
Described second connect occur abnormal time, according to described first value that described number of retries is arranged, set up for the 3rd being connected of downloading described file destination with described server.
5. the method for claim 1, is characterized in that, described method also comprises:
Do not receive described server if judge by the data in the described file destination of described second connection transmission, then the number of retries being used for the connection of downloading described file destination is set to zero.
6. the method for claim 1, is characterized in that, receives described server by the data in the described file destination of described second connection transmission, then the number of retries being used for the connection of downloading described file destination is set to the first value, comprises if described:
If receive described server by described second connect send described file destination in data and the data volume of these data is more than or equal to predetermined threshold value, then the number of retries being used for the connection of downloading described file destination is set to the first value.
7. method as claimed in claim 6, it is characterized in that, described method also comprises:
If receive described server by described second connect send described file destination in data and the data volume of these data is less than described predetermined threshold value, then the number of retries being used for the connection of downloading described file destination is set to the second value, wherein, described second value is less than described first value.
8. a download process device, is characterized in that, comprising:
First link block, is connected for first of downloading object file for setting up with server;
Second link block, when occurring abnormal for connecting when detect that described first link block sets up first, sets up for second being connected of downloading described file destination with described server;
Judge module, for judging whether the data received in the described file destination of the second connection transmission that described server is set up by described second link block;
First processing module, for in the judged result of described judge module be receive described server by described second link block set up second connect send described file destination in data time, the number of retries being used for the connection of downloading described file destination is set to the first value.
9. device as claimed in claim 8, it is characterized in that, described second link block comprises:
First generation unit, for when receiving the server exception message of described first connection that described server sends, generates the first exceptional instructions;
First response unit, for responding the first exceptional instructions that described first generation unit generates, sets up for second being connected of downloading described file destination with described server.
10. device as claimed in claim 8, it is characterized in that, described second link block comprises:
Second generation unit, for when detecting that described first connects appearance exception, generates the second exceptional instructions;
Second response unit, for responding the second exceptional instructions that described second generation unit generates, sets up for second being connected of downloading described file destination with described server.
11. devices as claimed in claim 8, it is characterized in that, described device also comprises:
Link block, for described second connect occur abnormal time, described first value that the first processing module is arranged according to described number of retries, sets up for the 3rd being connected of downloading described file destination with described server.
12. devices as claimed in claim 8, it is characterized in that, described device also comprises:
Second processing module, for in the judged result of described judge module be do not receive described server by described second link block set up second connect send described file destination in data time, the number of retries being used for the connection of downloading described file destination is set to zero.
13. devices as claimed in claim 8, it is characterized in that, described first processing module is specifically for the data in the described file destination receiving the second connection transmission that described server is set up by described second link block, and the data volume of these data is when being more than or equal to predetermined threshold value, the number of retries being used for the connection of downloading described file destination is set to the first value.
14. devices as claimed in claim 13, it is characterized in that, described first processing module is also for the data in the described file destination receiving the second connection transmission that described server is set up by described second link block, and the data volume of these data is when being less than described predetermined threshold value, the number of retries being used for the connection of downloading described file destination is set to the second value, wherein, described second value is less than described first value.
15. 1 kinds of terminals, is characterized in that, described terminal comprises the device described in any one of the claims 8 to 14.
CN201410419479.2A 2014-08-22 2014-08-22 A kind of download process method and device, terminal Active CN104216739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410419479.2A CN104216739B (en) 2014-08-22 2014-08-22 A kind of download process method and device, terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410419479.2A CN104216739B (en) 2014-08-22 2014-08-22 A kind of download process method and device, terminal

Publications (2)

Publication Number Publication Date
CN104216739A true CN104216739A (en) 2014-12-17
CN104216739B CN104216739B (en) 2018-10-26

Family

ID=52098268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410419479.2A Active CN104216739B (en) 2014-08-22 2014-08-22 A kind of download process method and device, terminal

Country Status (1)

Country Link
CN (1) CN104216739B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209958A (en) * 2015-05-08 2016-12-07 广达电脑股份有限公司 Cloud service system and method thereof
CN108337715A (en) * 2018-01-31 2018-07-27 广东欧珀移动通信有限公司 Wireless network connecting method, device, terminal device and storage medium
CN110278247A (en) * 2019-05-24 2019-09-24 深圳壹账通智能科技有限公司 High-volume document down loading method and device, storage medium, electronic equipment
CN110572229A (en) * 2019-09-09 2019-12-13 Oppo广东移动通信有限公司 Time calibration method, device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127781A (en) * 2007-09-26 2008-02-20 北京搜狐新时代信息技术有限公司 Method, device and mobile terminal for mobile terminal to download files
US20090175182A1 (en) * 2008-01-07 2009-07-09 Microsoft Corporation Differentiated service transmission parameters adaptation
CN101635916B (en) * 2009-08-11 2012-02-29 中兴通讯股份有限公司 Method and system for loading resources based on multi-mode mobile terminal
CN103200247A (en) * 2013-03-26 2013-07-10 深圳市网信联动技术有限公司 Data downloading method and personal computer (PC) downloading client side
CN103746835A (en) * 2013-12-25 2014-04-23 乐视网信息技术(北京)股份有限公司 Data downloading method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127781A (en) * 2007-09-26 2008-02-20 北京搜狐新时代信息技术有限公司 Method, device and mobile terminal for mobile terminal to download files
US20090175182A1 (en) * 2008-01-07 2009-07-09 Microsoft Corporation Differentiated service transmission parameters adaptation
CN101635916B (en) * 2009-08-11 2012-02-29 中兴通讯股份有限公司 Method and system for loading resources based on multi-mode mobile terminal
CN103200247A (en) * 2013-03-26 2013-07-10 深圳市网信联动技术有限公司 Data downloading method and personal computer (PC) downloading client side
CN103746835A (en) * 2013-12-25 2014-04-23 乐视网信息技术(北京)股份有限公司 Data downloading method and apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209958A (en) * 2015-05-08 2016-12-07 广达电脑股份有限公司 Cloud service system and method thereof
CN106209958B (en) * 2015-05-08 2019-08-09 广达电脑股份有限公司 Cloud service system and method thereof
CN108337715A (en) * 2018-01-31 2018-07-27 广东欧珀移动通信有限公司 Wireless network connecting method, device, terminal device and storage medium
CN108337715B (en) * 2018-01-31 2021-01-15 Oppo广东移动通信有限公司 Wireless network connection method, device, terminal equipment and storage medium
CN110278247A (en) * 2019-05-24 2019-09-24 深圳壹账通智能科技有限公司 High-volume document down loading method and device, storage medium, electronic equipment
CN110572229A (en) * 2019-09-09 2019-12-13 Oppo广东移动通信有限公司 Time calibration method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN104216739B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN103313216B (en) Message prompt method, system and device for communication account
CN106936671B (en) Multi-screen interaction method and device and terminal equipment
CN103124275B (en) A kind of method and apparatus obtaining file
CN102801656B (en) Realize condition control method, the equipment and system of instant messaging application
CN104216739A (en) Method, device and terminal for download processing
CN104539682A (en) Debug method, device, mobile terminal, server and system for mobile webpage
CN104391716A (en) Plug-in-based application program implementing method and device
CN103401991A (en) Method and device for prompting communication event of terminal device
CN109376062B (en) Network state prompting method and related device
CN104980925A (en) Authentication method and authentication device for user request
CN105471678A (en) Method and system for detecting networking failure reason of household appliance and mobile terminal
CN104978180A (en) Unhandled event reminding method, unhandled event reminding device and mobile terminal
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN110287093A (en) Mobile terminal, data-interface test method and storage medium
CN102833405A (en) Method and device for displaying static wallpaper and mobile terminal
CN110418344A (en) A kind of method and device that equipment identities mark generates
CN110198427A (en) Video call method and device
CN112822430A (en) Conference group merging method and device
CN105722244A (en) Information processing method and electronic device
CN111970749A (en) Network connection method and device, intelligent household equipment and intelligent household system
CN106792206A (en) A kind of TV menu adaptive updates method and system
WO2020223862A1 (en) Mounting processing method and apparatus, electronic device, and computer readable storage medium
CN103905470A (en) Resource downloading method, resource downloading device and mobile terminal
CN105554131A (en) Data processing method and mobile terminal
CN105446803A (en) Application management method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510623 07, 08A unit, fifteenth floor of agile center, 26 Huaxia Road, Tianhe District, Guangzhou, Guangdong.

Applicant after: Guangzhou cheetah Network Technology Co., Ltd.

Address before: 510623 01-B sixth unit, Guangzhou bank building, 30 Zhujiang East Road, Tianhe District, Guangzhou, Guangdong.

Applicant before: Kingsoft, Guangzhou network technology Co., Ltd

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant