CN101582924A - Data transmission method of mobile terminal and device thereof - Google Patents

Data transmission method of mobile terminal and device thereof Download PDF

Info

Publication number
CN101582924A
CN101582924A CNA2009101472719A CN200910147271A CN101582924A CN 101582924 A CN101582924 A CN 101582924A CN A2009101472719 A CNA2009101472719 A CN A2009101472719A CN 200910147271 A CN200910147271 A CN 200910147271A CN 101582924 A CN101582924 A CN 101582924A
Authority
CN
China
Prior art keywords
downloading task
current downloading
byte number
downloaded
finishing
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
CNA2009101472719A
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.)
Shenzhen Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju 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 Shenzhen Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CNA2009101472719A priority Critical patent/CN101582924A/en
Publication of CN101582924A publication Critical patent/CN101582924A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data transmission method of a mobile terminal and a device thereof, wherein the method comprises: step1. the mobile terminal selects a current download task; step 2. the mobile terminal adds the download-completed byte count of the current download task to an HTTP request and sends the HTTP request to a server; step 3. the server sends the data after the download-completed byte count of the current download task to the mobile terminal; and step 4. the mobile terminal writes the data at the end of the download-completed file of the current download task. The device comprises a storage module, a sending module and a data processing module. The invention can achieve the functions of continuously downloading at an interruption point after resource download is interrupted on the mobile terminal, avoiding the trouble of re-downloading resources for a user and preventing the problem of resource waste.

Description

