WO2014161317A1 - 传输数据的方法、装置和终端 - Google Patents

传输数据的方法、装置和终端 Download PDF

Info

Publication number
WO2014161317A1
WO2014161317A1 PCT/CN2013/087353 CN2013087353W WO2014161317A1 WO 2014161317 A1 WO2014161317 A1 WO 2014161317A1 CN 2013087353 W CN2013087353 W CN 2013087353W WO 2014161317 A1 WO2014161317 A1 WO 2014161317A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
target
sent
target device
source
Prior art date
Application number
PCT/CN2013/087353
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 中兴通讯股份有限公司
Priority to JP2016541765A priority Critical patent/JP6420347B2/ja
Priority to EP13881018.9A priority patent/EP3046266B1/en
Publication of WO2014161317A1 publication Critical patent/WO2014161317A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/102Entity profiles
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management

Definitions

  • the present invention relates to communication technologies, and more particularly to a method, apparatus, and terminal for transmitting data. Background technique
  • WiFi Direct Wireless Fidelity Direct
  • the transmission process usually has the following steps:
  • the sender selects the file to be transmitted in the file selection interface
  • step 4 when the related technology performs short-distance data transmission, the user needs to manually open the wireless connection, the process of data transmission is cumbersome, requires user intervention, the user has too many operation steps, and when transmitting multiple files, step 4 needs to be repeated. -6.
  • only one source device transmits data to one target device, and when one source device transmits data to multiple target devices, the above steps 1-6 are repeated. This repeated operation is cumbersome, increases the cumbersomeness of the user's operation, and increases the overhead of time. Summary of the invention
  • the embodiments of the present invention provide a method, a device, and a terminal for transmitting data, so as to at least solve the related art, when the data is transmitted, the process of data transmission is cumbersome, requiring user intervention, and the user has too many operational steps.
  • An embodiment of the present invention provides a method for transmitting data, including: a source device selecting a file to be sent; the source device authenticating the device to be accessed according to an authentication request of the device to be accessed; The source device selects the device to be accessed as the target device to be sent from the device to be accessed through the authentication; the source device establishes a connection with the target device, and sends the file to be sent. Send to the target device.
  • the source device selects a file to be sent, and the source device adds one or more files selected by the user to the file queue as the file to be sent;
  • Sending the file to the target device the method includes: the source device, preferably, the source device selects the device to be accessed as the target of the file to be sent from the device to be accessed through which the authentication is passed.
  • the end device includes: the source device adds the device to be accessed through which the authentication is passed to the device queue; the source device selects the device to be accessed as the target end of the file to be sent from the device queue device.
  • the method further includes: the source device receiving and displaying the file receiving success information sent by the target device.
  • the method further includes: the source device deleting the target device from the device queue, and Release the connection established with the target device.
  • the embodiment of the invention further provides a method for transmitting data, including: When the file is to be received, an authentication request is initiated to the searched source device, so that the source device can authenticate the target device according to the authentication request, and is in the target device. After the authentication is passed, establishing a connection with the target device; the target device receiving the file sent by the source device.
  • the method further includes: the target end device sending file receiving success information to the source device.
  • the embodiment of the present invention further provides an apparatus for transmitting data, including: a file selection module, configured to select a file to be sent; and an authentication module configured to perform, according to an authentication request of the device to be accessed, the device to be accessed.
  • the target device confirmation module is configured to select the device to be accessed as the target device to be sent from the device to be accessed through the authentication; the connection creation module establishes a connection with the target device; And the module is configured to send the to-be-sent file to the target end device after the connection between the connection creation module and the target device is successfully established.
  • the device further includes: a file storage module configured to store a file queue; the file selection module is further configured to add one or more files selected by the user as the file to be sent to the file queue The sending module is further configured to send the file to be sent in the file queue to the target device.
  • a file storage module configured to store a file queue
  • the file selection module is further configured to add one or more files selected by the user as the file to be sent to the file queue
  • the sending module is further configured to send the file to be sent in the file queue to the target device.
  • the device further includes: a device storage module configured to store a device queue; the authentication module is further configured to add the device to be accessed through which the authentication is passed to the device queue; The module is further configured to select, from the device queue, a device to be accessed as the target device of the file to be sent.
  • a device storage module configured to store a device queue
  • the authentication module is further configured to add the device to be accessed through which the authentication is passed to the device queue
  • the module is further configured to select, from the device queue, a device to be accessed as the target device of the file to be sent.
  • the device further includes: an information display module configured to receive and display the file receiving success information sent by the target device.
  • the device further includes: a target device deletion module, configured to delete the target device from the device queue; and a connection release module configured to release the connection creation module The connection established by the block with the target device.
  • a target device deletion module configured to delete the target device from the device queue
  • a connection release module configured to release the connection creation module The connection established by the block with the target device.
  • An embodiment of the present invention further provides a terminal, including the foregoing apparatus for transmitting data.
  • the embodiment of the present invention further provides an apparatus for transmitting data, including: a device search module configured to: when searching for a file to be received, to search for a source device; and a receiving module configured to receive after the connection with the source device is successfully established.
  • the source device sends an authentication request to the source device that is searched by the device search module, so that the source device can perform the authentication request according to the authentication request.
  • the target device performs authentication, and establishes a connection with the device search module after the authentication of the target device is passed.
  • the device further includes: an information confirming module, configured to send file receiving success information to the source device after successfully completing the receiving of the file.
  • an information confirming module configured to send file receiving success information to the source device after successfully completing the receiving of the file.
  • An embodiment of the present invention further provides a terminal, including the foregoing apparatus for transmitting data.
  • the process of transmission is mainly performed by the device automatically, and the user does not need excessive intervention, thereby reducing the operation steps of the user; when transmitting multiple files, multiple files can be kept in the file queue, avoiding Repeat each time a file is transferred.
  • FIG. 1 is a flowchart of a method for transmitting data according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for transmitting data according to Embodiment 2 of the present invention
  • FIG. 3 is a structural diagram of an apparatus for transmitting data according to Embodiment 1 of the present invention.
  • FIG. 4 is a structural diagram of an apparatus for transmitting data according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of a data transmission system according to an embodiment of the present disclosure.
  • FIG. 6 is a diagram showing a queue structure according to Embodiment 3 of the present invention.
  • FIG. 7 is a flowchart of user operations according to Embodiment 3 of the present invention
  • FIG. 8 is a flowchart of a file transmission process according to Embodiment 3 of the present invention.
  • FIG. 9 is a flowchart of operation of a source device according to Embodiment 3 of the present invention.
  • FIG. 10 is a flowchart of operation of a target device according to Embodiment 3 of the present invention. detailed description
  • the embodiments of the present invention provide a method, a device, and a terminal for transmitting data when the data transmission process is cumbersome, the user operation process is complicated, and the transmission flow operation efficiency is low, which can simplify the user operation process and improve the data transmission process. File transfer efficiency.
  • the embodiment of the present invention provides a method for transmitting data, which is used to send data to a target device, as shown in FIG. 1, including:
  • Step S101 The source device selects a file to be sent.
  • Step S102 After receiving the authentication request of the device to be accessed, the source device performs authentication on the to-be-access device.
  • Step S103 The source device selects the device to be accessed as the target device of the file to be sent from the device to be accessed through which the authentication is passed.
  • Step S104 The source device establishes a connection with the target device.
  • Step S105 After the connection with the target device is successfully established, the source device sends the file to be sent to the target device.
  • the file may include various data such as pictures, texts, audio, video, etc.
  • the connection creation and file transmission are automatically completed by the device, and no user intervention is required, which simplifies the user operation process and improves. File transfer efficiency.
  • the source device may include: the source device adds one or more files selected by the user as the file to be sent. Into the file queue;
  • the user can select multiple files at one time and save the file to the file queue.
  • the file to be sent is sequentially obtained from the file queue for transmission. It is not necessary to repeatedly select files for transmission, which simplifies the operation process. For example, multiple files can be packaged and compressed into one file for transmission, and the packaged compressed file is directly transmitted to the target device during transmission.
  • the source device selects the device to be accessed as the target device to be sent from the device to be accessed, including:
  • the source device adds the device to be accessed through which the authentication is passed to the device queue;
  • the source device selects the device to be accessed as the target device of the file to be sent from the device queue.
  • the method may further include: receiving, by the source device, the file receiving success information sent by the target device.
  • the source device can display the information that the file is successfully sent to make the source user clear the transmission of the file.
  • the source device receives and displays the file receiving sequence sent by the target device to delete; the source device releases the connection established with the target device.
  • the connection with the target device can be automatically released without manual operation by the user, which simplifies the operation process of the user.
  • the embodiment of the present invention further provides a method for transmitting data, which is used to receive data sent by a source device, as shown in FIG. 2, including:
  • Step S201 After the target device confirms that the file needs to be received, the source device is searched.
  • step S202 when the source device is searched, an authentication request is initiated to the source device, so that the source device can authenticate the target device according to the authentication request, and After the authentication of the target device is passed, a connection is established with the target device.
  • Step S203 After the connection with the source device is successfully established, the target device receives the file sent by the source device.
  • the target device automatically searches for the source device and initiates an authentication request. After the connection is successfully established, the file sent by the source device is automatically received, and user intervention is not required during the transmission, which simplifies the operation of the user. The process improves the file transfer efficiency.
  • the target device may further send file receiving success information to the source device.
  • An embodiment of the present invention provides an apparatus for transmitting data, which is configured to send data to a target end device, as shown in FIG. 3, including:
  • a file selection module configured to select a file to be sent
  • the authentication module is configured to: after receiving the authentication request of the device to be accessed, authenticating the device to be accessed;
  • the target device confirmation module is configured to select, as the target device of the to-be-sent file, the device to be accessed from the devices to be accessed through which the authentication is passed;
  • connection creation module configured to establish a connection with the target device
  • a sending module configured to send the to-be-sent file to the target end device after the connection between the connection creation module and the target device is successfully established.
  • the source device confirms the to-be-sent file, performs authentication after receiving the authentication request of the device to be accessed, selects the target device from the device to be accessed through authentication, and creates a connection.
  • the created connection sends a file to the target device.
  • the device may further include: a file storage module configured to store a file queue; the file selection module is further configured to add one or more files selected by the user as the file to be sent to the file queue The sending module is further configured to send the file to be sent in the file queue to the target device.
  • a file storage module configured to store a file queue
  • the file selection module is further configured to add one or more files selected by the user as the file to be sent to the file queue
  • the sending module is further configured to send the file to be sent in the file queue to the target device.
  • the device may further include: a device storage module configured to store a device queue; the authentication module is further configured to add the device to be accessed through which the authentication is passed to the device queue; The confirmation module is further configured to select, from the device queue, a device to be accessed as the target device of the file to be sent.
  • a device storage module configured to store a device queue
  • the authentication module is further configured to add the device to be accessed through which the authentication is passed to the device queue
  • the confirmation module is further configured to select, from the device queue, a device to be accessed as the target device of the file to be sent.
  • the device may further include: an information display module configured to receive and display file receiving success information sent by the target device.
  • the device may further include: a target device deletion module configured to delete the target device from the device queue; and a connection release module configured to release the connection creation module and establish the target device Connection.
  • the embodiment of the invention further provides a terminal configured to send data to the target device, including the foregoing device for transmitting data.
  • the embodiment of the present invention further provides an apparatus for transmitting data, which is configured to receive data sent by a source device, as shown in FIG. 4, including:
  • the device search module is configured to: after the device is configured to confirm that the file needs to be received, search for the source device; and the authentication request module is configured to: when the source device is searched, initiate an authentication request to the source device, so that the source is The end device can authenticate the target end device according to the authentication request, and establish a connection with the device search module after the authentication of the target end device is passed;
  • the receiving module is configured to receive the file sent by the source device after the connection between the device search module and the source device is successfully established.
  • the target device automatically searches for the source device, sends an authentication request to the source device, and after receiving the connection, receives the file sent by the source device, where the device search, the authentication request process, and the file receiving The process does not require user intervention, and is automatically completed by the device, which simplifies the user's operation process and improves file transfer efficiency.
  • the device may further include: an information confirming module, configured to send the file receiving success information to the source device after successfully completing the receiving of the file.
  • an information confirming module configured to send the file receiving success information to the source device after successfully completing the receiving of the file.
  • the embodiment of the invention further provides a terminal configured to receive data sent by the source device, including the foregoing device for transmitting data.
  • FIG. 5 is a schematic structural diagram of a data transmission system to which an apparatus for transmitting data is provided according to an embodiment of the present invention.
  • the data transmission system includes a remote terminal and a target terminal; wherein the source terminal include: a WiFi direct connection module, configured to implement the function of the connection creation module according to Embodiment 1 of the present invention, and establish a connection with the target end device;
  • the authentication module is configured to: after receiving the authentication request of the device to be accessed, authenticating the device to be accessed;
  • the file list module is configured to implement the functions of the file selection module and the file storage module according to the embodiment 1 of the present invention, store the file queue, and add one or more files selected by the user as a file to be sent to the file queue;
  • a device storage module configured as a storage device queue
  • the target device confirmation module is configured to select the device to be accessed as the target device to be sent from the device to be accessed through authentication, that is, select a file to be sent from the file list module, and select a file to be sent from the device storage module.
  • the corresponding device to be accessed is used as the target device;
  • the sending module is configured to send the to-be-sent file to the target end device after the connection between the WiFi direct connection module and the target end device is successfully established.
  • the target terminal includes:
  • the WiFi direct connection module is configured to implement the function of the device search module according to the second embodiment of the present invention, and after confirming that the file needs to be received, searching for the source device;
  • An authentication requesting module configured to: when the source device is searched, initiate an authentication request to the source device, so that the source device can perform the authentication on the target device according to the authentication request And establishing a connection with the WiFi direct connection module after the authentication of the target device is passed;
  • the receiving module is configured to receive the file sent by the source device after the connection between the WiFi direct connection module and the source device is successfully established.
  • FIG. 6 is a structural diagram of a queue according to Embodiment 3 of the present invention.
  • the queue includes a file queue, a device queue, and a transmission queue.
  • the file queue is a queue for saving files to be sent. As shown in FIG. 6, the file queue includes File 1, file 2... file N and other files.
  • the device queue is a queue for saving the device to be accessed. As shown in FIG. 6, the device to be accessed has devices 1, device 2, device M, and the like.
  • the transmission queue is a file queue transmitted to the target device.
  • the device M is determined to be the target device, that is, the file queue is transmitted to the target device M, including the file 1, the file 2, and the file. N and other documents.
  • the source device forms a transmission queue between the target device and the file sent to the target device, and the source device may not form the transmission queue, and directly determines the target end.
  • FIG. 7 is provided in Embodiment 3 of the present invention. User action flow chart.
  • the source user sets a file to send to the target user. After the target user approaches the source user, the client is opened for file receiving.
  • the user operation procedure of the method is as shown in FIG. 7:
  • M01 confirm the file to be received; in this step, the target user confirms the file to be received.
  • M02 waiting to receive files; during this process, the target user does not need to intervene.
  • the file is successfully received.
  • the target user confirms after the file is successfully received.
  • FIG. 8 is a flowchart of a file transmission process according to Embodiment 3 of the present invention. As shown in FIG. 8, the method includes:
  • Step S801 The source user sends the file.
  • the source user sends the file
  • the source device adds the file to be sent to the file queue, and then sets the time to wait for the target device. Access.
  • Step S802 the target user confirms the file to be received; in this step, the target device searches for the source device after receiving the file that the target user confirms to receive.
  • step S803 an authentication request is initiated.
  • the target device initiates an authentication request to the source device.
  • Step S804 creating a connection.
  • the source device authenticates the received authentication request, and after the authentication is passed, sends a connection to the target device. request.
  • Step S805 The connection is successfully created. In this step, after the target device receives the request for creating a connection sent by the source device, the connection is created.
  • the file is transferred; in this step, the source device transmits the file to be sent to the target device.
  • the receiving file is successful; in this step, the target device receives the file and displays the file receiving success information to the target end user after receiving the file.
  • 5810 Sending a file to the target device succeeds; the source device displays a file success message to the target device to the source user, so that the source user clear to which target device has been successfully sent. 5811, release the connection; In this step, the source device sends a request to release the connection to the target device.
  • the connection is released successfully; In this step, the target device releases the connection after receiving the request to release the connection.
  • connection pass through the process of requesting and responding from the source device and the target device.
  • the connection may be directly created or released without a request.
  • FIG. 9 is a flowchart of operation of a source device according to Embodiment 3 of the present invention. As shown in FIG. 9, the method includes:
  • Step S901 Receive an authentication request of the device to be accessed and perform authentication.
  • the device to be accessed will initiate authentication, and the source device receives the device to be accessed.
  • the authentication request is authenticated and the authentication request is authenticated.
  • Step S902 determining whether the authentication is passed, if the authentication is passed, the process proceeds to S903, otherwise, the transmission process is ended.
  • Step S903 Add the device to be accessed to the device queue.
  • the source device adds the device to be accessed through which the authentication is passed to the device queue.
  • Step S904 determining whether a file is being sent, if yes, ending the transmission process, otherwise, proceeding to step S905; in this step, the source device determines whether a file is currently being sent, if a file is currently being sent, The transfer process is over.
  • Step S905 determining whether the file queue is empty, and if yes, ending the transmission process, otherwise, proceeding to step S906; in this step, if the file queue is empty, indicating that there is currently no file to be transmitted, the transmission process ends. .
  • step S906 it is determined whether the device queue is empty. If yes, the process ends. Otherwise, the process proceeds to step S907. In this step, if the device queue is empty, the device to be accessed does not currently receive the file to be sent. The transfer process is over.
  • Step S907 creating a transmission queue; in this step, the source device is waiting in the device queue One of the access devices is selected as the target device, and the file to be sent to the target device in the file queue is combined with the target device to form a transmission queue.
  • Step S908 creating a connection;
  • the source device sends a connection establishment request to the target end device to create a connection.
  • step S909 it is determined whether the connection is successfully created. If yes, the process proceeds to step S910, and if no, the process proceeds to step S913. In this step, the source device determines whether the connection with the target device is successfully created, and if the connection is not successfully created. , the target device is removed from the device queue.
  • Step S910 Transfer the file; In this step, the source device transmits the file to the target device through the established connection.
  • Step S911 determining whether the transmission file is interrupted, if yes, proceeding to step S912, otherwise, proceeding to step S913; in this step, the source device determines whether the process of transferring the file is interrupted.
  • Step S912 prompting the user to interrupt the transmission process; in this step, after receiving the message that the transmission process is interrupted, the user may send a refresh instruction, and proceeds to step S917 to re-enter the transmission process, or may perform no operation, and end this. Secondary transfer process.
  • Step S913 determining whether the transmission queue is empty, if yes, proceeding to step S914, otherwise, proceeding to step S910; in this step, the source device determines whether the transmission queue is empty, and if not, indicating to the target device There are still files that need to be transferred, so continue to transfer the file. If it is empty, it means that the file is transferred to the target device.
  • Step S914 determining whether the file is successfully transmitted, if yes, proceeding to step S915, otherwise, proceeding to step S903; in this step, the source device determines whether the file is successfully sent to the target device, that is, whether the target device returns If the file is successfully transmitted, the message is successfully transmitted to the target device. Otherwise, if the file is not successfully transmitted to the target device, the target device is rejoined to the device queue to re-transmit the process.
  • Step S915 the target device is deleted from the device queue.
  • Step S916 releasing the connection with the target device, and proceeding to step S904; in this step, After the transmission process to the target device is completed, the source device re-enters the new transmission process.
  • Step S917 receiving the refresh command, proceeds to step S904; in this step, the source device may receive a refresh command to enter a transmission process, and the refresh command may be sent by the user, or may be a periodic command that the device has set.
  • one source device may send a file to multiple target devices to send files to two target devices as an example:
  • the source user sets a file to send to the target end user, and after the two target users A and B are close to the source end user, the client is opened for file receiving;
  • the method for transmitting the data from the source device to the target device A is as follows. In the process of transmitting data to the target device A, the source device authenticates the target device B and adds the target device B to the source device after the authentication is passed. The device list, the source device determines whether a file is currently being sent, and since the source device is currently sending a file to the target device A, the transmission process to the target device B is ended.
  • the source device After the file is sent to the target device A, the source device enters a new transmission process after releasing the connection with the target device A, and determines whether a file is currently being sent, because the source device does not currently send to any device. The source device determines whether there is a file to be sent in the file queue. At this time, the file queue has a file that needs to be sent to the target device B. The source device determines whether there is a device in the device queue that needs to send a file to the device. When the target device B exists, a transmission queue is established for the target device B, and a series of processes for connection establishment and file transmission are performed for B.
  • FIG. 10 is a flowchart of operation of a target device according to Embodiment 3 of the present invention. As shown in FIG. 10, the method includes:
  • Step S1001 After receiving the file receiving request, searching for the source device; in this step, the target After confirming the received file, the end device searches for the source device that sent the file.
  • Step S1002 Initiating an authentication request.
  • the target device after searching for the source device, the target device initiates an authentication request to the source device to enable the source device to target the target according to the authentication request.
  • the end device performs authentication, and establishes a connection with the target end device after the authentication of the target end device is passed.
  • Step S1003 Determine whether the connection establishment times out. If yes, go to step S1004, otherwise go to S1005. In this step, after the target device initiates the authentication request, set the timer to wait for the connection to be established. If the waiting timeout, the user is prompted whether Re-initiate the authentication request.
  • Step S1004 prompting the user whether to re-initiate the authentication request, and if yes, proceeding to step S1002, otherwise, ending the transmission process.
  • Step S1005 Receive a file.
  • the target device receives the file sent by the source device.
  • Step S1006 Send a file receiving success message to the source device.
  • the target device After receiving the file successfully, the target device sends a message to the source device to notify the source device of the file sending situation.
  • Embodiment 4 of the present invention two source devices send files to a target device.
  • the target device On the target device, the target device first searches for a source device A, searches for the source device A, and sends an authentication request to the source device A, thereby establishing a connection with the source device A and receiving the source device A. file.
  • the target device After receiving the file from the source device A, the connection with the source device A is released, the target device searches for another source device B, and after searching for the source device B, sends the authentication to the source device B. Request to establish a connection with the source device B and receive the file sent by the source device B.

