WO2020044092A9 - 数据传输方法及其装置 - Google Patents

数据传输方法及其装置

Info

Publication number
WO2020044092A9
WO2020044092A9 PCT/IB2018/057153 IB2018057153W WO2020044092A9 WO 2020044092 A9 WO2020044092 A9 WO 2020044092A9 IB 2018057153 W IB2018057153 W IB 2018057153W WO 2020044092 A9 WO2020044092 A9 WO 2020044092A9
Authority
WO
WIPO (PCT)
Prior art keywords
data
transmission
transmission channel
internet
channel
Prior art date
Application number
PCT/IB2018/057153
Other languages
English (en)
French (fr)
Other versions
WO2020044092A1 (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 WO2020044092A1 publication Critical patent/WO2020044092A1/zh
Publication of WO2020044092A9 publication Critical patent/WO2020044092A9/zh

Links

Classifications

    • 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
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections

Definitions

  • the present application relates to the field of Internet technology, and in particular, to a data transmission method, device, device / terminal / server, and computer-readable medium. Background technique
  • the use ratio of functional machines is still far greater than the use ratio of smart machines, or the development degree of mobile internet connection is still slow, or the foundation of hardware facilities such as the Internet is poor, and cross-platform
  • the transmission technology solution has become an effective way to realize data sharing between different terminals, and solves the situation of no data flow or operator WiFi, or no network or low network speed for data transmission.
  • the purpose of the present application is to provide a data transmission method, device, device / terminal / server, and computer-readable medium, which are used to solve or alleviate the above problems in the prior art.
  • the present application provides a data transmission method, including:
  • an embodiment of the present application provides a data transmission device, including:
  • a first program unit configured to determine a first transmission channel for data transmission and determine an initiated transmission channel switching request
  • a second program unit configured to switch the first transmission channel for data transmission to the second transmission channel according to the transmission channel switching request
  • a third program unit configured to determine a data breakpoint of data transmission when data transmission through the first transmission channel is stopped
  • a fourth program unit configured to perform continuous data transmission according to the second transmission channel and the data breakpoint.
  • an embodiment of the present application provides a device / terminal / server, including:
  • a computer-readable medium configured to store one or more programs
  • an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, a method as described in any of the foregoing embodiments is implemented.
  • the first transmission channel for data transmission is determined by determining the transmission channel switching request initiated, and according to the transmission channel A switching request to switch the first transmission channel for data transmission to the second transmission channel; determining a data breakpoint for data transmission when data transmission through the first transmission channel is stopped, according to the second transmission channel and the data.
  • FIG. 1 is a schematic flowchart of a data transmission method according to Embodiment 1 of the present application.
  • FIG. 2 is a schematic flowchart of a data transmission method in Embodiment 2 of the present application
  • FIG. 3 is a schematic flowchart of a data transmission method in Embodiment 3 of the present application
  • FIG. 4 is a schematic structural diagram of a data transmission device in Embodiment 4 of the present application.
  • FIG. 5 is a schematic structural diagram of a data transmission device according to Embodiment 5 of the present application.
  • FIG. 6 is a schematic structural diagram of a data transmission device according to Embodiment 6 of the present application.
  • FIG. 7 is a schematic structural diagram of a data transmission device in Embodiment 7 of the present application.
  • FIG. 8 is a schematic structural diagram of a device / terminal / server in Embodiment 8 of the present application.
  • FIG. 9 is a hardware structure of a device / terminal / server in Embodiment 9 of the present application. detailed description
  • FIG. 1 is a schematic flowchart of a data transmission method in Embodiment 1 of the present application; as shown in FIG. 1, it may include:
  • S101 Determine a first transmission channel for data transmission and an initiated transmission channel switching request
  • the switching from the near-field transmission channel to the Internet transmission channel is taken as an example for description. Therefore, the first channel is a near-field transmission channel.
  • the data receiver is a user terminal in the local area network
  • the data sender is also a user terminal in the local area network. Data transmission takes place in the local area network.
  • the channel switching operation event is captured to determine the transmission channel switching request initiated in step S101.
  • a channel switching button is configured on the terminal of the data receiver, and the channel switching button may be implemented by software or by hardware.
  • software such as configuring an ICON on the terminal display interface of the data receiver, when the ICON is operated by the user, it is equivalent to generating a channel switching operation event.
  • the network connection management interface by calling the network connection management interface to determine the data The first transmission channel for transmission.
  • the network connection management interface will also be different.
  • the network connection management interface is specifically Connectivity Manager, for example, for the data receiver of the IOS system, the network connection management interface is specifically AFNetworkReachabilityManager.
  • a self-built WIFI is used to build a local area network to achieve the near-field transmission.
  • the local area network may include multiple user terminals, and the user terminals may be smart phones, smart tablets, smart watches, PCs, and so on.
  • This scenario is preferably suitable for scenarios where the hardware infrastructure such as the Internet is poor, there is no traffic and the cloud operator WiFi, or there is no network or low network speed, to achieve data sharing between different user terminals in the same local area network Transmission.
  • This data includes but is not limited to audio and video data, application installation packages, etc.
  • the way of setting up the local area network may be for a terminal to open a hot spot and generate a random connection password, another terminal or multiple terminals search and find the hot spot, and then the user enters
  • the connection password is equivalent to establishing a near-field transmission channel between terminals.
  • the data sender turns on the hotspot and generates connection information, where the content of the connection information is used for the data receiver to establish a direct connection with the data sender through the hotspot
  • Use the connection information to generate a two-dimensional code, and display the two-dimensional code; according to the data receiver scans the two-dimensional code to directly connect with the data sender, which is equivalent to establishing a near Field transmission channel, thus avoiding manually entering the connection password, simple operation, time-consuming, and not easy to make mistakes.
  • the content of the connection information may include the identification of the hot spot, that is, the SSID (Service Setldentifier) of the hot spot opened by the data sender, so that the data receiver can determine the hot spot for direct connection.
  • the content of the connection information may also include the identifier of the data sender, that is, the unique device identifier of the data sender, such as the MAC address of its hotspot module, that is, BSSID (Basic Service Setldentifier), through the identifier of the data sender, The data receiver can determine the data sender to be directly connected with it.
  • connection information may be different according to different connection methods. For example, if the hotspot opened by the data sender has been searched by the data receiver, Then, the content of the connection information may be only the connection password, and there is no hot spot identification (of course, if there is any). For another example, if the data sender turns on the hotspot and hides the hotspot without allowing the data receiver to search for it, the content of the connection information may only have the identification of the hotspot and no connection password (of course, if any). For another example, the above identifier of the data sender may exist alone, or may exist simultaneously with other content as further verification of the other content.
  • connection information may also include other known content, such as an identifier used to indicate that it is connection information, a separator used to divide its different parts, and a verification bit used to indicate its length, format, etc. Wait.
  • the data that can be transmitted on the data sender can be presented in a list or in a better way, so that the data receiver who has data needs can view it intuitively.
  • the data receiver accesses the data sender that can provide data through the built-in LAN, and views the data that can be shared on the data sender or also known as the shareable resource.
  • the resources displayed on the list are configured with download or transmission buttons. When the event that the download or transmission button is operated is captured, the data receiver initiates a data transmission request.
  • the second transmission channel is an Internet transmission channel.
  • the switching of the transmission channel can be achieved by closing one of the transmission channels and starting another transmission channel. Or, it can be realized by suspending one transmission channel and putting the other transmission channel into the ready state.
  • the direct connection between the data receiver and the data sender in step S101 may be disconnected, and at the same time, through data reception
  • the party is connected to the Internet, for example, through the service interface related to the webservice, and further starts the service interface related to the webservice by adopting the AsyncTask process.
  • S103 Determine a data breakpoint of data transmission when data transmission through the first transmission channel is stopped
  • the data transmission through the first transmission channel that is, the near field transmission channel
  • the data transmission through the first transmission channel that is, the near field transmission channel
  • the node of the transmitted data is the data breakpoint.
  • the data receiving party may locally record the unique identifier and the overall size (or also called the length) of the data to be transmitted, and real-time Record the size of the part of the data that has currently been transferred.
  • the data receiving party may locally record the above-mentioned attribute information related to data transmission by creating a transmission task entity.
  • the Internet transmission channel upload the above-mentioned attribute information related to data transmission to the shared data center of the Internet, and the shared data center judges to continue to transmit the remaining part of the file to the data receiver according to these attribute information, effective
  • the switching between the near-field transmission channel and the Internet transmission channel is realized, and the data transmission is flexibly realized.
  • S104 Perform continuous data transmission according to the second transmission channel and the data breakpoint.
  • the data receiver locally records the size of the downloaded data, so that when the subsequent download from the shared data center in the Internet, move the pointer to the corresponding data breakpoint position, continue reading, and transfer the data to the data receiver.
  • FIG. 2 is a schematic flowchart of a data transmission method in Embodiment 2 of the present application; as shown in FIG. 2, it includes:
  • S201 Determine a first transmission channel for data transmission
  • step S201 is similar to the description related to step S101 in the first embodiment.
  • the first transmission channel is an Internet transmission channel
  • the switching from the Internet transmission channel to the near-field transmission channel is taken as an example for description. That is, before the channel is switched, the data receiver obtains the data from the shared data center on the Internet, and after the switch, the data is obtained from the shared data center in the local area network where it is located.
  • the shared data center in the local area network can be the data resource in the local area network.
  • a terminal is an Internet transmission channel
  • the switching from the Internet transmission channel to the near-field transmission channel is taken as an example for description. That is, before the channel is switched, the data receiver obtains the data from the shared data center on the Internet, and after the switch, the data is obtained from the shared data center in the local area network where it is located.
  • the shared data center in the local area network can be the data resource in the local area network.
  • the data when data is transmitted through the Internet transmission channel, the data is stored in a shared data center on the Internet.
  • S202 Call a network connection management interface
  • S203 Determine the transmission channel switching request initiated through the network connection management interface.
  • the available network detection sub-interface or the enabled network detection sub-interface may be used to determine the transmission channel switching request initiated.
  • the available network detection sub-interface or the enabled network detection sub-interface detects that it is currently in use or will soon The transmission channel used.
  • S204 Determine a data breakpoint for data transmission when data transmission through the first transmission channel is stopped
  • the data size and the overall summary of the data are used to determine whether it is part of the data that needs to be uploaded by the breakpoint, and the size of the downloaded data and the summary of the downloaded data are used to determine the data breakpoint.
  • S205 Perform continuous data transmission according to the second transmission channel and the data breakpoint.
  • the data when data transmission is performed through the near field channel, the data is stored in a shared data center in the local area network.
  • the unique identification of the data recorded locally by the receiver of the data data is matched with the unique identification code of the data recorded in the shared data center in the local area network. If they match, the data breakpoint recorded at the data receiver is uploaded to the shared data center in the local area network, and the transmission is continued from the breakpoint location.
  • the data is split into multiple data blocks according to the specified data block size, except for the last data block, the remaining data blocks are numbered in order,
  • the data block size is the specified data block size
  • the last data block size is the actual data block size; and the corresponding data block meta information is generated for each data block.
  • the meta information includes the data block addition time, data block number, data block size, Digital signature, KEY (a string containing data ID, version number, data complete identifier) and other identification parameters of the data block (such as file type, etc.).
  • FIG. 3 is a schematic flowchart of a data transmission method in Embodiment 3 of the present application; as shown in FIG. 3, it includes:
  • S301 Determine a first transmission channel for data transmission and an initiated transmission channel Channel switching request
  • S302 Determine to switch the first transmission channel for data transmission to the second transmission channel according to the transmission channel switching request
  • S303 Transfer the private data in the local area network to a shared data center in the Internet and configure a unique identifier for the private data to perform data connection according to the Internet transmission channel and the data breakpoint transmission.
  • the private data is stored in a shared data center in the local area network and a shared data center in the Internet to switch between transmission channels Then select the correct shared data center for data transmission.
  • a unique identifier is configured for the private data; correspondingly, according to The continuous transmission of data by the Internet transmission channel and the data breakpoint includes: matching the private data to be transmitted according to the unique identification to perform the private data according to the Internet transmission channel and the data breakpoint Continuous transmission.
  • FIG. 4 is a schematic structural diagram of a data transmission device in Embodiment 4 of the present application; as shown in FIG. 4, it includes:
  • the first program unit 401 is configured to determine a first transmission channel for data transmission and an initiated transmission channel switching request
  • the second program unit 402 is configured to switch the first transmission channel for data transmission to the second transmission channel according to the transmission channel switching request;
  • the third program unit 403 is configured to determine a data breakpoint of data transmission when data transmission through the first transmission channel is stopped,
  • the fourth program unit 404 is configured to perform continuous data transmission according to the second transmission channel and the data breakpoint.
  • the first program unit 401 can also be called a channel switching request unit or module
  • the second program unit 402 can also be called a channel switching unit or module
  • the third program unit 403 can also be called To determine the unit or module for the breakpoint
  • the fourth program unit 404 may also be referred to as a continuous transmission unit or module.
  • FIG. 5 is a schematic structural diagram of a data transmission device according to Embodiment 5 of the present application; as shown in FIG. 5, it may include: a first program unit 401, a second program unit 402, and a third program list Element 403.
  • the fourth program unit 404 may further include: a fifth program unit 405, configured to capture channel switching operation events to determine the initiated transmission channel switching request.
  • FIG. 6 is a schematic structural diagram of a data transmission device according to Embodiment 6 of the present application; as shown in FIG. 6, it may include: a first program unit 401, a second program unit 402, a third program unit 403, and a fourth program
  • the unit 404 may further include: a sixth program unit 406, configured to call a network connection management interface to determine a first transmission channel for data transmission.
  • the sixth program unit 406 is further configured to call the available network detection sub-interface in the network connection management interface or the enabled network detection sub-interface to determine the initiated transmission channel switching request.
  • the data when data transmission is performed through the near field channel, the data is stored in a shared data center in the local area network; when data transmission is performed through the Internet transmission channel, the data is stored in In the shared data center in the Internet.
  • the public data is stored in a shared data center in the local area network and a shared data center in the Internet.
  • FIG. 7 is a schematic structural diagram of a data transmission device in Embodiment 7 of this application; as shown in FIG. 7, it includes: It may include: a first program unit 401, a second program unit 402, a third program unit 403, The fourth program unit 404 may further include a seventh program unit 407 configured to transfer the private data in the local area network to the shared data center in the Internet, according to the Internet transmission channel and the data breakpoint Continuous data transmission.
  • an eighth program unit 408 configured to configure a unique identifier for private data; correspondingly, the fourth program unit 404 is further configured to match the private to be connected for transmission according to the unique identifier Data, so as to perform continuous transmission of the private data according to the Internet transmission channel and the data breakpoint.
  • FIG. 8 is a schematic structural diagram of a device / terminal / server in Embodiment 8 of the present application; the device / terminal / server may include:
  • processors 801 one or more processors 801;
  • the computer-readable medium 802 may be configured to store one or more programs
  • FIG. 9 is a hardware structure of a device / terminal / server in Embodiment 9 of the present application; as shown in FIG. 9, the hardware structure of the device / terminal / server may include: a processor 901, a communication interface 902, and a computer-readable Medium 903 and communication bus 904;
  • the processor 901, the communication interface 902, and the computer-readable medium 903 complete communication with each other through a communication bus 904;
  • the communication interface 902 may be an interface of a communication module, such as an interface of a GSM module;
  • the processor 901 may be specifically configured to: determine a data transmission request initiated by a data receiver in the local area network; according to the data transmission request, start a network input and output thread and a disk input and output thread in parallel; according to the network input and output The thread and the disk input / output thread receive data transmitted by the data sender 701 in the local area network to the data receiver.
  • the processor 901 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, short for NP), etc .; it may also be a digital signal processor (DSP), dedicated integration Circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • DSP digital signal processor
  • ASIC dedicated integration Circuit
  • FPGA ready-made programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application may be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the computer readable medium 903 may be, but is not limited to, a random access storage medium
  • RAM Random Access Memory
  • ROM Read Only Memory
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the data receiver and the data sender in the above embodiments are only relative concepts.
  • the data receiver can provide data to other terminals in the local area network, its role can also become the data sender.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, the computer program The sequence contains program code configured to perform the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication section, and / or installed from a removable medium.
  • CPU central processing unit
  • the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • the computer-readable medium may be, for example but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above.
  • More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access storage media (RAM), read-only storage media (ROM), erasable Programmable read-only storage medium (EPROM or flash memory), optical fiber, portable compact disk read-only storage medium (CD-ROM), optical storage medium, magnetic storage medium, or any suitable combination of the above.
  • the computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program configured to be used by or in combination with an instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code configured to perform the operations of the present application may be written in one or more programming languages or a combination thereof, the programming languages including object-oriented programming languages such as Java, Smalltalk, C ++, It also includes conventional procedural programming languages such as "C" language or similar programming languages.
  • the program code may be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network: including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to Connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram may represent a module, a program segment, or a part of code
  • the module, a program segment, or a part of code includes one or more configured to implement prescribed logical functions Executable instructions.
  • Executable instructions There are specific sequence relationships in the above specific embodiments, but these sequence relationships are only exemplary. In specific implementation, these steps may be fewer, more, or the execution order may be adjusted. That is, in some alternative implementations, the functions marked in the blocks may also occur in an order different from that marked in the drawings.
  • a processor includes a request determination unit, a switching unit, a breakpoint determination unit, and a transmission unit.
  • a request determination unit configured to determine a first transmission channel for data transmission and an initiated transmission channel switching request
  • a switching unit configured to switch the first transmission channel for data transmission to the second transmission channel according to the transmission channel switching request
  • a switching unit configured to determine a data breakpoint of data transmission when data transmission through the first transmission channel is stopped
  • the transmission unit is configured to perform continuous data transmission according to the second transmission channel and the data breakpoint.
  • the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • the request determination unit may also be described as “determining the first transmission channel for data transmission and the initiated transmission channel switching Requested unit ".
  • the present application also provides a computer-readable medium on which a computer program is stored, which is implemented by a processor as implemented in any of the foregoing embodiments Describe the method.
  • the present application also provides a computer-readable medium, which may be included in the device described in the foregoing embodiment; or may exist alone without being assembled into the device.
  • the computer-readable medium carries one or more programs.
  • the device When the one or more programs are executed by the device, the device is caused to: determine the first transmission channel for data transmission and the transmission channel switching request initiated; A transmission channel switching request, switching the first transmission channel for data transmission to the second transmission channel; determining a data breakpoint for data transmission when data transmission through the first transmission channel is stopped; according to the second transmission channel and all The data breakpoint is used for continuous data transmission.
  • the first or “the second” may modify various components regardless of order and / or importance, but these expressions do not limit the corresponding components.
  • the above expression is only configured for the purpose of distinguishing the element from other elements.
  • the first user equipment and the second user equipment represent different user equipments, although both are user equipments.
  • the first element may be referred to as the second element, and similarly, the second element may be referred to as the first element.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请公开了一种数据传输方法、装置、设备/终端/服务器、计算机可读介质。该方法的一具体实施方式包括:确定进行数据传输的第一传输通道以及发起的传输通道切换请求;确定根据所述传输通道切换请求,将进行数据传输的第一传输通道切换到第二传输通道;确定停止通过所述第一传输通道进行数据传输时数据传输的数据断点;根据所述第二传输通道以及所述数据断点进行数据的接续传输。该具体实施方式有效实现了近场传输通道和因特网传输通道的切换,灵活地实现数据的传输,进一步优化了用户体验。

