WO2018049913A1 - Data transmission method and related devices - Google Patents

Data transmission method and related devices Download PDF

Info

Publication number
WO2018049913A1
WO2018049913A1 PCT/CN2017/093467 CN2017093467W WO2018049913A1 WO 2018049913 A1 WO2018049913 A1 WO 2018049913A1 CN 2017093467 W CN2017093467 W CN 2017093467W WO 2018049913 A1 WO2018049913 A1 WO 2018049913A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target
mobile terminal
unit
transmitted
Prior art date
Application number
PCT/CN2017/093467
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 广东欧珀移动通信有限公司
Publication of WO2018049913A1 publication Critical patent/WO2018049913A1/en

Links

Images

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/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading

Definitions

  • the present application relates to the field of mobile terminal technologies, and in particular, to a data transmission method and related devices.
  • the embodiment of the present application provides a data transmission method and related equipment, which can improve data transmission efficiency.
  • a first aspect of the embodiments of the present application provides a data transmission method, including:
  • the target data is split into a plurality of data units
  • a second aspect of the embodiments of the present application provides a mobile terminal, including: a processing unit and a communication unit,
  • the processing unit is configured to split the target data into a plurality of data units when detecting a transfer operation instruction for target data in the mobile terminal; and to transmit the target data to the target terminal device by using the communication unit Denoting a plurality of data units; and for marking any of the plurality of data units as being transmitted as being successfully transmitted; and for detecting the mobile terminal and the target Whether the terminal device disconnects the communication connection; and for recording, when the mobile terminal disconnects the communication connection from the target terminal device, the data unit that has not been transmitted and failed in the target data, and the untransmitted and transmitted The failed data unit is marked as untransmitted; and is configured to transmit, by the communication unit, a data unit marked as untransmitted in the target data to the mobile terminal when the communication connection is resumed with the target terminal device Target terminal.
  • a third aspect of the embodiments of the present application provides a data transmission apparatus, including:
  • processor a memory, a communication interface, the processor being coupled to the memory and the communication interface;
  • the memory stores executable program code for wireless communication
  • the processor is configured to invoke the executable program code in the memory to perform the method provided by the first aspect of the embodiments of the present application.
  • a fourth aspect of the embodiments of the present application provides a computer storage medium, where the computer storage medium stores a program, and the program includes the method provided by the first aspect of the embodiment of the present application.
  • Figure 1.1 is a schematic diagram of a setting process interface of a "mobile phone moving function" in the prior scheme
  • Figure 1.2 is a schematic diagram of a setting process interface of a "mobile phone moving function" in the prior art
  • FIG. 1.3 is a schematic diagram of a setting process interface of a “mobile phone moving function” in the existing solution
  • FIG. 2 is a schematic flowchart of a data transmission method disclosed in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another data transmission method disclosed in an embodiment of the present application.
  • 4A is a structural block diagram of a functional unit of a mobile terminal disclosed in an embodiment of the present application.
  • 4B is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the data migration scheme in the prior art is as shown in FIG. 1.1 to FIG. 1.3, taking the mobile phone moving function as an example.
  • the application corresponding to the function needs to be opened (Application Programe) , APP), specifically open the tool on two mobile phones - backup and recovery, click the "mobile phone moving" virtual function button, as shown in Figure 1.1, select "I am the old phone” on the old phone (such as R7PLUS), On the new mobile phone (such as R9PLUS), select “I am a new mobile phone”.
  • the old mobile phone automatically retrieves the camera function and enters the scanning QR code interface.
  • the new mobile phone automatically displays the QR code.
  • the scanning is successful.
  • the connection is successful on the new phone.
  • the old mobile phone enters the “Select Data Transfer” interface (data to be migrated to the new mobile phone).
  • the system data, application level and storage data are automatically checked (the storage data is part of the default selection, Manually select Add). Click the button "Start moving" to start data moving.
  • the mobile terminal involved in the embodiments of the present application may include various handheld devices, wireless devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices.
  • UE User Equipment
  • MS mobile station
  • terminal device terminal device, and the like.
  • the devices mentioned above are collectively referred to as mobile terminals.
  • FIG. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application. As shown in FIG. 2, the data transmission method includes the following steps.
  • the mobile terminal splits the target data into multiple data units when detecting a transfer operation instruction for the target data in the mobile terminal.
  • the transmission operation instruction may be triggered by a selection operation of a transmission operation function button displayed for the mobile terminal, and the selection operation may be triggered by a user.
  • the selection operation may be a touch operation, a voice control operation, or the like.
  • the target data may be preset type data that needs to be transmitted in the mobile terminal, and the preset type may be preset by the user.
  • the target data may be short message data, contact data, WeChat chat data, QQ chat data, user name and password data of some applications or websites, and the target data may also be image data in the mobile phone. , audio data, video data, document data, etc.
  • the target data can be split into multiple data units.
  • the number of bytes of each data unit can be equal or different.
  • the data unit can be a fixed-size data packet, and the data packet can be It includes attribute information such as source IP address, destination IP address, and data length.
  • attribute information such as source IP address, destination IP address, and data length.
  • the size of a data unit is hundreds of bytes.
  • the target data can be split into a plurality of data units, and each data unit is transmitted much faster than the target data.
  • the mobile terminal transmits a plurality of data units to the target terminal device.
  • the user enters an application on the mobile phone A (for example, “mobile phone moving”), and clicks “start moving” in the application ( That is, the data transmission instruction in step S204, the mobile phone A starts transmitting a plurality of data units to the mobile phone B.
  • an application on the mobile phone A for example, “mobile phone moving”
  • start moving the application on the mobile phone A
  • the mobile phone A starts transmitting a plurality of data units to the mobile phone B.
  • step S202 may include:
  • the mobile terminal transmits a plurality of data units to the target terminal device in a multi-threaded manner.
  • the mobile terminal can open multiple threads and can simultaneously transmit multiple data units on multiple threads. For example, if the mobile terminal turns on N threads, the mobile terminal can simultaneously transmit N data units, where N is positive. Integer. By implementing the embodiments of the present application, multiple data units can be transmitted at the same time, which is compared with the single thread first, and the data transmission efficiency can be further improved.
  • step S202 after performing step S202, the following steps may also be performed:
  • the mobile terminal detects whether any one of the plurality of data units is damaged during the transmission
  • the mobile terminal marks any data unit as untransmitted.
  • the data unit when a data unit of the plurality of data units is damaged during the transmission, the data unit is marked as not transmitted for subsequent retransmission.
  • the mobile terminal marks any data unit as being transmitted.
  • the data unit is marked as transmitted, avoiding repeated transmission of the data unit.
  • step S204 The mobile terminal detects whether the mobile terminal disconnects the communication connection with the target terminal device. If yes, step S205 is performed, and if no, step S207 is performed.
  • the communication connection between the mobile terminal and the target terminal device may be a wired connection (eg, a data line connection) or a wireless connection (eg, one or a combination of a Bluetooth connection, a WiFi connection, an NFC connection).
  • a wired connection eg, a data line connection
  • a wireless connection eg, one or a combination of a Bluetooth connection, a WiFi connection, an NFC connection.
  • the mobile terminal records, in the target data, the data unit that fails to transmit and transmit, and marks the data unit that has not been transmitted and failed to be transmitted as untransmitted.
  • the data unit that fails to transmit may suddenly disconnect when the mobile terminal is transmitting the data unit, causing the data unit to fail to transmit.
  • the mobile terminal transmits a data unit to the target terminal device if the target terminal device receives the data unit, it returns an acknowledgement message, and after receiving the acknowledgement message, the mobile terminal marks the data unit as having been Transmission, if the mobile terminal does not receive the acknowledgment message, the data unit is marked as not transmitted.
  • the mobile terminal When the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal transmits the data unit marked as untransmitted in the target data to the target terminal.
  • the mobile terminal When the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal transmits the data unit marked as untransmitted in the target data to the target terminal, and the target data is all transmitted to the target terminal. Compared with the prior art, the data transmission efficiency can be improved without retransmitting the entire target data.
  • the transmitting, by the mobile terminal, the data unit marked as untransmitted in the target data to the target terminal in the step S206 may include:
  • the mobile terminal outputs prompt information for prompting the user to retransmit the target data
  • the mobile terminal When receiving the retransmission operation instruction for the target data, the mobile terminal transmits the data unit marked as untransferred in the target data to the target terminal.
  • the mobile terminal After the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal outputs prompt information for prompting the user to retransmit the target data, and the user may determine whether to perform retransmission according to the prompt information, and if the user does not want to retransmit, the user clicks to cancel the retransmission. If the user determines to retransmit, the user may input a retransmission operation instruction, and when the mobile terminal receives the retransmission operation instruction for the target data, the data unit marked as untransmitted in the target data is transmitted to the target terminal.
  • the embodiment of the present application can decide whether to perform retransmission according to user requirements.
  • the mobile terminal continues to transmit the target data.
  • each data unit is much smaller in size than the target data, and when transmitting a plurality of data units, a single data unit is easier than the target data. Transmitting, and when the mobile terminal disconnects the communication connection with the target terminal device, recording the untransmitted data unit, so as to directly transmit the untransmitted data unit after subsequently recovering the communication connection, and transmitting a large target data in the prior art Compared, it can improve data transmission efficiency.
  • FIG. 3 is a schematic flowchart of another data transmission method disclosed in the embodiment of the present application. As shown in FIG. 3, the data transmission method includes the following steps.
  • the mobile terminal splits the target data into a plurality of data units when detecting a transfer operation instruction for the target data in the mobile terminal.
  • the mobile terminal transmits a plurality of data units to the target terminal device.
  • step S304 The mobile terminal detects whether the mobile terminal disconnects the communication connection with the target terminal device. If yes, step S305 is performed, and if no, step S307 is performed.
  • the mobile terminal records, in the target data, the data unit that fails to transmit and transmit, and marks the data unit that has not been transmitted and failed to be transmitted as untransmitted.
  • the mobile terminal When the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal transmits the data unit marked as untransmitted in the target data to the target terminal.
  • the mobile terminal continues to transmit the target data.
  • step S301 to the step S307 in the embodiment of the present application reference may be made to the step S201 to the step S207 shown in FIG.
  • the mobile terminal After all the data units are successfully transmitted, the mobile terminal outputs a notification message that the data completes the transmission, and deletes the plurality of data units stored by the mobile terminal.
  • the target terminal device After all the data units are successfully transmitted, the target terminal device returns an acknowledgement message of successful transmission, and after receiving the confirmation message that the transmission is successful, the mobile terminal outputs a notification message that the data is completed to notify the user of the target data (ie, the plurality of The data unit is transferred.
  • the mobile terminal After the mobile terminal successfully transmits the plurality of data units, in order to save the storage space of the mobile terminal, the mobile terminal deletes the plurality of data units stored by the mobile terminal.
  • the user may decide whether to delete, for example, outputting, at the display interface of the mobile terminal, whether to delete the prompt information of the multiple data units for the user to select.
  • the mobile terminal includes corresponding hardware for executing each function.
  • Structure and / or software modules are arranged in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for each particular application to implement the described functionality, but such implementation should not be considered to be beyond the scope of the application.
  • the embodiment of the present application may divide the functional unit into the mobile terminal according to the foregoing method example.
  • each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner.
  • FIG. 4A shows a possible structural diagram of the data transmission apparatus involved in the above embodiment.
  • the data transmission device 400 includes a processing unit 402 and a communication unit 403.
  • the processing unit 402 is configured to control and manage the actions of the data transmission device.
  • the processing unit 402 is configured to support the data transmission device to perform steps S201 to S207 in FIG. 2 and steps S301 to S308 in FIG. 3 and/or for use in this document.
  • Communication unit 403 is used to support communication of data transmission devices with other devices, such as with base stations in a mobile communication network.
  • the data transmission device may further include a storage unit 401 for storing program codes and data of the data transmission device.
  • the processing unit 402 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication unit 403 can be a communication interface, a transceiver, a transceiver circuit, etc., wherein the communication interface is a collective name and can include one or more interfaces.
  • the storage unit 401 can be a memory.
  • the data transmission device may be the data transmission device shown in FIG. 4B.
  • the data transmission device 410 includes a processor 412, a communication interface 413, and a memory 411.
  • the data transmission device 410 may further include a bus 414.
  • the communication interface 413, the processor 412, and the memory 411 may be connected to each other through a bus 414.
  • the bus 414 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (abbreviated). EISA) bus and so on.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus 414 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 4B, but it does not mean that there is only one bus or one type of bus.
  • the data transmission device shown in FIG. 4A or FIG. 4B can also be understood as a device for the data transmission device.
  • the embodiment of the present application is not limited.
  • the embodiment of the present application further provides another mobile terminal.
  • the mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the mobile terminal is used as a mobile phone as an example:
  • FIG. 5 is a block diagram showing a partial structure of a mobile phone related to the mobile terminal disclosed in the embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor 980. And power supply 990 and other components.
  • RF radio frequency
  • the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global Mobile Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), etc.
  • GSM Global Mobile Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (detecting whether the mobile terminal disconnects the communication connection with the target terminal device), and the like; and storing the data area Data (such as multiple data units) created based on the use of the mobile phone can be stored.
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 can include a fingerprint identification module 931 and other input devices 932.
  • the fingerprint identification module 931 can collect fingerprint data of the user.
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 940 can include a display screen 941.
  • the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the fingerprint recognition module 931 and the display screen 941 are used as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be Integrated to achieve the input and playback functions of the phone.
  • the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light The sensor can adjust the brightness of the display 941 according to the brightness of the ambient light, and the proximity sensor can turn off the display 941 and/or the backlight when the phone moves to the ear.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961 for conversion to the sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal by the audio circuit 960. After receiving, it is converted into audio data, and then processed by the audio data playback processor 980, sent to the other mobile phone via the RF circuit 910, or played back to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 5 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • the handset also includes a power source 990 (such as a battery) that supplies power to the various components.
  • a power source 990 such as a battery
  • the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow can be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes some or all of the steps of any one of the data transmission methods described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory.
  • a computer readable memory A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a data transmission method and related devices. The method comprises: splitting target data into a plurality of data units when a transmission operation instruction for the target data in a mobile terminal is detected; transmitting the plurality of data units to a target terminal device; when any of the plurality of data units is transmitted successfully, marking the data unit as "transmitted"; detecting whether a communication connection between the mobile terminal and the target terminal device is disrupted; if yes, recording data units which are not transmitted or fail to be transmitted in the target data, and marking the data units as "not transmitted"; and when the communication connection between the mobile terminal and the target terminal device restores, transmitting the data units marked as "not transmitted" in the target data to the target terminal. Embodiments of the present application can improve the data transmission efficiency.

