WO2015196473A1 - 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
WO2015196473A1
WO2015196473A1 PCT/CN2014/081004 CN2014081004W WO2015196473A1 WO 2015196473 A1 WO2015196473 A1 WO 2015196473A1 CN 2014081004 W CN2014081004 W CN 2014081004W WO 2015196473 A1 WO2015196473 A1 WO 2015196473A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
signaling
identifier
client
sent
Prior art date
Application number
PCT/CN2014/081004
Other languages
French (fr)
Chinese (zh)
Inventor
郭先东
Original Assignee
北京新媒传信科技有限公司
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 北京新媒传信科技有限公司 filed Critical 北京新媒传信科技有限公司
Priority to CN201480064753.7A priority Critical patent/CN105794148A/en
Priority to PCT/CN2014/081004 priority patent/WO2015196473A1/en
Publication of WO2015196473A1 publication Critical patent/WO2015196473A1/en

Links

Classifications

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

Definitions

  • the present invention relates to the field of data transmission technologies, and in particular, to a data transmission/reception method, device, intelligent terminal, and system.
  • BACKGROUND OF THE INVENTION With the continuous advancement of Internet information technology, information interaction between smart terminals such as mobile phones and pads has become more frequent. For example, information resources such as photos, videos, and files in an intelligent terminal need to be shared between clients through the Internet.
  • the information resource sharing process based on the Internet generally needs to establish a connection between the clients sharing the resources, initiated by the resource sharing client, and the information resources that need to be shared are sent to the server in the form of data packets, and then the data is transmitted by the server.
  • the receiving address of the packet which sends the shared resource to the specified client. Specifies that the client receives the information resource packet sent by the server.
  • an embodiment of the present invention provides a data sending method, including:
  • the return response carries a data transmission start location identifier
  • the initial signaling of the upload data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file edit identifier Status, a downloadable user ID identifier, and a downloadable user client type identifier;
  • the return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
  • the uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
  • a corresponding data sending apparatus includes: an initial signaling sending unit, configured to send initial signaling of the uploaded data to the server;
  • a response receiving unit configured to receive a return response sent by the server
  • a determining unit configured to determine, according to the return response, whether to send the upload data; the return response carries a data transmission start location identifier;
  • a data sending unit configured to send the upload data to the server by uploading data signaling according to the data transmission start location identifier if the upload data needs to be sent;
  • the initial signaling of the uploading data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file editing identifier, a downloadable user ID identifier, and a downloadable user client type identifier;
  • the return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
  • the uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
  • an embodiment of the present invention provides a data receiving method, where the method includes: receiving initial signaling of upload data sent by a first client;
  • a corresponding data receiving apparatus includes: an initial signaling receiving unit, configured to receive initial signaling of the uploaded data sent by the first client; a data information determining unit, configured to determine, according to the initial signaling of the uploaded data, whether data that needs to be uploaded already exists;
  • a response sending unit configured to send a return response to the first client if it does not exist, to indicate sending the upload data; or, if present, but the upload data is incomplete, send a return response to the first client, indicating the first client
  • the data is sent according to the data transmission start location identifier; or, if present, and the uploaded data is complete, the response is sent back to the first client, indicating that the first client does not need to upload data.
  • an embodiment of the present invention provides a data sending method, including:
  • the server sends the data uploaded by the first client to the second client by downloading data signaling according to the second client downloading the data start location identifier;
  • the information about the data uploaded by the first client includes: a file ID identifier, a file length identifier, and the initial signaling of the download data includes: a signaling type identifier, an event type identifier, a shared data user ID identifier, a file ID identifier, and a file length.
  • the identifier, the download data start location identifier, the packet size identifier of each download data, and the server sends the number of data packets to the client each time;
  • the return response of the initial data of the download data includes: a response identifier
  • the download data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, and file data.
  • a corresponding data sending apparatus includes: a file notification sending unit, configured to send a file receiving notification; and the file receiving notification carries information that the first client uploads data;
  • the initial signaling receiving unit is configured to receive initial data of the download data sent by the second client, where the initial signaling of the download data carries a start location identifier of the second client download data;
  • An initial signaling response unit configured to send a return response according to the initial signaling of the downloaded data sent by the second client; a data sending unit, configured to: when the return response carries a successful response identifier, the server sends the data uploaded by the first client to the second by downloading data signaling according to the second client downloading data start location identifier Client
  • the information about the data uploaded by the first client includes: a file ID identifier, a file length identifier, and the initial signaling of the download data includes: a signaling type identifier, an event type identifier, a shared data user ID identifier, a file ID identifier, and a file length.
  • the identifier, the download data start location identifier, the packet size identifier of each download data, and the server sends the number of data packets to the client each time;
  • the return response of the initial data of the download data includes: a response identifier
  • the download data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, and file data.
  • an embodiment of the present invention provides a data receiving method, including:
  • the file receiving notification carries information of the first client uploading data; and determining, according to the information of the first client uploading data, whether it already exists;
  • the initial signaling of the download data is sent to the server, and the server is notified to prepare the download according to the start location identifier of the downloaded data.
  • the download data signaling is sent, and the data download is performed from the server according to the download data start location identifier.
  • a corresponding data receiving apparatus includes: a notification receiving unit, configured to receive a file receiving notification; and the file receiving notification carries information that the first client uploads data;
  • a determining unit configured to determine, according to information about the data uploaded by the first client, whether the device already exists
  • the initial signaling sending unit is configured to: if the data does not exist, or exists, but the download data is incomplete, send the initial signaling of the download data to the server, and notify the server to prepare for download according to the start location identifier of the downloaded data;
  • An initial signaling response receiving unit configured to receive a return response sent by the server
  • a data downloading unit configured to: when the return response carries a successful response identifier, send download data signaling, and perform data downloading from the server according to the download data start location identifier.
  • the embodiment of the present invention further provides an intelligent terminal, which is based on the above data transmitting/receiving device.
  • the terminal includes: the data transmitting device as described above and the data receiving device;
  • the data sending device is configured to send initial signaling of the uploaded data to the server; receive a return response sent by the server; determine, according to the return response, whether to send the uploaded data; and the return response carries a data transmission start location identifier; If the upload data needs to be sent, sending the upload data to the server by uploading data signaling according to the data transmission start location identifier;
  • the data receiving device is configured to receive a file receiving notification; the file receiving notification carries information that the first client uploads data; and according to the information of the first client uploading data, whether it exists or not; If there is, or exists, but the download data is incomplete, the initial signaling of the download data is sent to the server, the notification server is configured to download according to the download data start location identifier, and the return response sent by the server is received; when the return response carries the success When the identifier is answered, the download data signaling is sent, and the data is downloaded from the server according to the download data start location identifier.
  • the embodiment of the present invention further provides a server, the server comprising: the data receiving apparatus and the data transmitting apparatus as described above;
  • the data receiving device is configured to receive initial signaling of the uploaded data sent by the first client, determine, according to the initial signaling of the uploaded data, whether the data to be uploaded already exists; if not, send a return response to the first The client, instructing to send the upload data; if yes, but the upload data is incomplete, sending a return response to the first client, instructing the first client to perform data transmission according to the data transmission start location identifier; if present, and uploading the data If it is complete, it sends a response back to the first client, indicating that the first client does not need to upload data.
  • the data sending device is configured to send a file receiving notification; the file receiving notification carries information of uploading data by the first client; receiving initial signaling of download data sent by the second client;
  • the second client downloads the data start location identifier; according to the download data initial signaling sent by the second client, sending a return response; when the return response carries the success response identifier, the server is according to the second client
  • the terminal downloads the data start location identifier, and sends the data uploaded by the first client to the second client by downloading data signaling.
  • an embodiment of the present invention further provides a data transmission system, where the system includes: the intelligent terminal and the server described above.
  • the beneficial effect of the embodiment of the present invention is that, in the process of uploading data to the server by the first client, the server carries the data transmission start location identifier in the return response of the initial signaling of the uploaded data, so that the server already exists.
  • the uploading data does not need to be repeatedly transmitted, and only the uploaded data that has not been transmitted in the first client needs to be transmitted to the server, thereby greatly saving the data traffic of the uploaded data.
  • the uploading time is shortened.
  • the second client downloads the data starting location identifier in the initial signaling of the download data, so that the second client downloads During the data process, only the undownloaded data portion is downloaded, which also greatly saves data traffic during the download process and shortens the download time.
  • FIG. 1 shows a flow chart of a first client uploading data to a server according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing a second client downloading data from a server according to another embodiment of the present invention.
  • FIG. 3 is a flow chart showing an example of sharing data between a first client and a second client through a server according to a third embodiment of the present invention
  • FIG. 4 is a block diagram showing the structure of a data transmitting apparatus according to a fourth embodiment of the present invention
  • FIG. 5 is a block diagram showing the structure of a data receiving apparatus according to a fifth embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a data receiving apparatus according to a seventh embodiment of the present invention
  • FIG. 8 is a schematic diagram showing the structure of a data receiving apparatus according to a seventh embodiment of the present invention
  • FIG. 9 is a schematic structural diagram of a server according to a ninth embodiment of the present invention.
  • FIG. 10 is a block diagram showing the structure of a data transmission system in accordance with a tenth embodiment of the present invention. Mode for Carrying Out the Invention Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided to provide a more thorough understanding of the present invention. The disclosure is to be fully disclosed to those skilled in the art.
  • the technical idea of the present invention is mainly that, in the process of uploading data to the server by the first client, the server carries the data transmission start location identifier in the return response of the initial signaling of the uploaded data, so that the upload data already existing in the server does not need to be Repeating the transmission; in the process of downloading data from the server by the second client, by using the second client to download the data start location identifier in the initial signaling of the download data, so that the second client only downloads the data during the process Download the un-downloaded data section without having to download it again.
  • An embodiment of the present invention provides a data sending method, that is, a process in which a first client uploads data to a server; a data sender is a first client, and a data receiver is a server; and FIG. 1 includes the following steps:
  • S101 The first client sends initial signaling of the upload data to the server.
  • the server determines, according to the initial signaling of the data transmission, whether the data that needs to be uploaded is already present;
  • the server sends a return response to the first client, indicating sending the upload data; if yes, but the upload data is incomplete, the server sends a return response to the first client, indicating A client sends data according to the data transmission start location identifier; if it exists, and the upload data is complete, the server sends a response back to the first client, indicating that the first client does not need to upload data.
  • the initial signaling for uploading data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file editing identifier Status, a downloadable user ID identifier, and a downloadable user client type identifier;
  • the return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
  • the uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
  • the method further includes:
  • the first client presets the number of sending the uplink data signaling
  • the first client When the number of the sent data signaling reaches a preset value, the first client sends an information confirmation signal
  • the first client receives, by the first client, a return response sent by the server; the return response carrying a data transmission location identifier that fails to be sent; According to the return response, the first client determines whether the data transmitted by the upload data signaling is successfully sent to the server;
  • the first client continues to send the upload data to the server by using the upload data signaling
  • the first client sends an upload data to the server according to the data transmission location identifier of the failed transmission.
  • the information confirmation signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the information acknowledgement signaling return response includes: sending a failed data transmission location identifier, and responding to the identifier.
  • the method may further include:
  • the first client sends an upload data interruption signaling
  • the first client receives a return response sent by the server
  • the first client determines whether the upload data is interrupted
  • the upload data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the upload data interruption signaling return response includes: a response identifier, a header file identifier.
  • FIG. 2 Another embodiment of the present invention provides a data receiving method, that is, a process in which a second client downloads data from a server, the data sender is a server, and the data receiver is a second client; see FIG. 2, which includes the following steps:
  • the server sends a file receiving notification to the second client.
  • the file receiving notification carries the information of the first client uploading data.
  • the information of the first client uploading data includes: a file ID identifier, a file length identifier;
  • S202 Determine, according to information about the data uploaded by the first client, whether it already exists.
  • the server receives the initial signaling of the download data sent by the second client, and notifies the server to prepare for download according to the download data start location identifier; the download data initial signaling Including: signaling type identifier, event type identifier, shared data user ID identifier, file ID identifier, file length identifier, download data start location identifier, packet size identifier for each downloaded data, and server sends data to the client each time. Number of packages;
  • S204 The server sends a return response according to the initial signaling of the download data sent by the second client, and the return response of the initial signaling of the download data includes: a response identifier;
  • S205 When the return response carries the success response identifier, the server sends the data uploaded by the first client to the second client by downloading data signaling according to the second client downloading the data start location identifier.
  • the download data signaling includes: signaling type identifier, event type identifier, file ID identifier, file data.
  • the method further includes:
  • the server receives the download information confirmation signaling sent by the second client
  • the server determines whether it successfully downloads the data uploaded by the first client to the second client;
  • the server sends a return response, instructing the second client to continue downloading the data uploaded by the first client to the second client by using the download data signaling;
  • the server sends a return response carrying the data transmission location identifier of the transmission failure, instructing the second client to re-download the data by using the download data signaling according to the data transmission location identifier that failed to be sent;
  • the download information confirmation signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download information acknowledgement signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier.
  • the method may further include:
  • the server receives the download data interruption signaling sent by the second client
  • the server sends a return response to the second client; the return response carries an interrupt success identifier or an interrupt failure identifier.
  • the third embodiment of the present invention provides an example for the first client to share data with the second client through the server.
  • the specific implementation process is as follows: This embodiment presets to send 4 times of uploading data signaling. Sending information confirmation signaling once, confirming whether the data uploading of the first 4 times is successful; presetting the initial signaling of downloading data 4 times, sending a downloading information confirmation signaling, and confirming whether the data downloading of the first 4 times is successful;
  • the process of uploading data between the first client and the server is as follows:
  • the first client performs Md5 encoding according to the shared data file name determined by the client, and then sends initial signaling of the uploaded data to the server.
  • the initial signaling of the uploaded data includes: signaling type identifier Data, event type identifier Event, file ID identifier Key, file length identifier Type, file name, file edit identifier Status, downloadable user ID identifier Index, downloadable user client type identifier ClientType;
  • signaling type identifier Data type: Byte
  • event type identifier Event type: Byte
  • file ID identifier Key type is character String
  • file length identifier Type type: long
  • Name Name type is character String
  • file edit ID Status used to identify whether the file can be deleted, 1 means not deleteable, 0 means deleteable, type is long
  • Downloadable user ID mark Index type is long
  • Downloadable user The client type identifies ClientType and is of type long.
  • the signaling type identifier Data is a request type Method; the event type identifier Event, the file ID identifier Key, the file length identifier Type, the file name Name, the file edit identifier Status, the downloadable user ID identifier Index, and the downloadable user
  • the client type identifies ClientType as the message header.
  • the server determines, according to the information carried in the initial signaling of the uploaded data sent by the first client, and provides a judgment result; the judgment result is sent by the return response to the first client by using the corresponding identifier; if the upload data already exists on the server side
  • the client A does not need to transmit the file, and the server sends a file to receive the notification to the second client, and needs to download the file;
  • the server determines that if the file has not been sent, it needs to send the newly sent file identifier to the first If the size of the file has been sent to the N bit, the server notifies the first client that the size of the file has been sent by the N bit, then the client Client A starts sending from the N bit, that is, the server identifies the data transmission start location. Notifying the first client to send the location of the uploaded data;
  • the server sends a return response to the first client, where the return response carries the transport identifier of the uploaded file, and specifically includes: does not need to transmit the file identifier, or the transport file identifier, and the data transmission start location identifier;
  • the response to the response includes: a response identifier, a data transmission start location identifier; the response is used by the server to respond to the initial signaling of the uplink data sent by the first client; the response identifier may be: OK (representing success) and NotExist (representing failure), the type is long; the data transmission start position identifier Token is the offset that the file has been uploaded on the server side, that is, the starting point of the following file uploading start, the type is long.
  • the first client determines whether to send the upload data according to the return response. Specifically, the first client identifies the file according to the non-transport file identifier carried in the return response, or the file identifier, or the data transmission start location identifier. Carry out data uploading;
  • the specific information includes: a signaling type identifier Data, a data representing a data sharing method, and a type of Byte; and an event type identifier Event, representing an uploading data interaction period, type It is a Byte; the file ID identifies that the key is the file Id, and the type is Long; the file offset index ID identifies the file as the file offset index id, and the type is long; the file data Data is the file data, and the type is Byte[].
  • the signaling type identifier Data is a request type, the event type identifier Event, the file ID identifier Key, the file offset index ID identifier Index is a message header, and the file data Data is a message body BODY.
  • the information confirmation signaling is used by the first client to confirm whether the data file is successfully uploaded to the server, and specifically includes: a signaling type identifier Data, a data representing a data sharing method, a type Byte, and an event type identifier Event.
  • the type is Byte
  • the file ID identifies Key as the file Id
  • the type is Long
  • the signaling type identifier Data is a request type Method; the event type identifier is an event, and the file ID identifier Key is a message header.
  • the server determines, according to the received information confirmation signaling, whether the uploaded data is successfully received. If the receiving is successful, the server returns a response to notify the first client to continue to upload data according to the location of the last data transmission; if it fails, the server passes the The return response carries the failed data transmission location identifier, and notifies the first client to send the transmission failure data.
  • S308 The server returns a response to the first client; carries the successfully received identifier, or receives the failed identifier and the failed data transmission location identifier;
  • the return response is a message that the server responds to the information confirmation signaling of the first client; the message specifically includes: a data transmission location identifier that fails to be sent, and a response identifier.
  • the response table appears to have values: OK (for success) and NotExist (for failure), of type long; the data transmission location for which the transmission failed is identified as a message header.
  • S309 The first client determines whether the data is successfully uploaded. It is determined whether the packet is successfully sent according to the identifier carried in the return response. If the server successfully sends the data to the server, the upload data is continuously sent to the server. If there is data that fails to be sent, the upload data is sent to the service by the upload data signaling according to the data transmission location identifier of the transmission failure. S310: Continue to upload data signaling.
  • the step can be understood as: when the first client determines that the data upload of the first 4 times is successful, the uploading data is continuously sent to the server by using the upload data signaling; when the first client determines the first 4 If the data upload fails, the failed data transmission location identifier is used, and the data that fails to be transmitted is sent to the server through the upload data signaling.
  • S311 The first client sends an upload data interruption signaling to the server.
  • the uploading data interruption signaling is used to interrupt the uploading of the data;
  • the specific information may include: a signaling type identifier Data, a data representing a data sharing method Method, a type of Byte; an event type identifier Event, representing a client confirmation phase , type is Byte; file ID identifies Key; is file Id, type is Long.
  • the event type identifier Event and the file ID identifier Key are two headers.
  • S312 The server returns a response to the first client. Determining, according to the return response, whether the upload data is interrupted; if interrupted, stopping data uploading; if the interrupt fails, sending a prompt message; the uploading data interrupt signaling includes: signaling type identifier, event type identifier, file ID identifier; the upload data interruption signaling return response includes: a response identifier, a header file identifier.
  • the upload data interruption signaling return response is used by the server to respond to the upload data interruption signaling sent by the first client;
  • the signaling response identifiers are OK (for success) and NotAvailable (for failure), and the type is long.
  • the process of data download between the second client and the server is as follows:
  • the server sends a file receiving notification to the second client, where the file receiving notification carries the information of the first client uploading data, and the information of the first client uploading data includes: a file ID identifier, a file length identifier;
  • S314 The second client determines whether the data that needs to be downloaded already exists.
  • S315 If the data does not exist, or exists, but the download data is incomplete, the second client sends the initial signaling of the download data to the server, and the server is notified to prepare the download according to the start location identifier of the download data; the initial signaling of the download data is carried. There is a second client download data starting location identifier;
  • the initial data of the download data is used by the second client to receive the file receiving notification of the server, and when the file is downloaded, the data information that needs to be downloaded is obtained from the server, and specifically includes: the signaling type identifier Data, the event Type identifier Event, share data user ID identifier From[], file ID identifier Key, file length identifier Type, download data start location identifier Token, each download data
  • the packet size identifies Status[, and the server sends the number of packets to the client every time to identify Expire;
  • Event which represents the initial stage of uploading data, is of type Byte; From is the id of the shared user, the type is long; Key is the file Id, the type is String; Token is the data offset of the client, and the type is long; Type is the length of the file, the type is long; Status is the size of each packet at the time of downloading, and the type is long; Expire is the number of packets sent to the client each time the server sends, for example, 4 packets per batch, of type long.
  • the event type identifies Event, the shared data user ID identifier From[], the file ID identifier Key, the file length identifier Type, the download data start location identifier Token, the packet size of each download data identifies the Status, and the server side gives the client each time.
  • the number of packets sent by the end identifies Expire as the header of the message.
  • the server After the server receives the initial signaling of the download data, the server returns a response to the second client. When the return response carries the success response identifier, the server downloads the data start location identifier according to the second client. The data uploaded by the first client is sent to the second client by downloading data signaling.
  • the return response of the initial data of the download data includes: a response identifier; the response is used by the server to send a response to the initial signaling of the download data to the second client; the response identifier is OK (representing success) ), NotExist (represents file does not exist), NotSupport (represents not supported), and NotAvailable (represents failure), type long.
  • the second client sends download data signaling to the server.
  • the download data signaling includes: a signaling type identifier Data, an event type identifier Event, a file ID identifier Key, and a file data Data.
  • the download data signaling is used by the second client to download the data file from the server;
  • the signaling type identifier Data represents the data sharing method Method, and the type is Byte;
  • the event represents the download data interaction period, and the type is Byte.
  • Key is file Id, type is String;
  • the event type identifies Event, file ID identifies Key, which is the message header; and includes 1 individual body, of type Byte[].
  • the second client sends a download information confirmation signaling to the server;
  • the download information confirmation signaling includes: the signaling type identifier Data, the event type Identify Event, file ID identifies Key;
  • the download information confirmation signaling is used for an acknowledgment signaling sent by the second client when downloading a file from the server; and used to confirm whether the previously downloaded information is successful.
  • the data represents the data sharing method Method, and the type is Byte. It also includes 2 headers: specifically Event, which represents the phase of the download data interaction phase, the type is Byte; Key is the file Id, and the type is String.
  • the server determines whether the second client successfully downloads the data; if successful, the sending returns And instructing the second client to continue downloading the data uploaded by the first client to the second client by using the download data signaling; if the failure occurs, sending a return response carrying the data transmission location identifier of the failed transmission, indicating the second The client re-downloads the data by using the download data signaling according to the data transmission location identifier that fails to be sent;
  • the server returns a response to the second client.
  • the download information acknowledgement signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier Response.
  • the response identifier value can be OK (for success) or NotExist (for non-existing files), and the type is long.
  • S321 Continuing to send the download data signaling; continuing to send the download data signaling here can be understood as: when the second client successfully downloads the data of the download data signaling sent in the previous 4 times, and continues to pass the download data according to the return response.
  • the signaling downloads the data uploaded by the first client to the second client; when the second client includes the data of the download failure in the first 4 times, the data is continuously transmitted through the data transmission location identifier carrying the transmission failure. Signaling re-downloads the data.
  • the second client sends download data interruption signaling to the server; the download interruption signaling is used by the second client to download the file from the server, and the second client stops receiving a cancellation signaling when the data is downloaded;
  • the command includes: a signaling type identifier Data, an event type identifier Event, and a file ID identifier Key; wherein, Data represents a data sharing method Method, and the type is Byte; and includes two headers, specifically: Event, representing a download data interaction period, The type is Byte; Key is the file Id and the type is String.
  • S323 The server returns a response to the second client.
  • the second client may determine whether the download data is interrupted according to the return response; if the interrupt is interrupted, stop the data download; if the interrupt fails, send a prompt message.
  • the return response carries an interrupt success identifier or an interrupt failure identifier;
  • the download data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download data interruption signaling return response includes: a response identifier.
  • the response is used by the server to respond to the download data interruption signaling sent by the second client;
  • the response identifier Response value is: OK (for success), NotAvailable (for failure), and type long.
  • a fourth embodiment of the present invention provides a data transmitting apparatus. As shown in FIG. 4, the apparatus includes:
  • the initial signaling sending unit 401 is configured to send initial signaling of the uploaded data to the server;
  • the response receiving unit 402 is configured to receive a return response sent by the server.
  • the determining unit 403 is configured to determine, according to the return response, whether to send the upload data, where the return response carries the data transmission start location identifier;
  • a data sending unit 404 configured to send, according to the data transmission start location identifier, upload data to the server according to the data transmission start location identifier if the upload data needs to be sent;
  • the initial signaling of the uploading data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file editing identifier, a downloadable user ID identifier, and a downloadable user client type identifier;
  • the return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
  • the uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
  • the device further includes:
  • a preset unit configured to preset a number of sending the uplink data signaling
  • the acknowledgment signaling unit is configured to send the information confirmation signaling when the number of the sent data signaling reaches a preset value
  • An acknowledgement signaling receiving unit configured to receive a return response sent by the server
  • a data sending determining unit configured to determine, according to the return response, whether data transmitted by the upload data signaling is successfully sent to the server; and the return response carries a data transmission location identifier that fails to be sent;
  • the data sending unit is further configured to: if the data is successfully sent to the server, continue to send the upload data to the server by using the upload data signaling; or, if there is data that fails to be sent, according to the data that fails to be sent Transmitting a location identifier, and sending the upload data to the server by using the upload data signaling;
  • the information confirmation signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the information acknowledgement signaling return response includes: sending a failed data transmission location identifier, and responding to the identifier.
  • the device further includes:
  • An interrupt signaling sending unit configured to send an upload data interruption signaling
  • An interrupt response receiving unit configured to receive a return response sent by the server
  • An interrupt determining unit configured to determine, according to the return response, whether the uploaded data is interrupted;
  • An interrupt processing unit configured to stop data uploading if interrupted; or, if the interrupt fails, send a prompt message;
  • the upload data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the upload data interruption signaling return response includes: a response identifier, a header file identifier.
  • a fifth embodiment of the present invention provides a data receiving apparatus. As shown in FIG. 5, the apparatus includes:
  • the initial signaling receiving unit 501 is configured to receive initial signaling of the uploaded data sent by the first client, and the data information determining unit 502 is configured to determine, according to the initial signaling of the uploaded data, whether the data that needs to be uploaded already exists;
  • the response sending unit 503 is configured to: if it does not exist, send a return response to the first client, indicating to send the upload data; or, if present, but the upload data is incomplete, send a return response to the first client, indicating the first
  • the client sends data according to the data transmission start location identifier; or, if it exists, and the uploaded data is complete, the response is sent back to the first client, indicating that the first client does not need to upload data.
  • the apparatus further includes: an acknowledgement signaling receiving unit, configured to receive information acknowledgement signaling sent by the first client;
  • the information receiving determining unit is configured to determine, according to the information confirmation signaling, whether the uplink data signaling of the first client sending data is successfully received;
  • An acknowledgment response sending unit configured to: if successful, send a return response, instructing the first client to continue to send the uploaded data by using the upload data signaling; or, if it fails, sending a return response carrying the data transmission location identifier of the failed transmission, Instructing the first client to re-upload data through the upload data signaling according to the data transmission location identifier that failed to be sent.
  • the device further includes:
  • the interrupt signaling receiving unit is configured to receive the upload data interrupt signaling sent by the first client, and the interrupt response sending unit is configured to send a return response to the first client; the return response carries an interrupt success identifier or an interrupt failure logo.
  • a sixth embodiment of the present invention provides a data transmitting apparatus. As shown in FIG. 6, the apparatus includes:
  • a file notification sending unit 601 configured to send a file receiving notification; the file receiving notification carries information that the first client uploads data;
  • An initial signaling receiving unit 602 configured to receive initial signaling of download data sent by the second client;
  • the initial signaling of the download data carries a second client download data start location identifier;
  • the initial signaling response unit 603 is configured to send a return response according to the initial data of the downloaded data sent by the second client.
  • the data sending unit 604 is configured to: when the return response carries the success response identifier, the server sends the data uploaded by the first client to the first data by downloading data signaling according to the second client downloading the data start location identifier. Two clients;
  • the information about the data uploaded by the first client includes: a file ID identifier, a file length identifier, and the initial signaling of the download data includes: a signaling type identifier, an event type identifier, a shared data user ID identifier, a file ID identifier, and a file length.
  • the identifier, the download data start location identifier, the packet size identifier of each download data, and the server sends the number of data packets to the client each time;
  • the return response of the initial data of the download data includes: a response identifier
  • the download data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, and file data.
  • the device further includes:
  • the information confirmation signaling receiving unit is configured to receive the download information confirmation signaling sent by the second client, and the data download determining unit is configured to determine, according to the download information confirmation signaling, whether the first client is successfully uploaded. Data is downloaded to the second client;
  • the response sending unit is configured to: if successful, send a return response, instruct the second client to continue downloading the data uploaded by the first client to the second client by using the download data signaling; or, if it fails, sending and sending Returning the response of the failed data transmission location identifier, instructing the second client to re-download the data by using the download data signaling according to the data transmission location identifier that failed to be sent;
  • the download information confirmation signaling includes: a signaling type identifier, The event type identifier, the file ID identifier;
  • the download information confirmation signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier.
  • the device further includes:
  • the interrupt signaling receiving unit is configured to receive the download data interruption signaling sent by the second client, and the response sending unit is configured to send a return response to the second client; the return response carries the interrupt success identifier or the interrupt failure identifier ;
  • the download data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download data interruption signaling return response includes: a response identifier.
  • the seventh embodiment of the present invention provides a data receiving apparatus, as shown in FIG. 7.
  • the device includes:
  • the notification receiving unit 701 is configured to receive a file receiving notification, where the file receiving notification carries information that the first client uploads data.
  • the determining unit 702 is configured to determine, according to information about the data uploaded by the first client, whether it already exists;
  • the initial signaling sending unit 703 is configured to: if the data does not exist, or exists, but the download data is incomplete, send the initial signaling of the download data to the server, and notify the server to prepare for download according to the start location identifier of the downloaded data;
  • the initial signaling response receiving unit 704 is configured to receive a return response sent by the server.
  • the data downloading unit 705 is configured to: when the return response carries the success response identifier, send the download data signaling, and perform data downloading from the server according to the download data starting location identifier.
  • the device further includes:
  • a preset unit configured to preset a number of sending the download data signaling
  • An information confirming unit configured to send the download information confirmation signaling to the server when the number of the sent data signaling reaches a preset value
  • a confirmation response unit configured to receive a return response sent by the server
  • the data downloading unit is further configured to: if the return response carries a success identifier, continue to send the download data signaling to perform data downloading; or, if the return response carries a failure identifier, according to the return response Carrying the data transmission location identifier of the failed transmission, sending the download data signaling, and performing data download.
  • the apparatus further includes: an interrupt signaling sending unit, configured to send download data interrupt signaling;
  • the interrupt response receiving unit is configured to receive a return response sent by the server; and the return response carries an interrupt success identifier or an interrupt failure identifier.
  • the eighth embodiment of the present invention provides an intelligent terminal.
  • the smart terminal includes: the data transmitting apparatus according to the fourth embodiment and the data receiving apparatus according to the seventh embodiment. .
  • a ninth embodiment of the present invention provides a server.
  • the server includes: the data receiving apparatus according to the fifth embodiment and the data transmitting apparatus according to the sixth embodiment.
  • the tenth embodiment of the present invention provides a data transmission system, as shown in FIG.
  • the data transmission system includes: the smart terminal described above and the server described above.
  • the beneficial effect of the embodiment of the present invention is that, in the process of uploading data to the server by the first client, the server carries the data transmission start location identifier in the return response of the initial signaling of the uploaded data, so that the upload already exists in the server.
  • the data does not need to be repeatedly transmitted, and only needs to transmit the uploaded data that is not transmitted in the first client to the server, thereby greatly saving the data traffic of the uploaded data and shortening the uploading time; further, in the process of uploading, the invention also By presetting the number of transmissions of the upload data signaling, the information confirmation signaling is periodically sent to the server, so that the first client uploads data more quickly and shortens the uploading time.
  • the second client downloads the data start location identifier in the initial signaling of the download data, so that the second client only downloads during the downloading process.
  • the data portion that is not downloaded thereby greatly saving the data traffic of the downloading process and shortening the downloading time; further, in the process of downloading, the present invention also times by presetting the number of sending of the downloading data signaling.
  • the download information confirmation signaling is sent to the server to determine so that the time for downloading data by the second client is shortened.
  • the various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further, they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • combinations of features of different embodiments are intended to be within the scope of the invention and the various embodiments.
  • the words “first” and “second” are used to distinguish the same or similar items whose functions and functions are substantially the same, in the field. The technician can understand that the words “first” and “second” do not carry out the quantity and execution order. Limited.

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