Description

数据传输方法及其装置 本申请要求在 2018 年 08 月 27 日提交中国专利局、 申请号为
201810979316.8、 发明名称为 “数据传输方法及其装置” 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
[001]本申请涉及互联网技术领域, 尤其涉及一种数据传输方法、 装 置、 设备 /终端 /服务器、 计算机可读介质。 背景技术
[002]在一些应用环境中, 比如功能机的使用比例仍然远远大于智能 机的使用比例, 或者, 移动互网联的发展程度仍然较慢, 或者互联网等 硬件设施的基础较差, 跨平台传输技术方案成为实现不同终端之间数据 共享的一种有效方式, 解决了没有流量和运营商 WiFi的场景下, 或者无 网或者低网速的状态进行数据的传输。
[003]但是, 近场传输仅仅是用户获得数据的一种可选方式, 实际上 保留了通过互联网实现传输的方式, 因此, 亟待提供一种技术方案, 灵 活的实现文件传输, 最终提高用户体验。 发明内容
[004]本申请的目的在于提出一种数据传输方法、 装置、 设备 /终端 / 服务器、 计算机可读介质, 用于解决或者缓解现有技术中上述问题。
[005]第一方面, 本申请提供了一种数据传输方法, 其包括:
[006]确定进行数据传输的第一传输通道以及发起的传输通道切换 请求;
[007]确定根据所述传输通道切换请求, 将进行数据传输的第一传输 通道切换到第二传输通道;
[008]确定停止通过所述第一传输通道进行数据传输时数据传输的 数据断点; [009]根据所述第二传输通道以及所述数据断点进行数据的接续传 输。
[0010]第二方面, 本申请实施例提供了一种数据传输装置, 其包括:
[0011]第一程序单元, 配置为确定进行数据传输的第一传输通道以 及确定发起的传输通道切换请求;
[0012]第二程序单元, 配置为根据所述传输通道切换请求, 将进行 数据传输的第一传输通道切换到第二传输通道;
[0013]第三程序单元, 配置为确定停止通过所述第一传输通道进行 数据传输时数据传输的数据断点;
[0014]第四程序单元, 配置为根据所述第二传输通道以及所述数据 断点进行数据的接续传输。
[0015]第三方面,本申请实施例提供了一种设备 /终端 /服务器,包括:
[0016]一个或多个处理器;
[0017]计算机可读介质, 配置为存储一个或多个程序,
[0018]当所述一个或多个程序被所述一个或多个处理器执行, 使得 所述一个或多个处理器实现如上述任一实施例中所述的方法。
[0019]第四方面, 本申请实施例提供了一种计算机可读介质, 其上 存储有计算机程序, 该程序被处理器执行时实现如上述任一实施例中所 述的方法。
[0020]本申请提供的数据传输方法、 装置、 设备 /终端 /服务器、 计算 机可读介质中, 通过确定进行数据传输的第一传输通道; 确定发起的传 输通道切换请求, 并根据所述传输通道切换请求, 将进行数据传输的第 一传输通道切换到第二传输通道; 确定停止通过所述第一传输通道进行 数据传输时数据传输的数据断点, 根据所述第二传输通道以及所述数据 断点进行数据的接续传输, 有效实现了近场传输通道和因特网传输通道 的切换, 灵活地实现数据的传输, 进一步优化了用户体验。 附图说明
[0021]通过阅读参照以下附图所作的对非限制性实施例所作的详细 描述, 本申请的其它特征、 目的和优点将会变得更明显:
[0022]图 1为本申请实施例一中数据传输方法流程示意图;
[0023]图 2为本申请实施例二中数据传输方法流程示意图; [0024]图 3为本申请实施例三中数据传输方法流程示意图;
[0025]图 4为本申请实施例四中数据传输装置的结构示意图;
[0026]图 5为本申请实施例五中数据传输装置的结构示意图;
[0027]图 6为本申请实施例六中数据传输装置的结构示意图;
[0028]图 7为本申请实施例七中数据传输装置的结构示意图;
[0029]图 8为本申请实施例八中设备 /终端 /服务器的结构示意图;
[0030]图 9为本申请实施例九中设备 /终端 /服务器的硬件结构。 具体实施方式
[0031]下面结合附图和实施例对本申请作进一步的详细说明。 可以 理解的是, 此处所描述的具体实施例仅仅配置为解释相关发明, 而非对 该发明的限定。 另外还需要说明的是, 为了便于描述, 附图中仅示出了 与有关发明相关的部分。
[0032]需要说明的是, 在不冲突的情况下, 本申请中的实施例及实 施例中的特征可以相互组合。 下面将参考附图并结合实施例来详细说明 本申请。
[0033]图 1为本申请实施例一中数据传输方法的流程示意图;如图 1 所示, 其可以包括:
[0034] S101、 确定进行数据传输的第一传输通道以及发起的传输通 道切换请求;
[0035]本实施例中, 以从近场传输通道切换到互联网传输通道为例 进行说明。 因此, 所述第一通道为近场传输通道, 当通过近场传输通道 进行数据传输时, 数据接收方为该局域网中的用户终端, 而数据发送方 同样为该局域网中的用户终端, 即在该局域网内进行数据的传输。
[0036]本实施例中, 通过捕获通道切换操作事件, 以在步骤 S101中 确定发起的传输通道切换请求。 在一具体应用场景中, 在数据接收方的 终端上配置有通道切换按钮, 该通道切换按钮可以通过软件实现或者通 过硬件实现。 通过软件实现时, 比如在数据接收方的终端显示界面上配 置一 ICON,当该 ICON被用户操作后,即相当于生成通道切换操作事件, 一旦捕获到通道切换操作事件, 即确定数据接收方发起了传输通道切换 请求。
[0037]本实施例中, 通过调用网络连接管理接口, 以确定进行数据 传输的第一传输通道。 需要说明的是, 针对不同类型的数据接收方, 网 络连接管理接口也会存在差异。 比如对于安卓系统的数据接收方, 网络 连接管理接口具体为 Connectivity Manager, 比如对于 IOS系统的数据接 收方, 网络连接管理接口具体为 AFNetworkReachabilityManager。
[0038]本实施例中,通过自建 WIFI搭建局域网以实现所述近场传输。 所述局域网中可以包括多个用户终端, 该用户终端可以为智能手机、 智 能平板、 智能手表、 PC等。 这种场景优选适合于互联网等硬件设施的基 础较差、 没有流量和云运营商 WiFi的场景下, 或者无网或者低网速的状 态, 实现同一个局域网内不同用户终端之间为实现数据共享的传输。 即 不同终端(如两台手机)间直连且不依赖于其它网络(如互联网)和设备(如 路由器), 且传输速率快, 故可方便的实现不同终端间的数据交互即近场 数据传输, 获得了广泛应用。 该数据包括但不限于音视频数据、 应用程 序安装包等。
[0039]具体地, 在一种具体的应用场景中, 局域网的搭建方式可以 为一台终端开启热点并生成随机的连接密码, 另一台终端或多台终端搜 索并发现该热点, 之后用户输入连接密码, 相当于建立终端之间的近场 传输通道。
[0040]可替代地, 在另外一种具体的应用场景中, 数据发送方开启 热点, 并生成连接信息, 其中, 所述连接信息的内容用于供数据接收方 通过热点与数据发送方建立直连; 用所述连接信息生成二维码, 并显示 所述二维码; 根据所述数据接收方扫描所述二维码以与所述数据发送方 直连, 相当于建立终端之间的近场传输通道, 从而避免了手动输入连接 密码, 操作简单、 耗时段、 不易出错。
[0041]连接信息的内容可包括热点的标识, 即数据发送方开启的热 点的 SSID(Service Setldentifier), 以供数据接收方确定用于直连的热点。 再如, 连接信息的内容也可包括数据发送方的标识, 即数据发送方的唯 一的设备标识, 如为其热点模块的 MAC地址, 即 BSSID(Basic Service Setldentifier), 通过数据发送方的标识, 可使数据接收方确定要与其直连 的数据发送方。
[0042]应当理解, 根据连接方式的不同, 以上连接信息的具体内容 可以不同。 例如, 若数据发送方开启的热点已经被数据接收方搜索到, 则连接信息的内容可只有连接密码, 而没有热点的标识(当然若有也可 以)。 再如, 若数据发送方开启热点后将热点隐藏而不允许数据接收方搜 索到, 则连接信息的内容可只有热点的标识, 而没有连接密码(当然若有 也可以)。 再如, 以上数据发送方的标识可以是单独存在的, 也可与其它 内容同时存在, 作为对其它内容的进一步验证。
[0043]应当理解, 连接信息中还可包括其它已知的内容, 例如用于 表明其是连接信息的标识, 用于分割其不同部分的分隔符, 用于表明其 长度、 格式等的验证位等。
[0044]本实施例中, 数据发送方上的可传输数据具体可以以列表或 者更为有好的方式呈现, 以方便有数据需求的数据接收方直观地查看。 数据接收方通过搭建的局域网访问可提供数据的数据发送方, 查看该数 据发送方上可共享的数据或者又称为可共享的资源。 在列表上显示的资 源配置有下载或者传输按钮, 当该捕获到该下载或者传输按钮被操作的 事件, 即数据接收方发起了数据传输请求。
[0045] S102、 根据所述传输通道切换请求, 将进行数据传输的第一 传输通道切换到第二传输通道;
[0046]如前所述, 本实施例中以从近场传输通道切换到因特网传输 通道为例进行说明, 因此, 对应地, 所述第二传输通道为因特网传输通 道。
[0047]本实施例中, 传输通道的切换可以通过关闭其中一个传输通 道而启动另外一个传输通道来实现。 或者, 其中挂起一个传输通道而使 另外一个传输通道进入就绪态来实现。
[0048]在一具体应用场景中, 当需要从近场传输通道切换到因特网 传输通道时,可以断开数据接收方与步骤 S101中数据发送方的直连即可, 与此同时, 通过数据接收方与因特网连接, 比如通过 webservice相关的 服务接口, 进一步通过采用 AsyncTask进程启动 webservice相关的服务 接口。
[0049] S103、 确定停止通过所述第一传输通道进行数据传输时数据 传输的数据断点;
[0050]本实施例中, 具体可以在确定存在传输通道切换请求时, 暂 停通过第一传输通道即近场传输通道进行数据传输, 与此同时, 此时已 传完的数据的节点即为数据断点。
[0051]在一具体应用场景中, 在通过第一通道进行数据的传输时, 可以在是数据接收方本地记载需要传输数据的唯一性标识及其总体大小 (或者又称为长度) , 并实时记录就当前已完成传输的部分数据的大小。 具体地, 可以通过创建一传输任务实体来记录上述跟数据传输有关的属 性信息。 当切换到英特网传输通道时, 将上述跟跟数据传输有关的属性 信息上传至因特网的共享数据中心, 由该共享数据中心根据这些属性信 息判断继续传输剩余的部分文件给数据接收方, 有效实现了近场传输通 道和因特网传输通道的切换, 灵活地实现数据的传输。
[0052] S104、 根据所述第二传输通道以及所述数据断点进行数据的 接续传输。
[0053]在数据接收方本地记录已经下载数据的大小, 以在后续从互 联网中的共享数据中心接续下载时, 将指针移动到相应的数据断点位置 处, 继续读出, 把数据传输给数据接收方。
[0054]在一具体应用场景中, 当然为了提高接续下载的速度, 可以 多启动多线程进行处理, 给每个线程分配固定的字节的数据分别去从因 特网的共享数据中心读出。
[0055]图 2为本申请实施例二中数据传输方法的流程示意图;如图 2 所示, 其包括:
[0056] S201、 确定进行数据传输的第一传输通道;
[0057]本实施例中, 步骤 S201与上述实施例一中的步骤 S101相关 记载类似。
[0058]本实施例中, 第一传输通道为因特网传输通道, 以从因特网 传输通道切换到近场传输通道为例进行说明。 即在通道切换前, 数据接 收方从因特网的共享数据中心获取数据, 而在切换后, 从其所在的局域 网中的共享数据中心获取数据, 局域网中共享数据中心可以为局域网中 的具有该数据资源的一终端。
[0059]本实施例中, 通过所述因特网传输通道进行数据传输时, 所 述数据存储在所述因特网中的共享数据中心中。
[0060] S202、 调用网络连接管理接口;
[0061] S203、 通过网络连接管理接口确定发起的传输通道切换请求。 [0062]本实施例中, 具体可以通过可用网络侦测子接口或者已启用 用网络侦测子接口, 以确定发起的传输通道切换请求。
[0063]本实施例中, 如果在数据接收方上选择了启用近场传输通道 进行数据传输, 则通过可用网络侦测子接口或者已启用用网络侦测子接 口侦测到当前正在使用或者即将使用的传输通道。
[0064] S204、 确定停止通过所述第一传输通道进行数据传输时数据 传输的数据断点;
[0065]本实施例中, 通过对数据大小及数据整体摘要判断是否是需 要断点上传的部分数据, 通过已下载数据大小和已下载数据摘要判断数 据断点。
[0066] S205、 根据所述第二传输通道以及所述数据断点进行数据的 接续传输。
[0067]本实施例中, 当通过所述近场通道进行数据传输时, 所述数 据存储在所述局域网中的共享数据中心中。
[0068]从切换到通过所述近场通道进行数据传输, 则首先通过数据 数据接收方本地记录的数据的唯一性标识, 与局域网中的共享数据中心 记录的数据的唯一性标识码进行匹配。 若匹配上, 则将在数据接收方记 录的数据断点上传给局域网中的共享数据中心, 从断点位置处接续传输。
[0069]本实施例中, 为了实现接续传输, 在进行数据的存储时, 按 照指定数据块大小, 将数据拆分为多个数据块, 除最后一个数据块外, 其余数据块按顺序编号、 数据块大小为指定数据块大小, 最后一个数据 块大小为实际数据块大小; 并为为各个数据块生成对应的数据块元信息, 元信息包含数据块添加时间、 数据块编号、 数据块大小、 数字签名、 KEY(—个字符串, 含数据 ID、 版本号、 数据完备标识符)以及数据块的 其他标识参数(如文件类型等)。
[0070]本实施例中, 以在通道切换前已完成传输的最后一个数据块 的数据块编号代表数据断点, 数据接收方从该数据断点开始继续逐块下 载数据到其本地, 直到最后一个数据块为止, 即完成文件的传输。 [0071]图 3为本申请实施例三中数据传输方法的流程示意图;如图 3 所示, 其包括:
[0072] S301、 确定进行数据传输的第一传输通道以及发起的传输通 道切换请求;
[0073] S302、 确定根据所述传输通道切换请求, 将进行数据传输的 第一传输通道切换到第二传输通道;
[0074] S303、 将所述局域网中的私有数据转存到所述因特网中的共 享数据中心并针对私有数据配置唯一性标识, 以根据所述因特网传输通 道以及所述数据断点进行数据的接续传输。
[0075]本实施例中, 若所述数据为对应所述局域网的私有数据, 则 所述私有数据存储在所述局域网中的共享数据中心和因特网中的共享数 据中心中, 以在传输通道切换后选择正确的共享数据中心进行数据传输。
[0076]进一步地, 若所述数据为对应所述局域网的私有数据, 则本 实施例在将私有数据转从到因特网的共享数据中心中时, 针对私有数据 配置唯一性标识; 对应地, 根据所述因特网传输通道以及所述数据断点 进行数据的接续传输, 包括: 根据唯一性标识匹配到待接续传输的私有 数据, 以根据所述因特网传输通道以及所述数据断点进行所述私有数据 的接续传输。
[0077]图 4为本申请实施例四中数据传输装置的结构示意图;如图 4 所示, 其包括:
[0078]第一程序单元 401,配置为确定进行数据传输的第一传输通道 以及发起的传输通道切换请求;
[0079]第二程序单元 402, 配置为根据所述传输通道切换请求, 将进 行数据传输的第一传输通道切换到第二传输通道;
[0080]第三程序单元 403 ,配置为确定停止通过所述第一传输通道进 行数据传输时数据传输的数据断点,
[0081]第四程序单元 404,配置为根据所述第二传输通道以及所述数 据断点进行数据的接续传输。
[0082]本实施例中, 第一程序单元 401 又可以称之为通道切换请求 单元或者模块, 第二程序单元 402又可以称之为通道切换单元或者模块, 第三程序单元 403又可以称之为断点确定单元或者模块, 第四程序单元 404又可以称之为接续传输单元或者模块。
[0083]图 5为本申请实施例五中数据传输装置的结构示意图;如图 5 所示, 其可以包括: 第一程序单元 401、 第二程序单元 402、 第三程序单 元 403、 第四程序单元 404, 还可以包括: 第五程序单元 405 , 配置为捕 获通道切换操作事件, 以确定发起的传输通道切换请求。
[0084]图 6为本申请实施例六中数据传输装置的结构示意图;如图 6 所示, 其可以包括: 第一程序单元 401、 第二程序单元 402、 第三程序单 元 403、 第四程序单元 404, 还可以包括: 第六程序单元 406, 配置为调 用网络连接管理接口, 以确定进行数据传输的第一传输通道。
[0085]进一步地, 所述第六程序单元 406进一步配置为调用网络连 接管理接口中的可用网络侦测子接口或者已启用用网络侦测子接口, 以 确定发起的传输通道切换请求。
[0086]进一步地, 当通过所述近场通道进行数据传输时, 所述数据 存储在所述局域网中的共享数据中心中; 当通过所述因特网传输通道进 行数据传输时, 所述数据存储在所述因特网中的共享数据中心中。
[0087]进一步地, 若所述数据为对应所述因特网的公共数据, 则所 述公共数据存储在所述局域网中的共享数据中心和因特网中的共享数据 中心中。
[0088]图 7为本申请实施例七中数据传输装置的结构示意图;如图 7 所示, 其包括: 其可以包括: 第一程序单元 401、 第二程序单元 402、 第 三程序单元 403、 第四程序单元 404, 还可以包括第七程序单元 407 , 配 置为将所述局域网中的私有数据转存到所述因特网中的共享数据中心, 以根据所述因特网传输通道以及所述数据断点进行数据的接续传输。
[0089]进一步地, 还可以包括: 第八程序单元 408, 配置为针对私有 数据配置唯一性标识; 对应地, 所述第四程序单元 404进一步配置为根 据唯一性标识匹配到待接续传输的私有数据, 以根据所述因特网传输通 道以及所述数据断点进行所述私有数据的接续传输。
[0090]图 8为本申请实施例八中设备 /终端 /服务器的结构示意图; 该 设备 /终端 /服务器可以包括:
[0091]一个或多个处理器 801;
[0092]计算机可读介质 802, 可以配置为存储一个或多个程序,
[0093]当所述一个或多个程序被所述一个或多个处理器执行, 使得 所述一个或多个处理器实现如上述任一实施例中所述传输方法。 [0094]图 9为本申请实施例九中设备 /终端 /服务器的硬件结构; 如图 9所示, 该设备 /终端 /服务器的硬件结构可以包括: 处理器 901, 通信接 口 902, 计算机可读介质 903和通信总线 904;
[0095]其中处理器 901、 通信接口 902、 计算机可读介质 903通过通 信总线 904完成相互间的通信;
[0096]可选的, 通信接口 902可以为通信模块的接口, 如 GSM模块 的接口;
[0097]其中, 处理器 901 具体可以配置为: 确定局域网中数据接收 方发起的数据传输请求; 根据所述数据传输请求, 并行启动网络输入输 出线程以及磁盘输入输出线程; 根据所述网络输入输出线程以及磁盘输 入输出线程, 接收由所述局域网中的数据发送方 701 传输给所述数据接 收方的数据。
[0098]处理器 901 可以是通用处理器, 包括中央处理器 (Central Processing Unit, 简称 CPU)、 网络处理器 (Network Processor, 简称 NP) 等; 还可以是数字信号处理器 (DSP)、 专用集成电路 (ASIC)、 现成可编程 门阵列 (FPGA)或者其它可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件。 可以实现或者执行本申请实施例中的公开的各方法、 步 骤及逻辑框图。 通用处理器可以是微处理器或者该处理器也可以是任何 常规的处理器等。
[0099]计算机可读介质 903 可以是, 但不限于, 随机存取存储介质
(Random Access Memory, RAM), 只读存储介质 (Read Only Memory, ROM ),可编程只读存储介质 ( Programmable Read-Only Memory, PROM ), 可擦除只读存储介质 ( Erasable Programmable Read-Only Memory, EPROM ) , 电可擦除只读存储介质 ( Electric Erasable Programmable Read-Only Memory, EEPROM) 等。
[00100]需要说明的是, 上述实施例数据接收方、 数据发送方只是相 对概念, 当数据接收方可向局域网中的其他终端提供数据时, 其角色又 可以变为数据发送方。
[00101]特别地, 根据本申请的实施例, 上文参考流程图描述的过程 可以被实现为计算机软件程序。 例如, 本申请的实施例包括一种计算机 程序产品, 其包括承载在计算机可读介质上的计算机程序, 该计算机程 序包含配置为执行流程图所示的方法的程序代码。 在这样的实施例中, 该计算机程序可以通过通信部分从网络上被下载和安装, 和 /或从可拆卸 介质被安装。 在该计算机程序被中央处理单元 (CPU) 执行时, 执行本 申请的方法中限定的上述功能。 需要说明的是, 本申请所述的计算机可 读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述 两者的任意组合。 计算机可读介质例如可以但不限于是电、 磁、 光、 电 磁、 红外线、 或半导体的系统、 装置或器件, 或者任意以上的组合。 计 算机可读存储介质的更具体的例子可以包括但不限于: 具有一个或多个 导线的电连接、 便携式计算机磁盘、 硬盘、 随机访问存储介质 (RAM) 、 只读存储介质(ROM)、可擦式可编程只读存储介质(EPROM或闪存)、 光纤、 便携式紧凑磁盘只读存储介质 (CD-ROM) 、 光存储介质件、 磁 存储介质件、 或者上述的任意合适的组合。 在本申请中, 计算机可读存 储介质可以是任何包含或存储程序的有形介质, 该程序可以被指令执行 系统、 装置或者器件使用或者与其结合使用。 而在本申请中, 计算机可 读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号, 其中承载了计算机可读的程序代码。 这种传播的数据信号可以采用多种 形式, 包括但不限于电磁信号、 光信号或上述的任意合适的组合。 计算 机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读 介质, 该计算机可读介质可以发送、 传播或者传输配置为由指令执行系 统、 装置或者器件使用或者与其结合使用的程序。 计算机可读介质上包 含的程序代码可以用任何适当的介质传输, 包括但不限于: 无线、 电线、 光缆、 RF等等, 或者上述的任意合适的组合。
[00102]可以以一种或多种程序设计语言或其组合来编写配置为执 行本申请的操作的计算机程序代码, 所述程序设计语言包括面向对象的 程序设计语言一诸如 Java、 Smalltalk, C++, 还包括常规的过程式程序设 计语言一诸如” C”语言或类似的程序设计语言。 程序代码可以完全地在 用户计算机上执行、 部分地在用户计算机上执行、 作为一个独立的软件 包执行、 部分在用户计算机上部分在远程计算机上执行、 或者完全在远 程计算机或服务器上执行。 在涉及远程计算机的情形中, 远程计算机可 以通过任意种类的网络:包括局域网(LAN)或广域网(WAN)—连接到用户 计算机, 或者, 可以连接到外部计算机 (例如利用因特网服务提供商来 通过因特网连接) 。
[00103]附图中的流程图和框图, 图示了按照本申请各种实施例的系 统、 方法和计算机程序产品的可能实现的体系架构、 功能和操作。 在这 点上, 流程图或框图中的每个方框可以代表一个模块、 程序段、 或代码 的一部分, 该模块、 程序段、 或代码的一部分包含一个或多个配置为实 现规定的逻辑功能的可执行指令。 上述具体实施例中有特定先后关系, 但这些先后关系只是示例性的, 在具体实现的时候, 这些步骤可能会更 少、 更多或执行顺序有调整。 即在有些作为替换的实现中, 方框中所标 注的功能也可以以不同于附图中所标注的顺序发生。 例如, 两个接连地 表示的方框实际上可以基本并行地执行, 它们有时也可以按相反的顺序 执行, 这依所涉及的功能而定。 也要注意的是, 框图和 /或流程图中的每 个方框、 以及框图和 /或流程图中的方框的组合, 可以用执行规定的功能 或操作的专用的基于硬件的系统来实现, 或者可以用专用硬件与计算机 指令的组合来实现。
[00104]描述于本申请实施例中所涉及到的单元可以通过软件的方 式实现, 也可以通过硬件的方式来实现。 所描述的单元也可以设置在处 理器中, 例如, 可以描述为: 一种处理器包括请求确定单元、 切换单元、 断点确定单元、 传输单元。
[00105]请求确定单元, 配置为确定进行数据传输的第一传输通道以 及发起的传输通道切换请求;
[00106]切换单元, 配置为根据所述传输通道切换请求, 将进行数据 传输的第一传输通道切换到第二传输通道;
[00107]切换单元, 配置为确定停止通过所述第一传输通道进行数据 传输时数据传输的数据断点;
[00108]传输单元, 配置为根据所述第二传输通道以及所述数据断点 进行数据的接续传输。
[00109]其中, 这些单元的名称在某种情况下并不构成对该单元本身 的限定, 例如, 请求确定单元还可以被描述为“确定进行数据传输的第 一传输通道以及发起的传输通道切换请求的单元” 。
[00110]作为另一方面, 本申请还提供了一种计算机可读介质, 其上 存储有计算机程序, 该程序被处理器执行时实现如上述任一实施例中所 描述的方法。
作为另一方面, 本申请还提供了一种计算机可读介质, 该计算机可 读介质可以是上述实施例中描述的装置中所包含的; 也可以是单独存在, 而未装配入该装置中。 上述计算机可读介质承载有一个或者多个程序, 当上述一个或者多个程序被该装置执行时, 使得该装置: 确定进行数据 传输的第一传输通道以及发起的传输通道切换请求; 根据所述传输通道 切换请求, 将进行数据传输的第一传输通道切换到第二传输通道; 确定 停止通过所述第一传输通道进行数据传输时数据传输的数据断点; 根据 所述第二传输通道以及所述数据断点进行数据的接续传输。
[00111]在本申请的各种实施方式中所使用的表述“第一”、“第二”、
“所述第一”或“所述第二”可修饰各种部件而与顺序和 /或重要性无关, 但是这些表述不限制相应部件。 以上表述仅配置为将元件与其它元件区 分开的目的。 例如, 第一用户设备和第二用户设备表示不同的用户设备, 虽然两者均是用户设备。 例如, 在不背离本申请的范围的前提下, 第一 元件可称作第二元件, 类似地, 第二元件可称作第一元件。
[00112]当一个元件(例如, 第一元件)称为与另一元件(例如, 第二元 件)“(可操作地或可通信地)联接”或“(可操作地或可通信地)联接至”另 一元件(例如, 第二元件)或“连接至”另一元件(例如, 第二元件)时, 应 理解为该一个元件直接连接至该另一元件或者该一个元件经由又一个元 件(例如, 第三元件)间接连接至该另一个元件。相反, 可理解, 当元件(例 如, 第一元件)称为“直接连接”或“直接联接”至另一元件(第二元件) 时, 则没有元件(例如, 第三元件)插入在这两者之间。
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领 域技术人员应当理解, 本申请中所涉及的发明范围, 并不限于上述技术 特征的特定组合而成的技术方案, 同时也应涵盖在不脱离上述发明构思 的情况下, 由上述技术特征或其等同特征进行任意组合而形成的其它技 术方案。 例如上述特征与本申请中公开的 (但不限于) 具有类似功能的 技术特征进行互相替换而形成的技术方案。