A kind of data transmission method of mobile terminal and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of data transmission method of mobile terminal and device.
Background technology
Along with the continuous development of the communication technology, the user can use portable terminal to come down loading network resource by network, for example music, picture, video etc.Here, portable terminal is meant the handheld communication devices that can receive and send messages by network, as mobile phone, PDA etc.The downloading process of portable terminal needs a continuous process to realize usually, if in process of downloading, produced interruption (for example because of battery is used up, user of incoming call, come reasons such as message and network signal instability to cause), then cause whole downloading process failure, the Internet resources of Xia Zaiing cannot not preserved, need to the resource downloaded carry out repeated downloads when downloading with same condition next time.So not only wasted the time that the user waits for downloads, and the wasting of resources that brings the increase because of network traffics to cause to the user.
Summary of the invention
At defective that exists in the prior art and deficiency, the objective of the invention is to propose a kind of data transmission method of mobile terminal and device that is applied between portable terminal and the server, can carry out breakpoint transmission.
In order to achieve the above object, the present invention proposes a kind of data transmission method of mobile terminal, may further comprise the steps:
Step 1: portable terminal is selected current downloading task;
Step 2: portable terminal has been downloaded the byte number of finishing with current downloading task and has been added in the HTTP request and with described HTTP request and send to server;
Step 3: the data that server has been downloaded described current downloading task after the byte number of finishing send to portable terminal;
Step 4: portable terminal is write current downloading task with above-mentioned data and has been downloaded the end of file of finishing.
Preferred as technique scheme, described step 2 is specially:
Step 21: portable terminal obtains current downloading task and has downloaded the byte number of finishing;
Step 22: portable terminal adds the described value of having downloaded the byte number of finishing in the header information of HTTP request;
Step 23: portable terminal sends to server with above-mentioned HTTP request.
Preferred as technique scheme, the current downloading task in the described step 21 have been downloaded the byte number finished by portable terminal record and storage when carrying out described current downloading task and interrupt last time.
Preferred as technique scheme, described step 3 is specially:
Step 31: server is resolved the original position that obtains sending data to the HTTP request that receives;
Step 32: server will send to portable terminal from the data of above-mentioned original position.
Preferred as technique scheme, described step 4 is specially:
Step 41: portable terminal regularly writes current downloading task with the data that receive and has downloaded the end of file of finishing, till all receiving.
Step 42: the byte number of this download of mobile terminal records.
Preferred as technique scheme also comprises:
Step 5: portable terminal judges whether current downloading task is all finished, if advance to step 6; If not, skip to step 7.
Step 6: in the time of will carrying out described current downloading task last time and interrupt record and storage download the byte number zero clearing of finishing, with the byte number zero clearing of described this download of record in the step 42 and storage, finish current downloading task;
Step 7: new record and store current downloading task and downloaded the byte number of finishing more, finish this downloading task.
Preferred as technique scheme, the foundation of judging in the described step 6 is: current downloading task has been downloaded the byte number of finishing and has been added whether the byte number sum of this download equals the total bytes of current downloading task.
In order to achieve the above object, the present invention also proposes a kind of mobile terminal data transmitting device, comprising:
Memory module, described memory module are stored current downloading task and have been downloaded the byte number finished and the byte number of this download;
Sending module, described sending module have been downloaded the byte number of finishing with the current downloading task in the above-mentioned memory module and have been added in the HTTP request header information and send this HTTP and ask to server;
Data processing module, described data processing module will be write current downloading task from the data that server receives and download the end of file of finishing.
Preferred as technique scheme also comprises judge module, and described judge module judges whether current downloading task is all finished.
The present invention proposes a kind of data transmission method of mobile terminal, comprise that step 1, portable terminal select current downloading task; Step 2, portable terminal have been downloaded the byte number of finishing with current downloading task and have been added in the HTTP request and with described HTTP request and send to server; The data that step 3, server have been downloaded described current downloading task after the byte number of finishing send to portable terminal; Step 4, portable terminal are write current downloading task with above-mentioned data and have been downloaded the end of file of finishing.The present invention also proposes a kind of mobile terminal data transmitting device, comprising: memory module; Sending module; Data processing module.The present invention can realize having no progeny in the resource downloading on portable terminal and can continue the function of download at the point of interruption, has saved user's trouble of downloaded resources again, has avoided the problem of the wasting of resources.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.For the person of ordinary skill in the field, from detailed description of the invention, above-mentioned and other purposes of the present invention, feature and advantage will be apparent.
Description of drawings
Fig. 1 is the schematic flow sheet of a kind of data transmission method of mobile terminal of the present invention's proposition;
A kind of mobile terminal data transmitting device composition frame chart that Fig. 2 proposes for the present invention.
Embodiment
The present invention proposes a kind of data transmission method that is applied to portable terminal, its preferred embodiment comprises:
Step 1: the user selects current downloading task by portable terminal;
Step 2: portable terminal has been downloaded the byte number of finishing with current downloading task and has been added in the HTTP request and to server and send described HTTP request;
Step 3: the data that server has been downloaded described current downloading task after the byte number of finishing send to portable terminal;
Step 4: portable terminal is write current downloading task with above-mentioned data and has been downloaded the end of file of finishing.
In above-mentioned steps 2, current downloading task has been downloaded the byte number finished by portable terminal record and storage when carrying out described current downloading task and interrupt last time.
As shown in Figure 1, second preferred embodiment of the present invention may further comprise the steps:
Step 1: the user can select current downloading task by click certain hyperlink in portable terminal, obtains the URL of current downloading task, the relevant informations such as total bytes of current downloading task;
Step 2: portable terminal obtains the current downloading task that is kept in the portable terminal and has downloaded the byte number of finishing, and this current downloading task has been downloaded the byte number finished by portable terminal record and storage when carrying out described current downloading task and interrupt last time.When downloading the byte number of finishing and equal zero, represent that current downloading task was not downloaded, at this moment can from the beginning download by original method; When downloading the byte number of finishing when non-vanishing, represent that current downloading task was downloaded, but the last downloaded process is interrupted, also promptly disconnect when being connected when portable terminal and server, current downloading task is not all finished, and at this moment forwards step 3 to;
Wherein, download the byte number of finishing and represented the byte number of the current downloading task of not finishing fully that last time, portable terminal received, also indicated and received the original position of data and the original position that server will send data when next portable terminal continues to carry out current downloading task, such as downloading the byte number of finishing is 5 o'clock, server began to send from the 6th byte of current downloading task total byte when continued to download next time, and portable terminal also just begins to receive from the 6th byte of current downloading task total byte;
Step 3: portable terminal adds the value that the current downloading task of obtaining has been downloaded the byte number of finishing in the header of HTTP request to.Concrete, value can be added in the Range territory in the HTTP request header information;
Step 4: portable terminal sends the HTTP request message that has configured in the described step 3 to server, comprises in the HTTP request message that the URL of current downloading task, current downloading task downloaded the information of finishing such as byte number;
Step 5: server is resolved it after receiving the HTTP request message, obtains sending the original position of data, sends http response message to portable terminal then;
Include in the described http response message that server sends: inform that portable terminal begins length of the data of part information transmitted, transmission (representing with byte number) and data entity now;
It is exactly that data after described current downloading task has been downloaded the byte number of finishing send to portable terminal that server sends http response message to portable terminal;
Step 6: portable terminal is write current downloading task with above-mentioned data and has been downloaded the end of file of finishing after the http response message that receives is resolved;
The time that writes can be to write continuously, also can be regularly to write.
Step 7: portable terminal regularly writes current downloading task with the data that receive and has downloaded the end of file of finishing, till all receiving.
The 3rd preferred embodiment of the present invention is to have increased follow-up determining step on the basis of second preferred embodiment, that is:
Step 7: portable terminal regularly writes current downloading task with the data that receive and has downloaded the end of file of finishing, and till all receiving, and portable terminal also writes down and store the byte number of this download.
Step 8: portable terminal judges that current downloading task downloaded the byte number of finishing and added whether the byte number sum of this download equals the total bytes of current downloading task.Whether current downloading task is all finished, if advance to step 9; If not, then may be to interrupt because of outer some reason makes to download, fail all to finish, skip to step 10.
Step 9: with portable terminal when carrying out described current downloading task and interrupt last time record and storage download the byte number zero clearing of finishing, with the also byte number zero clearing of this download of storage of mobile terminal records, finish current downloading task, with this downloading task deletion;
Step 10: the mobile terminal to update record is also stored current downloading task and has been downloaded the byte number of finishing, it is that the current downloading task that is used as judgement in the step 8 has been downloaded the byte number sum that the byte number of finishing adds this download that new current downloading task has been downloaded the byte number of finishing, read and use when portable terminal is next carries out current downloading task to give over to, finish this downloading task.
In order to realize the object of the invention, server among the present invention should be a server of supporting breakpoint transmission, the above-mentioned application of portable terminal is to realize by a kind of mobile terminal data transmitting device of installing within it, the preferred embodiment of apparatus of the present invention as shown in Figure 2, comprise: memory module, described memory module are stored current downloading task and have been downloaded the byte number finished and the byte number of this download; Sending module, described sending module have been downloaded the byte number of finishing with the current downloading task in the above-mentioned memory module and have been added in the HTTP request header information and send this HTTP and ask to server; Data processing module, described data processing module will be write current downloading task from the data that server receives and download the end of file of finishing.
Another preferred embodiment of apparatus of the present invention is to have increased judge module on the basis of the foregoing description, described judge module is in order to judge whether current downloading task is all finished, if finish, just delete this task, if do not finish, then the current downloading task of storing in the updated stored module has been downloaded the byte number of finishing.
Though; the present invention clearly demonstrates by above embodiment and accompanying drawing thereof; yet under the situation that does not deviate from spirit of the present invention and essence thereof; the person of ordinary skill in the field works as can make various corresponding variations and correction according to the present invention, but these corresponding variations and correction all should belong to the protection range of claim of the present invention.