Description

数据传输方法及相关设备Data transmission method and related equipment 技术领域Technical field
本申请涉及移动终端技术领域,具体涉及一种数据传输方法及相关设备。The present application relates to the field of mobile terminal technologies, and in particular, to a data transmission method and related devices.
背景技术Background technique
随着手机等移动终端的逐渐普及,移动终端内的私密数据(例如联系人、短信、聊天记录等数据)越来越多。当用户更换新的移动终端时,需要将旧的移动终端上的数据备份到新的移动终端上。将旧的移动终端上的数据备份到新的移动终端上时,首先将旧的移动终端上的数据备份到本地,然后将备份在本地的数据传输到新的移动终端,新的移动终端接收到数据后进行恢复。With the gradual popularization of mobile terminals such as mobile phones, private data (such as contacts, text messages, chat records, etc.) in mobile terminals is increasing. When the user replaces the new mobile terminal, the data on the old mobile terminal needs to be backed up to the new mobile terminal. When backing up the data on the old mobile terminal to the new mobile terminal, the data on the old mobile terminal is first backed up to the local, and then the data backed up locally is transmitted to the new mobile terminal, and the new mobile terminal receives the data. The data is recovered afterwards.
发明内容Summary of the invention
本申请实施例提供了一种数据传输方法及相关设备,可以提高数据传输效率。The embodiment of the present application provides a data transmission method and related equipment, which can improve data transmission efficiency.
本申请实施例第一方面提供一种数据传输方法,包括:A first aspect of the embodiments of the present application provides a data transmission method, including:
在检测到针对移动终端内的目标数据的传输操作指令时,将所述目标数据拆分成多个数据单元;When the transfer operation instruction for the target data in the mobile terminal is detected, the target data is split into a plurality of data units;
向目标终端设备传输所述多个数据单元;Transmitting the plurality of data units to the target terminal device;
当所述多个数据单元中的任一数据单元传输成功时,将所述任一数据单元标记为已传输;Marking any of the data units as transmitted when any of the plurality of data units is successfully transmitted;
检测所述移动终端与所述目标终端设备是否断开通信连接;Detecting whether the mobile terminal disconnects from the target terminal device;
若是,记录所述目标数据中未传输和传输失败的数据单元,将所述未传输和传输失败的数据单元标记为未传输;If yes, recording, in the target data, a data unit that has not been transmitted and failed to be transmitted, and marking the untransmitted and failed data unit as untransmitted;
当所述移动终端与所述目标终端设备恢复通信连接时,将所述目标数据中标记为未传输的数据单元传输至所述目标终端。And transmitting, when the mobile terminal resumes a communication connection with the target terminal device, the data unit marked as not transmitted in the target data to the target terminal.
本申请实施例第二方面提供一种移动终端,包括:处理单元和通信单元, A second aspect of the embodiments of the present application provides a mobile terminal, including: a processing unit and a communication unit,
所述处理单元,用于在检测到针对移动终端内的目标数据的传输操作指令时,将所述目标数据拆分成多个数据单元;以及用于通过所述通信单元向目标终端设备传输所述多个数据单元;以及用于当所述多个数据单元中的任一数据单元传输成功时,将所述任一数据单元标记为已传输;以及用于检测所述移动终端与所述目标终端设备是否断开通信连接;以及用于当所述移动终端与所述目标终端设备断开通信连接时,记录所述目标数据中未传输和传输失败的数据单元,将所述未传输和传输失败的数据单元标记为未传输;以及用于当所述移动终端与所述目标终端设备恢复通信连接时,通过所述通信单元将所述目标数据中标记为未传输的数据单元传输至所述目标终端。The processing unit is configured to split the target data into a plurality of data units when detecting a transfer operation instruction for target data in the mobile terminal; and to transmit the target data to the target terminal device by using the communication unit Denoting a plurality of data units; and for marking any of the plurality of data units as being transmitted as being successfully transmitted; and for detecting the mobile terminal and the target Whether the terminal device disconnects the communication connection; and for recording, when the mobile terminal disconnects the communication connection from the target terminal device, the data unit that has not been transmitted and failed in the target data, and the untransmitted and transmitted The failed data unit is marked as untransmitted; and is configured to transmit, by the communication unit, a data unit marked as untransmitted in the target data to the mobile terminal when the communication connection is resumed with the target terminal device Target terminal.
本申请实施例第三方面提供一种数据传输装置,包括:A third aspect of the embodiments of the present application provides a data transmission apparatus, including:
处理器、存储器、通信接口,所述处理器与所述存储器和所述通信接口连接;a processor, a memory, a communication interface, the processor being coupled to the memory and the communication interface;
所述存储器存储有可执行程序代码,所述通信接口用于无线通信;The memory stores executable program code for wireless communication;
所述处理器用于调用所述存储器中的所述可执行程序代码,执行本申请实施例第一方面提供的方法。The processor is configured to invoke the executable program code in the memory to perform the method provided by the first aspect of the embodiments of the present application.
本申请实施例第四方面提供一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时包括如本申请实施例第一方面提供的方法。A fourth aspect of the embodiments of the present application provides a computer storage medium, where the computer storage medium stores a program, and the program includes the method provided by the first aspect of the embodiment of the present application.
附图说明DRAWINGS
下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。BRIEF DESCRIPTION OF THE DRAWINGS The drawings to be used in the embodiments or the description of the prior art will be briefly described below.
图1.1是现有方案中一种“手机搬家功能”的设置过程界面示意图;Figure 1.1 is a schematic diagram of a setting process interface of a "mobile phone moving function" in the prior scheme;
图1.2是现有方案中一种“手机搬家功能”的设置过程界面示意图;Figure 1.2 is a schematic diagram of a setting process interface of a "mobile phone moving function" in the prior art;
图1.3是现有方案中一种“手机搬家功能”的设置过程界面示意图;FIG. 1.3 is a schematic diagram of a setting process interface of a “mobile phone moving function” in the existing solution;
图2是本申请实施例公开的一种数据传输方法的流程示意图;2 is a schematic flowchart of a data transmission method disclosed in an embodiment of the present application;
图3是本申请实施例公开的另一种数据传输方法的流程示意图;3 is a schematic flowchart of another data transmission method disclosed in an embodiment of the present application;
图4A是本申请实施例公开的一种移动终端的功能单元组成框图;4A is a structural block diagram of a functional unit of a mobile terminal disclosed in an embodiment of the present application;
图4B是本申请实施例公开的一种移动终端的结构示意图;4B is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
图5是本申请实施例公开的另一种移动终端的结构示意图。 FIG. 5 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products, or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
整体而言,现有技术中的数据迁移方案如图1.1至图1.3所示的方案,以手机搬家功能为例,具体的,用户使用手机搬家功能时,需要打开对应功能的应用程序(Application Programe,APP),具体是在两台手机上打开工具-备份与恢复,点击“手机搬家”虚拟功能按钮,如图1.1所示,分别在旧手机(如R7PLUS)上选择“我是旧手机”,在新手机(如R9PLUS)上选择“我是新手机”,如图1.2左图所示,旧手机自动调取相机功能并进入扫描二维码界面,新手机自动显示二维码,扫描成功之后,如图1.2右图所示,新手机上提示连接成功。如图1.3左图所示,旧手机则进入“选择传输的数据”界面(要迁移至新手机的数据),默认自动勾选系统数据、应用程度与存储数据(存储数据是部分默认选择,可手动选择添加)。点击按键“开始搬家”,开始数据搬家。 Overall, the data migration scheme in the prior art is as shown in FIG. 1.1 to FIG. 1.3, taking the mobile phone moving function as an example. Specifically, when the user uses the mobile phone moving function, the application corresponding to the function needs to be opened (Application Programe) , APP), specifically open the tool on two mobile phones - backup and recovery, click the "mobile phone moving" virtual function button, as shown in Figure 1.1, select "I am the old phone" on the old phone (such as R7PLUS), On the new mobile phone (such as R9PLUS), select “I am a new mobile phone”. As shown in the left figure of Figure 1.2, the old mobile phone automatically retrieves the camera function and enters the scanning QR code interface. The new mobile phone automatically displays the QR code. After the scanning is successful, the scanning is successful. As shown in the right figure of Figure 1.2, the connection is successful on the new phone. As shown in the left figure of Figure 1.3, the old mobile phone enters the “Select Data Transfer” interface (data to be migrated to the new mobile phone). By default, the system data, application level and storage data are automatically checked (the storage data is part of the default selection, Manually select Add). Click the button "Start moving" to start data moving.
此外,本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为移动终端。In addition, the mobile terminal involved in the embodiments of the present application may include various handheld devices, wireless devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices. (User Equipment, UE), mobile station (MS), terminal device, and the like. For convenience of description, the devices mentioned above are collectively referred to as mobile terminals.
下面对本申请实施例进行详细介绍。The embodiments of the present application are described in detail below.
请参阅图2,图2是本申请实施例公开的一种数据传输方法的流程示意图,如图2所示,该数据传输方法包括如下步骤。Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application. As shown in FIG. 2, the data transmission method includes the following steps.
S201,移动终端在检测到针对移动终端内的目标数据的传输操作指令时,将目标数据拆分成多个数据单元。S201. The mobile terminal splits the target data into multiple data units when detecting a transfer operation instruction for the target data in the mobile terminal.
其中,所述传输操作指令例如可以是由针对移动终端显示的传输操作功能按钮的选取操作触发的,该选区操作可以由用户触发,例如该选取操作具体可以是触控操作、声控操作等。The transmission operation instruction may be triggered by a selection operation of a transmission operation function button displayed for the mobile terminal, and the selection operation may be triggered by a user. For example, the selection operation may be a touch operation, a voice control operation, or the like.
目标数据可以是移动终端内需要传输的预设类型数据,预设类型可以是用户预先进行设定的。例如,对于手机来说,目标数据可以是手机内的短信数据、联系人数据、微信聊天数据、QQ聊天数据、某些应用或网站的用户名和密码数据等;目标数据也可以手机内的图片数据、音频数据、视频数据、文档数据等。The target data may be preset type data that needs to be transmitted in the mobile terminal, and the preset type may be preset by the user. For example, for a mobile phone, the target data may be short message data, contact data, WeChat chat data, QQ chat data, user name and password data of some applications or websites, and the target data may also be image data in the mobile phone. , audio data, video data, document data, etc.
目标数据可以拆分为多个数据单元,在不同的传输协议中,每个数据单元的字节数可以相等,也可以不等,例如,数据单元可以是固定大小的数据包,数据包中可以包括源IP地址,目的IP地址、数据长度等属性信息。一般而言,一个数据单元的大小为数百个字节。当目标数据较大时,可以将目标数据拆分成很多个数据单元,相对于目标数据而言,每个数据单元传输要快很多。The target data can be split into multiple data units. In different transmission protocols, the number of bytes of each data unit can be equal or different. For example, the data unit can be a fixed-size data packet, and the data packet can be It includes attribute information such as source IP address, destination IP address, and data length. In general, the size of a data unit is hundreds of bytes. When the target data is large, the target data can be split into a plurality of data units, and each data unit is transmitted much faster than the target data.
S202,移动终端向目标终端设备传输多个数据单元。S202. The mobile terminal transmits a plurality of data units to the target terminal device.
具体场景中,当移动终端(手机A)与目标终端设备(手机B)连接成功之后,用户在手机A上进入应用程序(例如,“手机搬家”),在应用程序中点击“开始搬家”(即步骤S204中的数据传输指令),手机A开始将多个数据单元传输至手机B。 In a specific scenario, after the mobile terminal (mobile phone A) and the target terminal device (mobile phone B) are successfully connected, the user enters an application on the mobile phone A (for example, “mobile phone moving”), and clicks “start moving” in the application ( That is, the data transmission instruction in step S204, the mobile phone A starts transmitting a plurality of data units to the mobile phone B.
可选的,步骤S202可以包括:Optionally, step S202 may include:
移动终端以多线程的方式向目标终端设备传输多个数据单元。The mobile terminal transmits a plurality of data units to the target terminal device in a multi-threaded manner.
其中,移动终端可以开启多个线程,可以在多个线程上同时传输多个数据单元,例如,若移动终端开启了N个线程,则移动终端可以同时传输N个数据单元,其中,N为正整数。实施本申请实施例,可以同时传输多个数据单元,与单线程先比,可以提高进一步提高数据传输效率。The mobile terminal can open multiple threads and can simultaneously transmit multiple data units on multiple threads. For example, if the mobile terminal turns on N threads, the mobile terminal can simultaneously transmit N data units, where N is positive. Integer. By implementing the embodiments of the present application, multiple data units can be transmitted at the same time, which is compared with the single thread first, and the data transmission efficiency can be further improved.
可选的,执行步骤S202之后,还可以执行如下步骤:Optionally, after performing step S202, the following steps may also be performed:
(11)移动终端检测多个数据单元中的任一数据单元在传输过程中是否发生损坏;(11) The mobile terminal detects whether any one of the plurality of data units is damaged during the transmission;
(12)若是,移动终端将任一数据单元标记为未传输。(12) If so, the mobile terminal marks any data unit as untransmitted.
其中,当多个数据单元中的某一数据单元在传输过程中是否发生损坏,则将该数据单元标记为未传输,以便后续重新传输。Wherein, when a data unit of the plurality of data units is damaged during the transmission, the data unit is marked as not transmitted for subsequent retransmission.
S203,当多个数据单元中的任一数据单元传输成功时,移动终端将任一数据单元标记为已传输。S203. When any one of the plurality of data units is successfully transmitted, the mobile terminal marks any data unit as being transmitted.
移动终端每传输一个数据单元,就将该数据单元标记为已传输,避免重复传输该数据单元。Each time a mobile terminal transmits a data unit, the data unit is marked as transmitted, avoiding repeated transmission of the data unit.
S204,移动终端检测移动终端与目标终端设备是否断开通信连接,若是,执行步骤S205,若否,执行步骤S207。S204. The mobile terminal detects whether the mobile terminal disconnects the communication connection with the target terminal device. If yes, step S205 is performed, and if no, step S207 is performed.
移动终端与目标终端设备之间的通信连接可以是有线连接(例如数据线连接),也可以是无线连接(例如,蓝牙连接、WiFi连接、NFC连接中的一种或多种组合)。The communication connection between the mobile terminal and the target terminal device may be a wired connection (eg, a data line connection) or a wireless connection (eg, one or a combination of a Bluetooth connection, a WiFi connection, an NFC connection).
S205,移动终端记录目标数据中未传输和传输失败的数据单元,将未传输和传输失败的数据单元标记为未传输。S205. The mobile terminal records, in the target data, the data unit that fails to transmit and transmit, and marks the data unit that has not been transmitted and failed to be transmitted as untransmitted.
其中,传输失败的数据单元可以为移动终端正在传输该数据单元时突然断开连接,导致该数据单元传输失败。一般而言,当移动终端将一个数据单元传输至目标终端设备之后,目标终端设备若收到该数据单元,则会返回一个确认信息,移动终端收到该确认信息之后将该数据单元标记为已传输,如果移动终端未收到该确认信息,则将该数据单元标记为未传输。 The data unit that fails to transmit may suddenly disconnect when the mobile terminal is transmitting the data unit, causing the data unit to fail to transmit. Generally, after the mobile terminal transmits a data unit to the target terminal device, if the target terminal device receives the data unit, it returns an acknowledgement message, and after receiving the acknowledgement message, the mobile terminal marks the data unit as having been Transmission, if the mobile terminal does not receive the acknowledgment message, the data unit is marked as not transmitted.
S206,当移动终端与目标终端设备恢复通信连接时,移动终端将目标数据中标记为未传输的数据单元传输至目标终端。S206. When the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal transmits the data unit marked as untransmitted in the target data to the target terminal.
当移动终端与目标终端设备恢复通信连接时,移动终端将目标数据中标记为未传输的数据单元传输至目标终端,即可将目标数据全部传输至目标终端了。与现有技术相比,无需重新传输整个目标数据,可以提高数据传输效率。When the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal transmits the data unit marked as untransmitted in the target data to the target terminal, and the target data is all transmitted to the target terminal. Compared with the prior art, the data transmission efficiency can be improved without retransmitting the entire target data.
可选的,步骤S206中移动终端将目标数据中标记为未传输的数据单元传输至目标终端可以包括:Optionally, the transmitting, by the mobile terminal, the data unit marked as untransmitted in the target data to the target terminal in the step S206 may include:
(21)在移动终端与目标终端设备恢复通信连接之后,移动终端输出用于提示用户重传目标数据的提示信息;(21) after the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal outputs prompt information for prompting the user to retransmit the target data;
(22)当接收针对目标数据的重传操作指令时,移动终端将目标数据中标记为未传输的数据单元传输至目标终端。(22) When receiving the retransmission operation instruction for the target data, the mobile terminal transmits the data unit marked as untransferred in the target data to the target terminal.
在移动终端与目标终端设备恢复通信连接之后,移动终端输出用于提示用户重传目标数据的提示信息,用户可以根据提示信息确定是否进行重传,若用户不想重传,则用户点击取消重传;若用户确定要重传,则用户可以输入重传操作指令,移动终端接收针对目标数据的重传操作指令时,将目标数据中标记为未传输的数据单元传输至目标终端。本申请实施例可以根据用户需求决定是否进行重传。After the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal outputs prompt information for prompting the user to retransmit the target data, and the user may determine whether to perform retransmission according to the prompt information, and if the user does not want to retransmit, the user clicks to cancel the retransmission. If the user determines to retransmit, the user may input a retransmission operation instruction, and when the mobile terminal receives the retransmission operation instruction for the target data, the data unit marked as untransmitted in the target data is transmitted to the target terminal. The embodiment of the present application can decide whether to perform retransmission according to user requirements.
S207,移动终端继续传输目标数据。S207. The mobile terminal continues to transmit the target data.
实施图2所示的采用将目标数据拆分成多个数据单元的方法,每个数据单元的大小要远小于目标数据的大小,在传输多个数据单元时,单个数据单元比上述目标数据容易传输,并且在移动终端与目标终端设备断开通信连接时,记录未传输的数据单元,以便后续恢复通信连接后直接传输上述未传输的数据单元,与现有技术中传输一个大的目标数据相比,可以提高数据传输效率。Implementing the method of splitting target data into a plurality of data units as shown in FIG. 2, each data unit is much smaller in size than the target data, and when transmitting a plurality of data units, a single data unit is easier than the target data. Transmitting, and when the mobile terminal disconnects the communication connection with the target terminal device, recording the untransmitted data unit, so as to directly transmit the untransmitted data unit after subsequently recovering the communication connection, and transmitting a large target data in the prior art Compared, it can improve data transmission efficiency.
请参阅图3,图3是本申请实施例公开的另一种数据传输方法的流程示意图,如图3所示,该数据传输方法包括如下步骤。Please refer to FIG. 3. FIG. 3 is a schematic flowchart of another data transmission method disclosed in the embodiment of the present application. As shown in FIG. 3, the data transmission method includes the following steps.
S301,移动终端在检测到针对移动终端内的目标数据的传输操作指令时,将目标数据拆分成多个数据单元。S301. The mobile terminal splits the target data into a plurality of data units when detecting a transfer operation instruction for the target data in the mobile terminal.
S302,移动终端向目标终端设备传输多个数据单元。 S302. The mobile terminal transmits a plurality of data units to the target terminal device.
S303,当多个数据单元中的任一数据单元传输成功时,移动终端将任一数据单元标记为已传输。S303. When any one of the plurality of data units is successfully transmitted, the mobile terminal marks any data unit as being transmitted.
S304,移动终端检测移动终端与目标终端设备是否断开通信连接,若是,执行步骤S305,若否,执行步骤S307。S304. The mobile terminal detects whether the mobile terminal disconnects the communication connection with the target terminal device. If yes, step S305 is performed, and if no, step S307 is performed.
S305,移动终端记录目标数据中未传输和传输失败的数据单元,将未传输和传输失败的数据单元标记为未传输。S305. The mobile terminal records, in the target data, the data unit that fails to transmit and transmit, and marks the data unit that has not been transmitted and failed to be transmitted as untransmitted.
S306,当移动终端与目标终端设备恢复通信连接时,移动终端将目标数据中标记为未传输的数据单元传输至目标终端。S306. When the mobile terminal resumes the communication connection with the target terminal device, the mobile terminal transmits the data unit marked as untransmitted in the target data to the target terminal.
S307,移动终端继续传输目标数据。S307. The mobile terminal continues to transmit the target data.
本申请实施例中的步骤S301至步骤S307的具体实施方式可以参见图2所示的步骤S201至步骤S207,本申请实施例不再赘述。For the specific implementation of the step S301 to the step S307 in the embodiment of the present application, reference may be made to the step S201 to the step S207 shown in FIG.
S308,当多个数据单元全部传输成功之后,移动终端输出数据完成传输的通知消息,并删除移动终端存储的多个数据单元。S308. After all the data units are successfully transmitted, the mobile terminal outputs a notification message that the data completes the transmission, and deletes the plurality of data units stored by the mobile terminal.
当多个数据单元全部传输成功之后,目标终端设备返回传输成功的确认消息,移动终端接收到该传输成功的确认消息之后,输出数据完成传输的通知消息,以通知用户目标数据(即上述多个数据单元)传输完毕。移动终端在上述多个数据单元传输成功之后,为了节省移动终端的存储空间,移动终端删除移动终端存储的多个数据单元。可选的,也可以由用户决定是否删除,例如,在移动终端的显示界面输出是否删除上述多个数据单元的提示信息以供用户进行选择。After all the data units are successfully transmitted, the target terminal device returns an acknowledgement message of successful transmission, and after receiving the confirmation message that the transmission is successful, the mobile terminal outputs a notification message that the data is completed to notify the user of the target data (ie, the plurality of The data unit is transferred. After the mobile terminal successfully transmits the plurality of data units, in order to save the storage space of the mobile terminal, the mobile terminal deletes the plurality of data units stored by the mobile terminal. Optionally, the user may decide whether to delete, for example, outputting, at the display interface of the mobile terminal, whether to delete the prompt information of the multiple data units for the user to select.
实施图3所示的方法,由于每个数据单元的大小要远小于目标数据的大小,在传输多个数据单元时,单个数据单元比上述目标数据容易传输,并且在移动终端与目标终端设备断开通信连接时,记录未传输的数据单元,以便后续恢复通信连接后直接传输上述未传输的数据单元,与现有技术中传输一个大的目标数据相比,可以提高数据传输效率。同时,在多个数据单元全部传输成功之后,删除移动终端存储的多个数据单元,可以节省移动终端的存储空间。Implementing the method shown in FIG. 3, since the size of each data unit is much smaller than the size of the target data, when transmitting a plurality of data units, a single data unit is easily transmitted than the target data, and is disconnected between the mobile terminal and the target terminal device. When the communication connection is opened, the untransmitted data unit is recorded, so that the untransmitted data unit is directly transmitted after the communication connection is subsequently restored, which can improve the data transmission efficiency compared with the transmission of a large target data in the prior art. At the same time, after all the data units are successfully transmitted, deleting the plurality of data units stored by the mobile terminal can save the storage space of the mobile terminal.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,移动终端为了实现上述功能,其包含了执行各个功能相应的硬件 结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above description mainly introduces the solution of the embodiment of the present application from the perspective of the method side execution process. It can be understood that, in order to implement the above functions, the mobile terminal includes corresponding hardware for executing each function. Structure and / or software modules. Those skilled in the art will readily appreciate that the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for each particular application to implement the described functionality, but such implementation should not be considered to be beyond the scope of the application.
本申请实施例可以根据上述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the functional unit into the mobile terminal according to the foregoing method example. For example, each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner.
在采用集成的单元的情况下,图4A示出了上述实施例中所涉及的数据传输装置的一种可能的结构示意图。数据传输装置400包括:处理单元402和通信单元403。处理单元402用于对数据传输装置的动作进行控制管理,例如,处理单元402用于支持数据传输装置执行图2中的步骤S201至S207和图3中的步骤S301至S308和/或用于本文所描述的技术的其它过程。通信单元403用于支持数据传输装置与其他设备的通信,例如与移动通信网络中的基站之间的通信。数据传输装置还可以包括存储单元401,用于存储数据传输装置的程序代码和数据。In the case of employing an integrated unit, FIG. 4A shows a possible structural diagram of the data transmission apparatus involved in the above embodiment. The data transmission device 400 includes a processing unit 402 and a communication unit 403. The processing unit 402 is configured to control and manage the actions of the data transmission device. For example, the processing unit 402 is configured to support the data transmission device to perform steps S201 to S207 in FIG. 2 and steps S301 to S308 in FIG. 3 and/or for use in this document. Other processes of the described techniques. Communication unit 403 is used to support communication of data transmission devices with other devices, such as with base stations in a mobile communication network. The data transmission device may further include a storage unit 401 for storing program codes and data of the data transmission device.
其中,处理单元402可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信单元403可以是通信接口、收发器、收发电路等,其中,通信接口是统称,可以包括一个或多个接口。存储单元401可以是存储器。 The processing unit 402 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication unit 403 can be a communication interface, a transceiver, a transceiver circuit, etc., wherein the communication interface is a collective name and can include one or more interfaces. The storage unit 401 can be a memory.
当处理单元402为处理器,通信单元403为通信接口,存储单元401为存储器时,本申请实施例所涉及的数据传输装置可以为图4B所示的数据传输装置。When the processing unit 402 is a processor, the communication unit 403 is a communication interface, and the storage unit 401 is a memory, the data transmission device according to the embodiment of the present application may be the data transmission device shown in FIG. 4B.
参阅图4B所示,该数据传输装置410包括:处理器412、通信接口413、存储器411。可选的,数据传输装置410还可以包括总线414。其中,通信接口413、处理器412以及存储器411可以通过总线414相互连接;总线414可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。所述总线414可以分为地址总线、数据总线、控制总线等。为便于表示,图4B中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 4B, the data transmission device 410 includes a processor 412, a communication interface 413, and a memory 411. Alternatively, the data transmission device 410 may further include a bus 414. The communication interface 413, the processor 412, and the memory 411 may be connected to each other through a bus 414. The bus 414 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (abbreviated). EISA) bus and so on. The bus 414 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 4B, but it does not mean that there is only one bus or one type of bus.
上述图4A或图4B所示的数据传输装置也可以理解为一种用于数据传输装置的装置,本申请实施例不限定。The data transmission device shown in FIG. 4A or FIG. 4B can also be understood as a device for the data transmission device. The embodiment of the present application is not limited.
本申请实施例还提供了另一种移动终端,如图5所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present application further provides another mobile terminal. As shown in FIG. 5, for the convenience of description, only the part related to the embodiment of the present application is shown. If the specific technical details are not disclosed, refer to the method of the embodiment of the present application. section. The mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the mobile terminal is used as a mobile phone as an example:
图5示出的是与本申请实施例公开的移动终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to the mobile terminal disclosed in the embodiment of the present application. Referring to FIG. 5, the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor 980. And power supply 990 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图5对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 5:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通 讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 910 can be used for receiving and transmitting information. Generally, RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global Mobile Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), etc.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(检测移动终端与目标终端设备是否断开通信连接)等;存储数据区可存储根据手机的使用所创建的数据(比如多个数据单元)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920. The memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (detecting whether the mobile terminal disconnects the communication connection with the target terminal device), and the like; and storing the data area Data (such as multiple data units) created based on the use of the mobile phone can be stored. Moreover, memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 930 can include a fingerprint identification module 931 and other input devices 932. The fingerprint identification module 931 can collect fingerprint data of the user. In addition to the fingerprint recognition module 931, the input unit 930 may also include other input devices 932. Specifically, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图5中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和播放功能。The display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 940 can include a display screen 941. Alternatively, the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Although in FIG. 5, the fingerprint recognition module 931 and the display screen 941 are used as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be Integrated to achieve the input and playback functions of the phone.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光 传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light The sensor can adjust the brightness of the display 941 according to the brightness of the ambient light, and the proximity sensor can turn off the display 941 and/or the backlight when the phone moves to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset. The audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961 for conversion to the sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal by the audio circuit 960. After receiving, it is converted into audio data, and then processed by the audio data playback processor 980, sent to the other mobile phone via the RF circuit 910, or played back to the memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access. Although FIG. 5 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 990 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。 Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
前述图2~图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 2 to FIG. 3, each step method flow can be implemented based on the structure of the mobile phone.
前述图4A所示的实施例中,各单元功能可以基于该手机的结构实现。In the foregoing embodiment shown in FIG. 4A, each unit function can be implemented based on the structure of the mobile phone.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种数据传输方法的部分或全部步骤。The embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes some or all of the steps of any one of the data transmission methods described in the foregoing method embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present application. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。 In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The embodiments of the present application have been described in detail above. The principles and implementations of the present application are described in the specific examples. The description of the above embodiments is only used to help understand the method and core ideas of the present application. A person skilled in the art will have a change in the specific embodiments and the scope of the application according to the idea of the present application. In summary, the content of the present specification should not be construed as limiting the present application.