Claims

权 利 要 求 书
1.一种数据传输方法, 其特征在于, 包括:
确定进行数据传输的第一传输通道以及发起的传输通道切换请求; 根据所述传输通道切换请求, 将进行数据传输的第一传输通道切换 到第二传输通道;
确定停止通过所述第一传输通道进行数据传输时数据传输的数据断 占.
根据所述第二传输通道以及所述数据断点进行数据的接续传输。
2.根据权利要求 1 所述的方法, 其特征在于, 还包括: 捕获通道切 换操作事件, 以确定发起的传输通道切换请求。
3.根据权利要求 1所述的方法, 其特征子在于, 还包括: 调用网络 连接管理接口, 以确定进行数据传输的第一传输通道。
4.根据权利要求 3所述的方法, 其特征在于, 调用网络连接管理接 口, 包括: 调用网络连接管理接口中的可用网络侦测子接口或者已启用 用网络侦测子接口, 以确定发起的传输通道切换请求。
5.根据权利要求 1 所述的方法, 其特征在于, 所述第一通道为因特 网传输通道, 所述第二传输通道为近场传输通道。
6.根据权利要求 1 所述的方法, 其特征在于, 所述第一通道为近场 传输通道, 所述第二传输通道为因特网传输通道。
7.根据权利要求 5或者 6所述的方法, 其特征在于, 当通过所述近 场通道进行数据传输时, 所述数据存储在所述局域网中的共享数据中心 中; 当通过所述因特网传输通道进行数据传输时, 所述数据存储在所述 因特网中的共享数据中心中。
8.根据权利要求 7所述的方法, 其特征在于, 若所述数据为对应所 述因特网的公共数据, 则所述公共数据存储在所述局域网中的共享数据 中心和因特网中的共享数据中心中。
9.根据权利要求 7所述的方法, 其特征在于, 若所述数据为对应所 述局域网的私有数据, 所述方法还包括: 将所述局域网中的私有数据转 存到所述因特网中的共享数据中心, 以根据所述因特网传输通道以及所 述数据断点进行数据的接续传输。
10. 根据权利要求 9所述的方法, 其特征在于, 还包括: 针对私有 数据配置唯一性标识; 对应地, 根据所述因特网传输通道以及所述数据 断点进行数据的接续传输, 包括: 根据唯一性标识匹配到待接续传输的 私有数据, 以根据所述因特网传输通道以及所述数据断点进行所述私有 数据的接续传输。
11. 一种数据传输装置, 其特征在于, 包括:
第一程序单元, 配置为确定进行数据传输的第一传输通道以及发起 的传输通道切换请求;
第二程序单元, 配置为根据所述传输通道切换请求, 将进行数据传 输的第一传输通道切换到第二传输通道;
第三程序单元, 配置为确定停止通过所述第一传输通道进行数据传 输时数据传输的数据断点,
第四程序单元, 配置为根据所述第二传输通道以及所述数据断点进 行数据的接续传输。
12. 根据权利要求 11所述的装置, 其特征在于, 还包括: 第五程 序单元, 配置为捕获通道切换操作事件, 以确定发起的传输通道切换请 求。
13. 根据权利要求 11所述的装置, 其特征子在于, 还包括: 第五 程序单元, 配置为调用网络连接管理接口, 以确定进行数据传输的第一 传输通道。
14. 根据权利要求 3所述的装置, 其特征在于, 所述第六程序单元 进一步配置为调用网络连接管理接口中的可用网络侦测子接口或者已启 用用网络侦测子接口, 以确定发起的传输通道切换请求。
15. 根据权利要求 11所述的装置, 其特征在于, 所述第一通道为 因特网传输通道, 所述第二传输通道为近场传输通道。
16. 根据权利要求 11所述的装置, 其特征在于, 所述第一通道为 近场传输通道, 所述第二传输通道为因特网传输通道。
17. 根据权利要求 15或者 16所述的装置, 其特征在于, 当通过所 述近场通道进行数据传输时, 所述数据存储在所述局域网中的共享数据 中心中; 当通过所述因特网传输通道进行数据传输时, 所述数据存储在 所述因特网中的共享数据中心中。
18. 根据权利要求 17所述的装置, 其特征在于, 若所述数据为对 应所述因特网的公共数据, 则所述公共数据存储在所述局域网中的共享 数据中心和因特网中的共享数据中心中。
19. 根据权利要求 17所述的装置, 其特征在于, 若所述数据为对 应所述局域网的私有数据, 所述方法还包括: 第七程序单元, 配置为将 所述局域网中的私有数据转存到所述因特网中的共享数据中心, 以根据 所述因特网传输通道以及所述数据断点进行数据的接续传输。
20. 根据权利要求 19所述的装置, 其特征在于, 还包括: 第八程 序单元, 配置为针对私有数据配置唯一性标识; 对应地, 所述第四程序 单元进一步配置为根据唯一性标识匹配到待接续传输的私有数据, 以根 据所述因特网传输通道以及所述数据断点进行所述私有数据的接续传 输。
21. 一种设备 /终端 /服务器, 包括:
一个或多个处理器;
计算机可读介质, 配置为存储一个或多个程序,
当所述一个或多个程序被所述一个或多个处理器执行, 使得所述一 个或多个处理器实现如权利要求 1-10中任一所述的方法。
22. 一种计算机可读介质, 其上存储有计算机程序, 其特征在于, 该程序被处理器执行时实现如权利要求 1-10中任一所述的方法。
PCT/IB2018/057153 2018-08-27 2018-09-18 数据传输方法及其装置 WO2020044092A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810979316.8A CN108810177A (zh) 2018-08-27 2018-08-27 数据传输方法及其装置
CN201810979316.8 2018-08-27