Claims (9)

1, a kind of data transmission method of mobile terminal is characterized in that, may further comprise the steps:
Step 1: portable terminal is selected current downloading task;
Step 2: portable terminal has been downloaded the byte number of finishing with current downloading task and has been added in the HTTP request and with described HTTP request and send to server;
Step 3: the data that server has been downloaded described current downloading task after the byte number of finishing send to portable terminal;
Step 4: portable terminal is write current downloading task with above-mentioned data and has been downloaded the end of file of finishing.
2, data transmission method of mobile terminal according to claim 1 is characterized in that, described step 2 is specially:
Step 21: portable terminal obtains current downloading task and has downloaded the byte number of finishing;
Step 22: portable terminal adds the described value of having downloaded the byte number of finishing in the header information of HTTP request;
Step 23: portable terminal sends to server with above-mentioned HTTP request.
3, data transmission method of mobile terminal according to claim 2 is characterized in that, the current downloading task in the described step 21 has been downloaded the byte number finished by portable terminal record and storage when carrying out described current downloading task and interrupt last time.
4, data transmission method of mobile terminal according to claim 1 is characterized in that, described step 3 is specially:
Step 31: server is resolved the original position that obtains sending data to the HTTP request that receives;
Step 32: server will send to portable terminal from the data of above-mentioned original position.
5, data transmission method of mobile terminal according to claim 1 is characterized in that, described step 4 is specially:
Step 41: portable terminal writes current downloading task with the data that receive and has downloaded the end of file of finishing, till all receiving.
Step 42: mobile terminal records is also stored the byte number of this download.
6, data transmission method of mobile terminal according to claim 5 is characterized in that, also comprises:
Step 5: portable terminal judges whether current downloading task is all finished, if advance to step 6; If not, skip to step 7.
Step 6: in the time of will carrying out described current downloading task last time and interrupt record and storage download the byte number zero clearing of finishing, with the byte number zero clearing of described this download of record in the step 42 and storage, finish current downloading task;
Step 7: the more current downloading task of new record has been downloaded the byte number of finishing, finishes this downloading task.
7, data transmission method of mobile terminal according to claim 6, it is characterized in that the foundation of judging in the described step 6 is: current downloading task has been downloaded the byte number of finishing and added whether the byte number sum of this download equals the total bytes of current downloading task.
8, a kind of mobile terminal data transmitting device is characterized in that, comprising:
Memory module, described memory module are stored current downloading task and have been downloaded the byte number finished and the byte number of this download;
Sending module, described sending module have been downloaded the byte number of finishing with the current downloading task in the above-mentioned memory module and have been added in the HTTP request header information and send this HTTP and ask to server;
Data processing module, described data processing module will be write current downloading task from the data that server receives and download the end of file of finishing.
9, mobile terminal data transmitting device according to claim 8 is characterized in that, also comprises judge module, and described judge module judges whether current downloading task is all finished.
CNA2009101472719A 2009-06-19 2009-06-19 Data transmission method of mobile terminal and device thereof Pending CN101582924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009101472719A CN101582924A (en) 2009-06-19 2009-06-19 Data transmission method of mobile terminal and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009101472719A CN101582924A (en) 2009-06-19 2009-06-19 Data transmission method of mobile terminal and device thereof