Claims (20)

  1. 一种数据传输方法,其特征在于,包括:A data transmission method, comprising:
    在检测到针对移动终端内的目标数据的传输操作指令时,将所述目标数据拆分成多个数据单元;When the transfer operation instruction for the target data in the mobile terminal is detected, the target data is split into a plurality of data units;
    向目标终端设备传输所述多个数据单元;Transmitting the plurality of data units to the target terminal device;
    当所述多个数据单元中的任一数据单元传输成功时,将所述任一数据单元标记为已传输;Marking any of the data units as transmitted when any of the plurality of data units is successfully transmitted;
    检测所述移动终端与所述目标终端设备是否断开通信连接;Detecting whether the mobile terminal disconnects from the target terminal device;
    若是,记录所述目标数据中未传输和传输失败的数据单元,将所述未传输和传输失败的数据单元标记为未传输;If yes, recording, in the target data, a data unit that has not been transmitted and failed to be transmitted, and marking the untransmitted and failed data unit as untransmitted;
    当所述移动终端与所述目标终端设备恢复通信连接时,将所述目标数据中标记为未传输的数据单元传输至所述目标终端。And transmitting, when the mobile terminal resumes a communication connection with the target terminal device, the data unit marked as not transmitted in the target data to the target terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述向目标终端设备传输所述多个数据单元之后,所述方法还包括:The method according to claim 1, wherein after the transmitting the plurality of data units to the target terminal device, the method further comprises:
    检测所述多个数据单元中的任一数据单元在传输过程中是否发生损坏;Detecting whether any one of the plurality of data units is damaged during transmission;
    若是,将所述任一数据单元标记为未传输。If so, any of the data units are marked as not transmitted.
  3. 根据权利要求2所述的方法,其特征在于,所述将所述目标数据中标记为未传输的数据单元传输至所述目标终端包括:The method according to claim 2, wherein the transmitting the data unit marked as untransmitted in the target data to the target terminal comprises:
    在所述移动终端与所述目标终端设备恢复通信连接之后,输出用于提示用户重传所述目标数据的提示信息;After the mobile terminal resumes the communication connection with the target terminal device, outputting prompt information for prompting the user to retransmit the target data;
    当接收针对所述目标数据的重传操作指令时,将所述目标数据中标记为未传输的数据单元传输至所述目标终端。A data unit marked as untransmitted in the target data is transmitted to the target terminal when receiving a retransmission operation instruction for the target data.
  4. 根据权利要求3所述的方法,其特征在于,所述向目标终端设备传输所述多个数据单元包括:The method according to claim 3, wherein the transmitting the plurality of data units to the target terminal device comprises:
    以多线程的方式向所述目标终端设备传输所述多个数据单元。Transmitting the plurality of data units to the target terminal device in a multi-threaded manner.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    当所述多个数据单元全部传输成功之后,输出数据完成传输的通知消息,并删除所述移动终端存储的所述多个数据单元。 After all of the plurality of data units are successfully transmitted, the output data completes the notification message of the transmission, and deletes the plurality of data units stored by the mobile terminal.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述传输操作指令由针对所述移动终端显示的传输操作功能按钮的选取操作触发。The method according to any one of claims 1 to 5, wherein the transmission operation instruction is triggered by a selection operation of a transmission operation function button displayed for the mobile terminal.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述目标数据是所述移动终端内需要传输的预设类型数据,所述预设类型数据包括以下至少一种:短信数据、联系人数据、微信聊天数据、QQ聊天数据、某些应用或网站的用户名和密码数据、图片数据、音频数据、视频数据、文档数据。The method according to any one of claims 1-6, wherein the target data is preset type data that needs to be transmitted in the mobile terminal, and the preset type data includes at least one of the following: short message data. , contact data, WeChat chat data, QQ chat data, user name and password data of certain applications or websites, picture data, audio data, video data, document data.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述数据单元为固定大小的数据包,所述数据包以下至少一种属性信息:包括源IP地址,目的IP地址、数据长度。The method according to any one of claims 1 to 7, wherein the data unit is a fixed-size data packet, and the data packet has at least one attribute information: a source IP address, a destination IP address, and a data. length.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述传输失败的数据单元为所述移动终端正在传输所述数据单元时突然断开连接,导致传输失败的数据单元。The method according to any one of claims 1-8, wherein the data unit that failed to transmit is a data unit that is suddenly disconnected when the mobile terminal is transmitting the data unit, resulting in a transmission failure.
  10. 一种数据传输装置,其特征在于,包括:处理单元和通信单元,A data transmission device, comprising: a processing unit and a communication unit,
    所述处理单元,用于在检测到针对移动终端内的目标数据的传输操作指令时,将所述目标数据拆分成多个数据单元;以及用于通过所述通信单元向目标终端设备传输所述多个数据单元;以及用于当所述多个数据单元中的任一数据单元传输成功时,将所述任一数据单元标记为已传输;以及用于检测所述移动终端与所述目标终端设备是否断开通信连接;以及用于当所述移动终端与所述目标终端设备断开通信连接时,记录所述目标数据中未传输和传输失败的数据单元,将所述未传输和传输失败的数据单元标记为未传输;以及用于当所述移动终端与所述目标终端设备恢复通信连接时,通过所述通信单元将所述目标数据中标记为未传输的数据单元传输至所述目标终端。The processing unit is configured to split the target data into a plurality of data units when detecting a transfer operation instruction for target data in the mobile terminal; and to transmit the target data to the target terminal device by using the communication unit Denoting a plurality of data units; and for marking any of the plurality of data units as being transmitted as being successfully transmitted; and for detecting the mobile terminal and the target Whether the terminal device disconnects the communication connection; and for recording, when the mobile terminal disconnects the communication connection from the target terminal device, the data unit that has not been transmitted and failed in the target data, and the untransmitted and transmitted The failed data unit is marked as untransmitted; and is configured to transmit, by the communication unit, a data unit marked as untransmitted in the target data to the mobile terminal when the communication connection is resumed with the target terminal device Target terminal.
  11. 根据权利要求10所述的数据传输装置,其特征在于,所述处理单元还用于向目标终端设备传输所述多个数据单元之后,检测所述多个数据单元中的任一数据单元在传输过程中是否发生损坏;以及用于当述多个数据单元中的任一数据单元在传输过程中发生损坏时,将所述任一数据单元标记为未传输。The data transmission device according to claim 10, wherein the processing unit is further configured to: after transmitting the plurality of data units to the target terminal device, detecting that any one of the plurality of data units is transmitting Whether damage occurs during the process; and when any of the plurality of data units is damaged during transmission, the any data unit is marked as not transmitted.
  12. 根据权利要求11所述的数据传输装置,其特征在于,在所述将所述 目标数据中标记为未传输的数据单元传输至所述目标终端方面,所述处理单元具体用于:在所述移动终端与所述目标终端设备恢复通信连接之后,输出用于提示用户重传所述目标数据的提示信息;以及当接收针对所述目标数据的重传操作指令时,将所述目标数据中标记为未传输的数据单元传输至所述目标终端。The data transmission device according to claim 11, wherein said The data unit marked as untransmitted in the target data is transmitted to the target terminal, and the processing unit is specifically configured to: after the mobile terminal resumes the communication connection with the target terminal device, output, for prompting the user to retransmit the location The prompt information of the target data; and when receiving the retransmission operation instruction for the target data, transmitting the data unit marked as untransmitted in the target data to the target terminal.
  13. 根据权利要求12所述的数据传输装置,其特征在于,在所述通过所述通信单元向目标终端设备传输所述多个数据单元方面,所述处理单元具体用于:通过所述通信单元以多线程的方式向所述目标终端设备传输所述多个数据单元。The data transmission device according to claim 12, wherein in the transmitting the plurality of data units to the target terminal device by the communication unit, the processing unit is specifically configured to: through the communication unit The plurality of data units are transmitted to the target terminal device in a multi-threaded manner.
  14. 根据权利要求10-13任一项所述的数据传输装置,其特征在于,所述处理单元还用于当所述多个数据单元全部传输成功之后,输出数据完成传输的通知消息,并删除所述移动终端存储的所述多个数据单元。The data transmission device according to any one of claims 10 to 13, wherein the processing unit is further configured to: after all the plurality of data units are successfully transmitted, output a notification message that the data is completed, and delete the The plurality of data units stored by the mobile terminal.
  15. 根据权利要求10-15任一项所述的数据传输装置,其特征在于,所述传输操作指令由针对所述移动终端显示的传输操作功能按钮的选取操作触发。The data transmission apparatus according to any one of claims 10 to 15, wherein the transmission operation instruction is triggered by a selection operation of a transmission operation function button displayed for the mobile terminal.
  16. 根据权利要求10-16任一项所述的数据传输装置,其特征在于,所述目标数据是所述移动终端内需要传输的预设类型数据,所述预设类型数据包括以下至少一种:短信数据、联系人数据、微信聊天数据、QQ聊天数据、某些应用或网站的用户名和密码数据、图片数据、音频数据、视频数据、文档数据。The data transmission device according to any one of claims 10 to 16, wherein the target data is preset type data that needs to be transmitted in the mobile terminal, and the preset type data includes at least one of the following: SMS data, contact data, WeChat chat data, QQ chat data, user name and password data of certain applications or websites, picture data, audio data, video data, document data.
  17. 根据权利要求10-17任一项所述的数据传输装置,其特征在于,所述数据单元为固定大小的数据包,所述数据包以下至少一种属性信息:包括源IP地址,目的IP地址、数据长度。The data transmission device according to any one of claims 10-17, wherein the data unit is a fixed-size data packet, and the data packet has at least one attribute information including: a source IP address, a destination IP address. ,Data length.
  18. 根据权利要求10-18任一项所述的数据传输装置,其特征在于,所述传输失败的数据单元为所述移动终端正在传输所述数据单元时突然断开连接,导致传输失败的数据单元。The data transmission apparatus according to any one of claims 10 to 18, wherein the data unit that fails to be transmitted is a data unit that is suddenly disconnected when the mobile terminal is transmitting the data unit, resulting in a transmission failure. .
  19. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    处理器、存储器;Processor, memory;
    所述存储器存储有可执行程序代码; The memory stores executable program code;
    所述处理器用于调用所述存储器中的所述可执行程序代码,执行如权利要求1-9任一项所描述的方法。The processor is operative to invoke the executable program code in the memory to perform the method as described in any one of claims 1-9.
  20. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求1-9任一项所述的方法。 A computer storage medium, characterized in that the computer storage medium stores a program, the program being executed comprising the method according to any one of claims 1-9.
