CN104836650A - Terminal - Google Patents

Terminal Download PDF

Info

Publication number
CN104836650A
CN104836650A CN201510152882.8A CN201510152882A CN104836650A CN 104836650 A CN104836650 A CN 104836650A CN 201510152882 A CN201510152882 A CN 201510152882A CN 104836650 A CN104836650 A CN 104836650A
Authority
CN
China
Prior art keywords
data transmission
terminal
packet
acknowledge message
transmission procedure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510152882.8A
Other languages
Chinese (zh)
Inventor
刘立荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510152882.8A priority Critical patent/CN104836650A/en
Publication of CN104836650A publication Critical patent/CN104836650A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/74Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission for increasing reliability, e.g. using redundant or spare channels or apparatus

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a terminal. The terminal comprises an input unit, a first transmission unit and a second transmission unit. The input unit is used for receiving a first instruction, and the first instruction is used for triggering the data transmission process between a first terminal and a second terminal; the first transmission unit is used for establishing a first data transmission channel by means of first communication connection between the first terminal and the second terminal, and carries out the data transmission process through the first data transmission channel; the second transmission unit is used for determining whether the data transmission process is interrupted or not, if the data transmission process is interrupted, a second data transmission channel is started, and the data transmission process continues through the second data transmission channel; and the second data transmission channel is a data transmission channel formed through second communication connection established between the first terminal and the second terminal. According to the invention, during the data transmission process, when the first communication connection is switched off, the first terminal can continue the data transmission process through a standby data transmission channel established by the second communication connection, and data transmission continuity can be achieved.

Description