一种数据发送 /接收方法、 装置、  Data transmitting/receiving method, device,
智能终端及系统 技术领域 本发明涉及数据传输技术领域, 特别涉及一种数据发送 /接收方法、 装置、 智能终端及系统。 发明背景 随着互联网信息技术的不断进步, 手机、 pad等智能终端之间的信息交互也 就越来越频繁。 例如: 智能终端中照片、 视频、 文件等信息资源, 需通过互联 网实现客户端间分享。 目前, 基于互联网进行的信息资源共享过程通常需要在 共享资源的客户端之间建立连接, 由资源共享客户端发起, 将需要共享的信息 资源以数据包的形式发送给服务器, 再由服务器根据数据包的接收地址, 将共 享资源发送到指定客户端。 指定客户端接收服务器发送的信息资源数据包。  TECHNICAL FIELD The present invention relates to the field of data transmission technologies, and in particular, to a data transmission/reception method, device, intelligent terminal, and system. BACKGROUND OF THE INVENTION With the continuous advancement of Internet information technology, information interaction between smart terminals such as mobile phones and pads has become more frequent. For example, information resources such as photos, videos, and files in an intelligent terminal need to be shared between clients through the Internet. At present, the information resource sharing process based on the Internet generally needs to establish a connection between the clients sharing the resources, initiated by the resource sharing client, and the information resources that need to be shared are sent to the server in the form of data packets, and then the data is transmitted by the server. The receiving address of the packet, which sends the shared resource to the specified client. Specifies that the client receives the information resource packet sent by the server.
在实现本发明的过程中, 发明人发现现有技术方案至少存在如下缺陷: 现 有技术中由于传输信道, 或者传输网络, 或者传输客户端等等原因发生数据传 输中断, 也就是共享信息资源传输中断, 则需要重新开始发送共享资源信息, 从而使得共享信息资源发送的数据流量较大, 而且发送时间较长。 发明内容 鉴于上述问题, 本发明实施例提供了一种数据发送 /接收方法、 装置、 智能 终端及系统。  In the process of implementing the present invention, the inventors have found that the prior art solution has at least the following drawbacks: In the prior art, data transmission interruption occurs due to a transmission channel, or a transmission network, or a transmission client, etc., that is, a shared information resource transmission. If the interrupt is interrupted, the shared resource information needs to be restarted, so that the data traffic sent by the shared information resource is large, and the transmission time is long. SUMMARY OF THE INVENTION In view of the above problems, embodiments of the present invention provide a data transmitting/receiving method, apparatus, intelligent terminal, and system.
为了达到上述目的, 本发明实施例釆用的技术方案如下:  In order to achieve the above object, the technical solutions used in the embodiments of the present invention are as follows:
在第一客户端与服务器之间进行数据上传的过程中,  In the process of uploading data between the first client and the server,
一方面, 本发明实施例提供了一种数据发送方法, 包括:  In one aspect, an embodiment of the present invention provides a data sending method, including:
发送上传数据初始信令给服务器;  Send initial signaling of the uploaded data to the server;
接收服务器发送的返回响应;  Receiving a return response sent by the server;
根据所述返回响应, 判断是否发送上传数据; 所述返回响应中携带数据传 输起始位置标识;  Determining whether to send the upload data according to the return response; the return response carries a data transmission start location identifier;
如果需要发送上传数据, 则根据所述数据传输起始位置标识, 通过上传数 据信令将上传数据发送给所述服务器; 所述上传数据初始信令包括: 信令类型标识, 事件类型标识,文件 ID标识, 文件长度标识, 文件名称, 文件编辑标识 Status, 可下载用户 ID标识, 可下载 用户客户端类型标识; If the upload data needs to be sent, sending the upload data to the server by uploading data signaling according to the data transmission start location identifier; The initial signaling of the upload data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file edit identifier Status, a downloadable user ID identifier, and a downloadable user client type identifier;
所述上传数据初始信令的返回响应包括: 应答标识, 数据传输起始位置标 识;  The return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
所述上传数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件偏移索引 ID标识, 文件数据。  The uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
基于以上数据发送方法实施例, 对应的一种数据发送装置, 包括: 初始信令发送单元, 用于发送上传数据初始信令给服务器;  Based on the foregoing data transmission method embodiment, a corresponding data sending apparatus includes: an initial signaling sending unit, configured to send initial signaling of the uploaded data to the server;
响应接收单元, 用于接收服务器发送的返回响应;  a response receiving unit, configured to receive a return response sent by the server;
判断单元, 用于根据所述返回响应, 判断是否发送上传数据; 所述返回响 应中携带数据传输起始位置标识;  a determining unit, configured to determine, according to the return response, whether to send the upload data; the return response carries a data transmission start location identifier;
数据发送单元, 用于如果需要发送上传数据, 则根据所述数据传输起始位 置标识, 通过上传数据信令将上传数据发送给所述服务器;  a data sending unit, configured to send the upload data to the server by uploading data signaling according to the data transmission start location identifier if the upload data needs to be sent;
所述上传数据初始信令包括: 信令类型标识, 事件类型标识,文件 ID标识, 文件长度标识, 文件名称, 文件编辑标识, 可下载用户 ID标识, 可下载用户客 户端类型标识;  The initial signaling of the uploading data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file editing identifier, a downloadable user ID identifier, and a downloadable user client type identifier;
所述上传数据初始信令的返回响应包括: 应答标识, 数据传输起始位置标 识;  The return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
所述上传数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件偏移索引 ID标识, 文件数据。  The uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
另一方面, 本发明实施例提供了一种数据接收方法, 该方法包括: 接收第一客户端发送的上传数据初始信令;  On the other hand, an embodiment of the present invention provides a data receiving method, where the method includes: receiving initial signaling of upload data sent by a first client;
根据所述上传数据初始信令, 判断需要上传的数据是否已经存在; 如果不存在, 则发送返回响应给第一客户端, 指示发送上传数据; 如果存在, 但上传数据不完整, 则发送返回响应给第一客户端, 指示第一 客户端按照数据传输起始位置标识, 进行数据发送;  Determining whether the data to be uploaded already exists according to the initial signaling of the uploaded data; if not, sending a return response to the first client, indicating sending the uploaded data; if present, but sending the data incomplete, sending a return response Giving the first client, instructing the first client to perform data transmission according to the data transmission start location identifier;
如果存在, 且上传数据完整, 则发送回响应给第一客户端, 指示第一客户 端不需要上传数据。  If it exists, and the uploaded data is complete, a response is sent back to the first client, indicating that the first client does not need to upload data.
基于以上数据上传方法实施例, 对应的一种数据接收装置, 包括: 初始信令接收单元, 用于接收第一客户端发送的上传数据初始信令; 数据信息判断单元, 用于根据所述上传数据初始信令, 判断需要上传的数 据是否已经存在; Based on the foregoing data uploading method embodiment, a corresponding data receiving apparatus includes: an initial signaling receiving unit, configured to receive initial signaling of the uploaded data sent by the first client; a data information determining unit, configured to determine, according to the initial signaling of the uploaded data, whether data that needs to be uploaded already exists;
响应发送单元, 用于如果不存在, 则发送返回响应给第一客户端, 指示发 送上传数据; 或者, 如果存在, 但上传数据不完整, 则发送返回响应给第一客 户端, 指示第一客户端按照数据传输起始位置标识, 进行数据发送; 或者, 如 果存在, 且上传数据完整, 则发送回响应给第一客户端, 指示第一客户端不需 要上传数据。 在第二客户端与服务器之间进行数据下载的过程中,  a response sending unit, configured to send a return response to the first client if it does not exist, to indicate sending the upload data; or, if present, but the upload data is incomplete, send a return response to the first client, indicating the first client The data is sent according to the data transmission start location identifier; or, if present, and the uploaded data is complete, the response is sent back to the first client, indicating that the first client does not need to upload data. In the process of downloading data between the second client and the server,
一方面, 本发明实施例提供了一种数据发送方法, 包括:  In one aspect, an embodiment of the present invention provides a data sending method, including:
发送文件接收通知; 所述文件接收通知携带有第一客户端上传数据的信息; 接收第二客户端发送的下载数据初始信令; 所述下载数据初始信令携带有 第二客户端下载数据起始位置标识;  Sending a file receiving notification; the file receiving notification carries information of uploading data by the first client; receiving initial signaling of download data sent by the second client; and the initial signaling of the downloading data carries the download data of the second client Start position identifier;
根据所述第二客户端发送的下载数据初始信令, 发送返回响应;  Sending a return response according to the initial signaling of the download data sent by the second client;
当所述返回响应携带有成功应答标识时, 服务器根据所述第二客户端下载 数据起始位置标识, 通过下载数据信令将第一客户端上传的数据发送给第二客 户端;  When the return response carries the success response identifier, the server sends the data uploaded by the first client to the second client by downloading data signaling according to the second client downloading the data start location identifier;
所述第一客户端上传数据的信息包括: 文件 ID标识, 文件长度标识; 所述下载数据初始信令包括: 信令类型标识, 事件类型标识, 分享数据用 户 ID标识, 文件 ID标识, 文件长度标识, 下载数据起始位置标识, 每个下载 数据的包大小标识, 服务器端每次给客户端发送数据包个数标识;  The information about the data uploaded by the first client includes: a file ID identifier, a file length identifier, and the initial signaling of the download data includes: a signaling type identifier, an event type identifier, a shared data user ID identifier, a file ID identifier, and a file length. The identifier, the download data start location identifier, the packet size identifier of each download data, and the server sends the number of data packets to the client each time;
所述下载数据初始信令的返回响应包括: 应答标识;  The return response of the initial data of the download data includes: a response identifier;
所述下载数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件数据。  The download data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, and file data.
基于以上数据发送方法实施例, 对应的一种数据发送装置, 包括: 文件通知发送单元, 用于发送文件接收通知; 所述文件接收通知携带有第 一客户端上传数据的信息;  Based on the foregoing data transmission method embodiment, a corresponding data sending apparatus includes: a file notification sending unit, configured to send a file receiving notification; and the file receiving notification carries information that the first client uploads data;
初始信令接收单元, 用于接收第二客户端发送的下载数据初始信令; 所述 下载数据初始信令携带有第二客户端下载数据起始位置标识;  The initial signaling receiving unit is configured to receive initial data of the download data sent by the second client, where the initial signaling of the download data carries a start location identifier of the second client download data;
初始信令响应单元, 用于根据所述第二客户端发送的下载数据初始信令, 发送返回响应; 数据发送单元, 用于当所述返回响应携带有成功应答标识时, 服务器根据 所述第二客户端下载数据起始位置标识, 通过下载数据信令将第一客户端上传 的数据发送给第二客户端; An initial signaling response unit, configured to send a return response according to the initial signaling of the downloaded data sent by the second client; a data sending unit, configured to: when the return response carries a successful response identifier, the server sends the data uploaded by the first client to the second by downloading data signaling according to the second client downloading data start location identifier Client
所述第一客户端上传数据的信息包括: 文件 ID标识, 文件长度标识; 所述下载数据初始信令包括: 信令类型标识, 事件类型标识, 分享数据用 户 ID标识, 文件 ID标识, 文件长度标识, 下载数据起始位置标识, 每个下载 数据的包大小标识, 服务器端每次给客户端发送数据包个数标识;  The information about the data uploaded by the first client includes: a file ID identifier, a file length identifier, and the initial signaling of the download data includes: a signaling type identifier, an event type identifier, a shared data user ID identifier, a file ID identifier, and a file length. The identifier, the download data start location identifier, the packet size identifier of each download data, and the server sends the number of data packets to the client each time;
所述下载数据初始信令的返回响应包括: 应答标识;  The return response of the initial data of the download data includes: a response identifier;
所述下载数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件数据。  The download data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, and file data.
另一方面, 本发明实施例提供了一种数据接收方法, 包括:  In another aspect, an embodiment of the present invention provides a data receiving method, including:
接收文件接收通知; 所述文件接收通知携带有第一客户端上传数据的信息; 根据所述第一客户端上传数据的信息, 判断其是否已经存在;  Receiving a file receiving notification; the file receiving notification carries information of the first client uploading data; and determining, according to the information of the first client uploading data, whether it already exists;
如果不存在, 或者, 存在但下载数据不完整, 则发送下载数据初始信令给 服务器, 通知服务器按照下载数据起始位置标识, 准备下载;  If the data does not exist, or exists, but the downloaded data is incomplete, the initial signaling of the download data is sent to the server, and the server is notified to prepare the download according to the start location identifier of the downloaded data.
接收到服务器发送的返回响应;  Received a return response sent by the server;
当所述返回响应携带有成功应答标识时, 发送下载数据信令, 从所述服务 器按照下载数据起始位置标识, 进行数据下载。  When the return response carries a success response identifier, the download data signaling is sent, and the data download is performed from the server according to the download data start location identifier.
基于以上数据接收方法实施例, 对应的一种数据接收装置, 包括: 通知接收单元, 用于接收文件接收通知; 所述文件接收通知携带有第一客 户端上传数据的信息;  Based on the above data receiving method embodiment, a corresponding data receiving apparatus includes: a notification receiving unit, configured to receive a file receiving notification; and the file receiving notification carries information that the first client uploads data;
判断单元, 用于根据所述第一客户端上传数据的信息, 判断其是否已经存 在;  a determining unit, configured to determine, according to information about the data uploaded by the first client, whether the device already exists;
初始信令发送单元, 用于如果不存在, 或者, 存在但下载数据不完整, 则 发送下载数据初始信令给服务器, 通知服务器按照下载数据起始位置标识, 准 备下载;  The initial signaling sending unit is configured to: if the data does not exist, or exists, but the download data is incomplete, send the initial signaling of the download data to the server, and notify the server to prepare for download according to the start location identifier of the downloaded data;
初始信令响应接收单元, 用于接收到服务器发送的返回响应;  An initial signaling response receiving unit, configured to receive a return response sent by the server;
数据下载单元, 用于当所述返回响应携带有成功应答标识时, 发送下载数 据信令, 从所述服务器按照下载数据起始位置标识, 进行数据下载。 基于以上数据发送 /接收装置, 本发明实施例还提供一种智能终端, 该智能 终端包括: 如上所述的数据发送装置和所述的数据接收装置; And a data downloading unit, configured to: when the return response carries a successful response identifier, send download data signaling, and perform data downloading from the server according to the download data start location identifier. The embodiment of the present invention further provides an intelligent terminal, which is based on the above data transmitting/receiving device. The terminal includes: the data transmitting device as described above and the data receiving device;
所述的数据发送装置, 用于发送上传数据初始信令给服务器; 接收服务器 发送的返回响应; 根据所述返回响应, 判断是否发送上传数据; 所述返回响应 中携带数据传输起始位置标识; 如果需要发送上传数据, 则根据所述数据传输 起始位置标识, 通过上传数据信令将上传数据发送给所述服务器;  The data sending device is configured to send initial signaling of the uploaded data to the server; receive a return response sent by the server; determine, according to the return response, whether to send the uploaded data; and the return response carries a data transmission start location identifier; If the upload data needs to be sent, sending the upload data to the server by uploading data signaling according to the data transmission start location identifier;
所述的数据接收装置, 用于接收文件接收通知; 所述文件接收通知携带有 第一客户端上传数据的信息; 根据所述第一客户端上传数据的信息, 判断其是 否已经存在; 如果不存在, 或者, 存在但下载数据不完整, 则发送下载数据初 始信令给服务器, 通知服务器按照下载数据起始位置标识, 准备下载; 接收到 服务器发送的返回响应; 当所述返回响应携带有成功应答标识时, 发送下载数 据信令, 从所述服务器按照下载数据起始位置标识, 进行数据下载。  The data receiving device is configured to receive a file receiving notification; the file receiving notification carries information that the first client uploads data; and according to the information of the first client uploading data, whether it exists or not; If there is, or exists, but the download data is incomplete, the initial signaling of the download data is sent to the server, the notification server is configured to download according to the download data start location identifier, and the return response sent by the server is received; when the return response carries the success When the identifier is answered, the download data signaling is sent, and the data is downloaded from the server according to the download data start location identifier.
基于以上数据发送 /接收装置, 本发明实施例还提供一种服务器, 该服务器 包括: 如上所述的数据接收装置和所述的数据发送装置;  Based on the above data transmitting/receiving apparatus, the embodiment of the present invention further provides a server, the server comprising: the data receiving apparatus and the data transmitting apparatus as described above;
所述数据接收装置, 用于接收第一客户端发送的上传数据初始信令; 根据 所述上传数据初始信令, 判断需要上传的数据是否已经存在; 如果不存在, 则 发送返回响应给第一客户端, 指示发送上传数据; 如果存在, 但上传数据不完 整, 则发送返回响应给第一客户端, 指示第一客户端按照数据传输起始位置标 识, 进行数据发送; 如果存在, 且上传数据完整, 则发送回响应给第一客户端, 指示第一客户端不需要上传数据。  The data receiving device is configured to receive initial signaling of the uploaded data sent by the first client, determine, according to the initial signaling of the uploaded data, whether the data to be uploaded already exists; if not, send a return response to the first The client, instructing to send the upload data; if yes, but the upload data is incomplete, sending a return response to the first client, instructing the first client to perform data transmission according to the data transmission start location identifier; if present, and uploading the data If it is complete, it sends a response back to the first client, indicating that the first client does not need to upload data.
所述数据发送装置, 用于发送文件接收通知; 所述文件接收通知携带有第 一客户端上传数据的信息; 接收第二客户端发送的下载数据初始信令; 所述下 载数据初始信令携带有第二客户端下载数据起始位置标识; 根据所述第二客户 端发送的下载数据初始信令, 发送返回响应; 当所述返回响应携带有成功应答 标识时, 服务器根据所述第二客户端下载数据起始位置标识, 通过下载数据信 令将第一客户端上传的数据发送给第二客户端。  The data sending device is configured to send a file receiving notification; the file receiving notification carries information of uploading data by the first client; receiving initial signaling of download data sent by the second client; The second client downloads the data start location identifier; according to the download data initial signaling sent by the second client, sending a return response; when the return response carries the success response identifier, the server is according to the second client The terminal downloads the data start location identifier, and sends the data uploaded by the first client to the second client by downloading data signaling.
基于以上实施例, 本发明实施例还提供一种数据传输系统, 该系统包括: 以 上所述的智能终端和服务器。  Based on the above embodiments, an embodiment of the present invention further provides a data transmission system, where the system includes: the intelligent terminal and the server described above.
本发明实施例的有益效果是, 本发明在第一客户端上传数据给服务器的过 程中, 通过服务器在上传数据初始信令的返回响应中携带数据传输起始位置标 识, 使得服务器中已经存在的上传数据无需重复传输, 只需要传输第一客户端 中未传输完成的上传数据给服务器即可, 从而大大节省了上传数据的数据流量, 缩短了上传时间; 本发明在第二客户端从服务器下载数据的过程中, 通过在所 述下载数据初始信令携带有第二客户端下载数据起始位置标识, 从而使得第二 客户端在下载数据过程中仅仅下载其未下载的数据部分, 从而也大大节省了下 载过程的数据流量, 以及缩短下载时间。 The beneficial effect of the embodiment of the present invention is that, in the process of uploading data to the server by the first client, the server carries the data transmission start location identifier in the return response of the initial signaling of the uploaded data, so that the server already exists. The uploading data does not need to be repeatedly transmitted, and only the uploaded data that has not been transmitted in the first client needs to be transmitted to the server, thereby greatly saving the data traffic of the uploaded data. The uploading time is shortened. In the process of downloading data from the server by the second client, the second client downloads the data starting location identifier in the initial signaling of the download data, so that the second client downloads During the data process, only the undownloaded data portion is downloaded, which also greatly saves data traffic during the download process and shortens the download time.
上述说明仅是本发明技术方案的概述, 为了能够更清楚了解本发明的技术 手段, 而可依照说明书的内容予以实施, 并且为了让本发明的上述和其它目的、 特征和优点能够更明显易懂, 以下特举本发明的具体实施方式。 附图简要说明 通过阅读下文优选实施方式的详细描述, 各种其他的优点和益处对于本领 域普通技术人员将变得清楚明了。 附图仅用于示出优选实施方式的目的, 而并 不认为是对本发明的限制。 而且在整个附图中, 用相同的参考符号表示相同的 部件。 在附图中:  The above description is only an overview of the technical solutions of the present invention, and the technical means of the present invention can be more clearly understood, and can be implemented in accordance with the contents of the specification, and the above and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below. BRIEF DESCRIPTION OF THE DRAWINGS Various other advantages and benefits will become apparent to those of ordinary skill in the art. The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图 1 示出了根据本发明一个实施例的一种第一客户端向服务器上传数据的 流程图;  1 shows a flow chart of a first client uploading data to a server according to an embodiment of the present invention;
图 2 示出了根据本发明另一个实施例的一种第二客户端从服务器下载数据 的流程图;  2 is a flow chart showing a second client downloading data from a server according to another embodiment of the present invention;
图 3 示出了根据本发明第三个实施例的一种第一客户端通过服务器与第二 客户端分享数据的实例流程图;  3 is a flow chart showing an example of sharing data between a first client and a second client through a server according to a third embodiment of the present invention;
图 4示出了根据本发明第四个实施例的一种数据发送装置结构示意图; 图 5示出了根据本发明第五个实施例的一种数据接收装置结构示意图; 图 6示出了根据本发明第六个实施例的一种数据发送装置结构示意图; 图 7示出了根据本发明第七个实施例的一种数据接收装置结构示意图; 图 8示出了才艮据本发明第八个实施例的一种智能终端结构示意图; 图 9示出了根据本发明第九个实施例的一种服务器结构示意图;  4 is a block diagram showing the structure of a data transmitting apparatus according to a fourth embodiment of the present invention; FIG. 5 is a block diagram showing the structure of a data receiving apparatus according to a fifth embodiment of the present invention; FIG. 7 is a schematic structural diagram of a data receiving apparatus according to a seventh embodiment of the present invention; FIG. 8 is a schematic diagram showing the structure of a data receiving apparatus according to a seventh embodiment of the present invention; FIG. 9 is a schematic structural diagram of a server according to a ninth embodiment of the present invention; FIG.
图 10示出了根据本发明第十个实施例的一种数据传输系统结构示意图。 实施本发明的方式 下面将参照附图更详细地描述本公开的示例性实施例。 虽然附图中显示了 本公开的示例性实施例, 然而应当理解, 可以以各种形式实现本公开而不应被 这里阐述的实施例所限制。 相反, 提供这些实施例是为了能够更透彻地理解本 公开, 并且能够将本公开的范围完整的传达给本领域的技术人员。 Figure 10 is a block diagram showing the structure of a data transmission system in accordance with a tenth embodiment of the present invention. Mode for Carrying Out the Invention Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided to provide a more thorough understanding of the present invention. The disclosure is to be fully disclosed to those skilled in the art.
本发明的技术构思主要在于, 在第一客户端上传数据给服务器的过程中, 通过服务器在上传数据初始信令的返回响应中携带数据传输起始位置标识, 使 得服务器中已经存在的上传数据无需重复传输; 在第二客户端从服务器下载数 据的过程中, 通过在所述下载数据初始信令携带有第二客户端下载数据起始位 置标识, 从而使得第二客户端在下载数据过程中仅仅下载其未下载的数据部分, 无需重复下载。  The technical idea of the present invention is mainly that, in the process of uploading data to the server by the first client, the server carries the data transmission start location identifier in the return response of the initial signaling of the uploaded data, so that the upload data already existing in the server does not need to be Repeating the transmission; in the process of downloading data from the server by the second client, by using the second client to download the data start location identifier in the initial signaling of the download data, so that the second client only downloads the data during the process Download the un-downloaded data section without having to download it again.
本发明一个实施例提供了一种数据发送方法, 即第一客户端向服务器上传 数据的流程; 数据发送方为第一客户端, 数据接收方为服务器; 参见图 1 , 包括 如下步骤:  An embodiment of the present invention provides a data sending method, that is, a process in which a first client uploads data to a server; a data sender is a first client, and a data receiver is a server; and FIG. 1 includes the following steps:
S101 : 第一客户端发送上传数据初始信令给服务器;  S101: The first client sends initial signaling of the upload data to the server.
S102: 服务器根据所述传数据初始信令, 判断需要上传的数据是否已经存 在;  S102: The server determines, according to the initial signaling of the data transmission, whether the data that needs to be uploaded is already present;
S103 : 根据所述判断结果, 如果不存在, 则服务器发送返回响应给第一客 户端, 指示发送上传数据; 如果存在, 但上传数据不完整, 则服务器发送返回 响应给第一客户端, 指示第一客户端按照数据传输起始位置标识, 进行数据发 送; 如果存在, 且上传数据完整, 则服务器发送回响应给第一客户端, 指示第 一客户端不需要上传数据。  S103: According to the judgment result, if not, the server sends a return response to the first client, indicating sending the upload data; if yes, but the upload data is incomplete, the server sends a return response to the first client, indicating A client sends data according to the data transmission start location identifier; if it exists, and the upload data is complete, the server sends a response back to the first client, indicating that the first client does not need to upload data.
以上所述上传数据初始信令包括: 信令类型标识, 事件类型标识, 文件 ID 标识, 文件长度标识, 文件名称, 文件编辑标识 Status, 可下载用户 ID标识, 可下载用户客户端类型标识;  The initial signaling for uploading data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file editing identifier Status, a downloadable user ID identifier, and a downloadable user client type identifier;
所述上传数据初始信令的返回响应包括: 应答标识, 数据传输起始位置标 识;  The return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
所述上传数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件偏移索引 ID标识, 文件数据。  The uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
需要说明的是, 该方法还包括:  It should be noted that the method further includes:
第一客户端预置所述上传数据信令的发送个数;  The first client presets the number of sending the uplink data signaling;
当所述上传数据信令的发送个数达到预置值, 第一客户端发送信息确认信 令;  When the number of the sent data signaling reaches a preset value, the first client sends an information confirmation signal;
第一客户端接收所述服务器发送的返回响应; 所述返回响应携带有发送失 败的数据传输位置标识; 根据所述返回响应, 第一客户端判断所述上传数据信令传输的数据是否成 功发送给所述服务器; Receiving, by the first client, a return response sent by the server; the return response carrying a data transmission location identifier that fails to be sent; According to the return response, the first client determines whether the data transmitted by the upload data signaling is successfully sent to the server;
如果成功发送到服务器, 则第一客户端继续通过所述上传数据信令将上传 数据发送给所述服务器;  If successfully sent to the server, the first client continues to send the upload data to the server by using the upload data signaling;
如果存在发送失败的数据, 则第一客户端根据所述发送失败的数据传输位 置标识, 通过所述上传数据信令将上传数据发送给所述服务器;  If there is data that fails to be sent, the first client sends an upload data to the server according to the data transmission location identifier of the failed transmission.
所述信息确认信令包括: 信令类型标识, 事件类型标识, 文件 ID标识; 所述信息确认信令返回响应包括: 发送失败的数据传输位置标识, 应答标 识。  The information confirmation signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the information acknowledgement signaling return response includes: sending a failed data transmission location identifier, and responding to the identifier.
还需要说明的是, 该方法还可以包括:  It should also be noted that the method may further include:
第一客户端发送上传数据中断信令;  The first client sends an upload data interruption signaling;
第一客户端接收服务器发送的返回响应;  The first client receives a return response sent by the server;
根据所述返回响应, 第一客户端判断所述上传数据是否中断;  According to the return response, the first client determines whether the upload data is interrupted;
如果中断, 则停止数据上传;  If it is interrupted, stop data uploading;
如果中断失败, 则发送提示消息;  If the interrupt fails, a prompt message is sent;
所述上传数据中断信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述上传数据中断信令返回响应包括: 应答标识, 头文件标识。  The upload data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the upload data interruption signaling return response includes: a response identifier, a header file identifier.
本发明另一个实施例提供了一种数据接收方法; 即第二客户端从服务器下 载数据的流程, 数据发送方为服务器, 数据接收方为第二客户端; 参见图 2, 包 括如下步骤:  Another embodiment of the present invention provides a data receiving method, that is, a process in which a second client downloads data from a server, the data sender is a server, and the data receiver is a second client; see FIG. 2, which includes the following steps:
S201 : 服务器向第二客户端发送文件接收通知; 所述文件接收通知携带有 第一客户端上传数据的信息; 所述第一客户端上传数据的信息包括: 文件 ID标 识, 文件长度标识;  S201: The server sends a file receiving notification to the second client. The file receiving notification carries the information of the first client uploading data. The information of the first client uploading data includes: a file ID identifier, a file length identifier;
S202: 根据所述第一客户端上传数据的信息, 判断其是否已经存在; S202: Determine, according to information about the data uploaded by the first client, whether it already exists.
S203 : 如果不存在, 或者, 存在但下载数据不完整, 则服务器接收第二客 户端发送的下载数据初始信令, 通知服务器按照下载数据起始位置标识, 准备 下载; 所述下载数据初始信令包括: 信令类型标识, 事件类型标识, 分享数据 用户 ID标识, 文件 ID标识, 文件长度标识, 下载数据起始位置标识, 每个下 载数据的包大小标识, 服务器端每次给客户端发送数据包个数标识; S203: If the data does not exist, or exists, but the download data is incomplete, the server receives the initial signaling of the download data sent by the second client, and notifies the server to prepare for download according to the download data start location identifier; the download data initial signaling Including: signaling type identifier, event type identifier, shared data user ID identifier, file ID identifier, file length identifier, download data start location identifier, packet size identifier for each downloaded data, and server sends data to the client each time. Number of packages;
S204: 服务器根据所述第二客户端发送的下载数据初始信令, 发送返回响 应; 所述下载数据初始信令的返回响应包括: 应答标识; S205: 当所述返回响应携带有成功应答标识时, 服务器根据所述第二客户 端下载数据起始位置标识, 通过下载数据信令将第一客户端上传的数据发送给 第二客户端; 所述下载数据信令包括: 信令类型标识, 事件类型标识, 文件 ID 标识, 文件数据。 S204: The server sends a return response according to the initial signaling of the download data sent by the second client, and the return response of the initial signaling of the download data includes: a response identifier; S205: When the return response carries the success response identifier, the server sends the data uploaded by the first client to the second client by downloading data signaling according to the second client downloading the data start location identifier. The download data signaling includes: signaling type identifier, event type identifier, file ID identifier, file data.
需要说明的是, 该方法还包括:  It should be noted that the method further includes:
服务器接收第二客户端发送的下载信息确认信令;  The server receives the download information confirmation signaling sent by the second client;
根据所述下载信息确认信令, 服务器判断其是否成功的将第一客户端上传 的数据下载到第二客户端;  According to the download information confirmation signaling, the server determines whether it successfully downloads the data uploaded by the first client to the second client;
如果成功, 服务器发送返回响应, 指示第二客户端继续通过所述下载数据 信令将第一客户端上传的数据下载到第二客户端;  If successful, the server sends a return response, instructing the second client to continue downloading the data uploaded by the first client to the second client by using the download data signaling;
如果失败, 服务器发送携带有发送失败的数据传输位置标识的返回响应, 指示第二客户端, 按照发送失败的数据传输位置标识, 通过所述下载数据信令 重新下载数据;  If the failure occurs, the server sends a return response carrying the data transmission location identifier of the transmission failure, instructing the second client to re-download the data by using the download data signaling according to the data transmission location identifier that failed to be sent;
所述下载信息确认信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述下载信息确认信令返回响应包括: 发送失败的数据传输位置标识, 应 答标识。  The download information confirmation signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download information acknowledgement signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier.
还需要说明的是, 该方法还可以包括:  It should also be noted that the method may further include:
服务器接收第二客户端发送的下载数据中断信令;  The server receives the download data interruption signaling sent by the second client;
服务器下发返回响应给第二客户端; 所述返回响应携带有中断成功标识或 者中断失败标识。  The server sends a return response to the second client; the return response carries an interrupt success identifier or an interrupt failure identifier.
基于以上实施例, 本发明第三个实施例提供了一种第一客户端通过服务器 与第二客户端分享数据的实例; 具体实现流程如下: 此实施例预置发送 4次上 传数据信令, 发送一次信息确认信令, 确认前 4次的数据上传是否成功; 预置 发送 4次下载数据初始信令, 发送一次下载信息确认信令, 确认前 4次的数据 下载是否成功;  Based on the above embodiment, the third embodiment of the present invention provides an example for the first client to share data with the second client through the server. The specific implementation process is as follows: This embodiment presets to send 4 times of uploading data signaling. Sending information confirmation signaling once, confirming whether the data uploading of the first 4 times is successful; presetting the initial signaling of downloading data 4 times, sending a downloading information confirmation signaling, and confirming whether the data downloading of the first 4 times is successful;
第一客户端与服务器之间进行数据上传的流程如下:  The process of uploading data between the first client and the server is as follows:
S301 : 第一客户端根据客户确定的分享数据文件名称进行 Md5编码,然后, 向服务器发送上传数据初始信令; 所述上传数据初始信令包括: 信令类型标识 Data, 事件类型标识 Event, 文件 ID标识 Key, 文件长度标识 Type, 文件名称, 文件编辑标识 Status , 可下载用户 ID标识 Index , 可下载用户客户端类型标识 ClientType; 需要说的是, 以上所述信令类型标识 Data, 类型为: Byte; 事件类型标识 Event,类型为: Byte;文件 ID标识 Key,类型为字符 String;文件长度标识 Type, 类型为: long; 文件名称 Name , 类型为字符 String;文件编辑标识 Status , 用于 标识该文件是否可删除, 1代表不可删除, 0代表可删除, 类型为 long; 可下载 用户 ID标识 Index, 类型为 long; 可下载用户客户端类型标识 ClientType, 类型 为 long。 S301: The first client performs Md5 encoding according to the shared data file name determined by the client, and then sends initial signaling of the uploaded data to the server. The initial signaling of the uploaded data includes: signaling type identifier Data, event type identifier Event, file ID identifier Key, file length identifier Type, file name, file edit identifier Status, downloadable user ID identifier Index, downloadable user client type identifier ClientType; It should be noted that the above signaling type identifier Data, type: Byte; event type identifier Event, type: Byte; file ID identifier Key, type is character String; file length identifier Type, type: long; Name Name, type is character String; file edit ID Status, used to identify whether the file can be deleted, 1 means not deleteable, 0 means deleteable, type is long; Downloadable user ID mark Index, type is long; Downloadable user The client type identifies ClientType and is of type long.
其中,所述信令类型标识 Data为请求类型 Method;所述事件类型标识 Event, 文件 ID标识 Key, 文件长度标识 Type, 文件名称 Name, 文件编辑标识 Status, 可下载用户 ID标识 Index , 可下载用户客户端类型标识 ClientType为消息头。  The signaling type identifier Data is a request type Method; the event type identifier Event, the file ID identifier Key, the file length identifier Type, the file name Name, the file edit identifier Status, the downloadable user ID identifier Index, and the downloadable user The client type identifies ClientType as the message header.
S302: 服务器根据第一客户端发送的上传数据初始信令携带的信息进行判 断,给出判断结果; 所述判断结果通过相应标识由返回响应发送给第一客户端; 如果上传数据已经存在服务器端了, 就会通过标识通知客户端 A不需要传输文 件了, 并由服务器发送文件接收通知给第二客户端, 需要下载文件; 服务器判 断如果文件没有发送过, 则返回需要新发送文件标识给第一客户端; 如果已经 发送过该文件大小为 N bit, 则服务器通知第一客户端已经发送大小为 N bit时, 则客户端 Client A从 N bit开始发送, 即服务器通过数据传输起始位置标识通知 第一客户端发送上传数据的位置;  S302: The server determines, according to the information carried in the initial signaling of the uploaded data sent by the first client, and provides a judgment result; the judgment result is sent by the return response to the first client by using the corresponding identifier; if the upload data already exists on the server side After the notification, the client A does not need to transmit the file, and the server sends a file to receive the notification to the second client, and needs to download the file; the server determines that if the file has not been sent, it needs to send the newly sent file identifier to the first If the size of the file has been sent to the N bit, the server notifies the first client that the size of the file has been sent by the N bit, then the client Client A starts sending from the N bit, that is, the server identifies the data transmission start location. Notifying the first client to send the location of the uploaded data;
S303 : 服务器向第一客户端发送返回响应; 所述返回响应携带有上传文件 的传输标识; 具体包括: 不需要传输文件标识, 或传输文件标识, 及数据传输 起始位置标识;  S303: The server sends a return response to the first client, where the return response carries the transport identifier of the uploaded file, and specifically includes: does not need to transmit the file identifier, or the transport file identifier, and the data transmission start location identifier;
需要说明的是, 所述返回响应 Response包括: 应答标识, 数据传输起始位 置标识; 该响应用于服务器对第一客户端发送的上传数据初始信令的应答; 所 述应答标识可以为: OK (代表成功)和 NotExist (代表失败), 类型为 long; 所 述数据传输起始位置标识 Token为文件在服务器端已上传的偏移量, 即以下需 要上传文件开始的起始点, 类型为 long。  It should be noted that the response to the response includes: a response identifier, a data transmission start location identifier; the response is used by the server to respond to the initial signaling of the uplink data sent by the first client; the response identifier may be: OK (representing success) and NotExist (representing failure), the type is long; the data transmission start position identifier Token is the offset that the file has been uploaded on the server side, that is, the starting point of the following file uploading start, the type is long.
S304: 第一客户端根据返回响应, 判断是否发送上传数据; 具体讲, 就是 第一客户端根据返回响应中携带的不需要传输文件标识, 或传输文件标识, 或 数据传输起始位置标识对文件进行数据上传;  S304: The first client determines whether to send the upload data according to the return response. Specifically, the first client identifies the file according to the non-transport file identifier carried in the return response, or the file identifier, or the data transmission start location identifier. Carry out data uploading;
S305: 如果需要发送上传数据, 则发送上传数据信令; 也就是说当第一客 户端判断出返回响应中标识为传输文件标识, 或者数据传输起始位置标识时, 则发送上传数据信令进行数据上传。 需要说明的是, 所述上传数据信令用于上传文件数据; 具体包括: 信令类 型标识 Data, Data代表数据分享方法, 类型为 Byte; , 事件类型标识 Event, 代 表上传数据交互期阶段,类型为 Byte;文件 ID标识 Key为文件 Id,类型为 Long; 文件偏移索引 ID标识 Index为文件偏移索引 id, 类型为 long; 文件数据 Data 为文件数据, 类型为 Byte[]。 S305: If the upload data needs to be sent, sending the upload data signaling; that is, when the first client determines that the return response is identified as the transport file identifier, or the data transmission start location identifier, the uplink data signaling is sent. Data upload. It should be noted that the uploading data signaling is used to upload file data. The specific information includes: a signaling type identifier Data, a data representing a data sharing method, and a type of Byte; and an event type identifier Event, representing an uploading data interaction period, type It is a Byte; the file ID identifies that the key is the file Id, and the type is Long; the file offset index ID identifies the file as the file offset index id, and the type is long; the file data Data is the file data, and the type is Byte[].
其中, 所述信令类型标识 Data为请求类型, 所述事件类型标识 Event, 文 件 ID标识 Key, 文件偏移索引 ID标识 Index为消息头; 文件数据 Data为消息 体 BODY。  The signaling type identifier Data is a request type, the event type identifier Event, the file ID identifier Key, the file offset index ID identifier Index is a message header, and the file data Data is a message body BODY.
S306: 当所述上传数据信令达到预置上传次数 4时, 第一客户端发送信息 确认信令给服务器, 确认前 4次上传数据信令携带的数据是否成功上传;  S306: When the uploading data signaling reaches the preset uploading number 4, the first client sends the information confirmation signaling to the server, and confirms whether the data carried in the first four uploading data signaling is successfully uploaded;
需要说明的是, 所述信息确认信令用于第一客户端向服务器确认是否上传 数据文件成功, 具体包括: 信令类型标识 Data, Data代表数据分享方法, 类型 为 Byte; 事件类型标识 Event, 代表客户端确认阶段, 类型为 Byte; 文件 ID标 识 Key为文件 Id , 类型为 Long;  It should be noted that the information confirmation signaling is used by the first client to confirm whether the data file is successfully uploaded to the server, and specifically includes: a signaling type identifier Data, a data representing a data sharing method, a type Byte, and an event type identifier Event. On behalf of the client confirmation phase, the type is Byte; the file ID identifies Key as the file Id, and the type is Long;
其中,所述信令类型标识 Data为请求类型 Method;所述事件类型标识 Event, 文件 ID标识 Key为消息头。  The signaling type identifier Data is a request type Method; the event type identifier is an event, and the file ID identifier Key is a message header.
S307: 服务器根据接收到的信息确认信令判断是否成功接收到上传数据; 如果成功接收, 则通过返回响应通知第一客户端继续按照上次数据传输的位置 进行数据上传; 如果失败, 则通过在返回响应中携带失败的数据传输位置标识, 通知第一客户端发送传输失败数据。  S307: The server determines, according to the received information confirmation signaling, whether the uploaded data is successfully received. If the receiving is successful, the server returns a response to notify the first client to continue to upload data according to the location of the last data transmission; if it fails, the server passes the The return response carries the failed data transmission location identifier, and notifies the first client to send the transmission failure data.
S308: 服务器向第一客户端返回响应; 携带有成功接收标识, 或者接收失 败标识以及失败的数据传输位置标识;  S308: The server returns a response to the first client; carries the successfully received identifier, or receives the failed identifier and the failed data transmission location identifier;
需要说明的是, 所述返回响应为服务器应答第一客户端的信息确认信令的 消息; 该消息具体包括: 发送失败的数据传输位置标识, 应答标识。 所述应答 表似乎值为: OK (代表成功)和 NotExist (代表失败), 类型为 long; 所述发送 失败的数据传输位置标识为消息头。  It should be noted that the return response is a message that the server responds to the information confirmation signaling of the first client; the message specifically includes: a data transmission location identifier that fails to be sent, and a response identifier. The response table appears to have values: OK (for success) and NotExist (for failure), of type long; the data transmission location for which the transmission failed is identified as a message header.
S309: 第一客户端判断是否成功上传数据; 就是指根据所述返回响应中携 带的标识判断是否成功; 如果成功发送到服务器, 则继续通过所述上传数据信 令将上传数据发送给所述服务器; 如果存在发送失败的数据, 则根据所述发送 失败的数据传输位置标识, 通过所述上传数据信令将上传数据发送给所述服务 S310: 继续上传数据信令。 该步骤可以理解为: 当所述第一客户端判断出 前 4次的数据上传成功, 则继续通过所述上传数据信令将上传数据发送给所述 服务器; 当所述第一客户端判断出前 4次的数据上传失败, 则通过失败的数据 传输位置标识, 将传输失败的数据通过所述上传数据信令再发送给服务器。 S309: The first client determines whether the data is successfully uploaded. It is determined whether the packet is successfully sent according to the identifier carried in the return response. If the server successfully sends the data to the server, the upload data is continuously sent to the server. If there is data that fails to be sent, the upload data is sent to the service by the upload data signaling according to the data transmission location identifier of the transmission failure. S310: Continue to upload data signaling. The step can be understood as: when the first client determines that the data upload of the first 4 times is successful, the uploading data is continuously sent to the server by using the upload data signaling; when the first client determines the first 4 If the data upload fails, the failed data transmission location identifier is used, and the data that fails to be transmitted is sent to the server through the upload data signaling.
需要说明的是, 当第一客户端的客户取消上传数据时, 还存在如下流程: It should be noted that when the client of the first client cancels the uploading of data, the following process still exists:
S311 : 第一客户端向服务器发送上传数据中断信令; S311: The first client sends an upload data interruption signaling to the server.
需要说明的是, 所述上传数据中断信令用于中断上传数据; 具体可以包括: 信令类型标识 Data, Data代表数据分享方法 Method, 类型为 Byte; , 事件类型 标识 Event, 代表客户端确认阶段, 类型为 Byte; 文件 ID标识 Key; 为文件 Id, 类型为 Long。  It should be noted that the uploading data interruption signaling is used to interrupt the uploading of the data; the specific information may include: a signaling type identifier Data, a data representing a data sharing method Method, a type of Byte; an event type identifier Event, representing a client confirmation phase , type is Byte; file ID identifies Key; is file Id, type is Long.
所述事件类型标识 Event和文件 ID标识 Key为 2个消息头 Header。  The event type identifier Event and the file ID identifier Key are two headers.
S312: 服务器向第一客户端返回响应。 根据所述返回响应, 判断所述上传 数据是否中断; 如果中断, 则停止数据上传; 如果中断失败, 则发送提示消息; 所述上传数据中断信令包括: 信令类型标识, 事件类型标识, 文件 ID标识; 所 述上传数据中断信令返回响应包括: 应答标识, 头文件标识。  S312: The server returns a response to the first client. Determining, according to the return response, whether the upload data is interrupted; if interrupted, stopping data uploading; if the interrupt fails, sending a prompt message; the uploading data interrupt signaling includes: signaling type identifier, event type identifier, file ID identifier; the upload data interruption signaling return response includes: a response identifier, a header file identifier.
所述上传数据中断信令返回响应用于服务器应答第一客户端发送的上传数 据中断信令;该信令应答标识 Response值为 OK (代表成功)和 NotAvailable (代 表失败), 类型为 long。  The upload data interruption signaling return response is used by the server to respond to the upload data interruption signaling sent by the first client; the signaling response identifiers are OK (for success) and NotAvailable (for failure), and the type is long.
第二客户端与服务器之间进行数据下载的流程如下:  The process of data download between the second client and the server is as follows:
当服务器成功接收到第一客户端上传数据后,  After the server successfully receives the data uploaded by the first client,
S313 : 服务器向第二客户端发送文件接收通知; 所述文件接收通知携带有 第一客户端上传数据的信息; 所述第一客户端上传数据的信息包括: 文件 ID标 识, 文件长度标识;  S313: The server sends a file receiving notification to the second client, where the file receiving notification carries the information of the first client uploading data, and the information of the first client uploading data includes: a file ID identifier, a file length identifier;
S314: 第二客户端判断需要下载的数据是否已经存在;  S314: The second client determines whether the data that needs to be downloaded already exists.
S315: 如果不存在, 或者, 存在但下载数据不完整, 则第二客户端发送下 载数据初始信令给服务器, 通知服务器按照下载数据起始位置标识, 准备下载; 所述下载数据初始信令携带有第二客户端下载数据起始位置标识;  S315: If the data does not exist, or exists, but the download data is incomplete, the second client sends the initial signaling of the download data to the server, and the server is notified to prepare the download according to the start location identifier of the download data; the initial signaling of the download data is carried. There is a second client download data starting location identifier;
需要说明的是, 所述下载数据初始信令用于第二客户端收到服务器的文件 接收通知后, 下载文件时, 从服务器获取需要下载的数据信息, 具体包括: 信 令类型标识 Data, 事件类型标识 Event, 分享数据用户 ID标识 From[] , 文件 ID 标识 Key, 文件长度标识 Type, 下载数据起始位置标识 Token, 每个下载数据的 包大小标识 Status[, 服务器端每次给客户端发送数据包个数标识 Expire; It should be noted that the initial data of the download data is used by the second client to receive the file receiving notification of the server, and when the file is downloaded, the data information that needs to be downloaded is obtained from the server, and specifically includes: the signaling type identifier Data, the event Type identifier Event, share data user ID identifier From[], file ID identifier Key, file length identifier Type, download data start location identifier Token, each download data The packet size identifies Status[, and the server sends the number of packets to the client every time to identify Expire;
其中, Event, 代表上传数据初始期阶段, 类型为 Byte; From为分享用户的 id, 类型为 long; Key为文件 Id, 类型为 String; Token为客户端已有数据偏移 量, 类型为 long; Type为文件长度, 类型为 long; Status为标识下载每次每个 包的大小, 类型为 long; Expire为服务器端每次给客户端发的包数, 比如每批 4 个包, 类型为 long。  Among them, Event, which represents the initial stage of uploading data, is of type Byte; From is the id of the shared user, the type is long; Key is the file Id, the type is String; Token is the data offset of the client, and the type is long; Type is the length of the file, the type is long; Status is the size of each packet at the time of downloading, and the type is long; Expire is the number of packets sent to the client each time the server sends, for example, 4 packets per batch, of type long.
所述事件类型标识 Event,分享数据用户 ID标识 From[] ,文件 ID标识 Key, 文件长度标识 Type, 下载数据起始位置标识 Token, 每个下载数据的包大小标 识 Status, 服务器端每次给客户端发送数据包个数标识 Expire为消息头 Header。  The event type identifies Event, the shared data user ID identifier From[], the file ID identifier Key, the file length identifier Type, the download data start location identifier Token, the packet size of each download data identifies the Status, and the server side gives the client each time. The number of packets sent by the end identifies Expire as the header of the message.
S316: 服务器接收到下载数据初始信令后, 所述服务器向第二客户端返回 响应; 当所述返回响应携带有成功应答标识时, 服务器根据所述第二客户端下 载数据起始位置标识, 通过下载数据信令将第一客户端上传的数据发送给第二 客户端。  S316: After the server receives the initial signaling of the download data, the server returns a response to the second client. When the return response carries the success response identifier, the server downloads the data start location identifier according to the second client. The data uploaded by the first client is sent to the second client by downloading data signaling.
需要说明的是, 所述下载数据初始信令的返回响应包括: 应答标识; 该响 应用于服务器对第二客户端发送下载数据初始信令的应答; 所述应答标识 Response值为 OK (代表成功)、 NotExist (代表文件不存在)、 NotSupport (代 表不支持)和 NotAvailable (代表失败), 类型为 long。  It should be noted that the return response of the initial data of the download data includes: a response identifier; the response is used by the server to send a response to the initial signaling of the download data to the second client; the response identifier is OK (representing success) ), NotExist (represents file does not exist), NotSupport (represents not supported), and NotAvailable (represents failure), type long.
S317: 第二客户端向服务器发送下载数据信令; 所述下载数据信令包括: 信令类型标识 Data, 事件类型标识 Event, 文件 ID标识 Key, 文件数据 Data。  S317: The second client sends download data signaling to the server. The download data signaling includes: a signaling type identifier Data, an event type identifier Event, a file ID identifier Key, and a file data Data.
需要说明的是, 所述下载数据信令用于第二客户端从服务器下载数据文件; 信令类型标识 Data代表数据分享方法 Method, 类型为 Byte; Event, 代表下载 数据交互期阶段, 类型为 Byte; Key为文件 Id, 类型为 String; 所述事件类型标 识 Event, 文件 ID标识 Key, 为消息头; 同时包括 1个体 Body, 类型为 Byte[]。  It should be noted that the download data signaling is used by the second client to download the data file from the server; the signaling type identifier Data represents the data sharing method Method, and the type is Byte; the event represents the download data interaction period, and the type is Byte. Key is file Id, type is String; the event type identifies Event, file ID identifies Key, which is the message header; and includes 1 individual body, of type Byte[].
S318: 当所述下载数据信令发送次数达到预置值 4次时, 第二客户端向服 务器发送一次下载信息确认信令; 所述下载信息确认信令包括: 信令类型标识 Data, 事件类型标识 Event, 文件 ID标识 Key;  S318: When the number of times the download data signaling is sent reaches the preset value 4 times, the second client sends a download information confirmation signaling to the server; the download information confirmation signaling includes: the signaling type identifier Data, the event type Identify Event, file ID identifies Key;
需要说明的是, 所述下载信息确认信令用于第二客户端从服务器下载文件 时, 发送的一个确认信令; 用于确认之前下载的信息是否成功。 所述 Data代表 数据分享方法 Method, 类型为 Byte; 同时包括 2个 Header: 具体为 Event, 代 表下载数据交互期阶段, 类型为 Byte; Key为文件 Id, 类型为 String。  It should be noted that the download information confirmation signaling is used for an acknowledgment signaling sent by the second client when downloading a file from the server; and used to confirm whether the previously downloaded information is successful. The data represents the data sharing method Method, and the type is Byte. It also includes 2 headers: specifically Event, which represents the phase of the download data interaction phase, the type is Byte; Key is the file Id, and the type is String.
S319: 服务器判断第二客户端是否成功下载数据; 如果成功, 发送返回响 应, 指示第二客户端继续通过所述下载数据信令将第一客户端上传的数据下载 到第二客户端; 如果失败, 发送携带有发送失败的数据传输位置标识的返回响 应, 指示第二客户端, 按照发送失败的数据传输位置标识, 通过所述下载数据 信令重新下载数据; S319: The server determines whether the second client successfully downloads the data; if successful, the sending returns And instructing the second client to continue downloading the data uploaded by the first client to the second client by using the download data signaling; if the failure occurs, sending a return response carrying the data transmission location identifier of the failed transmission, indicating the second The client re-downloads the data by using the download data signaling according to the data transmission location identifier that fails to be sent;
S320: 服务器向第二客户端返回响应; 所述下载信息确认信令返回响应包 括: 发送失败的数据传输位置标识, 应答标识 Response。  S320: The server returns a response to the second client. The download information acknowledgement signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier Response.
其中,所述应答标识 Response值可以为 OK (代表成功)、或者 NotExist (代 表文件不存在), 类型为 long。  The response identifier value can be OK (for success) or NotExist (for non-existing files), and the type is long.
S321 : 继续发送下载数据信令; 此处继续发送下载数据信令可以理解为: 当第二客户端成功下载了前 4次发送的下载数据信令的数据, 根据返回响应继 续通过所述下载数据信令将第一客户端上传的数据下载到第二客户端; 当第二 客户端前 4次中含有下载失败的数据, 则根据携带有发送失败的数据传输位置 标识, 继续通过所述下载数据信令重新下载数据。  S321: Continuing to send the download data signaling; continuing to send the download data signaling here can be understood as: when the second client successfully downloads the data of the download data signaling sent in the previous 4 times, and continues to pass the download data according to the return response. The signaling downloads the data uploaded by the first client to the second client; when the second client includes the data of the download failure in the first 4 times, the data is continuously transmitted through the data transmission location identifier carrying the transmission failure. Signaling re-downloads the data.
需要说的是, 当第二客户端取消下载时, 则存在如下流程:  It should be said that when the second client cancels the download, the following process exists:
S322: 第二客户端向服务器发送下载数据中断信令; 所述下载中断信令用 于第二客户端从服务器下载文件, 第二客户端停止接收下载数据时发送的一个 取消信令; 该信令包括: 信令类型标识 Data, 事件类型标识 Event, 文件 ID标 识 Key; 其中, Data代表数据分享方法 Method, 类型为 Byte; 同时包括 2个 Header, 具体为: Event, 代表下载数据交互期阶段, 类型为 Byte; Key为文件 Id, 类型为 String。  S322: The second client sends download data interruption signaling to the server; the download interruption signaling is used by the second client to download the file from the server, and the second client stops receiving a cancellation signaling when the data is downloaded; The command includes: a signaling type identifier Data, an event type identifier Event, and a file ID identifier Key; wherein, Data represents a data sharing method Method, and the type is Byte; and includes two headers, specifically: Event, representing a download data interaction period, The type is Byte; Key is the file Id and the type is String.
S323: 服务器向第二客户端返回响应。  S323: The server returns a response to the second client.
所述第二客户端可以根据所述返回响应, 判断所述下载数据是否中断; 如 果中断, 则停止数据下载; 如果中断失败, 则发送提示消息。  The second client may determine whether the download data is interrupted according to the return response; if the interrupt is interrupted, stop the data download; if the interrupt fails, send a prompt message.
所述返回响应携带有中断成功标识或者中断失败标识; 所述下载数据中断 信令包括: 信令类型标识, 事件类型标识, 文件 ID标识; 所述下载数据中断信 令返回响应包括: 应答标识。 所述响应用于服务器对第二客户端发送的下载数 据中断信令的应答;所述应答标识 Response值为: OK (代表成功)、 NotAvailable (代表失败), 类型为 long。  The return response carries an interrupt success identifier or an interrupt failure identifier; the download data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download data interruption signaling return response includes: a response identifier. The response is used by the server to respond to the download data interruption signaling sent by the second client; the response identifier Response value is: OK (for success), NotAvailable (for failure), and type long.
基于以上实施例, 本发明第四个实施例提供了一种数据发送装置, 如图 4 所示, 该装置包括:  Based on the above embodiment, a fourth embodiment of the present invention provides a data transmitting apparatus. As shown in FIG. 4, the apparatus includes:
初始信令发送单元 401 , 用于发送上传数据初始信令给服务器; 响应接收单元 402, 用于接收服务器发送的返回响应; The initial signaling sending unit 401 is configured to send initial signaling of the uploaded data to the server; The response receiving unit 402 is configured to receive a return response sent by the server.
判断单元 403 , 用于根据所述返回响应, 判断是否发送上传数据; 所述返回 响应中携带数据传输起始位置标识;  The determining unit 403 is configured to determine, according to the return response, whether to send the upload data, where the return response carries the data transmission start location identifier;
数据发送单元 404, 用于如果需要发送上传数据, 则根据所述数据传输起始 位置标识, 通过上传数据信令将上传数据发送给所述服务器;  a data sending unit 404, configured to send, according to the data transmission start location identifier, upload data to the server according to the data transmission start location identifier if the upload data needs to be sent;
所述上传数据初始信令包括: 信令类型标识, 事件类型标识,文件 ID标识, 文件长度标识, 文件名称, 文件编辑标识, 可下载用户 ID标识, 可下载用户客 户端类型标识;  The initial signaling of the uploading data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file editing identifier, a downloadable user ID identifier, and a downloadable user client type identifier;
所述上传数据初始信令的返回响应包括: 应答标识, 数据传输起始位置标 识;  The return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
所述上传数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件偏移索引 ID标识, 文件数据。  The uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
需要说明的是, 该装置还包括:  It should be noted that the device further includes:
预置单元, 用于预置所述上传数据信令的发送个数;  a preset unit, configured to preset a number of sending the uplink data signaling;
确认信令发送单元, 用于当所述上传数据信令的发送个数达到预置值, 发 送信息确认信令;  The acknowledgment signaling unit is configured to send the information confirmation signaling when the number of the sent data signaling reaches a preset value;
确认信令接收单元, 用于接收所述服务器发送的返回响应;  An acknowledgement signaling receiving unit, configured to receive a return response sent by the server;
数据发送判断单元, 用于根据所述返回响应, 判断所述上传数据信令传输 的数据是否成功发送给所述服务器; 所述返回响应携带有发送失败的数据传输 位置标识;  a data sending determining unit, configured to determine, according to the return response, whether data transmitted by the upload data signaling is successfully sent to the server; and the return response carries a data transmission location identifier that fails to be sent;
所述数据发送单元, 还用于如果成功发送到服务器, 则继续通过所述上传 数据信令将上传数据发送给所述服务器; 或者, 如果存在发送失败的数据, 则 根据所述发送失败的数据传输位置标识, 通过所述上传数据信令将上传数据发 送给所述服务器;  The data sending unit is further configured to: if the data is successfully sent to the server, continue to send the upload data to the server by using the upload data signaling; or, if there is data that fails to be sent, according to the data that fails to be sent Transmitting a location identifier, and sending the upload data to the server by using the upload data signaling;
所述信息确认信令包括: 信令类型标识, 事件类型标识, 文件 ID标识; 所述信息确认信令返回响应包括: 发送失败的数据传输位置标识, 应答标 识。  The information confirmation signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the information acknowledgement signaling return response includes: sending a failed data transmission location identifier, and responding to the identifier.
还需要说明的是, 该装置还包括:  It should also be noted that the device further includes:
中断信令发送单元, 用于发送上传数据中断信令;  An interrupt signaling sending unit, configured to send an upload data interruption signaling;
中断响应接收单元, 用于接收服务器发送的返回响应;  An interrupt response receiving unit, configured to receive a return response sent by the server;
中断判断单元, 用于根据所述返回响应, 判断所述上传数据是否中断; 中断处理单元, 用于如果中断, 则停止数据上传; 或者, 如果中断失败, 则发送提示消息; An interrupt determining unit, configured to determine, according to the return response, whether the uploaded data is interrupted; An interrupt processing unit, configured to stop data uploading if interrupted; or, if the interrupt fails, send a prompt message;
所述上传数据中断信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述上传数据中断信令返回响应包括: 应答标识, 头文件标识。  The upload data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the upload data interruption signaling return response includes: a response identifier, a header file identifier.
基于以上实施例, 本发明第五个实施例提供了一种数据接收装置, 如图 5 所示, 该装置包括:  Based on the above embodiment, a fifth embodiment of the present invention provides a data receiving apparatus. As shown in FIG. 5, the apparatus includes:
初始信令接收单元 501 , 用于接收第一客户端发送的上传数据初始信令; 数据信息判断单元 502, 用于根据所述上传数据初始信令, 判断需要上传的 数据是否已经存在;  The initial signaling receiving unit 501 is configured to receive initial signaling of the uploaded data sent by the first client, and the data information determining unit 502 is configured to determine, according to the initial signaling of the uploaded data, whether the data that needs to be uploaded already exists;
响应发送单元 503 , 用于如果不存在, 则发送返回响应给第一客户端, 指示 发送上传数据; 或者, 如果存在, 但上传数据不完整, 则发送返回响应给第一 客户端, 指示第一客户端按照数据传输起始位置标识, 进行数据发送; 或者, 如果存在, 且上传数据完整, 则发送回响应给第一客户端, 指示第一客户端不 需要上传数据。  The response sending unit 503 is configured to: if it does not exist, send a return response to the first client, indicating to send the upload data; or, if present, but the upload data is incomplete, send a return response to the first client, indicating the first The client sends data according to the data transmission start location identifier; or, if it exists, and the uploaded data is complete, the response is sent back to the first client, indicating that the first client does not need to upload data.
需要说明的是, 该装置还包括: 确认信令接收单元, 用于接收第一客户端 发送的信息确认信令;  It should be noted that the apparatus further includes: an acknowledgement signaling receiving unit, configured to receive information acknowledgement signaling sent by the first client;
信息接收判断单元, 用于根据所述信息确认信令, 判断其是否成功接收到 第一客户端发送数据的上传数据信令;  The information receiving determining unit is configured to determine, according to the information confirmation signaling, whether the uplink data signaling of the first client sending data is successfully received;
确认响应发送单元, 用于如果成功, 发送返回响应, 指示第一客户端继续 通过所述上传数据信令发送上传数据; 或者, 如果失败, 发送携带有发送失败 的数据传输位置标识的返回响应, 指示第一客户端, 按照发送失败的数据传输 位置标识, 通过所述上传数据信令重新上传数据。  An acknowledgment response sending unit, configured to: if successful, send a return response, instructing the first client to continue to send the uploaded data by using the upload data signaling; or, if it fails, sending a return response carrying the data transmission location identifier of the failed transmission, Instructing the first client to re-upload data through the upload data signaling according to the data transmission location identifier that failed to be sent.
还需要说明的是, 该装置还包括:  It should also be noted that the device further includes:
中断信令接收单元, 用于接收第一客户端发送的上传数据中断信令; 中断响应发送单元, 用于下发返回响应给第一客户端; 所述返回响应携带 有中断成功标识或者中断失败标识。  The interrupt signaling receiving unit is configured to receive the upload data interrupt signaling sent by the first client, and the interrupt response sending unit is configured to send a return response to the first client; the return response carries an interrupt success identifier or an interrupt failure Logo.
基于以上实施例, 本发明第六个实施例提供了一种数据发送装置, 如图 6 所示, 该装置包括:  Based on the above embodiment, a sixth embodiment of the present invention provides a data transmitting apparatus. As shown in FIG. 6, the apparatus includes:
文件通知发送单元 601 , 用于发送文件接收通知; 所述文件接收通知携带有 第一客户端上传数据的信息;  a file notification sending unit 601, configured to send a file receiving notification; the file receiving notification carries information that the first client uploads data;
初始信令接收单元 602, 用于接收第二客户端发送的下载数据初始信令; 所 述下载数据初始信令携带有第二客户端下载数据起始位置标识; An initial signaling receiving unit 602, configured to receive initial signaling of download data sent by the second client; The initial signaling of the download data carries a second client download data start location identifier;
初始信令响应单元 603 , 用于根据所述第二客户端发送的下载数据初始信 令, 发送返回响应;  The initial signaling response unit 603 is configured to send a return response according to the initial data of the downloaded data sent by the second client.
数据发送单元 604, 用于当所述返回响应携带有成功应答标识时, 服务器根 据所述第二客户端下载数据起始位置标识, 通过下载数据信令将第一客户端上 传的数据发送给第二客户端;  The data sending unit 604 is configured to: when the return response carries the success response identifier, the server sends the data uploaded by the first client to the first data by downloading data signaling according to the second client downloading the data start location identifier. Two clients;
所述第一客户端上传数据的信息包括: 文件 ID标识, 文件长度标识; 所述下载数据初始信令包括: 信令类型标识, 事件类型标识, 分享数据用 户 ID标识, 文件 ID标识, 文件长度标识, 下载数据起始位置标识, 每个下载 数据的包大小标识, 服务器端每次给客户端发送数据包个数标识;  The information about the data uploaded by the first client includes: a file ID identifier, a file length identifier, and the initial signaling of the download data includes: a signaling type identifier, an event type identifier, a shared data user ID identifier, a file ID identifier, and a file length. The identifier, the download data start location identifier, the packet size identifier of each download data, and the server sends the number of data packets to the client each time;
所述下载数据初始信令的返回响应包括: 应答标识;  The return response of the initial data of the download data includes: a response identifier;
所述下载数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件数据。  The download data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, and file data.
需要说明的是, 该装置还包括:  It should be noted that the device further includes:
信息确认信令接收单元, 用于接收第二客户端发送的下载信息确认信令; 数据下载判断单元, 用于根据所述下载信息确认信令, 判断其是否成功的 将第一客户端上传的数据下载到第二客户端;  The information confirmation signaling receiving unit is configured to receive the download information confirmation signaling sent by the second client, and the data download determining unit is configured to determine, according to the download information confirmation signaling, whether the first client is successfully uploaded. Data is downloaded to the second client;
响应发送单元, 用于如果成功, 发送返回响应, 指示第二客户端继续通过 所述下载数据信令将第一客户端上传的数据下载到第二客户端; 或者, 如果失 败, 发送携带有发送失败的数据传输位置标识的返回响应, 指示第二客户端, 按照发送失败的数据传输位置标识, 通过所述下载数据信令重新下载数据; 所述下载信息确认信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述下载信息确认信令返回响应包括: 发送失败的数据传输位置标识, 应 答标识。  The response sending unit is configured to: if successful, send a return response, instruct the second client to continue downloading the data uploaded by the first client to the second client by using the download data signaling; or, if it fails, sending and sending Returning the response of the failed data transmission location identifier, instructing the second client to re-download the data by using the download data signaling according to the data transmission location identifier that failed to be sent; the download information confirmation signaling includes: a signaling type identifier, The event type identifier, the file ID identifier; the download information confirmation signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier.
还需要说明的是, 该装置还包括:  It should also be noted that the device further includes:
中断信令接收单元, 用于接收第二客户端发送的下载数据中断信令; 响应发送单元, 用于下发返回响应给第二客户端; 所述返回响应携带有中 断成功标识或者中断失败标识;  The interrupt signaling receiving unit is configured to receive the download data interruption signaling sent by the second client, and the response sending unit is configured to send a return response to the second client; the return response carries the interrupt success identifier or the interrupt failure identifier ;
所述下载数据中断信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述下载数据中断信令返回响应包括: 应答标识。  The download data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download data interruption signaling return response includes: a response identifier.
基于以上实施例, 本发明第七个实施例提供了一种数据接收装置, 如图 7 所示, 该装置包括: Based on the above embodiment, the seventh embodiment of the present invention provides a data receiving apparatus, as shown in FIG. 7. As shown, the device includes:
通知接收单元 701 , 用于接收文件接收通知; 所述文件接收通知携带有第一 客户端上传数据的信息;  The notification receiving unit 701 is configured to receive a file receiving notification, where the file receiving notification carries information that the first client uploads data.
判断单元 702, 用于根据所述第一客户端上传数据的信息, 判断其是否已经 存在;  The determining unit 702 is configured to determine, according to information about the data uploaded by the first client, whether it already exists;
初始信令发送单元 703 , 用于如果不存在, 或者, 存在但下载数据不完整, 则发送下载数据初始信令给服务器, 通知服务器按照下载数据起始位置标识, 准备下载;  The initial signaling sending unit 703 is configured to: if the data does not exist, or exists, but the download data is incomplete, send the initial signaling of the download data to the server, and notify the server to prepare for download according to the start location identifier of the downloaded data;
初始信令响应接收单元 704, 用于接收到服务器发送的返回响应;  The initial signaling response receiving unit 704 is configured to receive a return response sent by the server.
数据下载单元 705 , 用于当所述返回响应携带有成功应答标识时, 发送下载 数据信令, 从所述服务器按照下载数据起始位置标识, 进行数据下载。  The data downloading unit 705 is configured to: when the return response carries the success response identifier, send the download data signaling, and perform data downloading from the server according to the download data starting location identifier.
需要说明的是, 该装置还包括:  It should be noted that the device further includes:
预置单元, 用于预置所述下载数据信令的发送个数;  a preset unit, configured to preset a number of sending the download data signaling;
信息确认单元, 用于当所述下载数据信令的发送个数达到预置值, 发送下 载信息确认信令给所述服务器;  An information confirming unit, configured to send the download information confirmation signaling to the server when the number of the sent data signaling reaches a preset value;
确认响应单元, 用于接收服务器发送的返回响应;  a confirmation response unit, configured to receive a return response sent by the server;
所述数据下载单元, 还用于如果所述返回响应携带有成功标识, 则继续发 送下载数据信令, 进行数据下载; 或者, 如果所述返回响应携带有失败标识, 则根据所述返回响应中携带的发送失败的数据传输位置标识, 发送下载数据信 令, 进行数据下载。  The data downloading unit is further configured to: if the return response carries a success identifier, continue to send the download data signaling to perform data downloading; or, if the return response carries a failure identifier, according to the return response Carrying the data transmission location identifier of the failed transmission, sending the download data signaling, and performing data download.
还需要说明的是, 该装置还包括: 中断信令发送单元, 用于发送下载数据 中断信令;  It should be noted that the apparatus further includes: an interrupt signaling sending unit, configured to send download data interrupt signaling;
中断响应接收单元, 用于接收所述服务器发送的返回响应; 所述返回响应 携带有中断成功标识或者中断失败标识。  The interrupt response receiving unit is configured to receive a return response sent by the server; and the return response carries an interrupt success identifier or an interrupt failure identifier.
基于以上实施例, 本发明第八个实施例提供了一种智能终端, 如图 8所示, 该智能终端包括: 如第四实施例所述数据发送装置和第七实施例所述数据接收 装置。  Based on the above embodiment, the eighth embodiment of the present invention provides an intelligent terminal. As shown in FIG. 8, the smart terminal includes: the data transmitting apparatus according to the fourth embodiment and the data receiving apparatus according to the seventh embodiment. .
基于以上实施例, 本发明第九个实施例提供了一种服务器, 如图 9 所示, 该服务器包括: 如第五实施例所述数据接收装置和第六实施例所述数据发送装 置。  Based on the above embodiment, a ninth embodiment of the present invention provides a server. As shown in FIG. 9, the server includes: the data receiving apparatus according to the fifth embodiment and the data transmitting apparatus according to the sixth embodiment.
基于以上实施例, 本发明第十个实施例提供了一种数据传输系统, 如图 10 所示, 该数据传输系统包括: 以上所述智能终端和以上所述服务器。 本发明实施例的有益效果是, 在第一客户端在上传数据给服务器的过程中, 通过服务器在上传数据初始信令的返回响应中携带数据传输起始位置标识, 使 得服务器中已经存在的上传数据无需重复传输, 只需要传输第一客户端中未传 输完成的上传数据给服务器即可, 从而大大节省了上传数据的数据流量, 缩短 了上传时间; 此外, 在上传的过程中, 本发明还通过预置所述上传数据信令的 发送个数, 来定时向服务器发送信息确认信令, 从而使得第一客户端更加快速 的上传数据, 缩短上传时间。 本发明在第二客户端从服务器下载数据的过程中, 通过在所述下载数据初始信令携带有第二客户端下载数据起始位置标识, 从而 使得第二客户端在下载数据过程中仅仅下载其未下载的数据部分, 从而也大大 节省了下载过程的数据流量, 以及缩短下载时间; 此外, 在下载的过程中, 本 发明还通过预置所述下载数据信令的发送个数, 来定时向服务器发送下载信息 确认信令, 来确定从而使得第二客户端下载数据时间缩短。 Based on the above embodiment, the tenth embodiment of the present invention provides a data transmission system, as shown in FIG. As shown, the data transmission system includes: the smart terminal described above and the server described above. The beneficial effect of the embodiment of the present invention is that, in the process of uploading data to the server by the first client, the server carries the data transmission start location identifier in the return response of the initial signaling of the uploaded data, so that the upload already exists in the server. The data does not need to be repeatedly transmitted, and only needs to transmit the uploaded data that is not transmitted in the first client to the server, thereby greatly saving the data traffic of the uploaded data and shortening the uploading time; further, in the process of uploading, the invention also By presetting the number of transmissions of the upload data signaling, the information confirmation signaling is periodically sent to the server, so that the first client uploads data more quickly and shortens the uploading time. In the process of downloading data from the server by the second client, the second client downloads the data start location identifier in the initial signaling of the download data, so that the second client only downloads during the downloading process. The data portion that is not downloaded, thereby greatly saving the data traffic of the downloading process and shortening the downloading time; further, in the process of downloading, the present invention also times by presetting the number of sending of the downloading data signaling. The download information confirmation signaling is sent to the server to determine so that the time for downloading data by the second client is shortened.
本发明的各个部件实施例可以以硬件实现, 或者以在一个或者多个处理器 上运行的软件模块实现, 或者以它们的组合实现。 本领域的技术人员应当理解, 可以在实践中使用微处理器或者数字信号处理器( DSP )来实现根据本发明实施 例的一些或者全部部件的一些或者全部功能。 本发明还可以实现为用于执行这 里所描述的方法的一部分或者全部的设备或者装置程序 (例如, 计算机程序和 计算机程序产品)。 这样的实现本发明的程序可以存储在计算机可读介质上, 或 者可以具有一个或者多个信号的形式。  The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
本领域的技术人员可以理解, 可以对实施例中的设备中的模块进行自适应 性地改变并且把它们设置在与该实施例不同的一个或多个设备中。 可以把实施 例中的模块或单元或组件组合成一个模块或单元或组件, 以及此外可以把它们 分成多个子模块或子单元或子组件。 此外, 不同实施例的特征的组合意味着处 于本发明的范围之内并且形成不同的实施例。  Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further, they may be divided into a plurality of sub-modules or sub-units or sub-components. Furthermore, combinations of features of different embodiments are intended to be within the scope of the invention and the various embodiments.
在此处所提供的说明书中, 说明了大量具体细节。 然而, 能够理解, 本发 明的实施例可以在没有这些具体细节的情况下被实践。 在一些实例中, 并未详 细示出公知的方法、 结构和技术, 以便不模糊对本说明书的理解。  Numerous specific details are set forth in the description provided herein. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well known methods, structures, and techniques have not been shown in detail so as not to obscure the description.
为了便于清楚描述本发明实施例的技术方案, 在发明的实施例中, 釆用了 "第一"、 "第二" 等字样对功能和作用基本相同的相同项或相似项进行区分, 本领域技术人员可以理解 "第一"、 "第二" 等字样并不对数量和执行次序进行 限定。 In order to facilitate the clear description of the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first" and "second" are used to distinguish the same or similar items whose functions and functions are substantially the same, in the field. The technician can understand that the words "first" and "second" do not carry out the quantity and execution order. Limited.
此外, 还应当注意, 本说明书中使用的语言主要是为了可读性和教导的目 的而选择的, 而不是为了解释或者限定本发明的主题而选择的。 因此, 在不偏 离所附权利要求书的范围和精神的情况下, 对于本技术领域的普通技术人员来 说许多修改和变更都是显而易见的。 对于本发明的范围, 对本发明所做的公开 是说明性的, 而非限制性的, 本发明的范围由所附权利要求书限定。  In addition, it should be noted that the language used in the specification has been selected for the purpose of reading and teaching, and is not intended to explain or limit the subject matter of the present invention. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范围。 凡在本发明的精神和原则之内所作的任何修改、 等同替换、 改进等, 均包含在 本发明的保护范围内。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权利要求书 Claim
1、 一种数据发送方法, 其特征在于, 包括: A data transmission method, comprising:
发送上传数据初始信令给服务器;  Send initial signaling of the uploaded data to the server;
接收服务器发送的返回响应;  Receiving a return response sent by the server;
根据所述返回响应, 判断是否发送上传数据; 所述返回响应中携带数据传 输起始位置标识;  Determining whether to send the upload data according to the return response; the return response carries a data transmission start location identifier;
如果需要发送上传数据, 则根据所述数据传输起始位置标识, 通过上传数 据信令将上传数据发送给所述服务器;  If the upload data needs to be sent, sending the upload data to the server by uploading data signaling according to the data transmission start location identifier;
所述上传数据初始信令包括: 信令类型标识, 事件类型标识,文件 ID标识, 文件长度标识, 文件名称, 文件编辑标识 Status, 可下载用户 ID标识, 可下载 用户客户端类型标识;  The initial signaling of the uploading data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file editing identifier Status, a downloadable user ID identifier, and a downloadable user client type identifier;
所述上传数据初始信令的返回响应包括: 应答标识, 数据传输起始位置标 识;  The return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
所述上传数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件偏移索引 ID标识, 文件数据。  The uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
2、 如权利要求 1所述的数据发送方法, 其特征在于, 该方法还包括: 预置所述上传数据信令的发送个数;  2. The data transmitting method according to claim 1, wherein the method further comprises: presetting a number of transmissions of the upload data signaling;
当所述上传数据信令的发送个数达到预置值, 发送信息确认信令; 接收所述服务器发送的返回响应; 所述返回响应携带有发送失败的数据传 输位置标识;  And sending a message acknowledgement signaling when the number of the sent data signaling reaches a preset value; receiving a return response sent by the server; and the return response carrying a data transmission location identifier that fails to be sent;
根据所述返回响应, 判断所述上传数据信令传输的数据是否成功发送给所 述服务器;  Determining, according to the return response, whether the data transmitted by the upload data signaling is successfully sent to the server;
如果成功发送到服务器, 则继续通过所述上传数据信令将上传数据发送给 所述服务器;  If successfully sent to the server, continue to send the upload data to the server by using the upload data signaling;
如果存在发送失败的数据, 则根据所述发送失败的数据传输位置标识, 通 过所述上传数据信令将上传数据发送给所述服务器;  If there is data that fails to be sent, the upload data is sent to the server by using the upload data signaling according to the data transmission location identifier of the transmission failure;
所述信息确认信令包括: 信令类型标识, 事件类型标识, 文件 ID标识; 所述信息确认信令返回响应包括: 发送失败的数据传输位置标识, 应答标 识。 The information acknowledgement signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the information acknowledgement signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier.
3、 如权利要求 1或 2所述的数据发送方法, 其特征在于, 该方法还包括: 发送上传数据中断信令; The data transmitting method according to claim 1 or 2, wherein the method further comprises: sending an upload data interruption signaling;
接收服务器发送的返回响应;  Receiving a return response sent by the server;
根据所述返回响应, 判断所述上传数据是否中断;  Determining, according to the return response, whether the uploaded data is interrupted;
如果中断, 则停止数据上传;  If it is interrupted, stop data uploading;
如果中断失败, 则发送提示消息;  If the interrupt fails, a prompt message is sent;
所述上传数据中断信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述上传数据中断信令返回响应包括: 应答标识, 头文件标识。  The upload data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the upload data interruption signaling return response includes: a response identifier, a header file identifier.
4、 一种数据接收方法, 其特征在于,  4. A data receiving method, characterized in that
接收客户端发送的上传数据初始信令;  Receiving initial signaling of the uploaded data sent by the client;
根据所述上传数据初始信令, 判断需要上传的数据是否已经存在; 如果不存在, 则发送返回响应给客户端, 指示发送上传数据;  Determining whether the data to be uploaded already exists according to the initial signaling of the uploaded data; if not, sending a return response to the client, instructing to send the uploaded data;
如果存在, 但上传数据不完整, 则发送返回响应给客户端, 指示客户端按 照数据传输起始位置标识, 进行数据发送;  If the data is incomplete, the response is sent to the client, and the client is instructed to perform data transmission according to the data transmission start location identifier.
如果存在, 且上传数据完整, 则发送回响应给客户端, 指示第一客户端不 需要上传数据。  If it exists, and the uploaded data is complete, a response is sent back to the client, indicating that the first client does not need to upload data.
5、 如权利要求 4所述的数据接收方法, 其特征在于, 该方法还包括: 接收客户端发送的信息确认信令;  The data receiving method according to claim 4, wherein the method further comprises: receiving information confirmation signaling sent by the client;
根据所述信息确认信令, 判断其是否成功接收到客户端发送数据的上传数 据信令;  Determining, according to the information confirmation signaling, whether it successfully receives the upload data signaling of the data sent by the client;
如果成功, 发送返回响应, 指示客户端继续通过所述上传数据信令发送上 传数据;  If successful, the sending returns a response, instructing the client to continue to send the uploaded data through the upload data signaling;
如果失败, 发送携带有发送失败的数据传输位置标识的返回响应, 指示客 户端, 按照发送失败的数据传输位置标识, 通过所述上传数据信令重新上传数 据。  If it fails, the return response carrying the data transmission location identifier with the failed transmission is sent to the client, and the data is re-uploaded by the upload data signaling according to the data transmission location identifier of the failed transmission.
6、 如权利要求 4或 5所述的数据接收方法, 其特征在于, 该方法, 还包括: 接收客户端发送的上传数据中断信令;  The data receiving method according to claim 4 or 5, further comprising: receiving an upload data interruption signaling sent by the client;
下发返回响应给客户端; 所述返回响应携带有中断成功标识或者中断失败 标识。  The return response is sent to the client; the return response carries an interrupt success identifier or an interrupt failure identifier.
7、 一种数据发送方法, 其特征在于, 包括:  7. A data transmission method, comprising:
发送文件接收通知; 所述文件接收通知携带有第一客户端上传数据的信息; 接收第二客户端发送的下载数据初始信令; 所述下载数据初始信令携带有 第二客户端下载数据起始位置标识; Sending a file receiving notification; the file receiving notification carries information that the first client uploads data; Receiving initial data of the download data sent by the second client; the initial signaling of the download data carries a start location identifier of the second client download data;
根据所述第二客户端发送的下载数据初始信令, 发送返回响应;  Sending a return response according to the initial signaling of the download data sent by the second client;
当所述返回响应携带有成功应答标识时, 根据所述第二客户端下载数据起 始位置标识, 通过下载数据信令将第一客户端上传的数据发送给第二客户端; 所述第一客户端上传数据的信息包括: 文件 ID标识, 文件长度标识; 所述下载数据初始信令包括: 信令类型标识, 事件类型标识, 分享数据用 户 ID标识, 文件 ID标识, 文件长度标识, 下载数据起始位置标识, 每个下载 数据的包大小标识, 服务器端每次给客户端发送数据包个数标识;  When the return response carries the success response identifier, the data uploaded by the first client is sent to the second client by downloading the data signaling according to the second client downloading the data start location identifier; The information of the client uploading data includes: a file ID identifier, a file length identifier, and the initial signaling of the download data includes: a signaling type identifier, an event type identifier, a shared data user ID identifier, a file ID identifier, a file length identifier, and a download data. The starting location identifier, the packet size identifier of each downloaded data, and the server sends the number of data packets to the client each time;
所述下载数据初始信令的返回响应包括: 应答标识;  The return response of the initial data of the download data includes: a response identifier;
所述下载数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件数据。  The download data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, and file data.
8、 如权利要求 7所述的数据发送方法, 其特征在于, 该方法还包括: 接收第二客户端发送的下载信息确认信令;  The method for transmitting data according to claim 7, wherein the method further comprises: receiving, by the second client, download information confirmation signaling;
根据所述下载信息确认信令, 判断其是否成功的将第一客户端上传的数据 下载到第二客户端;  Determining, according to the download information confirmation signaling, whether the data uploaded by the first client is successfully downloaded to the second client;
如果成功, 发送返回响应, 指示第二客户端继续通过所述下载数据信令将 第一客户端上传的数据下载到第二客户端;  If successful, the sending returns a response, instructing the second client to continue downloading the data uploaded by the first client to the second client by using the download data signaling;
如果失败, 发送携带有发送失败的数据传输位置标识的返回响应, 指示第 二客户端, 按照发送失败的数据传输位置标识, 通过所述下载数据信令重新下 载数据;  If the failure occurs, sending a return response carrying the data transmission location identifier of the transmission failure, instructing the second client to re-download the data by using the download data signaling according to the data transmission location identifier of the transmission failure;
所述下载信息确认信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述下载信息确认信令返回响应包括: 发送失败的数据传输位置标识, 应 答标识。  The download information confirmation signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download information acknowledgement signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier.
9、 如权利要求 7或 8所述的数据发送方法, 其特征在于, 该方法还包括: 接收第二客户端发送的下载数据中断信令;  The data transmitting method according to claim 7 or 8, wherein the method further comprises: receiving download data interruption signaling sent by the second client;
下发返回响应给第二客户端; 所述返回响应携带有中断成功标识或者中断 失败标识;  And sending a return response to the second client; the return response carries an interrupt success identifier or an interrupt failure identifier;
所述下载数据中断信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述下载数据中断信令返回响应包括: 应答标识。  The download data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download data interruption signaling return response includes: a response identifier.
10、 一种数据接收方法, 其特征在于, 接收文件接收通知; 所述文件接收通知携带有第一客户端上传数据的信息; 根据所述第一客户端上传数据的信息, 判断其是否已经存在; 10. A data receiving method, characterized in that Receiving a file receiving notification; the file receiving notification carries information of the first client uploading data; and determining, according to the information of the first client uploading data, whether it already exists;
如果不存在, 或者, 存在但下载数据不完整, 则发送下载数据初始信令给 服务器, 通知服务器按照下载数据起始位置标识, 准备下载;  If the data does not exist, or exists, but the downloaded data is incomplete, the initial signaling of the download data is sent to the server, and the server is notified to prepare the download according to the start location identifier of the downloaded data.
接收到服务器发送的返回响应;  Received a return response sent by the server;
当所述返回响应携带有成功应答标识时, 发送下载数据信令, 从所述服务 器按照下载数据起始位置标识, 进行数据下载。  When the return response carries a success response identifier, the download data signaling is sent, and the data download is performed from the server according to the download data start location identifier.
11、 如权利要求 10所述的数据接收方法, 其特征在于,  11. The data receiving method according to claim 10, wherein:
预置所述下载数据信令的发送个数;  Presetting the number of transmissions of the download data signaling;
当所述下载数据信令的发送个数达到预置值, 发送下载信息确认信令给所 述服务器;  And when the number of the sent data signaling reaches a preset value, sending the download information acknowledgement signaling to the server;
接收服务器发送的返回响应;  Receiving a return response sent by the server;
如果所述返回响应携带有成功标识, 则继续发送下载数据信令, 进行数据 下载;  If the return response carries a success identifier, the download data signaling is continued to be sent, and the data is downloaded;
如果所述返回响应携带有失败标识, 则根据所述返回响应中携带的发送失 败的数据传输位置标识, 发送下载数据信令, 进行数据下载。  If the return response carries a failure identifier, the download data signaling is sent according to the data transmission location identifier of the transmission failure carried in the return response, and the data is downloaded.
12、 如权利要求 10或者 11所述的数据接收方法, 其特征在于, 该方法, 还包括:  The data receiving method according to claim 10 or 11, wherein the method further comprises:
发送下载数据中断信令;  Send download data interrupt signaling;
接收所述服务器发送的返回响应; 所述返回响应携带有中断成功标识或者 中断失败标识。  Receiving a return response sent by the server; the return response carries an interrupt success identifier or an interrupt failure identifier.
13、 一种数据发送装置, 其特征在于, 包括:  13. A data transmitting apparatus, comprising:
初始信令发送单元, 用于发送上传数据初始信令给服务器;  An initial signaling sending unit, configured to send initial signaling of the uploaded data to the server;
响应接收单元, 用于接收服务器发送的返回响应;  a response receiving unit, configured to receive a return response sent by the server;
判断单元, 用于根据所述返回响应, 判断是否发送上传数据; 所述返回响 应中携带数据传输起始位置标识;  a determining unit, configured to determine, according to the return response, whether to send the upload data; the return response carries a data transmission start location identifier;
数据发送单元, 用于如果需要发送上传数据, 则根据所述数据传输起始位 置标识, 通过上传数据信令将上传数据发送给所述服务器;  a data sending unit, configured to send the upload data to the server by uploading data signaling according to the data transmission start location identifier if the upload data needs to be sent;
所述上传数据初始信令包括: 信令类型标识, 事件类型标识,文件 ID标识, 文件长度标识, 文件名称, 文件编辑标识, 可下载用户 ID标识, 可下载用户客 户端类型标识; 所述上传数据初始信令的返回响应包括: 应答标识, 数据传输起始位置标 识; The initial signaling of the uploading data includes: a signaling type identifier, an event type identifier, a file ID identifier, a file length identifier, a file name, a file editing identifier, a downloadable user ID identifier, and a downloadable user client type identifier; The return response of the initial signaling of the upload data includes: a response identifier, a data transmission start location identifier;
所述上传数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件偏移索引 ID标识, 文件数据。  The uploading data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, a file offset index ID identifier, and file data.
14、 如权利要求 13所述的数据发送装置, 其特征在于, 该装置还包括: 预置单元, 用于预置所述上传数据信令的发送个数;  The data transmitting apparatus according to claim 13, wherein the apparatus further comprises: a presetting unit, configured to preset a number of transmissions of the upload data signaling;
确认信令发送单元, 用于当所述上传数据信令的发送个数达到预置值, 发 送信息确认信令;  The acknowledgment signaling unit is configured to send the information confirmation signaling when the number of the sent data signaling reaches a preset value;
确认信令接收单元, 用于接收所述服务器发送的返回响应;  An acknowledgement signaling receiving unit, configured to receive a return response sent by the server;
数据发送判断单元, 用于根据所述返回响应, 判断所述上传数据信令传输 的数据是否成功发送给所述服务器; 所述返回响应携带有发送失败的数据传输 位置标识;  a data sending determining unit, configured to determine, according to the return response, whether data transmitted by the upload data signaling is successfully sent to the server; and the return response carries a data transmission location identifier that fails to be sent;
所述数据发送单元, 还用于如果成功发送到服务器, 则继续通过所述上传 数据信令将上传数据发送给所述服务器; 或者, 如果存在发送失败的数据, 则 根据所述发送失败的数据传输位置标识, 通过所述上传数据信令将上传数据发 送给所述服务器;  The data sending unit is further configured to: if the data is successfully sent to the server, continue to send the upload data to the server by using the upload data signaling; or, if there is data that fails to be sent, according to the data that fails to be sent Transmitting a location identifier, and sending the upload data to the server by using the upload data signaling;
所述信息确认信令包括: 信令类型标识, 事件类型标识, 文件 ID标识; 所述信息确认信令返回响应包括: 发送失败的数据传输位置标识, 应答标 识。  The information confirmation signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the information acknowledgement signaling return response includes: sending a failed data transmission location identifier, and responding to the identifier.
15、 如权利要求 13或 14所述的数据发送装置, 其特征在于, 该装置还包 括:  The data transmitting apparatus according to claim 13 or 14, wherein the apparatus further comprises:
中断信令发送单元, 用于发送上传数据中断信令;  An interrupt signaling sending unit, configured to send an upload data interruption signaling;
中断响应接收单元, 用于接收服务器发送的返回响应;  An interrupt response receiving unit, configured to receive a return response sent by the server;
中断判断单元, 用于根据所述返回响应, 判断所述上传数据是否中断; 中断处理单元, 用于如果中断, 则停止数据上传; 或者, 如果中断失败, 则发送提示消息;  An interrupt determining unit, configured to determine, according to the return response, whether the upload data is interrupted; an interrupt processing unit, configured to stop data uploading if interrupted; or, if the interrupt fails, send a prompt message;
所述上传数据中断信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述上传数据中断信令返回响应包括: 应答标识, 头文件标识。  The upload data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the upload data interruption signaling return response includes: a response identifier, a header file identifier.
16、 一种数据接收装置, 其特征在于, 16. A data receiving device, characterized in that
初始信令接收单元, 用于接收客户端发送的上传数据初始信令; 数据信息判断单元, 用于根据所述上传数据初始信令, 判断需要上传的数 据是否已经存在; An initial signaling receiving unit, configured to receive initial signaling of the uploaded data sent by the client; a data information determining unit, configured to determine, according to the initial signaling of the uploaded data, whether data that needs to be uploaded already exists;
响应发送单元, 用于如果不存在, 则发送返回响应给客户端, 指示发送上 传数据; 或者, 如果存在, 但上传数据不完整, 则发送返回响应给客户端, 指 示客户端按照数据传输起始位置标识, 进行数据发送; 或者, 如果存在, 且上 传数据完整, 则发送回响应给客户端, 指示客户端不需要上传数据。  a response sending unit, configured to send a return response to the client if it does not exist, instructing to send the upload data; or, if present, but the upload data is incomplete, sending a return response to the client, instructing the client to start according to the data transmission The location identifier is sent for data; or, if it exists, and the uploaded data is complete, a response is sent back to the client, indicating that the client does not need to upload data.
17、 如权利要求 16所述的数据接收装置, 其特征在于, 该装置还包括: 确认信令接收单元, 用于接收客户端发送的信息确认信令;  The data receiving apparatus according to claim 16, wherein the apparatus further comprises: an acknowledgement signaling receiving unit, configured to receive information acknowledgement signaling sent by the client;
信息接收判断单元, 用于根据所述信息确认信令, 判断其是否成功接收到 客户端发送数据的上传数据信令;  The information receiving determining unit is configured to determine, according to the information confirmation signaling, whether the data of the uploading data of the data sent by the client is successfully received;
确认响应发送单元, 用于如果成功, 发送返回响应, 指示客户端继续通过 所述上传数据信令发送上传数据; 或者, 如果失败, 发送携带有发送失败的数 据传输位置标识的返回响应, 指示客户端,按照发送失败的数据传输位置标识, 通过所述上传数据信令重新上传数据。  The acknowledgment response sending unit is configured to: if successful, send a return response, instruct the client to continue to send the upload data through the upload data signaling; or, if it fails, send a return response carrying the data transmission location identifier that failed to send, indicating the client Endly, the data is re-uploaded by the upload data signaling according to the data transmission location identifier that failed to be sent.
18、 如权利要求 16或 17所述的数据接收装置, 其特征在于, 该装置还包 括:  The data receiving device according to claim 16 or 17, wherein the device further comprises:
中断信令接收单元, 用于接收客户端发送的上传数据中断信令;  An interrupt signaling receiving unit, configured to receive an upload data interruption signaling sent by the client;
中断响应发送单元, 用于下发返回响应给客户端; 所述返回响应携带有中 断成功标识或者中断失败标识。  The interrupt response sending unit is configured to send a return response to the client; and the return response carries an interrupt success identifier or an interrupt failure identifier.
19、 一种数据发送装置, 其特征在于, 包括:  19. A data transmitting apparatus, comprising:
文件通知发送单元, 用于发送文件接收通知; 所述文件接收通知携带有第 一客户端上传数据的信息;  a file notification sending unit, configured to send a file receiving notification; the file receiving notification carries information that the first client uploads data;
初始信令接收单元, 用于接收第二客户端发送的下载数据初始信令; 所述 下载数据初始信令携带有第二客户端下载数据起始位置标识;  The initial signaling receiving unit is configured to receive initial data of the download data sent by the second client, where the initial signaling of the download data carries a start location identifier of the second client download data;
初始信令响应单元, 用于根据所述第二客户端发送的下载数据初始信令, 发送返回响应;  An initial signaling response unit, configured to send a return response according to the initial signaling of the downloaded data sent by the second client;
数据发送单元, 用于当所述返回响应携带有成功应答标识时, 服务器根据 所述第二客户端下载数据起始位置标识, 通过下载数据信令将第一客户端上传 的数据发送给第二客户端;  a data sending unit, configured to: when the return response carries a successful response identifier, the server sends the data uploaded by the first client to the second by downloading data signaling according to the second client downloading data start location identifier Client
所述第一客户端上传数据的信息包括: 文件 ID标识, 文件长度标识; 所述下载数据初始信令包括: 信令类型标识, 事件类型标识, 分享数据用 户 ID标识, 文件 ID标识, 文件长度标识, 下载数据起始位置标识, 每个下载 数据的包大小标识, 服务器端每次给客户端发送数据包个数标识; The information of the first client uploading data includes: a file ID identifier, a file length identifier, and the initial signaling of the download data includes: a signaling type identifier, an event type identifier, and a shared data. User ID identification, file ID identification, file length identification, download data starting location identifier, packet size identifier of each downloaded data, and the number of data packets sent by the server to the client each time;
所述下载数据初始信令的返回响应包括: 应答标识;  The return response of the initial data of the download data includes: a response identifier;
所述下载数据信令包括: 信令类型标识, 事件类型标识, 文件 ID标识, 文 件数据。  The download data signaling includes: a signaling type identifier, an event type identifier, a file ID identifier, and file data.
20、 如权利要求 19所述的数据发送装置, 其特征在于, 该装置还包括: 信息确认信令接收单元, 用于接收第二客户端发送的下载信息确认信令; 数据下载判断单元, 用于根据所述下载信息确认信令, 判断其是否成功的 将第一客户端上传的数据下载到第二客户端;  The data transmitting apparatus according to claim 19, further comprising: an information confirmation signaling receiving unit, configured to receive download information confirmation signaling sent by the second client; and a data download determining unit, Determining, according to the download information confirmation signaling, whether the data uploaded by the first client is successfully downloaded to the second client;
响应发送单元, 用于如果成功, 发送返回响应, 指示第二客户端继续通过 所述下载数据信令将第一客户端上传的数据下载到第二客户端; 或者, 如果失 败, 发送携带有发送失败的数据传输位置标识的返回响应, 指示第二客户端, 按照发送失败的数据传输位置标识, 通过所述下载数据信令重新下载数据; 所述下载信息确认信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述下载信息确认信令返回响应包括: 发送失败的数据传输位置标识, 应 答标识。  The response sending unit is configured to: if successful, send a return response, instruct the second client to continue downloading the data uploaded by the first client to the second client by using the download data signaling; or, if it fails, sending and sending Returning the response of the failed data transmission location identifier, instructing the second client to re-download the data by using the download data signaling according to the data transmission location identifier that failed to be sent; the download information confirmation signaling includes: a signaling type identifier, The event type identifier, the file ID identifier; the download information confirmation signaling return response includes: a data transmission location identifier that fails to be sent, and a response identifier.
21、 如权利要求 19或 20所述的数据发送装置, 其特征在于, 该装置, 还 包括:  The data transmitting apparatus according to claim 19 or 20, wherein the apparatus further comprises:
中断信令接收单元, 用于接收第二客户端发送的下载数据中断信令; 响应发送单元, 用于下发返回响应给第二客户端; 所述返回响应携带有中 断成功标识或者中断失败标识;  The interrupt signaling receiving unit is configured to receive the download data interruption signaling sent by the second client, and the response sending unit is configured to send a return response to the second client; the return response carries the interrupt success identifier or the interrupt failure identifier ;
所述下载数据中断信令包括: 信令类型标识, 事件类型标识,文件 ID标识; 所述下载数据中断信令返回响应包括: 应答标识。  The download data interruption signaling includes: a signaling type identifier, an event type identifier, and a file ID identifier; and the download data interruption signaling return response includes: a response identifier.
22、 一种数据接收装置, 其特征在于,  22. A data receiving device, characterized in that
通知接收单元, 用于接收文件接收通知; 所述文件接收通知携带有第一客 户端上传数据的信息;  a notification receiving unit, configured to receive a file receiving notification; the file receiving notification carries information that the first client uploads data;
判断单元, 用于根据所述第一客户端上传数据的信息, 判断其是否已经存 在;  a determining unit, configured to determine, according to information about the data uploaded by the first client, whether the device already exists;
初始信令发送单元, 用于如果不存在, 或者, 存在但下载数据不完整, 则 发送下载数据初始信令给服务器, 通知服务器按照下载数据起始位置标识, 准 备下载; 初始信令响应接收单元, 用于接收到服务器发送的返回响应; 数据下载单元, 用于当所述返回响应携带有成功应答标识时, 发送下载数 据信令, 从所述服务器按照下载数据起始位置标识, 进行数据下载。 The initial signaling sending unit is configured to: if the data does not exist, or exists, but the download data is incomplete, send the initial signaling of the download data to the server, and notify the server to prepare the download according to the start location identifier of the downloaded data; The initial signaling response receiving unit is configured to receive a return response sent by the server, and the data downloading unit is configured to: when the return response carries the successful response identifier, send the download data signaling, start from the server according to the download data. Location identification, data download.
23、 如权利要求 22所述的数据接收装置, 其特征在于, 该装置还包括: 预置单元, 用于预置所述下载数据信令的发送个数;  The data receiving apparatus according to claim 22, further comprising: a presetting unit, configured to preset a number of transmissions of the download data signaling;
信息确认单元, 用于当所述下载数据信令的发送个数达到预置值, 发送下 载信息确认信令给所述服务器;  An information confirming unit, configured to send the download information confirmation signaling to the server when the number of the sent data signaling reaches a preset value;
确认响应单元, 用于接收服务器发送的返回响应;  a confirmation response unit, configured to receive a return response sent by the server;
所述数据下载单元, 还用于如果所述返回响应携带有成功标识, 则继续发 送下载数据信令, 进行数据下载; 或者, 如果所述返回响应携带有失败标识, 则根据所述返回响应中携带的发送失败的数据传输位置标识, 发送下载数据信 令, 进行数据下载。  The data downloading unit is further configured to: if the return response carries a success identifier, continue to send the download data signaling to perform data downloading; or, if the return response carries a failure identifier, according to the return response Carrying the data transmission location identifier of the failed transmission, sending the download data signaling, and performing data download.
24、 如权利要求 22或者 23所述的数据接收装置, 其特征在于, 该装置, 还包括:  The data receiving device according to claim 22 or 23, wherein the device further comprises:
中断信令发送单元, 用于发送下载数据中断信令;  An interrupt signaling sending unit, configured to send download data interruption signaling;
中断响应接收单元, 用于接收所述服务器发送的返回响应; 所述返回响应 携带有中断成功标识或者中断失败标识。  The interrupt response receiving unit is configured to receive a return response sent by the server; and the return response carries an interrupt success identifier or an interrupt failure identifier.
25、 一种智能终端, 其特征在于, 包括: 如权利要求 13至权利要求 15中 任意一项所述数据发送装置和如权利要求 22至权利要求 24中任意一项所述数 据接收装置。  An intelligent terminal, comprising: the data transmitting apparatus according to any one of claims 13 to 15, and the data receiving apparatus according to any one of claims 22 to 24.
26、 一种服务器, 其特征在于, 包括: 如权利要求 16至权利要求 18中任 意一项所述数据接收装置和如权利要求 19至权利要求 21 中任意一项所述数据 发送装置。  A server, comprising: the data receiving device according to any one of claims 16 to 18, and the data transmitting device according to any one of claims 19 to 21.
27、 一种数据传输系统, 其特征在于, 包括: 如权利要求 25所述的智能终 端和如权利要求 26所述的服务器。  A data transmission system, comprising: the intelligent terminal of claim 25 and the server of claim 26.
PCT/CN2014/081004 2014-06-27 2014-06-27 Method, device, intelligent terminal and system for data sending/receiving WO2015196473A1 (en)

Priority Applications (2)

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

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
WO2015196473A1 true WO2015196473A1 (en) 2015-12-30

Family

ID=54936529

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081004 WO2015196473A1 (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
CN110661762A (en) * 2018-06-29 2020-01-07 中兴通讯股份有限公司 Cross information transmission method, device and computer storage medium

Families Citing this family (1)

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

Citations (7)

* 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
CN101179393A (en) * 2006-12-14 2008-05-14 腾讯科技(深圳)有限公司 Method and system for implementing document breakpoint transmission
CN102355426A (en) * 2011-06-30 2012-02-15 北京神州泰岳软件股份有限公司 Method for transmitting off-line file and system
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100463549C (en) * 2007-01-18 2009-02-18 上海柯斯软件有限公司 Method for down loading network resource using mobile terminal
CN101184055B (en) * 2007-12-11 2010-12-22 腾讯科技(深圳)有限公司 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

Patent Citations (7)

* 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
CN101179393A (en) * 2006-12-14 2008-05-14 腾讯科技(深圳)有限公司 Method and system for implementing document breakpoint transmission
CN102355426A (en) * 2011-06-30 2012-02-15 北京神州泰岳软件股份有限公司 Method for transmitting off-line file and system
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
CN110661762A (en) * 2018-06-29 2020-01-07 中兴通讯股份有限公司 Cross information transmission method, device and computer storage medium

Also Published As

Publication number Publication date
CN105794148A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN105100021B (en) Triggering method, device and system for device management session
CN109450948B (en) Data transmission method and device
CN110999257B (en) Delivery method selection for delivery of server notifications
EP3160109B1 (en) Udp-based control command transmission method, sender and receiver
CN103516673A (en) Network data communication method, network data communication system, network data communication client and network data communication server
CN108173920B (en) LORAWAN-based file transmission method
JP2019047289A5 (en)
CN107087293B (en) Access method, terminal and server
CN103650401A (en) Internal communication method for mobile terminal
CN104184834A (en) File transmission method and device and terminal
WO2016011643A1 (en) Method for terminating call, application processor and modem
EP3292678B1 (en) System, terminal, server, and method for data transmission
KR101018685B1 (en) Apparatus and method for controling automatic repeat request reset in wireless broadbandinternet system
WO2015196473A1 (en) Method, device, intelligent terminal and system for data sending/receiving
CN111543079B (en) Radio Link Control (RLC) Acknowledged Mode (AM) data reception
KR20200016982A (en) Method and system for data transmission, and apparatus
JP4227621B2 (en) Data packet transmission method and transmitter
CN103607311A (en) System and method for reestablishing TCP connection seamlessly
WO2015106524A1 (en) Method, apparatus and server for notifying/sending usage of service package
JP2008219591A5 (en)
US10182089B2 (en) Method and broadcast multicast service center, BM-SC, node for providing an on-request service
WO2017000713A1 (en) Method and device for synchronizing clock time transport modes in optical transport network
CN113489786A (en) Long connection network weak network reconnection method and retransmission method
CN107172179B (en) Bilateral acceleration transmission method and system
JP2005346175A (en) Apparatus and method for command communication

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14895945

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895945

Country of ref document: EP

Kind code of ref document: A1