WO2017166809A1 - 一种数据传输方法及终端设备 - Google Patents

一种数据传输方法及终端设备 Download PDF

Info

Publication number
WO2017166809A1
WO2017166809A1 PCT/CN2016/103975 CN2016103975W WO2017166809A1 WO 2017166809 A1 WO2017166809 A1 WO 2017166809A1 CN 2016103975 W CN2016103975 W CN 2016103975W WO 2017166809 A1 WO2017166809 A1 WO 2017166809A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless fidelity
fidelity module
data packet
module
terminal device
Prior art date
Application number
PCT/CN2016/103975
Other languages
English (en)
French (fr)
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 WO2017166809A1 publication Critical patent/WO2017166809A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of mobile communications technologies, and in particular, to a data transmission method and a terminal device.
  • WIFI Wireless Fidelity
  • the embodiment of the invention provides a data transmission method and a terminal device.
  • the terminal device runs the first operating system, the terminal device can separately transmit from the two ends of the data packet to be transmitted, thereby improving data transmission efficiency.
  • a first aspect of the embodiment of the present invention discloses a data transmission method, where a first operating system is used to control a first wireless fidelity module and a second wireless fidelity module, and the second operating system is only used to control a second wireless fidelity module.
  • the method includes:
  • the method before the controlling the first wireless fidelity module and the second wireless fidelity module to separately transmit the two ends of the data packet to be transmitted, the method further includes:
  • the N sub-packets are numbered in the positive order starting from the start packet.
  • controlling the first wireless fidelity module and the second wireless fidelity module to separately transmit from the two ends of the data packet to be transmitted including:
  • the first wireless fidelity module is controlled to start a positive sequence transmission from the start packet, and the second wireless fidelity module starts the reverse transmission from the end packet.
  • the method further includes:
  • the first wireless fidelity module and the second wireless fidelity module are currently transmitting data packet i, and the data packet i is completely received, stopping data transmission, wherein the data packet i is Any one of the data packets to be transmitted.
  • the method further includes:
  • the prompt information is output.
  • the second aspect of the embodiment of the present invention discloses a terminal device, where the first operating system is used to control the first wireless fidelity module and the second wireless fidelity module, and the second operating system is only used to control the second wireless fidelity module.
  • the terminal device includes:
  • a running unit configured to run the first operating system
  • a receiving unit configured to receive a data transmission instruction
  • a determining unit configured to determine, according to the data transmission instruction, whether the first wireless fidelity module and the second wireless fidelity module are in an on state
  • control unit configured to control the first wireless fidelity module and the second wireless fidelity module to be transmitted when the first wireless fidelity module and the second wireless fidelity module are both in an open state Both ends of the data packet are transmitted separately.
  • the terminal device further includes:
  • a dividing unit configured to divide the data packet to be transmitted into N sub-packets, where N is an integer greater than one;
  • the numbering unit is set to number the N sub-packets in the positive order from the start packet.
  • the control unit is specifically configured to control the first wireless fidelity module to start a positive sequence transmission from the start packet, and the second wireless fidelity module starts the reverse transmission from the end packet.
  • the terminal device further includes:
  • a determining unit configured to determine whether a data packet number currently transmitted by the first wireless fidelity module is the same as a data packet number currently transmitted by the second wireless fidelity module
  • An execution unit configured to stop data transmission when the first wireless fidelity module and the second wireless fidelity module are currently transmitting a data packet i, and the data packet i is completely received, where The data packet i is any data packet in the data packet to be transmitted.
  • the terminal device further includes:
  • the prompting unit is configured to output prompt information when the first wireless fidelity module or the second wireless fidelity module is not in an open state.
  • the embodiment of the present invention has the following advantages: in the embodiment of the present invention, the first operating system in the terminal device is used to control the first wireless fidelity module and the second wireless fidelity module, and the second The operating system is only used to control the second wireless fidelity module, and by receiving the first operating system in the terminal device, receiving a data transmission instruction, determining, according to the data transmission instruction, whether the first wireless fidelity module and the second wireless fidelity module are in The first wireless fidelity module and the second wireless fidelity module are respectively controlled from the two ends of the data packet to be transmitted, when the first wireless fidelity module and the second wireless fidelity module are both in an open state. transmission.
  • the terminal device runs the first operating system, the first wireless fidelity module and the second wireless fidelity module can respectively transmit from the two ends of the data packet to be transmitted, thereby improving data transmission efficiency.
  • FIG. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of another data transmission method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • the embodiment of the invention provides a data transmission method and a terminal device.
  • the terminal device runs the first operating system, the terminal device can separately transmit from the two ends of the data packet to be transmitted, thereby improving data transmission efficiency.
  • the terminal device may include various types of terminal devices, such as a mobile phone, a tablet computer, a personal digital assistant (PDA), and a mobile Internet device (MID).
  • the terminal device includes two operating systems and two wireless fidelity modules, and the first operating system is used to control the first wireless fidelity module and the second wireless fidelity module, and the second operating system is only used to control the second wireless Fidelity module.
  • FIG. 1 is a schematic flowchart diagram of a data transmission method according to an embodiment of the present invention.
  • the first operating system is used to control the first wireless fidelity module and the second wireless fidelity module
  • the second operating system is only used to control the second wireless fidelity module.
  • the illustrated data transmission method may include the following steps:
  • the terminal device can support dual system operation, and two independent wireless fidelity modules are preset in the terminal device, which are respectively used by the dual system, and in the dual system, the respective wireless fidelity modules can be performed.
  • Independent control for example, the first operating system corresponds to the first wireless fidelity module, the second operating system corresponds to the second wireless fidelity module, and the first wireless fidelity module can be turned on or off in the first operating system, in the second The second wireless fidelity module can be turned on or off in the operating system, and the first wireless fidelity module and the second wireless fidelity module can be connected to the same or different WIFI hotspots.
  • the first operating system may represent a secure operating system
  • the second operating system may represent a common operating system
  • the first wireless fidelity module and the second wireless fidelity module may be controlled in the secure operating system.
  • the ordinary operating system only the second wireless fidelity module can be controlled, to avoid operating or controlling data in the security system in the ordinary operating system, and improving the security of data in the security system.
  • the power-on initialization and the function self-test of the first wireless fidelity module and the second wireless fidelity module are sequentially performed, and the sleep mode is entered after the self-test is completed.
  • the corresponding wireless fidelity module can be selectively turned on.
  • the opened wireless fidelity module will exit the sleep state and enter the working state, and the other one is not turned on.
  • the wireless fidelity module continues to be in a dormant state.
  • the wireless fidelity module enters a hibernation state, and the two wireless fidelity modules are powered off after the terminal device is powered off.
  • the first wireless fidelity module and the second wireless fidelity module may be utilized for dual channel transmission.
  • the user can select to enter the secure operating system from the pop-up dialog box by long pressing the shutdown button, or click the secure operating system icon on the display to enter the secure operating system, or enter the secure operating system through voice control.
  • the operating system of the present invention is not limited to the uniqueness.
  • the terminal device is controlled to enter the first operating system by step 101.
  • the first operating system if data needs to be transmitted, such as uploading/downloading data resources, the user may click the upload/download button.
  • the terminal device after the terminal device receives the data transmission instruction in step 102, the terminal device responds to the data transmission instruction, and determines the first wireless fidelity module in the first operating system and the second wireless in the second operating system. Whether the fidelity module is turned on.
  • first wireless fidelity module and the second wireless fidelity module are both in an open state, control the first wireless fidelity module and the second wireless fidelity module to separately transmit from the two ends of the data packet to be transmitted.
  • the first wireless fidelity module and the second wireless fidelity module may be used to wait for The two ends of the transmission data packet are respectively transmitted.
  • the transmission ends If the data is uploaded, the network device side connects the received data packets in sequence to obtain complete data, if the data is downloaded. The terminal device side connects the downloaded data packets in order to obtain complete data.
  • the terminal device when the terminal device runs the first operating system, it can separately transmit from both ends of the data packet to be transmitted, thereby improving data transmission efficiency.
  • FIG. 2 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present invention.
  • the first operating system is used to control the first wireless fidelity module and the second wireless fidelity module
  • the second operating system is only used to control the second wireless fidelity module.
  • the illustrated data transmission method may include the following steps:
  • the terminal device runs the first operating system, receives the data transmission instruction, and determines the first wireless fidelity module in the first operating system and the second wireless security in the second operating system. Whether the true module is in the open state, if one of the two is not in the open state or the two wireless fidelity modules are not in the open state, the terminal device outputs a prompt message to prompt the user to open the corresponding wireless fidelity module.
  • the prompt information may be represented by a pop-up box, and the pop-up box may specifically write the name of the wireless fidelity module that is not activated.
  • first wireless fidelity module and the second wireless fidelity module are all in an open state, divide the data packet to be transmitted into N sub-packets, where N is an integer greater than 1.
  • the first wireless fidelity module and the second wireless fidelity module may be controlled in the first operating system, if the first wireless fidelity module in the first operating system and the second in the second operating system When the wireless fidelity module is in the on state, the first wireless fidelity module and the second wireless fidelity module may separately transmit from the two ends of the data packet to be transmitted, and before the transmission, the data packet to be transmitted may be divided into N. Sub-packets, where N is an integer greater than one.
  • the N sub-packets are numbered in the positive order from the start packet.
  • the first wireless fidelity module in the first operating system can be controlled to start the positive sequence transmission from the start packet, in the second operating system.
  • the second wireless fidelity module starts the reverse transmission from the end packet.
  • the data packet to be transmitted may be divided into eight data packets of 1, 2, 3, 4, 5, 6, 7, and 8, and the first wireless fidelity module starts the positive sequence transmission from the first data packet.
  • the second wireless fidelity module starts the reverse transmission from the 8th data packet.
  • the first wireless fidelity module and the second wireless fidelity module are currently transmitting the data packet i, and the data packet i is completely received, stopping the data transmission, where the data packet i is in the data packet to be transmitted. Any packet.
  • the data packet number currently transmitted by the first wireless fidelity module and the second wireless fidelity are monitored in real time. The data packet number currently transmitted by the module, and determining whether the two data packet numbers are the same. If the first wireless fidelity module and the second wireless fidelity module are currently transmitting the data packet i, and the data packet i is completely received, then The data transmission is stopped, wherein the data packet i is any data packet in the data packet to be transmitted.
  • the first wireless fidelity module is transmitting the fifth data packet, and at this time, the second wireless fidelity module is also transmitting the fifth data packet, and after the end of the fifth data packet transmission, the data transmission is stopped, and finally The data receiving end combines the serial number of the data packets transmitted by the first wireless fidelity module and the second wireless fidelity module to obtain complete data. If the data is uploaded, the data packets are merged on the network device side, and if the data is downloaded, the data packets are merged on the terminal device side.
  • the terminal device when the terminal device runs the first operating system, it can separately transmit from both ends of the data packet to be transmitted, thereby improving data transmission efficiency.
  • FIG. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, where a first operating system is used to control a first wireless fidelity module and a second wireless fidelity module, and the second operating system is only For controlling the second wireless fidelity module, as shown in FIG. 3, the terminal device may include:
  • the running unit 301 is configured to run the first operating system
  • the terminal device can support dual system operation, and two independent wireless fidelity modules are preset in the terminal device, which are respectively used by the dual system, and in the dual system, the respective wireless fidelity modules can be performed.
  • Independent control for example, the first operating system corresponds to the first wireless fidelity module, the second operating system corresponds to the second wireless fidelity module, and the first wireless fidelity module can be turned on or off in the first operating system, in the second The second wireless fidelity module can be turned on or off in the operating system, and the first wireless fidelity module and the second wireless fidelity module can be connected to the same or different WIFI hotspots.
  • the first operating system may represent a secure operating system
  • the second operating system may represent a common operating system
  • the first wireless fidelity module and the second wireless fidelity module may be controlled in the secure operating system.
  • the ordinary operating system only the second wireless fidelity module can be controlled, to avoid operating or controlling data in the security system in the ordinary operating system, and improving the security of data in the security system.
  • the first wireless fidelity module and the second wireless fidelity module may be utilized for dual channel transmission.
  • the receiving unit 302 is configured to receive a data transmission instruction
  • the determining unit 303 is configured to determine, according to the data transmission instruction, whether the first wireless fidelity module and the second wireless fidelity module are in an on state;
  • the control unit 304 is configured to control the first wireless fidelity module and the second wireless fidelity module to perform respectively from the two ends of the data packet to be transmitted when the first wireless fidelity module and the second wireless fidelity module are both in an open state. transmission.
  • the receiving unit 302 receives the data transmission instruction, and the determining unit 303 determines the first wireless fidelity module and the second wireless protection in response to the data transmission instruction of the receiving unit 302. If the true module is in the on state, the control unit 304 controls the first wireless fidelity module and the second wireless fidelity module from the data packet to be transmitted when both the first wireless fidelity module and the second wireless fidelity module are in an on state. Both ends transmit separately.
  • the terminal device when the terminal device runs the first operating system, the terminal device can separately transmit from the two ends of the data packet to be transmitted, thereby improving data transmission efficiency.
  • FIG. 4 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • the terminal device shown in FIG. 4 is optimized by the terminal device shown in FIG. 3. Compared with the terminal device shown in FIG. 3, the terminal device shown in FIG.
  • the prompting unit 305 is configured to output prompt information when the first wireless fidelity module or the second wireless fidelity module is not in an open state.
  • the determining unit 303 determines whether the first wireless fidelity module and the second wireless fidelity module are in an on state, if the first wireless fidelity module or the second wireless fidelity module is not in an open state, Then output a prompt message for prompting the user to turn on the corresponding wireless fidelity module.
  • the terminal device shown in FIG. 4 may further include:
  • the dividing unit 306 is configured to divide the data packet to be transmitted into N sub-data packets, where N is an integer greater than one;
  • the numbering unit 307 is configured to number the N sub-packets in the positive order from the start packet.
  • the determining unit 303 determines whether the first wireless fidelity module and the second wireless fidelity module are in an open state, if the first wireless fidelity module and the second wireless fidelity module are both in an open state, then The data packet to be transmitted is divided into N sub-packets by the dividing unit 306, where N is an integer greater than 1, and then the N sub-packets are numbered in the positive order from the start packet by the numbering unit 307.
  • the control unit 304 is specifically configured to control the first wireless fidelity module to start the positive sequence transmission from the start packet, and the second wireless fidelity module to start the reverse transmission from the end packet.
  • the control unit 304 controls the first wireless fidelity module to start the positive sequence transmission from the starting packet, and the second wireless fidelity module. Reverse transmission starts from the end packet.
  • the terminal device shown in FIG. 4 may further include:
  • the determining unit 308 is configured to determine whether the data packet number currently transmitted by the first wireless fidelity module is the same as the data packet number currently transmitted by the second wireless fidelity module;
  • the executing unit 309 is configured to stop data transmission when the first wireless fidelity module and the second wireless fidelity module are currently transmitting the data packet i, and the data packet i is completely received, wherein the data packet i is to be transmitted. Any packet in the packet.
  • the control unit 304 controls the first wireless fidelity module to start the positive sequence transmission from the start packet, and after the second wireless fidelity module starts the reverse transmission from the end packet, the determining unit 308 monitors the first wireless fidelity in real time.
  • the foregoing unit or subunit may be combined, divided, and deleted according to actual needs.
  • FIG. 5 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • the first operating system is used to control the first wireless fidelity module and the second wireless fidelity module
  • the second operating system is only used to control the second wireless fidelity module.
  • the terminal device may include:
  • the structure of the terminal device shown in FIG. 5 does not constitute a limitation of the present invention. It may be a bus-shaped structure or a star-shaped structure, and may also include more structures than those shown in FIG. 5. More or less parts, or some parts, or different parts.
  • the terminal device shown in FIG. 5 includes, but is not limited to, various terminal devices such as a mobile phone, a mobile computer, a tablet computer, and a personal digital assistant (PDA).
  • PDA personal digital assistant
  • the input unit 501 is arranged to implement user interaction with the terminal device and/or information input into the terminal device.
  • the input unit 501 can be a touch panel, and the touch panel is also called a touch screen or a touch screen, and can collect an operation action touched or approached by the user.
  • the user uses an action of any suitable object or accessory such as a finger or a stylus on or near the touch panel, and drives the corresponding connecting device according to a preset program.
  • the touch panel may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device and converts it into The contact coordinates are sent to the processor unit 502.
  • the touch controller can also receive commands from the processor unit 502 and execute them.
  • touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the processor unit 502 is a control center of the terminal device that connects various portions of the entire terminal device using various interfaces and lines, by running or executing program codes and/or modules stored in the storage unit 504, and by calling the storage in the storage unit 504. Data within to perform various functions of the terminal device and/or process data.
  • the processor unit 502 may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • the processor unit 502 may include only a central processing unit (CPU), or may be a CPU, a digital signal processor (DSP), or a graphics processing unit (GPU). And a combination of control chips (eg, baseband chips) in the communication unit.
  • the CPU may be a single operation core, and may also include a multi-operation core.
  • the output unit 503 may include, but is not limited to, an image output unit, a sound output, and a tactile output unit.
  • the image output unit is used to output text, pictures, and/or video.
  • the image output unit may include a display panel, such as a display configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or a field emission display (FED). panel.
  • the image output unit may comprise a reflective display, such as an electrophoretic display, or a display utilizing an Interferometric Modulation of Light.
  • the image output unit may comprise a single display or multiple displays of different sizes.
  • the touch panel used by the input unit 501 can also serve as the display panel of the output unit 503 at the same time.
  • the input unit 501 and the output unit 503 are two independent components to implement the input and output functions of the smart terminal, in some embodiments, the touch panel and the display panel may be integrated into one. Input and output functions of intelligent terminals.
  • the storage unit 504 can be used to store program code and modules, and the processor unit 502 executes various functional applications of the terminal device and implements data processing by running program code and modules stored in the storage unit 504.
  • the storage unit 504 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, program code required for at least one function, such as running a first operating system, receiving a data transmission instruction, and determining a first wireless fidelity.
  • the storage unit 504 may include a volatile memory, such as a nonvolatile volatile random access memory (NVRAM) or a phase change random access memory (PRAM).
  • NVRAM nonvolatile volatile random access memory
  • PRAM phase change random access memory
  • a magnetoresistive random access memory MRAM
  • a non-volatile memory such as at least one disk storage device, electronically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), flash memory devices such as NOR flash memory or NAND flash memory.
  • the non-volatile memory stores operating system and program code executed by the processor unit.
  • the processor unit loads the running program and data from the non-volatile memory into the memory and stores the digital content in a large number of storage devices.
  • the operating system includes controls and management of general system tasks such as memory management, storage device control, power management, etc., as well as various components and/or drivers that facilitate communication between various hardware and software.
  • the operating system may be an Android system of Google Inc., an iOS system developed by Apple Inc., or a Windows operating system developed by Microsoft Corporation, or an embedded operating system such as Vxworks.
  • the first wireless fidelity module 505 and the second wireless fidelity module 506 can be connected to the same or different WIFI hotspots, and in the dual system of the terminal devices, the first operating system can control the first wireless fidelity module 505 and the second The wireless fidelity module 506, the second operating system is only used to control the second wireless fidelity module 506.
  • Power source 507 is used to power different components of the terminal device to maintain its operation.
  • the power source 507 can be a built-in battery, such as a common lithium ion battery, a nickel metal hydride battery, etc., and an external power source that directly supplies power to the terminal device, such as an AC adapter.
  • the power supply 507 can also be more widely defined, for example, can also include a power management system, a charging system, a power failure detection circuit, a power converter or an inverter, and a power status indicator (eg, Light-emitting diodes), as well as any other components associated with the generation, management and distribution of electrical energy of the terminal device.
  • the processor unit 502 can call the program code stored in the storage unit 504 for performing the following operations:
  • the first wireless fidelity module 505 and the second wireless fidelity module 506 are both in the on state, the first wireless fidelity module 505 and the second wireless fidelity module 506 are controlled to transmit from the two ends of the data packet to be transmitted.
  • the processor unit 502 calls the program code stored in the storage unit 504, and is further configured to perform the following operations:
  • the prompt information is output through the output unit 503.
  • the processor unit 502 calls the program code stored in the storage unit 504, and is further configured to perform the following operations:
  • the data packet to be transmitted is divided into N sub-packets, where N is an integer greater than one;
  • the N sub-packets are numbered in the positive order from the start packet
  • the first wireless fidelity module 505 is controlled to initiate a positive sequence transmission from the start packet, and the second wireless fidelity module 506 begins the reverse transmission from the end packet.
  • the processor unit 502 calls the program code stored in the storage unit 504, and is further configured to perform the following operations:
  • the data transmission is stopped, wherein the data packet i is in the data packet to be transmitted. Any packet.
  • the terminal device described in FIG. 5 when the terminal device runs the first operating system, it can separately transmit from both ends of the data packet to be transmitted, thereby improving data transmission efficiency.
  • each unit included is only divided according to functional logic, but is not limited to the foregoing division, as long as the corresponding function can be implemented;
  • the specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明实施例公开了一种数据传输方法及终端设备,在该方法中,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,该方法包括:运行所述第一操作系统;接收数据传输指令;响应所述数据传输指令确定所述第一无线保真模块以及所述第二无线保真模块是否处于开启状态;若所述第一无线保真模块以及所述第二无线保真模块均处于开启状态,则控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输。实施本发明实施例,在终端设备运行第一操作系统时,可以从待传输数据包的两端分别进行传输,提高了数据的传输效率。