PCT/CN2017/093467 2016-09-14 2017-07-19 Data transmission method and related devices WO2018049913A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610825431.0 2016-09-14
CN201610825431.0A CN106302808A (en) 2016-09-14 2016-09-14 Data transmission method and mobile terminal

Publications (1)

Publication Number Publication Date
WO2018049913A1 true WO2018049913A1 (en) 2018-03-22

Family

ID=57711700

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/093467 WO2018049913A1 (en) 2016-09-14 2017-07-19 Data transmission method and related devices

Country Status (2)

Country Link
CN (1) CN106302808A (en)
WO (1) WO2018049913A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111325241A (en) * 2020-01-23 2020-06-23 深圳市大拿科技有限公司 Fruit and vegetable classification method and device, intelligent sensor and computer storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302808A (en) * 2016-09-14 2017-01-04 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106921961A (en) * 2017-01-25 2017-07-04 北京奇虎科技有限公司 Data transmission method, device and mobile terminal between a kind of different system
CN106888498A (en) * 2017-01-25 2017-06-23 北京奇虎科技有限公司 A kind of inter-terminal data transmission method, device and mobile terminal
CN107564129A (en) * 2017-09-01 2018-01-09 武汉六点整北斗科技有限公司 A kind of transmission method and device of traffic accident data
CN110430560A (en) * 2019-07-26 2019-11-08 努比亚技术有限公司 Method, wearable device and the storage medium of wearable device upload data
CN110769409B (en) * 2019-10-30 2022-10-28 深圳传音控股股份有限公司 Virtual SIM card transplanting method, system and computer readable storage medium
CN111328155B (en) * 2020-02-27 2022-01-07 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN111356119A (en) * 2020-03-12 2020-06-30 京东方科技集团股份有限公司 Data transmission method and related equipment
CN112994233A (en) * 2021-02-06 2021-06-18 西安热工研究院有限公司 One-way graph gate system and device suitable for power monitoring system
CN113747374B (en) * 2021-07-30 2023-01-06 荣耀终端有限公司 Message pushing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015511A1 (en) * 2003-07-02 2005-01-20 Nec Laboratories America, Inc. Accelerated large data distribution in overlay networks
CN101202604A (en) * 2007-08-14 2008-06-18 深圳市同洲电子股份有限公司 Method, system and equipment for transmitting and receiving network data
CN101321336A (en) * 2007-06-06 2008-12-10 凤凰微电子(中国)有限公司 High-capacity data interchange method between mobile terminal and smart card
CN103248452A (en) * 2012-02-10 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Data sending device, data receiving device, terminal and data transmission method
CN105007322A (en) * 2015-07-21 2015-10-28 陈丹 File transmission method and system
CN106302808A (en) * 2016-09-14 2017-01-04 广东欧珀移动通信有限公司 Data transmission method and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790771B (en) * 2012-07-25 2016-12-21 山东中创软件商用中间件股份有限公司 A kind of document transmission method and system
CN103019651B (en) * 2012-08-02 2016-06-29 青岛海信传媒网络技术有限公司 The method for parallel processing of complex task and device
CN105743978A (en) * 2016-01-29 2016-07-06 武汉联影医疗科技有限公司 Data transmitting method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015511A1 (en) * 2003-07-02 2005-01-20 Nec Laboratories America, Inc. Accelerated large data distribution in overlay networks
CN101321336A (en) * 2007-06-06 2008-12-10 凤凰微电子(中国)有限公司 High-capacity data interchange method between mobile terminal and smart card
CN101202604A (en) * 2007-08-14 2008-06-18 深圳市同洲电子股份有限公司 Method, system and equipment for transmitting and receiving network data
CN103248452A (en) * 2012-02-10 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Data sending device, data receiving device, terminal and data transmission method
CN105007322A (en) * 2015-07-21 2015-10-28 陈丹 File transmission method and system
CN106302808A (en) * 2016-09-14 2017-01-04 广东欧珀移动通信有限公司 Data transmission method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111325241A (en) * 2020-01-23 2020-06-23 深圳市大拿科技有限公司 Fruit and vegetable classification method and device, intelligent sensor and computer storage medium