Abstract

本发明实施例提供传输数据的方法、装置和终端,所述方法包括:源端设备确认待发送文件;所述源端设备根据待接入设备的鉴权请求,对所述待接入设备进行鉴权;所述源端设备从鉴权通过的待接入设备中选择待接入设备作为所述待发送文件的目标端设备;所述源端设备与所述目标端设备建立连接,并将所述待发送文件发送给所述目标端设备。采用本发明实施例提供的技术方案,简化了操作流程,提高了传输效率。

Description

传输数据的方法、 装置和终端
技术领域
本发明涉及通信技术, 尤其涉及传输数据的方法、 装置和终端。 背景技术
相关技术中, 近距离的终端之间进行数据传输时, 一般采用蓝牙和无 线相容性认证直连(WiFi Direct, Wireless Fidelity Direct )的方法。 以 WiFi 直连传输为例, 传输过程通常有以下几个步骤:
1、 发送方和接收方都打开 WiFi直连开关;
2、 打开搜索功能, 搜索到对方;
3、 选择设备配对, 并输入密码, 对方也要进行配对确认, 完成配对过 程;
4、 发送方在文件选择界面选定待传送文件;
5、 在分享界面选择某个目标设备, 将所述待传送文件通过 WiFi直连 发送给该目标设备;
6、 接收方点击接受文件, 完成文件传输。
7、 如果希望继续传送文件, 需要返回步骤 4, 重复上述流程。
由此可见, 相关技术进行近距离的数据传输时, 需要用户手动打开无 线连接, 数据传输的过程繁瑣, 需要用户干预, 用户的操作步骤过多, 而 且在传输多个文件时, 需要重复步骤 4-6。 并且在相关技术中, 只提供了一 个源端设备向一个目标端设备传输数据的方式, 而对于一个源端设备向多 个目标端设备传输数据的时候, 需要重复上述步骤 1-6。 这种重复的操作比 较繁瑣, 增大了用户的操作繁瑣程度, 并且增加了时间上的开销。 发明内容
有鉴于此, 本发明实施例提供传输数据的方法、 装置和终端, 以至少 解决相关技术中, 在传输数据时, 数据传输的过程繁瑣, 需要用户干预, 用户的操作步骤过多的问题。
为实现上述目的, 本发明实施例的技术方案是这样实现的:
本发明实施例提供一种传输数据的方法, 包括: 源端设备选择待发送 文件; 所述源端设备根据待接入设备的鉴权请求, 对所述待接入设备进行 鉴权; 所述源端设备从鉴权通过的待接入设备中选择待接入设备作为所述 待发送文件的目标端设备; 所述源端设备与所述目标端设备建立连接, 并 将所述待发送文件发送给所述目标端设备。
优选地, 所述源端设备选择待发送文件, 包括: 所述源端设备将用户 选择的一个或多个文件作为所述待发送文件加入到文件队列中; 所述源端 设备将所述待发送文件发送给所述目标端设备, 包括: 所述源端设备将所 优选地, 所述源端设备从鉴权通过的待接入设备中选择待接入设备作 为所述待发送文件的目标端设备, 包括: 所述源端设备将鉴权通过的待接 入设备添加到设备队列中; 所述源端设备从所述设备队列中选取待接入设 备作为所述待发送文件的目标端设备。 所述方法还包括: 所述源端设备接收并显示所述目标端设备发送的文件接 收成功信息。
优选地, 所述源端设备接收并显示所述目标端设备发送的文件接收成 功信息之后, 所述方法还包括: 所述源端设备将所述目标端设备从所述设 备队列中删除, 并释放与所述目标端设备建立的连接。
本发明实施例还提供一种传输数据的方法, 包括: 目标端设备确认需 要接收文件时, 向搜索到的源端设备发起鉴权请求, 以使得所述源端设备 能够根据所述鉴权请求对所述目标端设备进行鉴权, 并在对所述目标端设 备的鉴权通过后, 与所述目标端设备建立连接; 所述目标端设备接收所述 源端设备发送的文件。
优选地, 所述目标端设备接收所述源端设备发送的文件之后, 所述方 法还包括: 所述目标端设备向所述源端设备发送文件接收成功信息。
本发明实施例还提供一种传输数据的装置, 包括: 文件选择模块, 配 置为选择待发送文件; 鉴权模块, 配置为根据待接入设备的鉴权请求, 对 所述待接入设备进行鉴权; 目标设备确认模块, 配置为从鉴权通过的待接 入设备中选择待接入设备作为所述待发送文件的目标端设备; 连接创建模 块, 与所述目标端设备建立连接; 发送模块, 配置为在所述连接创建模块 与所述目标端设备的连接建立成功后, 将所述待发送文件发送给所述目标 端设备。
优选地, 所述装置还包括: 文件存储模块, 配置为存储文件队列; 所 述文件选择模块, 还配置为将用户选择的一个或多个文件作为所述待发送 文件加入到所述文件队列中; 所述发送模块, 还配置为将所述文件队列中 的待发送文件发送给所述目标端设备。
优选地, 所述装置还包括: 设备存储模块, 配置为存储设备队列; 所 述鉴权模块, 还配置为将鉴权通过的待接入设备加入到所述设备队列中; 所述目标设备确认模块, 还配置为从所述设备队列中选择待接入设备作为 所述待发送文件的目标端设备。
优选地, 所述装置还包括: 信息显示模块, 配置为接收并显示所述目 标端设备发送的文件接收成功信息。
优选地, 所述装置还包括: 目标设备删除模块, 配置为将所述目标端 设备从所述设备队列中删除; 连接释放模块, 配置为释放所述连接创建模 块与所述目标端设备建立的连接。
本发明实施例还提供一种终端, 包括上述传输数据的装置。
本发明实施例还提供一种传输数据的装置, 包括: 设备搜索模块, 配 置为确认需要接收文件时搜索源端设备; 接收模块, 配置为在与所述源端 设备的连接建立成功后, 接收所述源端设备发送的文件; 鉴权请求模块, 配置为向所述设备搜索模块搜索到的源端设备发起鉴权请求, 以使得所述 源端设备能够根据所述鉴权请求对所述目标端设备进行鉴权, 并在对所述 目标端设备的鉴权通过后, 与所述设备搜索模块建立连接。
优选地, 所述装置还包括: 信息确认模块, 配置为在成功完成所述文 件的接收后, 向所述源端设备发送文件接收成功信息。
本发明实施例还提供一种终端, 包括上述传输数据的装置。
本发明实施例的技术方案中, 传输的过程主要由设备自动进行, 用户 无需过多干预, 减少了用户的操作步骤; 当传送多个文件时, 可以将多个 文件保持到文件队列中, 避免每次传送完一个文件之后都要进行重复操作; 当对多个目标设备进行文件传送时, 可以将多个目标设备保存到设备队列 中, 避免在对每个目标设备发送文件时, 都要重新搜索相应的目标设备, 大大简化流程, 提高传输效率。 附图说明
图 1为本发明实施例 1提供的传输数据的方法的流程图;
图 2为本发明实施例 2提供的传输数据的方法的流程图;
图 3为本发明实施例 1提供的传输数据的装置的结构图;
图 4为本发明实施例 2提供的传输数据的装置的结构图;
图 5为本发明实施例提供的数据传输系统的结构示意图;
图 6为本发明实施例 3提供的队列结构图;
图 7为本发明实施例 3提供的用户操作流程图; 图 8为本发明实施例 3提供的文件传输过程流程图;
图 9为本发明实施例 3提供的源端设备操作流程图;
图 10为本发明实施例 3提供的目标端设备操作流程图。 具体实施方式
为使本发明要解决的技术问题、 技术方案和优点更加清楚, 下面将结 合附图及具体实施例进行详细描述。
本发明实施例针对相关技术中, 进行数据传输时, 数据传输过程繁瑣, 用户操作流程复杂, 传输流程操作效率低的问题, 提供了传输数据的方法、 装置及终端, 能够简化用户操作流程, 提高文件传输效率。
为了解决上述问题, 本发明实施例提供了一种传输数据的方法, 用于 向目标端设备发送数据, 如图 1所示, 包括:
步骤 S 101, 源端设备选择待发送文件。
步骤 S102, 所述源端设备接收到待接入设备的鉴权请求后, 对所述待 接入设备进行鉴权。
步骤 S103, 所述源端设备从鉴权通过的待接入设备中选择待接入设备 作为所述待发送文件的目标端设备。
步骤 S104, 所述源端设备与所述目标端设备建立连接。
步骤 S105, 与所述目标端设备的连接建立成功后, 所述源端设备将所 述待发送文件发送给所述目标端设备。
在上述技术方案中, 所述文件可以包括图片、 文字、 音频、 视频等多 种数据, 连接的创建与文件的传输都由设备自动完成, 不需要用户干预, 简化了用户的操作流程, 提高了文件传输效率。
在相关技术的传输数据的方法中, 在对多个文件进行传输时, 由于每 次只能选择一个文件进行传输, 因此需要重复选择文件, 并重复选择目标 端设备, 创建连接以进行传输, 操作步骤繁瑣且传输效率低。 为了解决上述问题, 本发明实施例提供的传输数据的方法中: 所述源端设备选择待发送文件可以包括: 所述源端设备将用户选择的 一个或多个文件作为所述待发送文件加入到文件队列中;
Figure imgf000008_0001
在上述技术方案中, 由于创建了文件队列, 用户可以一次选择多个文 件, 将文件保存至文件队列中, 在传输文件时, 依次从文件队列中取得待 发送文件进行传输。 不需要重复选择文件以进行传输, 简化了操作流程, 例如可以将多个文件打包压缩为一个文件来进行传输, 在进行传输中直接 将打包后的压缩文件传输给目标端设备。
在相关技术的传输数据的方法中, 在对多个目标端设备传输数据时, 只能对每个目标设备重复创建连接、 选择文件等传输步骤。
为了解决上述问题, 本发明实施例提供的传输数据的方法中: 所述源端设备从鉴权通过的待接入设备中选择待接入设备作为所述待 发送文件的目标端设备, 包括:
所述源端设备将鉴权通过的待接入设备添加到设备队列中;
所述源端设备从所述设备队列中选取待接入设备作为所述待发送文件 的目标端设备。
在上述技术方案中, 由于创建了设备队列, 用户在对多个目标端设备 传输数据时, 可以将多个通过鉴权的待接入设备保存至设备队列中, 在传 输文件时, 从设备队列中取得待接入设备作为目标端设备进行传输。 简化 了操作流程, 提高了传输效率。 当然所述的多个待接入设备也可以采用其 他的方式来进行保存。 还可以包括: 所述源端设备接收并显示所述目标端设备发送的文件接收成 功信息。
在上述技术方案中, 源端设备可以将文件发送成功的信息显示出来以 使得源端用户清楚文件的传输情况。
优选地, 所述源端设备接收并显示所述目标端设备发送的文件接收成 列中删除; 所述源端设备释放与所述目标端设备建立的连接。
在上述技术方案中, 源端设备在向目标端设备传送完文件后, 可以自 动地释放与该目标端设备的连接, 无需用户手动操作, 简化了用户的操作 流程。
本发明实施例还提供了一种传输数据的方法, 用于接收源端设备发送 的数据, 如图 2所示, 包括:
步骤 S201, 目标端设备确认需要接收文件后, 搜索源端设备。
步骤 S202, 当搜索到所述源端设备时, 向所述源端设备发起鉴权请求, 以使得所述源端设备能够根据所述鉴权请求对所述目标端设备进行鉴权, 并在对所述目标端设备的鉴权通过后, 与所述目标端设备建立连接。
步骤 S203, 与所述源端设备的连接建立成功后, 所述目标端设备接收 所述源端设备发送的文件。
在上述技术方案中, 目标端设备自动进行源端设备的搜索并发起鉴权 请求, 在连接建立成功后, 自动接收源端设备发送的文件, 传输过程中不 需要用户干预, 简化了用户的操作流程, 提高了文件传输效率。
优选地, 所述目标端设备成功完成所述文件的接收后, 还可以向所述 源端设备发送文件接收成功信息。
在上述技术方案中, 目标端设备在接收文件完成后, 向源端设备发送 消息以通知源端设备文件传输情况。 本发明实施例提供了一种传输数据的装置, 配置为向目标端设备发送 数据, 如图 3所示, 包括:
文件选择模块, 配置为选择待发送文件;
鉴权模块, 配置为接收到待接入设备的鉴权请求后, 对所述待接入设 备进行鉴权;
目标设备确认模块, 配置为从鉴权通过的待接入设备中选择待接入设 备作为所述待发送文件的目标端设备;
连接创建模块, 配置为与所述目标端设备建立连接;
发送模块, 配置为在所述连接创建模块与所述目标端设备的连接建立 成功后, 将所述待发送文件发送给所述目标端设备。
在上述技术方案中, 源端设备确认待发送文件, 在接收到待接入设备 的鉴权请求后进行鉴权, 从鉴权通过的待接入设备中选择目标端设备并创 建连接, 通过已创建的连接向目标端设备发送文件, 其中, 鉴权过程以及 连接创建、 文件传输的过程均不需要用户干预, 由设备自动完成, 简化了 用户的操作流程, 提高了文件传输效率。
优选地, 所述装置还可以包括: 文件存储模块, 配置为存储文件队列; 所述文件选择模块, 还配置为将用户选择的一个或多个文件作为所述待发 送文件加入到所述文件队列中; 所述发送模块, 还配置为将所述文件队列 中的待发送文件发送给所述目标端设备。
优选地, 所述装置还可以包括: 设备存储模块, 配置为存储设备队列; 所述鉴权模块, 还配置为将鉴权通过的待接入设备加入到所述设备队列中; 所述目标设备确认模块, 还配置为从所述设备队列中选择待接入设备作为 所述待发送文件的目标端设备。
优选地, 所述装置还可以包括: 信息显示模块, 配置为接收并显示所 述目标端设备发送的文件接收成功信息。 优选地, 所述装置还可以包括: 目标设备删除模块, 配置为将所述目 标端设备从所述设备队列中删除; 连接释放模块, 配置为释放所述连接创 建模块与所述目标端设备建立的连接。
本发明实施例还提供一种终端, 配置为向目标端设备发送数据, 包括 上述传输数据的装置。
本发明实施例还提供一种传输数据的装置, 配置为接收源端设备发送 的数据, 如图 4所示, 包括:
设备搜索模块, 配置为确认需要接收文件后, 搜索源端设备; 鉴权请求模块, 配置为当搜索到所述源端设备时, 向所述源端设备发 起鉴权请求, 以使得所述源端设备能够根据所述鉴权请求对所述目标端设 备进行鉴权, 并在对所述目标端设备的鉴权通过后, 与所述设备搜索模块 建立连接;
接收模块, 配置为在所述设备搜索模块与所述源端设备的连接建立成 功后, 接收所述源端设备发送的文件。
在上述技术方案中, 目标端设备自动搜索源端设备, 向源端设备发送 鉴权请求后并在连接创建后, 接收源端设备发送的文件, 其中, 设备搜索、 鉴权请求过程以及文件接收的过程均不需要用户干预, 由设备自动完成, 简化了用户的操作流程, 提高了文件传输效率。
优选地, 所述装置还可以包括: 信息确认模块, 配置为在成功完成所 述文件的接收后, 向所述源端设备发送文件接收成功信息。
本发明实施例还提供一种终端, 配置为接收源端设备发送的数据, 包 括上述传输数据的装置。
图 5 为本发明实施例提供的应用了传输数据的装置的数据传输系统的 结构示意图, 如图 5所示, 所述数据传输系统包括远端终端和目标端终端; 其中, 所述源端终端包括: WiFi直连模块, 配置为实现本发明实施例 1所述的连接创建模块的功 能, 与所述目标端设备建立连接;
鉴权模块, 配置为接收到待接入设备的鉴权请求后, 对所述待接入设 备进行鉴权;
文件列表模块, 配置为实现本发明实施例 1 所述的文件选择模块及文 件存储模块的功能, 存储文件队列, 并将用户选择的一个或多个文件作为 待发送文件加入到文件队列;
设备存储模块, 配置为存储设备队列;
目标设备确认模块, 配置为从鉴权通过的待接入设备中选择待接入设 备作为所述待发送文件的目标端设备, 即从文件列表模块中选择待发送文 件, 从设备存储模块中选择对应的待接入设备作为目标端设备;
发送模块, 配置为在所述 WiFi直连模块与所述目标端设备的连接建立 成功后, 将所述待发送文件发送给所述目标端设备。
所述目标端终端包括:
WiFi直连模块, 配置为实现本发明实施例 2所述的设备搜索模块的功 能, 确认需要接收文件后, 搜索源端设备;
鉴权请求模块, 配置为当搜索到所述源端设备时, 向所述源端设备发 起鉴权请求, 以使得所述源端设备能够根据所述鉴权请求对所述目标端设 备进行鉴权, 并在对所述目标端设备的鉴权通过后, 与所述 WiFi直连模块 建立连接;
接收模块, 配置为在所述 WiFi直连模块与所述源端设备的连接建立成 功后, 接收所述源端设备发送的文件。
上述技术方案中, 所述传输数据的方法采用 WiFi直连的方法创建连接 以进行数据的传输, 所述方法同样也可以采用其他的方式来创建连接, 如 使用蓝牙的方法来建立连接。 图 6为本发明实施例 3提供的队列结构图, 所述队列包括文件队列、 设备队列和传输队列; 其中, 所述文件队列为保存待发送文件的队列, 如 图 6所示, 文件队列包括文件 1, 文件 2... ...文件 N等文件。
所述设备队列为保存待接入设备的队列, 如图 6所示, 待接入设备有 设备 1, 设备 2... ...设备 M等设备。
所述传输队列为向目标端设备传输的文件队列, 如图 6所示, 确定设 备 M为目标端设备, 即向目标端设备 M传输文件队列包括文件 1, 文件 2... ...文件 N等文件。
在上述技术方案中, 源端设备将目标端设备与发送给该目标端设备的 文件组成了传输队列, 源端设备也可以不组成传输队列, 直接确定目标端 图 7为本发明实施例 3提供的用户操作流程图。
在本实施例中, 源端用户设置一个文件向目标用户进行发送, 在目标 用户接近源端用户后, 打开客户端进行文件接收, 该方法的用户操作步骤 如图 7所示:
源端用户:
Y01 , 发送 /删除文件; 在此步骤中, 源端用户对发送文件进行选择或 删除操作;
目标端用户:
M01 ,确认要接收的文件;在此步骤中, 目标端用户确认要接收的文件。 M02, 等待接收文件; 在此过程中, 目标端用户无需干预。
M03 ,文件接收成功确认;在此步骤中, 目标端用户在文件接收成功后, 进行确认。
在文件从源端设备到目标端设备的传输过程中, 源端用户只需要对发 送的文件进行选择或删除; 目标端用户只需要确认要接收的文件及在文件 接收成功后, 进行确认; 其他的操作都由设备自动完成, 不需要用户干预。 图 8为本发明实施例 3提供的文件传输过程流程图, 如图 8所示, 包 括:
步骤 S801, 源端用户发送文件; 在此步骤中, 源端用户发送文件, 源 端设备在接收到源端用户发送文件的请求后, 将待发送文件加入文件队列, 然后设置时间等待目标端设备接入。
步骤 S802, 目标端用户确认要接收的文件; 在此步骤中, 目标端设备 在接收到目标端用户确认要接收的文件后, 搜索源端设备。
步骤 S803, 发起鉴权请求; 在此步骤中, 目标端设备在搜索到源端设 备后, 向源端设备发起鉴权请求。
步骤 S804, 创建连接; 在此步骤中, 源端设备接收到目标端设备发送 的鉴权请求后, 对所接收的鉴权请求进行鉴权, 鉴权通过后, 向目标端设 备发送创建连接的请求。
步骤 S805, 连接创建成功; 在此步骤中, 目标端设备接收到源端设备 发送的创建连接的请求后, 创建连接。
5806 , 传输文件; 在此步骤中, 源端设备将待发送文件传输给目标端 设备。
5807 , 接收文件成功; 在此步骤中, 目标端设备接收文件并在接收完 文件后, 将文件接收成功信息显示给目标端用户。
5808 , 接收文件确认; 目标端用户确认文件接收成功。
5809 , 返回文件成功传输消息; 在此步骤中, 目标端设备在收到目标 端用户的接收文件确认信息后, 将文件成功传输的消息反馈给源端设备。
5810 , 向目标端设备发送文件成功; 源端设备把向目标端设备发送文 件成功消息显示给源端用户, 以使源端用户清楚向哪个目标端设备已经发 送成功。 5811 , 释放连接; 在此步骤中, 源端设备向目标端设备发送释放连接 的请求。
5812 , 连接释放成功; 在此步骤中, 目标端设备接收到释放连接的请 求后, 释放连接。
在上述实施例中, 连接的创建与释放都经过了源端设备与目标端设备 的请求与应答的过程, 当然所述连接也可以不经过请求而直接创建或释放。
图 9为本发明实施例 3提供的源端设备操作流程图, 如图 9所示, 包 括:
步骤 S901, 接收待接入设备的鉴权请求并进行鉴权; 在此步骤中, 当 有待接入设备接入时, 待接入设备将发起鉴权, 源端设备接收待接入设备 发送的鉴权请求并对该鉴权请求进行鉴权。
步骤 S902, 判断鉴权是否通过, 如果鉴权通过则进入 S903, 否则, 结 束此次传输过程。
步骤 S903, 将该待接入设备加入设备队列; 在此步骤中, 源端设备将 鉴权通过的待接入设备加入设备队列。
步骤 S904, 判断是否有文件正在发送, 如果是, 则结束此次传输过程, 否则, 进入步骤 S905; 在此步骤中, 源端设备判断当前是否有文件在发送, 如果当前有文件正在发送, 则此次传输过程结束。
步骤 S905, 判断文件队列是否为空, 如果是, 则结束此次传输过程, 否则, 进入步骤 S906; 在此步骤中, 如果文件队列为空, 说明当前没有文 件要传送, 因此此次传输过程结束。
步骤 S906, 判断设备队列是否为空, 如果是, 则结束此次传输过程, 否则, 进入步骤 S907; 在此步骤中, 如果设备队列为空, 说明当前没有待 接入设备接收待发送文件, 因此此次传输过程结束。
步骤 S907, 创建传输队列; 在此步骤中, 源端设备从设备队列中的待 接入设备中选择一个作为目标端设备, 将文件队列中的待发送给该目标端 设备的文件与该目标端设备组成传输队列。
步骤 S908, 创建连接; 在此步骤中, 源端设备在传输队列创建好之后, 向目标端设备发送连接建立请求以创建连接。
步骤 S909, 判断连接是否创建成功, 如果是, 则进入步骤 S910, 否贝 'J, 进入步骤 S913 ; 在此步骤中, 源端设备判断与目标端设备的连接是否创建 成功, 如果连接创建不成功, 则将该目标端设备从设备队列中删除。
步骤 S910, 传输文件; 在此步骤中, 源端设备通过建立好的连接, 向 目标端设备传输文件。
步骤 S911, 判断传输文件是否中断, 如果是, 进入步骤 S912, 否则, 进入步骤 S913 ; 在此步骤中, 源端设备判断传输文件的过程是否发生中断。
步骤 S912, 提示用户传输过程发生中断; 在此步骤中, 用户接收到传 输过程发生中断的消息后, 可以发送刷新指令, 进入步骤 S917, 以重新进 入传输过程, 也可以不做任何操作, 结束此次传输过程。
步骤 S913, 判断传输队列是否为空, 如果是, 则进入步骤 S914, 否则, 进入步骤 S910; 在此步骤中, 源端设备判断传输队列是否为空, 如果不为 空, 说明向该目标端设备仍有文件需要传输, 因此继续传输文件, 如果为 空, 说明向该目标端设备传输文件完毕。
步骤 S914, 判断文件是否传输成功, 如果是, 则进入步骤 S915, 否则, 进入步骤 S903 ; 在此步骤中, 源端设备判断是否向目标端设备发送文件成 功, 即是否收到目标端设备返回的文件传输成功的消息, 如果是, 则表明 向该目标端设备传输文件成功, 否则, 表明向该目标端设备传输文件不成 功, 则将该目标端设备重新加入设备队列以重新进行传输过程。
步骤 S915, 将目标端设备从设备队列中删除。
步骤 S916, 释放与目标端设备的连接, 进入步骤 S904; 在此步骤中, 向该目标端设备的传输过程完毕, 源端设备重新进入新的传输过程。
步骤 S917, 接收刷新命令, 进入步骤 S904; 在此步骤中, 源端设备可 以接收刷新命令来进入一个传输过程, 刷新命令可以由用户发送, 也可以 为设备已设定的周期性命令。
在上述实施例中, 一个源端设备可以向多个目标端设备发送文件, 以 向两个目标端设备发送文件为例:
源端用户设置一个文件对目标端用户进行发送, 两位目标用户 A、 B 在接近源端用户后, 打开客户端进行文件接收;
当源端设备收到两个目标端设备的鉴权请求时, 使用相关的技术可以 使得两个设备接入有先后, 源端设备向先接入的目标端设备 A传输数据的 方法如实施例 1所述的方法进行传输; 在源端设备向目标端设备 A传输数 据的过程中, 源端设备对目标端设备 B进行鉴权并在鉴权通过后将目标端 设备 B加入到源端设备的设备列表, 源端设备判断当前是否有文件正在发 送, 由于源端设备当前正在向目标端设备 A发送文件, 因此结束向目标端 设备 B的传输过程。
在向目标端设备 A发送文件完成后, 源端设备在释放掉与目标端设备 A 的连接后, 进入新的传输过程, 判断当前是否有文件正在发送, 由于源 端设备当前没有向任何设备发送文件, 源端设备判断文件队列是否有文件 需要发送, 此时文件队列中有需要向目标端设备 B发送的文件, 源端设备 判断设备队列中是否有设备需要向其发送文件, 当判断到有目标端设备 B 存在, 就会对目标端设备 B建立传输队列, 并对 B进行连接建立、 文件传 输的一系列过程。
图 10为本发明实施例 3提供的目标端设备操作流程图, 如图 10所示, 包括:
步骤 S1001, 收到文件接收请求后, 搜索源端设备; 在此步骤中, 目标 端设备在确认接收文件后, 搜索发送文件的源端设备。
步骤 S1002 , 发起鉴权请求; 在此步骤中, 目标端设备在搜索到源端设 备后, 向源端设备发起鉴权请求以使得所述源端设备能够根据所述鉴权请 求对所述目标端设备进行鉴权, 并在对所述目标端设备的鉴权通过后, 与 所述目标端设备建立连接。
步骤 S1003, 判断连接建立是否超时, 如果是, 进入步骤 S1004, 否则 进入 S1005; 在此步骤中, 目标端设备在发起鉴权请求后, 设置定时器等待 建立连接, 如果等待超时, 则提示用户是否重新发起鉴权请求。
步骤 S 1004,提示用户是否重新发起鉴权请求,如果是,进入步骤 S 1002, 否则, 结束此次传输过程。
步骤 S1005 , 接收文件; 在此步骤中, 目标端设备在与所述源端设备的 连接建立成功后, 接收所述源端设备发送的文件。
步骤 S1006, 向源端设备发送文件接收成功消息; 在此步骤中, 目标端 设备在接收文件成功后, 向源端设备发送消息以通知源端设备文件发送情 况。
本发明实施例 4中, 两个源端设备向一个目标端设备发送文件。
有一位目标端用户, 接近两个源端用户 A、 B, 两个源端用户都向该目 标端用户发送文件, 目标端用户进行区别接收文件。
在目标端设备上, 目标端设备先搜索一个源端设备 A, 搜索到源端设 备 A后向源端设备 A发送鉴权请求,从而与源端设备 A建立连接并接收源 端设备 A发送的文件。
在从源端设备 A接收文件成功后, 并与源端设备 A的连接已释放, 目 标端设备再去搜索另一个源端设备 B, 搜索到源端设备 B后向源端设备 B 发送鉴权请求,从而与源端设备 B建立连接并接收源端设备 B发送的文件。
以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明所述原理的前提下, 还可以作出若干改 进和润饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权利要求书
1、 一种传输数据方法, 包括:
源端设备选择待发送文件;
所述源端设备根据待接入设备的鉴权请求, 对所述待接入设备进行鉴 所述源端设备从鉴权通过的待接入设备中选择待接入设备作为所述待 发送文件的目标端设备;
所述源端设备与所述目标端设备建立连接, 并将所述待发送文件发送 给所述目标端设备。
2、 如权利要求 1所述的方法, 其中, 所述源端设备选择待发送文件, 包括: 所述源端设备将用户选择的一个或多个文件作为所述待发送文件加 入到文件队列中;
3、 如权利要求 2所述的方法, 其中, 所述源端设备从鉴权通过的待接 入设备中选择待接入设备作为所述待发送文件的目标端设备, 包括:
所述源端设备将鉴权通过的待接入设备添加到设备队列中;
所述源端设备从所述设备队列中选取待接入设备作为所述待发送文件 的目标端设备。
4、 如权利要求 3所述的方法, 其中, 所述源端设备将所述待发送文件 发送给所述目标端设备之后, 所述方法还包括:
所述源端设备接收并显示所述目标端设备发送的文件接收成功信息。
5、 如权利要求 4所述的方法, 其中, 所述源端设备接收并显示所述目 标端设备发送的文件接收成功信息之后, 所述方法还包括: 述目标端设备建立的连接。
6、 一种传输数据的方法, 包括:
目标端设备确认需要接收文件时, 向搜索到的源端设备发起鉴权请求, 以使得所述源端设备能够根据所述鉴权请求对所述目标端设备进行鉴权, 并在对所述目标端设备的鉴权通过后, 与所述目标端设备建立连接;
所述目标端设备接收所述源端设备发送的文件。
7、 如权利要求 6所述的方法, 其中, 所述目标端设备接收所述源端设 备发送的文件之后, 所述方法还包括:
所述目标端设备向所述源端设备发送文件接收成功信息。
8、 一种传输数据的装置, 包括:
文件选择模块, 配置为选择待发送文件;
鉴权模块, 配置为根据待接入设备的鉴权请求, 对所述待接入设备进 行鉴权;
目标设备确认模块, 配置为从鉴权通过的待接入设备中选择待接入设 备作为所述待发送文件的目标端设备;
连接创建模块, 配置为与所述目标端设备建立连接;
发送模块, 配置为在所述连接创建模块与所述目标端设备的连接建立 成功后, 将所述待发送文件发送给所述目标端设备。
9、 如权利要求 8所述的装置, 其中, 所述装置还包括:
文件存储模块, 配置为存储文件队列;
所述文件选择模块, 还配置为将用户选择的一个或多个文件作为所述 待发送文件加入到所述文件队列中; 目标端设备。
10、 如权利要求 9所述的装置, 其中, 所述装置还包括: 设备存储模块, 配置为存储设备队列;
所述鉴权模块, 还配置为将鉴权通过的待接入设备加入到所述设备队 列中;
所述目标设备确认模块, 还配置为从所述设备队列中选择待接入设备 作为所述待发送文件的目标端设备。
11、 如权利要求 10所述的装置, 其中, 所述装置还包括:
信息显示模块, 配置为接收并显示所述目标端设备发送的文件接收成 功信息。
12、 如权利要求 11所述的装置, 其中, 所述装置还包括:
目标设备删除模块, 配置为将所述目标端设备从所述设备队列中删除; 连接释放模块, 配置为释放所述连接创建模块与所述目标端设备建立 的连接。
13、 一种传输数据的装置, 包括:
设备搜索模块, 用于确认需要接收文件后, 搜索源端设备;
接收模块, 配置为在所述设备搜索模块与源端设备的连接建立成功后, 接收所述源端设备发送的文件;
鉴权请求模块, 配置为向所述设备搜索模块搜索到的源端设备发起鉴 权请求, 以使得所述源端设备能够根据所述鉴权请求对所述目标端设备进 行鉴权, 并在对所述目标端设备的鉴权通过后, 与所述设备搜索模块建立 连接。
14、 如权利要求 13所述的装置, 其中, 所述装置还包括:
信息确认模块, 配置为在成功完成所述文件的接收后, 向所述源端设 备发送文件接收成功信息。
15、 一种终端, 包括如权利要求 8-12中任一项所述传输数据的装置。
16、 一种终端, 包括如权利要求 13-14中任一项所述传输数据的装置。
PCT/CN2013/087353 2013-09-12 2013-11-18 传输数据的方法、装置和终端 WO2014161317A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016541765A JP6420347B2 (ja) 2013-09-12 2013-11-18 データ伝送方法、装置および端末
EP13881018.9A EP3046266B1 (en) 2013-09-12 2013-11-18 Data transmission method, device and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310416406.3A CN104469968A (zh) 2013-09-12 2013-09-12 一种传输数据的方法、装置和终端
CN201310416406.3 2013-09-12

