CN105794148A - Method, device, intelligent terminal and system for data sending/receiving - Google Patents

Method, device, intelligent terminal and system for data sending/receiving Download PDF

Info

Publication number
CN105794148A
CN105794148A CN201480064753.7A CN201480064753A CN105794148A CN 105794148 A CN105794148 A CN 105794148A CN 201480064753 A CN201480064753 A CN 201480064753A CN 105794148 A CN105794148 A CN 105794148A
Authority
CN
China
Prior art keywords
data
signaling
client
mark
response
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
CN201480064753.7A
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.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication 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 Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Publication of CN105794148A publication Critical patent/CN105794148A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a method, device, intelligent terminal and system for data sending/receiving, which relate to the technical field of data transmission. A data sending method provided in the embodiments of the present invention comprises: sending uploaded data initial signalling to a server; receiving a returning response sent by the server; according to the returning response, judging whether to send uploaded data, the returning response carrying a data transmission starting location identification; and if there is a need to send uploaded data, sending the uploaded data to the server by means of uploaded data signalling according to the data transmission starting location identification. The use of the method, device, intelligent terminal and system for data sending/receiving provided in the present invention can not only save data uploading traffic and shorten the uploading time, but also can save data downloading traffic and shorten the downloading time.

Description

Method, device, intelligent terminal and system for data sending/receiving
A kind of data transmission/method of reseptance, device,
The present invention relates to technical field of data transmission, more particularly to a kind of data transmission/method of reseptance, device, intelligent terminal and system for intelligent terminal and systems technology field.Background of invention is with the continuous progress of Internet information technique, and the information exchange between the intelligent terminal such as mobile phone, pad is also just more and more frequent.For example:The information resources such as photo, video, file in intelligent terminal, need to be realized by internet and shared between client.At present, the information resources share process carried out based on internet usually requires to set up connection between the client of shared resource, initiated by resource-sharing client, shared information resources will be needed to be sent to server in the form of packet, again by the reception address of server based on data bag, shared resource is sent to given client end.The information resources packet that given client end the reception server is sent.
During the present invention is realized, inventor has found that prior art at least has following defect:In the prior art due to transmission channel, or transmission network, or data-transmission interruptions occur for transmission client etc. reason, namely share information resources Transmission, then need to restart to send shared resource information, so that the data traffic that shared information resources are sent is larger, and it is longer to send the time.In view of the above problems, the embodiments of the invention provide a kind of data transmission/method of reseptance, device, intelligent terminal and system for the content of the invention.
In order to achieve the above object, the technical scheme that the embodiment of the present invention is used is as follows:
During data upload being carried out between the first client and server,
On the one hand, the embodiments of the invention provide a kind of data transmission method for uplink, including:
Send and upload data initialization signaling to server;
The return response that the reception server is sent;
Responded according to described return, judge whether to send upload data;Described return carries data transfer original position mark in response;
If necessary to send upload data, then according to the data transfer original position identify, by upload data signaling by upload data be sent to the server; The upload data initialization signaling includes:Signaling type is identified, event type identification, file ID mark, file size mark, file name, Document Editing mark Status, can be downloaded ID mark, can be downloaded subscription client type identification;
The return response for uploading data initialization signaling includes:Response is identified, data transfer original position mark;
The upload data signaling includes:Signaling type is identified, event type identification, file ID mark, document misregistration index ID marks, file data.
Based on data above sending method embodiment, a kind of corresponding data sending device, including:Initialization signaling transmitting element, data initialization signaling is uploaded to server for sending;
Receiving unit is responded, the return response sent for the reception server;
Judging unit, for being responded according to described return, judges whether to send upload data;Described return carries data transfer original position mark in response;
Data transmission unit, for if necessary to send upload data, then according to the data transfer original position identify, by upload data signaling by upload data be sent to the server;
The upload data initialization signaling includes:Signaling type is identified, event type identification, file ID mark, file size mark, file name, and Document Editing mark can download ID mark, can download subscription client type identification;
The return response for uploading data initialization signaling includes:Response is identified, data transfer original position mark;
The upload data signaling includes:Signaling type is identified, event type identification, file ID mark, document misregistration index ID marks, file data.
On the other hand, the embodiments of the invention provide a kind of data receiver method, this method includes:Receive the upload data initialization signaling of the first client transmission;
According to the upload data initialization signaling, judge to need whether the data uploaded have been present;If it does not exist, then sending return responds to the first client, indicate to send upload data;If it does, but upload data are imperfect, then and send return and respond to the first client, indicate that the first client is identified according to data transfer original position, carry out data transmission;
If it does, and to upload data complete, then send back and respond to the first client, indicate that the first client need not upload data.
Based on data above method for uploading embodiment, a kind of corresponding data sink, including:Initialization signaling receiving unit, for receiving the upload data initialization signaling that the first client is sent; Data message judging unit, for according to the upload data initialization signaling, judging to need whether the data uploaded have been present;
Transmitting element is responded, for if it does not exist, then sending return responds to the first client, instruction, which is sent, to upload data;Or, if it does, but upload data are imperfect, then and send return and respond to the first client, indicate that the first client is identified according to data transfer original position, carry out data transmission;Or, if it does, and to upload data complete, then send back and respond to the first client, indicate that the first client need not upload data.During data download being carried out between the second client and server,
On the one hand, the embodiments of the invention provide a kind of data transmission method for uplink, including:
File reception is sent to notify;The file reception notifies to carry the information that the first client uploads data;Receive the downloading data initialization signaling of the second client transmission;The downloading data initialization signaling carries the second client downloads data start mark;
The downloading data initialization signaling sent according to second client, sends and returns to response;
When the return response carries successful respond mark, server is identified according to the second client downloads data start, and the data that the first client is uploaded are sent into the second client by downloading data signaling;
The information that first client uploads data includes:File ID is identified, file size mark;The downloading data initialization signaling includes:Signaling type is identified, event type identification, sharing data ID mark, file ID is identified, file size mark, downloading data original position mark, the bag size mark of each downloading data, server end sends packet number mark to client every time;
The return response of the downloading data initialization signaling includes:Response is identified;
The downloading data signaling includes:Signaling type is identified, event type identification, file ID mark, file data.
Based on data above sending method embodiment, a kind of corresponding data sending device, including:Documentary information transmitting element, is notified for sending file reception;The file reception notifies to carry the information that the first client uploads data;
Initialization signaling receiving unit, for receiving the downloading data initialization signaling that the second client is sent;The downloading data initialization signaling carries the second client downloads data start mark;
Initialization signaling response unit, for the downloading data initialization signaling sent according to second client, sends and returns to response; Data transmission unit, for when the return response carries successful respond mark, server to be identified according to the second client downloads data start, and the data that the first client is uploaded are sent into the second client by downloading data signaling;
The information that first client uploads data includes:File ID is identified, file size mark;The downloading data initialization signaling includes:Signaling type is identified, event type identification, sharing data ID mark, file ID is identified, file size mark, downloading data original position mark, the bag size mark of each downloading data, server end sends packet number mark to client every time;
The return response of the downloading data initialization signaling includes:Response is identified;
The downloading data signaling includes:Signaling type is identified, event type identification, file ID mark, file data.
On the other hand, the embodiments of the invention provide a kind of data receiver method, including:
File reception is received to notify;The file reception notifies to carry the information that the first client uploads data;The information of data is uploaded according to first client, judges whether it has been present;
If it does not, or, exist but downloading data is imperfect, then send downloading data initialization signaling to server, notify server to be identified according to downloading data original position, prepare to download;
Receive the return response of server transmission;
When the return response carries successful respond mark, downloading data signaling is sent, is identified from the server according to downloading data original position, data download is carried out.
Based on data above method of reseptance embodiment, a kind of corresponding data sink, including:Notification receiving unit, is notified for receiving file reception;The file reception notifies to carry the information that the first client uploads data;
Judging unit, the information for uploading data according to first client, judges whether it has been present;
Initialization signaling transmitting element, for if it does not, or, exist but downloading data be imperfect, then send downloading data initialization signaling to server, notify server to be identified according to downloading data original position, prepare to download;
Initialization signaling responds receiving unit, the return response for receiving server transmission;
Data download unit, for when the return response carries successful respond mark, sending downloading data signaling, being identified from the server according to downloading data original position, carry out data download.Based on data above transmitting/receiving means, the embodiment of the present invention also provides a kind of intelligent terminal, the intelligence Terminal includes:Data sending device as described above and described data sink;
Described data sending device, data initialization signaling is uploaded to server for sending;The return response that the reception server is sent;Responded according to described return, judge whether to send upload data;Described return carries data transfer original position mark in response;If necessary to send upload data, then according to the data transfer original position identify, by upload data signaling by upload data be sent to the server;
Described data sink, is notified for receiving file reception;The file reception notifies to carry the information that the first client uploads data;The information of data is uploaded according to first client, judges whether it has been present;If it does not, or, exist but downloading data is imperfect, then send downloading data initialization signaling to server, notify server to be identified according to downloading data original position, prepare to download;Receive the return response of server transmission;When the return response carries successful respond mark, downloading data signaling is sent, is identified from the server according to downloading data original position, data download is carried out.
Based on data above transmitting/receiving means, the embodiment of the present invention also provides a kind of server, and the server includes:Data sink as described above and described data sending device;
The data sink, for receiving the upload data initialization signaling that the first client is sent;According to the upload data initialization signaling, judge to need whether the data uploaded have been present;If it does not exist, then sending return responds to the first client, indicate to send upload data;If it does, but upload data are imperfect, then and send return and respond to the first client, indicate that the first client is identified according to data transfer original position, carry out data transmission;If it does, and to upload data complete, then send back and respond to the first client, indicate that the first client need not upload data.
The data sending device, is notified for sending file reception;The file reception notifies to carry the information that the first client uploads data;Receive the downloading data initialization signaling of the second client transmission;The downloading data initialization signaling carries the second client downloads data start mark;The downloading data initialization signaling sent according to second client, sends and returns to response;When the return response carries successful respond mark, server is identified according to the second client downloads data start, and the data that the first client is uploaded are sent into the second client by downloading data signaling.
Based on above example, the embodiment of the present invention also provides a kind of data transmission system, and the system includes:Above-described intelligent terminal and server.
The beneficial effect of the embodiment of the present invention is, the present invention is during the first client uploads data to server, data transfer original position is carried by server in the return response for uploading data initialization signaling to identify, so that the upload data existed in server are transmitted without repeating, only need to transmit the upload data not being transmitted in the first client to server, so as to greatly save the data traffic for uploading data Shorten uplink time;The present invention is during the second client is from server downloading data, identified by carrying the second client downloads data start in the downloading data initialization signaling, so that the second client only downloads the data division that it is not downloaded during downloading data, so as to also greatly save the data traffic of downloading process, and shorten download time.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of specification, and in order to which above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the embodiment of the present invention.Brief Description Of Drawings are by reading the detailed description of hereafter preferred embodiment, and various other advantages and benefit will be clear understanding for those of ordinary skill in the art.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as limitation of the present invention.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows that a kind of first user end to server according to an embodiment of the invention uploads the flow chart of data;
Fig. 2 shows a kind of flow chart of second client in accordance with another embodiment of the present invention from server downloading data;
Fig. 3 shows the example flow chart for passing through server and the second client sharing data according to a kind of first client of third embodiment of the invention;
Fig. 4 shows a kind of data sending device structural representation according to four embodiment of the invention;Fig. 5 shows a kind of data sink structural representation according to fifth embodiment of the invention;Fig. 6 shows a kind of data sending device structural representation according to sixth embodiment of the invention;Fig. 7 shows a kind of data sink structural representation according to seventh embodiment of the invention;Fig. 8 shows a kind of just blunt intelligent terminal structural representation according to eighth embodiment of the invention;Fig. 9 shows a kind of server architecture schematic diagram according to ninth embodiment of the invention;
Figure 10 shows a kind of data transmission system structural representation according to tenth embodiment of the invention.The exemplary embodiment of the disclosure is more fully described in the mode for implementing the present invention below with reference to accompanying drawings.Although showing the exemplary embodiment of the disclosure in accompanying drawing, it being understood, however, that may be realized in various forms the disclosure without that should be limited by embodiments set forth here.It is opposite to be able to be best understood from this there is provided these embodiments It is open, and can by the scope of the present disclosure completely convey to those skilled in the art.
The technical concept of the present invention is essentially consisted in, during the first client uploads data to server, data transfer original position is carried by server in the return response for uploading data initialization signaling to identify so that the upload data existed in server are transmitted without repeating;During the second client is from server downloading data, identified by carrying the second client downloads data start in the downloading data initialization signaling, so that the second client only downloads the data division that it is not downloaded during downloading data, without repeated downloads.
One embodiment of the invention provides a kind of data transmission method for uplink, i.e. the first user end to server uploads the flow of data;Data sender is the first client, and data receiver is server;Referring to Fig. 1, comprise the following steps:
S101 :First client, which is sent, uploads data initialization signaling to server;
S102:Server judges to need whether the data uploaded have been present according to the biography data initialization signaling;
S103 :According to the judged result, if it does not exist, then server, which sends return, responds to the first client, indicate to send upload data;If it does, but upload data are imperfect, then and server sends return and responds to the first client, indicates that the first client is identified according to data transfer original position, carries out data transmission;If it does, and upload that data are complete, then server, which is sent back, responds to the first client, indicates that the first client need not upload data.
Upload data initialization signaling described above includes:Signaling type is identified, event type identification, file ID mark, file size mark, file name, Document Editing mark Status, can be downloaded ID mark, can be downloaded subscription client type identification;
The return response for uploading data initialization signaling includes:Response is identified, data transfer original position mark;
The upload data signaling includes:Signaling type is identified, event type identification, file ID mark, document misregistration index ID marks, file data.
It should be noted that this method also includes:
The preset transmission number for uploading data signaling of first client;
When the transmission number of the upload data signaling reaches preset value, the first client sends validation of information signaling;
First client receives the return response that the server is sent;It is described to return to the data transfer locations mark that response carries transmission failure; Responded according to described return, the first client judges whether the data of the upload data signaling transmission are successfully sent to the server;
If being successfully sent to server, the first client continues through the upload data signaling and is sent to the server by data are uploaded;
If there is the data for sending failure, then the data transfer locations that the first client fails according to the transmission are identified, and the server is sent to by data are uploaded by the upload data signaling;
Described information confirms that signaling includes:Signaling type is identified, event type identification, file ID mark;Described information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark.
It should also be noted that, this method can also include:
First client, which is sent, uploads data outage signaling;
The return response that first client the reception server is sent;
Responded according to described return, the first client judges whether the upload data interrupt;
If interrupted, stop data and upload;
If interrupting failure, prompting message is sent;
The upload data outage signaling includes:Signaling type is identified, event type identification, file ID mark;The upload data outage signaling, which returns to response, to be included:Response is identified, header file identifications.
Another embodiment of the present invention provides a kind of data receiver method;That is the second client is from the flow of server downloading data, and data sender is server, and data receiver is the second client;Referring to Fig. 2, comprise the following steps:
S201 :Server sends file reception to the second client and notified;The file reception notifies to carry the information that the first client uploads data;The information that first client uploads data includes:File ID is identified, file size mark;
S202:The information of data is uploaded according to first client, judges whether it has been present;
S203 :If it does not, or, exist but downloading data is imperfect, then server receives the downloading data initialization signaling that the second client is sent, notify server to be identified according to downloading data original position, prepare to download;The downloading data initialization signaling includes:Signaling type is identified, event type identification, sharing data ID mark, file ID is identified, file size mark, downloading data original position mark, the bag size mark of each downloading data, server end sends packet number mark to client every time;
S204:The downloading data initialization signaling that server is sent according to second client, sends and returns to response;The return response of the downloading data initialization signaling includes:Response is identified; S205:When the return response carries successful respond mark, server is identified according to the second client downloads data start, and the data that the first client is uploaded are sent into the second client by downloading data signaling;The downloading data signaling includes:Signaling type is identified, event type identification, file ID mark, file data.
It should be noted that this method also includes:
Server receives the download information confirmation signaling that the second client is sent;
Signaling is confirmed according to the download information, server judges whether the data for successfully uploading the first client download to the second client for it;
If it is successful, server, which is sent, returns to response, indicate that the second client continues through the downloading data signaling and the data that the first client is uploaded are downloaded into the second client;
If it fails, server sends the return response for carrying the data transfer locations mark for sending failure, the second client is indicated, is identified according to the data transfer locations for sending failure, data is re-downloaded by the downloading data signaling;
The download information confirms that signaling includes:Signaling type is identified, event type identification, file ID mark;The download information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark.
It should also be noted that, this method can also include:
Server receives the downloading data interruption signaling that the second client is sent;
Server issues return and responds to the second client;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified.
Based on above example, third embodiment of the invention passes through server and the example of the second client sharing data there is provided a kind of first client;Implement flow as follows:Whether this embodiment is preset sends 4 upload data signalings, sends primary information and confirms signaling, confirm that the data of first 4 times are uploaded and succeed;Whether 4 downloading data initialization signalings of preset transmission, send a download information and confirm signaling, confirm that the data of first 4 times are downloaded and succeed;
The flow that data upload is carried out between first client and server is as follows:
S301 :The sharing data file name that first client is determined according to client carries out Md5 codings, then, is sent to server and uploads data initialization signaling;The upload data initialization signaling includes:Signaling type identifies Data, event type identification Event, file ID mark Key, file size identifies Type, file name, Document Editing mark Status, ID mark Index can be downloaded, subscription client type identification ClientType can be downloaded; Need, signaling type described above identifies Data, type is: Byte;Event type identification Event, type is: Byte;File ID identifies Key, and type is character String;File size identifies Type, and type is: long;File name Name, type is character String;Document Editing identifies Status, for identifying whether this document can be deleted, and 1 represents unsuppressible-suppression, and 0 represents and can delete, and type is long;ID mark Index can be downloaded, type is long;Subscription client type identification ClientType can be downloaded, type is long.
Wherein, the signaling type mark Data is request type Method;The event type identification Event, file ID mark Key, file size mark Type, file name Name, Document Editing identifies Status, can download ID mark Index, can download subscription client type identification ClientType for message header.
S302:The information that the upload data initialization signaling that server is sent according to the first client is carried is judged, provides judged result;The judged result is sent to the first client by respective identification by return response;If uploading data presence server end, file will need not be transmitted by identification notification customer end A, and file reception is sent by server notifying to the second client, it is necessary to download file;If server judges that file is not transmitted across, returning needs the new file identification that sends to the first client;If being transmitted across this document size for N bit, when then server notifies that the first client has sent size for N bit, then client Client A are sent since N bit, i.e., server sends the position for uploading data by the first client of data transfer original position identification notification;
S303 :Server sends to the first client and returns to response;It is described to return to the transmission mark that response carries transmitting file;Specifically include:File identification, or transmission file identification, and data transfer original position mark need not be transmitted;
It should be noted that the response Response that returns includes:Response is identified, data transfer original position mark;The response is used for the response for the upload data initialization signaling that server is sent to the first client;The response is identified:OK (is represented successfully)(failure is represented with NotExist), type is long;The data transfer original position mark Token is the offset that file has been uploaded in server end, i.e., following to need the starting point that transmitting file starts, type is long.
S304:First client judges whether to send upload data according to response is returned;Specifically, what exactly the first client was carried according to returning in response need not transmit file identification, or transmission file identification, or data transfer original position mark carries out data upload to file;
S305:Data are uploaded if necessary to send, then sends and uploads data signaling;That is judge to return when the first client and transmission file identification is designated in response, or during data transfer original position mark, then send upload data signaling and carry out data upload. It should be noted that the upload data signaling is used to upload file data;Specifically include:Signaling type identifies Data, and Data represents data sharing method, and type is Byte;, event type identification Event, in representative upload stage data interaction phase, type is Byte;File ID mark Key is file Id, and type is Long;Document misregistration index ID marks Index is that document misregistration indexes id, and type is long;File data Data is file data, and type is Byte [].
Wherein, the signaling type mark Data is request type, and the event type identification Event, file ID identifies Key, and document misregistration index ID marks Index is message header;File data Data is message body BODY.
S306:When the upload data signaling reaches preset upload number of times 4, the first client sends validation of information signaling to server, confirms whether the data that preceding 4 uploads data signaling is carried successfully upload;
It should be noted that described information confirms that signaling is confirmed whether to upload data file success for the first user end to server, specifically include:Signaling type identifies Data, and Data represents data sharing method, and type is Byte;Event type identification Event, represents client the stage of recognition, and type is Byte;File ID mark Key is file Id, and type is Long;
Wherein, the signaling type mark Data is request type Method;The event type identification Event, file ID mark Key is message header.
S307:Server judges whether successfully receiving upload data according to the validation of information signaling received;If be properly received, the first client is notified to continue to carry out data upload according to the position of last time data transfer by returning to response;If it fails, then being identified by carrying the data transfer locations of failure in response is returned, the first client is notified to send bust this data.
S308:Server is returned to the first client and responded;Carry and be properly received mark, or reception failure mark and the data transfer locations mark of failure;
It should be noted that the message for returning to response for the validation of information signaling of the client of server response first;The message is specifically included:Send the data transfer locations mark of failure, response mark.The answer list seems value:OK (is represented successfully)(failure is represented with NotExist), type is long;The data transfer locations for sending failure are designated message header.
S309:First client judges whether successfully to upload data;Just refer to judge whether success according to the mark carried in the return response;If being successfully sent to server, continue through the upload data signaling and be sent to the server by data are uploaded;If there is the data for sending failure, then identified according to the data transfer locations for sending failure, the service is sent to by data are uploaded by the upload data signaling S310:Continue to upload data signaling.The step can be understood as:When first client judges that the data of first 4 times are uploaded successfully, then continue through the upload data signaling and be sent to the server by data are uploaded;When first client judges that the data of first 4 times upload failure, then identified by the data transfer locations of failure, the data of bust this are then forwarded to server by the upload data signaling.
It should be noted that when the client of the first client cancels and uploads data, also in the presence of following flow:
S311 :First user end to server, which is sent, uploads data outage signaling;
It should be noted that the upload data outage signaling, which is used to interrupt, uploads data;It can specifically include:Signaling type identifies Data, and Data represents data sharing method Method, and type is Byte;, event type identification Event represents client the stage of recognition, and type is Byte;File ID identifies Key;For file Id, type is Long.
Event type identification Event and file ID the mark Key is 2 message header Header.
S312:Server is returned to the first client and responded.Responded according to described return, judge whether the upload data interrupt;If interrupted, stop data and upload;If interrupting failure, prompting message is sent;The upload data outage signaling includes:Signaling type is identified, event type identification, file ID mark;The upload data outage signaling, which returns to response, to be included:Response is identified, header file identifications.
The data outage signaling that uploads returns to upload data outage signaling of the response for the transmission of the client of server response first;Signaling response mark Response values are that OK (is represented successfully)(failure is represented with NotAvailable), type is long.
The flow that data download is carried out between second client and server is as follows:
After server, which is successfully received the first client, uploads data,
S313 :Server sends file reception to the second client and notified;The file reception notifies to carry the information that the first client uploads data;The information that first client uploads data includes:File ID is identified, file size mark;
S314:Second client judges to need whether the data downloaded have been present;
S315:If it does not, or, exist but downloading data is imperfect, then the second client sends downloading data initialization signaling to server, notifies server to be identified according to downloading data original position, prepare to download;The downloading data initialization signaling carries the second client downloads data start mark;
It should be noted that the downloading data initialization signaling is used for after the file reception notice that the second client receives server, when downloading file, the data message for needing to download is obtained from server, is specifically included:Signaling type identifies Data, event type identification Event, sharing data ID mark From [], and file ID mark Key, file size mark Type, downloading data original position identifies Token, each downloading data Bag size mark Status [, server end sends packet number mark Expire to client every time;
Wherein, Event, represents and uploads the data initial period stage, type is Byte;From is the id for sharing user, and type is long;Key is file Id, type string;Token is client data with existing offset, and type is long;Type is file size, and type is long;Status downloads the size each wrapped every time for mark, and type is long;Expire is the bag number that server end is sent out to client every time, such as every batch 4 are wrapped, and type is long.
The event type identification Event, sharing data ID mark From [], file ID identifies Key, file size identifies Type, downloading data original position identifies Token, the bag size mark Status of each downloading data, it is message header Header that server end sends packet number mark Expire to client every time.
S316:Server is received after downloading data initialization signaling, and the server is returned to the second client and responded;When the return response carries successful respond mark, server is identified according to the second client downloads data start, and the data that the first client is uploaded are sent into the second client by downloading data signaling.
It should be noted that the return response of the downloading data initialization signaling includes:Response is identified;The response is used for the response that server sends downloading data initialization signaling to the second client;The response mark Response values are that OK (is represented successfully), NotExist (represents file to be not present), NotSupport (representative do not support)(failure is represented with NotAvailable), type is long.
S317:Second user end to server sends downloading data signaling;The downloading data signaling includes:Signaling type identifies Data, event type identification Event, file ID mark Key, file data Data.
It should be noted that the downloading data signaling is used for the second client from server downloading data file;Signaling type mark Data represents data sharing method Method, and type is Byte;Event, represents downloading data interaction stage phase, type is Byte;Key is file Id, type string;The event type identification Event, file ID mark Key, is message header;Simultaneously including 1 individual Body, type is Byte [].
S318:When the downloading data signaling transmission times reaches preset value 4 times, the second user end to server sends a download information and confirms signaling;The download information confirms that signaling includes:Signaling type identifies Data, event type identification Event, file ID mark Key;
It should be noted that the download information confirm signaling be used for the second client from server download file when, a confirmation signaling of transmission;Whether the information for being downloaded before confirmation succeeds.The Data represents data sharing method Method, and type is Byte;Simultaneously including 2 Header:Specially Event, represents downloading data interaction stage phase, type is Byte;Key is file Id, type string.
S319:Server judges the whether successful downloading data of the second client;Rung if it is successful, sending and returning Should, indicate that the second client continues through the downloading data signaling and the data that the first client is uploaded are downloaded into the second client;If it fails, sending the return response for carrying the data transfer locations mark for sending failure, the second client is indicated, is identified according to the data transfer locations for sending failure, data is re-downloaded by the downloading data signaling;
S320:Server is returned to the second client and responded;The download information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark Response.
Wherein, the response mark Response values (can be represented successfully for OK)Or NotExist (represents file to be not present), type is long.
S321 :Continue to send downloading data signaling;Continue transmission downloading data signaling herein can be understood as:When the second client has successfully downloaded the data of the downloading data signaling of preceding 4 transmissions, continue through the downloading data signaling according to return response downloads to the second client by the data that the first client is uploaded;When the data containing failed download in before the second client 4 times, then the data transfer locations mark for sending failure according to carrying continues through the downloading data signaling and re-downloads data.
Need, when the second client, which is cancelled, to be downloaded, then in the presence of following flow:
S322:Second user end to server sends downloading data and interrupts signaling;Described download interrupts signaling for the second client from server download file, and the second client stops receiving the cancellation signaling sent during downloading data;The signaling includes:Signaling type identifies Data, event type identification Event, file ID mark Key;Wherein, Data represents data sharing method Method, and type is Byte;Simultaneously including 2 Header, it is specially:Event, represents downloading data interaction stage phase, type is Byte;Key is file Id, type string.
S323:Server is returned to the second client and responded.
Second client can be responded according to described return, and judge whether the downloading data interrupts;If interrupted, stop data and download;If interrupting failure, prompting message is sent.
The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified;The downloading data, which interrupts signaling, to be included:Signaling type is identified, event type identification, file ID mark;The downloading data, which interrupts signaling return response, to be included:Response is identified.It is described to respond the response that the downloading data sent for server to the second client interrupts signaling;The response identifies Response values:OK (is represented successfully), NotAvailable (represent failure), type is long.
Based on above example, four embodiment of the invention provides a kind of data sending device, and as shown in Fig. 4, the device includes:
Initialization signaling transmitting element 401, data initialization signaling is uploaded to server for sending; Receiving unit 402 is responded, the return response sent for the reception server;
Judging unit 403, for being responded according to described return, judges whether to send upload data;Described return carries data transfer original position mark in response;
Data transmission unit 404, for if necessary to send upload data, then according to the data transfer original position identify, by upload data signaling by upload data be sent to the server;
The upload data initialization signaling includes:Signaling type is identified, event type identification, file ID mark, file size mark, file name, and Document Editing mark can download ID mark, can download subscription client type identification;
The return response for uploading data initialization signaling includes:Response is identified, data transfer original position mark;
The upload data signaling includes:Signaling type is identified, event type identification, file ID mark, document misregistration index ID marks, file data.
It should be noted that the device also includes:
Preset unit, for the preset transmission number for uploading data signaling;
Confirm signaling transmitting element, for reaching preset value when the transmission number of the upload data signaling, send validation of information signaling;
Signaling receiving unit is confirmed, for receiving the return response that the server is sent;
Data send judging unit, for being responded according to described return, judge whether the data of the upload data signaling transmission are successfully sent to the server;It is described to return to the data transfer locations mark that response carries transmission failure;
The data transmission unit, if being additionally operable to be successfully sent to server, continues through the upload data signaling and is sent to the server by data are uploaded;Or, if there is the data for sending failure, then identified according to the data transfer locations for sending failure, the server is sent to by data are uploaded by the upload data signaling;
Described information confirms that signaling includes:Signaling type is identified, event type identification, file ID mark;Described information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark.
It should also be noted that, the device also includes:
Signaling transmitting element is interrupted, data outage signaling is uploaded for sending;
Interrupt response receiving unit, the return response sent for the reception server;
Judging unit is interrupted, for being responded according to described return, judges whether the upload data interrupt; Interrupt processing unit, if for interrupting, stopping data and uploading;Or, if interrupting failure, send prompting message;
The upload data outage signaling includes:Signaling type is identified, event type identification, file ID mark;The upload data outage signaling, which returns to response, to be included:Response is identified, header file identifications.
Based on above example, fifth embodiment of the invention provides a kind of data sink, and as shown in Fig. 5, the device includes:
Initialization signaling receiving unit 501, for receiving the upload data initialization signaling that the first client is sent;Data message judging unit 502, for according to the upload data initialization signaling, judging to need whether the data uploaded have been present;
Transmitting element 503 is responded, for if it does not exist, then sending return responds to the first client, instruction, which is sent, to upload data;Or, if it does, but upload data are imperfect, then and send return and respond to the first client, indicate that the first client is identified according to data transfer original position, carry out data transmission;Or, if it does, and to upload data complete, then send back and respond to the first client, indicate that the first client need not upload data.
It should be noted that the device also includes:Signaling receiving unit is confirmed, for receiving the validation of information signaling that the first client is sent;
Information receives judging unit, for confirming signaling according to described information, judges whether it is successfully received the upload data signaling that the first client sends data;
Confirm response transmitting element, for being responded if it is successful, sending return, indicate that the first client continues through the upload data signaling and sends upload data;Or, if it fails, sending the return response for carrying the data transfer locations mark for sending failure, the first client is indicated, is identified according to the data transfer locations for sending failure, data are uploaded by the upload data signaling again.
It should also be noted that, the device also includes:
Signaling receiving unit is interrupted, for receiving the upload data outage signaling that the first client is sent;Interrupt response transmitting element, the first client is responded to for issuing return;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified.
Based on above example, sixth embodiment of the invention provides a kind of data sending device, and as shown in Fig. 6, the device includes:
Documentary information transmitting element 601, is notified for sending file reception;The file reception notifies to carry the information that the first client uploads data;
Initialization signaling receiving unit 602, for receiving the downloading data initialization signaling that the second client is sent;Institute State downloading data initialization signaling and carry the second client downloads data start mark;
Initialization signaling response unit 603, for the downloading data initialization signaling sent according to second client, sends and returns to response;
Data transmission unit 604, for when the return response carries successful respond mark, server is identified according to the second client downloads data start, and the data that the first client is uploaded are sent into the second client by downloading data signaling;
The information that first client uploads data includes:File ID is identified, file size mark;The downloading data initialization signaling includes:Signaling type is identified, event type identification, sharing data ID mark, file ID is identified, file size mark, downloading data original position mark, the bag size mark of each downloading data, server end sends packet number mark to client every time;
The return response of the downloading data initialization signaling includes:Response is identified;
The downloading data signaling includes:Signaling type is identified, event type identification, file ID mark, file data.
It should be noted that the device also includes:
Validation of information signaling receiving unit, signaling is confirmed for receiving the download information that the second client is sent;Data download judging unit, for confirming signaling according to the download information, judge whether the data for successfully uploading the first client download to the second client for it;
Transmitting element is responded, for returning to response if it is successful, sending, indicates that the second client continues through the downloading data signaling and the data that the first client is uploaded are downloaded into the second client;Or, if it fails, sending the return response for carrying the data transfer locations mark for sending failure, the second client is indicated, is identified according to the data transfer locations for sending failure, data is re-downloaded by the downloading data signaling;The download information confirms that signaling includes:Signaling type is identified, event type identification, file ID mark;The download information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark.
It should also be noted that, the device also includes:
Signaling receiving unit is interrupted, signaling is interrupted for receiving the downloading data that the second client is sent;Transmitting element is responded, the second client is responded to for issuing return;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified;
The downloading data, which interrupts signaling, to be included:Signaling type is identified, event type identification, file ID mark;The downloading data, which interrupts signaling return response, to be included:Response is identified.
Based on above example, seventh embodiment of the invention provides a kind of data sink, such as Fig. 7 Shown, the device includes:
Notification receiving unit 701, is notified for receiving file reception;The file reception notifies to carry the information that the first client uploads data;
Judging unit 702, the information for uploading data according to first client, judges whether it has been present;
Initialization signaling transmitting element 703, for if it does not, or, exist but downloading data be imperfect, then send downloading data initialization signaling to server, notify server to be identified according to downloading data original position, prepare to download;
Initialization signaling responds receiving unit 704, the return response for receiving server transmission;
Data download unit 705, for when the return response carries successful respond mark, sending downloading data signaling, being identified from the server according to downloading data original position, carry out data download.
It should be noted that the device also includes:
Preset unit, the transmission number for the preset downloading data signaling;
Information confirmation unit, for reaching preset value when the transmission number of the downloading data signaling, sends download information and confirms signaling to the server;
Confirm response unit, the return response sent for the reception server;
The data download unit, if being additionally operable to the return response carries success flag, continues to send downloading data signaling, carries out data download;Or, unsuccessfully identified if the return response is carried, identified according to the data transfer locations of the transmission failure for returning and being carried in response, send downloading data signaling, carry out data download.
It should also be noted that, the device also includes:Signaling transmitting element is interrupted, signaling is interrupted for sending downloading data;
Interrupt response receiving unit, for receiving the return response that the server is sent;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified.
Based on above example, eighth embodiment of the invention provides a kind of intelligent terminal, as shown in figure 8, the intelligent terminal includes:Data sink described in data sending device and the 7th embodiment as described in the fourth embodiment.
Based on above example, ninth embodiment of the invention provides a kind of server, and as shown in Fig. 9, the server includes:Data sending device as described in data sink and sixth embodiment as described in the 5th embodiment.
Based on above example, tenth embodiment of the invention provides a kind of data transmission system, such as Figure 10 Shown, the data transmission system includes:Intelligent terminal described above and server described above.The beneficial effect of the embodiment of the present invention is, in the first client during data are uploaded to server, data transfer original position is carried by server in the return response for uploading data initialization signaling to identify, so that the upload data existed in server are transmitted without repeating, only need to transmit the upload data not being transmitted in the first client to server, so as to greatly save the data traffic for uploading data, uplink time is shortened;In addition, during upload, the present invention also by the preset transmission number for uploading data signaling, carrys out timing and sends validation of information signaling to server, so that the first client more quickly uploads data, shortens uplink time.The present invention is during the second client is from server downloading data, identified by carrying the second client downloads data start in the downloading data initialization signaling, so that the second client only downloads the data division that it is not downloaded during downloading data, so as to also greatly save the data traffic of downloading process, and shorten download time;In addition, during download, the present invention carrys out timing and sends download information confirmation signaling to server, to determine so that the second client downloads data time shortens also by the transmission number of the preset downloading data signaling.
The all parts embodiment of the present invention can be realized with hardware, either realized or realized with combinations thereof with the software module run on one or more processor.It will be understood by those of skill in the art that microprocessor or digital signal processor can be used in practice(DSP some or all functions of some or all parts according to embodiments of the present invention are realized).The present invention is also implemented as some or all equipment or program of device for performing method as described herein(For example, computer program and computer program product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have the form of one or more signal.
It will be understood to those skilled in the art that can carry out adaptively changing and being arranged in one or more equipment different from the embodiment them to the module in the equipment in embodiment.Module or unit or component in embodiment can be combined into a module or unit or component, and multiple submodule or subelement or sub-component can be divided into addition.In addition, the combination of the feature of be the same as Example does not mean to be within the scope of the present invention and forms different embodiments.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that embodiments of the invention can be put into practice in the case of these no details.In some instances, known method, structure and technology is not been shown in detail, so as not to obscure the understanding of this description.
For the ease of clearly describing the technical scheme of the embodiment of the present invention, in the embodiment of invention, employ the printed words such as " first ", " second " to make a distinction function and the essentially identical identical entry of effect or similar item, it will be appreciated by those skilled in the art that the printed words such as " first ", " second " are not carried out quantity and execution order Limit.
Furthermore, it should also be noted that the language used in this specification primarily to readable and teaching purpose and select, rather than selected to explain or limit subject of the present invention.Therefore, in the case of without departing from the scope and spirit of the appended claims, many modifications and changes will be apparent from for those skilled in the art.For the scope of the present invention, the disclosure done to the present invention is illustrative and not restrictive, and it is intended that the scope of the present invention be defined by the claims appended hereto.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.Any modification, equivalent substitution and improvements made within the spirit and principles of the invention etc., are all contained in protection scope of the present invention.

Claims (1)

  1. Claims
    1st, a kind of data transmission method for uplink, it is characterised in that including:
    Send and upload data initialization signaling to server;
    The return response that the reception server is sent;
    Responded according to described return, judge whether to send upload data;Described return carries data transfer original position mark in response;
    If necessary to send upload data, then according to the data transfer original position identify, by upload data signaling by upload data be sent to the server;
    The upload data initialization signaling includes:Signaling type is identified, event type identification, file ID mark, file size mark, file name, Document Editing mark Status, can be downloaded ID mark, can be downloaded subscription client type identification;
    The return response for uploading data initialization signaling includes:Response is identified, data transfer original position mark;
    The upload data signaling includes:Signaling type is identified, event type identification, file ID mark, document misregistration index ID marks, file data.
    2nd, data transmission method for uplink as claimed in claim 1, it is characterised in that this method also includes:The preset transmission number for uploading data signaling;
    When the transmission number of the upload data signaling reaches preset value, validation of information signaling is sent;Receive the return response that the server is sent;It is described to return to the data transfer locations mark that response carries transmission failure;
    Responded according to described return, judge whether the data of the upload data signaling transmission are successfully sent to the server;
    If being successfully sent to server, continue through the upload data signaling and be sent to the server by data are uploaded;
    If there is the data for sending failure, then identified according to the data transfer locations for sending failure, the server is sent to by data are uploaded by the upload data signaling;
    Described information confirms that signaling includes:Signaling type is identified, event type identification, file ID mark;Described information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark. 3rd, data transmission method for uplink as claimed in claim 1 or 2, it is characterised in that this method also includes:Send and upload data outage signaling;
    The return response that the reception server is sent;
    Responded according to described return, judge whether the upload data interrupt;
    If interrupted, stop data and upload;
    If interrupting failure, prompting message is sent;
    The upload data outage signaling includes:Signaling type is identified, event type identification, file ID mark;The upload data outage signaling, which returns to response, to be included:Response is identified, header file identifications.
    4th, a kind of data receiver method, it is characterised in that
    Receive the upload data initialization signaling that client is sent;
    According to the upload data initialization signaling, judge to need whether the data uploaded have been present;If it does not exist, then sending return responds to client, indicate to send upload data;
    If it does, but upload data are imperfect, then and send return and respond to client, indicate that client is identified according to data transfer original position, carry out data transmission;
    If it does, and to upload data complete, then send back and respond to client, indicate that the first client need not upload data.
    5th, data receiver method as claimed in claim 4, it is characterised in that this method also includes:Receive the validation of information signaling that client is sent;
    Signaling is confirmed according to described information, judges whether it is successfully received the upload data signaling that client sends data;
    If it is successful, sending return response, indicate that client continues through the upload data signaling and sends upload data;
    If it fails, sending the return response for carrying the data transfer locations mark for sending failure, client is indicated, is identified according to the data transfer locations for sending failure, data are uploaded by the upload data signaling again.
    6th, the data receiver method as described in claim 4 or 5, it is characterised in that this method, in addition to:Receive the upload data outage signaling that client is sent;
    Issue return and respond to client;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified.
    7th, a kind of data transmission method for uplink, it is characterised in that including:
    File reception is sent to notify;The file reception notifies to carry the information that the first client uploads data; Receive the downloading data initialization signaling of the second client transmission;The downloading data initialization signaling carries the second client downloads data start mark;
    The downloading data initialization signaling sent according to second client, sends and returns to response;
    When the return response carries successful respond mark, identified according to the second client downloads data start, the data that the first client is uploaded are sent to by the second client by downloading data signaling;The information that first client uploads data includes:File ID is identified, file size mark;The downloading data initialization signaling includes:Signaling type is identified, event type identification, sharing data ID mark, file ID is identified, file size mark, downloading data original position mark, the bag size mark of each downloading data, server end sends packet number mark to client every time;
    The return response of the downloading data initialization signaling includes:Response is identified;
    The downloading data signaling includes:Signaling type is identified, event type identification, file ID mark, file data.
    8th, data transmission method for uplink as claimed in claim 7, it is characterised in that this method also includes:The download information for receiving the transmission of the second client confirms signaling;
    Signaling is confirmed according to the download information, judges whether the data for successfully uploading the first client download to the second client for it;
    Response is returned if it is successful, sending, indicates that the second client continues through the downloading data signaling and the data that the first client is uploaded are downloaded into the second client;
    If it fails, sending the return response for carrying the data transfer locations mark for sending failure, the second client is indicated, is identified according to the data transfer locations for sending failure, data is re-downloaded by the downloading data signaling;
    The download information confirms that signaling includes:Signaling type is identified, event type identification, file ID mark;The download information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark.
    9th, data transmission method for uplink as claimed in claim 7 or 8, it is characterised in that this method also includes:The downloading data for receiving the transmission of the second client interrupts signaling;
    Issue return and respond to the second client;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified;
    The downloading data, which interrupts signaling, to be included:Signaling type is identified, event type identification, file ID mark;The downloading data, which interrupts signaling return response, to be included:Response is identified.
    10th, a kind of data receiver method, it is characterised in that File reception is received to notify;The file reception notifies to carry the information that the first client uploads data;The information of data is uploaded according to first client, judges whether it has been present;
    If it does not, or, exist but downloading data is imperfect, then send downloading data initialization signaling to server, notify server to be identified according to downloading data original position, prepare to download;
    Receive the return response of server transmission;
    When the return response carries successful respond mark, downloading data signaling is sent, is identified from the server according to downloading data original position, data download is carried out.
    11st, data receiver method as claimed in claim 10, it is characterised in that
    The transmission number of the preset downloading data signaling;
    When the transmission number of the downloading data signaling reaches preset value, send download information and confirm signaling to the server;
    The return response that the reception server is sent;
    If the return response carries success flag, continue to send downloading data signaling, carry out data download;
    Unsuccessfully identified if the return response is carried, identified according to the data transfer locations of the transmission failure for returning and being carried in response, send downloading data signaling, carry out data download.
    12nd, the data receiver method as described in claim 10 or 11, it is characterised in that this method, in addition to:
    Send downloading data and interrupt signaling;
    Receive the return response that the server is sent;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified.
    13rd, a kind of data sending device, it is characterised in that including:
    Initialization signaling transmitting element, data initialization signaling is uploaded to server for sending;
    Receiving unit is responded, the return response sent for the reception server;
    Judging unit, for being responded according to described return, judges whether to send upload data;Described return carries data transfer original position mark in response;
    Data transmission unit, for if necessary to send upload data, then according to the data transfer original position identify, by upload data signaling by upload data be sent to the server;
    The upload data initialization signaling includes:Signaling type is identified, event type identification, file ID mark, file size mark, file name, and Document Editing mark can download ID mark, can download subscription client type identification; The return response for uploading data initialization signaling includes:Response is identified, data transfer original position mark;
    The upload data signaling includes:Signaling type is identified, event type identification, file ID mark, document misregistration index ID marks, file data.
    14th, data sending device as claimed in claim 13, it is characterised in that the device also includes:Preset unit, for the preset transmission number for uploading data signaling;
    Confirm signaling transmitting element, for reaching preset value when the transmission number of the upload data signaling, send validation of information signaling;
    Signaling receiving unit is confirmed, for receiving the return response that the server is sent;
    Data send judging unit, for being responded according to described return, judge whether the data of the upload data signaling transmission are successfully sent to the server;It is described to return to the data transfer locations mark that response carries transmission failure;
    The data transmission unit, if being additionally operable to be successfully sent to server, continues through the upload data signaling and is sent to the server by data are uploaded;Or, if there is the data for sending failure, then identified according to the data transfer locations for sending failure, the server is sent to by data are uploaded by the upload data signaling;
    Described information confirms that signaling includes:Signaling type is identified, event type identification, file ID mark;Described information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark.
    15th, the data sending device as described in claim 13 or 14, it is characterised in that the device also includes:
    Signaling transmitting element is interrupted, data outage signaling is uploaded for sending;
    Interrupt response receiving unit, the return response sent for the reception server;
    Judging unit is interrupted, for being responded according to described return, judges whether the upload data interrupt;Interrupt processing unit, if for interrupting, stopping data and uploading;Or, if interrupting failure, send prompting message;
    The upload data outage signaling includes:Signaling type is identified, event type identification, file ID mark;The upload data outage signaling, which returns to response, to be included:Response is identified, header file identifications.
    16th, a kind of data sink, it is characterised in that
    Initialization signaling receiving unit, the upload data initialization signaling for receiving client transmission; Data message judging unit, for according to the upload data initialization signaling, judging to need whether the data uploaded have been present;
    Transmitting element is responded, for if it does not exist, then sending return responds to client, instruction, which is sent, to upload data;Or, if it does, but upload data are imperfect, then and send return and respond to client, indicate that client is identified according to data transfer original position, carry out data transmission;Or, if it does, and to upload data complete, then send back and respond to client, indicate that client need not upload data.
    17th, data sink as claimed in claim 16, it is characterised in that the device also includes:Confirm signaling receiving unit, the validation of information signaling for receiving client transmission;
    Information receives judging unit, for confirming signaling according to described information, judges whether it is successfully received the upload data signaling that client sends data;
    Confirm response transmitting element, for being responded if it is successful, sending return, indicate that client continues through the upload data signaling and sends upload data;Or, if it fails, sending the return response for carrying the data transfer locations mark for sending failure, client is indicated, is identified according to the data transfer locations for sending failure, data are uploaded by the upload data signaling again.
    18th, the data sink as described in claim 16 or 17, it is characterised in that the device also includes:
    Signaling receiving unit is interrupted, the upload data outage signaling for receiving client transmission;
    Interrupt response transmitting element, client is responded to for issuing return;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified.
    19th, a kind of data sending device, it is characterised in that including:
    Documentary information transmitting element, is notified for sending file reception;The file reception notifies to carry the information that the first client uploads data;
    Initialization signaling receiving unit, for receiving the downloading data initialization signaling that the second client is sent;The downloading data initialization signaling carries the second client downloads data start mark;
    Initialization signaling response unit, for the downloading data initialization signaling sent according to second client, sends and returns to response;
    Data transmission unit, for when the return response carries successful respond mark, server to be identified according to the second client downloads data start, and the data that the first client is uploaded are sent into the second client by downloading data signaling;
    The information that first client uploads data includes:File ID is identified, file size mark;The downloading data initialization signaling includes:Signaling type is identified, event type identification, and sharing data is used Family ID is identified, file ID mark, file size mark, downloading data original position mark, and the bag size mark of each downloading data, server end sends packet number mark to client every time;
    The return response of the downloading data initialization signaling includes:Response is identified;
    The downloading data signaling includes:Signaling type is identified, event type identification, file ID mark, file data.
    20th, data sending device as claimed in claim 19, it is characterised in that the device also includes:Validation of information signaling receiving unit, signaling is confirmed for receiving the download information that the second client is sent;Data download judging unit, for confirming signaling according to the download information, judge whether the data for successfully uploading the first client download to the second client for it;
    Transmitting element is responded, for returning to response if it is successful, sending, indicates that the second client continues through the downloading data signaling and the data that the first client is uploaded are downloaded into the second client;Or, if it fails, sending the return response for carrying the data transfer locations mark for sending failure, the second client is indicated, is identified according to the data transfer locations for sending failure, data is re-downloaded by the downloading data signaling;The download information confirms that signaling includes:Signaling type is identified, event type identification, file ID mark;The download information confirms that signaling returns to response and included:Send the data transfer locations mark of failure, response mark.
    21st, the data sending device as described in claim 19 or 20, it is characterised in that the device, in addition to:
    Signaling receiving unit is interrupted, signaling is interrupted for receiving the downloading data that the second client is sent;Transmitting element is responded, the second client is responded to for issuing return;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified;
    The downloading data, which interrupts signaling, to be included:Signaling type is identified, event type identification, file ID mark;The downloading data, which interrupts signaling return response, to be included:Response is identified.
    22nd, a kind of data sink, it is characterised in that
    Notification receiving unit, is notified for receiving file reception;The file reception notifies to carry the information that the first client uploads data;
    Judging unit, the information for uploading data according to first client, judges whether it has been present;
    Initialization signaling transmitting element, for if it does not, or, exist but downloading data be imperfect, then send downloading data initialization signaling to server, notify server to be identified according to downloading data original position, prepare to download; Initialization signaling responds receiving unit, the return response for receiving server transmission;Data download unit, for when the return response carries successful respond mark, sending downloading data signaling, being identified from the server according to downloading data original position, carry out data download.
    23rd, data sink as claimed in claim 22, it is characterised in that the device also includes:Preset unit, the transmission number for the preset downloading data signaling;
    Information confirmation unit, for reaching preset value when the transmission number of the downloading data signaling, sends download information and confirms signaling to the server;
    Confirm response unit, the return response sent for the reception server;
    The data download unit, if being additionally operable to the return response carries success flag, continues to send downloading data signaling, carries out data download;Or, unsuccessfully identified if the return response is carried, identified according to the data transfer locations of the transmission failure for returning and being carried in response, send downloading data signaling, carry out data download.
    24th, the data sink as described in claim 22 or 23, it is characterised in that the device, in addition to:
    Signaling transmitting element is interrupted, signaling is interrupted for sending downloading data;
    Interrupt response receiving unit, for receiving the return response that the server is sent;The return response, which carries interruption success flag or interrupted, unsuccessfully to be identified.
    25th, a kind of intelligent terminal, it is characterised in that including:Data sending device and the data sink as described in any one in claim 22 to claim 24 as described in any one in claim 13 to claim 15.
    26th, a kind of server, it is characterised in that including:Data sink and the data sending device as described in any one in claim 19 to claim 21 as described in any one in claim 16 to claim 18.
    27th, a kind of data transmission system, it is characterised in that including:Intelligent terminal as claimed in claim 25 and server as claimed in claim 26.
CN201480064753.7A 2014-06-27 2014-06-27 Method, device, intelligent terminal and system for data sending/receiving Pending CN105794148A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/081004 WO2015196473A1 (en) 2014-06-27 2014-06-27 Method, device, intelligent terminal and system for data sending/receiving

Publications (1)

Publication Number Publication Date
CN105794148A true CN105794148A (en) 2016-07-20

Family

ID=54936529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480064753.7A Pending CN105794148A (en) 2014-06-27 2014-06-27 Method, device, intelligent terminal and system for data sending/receiving

Country Status (2)

Country Link
CN (1) CN105794148A (en)
WO (1) WO2015196473A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064797A (en) * 2019-12-20 2020-04-24 深圳前海微众银行股份有限公司 Data processing method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661762B (en) * 2018-06-29 2022-04-15 中兴通讯股份有限公司 Cross information transmission method, device and computer storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005676A (en) * 2007-01-18 2007-07-25 上海柯斯软件有限公司 Method for down loading network resource using mobile terminal
CN101110656A (en) * 2006-07-18 2008-01-23 宇龙计算机通信科技(深圳)有限公司 File transferring method for wireless network hard disk system
CN101174954A (en) * 2006-10-31 2008-05-07 上海高勤通信科技有限公司 Document breaking point uploading method based on internet hypertext transfer protocol
CN101184055A (en) * 2007-12-11 2008-05-21 腾讯科技(深圳)有限公司 Method and device of delivering, receiving, transmitting off-line files
CN101582924A (en) * 2009-06-19 2009-11-18 深圳市五巨科技有限公司 Data transmission method of mobile terminal and device thereof
CN102497395A (en) * 2011-11-30 2012-06-13 北京京航计算通讯研究所 Breakpoint unloading application control method
CN103067505A (en) * 2012-12-30 2013-04-24 乐视网信息技术(北京)股份有限公司 Method for uploading files to server
CN103442037A (en) * 2013-08-09 2013-12-11 华南理工大学 Method for achieving multithreading breakpoint upload of oversized file based on FTP

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179393A (en) * 2006-12-14 2008-05-14 腾讯科技(深圳)有限公司 Method and system for implementing document breakpoint transmission
CN102355426B (en) * 2011-06-30 2015-01-14 北京神州泰岳软件股份有限公司 Method for transmitting off-line file and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110656A (en) * 2006-07-18 2008-01-23 宇龙计算机通信科技(深圳)有限公司 File transferring method for wireless network hard disk system
CN101174954A (en) * 2006-10-31 2008-05-07 上海高勤通信科技有限公司 Document breaking point uploading method based on internet hypertext transfer protocol
CN101005676A (en) * 2007-01-18 2007-07-25 上海柯斯软件有限公司 Method for down loading network resource using mobile terminal
CN101184055A (en) * 2007-12-11 2008-05-21 腾讯科技(深圳)有限公司 Method and device of delivering, receiving, transmitting off-line files
CN101582924A (en) * 2009-06-19 2009-11-18 深圳市五巨科技有限公司 Data transmission method of mobile terminal and device thereof
CN102497395A (en) * 2011-11-30 2012-06-13 北京京航计算通讯研究所 Breakpoint unloading application control method
CN103067505A (en) * 2012-12-30 2013-04-24 乐视网信息技术(北京)股份有限公司 Method for uploading files to server
CN103442037A (en) * 2013-08-09 2013-12-11 华南理工大学 Method for achieving multithreading breakpoint upload of oversized file based on FTP

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064797A (en) * 2019-12-20 2020-04-24 深圳前海微众银行股份有限公司 Data processing method and device

Also Published As

Publication number Publication date
WO2015196473A1 (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN110233881B (en) Service request processing method, device, equipment and storage medium
CN111225414B (en) Multimode communication device, communication method thereof and multimode communication system
CN104243010B (en) A kind of intermediate station wireless interconnected method, system and intermediate station
CN106941724A (en) Data processing method and device
EP2928108A1 (en) System, method and apparatus for multi-lane auto-negotiation over reduced lane media
CN103516673A (en) Network data communication method, network data communication system, network data communication client and network data communication server
KR102524306B1 (en) Communication method, network device and terminal
EP2710776A1 (en) Anonymous signalling
CN101188618B (en) Method, system, server and terminal for canceling push message
JPWO2020222265A5 (en) Terminals, communication systems, and communication methods
CN106533976B (en) data packet processing method and device
CN105027667B (en) State Feedback Approach and equipment under dual link mode
KR20200109336A (en) Data transmission method and device
CN105794148A (en) Method, device, intelligent terminal and system for data sending/receiving
CN104468499A (en) Determining format compatibility across a data processing device and another data processing device prior to transfer of a multimedia file therebetween
EP2942890B1 (en) Method, device and system for synchronizing forward error correction code words
CN111866969B (en) Data processing method, communication device and system
CN112969244A (en) Session recovery method and device
CN105264808A (en) Information transmission method and device
CN110868275A (en) Communication control method and device between electronic whiteboards and electronic equipment
CN111225423B (en) Method and device for forwarding data
CN112148324B (en) Method, apparatus and computer readable storage medium for upgrading electronic apparatus
US10638288B2 (en) Embedded device identification information in packetized communications
CN113133130B (en) Communication method and device
CN111435930B (en) Control PDU (protocol data Unit) sending method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160720