Also Published As

Publication number Publication date
CN106302808A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2018049913A1 (en) Data transmission method and related devices
WO2018049912A1 (en) Data transmission method and related devices
US9832621B2 (en) Method, terminal, server, and system for audio signal transmission
US10320719B2 (en) Message withdrawal method, apparatus and storage medium
WO2018049881A1 (en) Data migration method and device
WO2018049887A1 (en) Data transmission processing method and terminal device
WO2018049921A1 (en) Data transmission processing method and related device
WO2018166168A1 (en) Screen backlight control method and mobile terminal
WO2018049886A1 (en) Hotspot establishment method and terminal device
WO2018049897A1 (en) Data backup method and device
WO2018103443A1 (en) Network positioning method and terminal device
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
WO2018049935A1 (en) Data migration method and terminals
WO2018049971A1 (en) Hotspot network switching method and terminals
WO2018049934A1 (en) Data migration method and terminals
WO2018049903A1 (en) Data migration method and related devices
WO2018049884A1 (en) Data migration method and device
WO2018049885A1 (en) Data migration method and device
WO2018049900A1 (en) Data migration method and related devices
WO2018049894A1 (en) Data transmission method and device
BR112016018783B1 (en) METHOD, APPARATUS, DEVICE AND INTERCOMMUNICATION SYSTEM
WO2018049904A1 (en) Data migration method and related devices
WO2019076250A1 (en) Push message management method and related products
WO2018049970A1 (en) Hotspot network switching method and terminal
CN106681860A (en) Data backup method and data backup device

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: 17850116

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: 17850116

Country of ref document: EP

Kind code of ref document: A1