Publications (1)

Publication Number Publication Date
WO2014161317A1 true WO2014161317A1 (zh) 2014-10-09

Family

ID=51657505

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087353 WO2014161317A1 (zh) 2013-09-12 2013-11-18 传输数据的方法、装置和终端

Country Status (4)

Country Link
EP (1) EP3046266B1 (zh)
JP (1) JP6420347B2 (zh)
CN (1) CN104469968A (zh)
WO (1) WO2014161317A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172897A (zh) * 2021-12-09 2022-03-11 西安邮电大学 一种PC端和Android端文件传输方法及系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282532B (zh) * 2018-01-24 2020-09-01 维沃移动通信有限公司 一种文件传输的方法、发送设备、接收设备及终端
CN110351569B (zh) * 2019-06-25 2021-02-02 腾讯科技(深圳)有限公司 一种直播内容处理方法、装置、设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155214A (zh) * 2006-09-27 2008-04-02 中国电信股份有限公司 蓝牙接入点的pin码修改方法及蓝牙网络系统
CN101626256A (zh) * 2008-07-07 2010-01-13 英华达(南京)科技有限公司 建立蓝牙无线传输的方法
CN101729100A (zh) * 2008-10-28 2010-06-09 英华达(上海)电子有限公司 一种基于蓝牙技术的文件传输方法和装置
CN103220019A (zh) * 2013-04-28 2013-07-24 上海斐讯数据通信技术有限公司 一种蓝牙传输数据的实现方法及移动终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4045536B2 (ja) * 2002-05-27 2008-02-13 日本電気株式会社 携帯情報端末装置
US8090767B2 (en) * 2008-01-07 2012-01-03 Apple Inc. Pairing and storage access scheme between a handheld device and a computing system
JP5353529B2 (ja) * 2009-07-28 2013-11-27 富士通株式会社 通信システム、サーバ装置、通信制御方法及びコンピュータプログラム
US9155116B2 (en) * 2010-04-23 2015-10-06 Blackberry Limited Method and apparatus for providing files to electronic devices
CN102595335A (zh) * 2012-02-22 2012-07-18 深圳市普联技术有限公司 一种发送文件或文件夹至多人的处理方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155214A (zh) * 2006-09-27 2008-04-02 中国电信股份有限公司 蓝牙接入点的pin码修改方法及蓝牙网络系统
CN101626256A (zh) * 2008-07-07 2010-01-13 英华达(南京)科技有限公司 建立蓝牙无线传输的方法
CN101729100A (zh) * 2008-10-28 2010-06-09 英华达(上海)电子有限公司 一种基于蓝牙技术的文件传输方法和装置
CN103220019A (zh) * 2013-04-28 2013-07-24 上海斐讯数据通信技术有限公司 一种蓝牙传输数据的实现方法及移动终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172897A (zh) * 2021-12-09 2022-03-11 西安邮电大学 一种PC端和Android端文件传输方法及系统
CN114172897B (zh) * 2021-12-09 2023-08-25 西安邮电大学 一种PC端和Android端文件传输方法及系统