A kind of terminal
Technical field
The present invention relates to technical field of data transmission, particularly relate to a kind of terminal.
Background technology
In prior art, in smart mobile phone and computer, the method for mutual transfer files is a lot, such as, by SD card or USB flash disk transfer, or transfer data to network and carry out transfer, some are had to the computer of the close range wireless communication module such as WIFI, bluetooth or NFC, can also directly and smart mobile phone set up wireless connections and carry out data interaction.But, when carrying out transfer by USB flash disk or SD card, need to carry out twice copy, and the SD card draw-in groove of present smart mobile phone is arranged on interior of mobile phone, needs detaching mobile phones shell just can complete copy task when being copied by SD card.In addition, because the reading of USB flash disk do not supported by mobile phone itself, need when being copied by USB flash disk to use USB OTG data wire to connect USB flash disk.Need network support by webserver transfer, and when network speed is slower, uploading the experience of downloading large files can non-constant.Therefore, in practical application, the most frequently used method is that smart mobile phone is connected to computer by data wire, thus directly can access the memory space of smart mobile phone in a computer and the file copied in smart mobile phone, also can by the file copy in computer in smart mobile phone.
But, by data wire directly connect smart mobile phone and computer carry out transfer of data time, because the accident of data wire two end interface loosens, interrupting often appears in data transmission procedure.
Summary of the invention
Embodiments provide a kind of terminal, in data transmission procedure, when the first communication connection disconnects, described data transmission procedure can be continued by the preliminary data transmission channel of second communication connection establishment, the continuity of transfer of data can be realized.
The embodiment of the invention discloses a kind of terminal, this terminal comprises:
Input unit, for receiving the first instruction, described first instruction is for triggering the data transmission procedure between described first terminal and the second terminal;
First transmission unit, communicates to connect for utilizing between described first terminal and described second terminal first and sets up first data transmission passage, perform described data transmission procedure by described first data transmission passage; Second transmission unit, for judging whether described data transmission procedure interrupts, if so, then starts the second data transmission channel, continues described data transmission procedure by described second data transmission channel; Described second data transmission channel is the data transmission channel that the described second communication by setting up between described first terminal and described second terminal is connected to form.
The embodiment of the present invention sets up first data transmission passage by the first communication connection between first terminal and the second terminal, transfer of data is carried out by first data transmission passage, when data transmission procedure interrupts, second data transmission channel that can be connected to form by the second communication between first terminal and the second terminal continues described data transmission procedure, can realize the continuity of transfer of data.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the first embodiment of the data transmission method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the second embodiment of the data transmission method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the 3rd embodiment of the data transmission method that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of the 4th embodiment of the data transmission method that the embodiment of the present invention provides;
Fig. 5 is the schematic diagram of the data transmission procedure that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the first embodiment of the terminal that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the second embodiment of the terminal that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the 3rd embodiment of the terminal that the embodiment of the present invention provides;
Fig. 9 is the structural representation of the 4th embodiment of the terminal that the embodiment of the present invention provides;
Figure 10 is the structural representation of the 5th embodiment of the terminal that the embodiment of the present invention provides;
Figure 11 is the structural representation of the 6th embodiment of the terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, be the schematic flow sheet of the first embodiment of the data transmission method that the embodiment of the present invention provides, the method comprises:
Step S101: first terminal receives the first instruction, described first instruction is for triggering the data transmission procedure between first terminal and the second terminal.
Concrete, described data transmission procedure both can be process target data being transferred to the second terminal from first terminal, also can be from the second terminal transmission to the process of first terminal by target data.One group of packing of orders of the first instruction both can be operand be target data, such as target data is performed duplicate instructions and performed target data and paste instruction, the single instruction of the first instruction also can be operand be target data, such as " being sent to " instruction is performed to target data, first instruction can also be other instructions triggering described data transmission procedure, such as phonetic control command, is not restricted here.
In specific implementation, first terminal can obtain source path and the destination path of described data transmission procedure according to the first instruction.Such as, the first instruction comprises: the duplicate instructions of target data that what first terminal performed under the path A of first terminal copy, the stickup instruction of the stickup target data that first terminal performs under the path B of the second terminal; Then the data transfer direction of described data transmission procedure is from first terminal to the second terminal, and the source path of described data transmission procedure is path A, and the destination path of described data transmission procedure is path B.Again such as, first instruction is the phonetic control command of " target data is copied to path D from path C " that first terminal receives, wherein, path C is the file path of the second terminal, path D is the file path of first terminal, then the data transfer direction of described data transmission procedure is from the second terminal to first terminal, and the source path of described data transmission procedure is path C, and the destination path of described data transmission procedure is path D.Example is only a kind of implementation of the embodiment of the present invention, can be different in actual use, should not form restriction.
Step S103: first terminal utilizes between first terminal and the second terminal first to communicate to connect and sets up first data transmission passage, performs described data transmission procedure by first data transmission passage.
Concrete, the first communication connection can comprise the wired or wireless communication set up between first terminal with the second terminal and be connected.First communicates to connect the communication connection carrying out the first-selection of transfer of data that can be between first terminal and the second terminal, often can provide higher message transmission rate.In specific implementation, under communicating to connect first the condition do not disconnected, first terminal can be given tacit consent to the first data transmission passage formed by the first communication connection and carry out transfer of data.Such as, first terminal is set up wire communication by USB data line with the second terminal and is connected, and meanwhile, first terminal is set up radio communication by Wi-Fi with the second terminal and is connected, then first terminal acquiescence carries out transfer of data by USB data line and the second terminal.Example is only a kind of implementation of the embodiment of the present invention, can be different in actual use, should not form restriction.
Step S105: first terminal judges whether described data transmission procedure interrupts.
Concrete, undertaken in the process of described transfer of data by first data transmission passage, first terminal can monitor the state of the first communication connection, if the first communication connection disconnects, data transmission procedure described in interruptible price, and perform step S107, namely continue described data transmission procedure by data transmission channel for subsequent use; If the first communication connection keeps connecting, then continue through first data transmission passage and perform described data transmission procedure.
Step S107: first terminal starts the second data transmission channel, continues described data transmission procedure by the second data transmission channel.
Concrete, except the first communication connection, can also there is second communication and connect between first terminal and the second terminal, second communication connection can be the wired or wireless communication set up between first terminal with the second terminal and is connected.Described second data transmission channel is the data transmission channel for subsequent use be connected to form by second communication.
Concrete, due to the first communication connection disconnection cause described data-transmission interruptions time, first terminal can enable the second data transmission channel, continues described data transmission procedure by the second data transmission channel.
Needs illustrate, in the embodiment of the present invention, when causing described data transmission procedure to interrupt because user initiatively disconnects the first communication connection, first terminal can not perform step S107.In specific implementation, when first terminal detects that the first communication connection disconnects, first terminal after obtaining the confirmation that user communicates to connect for disconnection first, can judge that described data transmission procedure is by user's active break.Such as, when the first communication connection disconnects, first terminal ejects dialog box on screen, whether inquiry user confirms that disconnection first communicates to connect, if receive the confirmation of user, then can judge that the first communication connection is disconnected by user, otherwise, then can judge that the first communication connection meets accident disconnection.
Further, in the embodiment of the present invention, the first communication connection can be data wire and connects, and second communication connection can be wireless communication and connects.In specific implementation, before execution step S107, first terminal can judge whether to be in same local area network (LAN) with the second terminal, if, then set up wireless communication with the second terminal to be connected, namely second communication connects, and utilizes wireless communication connection establishment second data transmission channel.
Implement the embodiment of the present invention, in data transmission procedure, between first terminal and the second terminal first communicates to connect when disconnecting, first terminal can continue described data transmission procedure by the preliminary data transmission channel of second communication connection establishment therebetween, can realize the continuity of transfer of data.
See Fig. 2, be the schematic flow sheet of the second embodiment of the data transmission method that the embodiment of the present invention provides, the method comprises:
Step S201: first terminal receives the first instruction, described first instruction is for triggering the data transmission procedure between first terminal and the second terminal.
Concrete, see the content described in the step S101 of Fig. 1, can repeat no more here.
Step S203: first terminal utilizes between first terminal and the second terminal first to communicate to connect and sets up first data transmission passage, performs described data transmission procedure by first data transmission passage.
Concrete, see the content described in the step S103 of Fig. 1, can repeat no more here.
Step S205: first terminal judges whether described data transmission procedure interrupts.
Concrete, see the content described in the step S105 of Fig. 1, can repeat no more here.
Step S207: first terminal starts the second data transmission channel, continues described data transmission procedure by the second data transmission channel.
Concrete, see the content described in the step S107 of Fig. 1, can repeat no more here.
Step S209: first terminal judges whether the first connection status communicated to connect reverts to effective connection status.
Concrete, continuing in described data transmission procedure by the second data transmission channel, first terminal can monitor the connection status of the first communication connection, judges whether the first communication connection reverts to effective connection status, if so, then performs step S211; If not, then continue through the second data transmission channel and continue described data transmission procedure.
Step S211: first terminal recovers first data transmission passage, suspends ongoing described data transmission procedure, performs the described data transmission procedure after suspending by the first data transmission passage after recovering.
Concrete, first communicates to connect the communication connection carrying out the first-selection of transfer of data that can be between first terminal and the second terminal.Connect compared to second communication, the first communication connection can provide higher message transmission rate.When the first communication connection reverts to effective connection status, first terminal recovers first data transmission passage by the first communication connection after recovery, suspend the described data transmission procedure carried out in the second data transmission channel, continue the described data transmission procedure after suspending by the first data transmission passage after recovering.
Implement the embodiment of the present invention, in data transmission procedure, between first terminal and the second terminal first communicates to connect when disconnecting, first terminal can continue described data transmission procedure by the preliminary data transmission channel of second communication connection establishment therebetween, afterwards, if the first communication connection recovers, the first data transmission passage that first terminal is formed by the first communication connection after recovery continues described data transmission procedure, the continuity of transfer of data can be realized, and higher message transmission rate can be realized.
See Fig. 3, be the schematic flow sheet of the 3rd embodiment of the data transmission method that the embodiment of the present invention provides, the method comprises:
Step S301: first terminal receives the first instruction, described first instruction is for triggering the data transmission procedure between first terminal and the second terminal.
Concrete, first terminal can be the transmit leg of described data transmission procedure.First instruction can be triggering command target data being transferred to the memory space of the second terminal from the memory space of first terminal that first terminal receives.Such as, the file under the path A of first terminal is moved to " shearing " instruction under the path B of the second terminal.Again such as, the file under the path A of first terminal is moved to " being sent to " instruction under the path B of the second terminal.Example is only a kind of implementation of the embodiment of the present invention, can be different in actual use, should not form restriction.
Step S303: first terminal utilizes between first terminal and the second terminal first to communicate to connect and sets up first data transmission passage, performs described data transmission procedure by first data transmission passage.
Concrete, the first communication connection can comprise the wired or wireless communication set up between first terminal with the second terminal and be connected.First communicates to connect the communication connection carrying out the first-selection of transfer of data that can be between first terminal and the second terminal, often can provide higher message transmission rate.In specific implementation, under communicating to connect first the condition do not disconnected, first terminal can be given tacit consent to the first data transmission passage formed by the first communication connection and target data is sent to the second terminal from first terminal.
Step S305: the packet after packet numbering by target data packet numbering, and is stored in default transmission buffering area by first terminal.
Concrete, before sending target data to the second terminal by first data transmission passage, target data to be sent can be split into packet by the host-host protocol corresponding according to the first communication connection by first terminal, and storage sends in buffering area with default, in order to realize the correct payment of packet, first terminal can carry out packet numbering to the packet in default transmission buffering area, in order to realize sending packet according to the order of sequence, and the second terminal received in-order packet can be realized, be convenient to the second terminal according to received in-order to data packet recovery go out target data.
Step S307: first terminal sends packet to the second terminal after packet numbering according to the order of sequence by first data transmission passage.
Concrete, the packet after the numbering in pre-set buffer district can be carried out grouping transmission by the host-host protocol corresponding according to the first communication connection by first terminal.In described data transmission procedure, first terminal can receive the first acknowledge message that the second terminal sends, first acknowledge message is the acknowledge message that the second terminal sends in described data transmission procedure, is used to indicate the packet of the first terminal transmission that the second terminal receives.Further, first terminal can according to the first acknowledge message, and the packet the second terminal received is deleted from pre-set buffer district.
Concrete, the delivery of data between transmit leg and recipient can be as shown in Figure 5.Wherein, transmit leg is stored in after target data to be sent is carried out packet numbering to preset and sends in buffering area 501, and sends packet 502 to recipient according to the order of sequence.After receiving packet 502, the packet 502 received can be stored in reception buffer zone 504 by recipient, and replys acknowledge message 503, with informing that transmit leg packet 502 is successfully received to transmit leg.After receiving the confirmation message 503, the data of packet 502 correspondence can be deleted by transmit leg from default transmission buffering area 501.Same, in the next one transmission cycle, transmit leg can send packet " S2 " according to the order of sequence to recipient.
Step S309: first terminal judges whether described data transmission procedure interrupts.
Concrete, undertaken in the process of described transfer of data by first data transmission passage, first terminal can monitor the state of the first communication connection, if the first communication connection disconnects, data transmission procedure described in interruptible price, and perform step S311, namely continue described data transmission procedure by data transmission channel for subsequent use; If the first communication connection keeps connecting, then continue to perform step S307.
Step S311: first terminal starts the second data transmission channel.
Concrete, due to the first communication connection disconnection cause described data-transmission interruptions time, first terminal can enable the second data transmission channel, continues described data transmission procedure by the second data transmission channel.
Step S313: first terminal receives the second acknowledge message of the second terminal transmission by the second data transmission channel.
Concrete, before continued the packet in the described default transmission buffering area of transmission by the second data transmission channel, first terminal can receive the second acknowledge message of the transmission of the second terminal.Second acknowledge message is that the second terminal is had no progeny the acknowledge message sent in described data transmission procedure, is used to indicate the packet that whole first terminals that the second terminal receives before described data transmission procedure interrupts send.
Step S315: first terminal according to the second acknowledge message, the second terminal is received and the packet be present in pre-set buffer district delete from pre-set buffer district.
Concrete, as shown in Figure 5, the interruption of described data transmission procedure can comprise two kinds of situations: situation one, the interruption of described data transmission procedure occurs in sending direction recipient when sending packet 502, recipient does not receive the packet 502 that transmit leg has sent, and transmit leg does not receive the confirmation message 503 yet; Situation two, the interruption of described data transmission procedure occurs in receive direction transmit leg when returning acknowledge message 503, and recipient have received packet 502, and transmit leg does not receive the confirmation message 503.
Intelligible, for situation one, transmit leg needs to resend packet 502 to recipient, to ensure the correct payment of target data.For situation two, transmit leg needs packet 502 to delete in district from default transmission buffering area, repeats to receive to avoid the received side of packet 502.
In specific implementation, after receiving the second acknowledge message, packet that in default transmission buffering area, received side receives can be deleted according to the second acknowledge message by first terminal, with avoid packet repeat send.
Step S317: first terminal continues described data transmission procedure by the second data transmission channel.
Concrete, after refresh default transmission buffering area according to the second acknowledge message, first terminal can continue to send the packet being stored in and presetting in transmission buffering area according to the order of sequence by the second data transmission channel.
Step S319: first terminal judges whether the first connection status communicated to connect reverts to effective connection status.
Concrete, continuing in described data transmission procedure by the second data transmission channel, first terminal can monitor the connection status of the first communication connection, judges whether the first communication connection reverts to effective connection status, if so, then performs step S321; If not, then described data transmission procedure is continued by the second data transmission channel.
Step S321: first terminal recovers first data transmission passage, suspends ongoing described data transmission procedure.
Concrete, first communicates to connect the communication connection carrying out the first-selection of transfer of data that can be between first terminal and the second terminal.Connect compared to second communication, the first communication connection can provide higher message transmission rate.When the first communication connection reverts to effective connection status, first terminal recovers first data transmission passage by the first communication connection after recovery, suspend the described data transmission procedure carried out in the second data transmission channel, in order to continue the described data transmission procedure after suspending by the first data transmission passage after recovery.
Step S323: the 3rd acknowledge message that first terminal is sent by the second terminal described in the described first data transmission channel reception after recovery.
Concrete, before continuing the described data transmission procedure after suspending by the first data transmission passage after recovery, first terminal can receive the 3rd acknowledge message of the transmission of the second terminal.3rd acknowledge message is the acknowledge message that the second terminal sends after described data transmission procedure suspends, and is used to indicate the packet of the first terminal transmission that the second terminal receives before described data transmission procedure suspends.
Step S325: first terminal according to the 3rd acknowledge message, the second terminal is received and the packet be present in pre-set buffer district delete from pre-set buffer district.
Concrete, as shown in Figure 5, the time-out of the described data transmission procedure carried out in the second data transmission channel can comprise two kinds of situations: situation one, the time-out of described data transmission procedure occurs in sending direction recipient when sending packet 502, recipient does not receive the packet 502 that transmit leg has sent, and transmit leg does not receive the confirmation message 503 yet; Situation two, the time-out of described data transmission procedure occurs in receive direction transmit leg when returning acknowledge message 503, and recipient have received packet 502, and transmit leg does not receive the confirmation message 503.
Intelligible, for situation one, transmit leg needs to resend packet 502 to recipient, to ensure the correct payment of target data.For situation two, transmit leg needs packet 502 to delete in district from default transmission buffering area, repeats to receive to avoid the received side of packet 502.
In specific implementation, after receiving the 3rd acknowledge message, packet that in default transmission buffering area, received side receives can be deleted according to the 3rd acknowledge message by first terminal, with avoid packet repeat send.
Step S327: first terminal performs the described data transmission procedure after suspending by the first data transmission passage after recovery.
Concrete, after refresh default transmission buffering area according to the 3rd acknowledge message, first terminal can continue to send the packet remaining in and preset in transmission buffering area according to the order of sequence by first data transmission passage.
Implement the embodiment of the present invention, after data transmission channel between first terminal and the second terminal experiences accidental interruption and again recovers, first terminal can regain the reception condition of the packet of the second terminal before accidental interruption, refresh to preset according to this reception condition and send buffering area, and continue to send the packet preset and send in buffering area according to the order of sequence by the data transmission channel after recovering, the continuity of Packet Generation can be realized.
See Fig. 4, be the schematic flow sheet of the 4th embodiment of the data transmission method that the embodiment of the present invention provides, the method comprises:
Step S401: first terminal receives the first instruction, described first instruction is for triggering the data transmission procedure between first terminal and the second terminal.
Concrete, first terminal can be the recipient of described data transmission procedure.First instruction can be triggering command target data being transferred to the memory space of first terminal from the memory space of the second terminal that first terminal receives.
Step S403: first terminal utilizes between first terminal and the second terminal first to communicate to connect and sets up first data transmission passage, performs described data transmission procedure by first data transmission passage.
Concrete, first communicates to connect the communication connection carrying out the first-selection of transfer of data that can be between first terminal and the second terminal, often can provide higher message transmission rate.In specific implementation, under communicating to connect first the condition do not disconnected, the second terminal can be given tacit consent to the first data transmission passage formed by the first communication connection and target data is sent to first terminal from the second terminal.
Step S405: first terminal receives the packet that the second terminal sends, and described packet is the packet generated after the second terminal carries out packet numbering to target data.
Concrete, the packet that first terminal is sent by first data transmission channel reception second terminal, and can after often receiving a packet, this Packet Generation first according to receiving confirms message to the second terminal, and the first acknowledge message comprises the numbering of this packet.
Step S407: first terminal judges whether described data transmission procedure interrupts.
Concrete, in the process passing through first data transmission channel reception packet, first terminal can monitor the state of the first communication connection, if the first communication connection disconnects, data transmission procedure described in interruptible price, and perform step S409, namely continue described data transmission procedure by data transmission channel for subsequent use; If the first communication connection keeps connecting, then continue to perform step S405.
Step S409: first terminal starts the second data transmission channel.
Concrete, due to the first communication connection disconnection cause described data-transmission interruptions time, first terminal can enable the second data transmission channel, with make the second terminal by the second data transmission channel continue to send according to the order of sequence preset send store in buffering area packet.
Step S411: first terminal generates the second acknowledge message according to the entire packet received.
Concrete, before triggering second terminal sends by the second data transmission channel continuation the packet preset and send and store in buffering area according to the order of sequence, first terminal can travel through the packet in reception buffer zone, generate the second acknowledge message according to the packet in reception buffer zone, the second acknowledge message comprises the numbering of the entire packet that first terminal receives.
Step S413: first terminal sends second by the second data transmission channel and confirms message to the second terminal.
Step S415: first terminal continues described data transmission procedure by the second data transmission channel.
Concrete, first terminal can trigger the second terminal by the second acknowledge message to be continued to send the packet being stored in and presetting and send in buffering area according to the order of sequence.First terminal can after often receiving a packet by the second data transmission channel, and this Packet Generation first according to receiving confirms message to the second terminal, and the first acknowledge message comprises the numbering of this packet.
Step S417: first terminal judges whether the first connection status communicated to connect reverts to effective connection status.
Concrete, when being received the packet that the second terminal sends by the second data transmission channel, first terminal can monitor the connection status of the first communication connection, judges whether the first communication connection reverts to effective connection status, if so, then performs step S419; If not, then step S415 is performed.
Step S419: first terminal recovers first data transmission passage, suspends ongoing described data transmission procedure.
Concrete, first communicates to connect the communication connection carrying out the first-selection of transfer of data that can be between first terminal and the second terminal.Connect compared to second communication, the first communication connection can provide higher message transmission rate.When the first communication connection reverts to effective connection status, first terminal recovers first data transmission passage by the first communication connection after recovery, suspend the described data transmission procedure carried out in the second data transmission channel, in order to continue the described data transmission procedure after suspending by the first data transmission passage after recovery.
Step S421: first terminal generates the 3rd acknowledge message according to the packet received.
Concrete, before by the continuation of first data transmission passage, the packet sending and store in buffering area is preset in transmission to triggering second terminal according to the order of sequence, first terminal can travel through the packet in reception buffer zone, generates the 3rd acknowledge message according to the packet in reception buffer zone.3rd acknowledge message can comprise the numbering of the entire packet that first terminal receives.
Step S423: first terminal sends the 3rd by the first data transmission passage after recovery and confirms message to the second terminal.
Step S425: first terminal performs the described data transmission procedure after suspending by the first data transmission passage after recovery.
Concrete, after transmission the 3rd confirms message to the second terminal, first terminal can trigger the second terminal to be continued by first data transmission passage to send the packet remaining in and preset and send in buffering area according to the order of sequence.
Implement the embodiment of the present invention, after data transmission channel between first terminal and the second terminal experiences accidental interruption and again recovers, first terminal can send the reception condition of the packet of first terminal before accidental interruption to the second terminal, default transmission buffering area is refreshed according to this reception condition to make the second terminal, and trigger the second terminal and continue to send according to the order of sequence to remain in by the data transmission channel after recovering and preset the packet sent in buffering area, the continuity of Packet Generation can be realized.
See Fig. 6, be the structural representation of the first embodiment of terminal provided by the invention, terminal 60 as shown in Figure 6 can comprise: input unit 601, the first transmission unit 603 and the second transmission unit 605.Wherein:
Input unit 601, for receiving the first instruction, the first instruction is used for the data transmission procedure between triggering terminal 60 and the second terminal.
First transmission unit 603, communicates to connect for utilizing between terminal 60 and the second terminal first and sets up first data transmission passage, by first data transmission passage performing data transmission process.
Second transmission unit 605, for judging whether data transmission procedure interrupts, if so, then starts the second data transmission channel, continues data transmission procedure by the second data transmission channel; Second data transmission channel is the data transmission channel that the second communication by setting up between terminal 60 and the second terminal is connected to form.
In the embodiment of the present invention, first communicates to connect the communication connection carrying out the first-selection of transfer of data that can be between terminal 60 and the second terminal.Connect compared to second communication, the first communication connection can provide higher message transmission rate.
See Fig. 7, be the structural representation of the second embodiment of terminal provided by the invention, terminal 60 as shown in Figure 7 comprises: input unit 601, outside the first transmission unit 603 and the second transmission unit 605, can also comprise: pretreatment unit 607.Wherein:
Pretreatment unit 607, for starting the second data transmission channel at the second transmission unit 605, before continuing data transmission procedure by the second data transmission channel, judge whether terminal 60 is in same local area network (LAN) with the second terminal, if, then set up wireless communication with the second terminal to be connected, utilize wireless communication connection establishment second data transmission channel.
In the embodiment of the present invention, the first communication connection can be data wire and connects, and second communication connection can be wireless communication and connects, such as Wi-Fi.
See Fig. 8, be the structural representation of the 3rd embodiment of terminal provided by the invention, terminal 60 as shown in Figure 8 comprises: input unit 601, outside the first transmission unit 603 and the second transmission unit 605, can also comprise: monitoring means 609.Wherein:
Monitoring means 609, for continuing in data transmission procedure at the second transmission unit 605 by the second data transmission channel, the connection status of monitoring first communication connection, judges whether the first connection status communicated to connect reverts to effective connection status; If so, then recover first data transmission passage, suspend ongoing data transmission procedure, perform the data transmission procedure after suspending by the first data transmission passage after recovering.
See Fig. 9, it is the structural representation of the 4th embodiment of terminal provided by the invention, terminal 60 as shown in Figure 9 comprises: input unit 601, first transmission unit 603, outside second transmission unit 605 and monitoring means 609, can also comprise: pre-transmitting element 611, first refresh unit 613 and the second refresh unit 615.Wherein:
Pre-transmitting element 611, before passing through first data transmission passage performing data transmission process at the first transmission unit 603, by target data packet numbering, and is stored in default transmission buffering area by the packet after packet numbering;
First refresh unit 613, after starting the second data transmission channel at the second transmission unit 605, before continuing data transmission procedure by the second data transmission channel, the second acknowledge message of the second terminal transmission is received by the second data transmission channel, and according to the second acknowledge message, the second terminal is received and the packet be present in pre-set buffer district delete from pre-set buffer district.Second acknowledge message is that the second terminal is had no progeny the acknowledge message sent in data transmission procedure, is used to indicate the second terminal packet that whole terminals 60 of receiving send before data transmission procedure interrupts.
Second refresh unit 615, for recovering first data transmission passage at monitoring means 609, after suspending ongoing data transmission procedure, before performing the data transmission procedure after suspending by the first data transmission passage after recovery, by the 3rd acknowledge message that first data transmission channel reception second terminal after recovering sends, and according to the 3rd acknowledge message, the second terminal is received and the packet be present in pre-set buffer district delete from pre-set buffer district.3rd acknowledge message is the acknowledge message that the second terminal sends after data transmission procedure suspends, and is used to indicate the packet of terminal 60 transmission that the second terminal receives before data transmission procedure suspends.
In the embodiment of the present invention, the first transmission unit 603 can be specifically for: send packet to the second terminal after packet numbering according to the order of sequence; Receive the first acknowledge message that the second terminal sends; According to the first acknowledge message, the packet the second terminal received is deleted from pre-set buffer district.First acknowledge message is the acknowledge message that the second terminal sends in data transmission procedure, is used to indicate the packet of terminal 60 transmission that the second terminal receives.
See Figure 10, it is the structural representation of the 5th embodiment of terminal provided by the invention, terminal 60 as shown in Figure 10 comprises: input unit 601, first transmission unit 603, outside second transmission unit 605 and monitoring means 609, can also comprise: pre-transmitting element 611, first refresh unit 613 and the second refresh unit 615.Wherein:
First feedback unit 617, after starting the second data transmission channel at the second transmission unit 605, before continuing data transmission procedure, generates the second acknowledge message according to the entire packet received by the second data transmission channel.Second acknowledge message comprises the numbering of the entire packet received; Send second by the second data transmission channel and confirm message to the second terminal.
Second feedback unit 619, for recovering first data transmission passage at monitoring means 609, after suspending ongoing data transmission procedure, before performing the data transmission procedure after suspending by the first data transmission passage after recovery, generate the 3rd acknowledge message according to the packet received, and confirm message to the second terminal by the first data transmission passage transmission the 3rd after recovering.3rd acknowledge message comprises the numbering of the packet received;
In the embodiment of the present invention, the first transmission unit 603 can be specifically for: receive the packet that the second terminal sends, packet is the packet generated after the second terminal carries out packet numbering to target data; Confirm message to the second terminal according to the Packet Generation received first, the first acknowledge message comprises the numbering of packet.
See Figure 11, it is the structural representation of the 6th embodiment of terminal provided by the invention.Wherein, as shown in figure 11, this terminal 110 can comprise: at least one processor 1101, such as CPU, at least one bus 1102, at least one USB (universal serial bus) (USB interface) 1103, at least one network interface: network interface 1104, memory 1105, at least one input unit 1106, at least one output device 1107.Wherein, bus 1102 is for realizing the communication connection between these assemblies; Network interface 1104 optionally can comprise wireline interface, the wave point (as WI-FI interface) of standard; Memory 1105 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as at least one magnetic disc store, memory 1105 can also be optionally that at least one is positioned at the storage device away from aforementioned processor 1101; Input unit 1106 can comprise touch-screen (Touch Screen), and optional input unit 1106 can also comprise keyboard (Keyboard), or other physical buttons, such as, and volume key; Output device 1107 can comprise display screen (Display).As shown in figure 11, operating system, network communication module, Subscriber Interface Module SIM and data distributing program can be comprised as in a kind of memory 1105 of computer-readable storage medium.
In the terminal 110 shown in Figure 11, processor 1101 may be used for calling the data distributing program stored in memory 1105, and performs following operation:
Receive the first instruction by input unit 1106, the first instruction is used for the data transmission procedure between triggering terminal 110 and the second terminal;
Communicated to connect by first between USB (universal serial bus) 1103 and the second terminal and set up first data transmission passage, by first data transmission passage performing data transmission process;
Judge whether data transmission procedure interrupts, if so, then start the second data transmission channel, continue data transmission procedure by the second data transmission channel.Second data transmission channel is the data transmission channel that the second communication by setting up between network interface 1104 and the second terminal is connected to form.
Further, at startup second data transmission channel, before continuing data transmission procedure by the second data transmission channel, processor 1101 can also judge whether to be in same local area network (LAN) with the second terminal, if, then set up wireless communication with the second terminal to be connected, utilize wireless communication connection establishment second data transmission channel.
Further, continuing in data transmission procedure by the second data transmission channel, processor 1101 can also monitor the connection status of the first communication connection by USB (universal serial bus) 1103, and can judge whether the connection status of the first communication connection reverts to effective connection status; If so, then recover first data transmission passage, suspend ongoing data transmission procedure, perform the data transmission procedure after suspending by the first data transmission passage after recovering.
In the embodiment of the present invention, terminal 110 can be the transmit leg of data transmission procedure, sends target data to the second terminal.
In specific implementation, before passing through first data transmission passage performing data transmission process, the packet after packet numbering by target data packet numbering, and can also be stored in default transmission buffering area by processor 1101.Processor 1101 can send packet to the second terminal after packet numbering according to the order of sequence by USB (universal serial bus) 1103.Processor 1101 can receive the first acknowledge message of the second terminal transmission by USB (universal serial bus) 1103.Processor 1101 can according to the first acknowledge message, and the packet the second terminal received is deleted from pre-set buffer district.First acknowledge message is the acknowledge message that the second terminal sends in data transmission procedure, is used to indicate the packet of the first terminal transmission that the second terminal receives.
Further, after startup second data transmission channel, before continuing data transmission procedure by the second data transmission channel, processor 1101 can also receive the second acknowledge message of the second terminal transmission by the second data transmission channel.Processor 1101 can according to the second acknowledge message, the second terminal is received and the packet be present in pre-set buffer district delete from pre-set buffer district.Second acknowledge message is that the second terminal is had no progeny the acknowledge message sent in data transmission procedure, is used to indicate the packet that whole first terminals that the second terminal receives before data transmission procedure interrupts send.
Further, at recovery first data transmission passage, after suspending ongoing data transmission procedure, before performing the data transmission procedure after suspending by the first data transmission passage after recovery, processor 1101 can also pass through the 3rd acknowledge message of the first data transmission channel reception second terminal transmission after recovering.Processor 1101 can according to the 3rd acknowledge message, the second terminal is received and the packet be present in pre-set buffer district delete from pre-set buffer district.3rd acknowledge message is the acknowledge message that the second terminal sends after data transmission procedure suspends, and is used to indicate the packet of the first terminal transmission that the second terminal receives before data transmission procedure suspends.
In the embodiment of the present invention, terminal 110 can be the recipient of data transmission procedure, receives the target data that the second terminal sends.
In specific implementation, processor 1101 can receive the packet of the second terminal transmission by USB (universal serial bus) 1103.Processor 1101 can confirm message to the second terminal according to the Packet Generation received first.First acknowledge message comprises the numbering of packet.Packet is the packet generated after the second terminal carries out packet numbering to target data.
Further, after startup second data transmission channel, before continuing data transmission procedure by the second data transmission channel, processor 1101 can also generate the second acknowledge message according to the entire packet received.Processor 1101 can send second by USB (universal serial bus) 1,103 second data transmission channel and confirm message to the second terminal.Second acknowledge message comprises the numbering of the entire packet received.
Further, at recovery first data transmission passage, after suspending ongoing data transmission procedure, before performing the data transmission procedure after suspending by the first data transmission passage after recovery, processor 1101 can also generate the 3rd acknowledge message according to the packet received.Processor 1101 can send the 3rd by the first data transmission passage after recovery and confirm message to the second terminal.3rd acknowledge message comprises the numbering of the packet received.
It should be noted that, the step that processor 1101 performs with reference to the specific implementation in above-mentioned Fig. 1 to Fig. 4 embodiment of the method, can repeat no more here.
In sum, implement the embodiment of the present invention, first data transmission passage is set up by the first communication connection between first terminal and the second terminal, transfer of data is carried out by first data transmission passage, when data transmission procedure interrupts, second data transmission channel that can be connected to form by the second communication between first terminal and the second terminal continues described data transmission procedure, can realize the continuity of transfer of data.
Module in all embodiments of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application SpecificIntegrated Circuit, application-specific integrated circuit (ASIC)).
The sequence of steps of the method for the embodiment of the present invention can carry out adjusting, merge or deleting according to actual needs.The module of the terminal of the embodiment of the present invention can carry out integrating according to actual needs, Further Division or delete.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a terminal, is characterized in that, comprising:
Input unit, for receiving the first instruction, described first instruction is for triggering the data transmission procedure between described first terminal and the second terminal;
First transmission unit, communicates to connect for utilizing between described first terminal and described second terminal first and sets up first data transmission passage, perform described data transmission procedure by described first data transmission passage; Second transmission unit, for judging whether described data transmission procedure interrupts, if so, then starts the second data transmission channel, continues described data transmission procedure by described second data transmission channel; Described second data transmission channel is the data transmission channel that the described second communication by setting up between described first terminal and described second terminal is connected to form.
2. terminal as claimed in claim 1, is characterized in that, described first communication connection is data wire connection, and it is that wireless communication connects that described second communication connects.
3. terminal as claimed in claim 2, is characterized in that, also comprise: pretreatment unit, for starting the second data transmission channel at described second transmission unit, before continuing described data transmission procedure by described second data transmission channel,
Judge whether described first terminal is in same local area network (LAN) with described second terminal, if so, then sets up described wireless communication with described second terminal and is connected, utilize the second data transmission channel described in described wireless communication connection establishment.
4. terminal as claimed in claim 1, it is characterized in that, also comprise: monitoring means, for continuing in described data transmission procedure at described second transmission unit by described second data transmission channel, monitor the connection status of described first communication connection, judge whether the connection status of described first communication connection reverts to effective connection status; If so, then recover described first data transmission passage, suspend ongoing described data transmission procedure, perform the described data transmission procedure after suspending by the described first data transmission passage after recovering.
5. terminal as claimed in claim 1, is characterized in that, also comprise:
Pre-transmitting element, before performing described data transmission procedure at described first transmission unit by described first data transmission passage, by described target data packet numbering, and is stored in default transmission buffering area by the packet after packet numbering;
Described first transmission unit specifically for: send the described packet after described packet numbering according to the order of sequence to described second terminal; Receive the first acknowledge message that described second terminal sends, described first acknowledge message is the acknowledge message that described second terminal sends in described data transmission procedure, is used to indicate the packet of the described first terminal transmission that described second terminal receives; According to described first acknowledge message, the packet described second terminal received is deleted from described pre-set buffer district.
6. terminal as claimed in claim 1, is characterized in that, described first transmission unit specifically for: receive the packet that described second terminal sends, described packet is the packet generated after described second terminal carries out packet numbering to described target data; Described Packet Generation first according to receiving confirms message to described second terminal, and described first acknowledge message comprises the numbering of described packet.
7. terminal as claimed in claim 5, is characterized in that, also comprise: the first refresh unit, after starting the second data transmission channel at described second transmission unit, before continuing described data transmission procedure by described second data transmission channel,
The second acknowledge message of described second terminal transmission is received by described second data transmission channel, described second acknowledge message is that described second terminal is had no progeny the acknowledge message sent in described data transmission procedure, is used to indicate the packet that whole described first terminal that described second terminal receives before described data transmission procedure interrupts sends; According to described second acknowledge message, described second terminal is received and the packet be present in described pre-set buffer district delete from described pre-set buffer district.
8. terminal as claimed in claim 6, is characterized in that, also comprise: the first feedback unit, after starting the second data transmission channel at described second transmission unit, before continuing described data transmission procedure by described second data transmission channel,
The second acknowledge message is generated, the numbering of the entire packet received described in described second acknowledge message comprises according to the entire packet received; Send described second by described second data transmission channel and confirm message to described second terminal.
9. terminal as claimed in claim 4, it is characterized in that, also comprise: the second refresh unit, for recovering described first data transmission passage at described monitoring means, after suspending ongoing described data transmission procedure, before performing the described data transmission procedure after suspending by the described first data transmission passage after recovery
By the 3rd acknowledge message that the second terminal described in the described first data transmission channel reception after recovery sends, described 3rd acknowledge message is the acknowledge message that described second terminal sends after described data transmission procedure suspends, and is used to indicate the packet of the described first terminal transmission that described second terminal receives before described data transmission procedure suspends; According to described 3rd acknowledge message, described second terminal is received and the packet be present in described pre-set buffer district delete from described pre-set buffer district.
10. terminal as claimed in claim 4, it is characterized in that, also comprise: the second feedback unit, for recovering described first data transmission passage at described monitoring means, after suspending ongoing described data transmission procedure, before performing the described data transmission procedure after suspending by the described first data transmission passage after recovery
The 3rd acknowledge message is generated, the numbering of the packet received described in described 3rd acknowledge message comprises according to the packet received; Described second terminal is confirmed message to by the described first data transmission passage transmission the described 3rd after recovering.
CN201510152882.8A 2015-04-01 2015-04-01 Terminal Pending CN104836650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510152882.8A CN104836650A (en) 2015-04-01 2015-04-01 Terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510152882.8A CN104836650A (en) 2015-04-01 2015-04-01 Terminal