Publications (2)

Publication Number Publication Date
WO2020044092A1 WO2020044092A1 (zh) 2020-03-05
WO2020044092A9 true WO2020044092A9 (zh) 2020-04-09

Family

ID=64081275

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2018/057153 WO2020044092A1 (zh) 2018-08-27 2018-09-18 数据传输方法及其装置

Country Status (2)

Country Link
CN (1) CN108810177A (zh)
WO (1) WO2020044092A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835723A (zh) * 2019-11-22 2021-05-25 北京小米移动软件有限公司 信息处理方法、装置、终端及存储介质
CN113572836B (zh) * 2021-07-21 2022-07-15 腾讯科技(深圳)有限公司 一种数据传输方法、装置、服务器及存储介质
CN115277723A (zh) * 2022-07-19 2022-11-01 国能信控互联技术有限公司 边缘采集历史模块基于缓冲事件的断点续传方法及系统

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4941496B2 (ja) * 2009-04-03 2012-05-30 カシオ計算機株式会社 無線通信装置及びプログラム
CN102404093A (zh) * 2010-09-10 2012-04-04 中国移动通信集团公司 数据传输方式的管理方法和数据传输设备
CN103249095B (zh) * 2012-02-08 2017-02-08 华为技术有限公司 数据发送、接收方法、用户设备、基站及网关
CN103491572B (zh) * 2012-06-14 2017-04-12 华为技术有限公司 数据传输方法、设备及系统
CN103533593A (zh) * 2012-07-06 2014-01-22 上海中铁通信信号国际工程有限公司 无缝切换嵌入式模块及方法
CN110380980A (zh) * 2013-02-22 2019-10-25 英特尔Ip公司 用于接入网络选择和流量路由的系统和方法
CN105101327B (zh) * 2014-05-09 2018-10-26 宇龙计算机通信科技(深圳)有限公司 切换方法和切换装置
CN105101357B (zh) * 2014-05-23 2021-03-30 中兴通讯股份有限公司 一种控制网络连接的方法及装置
CN107801222B (zh) * 2016-09-06 2022-05-13 中兴通讯股份有限公司 蓝牙和WiFi切换的方法和系统及客户端和无线接入点设备
CN107087292B (zh) * 2017-03-10 2021-01-01 北方工业大学 一种移动终端适应性传输数据的方法
CN107155204B (zh) * 2017-07-20 2020-05-19 广东工业大学 一种蓝牙与Wifi切换的方法及系统