Publications (1)

Publication Number Publication Date
CN101582924A true CN101582924A (en) 2009-11-18

Family

ID=41364878

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009101472719A Pending CN101582924A (en) 2009-06-19 2009-06-19 Data transmission method of mobile terminal and device thereof

Country Status (1)

Country Link
CN (1) CN101582924A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169439A (en) * 2010-02-26 2011-08-31 英业达股份有限公司 Data transmission system
CN102487401A (en) * 2010-12-06 2012-06-06 腾讯科技(深圳)有限公司 File download method and apparatus thereof
CN102932480A (en) * 2012-11-16 2013-02-13 福建联迪商用设备有限公司 Method for continuously transmitting breakpoint on terminal
CN105794148A (en) * 2014-06-27 2016-07-20 北京新媒传信科技有限公司 Method, device, intelligent terminal and system for data sending/receiving
CN108881416A (en) * 2018-06-01 2018-11-23 深圳市友悦机器人科技有限公司 Method of data synchronization, terminal device, server and data synchronous system
CN111262952A (en) * 2020-03-27 2020-06-09 北京环鼎科技有限责任公司 Breakpoint continuous loading method for downloading acoustic data file for storage logging
WO2022083190A1 (en) * 2020-10-19 2022-04-28 深圳市广和通无线股份有限公司 Data downloading method and apparatus, computer device, and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169439A (en) * 2010-02-26 2011-08-31 英业达股份有限公司 Data transmission system
CN102169439B (en) * 2010-02-26 2014-05-07 英业达股份有限公司 Data transmission system
CN102487401A (en) * 2010-12-06 2012-06-06 腾讯科技(深圳)有限公司 File download method and apparatus thereof
CN102487401B (en) * 2010-12-06 2016-04-20 腾讯科技(深圳)有限公司 A kind of document down loading method and device
CN102932480A (en) * 2012-11-16 2013-02-13 福建联迪商用设备有限公司 Method for continuously transmitting breakpoint on terminal
CN102932480B (en) * 2012-11-16 2015-11-04 福建联迪商用设备有限公司 A kind of method of terminal breakpoint transmission
CN105794148A (en) * 2014-06-27 2016-07-20 北京新媒传信科技有限公司 Method, device, intelligent terminal and system for data sending/receiving
CN108881416A (en) * 2018-06-01 2018-11-23 深圳市友悦机器人科技有限公司 Method of data synchronization, terminal device, server and data synchronous system
CN111262952A (en) * 2020-03-27 2020-06-09 北京环鼎科技有限责任公司 Breakpoint continuous loading method for downloading acoustic data file for storage logging
CN111262952B (en) * 2020-03-27 2023-11-21 北京环鼎科技有限责任公司 Breakpoint continuous loading method for downloading acoustic data file for storage logging
WO2022083190A1 (en) * 2020-10-19 2022-04-28 深圳市广和通无线股份有限公司 Data downloading method and apparatus, computer device, and storage medium