Publications (1)

Publication Number Publication Date
CN104836650A true CN104836650A (en) 2015-08-12

Family

ID=53814309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510152882.8A Pending CN104836650A (en) 2015-04-01 2015-04-01 Terminal

Country Status (1)

Country Link
CN (1) CN104836650A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511606A (en) * 2015-11-27 2016-04-20 深圳还是威健康科技有限公司 Data transmission method and device
CN106572498A (en) * 2016-10-27 2017-04-19 东软集团股份有限公司 Data transmission method, device and system
WO2021082911A1 (en) * 2019-10-30 2021-05-06 华为技术有限公司 Content transmission method and terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716946A (en) * 2004-06-30 2006-01-04 联想(北京)有限公司 Data transmission method between equipment in network
CN104066201A (en) * 2013-03-22 2014-09-24 联想(北京)有限公司 Data transmission method, device and electronic equipment
CN104125654A (en) * 2013-04-23 2014-10-29 腾讯科技(深圳)有限公司 Data transmission method and devices for wifi network and terminal devices
CN104135341A (en) * 2014-07-31 2014-11-05 广州金山网络科技有限公司 Data communication method, data communication device and data communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716946A (en) * 2004-06-30 2006-01-04 联想(北京)有限公司 Data transmission method between equipment in network
CN104066201A (en) * 2013-03-22 2014-09-24 联想(北京)有限公司 Data transmission method, device and electronic equipment
CN104125654A (en) * 2013-04-23 2014-10-29 腾讯科技(深圳)有限公司 Data transmission method and devices for wifi network and terminal devices
CN104135341A (en) * 2014-07-31 2014-11-05 广州金山网络科技有限公司 Data communication method, data communication device and data communication system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511606A (en) * 2015-11-27 2016-04-20 深圳还是威健康科技有限公司 Data transmission method and device
CN105511606B (en) * 2015-11-27 2018-12-07 深圳还是威健康科技有限公司 Data transmission method and device
CN106572498A (en) * 2016-10-27 2017-04-19 东软集团股份有限公司 Data transmission method, device and system
WO2021082911A1 (en) * 2019-10-30 2021-05-06 华为技术有限公司 Content transmission method and terminal device
US11893302B2 (en) 2019-10-30 2024-02-06 Huawei Technologies Co., Ltd. Content transmission method and terminal device