Description

一种数据传输方法及终端设备
本申请要求于2016年3月31日提交中国专利局,申请号为201610200234.X、发明名称为“一种数据传输方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通信技术领域,尤其涉及一种数据传输方法及终端设备。
背景技术
随着终端设备技术的发展,几乎所有智能手机、平板电脑、笔记本电脑等终端设备都支持无线保真(Wireless Fidelity,WIFI)进行网络连接,但是,在使用WIFI设备(如无线路由器)连接的网络时,当多个终端设备连接到同一个WIFI设备同时上网,或者,当终端设备的传输数据量较大、传输速度较高时,终端设备的上传/下载速度会变得很慢,甚至有可能出现通信中断,导致数据传输速度缓慢,降低了数据的传输效率。
发明内容
本发明实施例提供了一种数据传输方法及终端设备,在终端设备运行第一操作系统时,可以从待传输数据包的两端分别进行传输,提高了数据的传输效率。
本发明实施例第一方面公开了一种数据传输方法,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,所述方法包括:
运行所述第一操作系统;
接收数据传输指令;
响应所述数据传输指令确定所述第一无线保真模块以及所述第二无线保真模块是否处于开启状态;
若所述第一无线保真模块以及所述第二无线保真模块均处于开启状态,则控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输。
作为一种可选的实施方式,所述控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输之前,所述方法还包括:
将待传输数据包划分成N个子数据包,其中N为大于1的整数;
从起始包开始对所述N个子数据包按正序进行编号。
作为一种可选的实施方式,所述控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输,包括:
控制所述第一无线保真模块从起始包开始正序传输,以及所述第二无线保真模块从结束包开始倒序传输。
作为一种可选的实施方式,所述方法还包括:
判断所述第一无线保真模块当前传输的数据包号与所述第二无线保真模块当前传输的数据包号是否相同;
若所述第一无线保真模块和所述第二无线保真模块当前均在传输数据包i,且所述数据包i被完整接收时,则停止数据传输,其中,所述数据包i为所述待传输数据包中任一数据包。
作为一种可选的实施方式,所述响应所述数据传输指令确定所述第一无线保真模块以及所述第二无线保真模块是否处于开启状态之后,所述方法还包括:
若所述第一无线保真模块或者所述第二无线保真模块不是处于开启状态,则输出提示信息。
本发明实施例第二方面公开了一种终端设备,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,所述终端设备包括:
运行单元,设置为运行所述第一操作系统;
接收单元,设置为接收数据传输指令;
确定单元,设置为响应所述数据传输指令确定所述第一无线保真模块以及所述第二无线保真模块是否处于开启状态;
控制单元,设置为在所述第一无线保真模块以及所述第二无线保真模块均处于开启状态时,控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输。
作为一种可选的实施方式,所述终端设备还包括:
划分单元,设置为将待传输数据包划分成N个子数据包,其中N为大于1的整数;
编号单元,设置为从起始包开始对所述N个子数据包按正序进行编号。
作为一种可选的实施方式,
所述控制单元,具体设置为控制所述第一无线保真模块从起始包开始正序传输,以及所述第二无线保真模块从结束包开始倒序传输。
作为一种可选的实施方式,所述终端设备还包括:
判断单元,设置为判断所述第一无线保真模块当前传输的数据包号与所述第二无线保真模块当前传输的数据包号是否相同;
执行单元,设置为在所述第一无线保真模块和所述第二无线保真模块当前均在传输数据包i,且所述数据包i被完整接收时,停止数据传输,其中,所述数据包i为所述待传输数据包中任一数据包。
作为一种可选的实施方式,所述终端设备还包括:
提示单元,设置为在所述第一无线保真模块或者所述第二无线保真模块不是处于开启状态时,输出提示信息。
从以上技术方案可以看出,本发明实施例具有以下优点:在本发明实施例中,终端设备中的第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,通过在终端设备中运行第一操作系统,接收数据传输指令,响应上述数据传输指令确定第一无线保真模块以及第二无线保真模块是否处于开启状态,进一步地,在第一无线保真模块以及第二无线保真模块均处于开启状态时,控制第一无线保真模块以及第二无线保真模块从待传输数据包的两端分别进行传输。实施本发明实施例,在终端设备运行第一操作系统时可以通过第一无线保真模块和第二无线保真模块从待传输数据包的两端分别进行传输,提高了数据的传输效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例公开的一种数据传输方法的流程示意图;
图2为本发明实施例公开的另一种数据传输方法的流程示意图;
图3为本发明实施例公开的一种终端设备的结构示意图;
图4为本发明实施例公开的另一种终端设备的结构示意图;
图5为本发明实施例公开的另一种终端设备的结构示意图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”和“第二”是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
本发明实施例提供了一种数据传输方法及终端设备,在终端设备运行第一操作系统时,可以从待传输数据包的两端分别进行传输,提高了数据的传输效率。
本发明实施例中,终端设备可以包括手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)以及移动互联网设备(Mobile Internet Device,MID)等各类终端设备,本发明实施例后续不作重复。其中,终端设备包括两个操作系统以及两个无线保真模块,并且第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块。
请参阅图1,图1是本发明实施例公开的一种数据传输方法的流程示意图。在图1所示的方法中,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,其中,图1所示的数据传输方法可以包括以下步骤:
101、运行第一操作系统;
本发明实施例中,终端设备可以支持双系统运行,并且在终端设备中预先设置有两个独立的无线保真模块,分别给双系统使用,在双系统中可以对各自的无线保真模块进行独立控制,例如第一操作系统与第一无线保真模块对应,第二操作系统与第二无线保真模块对应,在第一操作系统中可以打开或者关闭第一无线保真模块,在第二操作系统中可以打开或者关闭第二无线保真模块,并且第一无线保真模块和第二无线保真模块可以连接到相同或者不同的WIFI热点。
作为一种可选的实施方式,第一操作系统可以表示安全操作系统,第二操作系统可以表示普通操作系统,并且在安全操作系统中可以控制第一无线保真模块和第二无线保真模块,在普通操作系统中仅能控制第二无线保真模块,避免在普通操作系统中操作或者控制安全系统中的数据,提高安全系统中数据的安全性。
作为一种可选的实施方式,在终端设备开机初始化时,依次执行第一无线保真模块和第二无线保真模块的上电初始化以及功能自检,并且在完成自检之后均进入休眠模式以便节省电量,若用户进入安全操作系统或者普通操作系统时,可以选择性开启对应的无线保真模块,此时,被开启的无线保真模块将退出休眠状态进入工作状态,另外一个没有被开启的无线保真模块继续保持休眠状态,当用户关闭某一个无线保真模块时,该无线保真模块则进入到休眠状态,在终端设备关机之后关闭两个无线保真模块的电源。
作为一种可选的实施方式,在第一操作系统(即安全操作系统)中进行数据传输时,可以利用第一无线保真模块和第二无线保真模块进行双通道传输。用户可以通过长按关机键从弹出的对话框中选择进入安全操作系统,或者点击显示屏上的安全操作系统图标进入安全操作系统,或者通过语音控制进入安全操作系统,具体采用何种方式进入安全操作系统本发明实施例不作唯一性限定。
102、接收数据传输指令;
本发明实施例中,通过步骤101控制终端设备进入第一操作系统,在第一操作系统中,如果需要传输数据,比如上传/下载数据资源,则用户可以点击上传/下载按钮。
103、响应上述数据传输指令确定第一无线保真模块以及第二无线保真模块是否处于开启状态;
本发明实施例中,终端设备通过步骤102接收数据传输指令之后,该终端设备响应上述数据传输指令,并确定第一操作系统中的第一无线保真模块和第二操作系统中的第二无线保真模块是否处于开启状态。
104、若第一无线保真模块以及第二无线保真模块均处于开启状态,则控制第一无线保真模块以及第二无线保真模块从待传输数据包的两端分别进行传输。
本发明实施例中,通过步骤103的判断之后,若第一无线保真模块以及第二无线保真模块均处于开启状态,则可以利用第一无线保真模块和第二无线保真模块从待传输数据包的两端分别进行传输,当传输到相同的数据包时则表示传输结束,若是上传数据,网络设备侧将接收到的数据包按顺序进行连接则可以得到完整的数据,若是下载数据,终端设备侧将下载的数据包按顺序进行连接得到完整的数据。
在图1所描述的方法中,在终端设备运行第一操作系统时,可以从待传输数据包的两端分别进行传输,提高了数据的传输效率。
进一步地,请参阅图2,图2是本发明实施例公开的另一种数据传输方法的流程示意图。在图2所示的方法中,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,其中,图2所示的数据传输方法可以包括以下步骤:
201、运行第一操作系统;
202、接收数据传输指令;
203、响应上述数据传输指令确定第一无线保真模块以及第二无线保真模块是否处于开启状态;
204、若第一无线保真模块或者第二无线保真模块不是处于开启状态,则输出提示信息;
本发明实施例中,通过步骤201~步骤203使得终端设备运行第一操作系统,接收数据传输指令,确定第一操作系统中的第一无线保真模块以及第二操作系统中的第二无线保真模块是否处于开启状态,若两者有一个不是处于开启状态或者两个无线保真模块都不处于开启状态,则通过终端设备输出提示信息,提示用户开启对应的无线保真模块。该提示信息可以以弹出框的形式表示,弹出框中可以具体写出没有启动的无线保真模块的名称。
205、若第一无线保真模块以及第二无线保真模块均处于开启状态,则将待传输数据包划分成N个子数据包,其中N为大于1的整数;
本发明实施例中,在第一操作系统中可以控制第一无线保真模块和第二无线保真模块,若第一操作系统中的第一无线保真模块以及第二操作系统中的第二无线保真模块均处于开启状态时,可以通过第一无线保真模块和第二无线保真模块从待传输数据包的两端分别进行传输,在传输之前,可以将待传输数据包划分成N个子数据包,其中N为大于1的整数。
206、从起始包开始对上述N个子数据包按正序进行编号;
在将待传输数据包划分成N个子数据包之后,从起始包开始对上述N各子数据包按正序进行编号。
207、控制第一无线保真模块从起始包开始正序传输,以及第二无线保真模块从结束包开始倒序传输;
通过步骤205和步骤206将待传输数据包划分成N个子数据包并进行编号之后,可以控制第一操作系统中的第一无线保真模块从起始包开始正序传输,第二操作系统中的第二无线保真模块从结束包开始倒序传输。例如,可以将待传输的数据包划分成1、2、3、4、5、6、7、8一共八个数据包,则第一无线保真模块从第1号数据包开始正序传输,第二无线保真模块从第8号数据包开始倒序传输。
208、判断第一无线保真模块当前传输的数据包号与第二无线保真模块当前传输的数据包号是否相同;
209、若第一无线保真模块和第二无线保真模块当前均在传输数据包i,且数据包i被完整接收时,则停止数据传输,其中,上述数据包i为待传输数据包中任一数据包。
在第一无线保真模块从起始包开始正序传输以及第二无线保真模块从结束包开始倒序传输时,实时监测第一无线保真模块当前传输的数据包号与第二无线保真模块当前传输的数据包号,并判断两个数据包号是否相同,若第一无线保真模块和第二无线保真模块当前均在传输数据包i,且数据包i被完整接收时,则停止数据传输,其中,上述数据包i为待传输数据包中任一数据包。例如,第一无线保真模块正在传输第5号数据包,此时第二无线保真模块也正在传输第5号数据包,则在第5号数据包传输结束之后,停止数据传输,最后在数据接收端对第一无线保真模块和第二无线保真模块传输的数据包按序号进行合并则可以得到完整的数据。若是上传数据,则在网络设备侧对数据包进行合并,若是下载数据,则在终端设备侧对数据包进行合并。
在图2所描述的方法中,在终端设备运行第一操作系统时,可以从待传输数据包的两端分别进行传输,提高了数据的传输效率。
请参阅图3,图3是本发明实施例公开的一种终端设备的结构示意图,其中,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,如图3所示,该终端设备可以包括:
运行单元301,设置为运行第一操作系统;
本发明实施例中,终端设备可以支持双系统运行,并且在终端设备中预先设置有两个独立的无线保真模块,分别给双系统使用,在双系统中可以对各自的无线保真模块进行独立控制,例如第一操作系统与第一无线保真模块对应,第二操作系统与第二无线保真模块对应,在第一操作系统中可以打开或者关闭第一无线保真模块,在第二操作系统中可以打开或者关闭第二无线保真模块,并且第一无线保真模块和第二无线保真模块可以连接到相同或者不同的WIFI热点。
作为一种可选的实施方式,第一操作系统可以表示安全操作系统,第二操作系统可以表示普通操作系统,并且在安全操作系统中可以控制第一无线保真模块和第二无线保真模块,在普通操作系统中仅能控制第二无线保真模块,避免在普通操作系统中操作或者控制安全系统中的数据,提高安全系统中数据的安全性。
作为一种可选的实施方式,在第一操作系统(即安全操作系统)中进行数据传输时,可以利用第一无线保真模块和第二无线保真模块进行双通道传输。
接收单元302,设置为接收数据传输指令;
确定单元303,设置为响应上述数据传输指令确定第一无线保真模块以及第二无线保真模块是否处于开启状态;
控制单元304,设置为在第一无线保真模块以及第二无线保真模块均处于开启状态时,控制第一无线保真模块以及第二无线保真模块从待传输数据包的两端分别进行传输。
本发明实施例中,通过运行单元301进入第一操作系统之后,通过接收单元302接收数据传输指令,通过确定单元303响应接收单元302的数据传输指令确定第一无线保真模块以及第二无线保真模块是否处于开启状态,控制单元304在第一无线保真模块以及第二无线保真模块均处于开启状态时,控制第一无线保真模块以及第二无线保真模块从待传输数据包的两端分别进行传输。
在图3所描述的终端设备中,在终端设备运行第一操作系统时,可以从待传输数据包的两端分别进行传输,提高了数据的传输效率。
请一并参阅图4,图4是本发明实施例公开的另一种终端设备的结构示意图。其中,图4所示的终端设备是由图3所示的终端设备进行优化得到的,与图3所示的终端设备相比,图4所示的终端设备还包括:
提示单元305,设置为在第一无线保真模块或者第二无线保真模块不是处于开启状态时,输出提示信息。
本发明实施例中,在通过确定单元303确定第一无线保真模块以及第二无线保真模块是否处于开启状态之后,若第一无线保真模块或者第二无线保真模块不是处于开启状态,则输出提示信息,用于提示用户开启相应的无线保真模块。
可选地,图4所示的终端设备还可以包括:
划分单元306,设置为将待传输数据包划分成N个子数据包,其中N为大于1的整数;
编号单元307,设置为从起始包开始对上述N个子数据包按正序进行编号。
本发明实施例中,通过确定单元303确定第一无线保真模块以及第二无线保真模块是否处于开启状态之后,若第一无线保真模块以及第二无线保真模块均处于开启状态,则通过划分单元306将待传输数据包划分成N个子数据包,其中N为大于1的整数,然后通过编号单元307从起始包开始对上述N个子数据包按正序进行编号。
可选地,在如图4所示的终端设备中,
控制单元304,具体设置为控制第一无线保真模块从起始包开始正序传输,以及第二无线保真模块从结束包开始倒序传输。
本发明实施例中,通过划分单元306和编号单元307对待传输数据包进行划分和编号之后,控制单元304控制第一无线保真模块从起始包开始正序传输,以及第二无线保真模块从结束包开始倒序传输。
可选地,图4所示的终端设备还可以包括:
判断单元308,设置为判断第一无线保真模块当前传输的数据包号与第二无线保真模块当前传输的数据包号是否相同;
执行单元309,设置为在第一无线保真模块和第二无线保真模块当前均在传输数据包i,且数据包i被完整接收时,停止数据传输,其中,上述数据包i为待传输数据包中任一数据包。
本发明实施例中,控制单元304控制第一无线保真模块从起始包开始正序传输,以及第二无线保真模块从结束包开始倒序传输之后,判断单元308实时监测第一无线保真模块当前传输的数据包号与第二无线保真模块当前传输的数据包号,并判断两者的数据包号是否相同,执行单元309在第一无线保真模块和第二无线保真模块当前均在传输数据包i,且数据包i被完整接收时,停止数据传输,其中,上述数据包i为待传输数据包中任一数据包。
本发明实施例中,上述的单元或子单元可以根据实际需要进行合并、划分和删减。
请参阅图5,图5是本发明实施例公开的另一种终端设备的结构示意图。其中,在图5所示的终端设备中,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块。如图5所示,该终端设备可以包括:
输入单元501、处理器单元502、输出单元503、存储单元504、第一无线保真模块505、第二无线保真模块506以及电源507等组件。这些组件通过一条或多条总线进行通信。本领域技术人员可以理解,图5所示的终端设备的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图5所示的结构更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施方式中,图5所示的终端设备包括但不限于移动电话、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)等各种终端设备。
输入单元501设置为实现用户与终端设备的交互和/或信息输入到终端设备中。在本发明具体实施方式中,输入单元501可以是触控面板,触控面板也称为触摸屏或触控屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或接近触控面板的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收电信号,并将它转换成触点坐标,再送给处理器单元502。触摸控制器还可以接收处理器单元502发来的命令并执行。此外,可以采用电阻式、电容式、红外线(Infrared)以及表面声波等多种类型实现触控面板。
处理器单元502为终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储单元504内的程序代码和/或模块,以及调用存储在存储单元504内的数据,以执行终端设备的各种功能和/或处理数据。处理器单元502可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC 所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器单元502可以仅包括中央处理器(Central ProcessingUnit,简称CPU),也可以是CPU、数字信号处理器(digital signal processor,简称DSP)、图形处理器(Graphic Processing Unit,简称GPU)及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU 可以是单运算核心,也可以包括多运算核心。
输出单元503可以包括但不限于影像输出单元、声音输出和触感输出单元。影像输出单元用于输出文字、图片和/或视频。影像输出单元可包括显示面板,例如采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)、场发射显示器(field emission display,简称FED)等形式来配置的显示面板。或者影像输出单元可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用光干涉调变技术(Interferometric Modulation of Light)的显示器。影像输出单元可以包括单个显示器或不同尺寸的多个显示器。在本发明的具体实施方式中,上述输入单元501所采用的触控面板亦可同时作为输出单元503的显示面板。虽然在图5中,输入单元501与输出单元503是作为两个独立的部件来实现智能终端的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成一体而实现智能终端的输入和输出功能。
存储单元504可用于存储程序代码以及模块,处理器单元502通过运行存储在存储单元504的程序代码以及模块,从而执行终端设备的各种功能应用以及实现数据处理。存储单元504主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的程序代码,比如运行第一操作系统,接收数据传输指令,确定第一无线保真模块505和第二无线保真模块506是否处于开启状态,以及在两者都处于开启状态时,控制第一无线保真模块505和第二无线保真模块506从待传输数据包的两端分别进行传输等;数据存储区可存储根据终端设备的使用所创建的数据(比如视音频数据、文本数据等)等。在本发明具体实施方式中,存储单元504可以包括易失性存储器,例如非挥发性动态随机存取内存(Nonvolatile RandomAccess Memory,简称NVRAM)、相变化随机存取内存(Phase Change RAM,简称PRAM)、磁阻式随机存取内存(Magetoresistive RAM,简称MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可抹除可规划只读存储器(Electrically Erasable ProgrammableRead-OnlyMemory,简称EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)。非易失存储器储存处理器单元所执行的操作系统及程序代码。处理器单元从非易失存储器加载运行程序与数据到内存并将数字内容储存于大量储存装置中。操作系统包括用于控制和管理常规系统任务,例如内存管理、存储设备控制、电源管理等,以及有助于各种软硬件之间通信的各种组件和/或驱动器。在本发明实施方式中,操作系统可以是Google公司的Android系统、Apple公司开发的iOS系统或Microsoft公司开发的Windows操作系统等,或者是Vxworks这类的嵌入式操作系统。
第一无线保真模块505和第二无线保真模块506可以连接至相同或者不同的WIFI热点,并且在终端设备的双系统中,第一操作系统可以控制第一无线保真模块505和第二无线保真模块506,第二操作系统仅用于控制第二无线保真模块506。
电源507用于给终端设备的不同部件进行供电以维持其运行。作为一般性理解,电源507可以是内置的电池,例如常见的锂离子电池、镍氢电池等,也包括直接向终端设备供电的外接电源,例如AC适配器等。在本发明的一些实施方式中,电源507还可以作更为广泛的定义,例如还可以包括电源管理系统、充电系统、电源故障检测电路、电源转换器或逆变器、电源状态指示器(如发光二极管),以及与终端设备的电能生成、管理及分布相关联的其他任何组件。
在图5所示的终端设备中,处理器单元502可以调用存储单元504中存储的程序代码,用于执行以下操作:
运行存储单元504存储的第一操作系统;
接收用户通过输入单元501输入的数据传输指令;
响应上述数据传输指令确定第一无线保真模块505以及第二无线保真模块506是否处于开启状态;
若第一无线保真模块505以及第二无线保真模块506均处于开启状态,则控制第一无线保真模块505以及第二无线保真模块506从待传输数据包的两端分别进行传输。
作为另一种可选的实施方式,处理器单元502调用存储单元504中存储的程序代码,还设置为执行以下操作:
若第一无线保真模块505或者第二无线保真模块506不是处于开启状态,则通过输出单元503输出提示信息。
作为另一种可选的实施方式,处理器单元502调用存储单元504中存储的程序代码,还设置为执行以下操作:
若第一无线保真模块505以及第二无线保真模块506均处于开启状态,则将待传输数据包划分成N个子数据包,其中N为大于1的整数;
从起始包开始对上述N个子数据包按正序进行编号;
控制第一无线保真模块505从起始包开始正序传输,以及第二无线保真模块506从结束包开始倒序传输。
作为另一种可选的实施方式,处理器单元502调用存储单元504中存储的程序代码,还设置为执行以下操作:
判断第一无线保真模块505当前传输的数据包号与第二无线保真模块506当前传输的数据包号是否相同;
若第一无线保真模块505和第二无线保真模块506当前均在传输数据包i,且数据包i被完整接收时,则停止数据传输,其中,上述数据包i为待传输数据包中任一数据包。
在图5所描述的终端设备中,在终端设备运行第一操作系统时,可以从待传输数据包的两端分别进行传输,提高了数据的传输效率。
值得注意的是,上述终端设备的实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。

Claims (10)

  1. 一种数据传输方法,其特征在于,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,所述方法包括:
    运行所述第一操作系统;
    接收数据传输指令;
    响应所述数据传输指令确定所述第一无线保真模块以及所述第二无线保真模块是否处于开启状态;
    若所述第一无线保真模块以及所述第二无线保真模块均处于开启状态,则控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输。
  2. 根据权利要求1所述方法,其特征在于,所述控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输之前,所述方法还包括:
    将待传输数据包划分成N个子数据包,其中N为大于1的整数;
    从起始包开始对所述N个子数据包按正序进行编号。
  3. 根据权利要求2所述方法,其特征在于,所述控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输,包括:
    控制所述第一无线保真模块从起始包开始正序传输,以及所述第二无线保真模块从结束包开始倒序传输。
  4. 根据权利要求3所述方法,其特征在于,所述方法还包括:
    判断所述第一无线保真模块当前传输的数据包号与所述第二无线保真模块当前传输的数据包号是否相同;
    若所述第一无线保真模块和所述第二无线保真模块当前均在传输数据包i,且所述数据包i被完整接收时,则停止数据传输,其中,所述数据包i为所述待传输数据包中任一数据包。
  5. 根据权利要求1至4任意一项所述方法,其特征在于,所述响应所述数据传输指令确定所述第一无线保真模块以及所述第二无线保真模块是否处于开启状态之后,所述方法还包括:
    若所述第一无线保真模块或者所述第二无线保真模块不是处于开启状态,则输出提示信息。
  6. 一种终端设备,其特征在于,第一操作系统用于控制第一无线保真模块和第二无线保真模块,第二操作系统仅用于控制第二无线保真模块,所述终端设备包括:
    运行单元,设置为运行所述第一操作系统;
    接收单元,设置为接收数据传输指令;
    确定单元,设置为响应所述数据传输指令确定所述第一无线保真模块以及所述第二无线保真模块是否处于开启状态;
    控制单元,设置为在所述第一无线保真模块以及所述第二无线保真模块均处于开启状态时,控制所述第一无线保真模块以及所述第二无线保真模块从待传输数据包的两端分别进行传输。
  7. 根据权利要求6所述终端设备,其特征在于,所述终端设备还包括:
    划分单元,设置为将待传输数据包划分成N个子数据包,其中N为大于1的整数;
    编号单元,设置为从起始包开始对所述N个子数据包按正序进行编号。
  8. 根据权利要求7所述终端设备,其特征在于,
    所述控制单元,具体设置为控制所述第一无线保真模块从起始包开始正序传输,以及所述第二无线保真模块从结束包开始倒序传输。
  9. 根据权利要求8所述终端设备,其特征在于,所述终端设备还包括:
    判断单元,设置为判断所述第一无线保真模块当前传输的数据包号与所述第二无线保真模块当前传输的数据包号是否相同;
    执行单元,设置为在所述第一无线保真模块和所述第二无线保真模块当前均在传输数据包i,且所述数据包i被完整接收时,停止数据传输,其中,所述数据包i为所述待传输数据包中任一数据包。
  10. 根据权利要求6至9任意一项所述终端设备,其特征在于,所述终端设备还包括:
    提示单元,设置为在所述第一无线保真模块或者所述第二无线保真模块不是处于开启状态时,输出提示信息。
PCT/CN2016/103975 2016-03-31 2016-10-31 一种数据传输方法及终端设备 WO2017166809A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610200234.X 2016-03-31
CN201610200234.XA CN105791413A (zh) 2016-03-31 2016-03-31 一种数据传输方法及终端设备

Publications (1)

Publication Number Publication Date
WO2017166809A1 true WO2017166809A1 (zh) 2017-10-05

Family

ID=56395403

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103975 WO2017166809A1 (zh) 2016-03-31 2016-10-31 一种数据传输方法及终端设备

Country Status (2)

Country Link
CN (1) CN105791413A (zh)
WO (1) WO2017166809A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791413A (zh) * 2016-03-31 2016-07-20 宇龙计算机通信科技(深圳)有限公司 一种数据传输方法及终端设备
CN112073798B (zh) * 2019-06-10 2022-09-23 海信视像科技股份有限公司 一种数据传输方法及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106445A (zh) * 2006-07-14 2008-01-16 华为技术有限公司 家庭网络系统及数据传输方法、家庭网络控制器和终端
WO2011106927A1 (zh) * 2010-03-02 2011-09-09 富士通株式会社 基于ofdma的无线通信系统中的基站及其中使用的资源分配方法
CN102404702A (zh) * 2011-11-07 2012-04-04 中兴通讯股份有限公司 一种无线数据传输方法、装置和系统
CN104614772A (zh) * 2015-01-22 2015-05-13 深圳市市政设计研究院有限公司 一种高密度电法的测量数据传输方法
CN105791413A (zh) * 2016-03-31 2016-07-20 宇龙计算机通信科技(深圳)有限公司 一种数据传输方法及终端设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7907585B2 (en) * 2008-04-18 2011-03-15 Sony Ericsson Mobile Communications Ab Network interface device with shared antenna
CN102547743A (zh) * 2012-01-10 2012-07-04 华为终端有限公司 数据传输系统及方法
CN103108414B (zh) * 2013-01-07 2016-01-13 华为终端有限公司 一种移动终端以及移动终端的信号处理方法
US10211889B2 (en) * 2013-03-13 2019-02-19 Hawk Yin Pang RF architecture utilizing a MIMO chipset for near field proximity sensing and communication
TWI528741B (zh) * 2014-04-10 2016-04-01 智邦科技股份有限公司 通訊裝置
CN105357139A (zh) * 2015-10-30 2016-02-24 小米科技有限责任公司 数据传输方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106445A (zh) * 2006-07-14 2008-01-16 华为技术有限公司 家庭网络系统及数据传输方法、家庭网络控制器和终端
WO2011106927A1 (zh) * 2010-03-02 2011-09-09 富士通株式会社 基于ofdma的无线通信系统中的基站及其中使用的资源分配方法
CN102404702A (zh) * 2011-11-07 2012-04-04 中兴通讯股份有限公司 一种无线数据传输方法、装置和系统
CN104614772A (zh) * 2015-01-22 2015-05-13 深圳市市政设计研究院有限公司 一种高密度电法的测量数据传输方法
CN105791413A (zh) * 2016-03-31 2016-07-20 宇龙计算机通信科技(深圳)有限公司 一种数据传输方法及终端设备

Also Published As

Publication number Publication date
CN105791413A (zh) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2018151505A1 (en) Electronic device and method for displaying screen thereof
WO2017069595A1 (en) Electronic device and method for executing function using speech recognition thereof
WO2017164585A1 (en) Electronic device and control method thereof
WO2019144488A1 (zh) 显示装置、电子设备及屏幕显示控制方法
WO2016105020A1 (en) Apparatus and method for charging electronic device having battery
WO2015030390A1 (en) Electronic device and method for providing content according to field attribute
WO2016036135A1 (en) Method and apparatus for processing touch input
WO2015115852A1 (en) Task scheduling method and apparatus
WO2018076841A1 (zh) 数据分享方法、装置、存储介质及服务器
WO2018171534A1 (zh) 基于移动终端的双摄像头供电控制方法、系统及移动终端
WO2013122324A1 (en) Method of providing information regarding application, device for performing the method, and computer readable recording medium having recorded thereon a program for executing the method
WO2017191889A1 (ko) 전자 장치 및 그 제어 방법
WO2013002547A2 (ko) 외부 디바이스와 도킹되는 휴대 단말 및 그 제어 방법
WO2017010772A1 (en) Apparatus and method for providing memo function
EP2987065A1 (en) Digital device and method of controlling therefor
EP3732558A1 (en) Apparatus and method for providing function associated with keyboard layout
WO2018026164A1 (en) Method of processing touch events and electronic device adapted thereto
WO2017131441A1 (en) Method and electronic device for providing tethering service
WO2019164248A1 (en) Method for adaptively controlling low power display mode and electronic device thereof
WO2019059671A1 (en) ELECTRONIC DEVICE AND ITS CONTROL METHOD
WO2017166809A1 (zh) 一种数据传输方法及终端设备
WO2014003448A1 (en) Terminal device and method of controlling the same
WO2018151429A1 (ko) 알림 제공 방법 및 이를 구현한 전자 장치
WO2019045255A1 (ko) 어플리케이션 시작 방법 및 이를 구현하는 전자 장치
WO2012163216A1 (zh) 一种针对java程序的移动终端输入控制方法和装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16896578

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896578

Country of ref document: EP

Kind code of ref document: A1