Also Published As

Publication number Publication date
CN108810177A (zh) 2018-11-13
WO2020044092A1 (zh) 2020-03-05

Similar Documents

Publication Publication Date Title
US10485034B2 (en) Method, device and system for accessing wireless network
JP6195685B2 (ja) 機器バインディング方法、装置、プログラムおよび記録媒体
US10374819B2 (en) Methods and devices of accessing wireless network
WO2014101889A1 (zh) 数据同步方法及设备
WO2017107542A1 (zh) 视频节目获取方法、设备及系统
WO2017162043A1 (zh) 用于设备间服务的访问方法、配置方法及装置
CN110636483A (zh) 一种配网方法及系统
WO2020044092A9 (zh) 数据传输方法及其装置
CN111490916B (zh) 紫蜂ZigBee子设备的绑定方法、系统、装置及介质
US9723486B2 (en) Method and apparatus for accessing network
WO2015058506A1 (zh) 一种多屏互动的方法、装置及系统
WO2021042612A1 (zh) 无线投屏方法、装置、设备及存储介质
WO2014036933A1 (zh) 一种设备间共享内容的方法、设备及系统
WO2018196463A1 (zh) 网络接入方法、装置、存储介质及处理器
WO2015172447A1 (zh) 一种云桌面迁移的方法、装置及分布式云桌面系统
WO2020258782A1 (zh) 适用蓝牙读卡器的数据传输方法及电子设备
CN103648056A (zh) 一种智能电视的点对点传输方法和装置
WO2020044088A1 (zh) 一种文件传输的方法及其装置、设备/终端/服务器
US10708967B2 (en) Establishment of a connection between two local devices connected to different networks
WO2020049352A1 (zh) 近场文件传输方法及其装置
WO2020044084A1 (zh) 近场数据迁移方法及其装置
WO2020044091A1 (zh) 近场数据传输方法及其装置
WO2018157646A1 (zh) 文件传输方法、装置及系统
WO2014180436A1 (zh) 一种终端间进行通信的方法及终端
CN112398718A (zh) 一种网络传输方法、装置、电子设备及存储介质

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

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

Country of ref document: EP

Kind code of ref document: A1