Similar Documents

Publication Publication Date Title
CN104834617A (en) Data transmission method
US11917479B2 (en) Information processing apparatus, communication terminal, and non-transitory storage medium storing instructions executable by information processing apparatus
EP3258737B1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
CN101237256B (en) Electronic device and NFC-control method based on other electronic device
JP2014529210A (en) Electronic device and method of operating electronic device
EP3091814B1 (en) Method for establishing communication connection and medium device
CN104869043A (en) Method for establishing VPN (Virtual Private Network) connection and terminal
EP3163764A1 (en) Mobile payment method and apparatus as well as near field communication device
US20220124192A1 (en) Communication System Selection
CN104836650A (en) Terminal
CN111625371A (en) Text transmission method, device, PC (personal computer) terminal, mobile terminal and system
CN111263467B (en) Wireless connection switching method, wireless terminal and system thereof
JP2015012443A (en) Information processing terminal and radio connection control program
CN106793063A (en) The control method and device of data attachment
CN111741453A (en) Bluetooth data encapsulation communication method and device
JP5455399B2 (en) COMMUNICATION DEVICE, COMMUNICATION PROCESSING METHOD, AND PROGRAM
JP2016506103A5 (en)
US20140038548A1 (en) Information processing apparatus and information processing method
CN106060959B (en) Method and device for preventing network connection message from being retransmitted and android system
CN108307522B (en) Method and device for processing radio bearer, terminal and base station
CN110572440B (en) Method and device for data transmission, household appliance and storage medium
CN108650664B (en) Bluetooth connection control method, terminal and Bluetooth SIM card
CN103500064A (en) File transmission method and terminal equipment
CN102572099A (en) Status query time interval determination method, device and system for mobile terminal
CN106412218B (en) Mobile terminal, subscriber identity module card access device, control method thereof and communication system

Legal Events

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

Application publication date: 20150812

RJ01 Rejection of invention patent application after publication