Similar Documents

Publication Publication Date Title
CN101582924A (en) Data transmission method of mobile terminal and device thereof
US20090264138A1 (en) Method and system for transmitting multimedia contents in communication network
US20080020738A1 (en) Mobile device service authorization system and method
US20120281581A1 (en) Method and device for selecting access point name
CN101854649A (en) Mobile terminal and method and device for monitoring Internet surfing data traffic of mobile terminal
CN102387172A (en) Method and device for providing or obtaining contents of network resources for mobile equipment
EP2627127B1 (en) Terminal device, data reception method, data reception program and recording medium
JP2008504743A (en) System and method for background downloading of digital content to peripheral devices intermittently connected via a wireless device
EP3654591B1 (en) Method and device for transmitting multimedia message, storage medium, and electronic apparatus
CN108600769A (en) Image transfer method, apparatus and system
CN101729673A (en) Method and device for setting ringtone and wallpaper of mobile terminal
CN114095876A (en) Broadcast data processing method and device, storage medium and electronic device
CN107172109A (en) Conversed based on IMS and show method, storage device and the mobile terminal of head portrait
JP4401729B2 (en) Mobile communication terminal
CN101159763B (en) Method and apparatus for downloading mobile information equipment characteristic application program
KR100957639B1 (en) Method, and apparatus for providing wireless data
KR100434318B1 (en) Method for transmitting file in mobile communication system
KR101080987B1 (en) Method of processing multimedia message in portable terminal
CN101616497A (en) A kind of method, Subscriber Identity Module and unit of realizing short message on-demand service
KR20030029556A (en) Method for providing broadcast contents using a mobile terminal and computer readable record medium on which a program therefor is recorded
JP4447041B2 (en) Mobile communication terminal
JP4832481B2 (en) Mobile communication terminal
KR101048269B1 (en) Apparatus and method for providing a message service
KR100699106B1 (en) System and portable communication devices for managing operation program and data using wire/wireless internet and method thereof
JP5208441B2 (en) Billing information generation apparatus and billing information generation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20091118