Also Published As

Publication number Publication date
EP3046266A1 (en) 2016-07-20
JP6420347B2 (ja) 2018-11-07
EP3046266A4 (en) 2016-08-31
CN104469968A (zh) 2015-03-25
JP2016535542A (ja) 2016-11-10
EP3046266B1 (en) 2018-10-10

Similar Documents

Publication Publication Date Title
US9826438B2 (en) Electronic device and method for operating an electronic device
JP6305023B2 (ja) 通信装置、通信装置の制御方法、およびプログラム
WO2013143414A1 (zh) 传输文件的方法、移动终端和系统
JP6360316B2 (ja) 通信装置、その制御方法、及びプログラム
JP6521618B2 (ja) 通信装置の制御方法、プログラム
JP2016091274A (ja) 通信システム、通信装置及びその制御方法、情報処理装置及びその制御方法、並びにプログラム
WO2014161317A1 (zh) 传输数据的方法、装置和终端
JP6178047B2 (ja) 通信装置、通信方法、コンピュータプログラムおよび通信システム
JP4560366B2 (ja) 無線通信装置
WO2020044088A1 (zh) 一种文件传输的方法及其装置、设备/终端/服务器
WO2020044092A1 (zh) 数据传输方法及其装置
JP7353433B2 (ja) 通信装置、制御方法及びプログラム
JP6572787B2 (ja) イメージスキャナーおよびイメージスキャンシステム
JP6346478B2 (ja) 中継装置、中継方法、中継システム、及びプログラム
JP6632245B2 (ja) 通信装置、通信装置の制御方法、プログラム
JP5762984B2 (ja) データ送受信装置
WO2009122722A1 (ja) 無線通信端末およびデバイス起動方法
JP2015115658A (ja) 携帯端末及びその制御方法、並びに通信システム
JP6369094B2 (ja) 情報共有システム
CN103200183B (zh) 传递媒体数据的方法、通信系统及用户终端
WO2017050219A1 (zh) 一种跨终端划屏传输文件的方法及终端
JP5546309B2 (ja) 通信装置、通信装置の制御方法およびプログラム
WO2019047208A1 (zh) 文件传输方法与系统
JP2012065259A (ja) 遠隔利用制御システム
JP7086743B2 (ja) 通信装置、通信装置の制御方法、プログラム

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

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016541765

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2013881018

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013881018

Country of ref document: EP