WO2019015427A1 - 一种数据传输方法、装置、终端及计算机可读存储介质 - Google Patents

一种数据传输方法、装置、终端及计算机可读存储介质 Download PDF

Info

Publication number
WO2019015427A1
WO2019015427A1 PCT/CN2018/091674 CN2018091674W WO2019015427A1 WO 2019015427 A1 WO2019015427 A1 WO 2019015427A1 CN 2018091674 W CN2018091674 W CN 2018091674W WO 2019015427 A1 WO2019015427 A1 WO 2019015427A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
mode
direct communication
device information
data
Prior art date
Application number
PCT/CN2018/091674
Other languages
English (en)
French (fr)
Inventor
何辉
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019015427A1 publication Critical patent/WO2019015427A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/08Trunked mobile radio systems

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, terminal, and computer readable storage medium.
  • each terminal can transmit and/or receive data through wireless communication methods such as Bluetooth, Wireless-Fidelity (Wi-Fi), and Near Field Communication (NFC).
  • wireless communication methods such as Bluetooth, Wireless-Fidelity (Wi-Fi), and Near Field Communication (NFC).
  • the terminal acquires data that the user wants to transmit to other terminals, and when receiving an instruction to transmit the data, the terminal can transmit the data to the other terminal. It has been found through practice that the data transmission of the terminal to other terminals may be affected due to the change of the distance between the terminals or when the transmission distance of the terminal is limited.
  • the embodiment of the present application provides a data transmission method, device, terminal, and computer readable storage medium, so that each device in the direct communication cluster can perform data interaction, expand the data transmission mode, and facilitate data transmission.
  • an embodiment of the present application provides a data transmission method, including:
  • the direct communication cluster includes at least one terminal in a receiving mode, at least one terminal in a transmitting mode, and at least one terminal in a relay mode;
  • the transmission path is The second terminal is determined according to the acquired device information.
  • the embodiment of the present application further provides a data transmission method, including:
  • the device information to be sent includes: device information of each terminal in the receiving mode in the direct communication cluster, and device information of each terminal in the relay mode;
  • the transmission path is determined according to the acquired device information
  • an embodiment of the present application provides a data transmission apparatus, including:
  • Obtaining a module after being configured to perform a direct communication connection with a terminal in the direct communication cluster, if configured to be in a relay mode, acquiring each terminal in the direct communication cluster in which the first terminal is located in a receiving mode Device information; the direct communication cluster includes at least one terminal in a receiving mode, at least one terminal in a transmitting mode, and at least one terminal in a relay mode;
  • a sending module configured to send, to the second terminal in the sending mode, the device information of each terminal in the receiving mode
  • a sending module configured to acquire target data of the second terminal when receiving the forwarding request of the second terminal in the sending mode, and forward the target data according to the transmission path indicated in the forwarding request;
  • the transmission path is determined by the second terminal according to the acquired device information.
  • the embodiment of the present application further provides a data transmission device, where the device includes:
  • An acquiring module configured to send, after being configured to send a mode, a terminal in the direct communication cluster in which the first terminal is located, in a relay mode, after the direct communication connection is established with the terminal in the direct communication cluster
  • the device information that is sent includes: device information of each terminal in the receiving mode in the direct communication cluster, and device information of each terminal in the relay mode;
  • a determining module configured to determine a transmission path according to the acquired device information when the data needs to be sent to the target terminal
  • a sending module configured to send the data to the target terminal according to the transmission path.
  • an embodiment of the present application provides a terminal, including at least a processor and a memory, where the memory is used to store application code, and the processor is configured to invoke the program code, and execute A method on the one hand, or a method on the second aspect.
  • an embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by the processor, The processor performs the method of the first aspect, or the method of the second aspect.
  • an embodiment of the present application provides a computer program product, where the computer program product includes a computer readable storage medium storing a computer program, where the computer program is caused by a processor to execute the first The method of the aspect, or the method of the second aspect.
  • FIG. 1 is a network architecture diagram provided by an embodiment of the present application
  • FIG. 2 is a network architecture diagram according to still another embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a data transmission network according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a data transmission method according to still another embodiment of the present application.
  • FIG. 6 is a schematic diagram of a data transmission network according to still another embodiment of the present application.
  • FIG. 7 is a schematic diagram of a user interface according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a data transmission apparatus according to still another embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the first terminal, the second terminal, or the third terminal described in this application may include, but is not limited to, a mobile terminal (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, and the like, and has a network connection and a data transmission function.
  • the mobile terminal may also be referred to as a user equipment (User Equipment, UE for short), a terminal (Terminal), a wireless terminal, or a mobile station (Mobile Station, MS for short), and the like.
  • FIG. 1 is a network architecture diagram provided by an embodiment of the present application.
  • the network architecture can be applied to a general direct connection communication scenario.
  • the network architecture can include a first terminal 10 and a second terminal 20 .
  • the first terminal 10 can establish a direct communication connection with the second terminal 20.
  • the direct communication connection refers to direct communication between the first terminal 10 and the second terminal 20 without resorting to a third party device, as shown in FIG.
  • the manner of establishing a direct communication connection between the first terminal 10 and the second terminal 20 may include: establishing a second direct communication connection between the first terminal 10 and the second terminal 20 based on the second transmission mode, and may be in the second straight
  • the connection information of the first transmission mode is exchanged on the communication connection.
  • a first direct communication connection based on the first transmission mode may be established between the first terminal 10 and the second terminal 20 based on the connection information.
  • the energy consumption value of the second direct communication connection when performing data interaction is smaller than the energy consumption value when the first direct communication connection performs data interaction, or the energy consumption value of the second direct connection communication when performing data interaction.
  • the energy consumption value when the connection information of the first transmission mode is changed between the first terminal 10 and the second terminal 20 is smaller.
  • the second direct communication connection established by the second transmission mode includes, but is not limited to, a Bluetooth connection, a radio frequency connection, such as a near field communication (NFC) connection, an ultrasonic connection, an electromagnetic wave connection, such as an infrared connection.
  • the first direct communication connection established by the first transmission mode includes, but is not limited to, a Wireless Fidelity (Wi-Fi) communication connection.
  • the second direct communication connection when establishing the first direct communication connection, may be established first.
  • the Bluetooth connection may be established between the first terminal 10 and the second terminal 20 via Bluetooth.
  • the Wi-Fi connection information on the Bluetooth connection such as the username and password of the Wi-Fi hotspot.
  • a first direct communication connection based on the Wi-Fi hotspot may be established between the first terminal 10 and the second terminal 20 based on the connection information.
  • the first terminal 10 can actively open the Wi-Fi hotspot function of the first terminal 20 after establishing the second direct communication connection, so as to establish a first direct communication connection with the second terminal 20, or
  • the two direct communication connection triggers the second terminal 20 to enable the Wi-Fi hotspot function, so that the first terminal 101 accesses the second terminal 102 to complete the establishment of the first direct communication connection.
  • the first terminal 10 when the user of the first terminal 10 needs to transmit data to the second terminal 102, the first terminal 10 can be configured to manage the transmission mode on the first terminal 10 (the transmission mode corresponds to at least one).
  • the direct communication button of the data transmission mode after the button is clicked to open the direct communication mode of the first terminal 10, the first terminal 10 can automatically enable the second transmission function corresponding to the Bluetooth and the Wi-Fi corresponding The first transmission function.
  • the user of the second terminal 20 can also enable the direct communication button of the second terminal 20, and automatically enable the second transmission function corresponding to the Bluetooth and the first transmission function corresponding to the Wi-Fi. Then, the user of the first terminal 10 can determine the second terminal 20 in the at least one terminal that the first terminal 10 scans through the Bluetooth, and the first terminal 10 establishes the Bluetooth connection with the second terminal 20.
  • the first terminal 10 may also first detect its own power value. If the power value is greater than the power preset percentage (eg, 90%), then the first The terminal 10 can also directly establish a first direct communication connection based on the Wi-Fi hotspot. If the power value is less than or equal to the power preset percentage (for example, 20%), the first terminal 10 may first establish the Bluetooth-based second direct communication connection, and then establish a Wi-Fi connection based on the Bluetooth connection. To complete the establishment of the first direct communication connection.
  • the power preset percentage eg, 90%
  • the first The terminal 10 can also directly establish a first direct communication connection based on the Wi-Fi hotspot. If the power value is less than or equal to the power preset percentage (for example, 20%), the first terminal 10 may first establish the Bluetooth-based second direct communication connection, and then establish a Wi-Fi connection based on the Bluetooth connection.
  • connection information for establishing a Wi-Fi connection (ie, a first direct communication connection) through a Bluetooth connection (ie, a second direct communication connection), and the connection information may be, for example, a Wi-Fi hotspot.
  • the user name and access password of the terminal and then establish a Wi-Fi connection (ie, the first direct communication connection) according to the connection information, which saves the terminal energy consumption to a certain extent, and the Wi-Fi connection (ie, the first straight Even the communication connection can guarantee faster transmission speed and also improve the transmission efficiency of the terminal when transmitting data.
  • the Wi-Fi hotspot may be first turned on in the first terminal 10, and the user name and password of the Wi-Fi hotspot are carried by the two-dimensional code.
  • the second terminal 20 can scan the two-dimensional code to directly obtain the user name and password of the Wi-Fi hotspot of the first terminal 10, and access the first terminal 10 to establish a first direct communication connection between the two terminals.
  • the second terminal 20 turns on the Wi-Fi hotspot, and carries the user name and password of the Wi-Fi hotspot by using a two-dimensional code.
  • the first terminal 10 can scan the two-dimensional code, and directly obtain the Wi- of the second terminal 20.
  • the username and password of the Fi hotspot are accessed to the second terminal 20 to establish a first direct communication connection between the two.
  • FIG. 2 is a network architecture diagram of an embodiment of the present application. As shown in FIG. 2, the network architecture may include a first terminal 10, a second terminal 20, and a third terminal 30.
  • the first terminal 10, the second terminal 20, and the third terminal 30 may form a direct communication cluster, and each terminal in the direct communication cluster may exchange data through mutually established direct communication connections.
  • each terminal in the direct communication cluster may exchange data through mutually established direct communication connections.
  • other terminals may also be included, and the embodiment of the present application is only one of the simple network architectures presented.
  • the first terminal 10 can also establish a direct communication connection with a plurality of terminals (except the second terminal 20 and the third terminal 30) to form a sub-direct communication cluster.
  • the second terminal 20 and the third terminal 30 can also form respective sub-direct communication clusters like the first terminal 10.
  • the first terminal 10, the second terminal 20, and the third terminal 30 can each transmit data to the corresponding sub-direct communication cluster through a direct communication connection as needed.
  • the direct communication connection mentioned in the embodiment of the present application is a wireless communication connection established between the terminals without using a third-party device, including but not limited to a Wi-Fi connection, a Bluetooth connection, and a radio frequency connection between the terminals, such as an NFC connection.
  • Wireless communication connection such as infrared connection or ultrasonic connection.
  • the Wi-Fi connection between the terminals means that at least one of the two terminals has enabled the Wi-Fi hotspot function, and the other terminal directly accesses the terminal that establishes the Wi-Fi hotspot, and establishes a direct communication connection. .
  • the first terminal 10, the second terminal 20, and the third terminal 30 can implement data through different established direct communication connections, such as a first direct communication connection and a second direct communication connection. Concurrency.
  • the first direct communication connection may be a communication connection capable of quickly transmitting data of a video, a picture, or the like that is greater than or equal to a preset threshold (or greater than or equal to a preset data amount threshold), including but It is not limited to a wireless communication connection such as a Wi-Fi connection.
  • the second direct communication connection is a communication connection that consumes less than a preset threshold and can transmit data whose data amount is less than a preset threshold (or less than a preset data amount threshold), including but not limited to, such as a Bluetooth connection or a radio frequency connection.
  • Wireless communication connection such as infrared connection.
  • the first direct communication connection is a part of data to be transmitted (including but not limited to a certain type of file data, for example, the data amount is greater than a preset threshold (or greater than or equal to a preset data amount threshold)
  • the first terminal 10, the second terminal 20, and the third terminal 30 may transmit some part of the data to be transmitted through the first direct communication connection established between the three terminals (including But not limited to a certain type of file data, such as the second type of file data).
  • another part of data to be transmitted including but not limited to another type of file data, such as the first data
  • that the data volume is less than a preset threshold (or less than a preset data amount threshold)
  • the first terminal 10, the second terminal 20, and the third terminal 30 may transmit another part of the data to be transmitted through the second direct communication connection established between the three terminals (including But not limited to another type of file data, such as the first type of file data).
  • the first terminal 10, the second terminal 20, and the third terminal 30 may transmit the data to be transmitted through a first direct communication connection established between the three terminals. For example, if the first terminal 10 determines that the data amount of the data to be transmitted is 20M, the preset data amount threshold is 5M. The first terminal 10 may determine that the data amount of the data to be transmitted is greater than a preset data amount threshold, and transmit the data to be transmitted through a first direct communication connection established with the second terminal 20, such as a Wi-Fi connection.
  • the first terminal 10, the second terminal 20, and the third terminal 30 may be configured when the first direct communication connection is for data to be transmitted that is smaller than a preset threshold (or smaller than a preset data amount threshold).
  • the data to be transmitted is transmitted through a second direct communication connection established between the above three terminals. For example, if the first terminal 10 determines that the data amount of the data to be transmitted is 1 M and the preset data amount threshold is 5 M, the first terminal 10 may determine that the data amount of the data to be transmitted is less than a preset data amount threshold.
  • the data to be transmitted is transmitted through a second direct communication connection established with the second terminal 20, such as a Bluetooth connection.
  • the other terminal when a terminal sends data to another terminal, the other terminal may use the data as the data to be transmitted of the other terminal after receiving the data.
  • the data may be data to be transmitted of a certain terminal, and part of data to be transmitted, such as a certain type of data (including but not limited to a certain type of file data).
  • a certain type of data including but not limited to a certain type of file data.
  • the transmitted data of one terminal can be used as the data to be transmitted of another terminal.
  • a terminal such as the first terminal 10 transmits a certain type of data in the data to be transmitted to another terminal (such as the second terminal 20), such as the first type of file data, Sending indication information to the other terminal (such as the second terminal 20) or the target terminal (such as the third terminal 30), the indication information may be used to indicate the other terminal (such as the second terminal 20) and the target terminal (such as The third terminal 30) establishes a second direct communication connection and transmits the first type of file data on the second direct communication connection.
  • the transmitted first type of file data can be used as the transmitted data of one terminal to another terminal.
  • a notification message can be sent to the other terminal (such as the second terminal 20) or the target terminal (such as the third terminal 30), and the notification message can be used to notify the other terminal (such as the second terminal 20) to send And transmitting the transmitted data through a direct communication connection established with the target terminal (such as the third terminal 30).
  • some of the requests/messages/instructions/information may also be exchanged between the terminals in the direct communication cluster via the second direct communication connection.
  • the above notification message and indication information may also be exchanged between the terminals in the direct communication cluster via the second direct communication connection.
  • the first terminal 10, the second terminal 20, and the third terminal 30 can transmit data as a transmitting end and/or a receiving end according to the requirements of respective data transceiving.
  • the first terminal 10 When the first terminal 10 needs to transmit data to each terminal in the direct communication cluster, it may serve as a transmitting end to transmit data to each terminal through a direct communication connection established with each terminal in the direct communication cluster.
  • Each terminal in the direct communication cluster can serve as a receiving end, and is received by the first terminal 10 through a direct communication connection (for example, a first direct communication connection or a second direct communication connection) established with the first terminal 10. data.
  • the first terminal 10 can transmit data to the second terminal 20 through a direct communication connection established with the second terminal 20.
  • the second terminal 20 can receive the data transmitted by the first terminal 10 through a direct communication connection established with the first terminal 10.
  • the first terminal 20 can also send data to the third terminal 30 through a direct communication connection established with the third terminal 30.
  • the third terminal 30 can receive the data transmitted by the first terminal 10 through a direct communication connection established with the first terminal 10.
  • the first terminal 10 may configure the direct communication mode to a transmission mode when the data needs to be transmitted to each terminal in the direct communication cluster, to each of the direct communication clusters in the receiving mode.
  • the terminal sends data.
  • the second terminal 20 and the third terminal 30 can respectively configure the direct communication mode as the receiving mode, and the data sent by the terminal in the sending mode can be better received according to the receiving and receiving requirements of each terminal. To choose to send and receive data.
  • the first terminal 10 when the first terminal 10 is configured as a transmission mode, and the second terminal 20 is configured to receive a mode, the first terminal 10 may send data to the second terminal through a direct communication connection established with the second terminal 20. 20.
  • the second terminal 20 can receive the data transmitted by the first terminal 10 through a direct communication connection established with the first terminal 10.
  • the first terminal 10 When the first terminal 10 is configured to transmit a mode, and the third terminal 30 is configured to receive a mode, the first terminal 10 may also transmit data to the third terminal 30 through a direct communication connection established with the third terminal 30. .
  • the third terminal 30 can receive the data transmitted by the first terminal 10 through a direct communication connection established with the first terminal 10.
  • the first terminal 10 can directly send a direct communication connection with each terminal in the direct communication cluster to send data, and can also send the target terminal in the direct communication cluster through other terminals in the direct communication cluster. data.
  • the target terminal may determine, in the initial terminal that needs to receive the data to be transmitted in the direct communication cluster that is determined by the first terminal 10, the signal strength between the first terminal 10 and the first terminal 10 is less than a preset signal strength threshold.
  • the initial terminal may also be a terminal that does not receive the data sent by the first terminal 10 in the direct communication cluster.
  • the target terminal may also be a terminal in the direct connection communication cluster that is interrupted by the data transmission process of the first terminal 10.
  • the target terminal may be a terminal that is selected by the first terminal 10 according to the device information of the receiving end in the direct communication cluster.
  • the target terminal may be a receiving end, and may also be a terminal configured to receive a mode.
  • the first terminal 10 can directly send a data to the target terminal, such as the third terminal, by directly establishing a direct communication connection with the third terminal 30 to transmit data. 30.
  • the first terminal 10 in addition to establishing a direct communication connection with the second terminal 20 to transmit data, can also transmit data to the target terminal through the third terminal 30, for example, the second terminal 20.
  • the first terminal 10 transmits data to the third terminal 30 as the target terminal through the second terminal 20 as an example for further explanation.
  • the data is transmitted to the second terminal 20.
  • the second terminal 30 can transmit the data transmitted by the first terminal 10 to the third terminal 30 through a direct communication connection established with the third terminal 30.
  • the second terminal 20 may be configured in a relay mode, so that the data sent by the first terminal 10 can be received, and the received data sent by the first terminal 10 is forwarded to the third terminal 30.
  • the second terminal 20 can be determined by the first terminal 10 based on performance information of each terminal in the direct communication cluster.
  • the second terminal 20 may be a terminal with a better performance status determined by the first terminal 10 according to performance information of each terminal in the direct communication cluster.
  • the second terminal 20 is a terminal that has the most remaining power in the direct communication cluster determined by the first terminal 10, or a terminal whose remaining power exceeds a preset power threshold.
  • each receiving end can report the current local performance information, such as storage space, remaining power, remaining memory, and transmission speed, to the transmitting end, so that the transmitting end A certain terminal with the best performance status may be determined according to the reported performance information to send data to the target terminal.
  • the current local performance information such as storage space, remaining power, remaining memory, and transmission speed
  • each terminal in the direct communication cluster may pass each terminal performance information in the direct communication cluster to the first when detecting the request of the first terminal 10 for acquiring performance information.
  • the direct communication connection established by the terminal 10 is sent to the first terminal 10.
  • the second terminal 20 may further determine that the performance information of the first terminal 10 meets a preset switching condition, and if the performance information is smaller than a corresponding preset threshold, the first terminal 10 is configured according to the direct connection.
  • the second terminal 20 may further be configured to: according to performance information of each terminal in the direct communication cluster, when determining that the performance information of the first terminal 10 is less than a corresponding preset threshold.
  • the determined terminal such as a terminal with better performance status.
  • the performance information of the first terminal 10 includes, but is not limited to, information about the storage space, remaining power, remaining memory, and transmission speed of the first terminal 10.
  • the performance information of the first terminal 10 is smaller than the preset preset value, and may be determined by determining, when the performance information of the first terminal 10 includes the remaining power, whether the remaining power is less than a preset number. a power threshold; when the performance information of the first terminal 10 includes a transmission speed, determining whether the transmission speed is less than a preset first speed threshold; if the remaining power is less than the preset first power threshold and/or the transmission If the speed is less than the preset first speed threshold, it is determined that the performance information of the first terminal 10 is less than a corresponding preset threshold.
  • the remaining power in the performance information of the first terminal 10 may be determined by using the information in the performance information of the first terminal 10 to determine whether the performance information of the first terminal 10 is smaller than the corresponding preset threshold.
  • the information such as the remaining memory, the storage space, the transmission speed, and the like are combined in a progressive or parallel manner to determine whether the performance information of the first terminal 10 is less than a corresponding preset threshold.
  • the performance information of the first terminal 10 is smaller than the preset preset value, and may be determined by determining whether the remaining power is less than a preset when the performance information of the first terminal 10 includes the remaining power. a first power threshold; if less than, when the performance information of the first terminal 10 includes a transmission speed, determining whether the transmission speed is less than a preset first speed threshold; if less, if the remaining power is less than the preset first If the power threshold and/or the transmission speed is less than the preset first speed threshold, determining that the performance information of the first terminal 10 is less than a corresponding preset threshold.
  • the determining, by the first terminal 10, the second terminal 20 according to the performance information of each terminal in the direct communication cluster may include: determining whether the remaining power of each terminal in the direct communication cluster exceeds a preset a power threshold; determining whether the remaining memory of each terminal in the direct communication cluster exceeds a preset remaining memory threshold; determining that the remaining power in each terminal exceeds a preset power threshold, and/or determining that the remaining memory in each terminal exceeds a preset The terminal of the remaining memory threshold is the second terminal.
  • the power threshold and the speed threshold may correspond to a second power threshold and a second speed threshold.
  • each information in the performance information of each terminal in the direct communication cluster can be determined by a single judgment to determine the second terminal 20, and each information in the performance information of each terminal in the direct communication cluster can be delivered. The incoming or parallel forms are combined to determine the second terminal 20.
  • the determining, by the first terminal 10, the second terminal 20 according to the performance information of each terminal in the direct communication cluster may include: determining whether the remaining power in the performance information of each terminal in the direct communication cluster is a greater than or equal to the preset second power threshold; determining whether the transmission speed in the performance information of the multiple terminals is determined when determining that the plurality of terminals in the respective terminals that the remaining power is greater than or equal to the preset second power threshold
  • the second speed threshold is greater than or equal to the preset; and the terminal with the transmission speed greater than or equal to the preset second speed threshold is selected as the second terminal.
  • the performance information of the respective terminals may include the remaining amount of power, the remaining memory, the storage space, and the transmission speed, and may also include the amount of data of the received data.
  • the first terminal 10 determines, according to performance information of each terminal in the direct communication cluster, that the second terminal 20 further includes: determining that the performance information of each terminal in the direct communication cluster is received. Whether the data amount of the data is greater than or equal to the preset data receiving threshold; determining the performance of the plurality of terminals when determining that the data of the received data includes the plurality of terminals whose received data is greater than or equal to the preset data receiving threshold Whether the transmission speed in the information is greater than or equal to the preset second speed threshold; and selecting, in the plurality of terminals, a terminal whose transmission speed is greater than or equal to the preset second speed threshold is used as the second terminal.
  • the second terminal 20 may also be determined by the first terminal 10 according to the device information of each terminal in the obtained direct communication cluster.
  • the first terminal 10 in the transmission mode can transmit data to the second terminal 20 in the relay mode through a direct communication connection established with the second terminal 20 in the relay mode.
  • the second terminal 30 in the relay mode can transmit the data transmitted by the first terminal 10 in the receiving mode to the third terminal 30 in the receiving mode through a direct communication connection established with the third terminal 30 in the receiving mode. .
  • the second terminal 10 may acquire device information of the third terminal 30 through a second direct communication connection with the third terminal 30; the second terminal 20 may set the device information of the second terminal 20, The device information of the three terminals 30 is transmitted to the first terminal 10. After receiving the device information sent by the second terminal 20, the first terminal 10 may determine the device information of the third terminal 30 as the target terminal that transmits data.
  • the user can set the direct communication mode of the mobile phone A to the relay mode by clicking the relay mode option or the icon.
  • the mobile phone A in the relay mode can obtain the device information of the other mobile phone B in the receiving mode, and the mobile phone A can obtain the device information of the mobile phone C in the sending mode, so that the device information of the mobile phone B in the receiving mode can be sent.
  • To the phone C in the sending mode can be set the direct communication mode of the mobile phone A to the relay mode by clicking the relay mode option or the icon.
  • the mobile phone A in the relay mode can obtain the device information of the other mobile phone B in the receiving mode, and the mobile phone A can obtain the device information of the mobile phone C in the sending mode, so that the device information of the mobile phone B in the receiving mode can be sent.
  • To the phone C in the sending mode is an example of receiving mode, sending mode, and relay mode.
  • the second terminal 20 may acquire the data sent by the originating terminal 10 through the first direct communication connection when receiving the forwarding request of the first terminal 10, and may forward the first terminal according to the transmission path indicated in the forwarding request.
  • the transmitted data; the transmission path indicated by the forwarding request may be that the data transmitted by the first terminal 10 is transmitted to the third terminal 30 through the second terminal 20.
  • the forwarding request may include device information of the third terminal.
  • the transmission path may be determined by the first terminal 10 based on the acquired device information.
  • the second terminal 20 may acquire the data sent by the originating terminal 10 through the second direct communication connection when receiving the forwarding request of the first terminal 10, and may transmit according to the indication indicated in the forwarding request.
  • the path forwards the data sent by the first terminal; the transmission path indicated by the forwarding request may be that the data sent by the first terminal 10 is sent to the third terminal 30 by using the second terminal 20.
  • the forwarding request may include device information of the third terminal.
  • the transmission path may be determined by the first terminal 10 based on the acquired device information.
  • the first terminal 10 and the second terminal 20 may establish a first direct communication connection to transmit data; If the next node indicated by the transmission path indicated in the forwarding request is another terminal in the direct communication cluster, the first terminal 10 establishes a first direct communication connection with the other terminal to transmit data.
  • the other terminal can be other receiving ends.
  • the first terminal 10 can display a user interface, which can be used to display the acquired device information.
  • the first terminal 10 may receive a selection operation for device information and determine a transmission path according to the selection operation. For example, when the first terminal 10 needs to transmit the data 1 to the third terminal 30, after selecting the third terminal 30 as the target terminal for transmitting the data 1, the second terminal 20 is selected to determine that the transmission path is the second.
  • the terminal 20 performs data forwarding.
  • the device information may include an identifier of the corresponding terminal, such as a Media Access Control (MAC) address, an Internet Protocol (IP) address, a name, a port number, and the like.
  • the device information may include an identifier of the corresponding terminal and a direct communication mode in which the corresponding terminal is located.
  • the second terminal 20 may also be a terminal configured to receive a mode. After receiving the data sent by the first terminal 10, the second terminal may be configured to be in a sending mode by using the direct communication mode of the second terminal 20. 20 can switch to the transmitting end to transmit data to the third terminal 30 in the receiving mode. In an embodiment, if the third terminal 30 is always used to receive data, the direct communication mode of the third terminal 30 can be configured as a receiving mode.
  • each terminal in the direct communication cluster is provided with a direct communication mode, which may be a transmission mode, a reception mode, and a relay mode. If the terminal is configured to transmit mode, the terminal may be a transmitting end for transmitting data, and if the terminal is configured in a relay mode, the terminal may be used to forward data. If the terminal is configured to receive mode, the terminal may be a receiving end for receiving data.
  • a direct communication mode which may be a transmission mode, a reception mode, and a relay mode.
  • each terminal may be configured with a direct communication button, and after clicking the direct communication button, the direct communication mode may be selected.
  • a terminal After a certain terminal in the direct communication cluster starts the relay mode, a terminal can send the device information of the terminal in the receiving mode scanned by the surrounding to the terminal in the sending mode.
  • the transmission distance of a terminal is limited, and data can be forwarded through a terminal in a relay mode to increase the transmission distance.
  • the data transmission mode can also be extended by forwarding data through the terminal in the relay mode.
  • the sender can manage the device information of the receiver that is scanned by itself, and the device information of the receiver that the relay device sends.
  • the receiving end can be a terminal in a receiving mode.
  • the relay terminal can be a terminal in a relay mode.
  • the sender can be a terminal in a transmit mode.
  • the transmitting end may transmit the data to the path forwarded by the receiving end to the path.
  • the next relay terminal is transmitted to the target terminal by the relay terminal.
  • the user may select another relay terminal to forward the data, and then the relay terminal transmits the data to the target terminal.
  • Each terminal in the direct communication cluster can switch between multiple direct communication modes according to the set direct communication mode, so that each terminal provides different functions based on different direct communication modes set. Moreover, when the distance between the terminals is changed, the distance is long, the terminal performance is poor, and the like, and the terminal cannot be used to continue the data transmission, the terminal can be used as the relay terminal to expand the data transmission distance and increase the networking. Flexibility.
  • the first terminal 10 when configured in the relay mode, can substantially implement all of the functions implemented when the second terminal 20 is in the relay mode.
  • the second terminal 20 When configured as a transmission mode, can basically implement all functions implemented when the first terminal 10 is in the transmission mode.
  • the data sent by the first terminal 10 to the second terminal 20 may be the data to be transmitted selected by the first terminal 10.
  • the data to be transmitted includes, but is not limited to, data such as the document, audio and video files, pictures, and the like.
  • the first terminal 10 can transmit data by establishing a direct communication connection with the second terminal 20.
  • the data transmitted by the first terminal 10 to the second terminal 20 may also be part of the data to be transmitted selected by the first terminal 10 (including but not limited to a certain type of file data).
  • the sent data may also be the transmitted data of the first terminal 10 to the second terminal 20.
  • the transmitted data may be the data to be transmitted, or may be part of the data to be transmitted (including But not limited to a certain type of file data).
  • the direct communication connection between the second terminal 20 and the third terminal 30 for transmitting data may be triggered by the first terminal 10 transmitting a connection request.
  • connection request may be sent by the first terminal 10 to a target terminal, such as the third terminal 30.
  • the connection request may include device information of the second terminal 20.
  • the connection request may also be sent by the first terminal 10 to the second terminal 20.
  • the connection request may include a target terminal, such as device information of the third terminal 30.
  • connection request may further include a first connection request, a second connection request, depending on the direct connection communication connection initiated by the connection request.
  • the first terminal 10 may determine the amount of data of the transmitted data; and send the first connection when the data amount of the data is greater than or equal to a preset threshold (or greater than or equal to a preset data amount threshold) Requesting to the second terminal 20 or the third terminal 30, the first connection request 10 is used to trigger the establishment of the first direct communication connection between the second terminal 20 and the third terminal 30; the data amount in the data is less than the preset
  • the threshold or less than the preset data amount threshold
  • the second connection request is sent to the second terminal 20 or the third terminal 30, and the second connection request is used to trigger the establishment of the second terminal 20 and the third terminal 30.
  • the second direct communication connection between the two ends so as to realize different direct communication connection with the second terminal 20 for data transmission according to the difference in data amount of the data transmitted by the first terminal 10, thereby improving data transmission efficiency.
  • the first connection request and the second connection request may be sent to the second terminal 20 through a second direct communication connection established between the first terminal 10 and the second terminal, or may be through the first terminal 10 and the third terminal 30.
  • the established second direct communication connection is sent to the third terminal 30.
  • the data sent by the first terminal 10 to the second terminal 20 may also be data that is sequentially transmitted through the at least one direct communication connection after classifying the data to be transmitted, or sent in parallel through multiple direct communication connections.
  • the classifying the data to be transmitted includes, but is not limited to, classifying each data in the data to be transmitted according to a category, a size, and a name.
  • the first terminal 10 may determine the first type of file data in the data to be transmitted, where the first type of file data is data whose data amount is less than a preset threshold; The terminal 10 transmits the first type of file data to the second terminal 20 through a second direct communication connection established with the second terminal 20.
  • the first terminal 10 determines the second type of file data in the data to be transmitted, where the second type of file data is data whose data amount is greater than or equal to a preset threshold; the first terminal 10 is established by using the second terminal 20
  • the second type of file data is sent to the second terminal 20 at the same time as the communication connection.
  • the data to be transmitted includes file 1, file 2, and file 3, and the data to be transmitted is classified according to the data size.
  • File 1 with a data volume less than 1M.
  • the data to be transmitted whose data amount is larger than 1M has file 2 and file 3. It can be determined that file 1 is the first type of file data.
  • the second terminal 20 may send the data to the third terminal 30 through a direct communication connection with the third terminal 30.
  • the direct communication connection between the second terminal 20 and the third terminal 30 includes, but is not limited to, triggering establishment after the second terminal 20 receives the connection request.
  • the connection request may be sent by the first terminal 10, and may also be sent by the third terminal 30.
  • the connection request may include the aforementioned first connection request or second connection request.
  • the first terminal 10 may send a notification message to the second terminal 20 or the third terminal 30, the notification message is used to notify the second terminal 20 as a transmitting end, and is established with the third terminal 30.
  • the direct communication connection transmits the data transmitted by the first terminal 10 or the transmitted data of the first terminal 10.
  • the second terminal 20 can receive the notification message sent by the first terminal 10. Wherein, the first terminal 10 determines that the target terminal is a plurality of receiving ends. The second terminal 20 may select to send the data sent by the first terminal 10 or the transmitted data of the first terminal 10 to the multiple receiving ends.
  • the first terminal 10 may send an indication message to the second terminal 20 or the third terminal 30, the indication message is used to indicate that the second terminal 20 establishes a direct communication connection with the third terminal 30, and indicates
  • the data transmitted by the first terminal 10 or the transmitted data of the first terminal 10, such as the first type of file data, is transmitted between the second terminal 20 and the third terminal 30.
  • the second terminal 20 can receive the indication information sent by the first terminal 10 by using the second direct communication connection.
  • the second terminal 20 may select the data sent by the first terminal 10 or the transmitted data of the first terminal 10, and send the file data of the first type to the plurality of receiving ends respectively.
  • the first terminal 10 may perform the transmission of the remaining data for the target terminal, such as the transmission task of a certain type of file data, or the remaining data transmission tasks to other devices at the same time;
  • a plurality of transmission tasks are performed, for example, when data transmission is performed to the target terminal, data transmission is simultaneously performed to some or all of the plurality of devices.
  • the sender may preferentially transmit the small file to the receiver with the best or best performance status.
  • the small file may be data in which the amount of data in the data to be transmitted mentioned in the embodiment of the present application is less than a preset threshold.
  • the transmitting end may continue to transmit other files after transmitting the small file, and may send some information, such as device information, or a connection request including device information, to other receiving ends, so as to establish the best receiving state of the performance state. Direct communication connection between the terminal and other receiving ends.
  • the sending end may also trigger the receiving end that has received the small file with the best performance status to send part of the data to other receiving ends (including but not limited to being triggered by the notification message).
  • the terminal that receives the partial data preferentially can send the small file just received to the other target receiving end, so that the multi-terminal parallel transmission mode can be formed.
  • the transmitting end may be the first terminal 10
  • the terminal with the best performance status may be the second terminal 20.
  • the other target terminal may be the third terminal 30. Data transmission efficiency can be improved by means of parallel transmission of multiple terminals.
  • the sending end may also preferentially transmit the small file to the receiving end with the best performance state, and send the information of other receiving ends, such as device information or a connection request including device information, to the receiving end with the best performance state, so that The receiver with the best performance status can establish a direct communication connection with other receivers to transmit data.
  • the small file may be the first type of file data in which the amount of data in the data to be transmitted mentioned in the embodiment of the present application is less than a preset threshold.
  • the sender can transmit a large file after the small file is transmitted.
  • the large file may be the second type of file data in which the amount of data in the data to be transmitted is greater than a preset threshold.
  • the receiving end with the best performance state may be triggered as the transmitting end to send the received data to other target receiving ends. (including but not limited to triggering with notification messages), thereby improving the overall efficiency of the terminals in the direct communication cluster.
  • the transmitting end may be the first terminal 10, and the terminal with the best performance status may be the second terminal 20.
  • the other target terminal may be the third terminal 30.
  • part of the data in the data to be transmitted such as a certain type of data (including but not limited to the first type of file data or the second type of file data) or the transmitted data may be used as the target data.
  • the above data to be transmitted may also be referred to as target data.
  • the data division is also different.
  • the data to be transmitted is divided into a plurality of categories and sent to a plurality of target terminals respectively, and then the data that needs to be sent to other terminals is sequentially or parallelly transmitted to other terminals by at least one direct communication connection by the plurality of terminals, so that Collaborative data transfer of multiple devices is completed.
  • the data may also be divided into first type data, second type data, third type data, and fourth type of data as the number of devices participating in the cooperative transmission increases.
  • the labels and titles are not limited.
  • FIG. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application.
  • the method can be applied to smart terminals, including but not limited to portable mobile devices such as mobile phones and tablet computers.
  • the method may include:
  • the direct communication cluster includes at least one terminal in a receiving mode, at least one terminal in a sending mode, and at least one terminal in a relay mode.
  • the device information includes: a device identifier and a direct communication mode in which the corresponding terminal is located, where the device information is sent to each terminal in a sending mode through a second direct communication connection; the direct communication mode includes: a sending mode, a medium Following mode and receive mode.
  • the first terminal may acquire each terminal in the direct connection communication cluster where the first terminal is located in the receiving mode. Device information.
  • the first terminal may also obtain device information of each terminal in the direct connection communication cluster in the transmission mode, so that the direct connection communication mode of each terminal included in the device information may be accurately received.
  • the device information of the mode terminal is sent to the terminal in the transmission mode.
  • the direct connection communication mode Through the setting of the direct connection communication mode, the division of labor between terminals is more clear, and data transmission is more convenient. For example, as shown in FIG. 4, if the direct communication cluster is composed of a terminal 400, a terminal 401, a terminal 402, a terminal 403, and a terminal 404.
  • the first terminal is the terminal 402.
  • the terminal 403 and the terminal 404 are configured to receive a mode
  • the terminal 402 is configured to be in a relay mode
  • the terminal 400 and the terminal 401 are configured to transmit a mode.
  • the terminal 402 can acquire the device information of the terminal 403 and the device information of the terminal 404.
  • the first direct communication connection corresponding to the direct communication mode may be used to transmit target data with other terminals in the direct communication cluster, and the direct data may be utilized.
  • the second direct communication connection in the communication mode exchanges other information such as device information with other terminals in the direct communication cluster.
  • the first direct communication connection includes, but is not limited to, a wireless communication connection such as a Wi-Fi connection
  • the second direct communication connection includes, but is not limited to, a wireless communication connection such as a Bluetooth connection, an NFC connection, an ultrasonic connection, or the like.
  • the first terminal may receive a direct communication mode setting operation of the user, including but not limited to other touch operations such as clicking, pressing a corresponding direct communication mode option, an icon, and the like.
  • a direct communication mode setting operation of the user including but not limited to other touch operations such as clicking, pressing a corresponding direct communication mode option, an icon, and the like.
  • the first terminal detects the click operation of the relay mode option, the first terminal starts the function corresponding to the relay mode, such as performing the device information of the terminal in the receiving mode in step S301.
  • the first terminal can switch between three direct communication modes, that is, can be switched from one direct communication mode to another direct communication mode.
  • the current direct communication mode of the first terminal is the receiving mode.
  • the first terminal may be configured as the sending mode.
  • the first terminal may send the device information to the terminal in the relay mode or the terminal in the sending mode, and may receive the terminal in the relay mode and is in the sending The data sent by the mode terminal.
  • the first terminal is configured to send a mode, acquiring device information of each terminal in the receiving mode sent by each terminal in the relay mode in the direct communication cluster where the first terminal is located, and each of the Device information of the terminal in the relay mode; when data needs to be transmitted to the target terminal in each of the terminals in the receiving mode, the transmission path is determined according to the acquired device information; and the data is transmitted according to the transmission path.
  • the direct communication cluster is composed of a terminal 400, a terminal 401, a terminal 402, a terminal 403, and a terminal 404.
  • the first terminal is the terminal 401.
  • the terminal 403 and the terminal 404 are configured to receive a mode, the terminal 402 is configured to be in a relay mode, and the terminal 400 and the terminal 401 are configured to transmit a mode.
  • the terminal 401 can obtain the device information of the terminal 403 and the device information of the terminal 404 through the terminal 402. If the terminal 401 determines to transmit the data 1 to the terminal 403 according to the device information of the terminal 403, the transmission path may be selected to transmit the data 1 to the terminal 403 through the terminal 402.
  • the first terminal when the first terminal is in the sending mode, when the data needs to be sent to the target terminal in each terminal in the receiving mode, the first terminal may determine the target terminal that transmits the data by using the device information.
  • the first terminal can set a transmission path.
  • the desired transmission path can be selected for data transmission. For example, as shown in FIG. 4, if the direct communication cluster is composed of a terminal 400, a terminal 401, a terminal 402, a terminal 403, and a terminal 404.
  • the first terminal is the terminal 401.
  • the terminal 403 is configured to receive a mode
  • the terminal 402 and the terminal 404 are configured in a relay mode
  • the terminal 400 and the terminal 401 are configured to transmit a mode.
  • the first terminal is the terminal 401. If the terminal 401 detects that the terminal in the relay mode is in the relay mode, and the terminal 404 is in the relay mode, the terminal 401 can select the transmission path. Data 1 is sent to terminal 403 through the terminal 404.
  • the first terminal is provided with a user interface; the user interface is configured to display the acquired device information to set the transmission path. For example, after selecting the identifier of the target terminal, the user may select an identifier of the terminal in the relay mode in the direct communication cluster to determine the transmission path.
  • the first terminal sends the device information of each terminal in the receiving mode to the second terminal in the direct mode communication cluster in the sending mode.
  • the second terminal in the sending mode may be one or more terminals in the sending mode.
  • the direct communication cluster is composed of a terminal 400, a terminal 401, a terminal 402, a terminal 403, and a terminal 404.
  • the first terminal is the terminal 402.
  • the second terminal is the terminal 401.
  • the terminal 403 and the terminal 404 are configured to receive a mode
  • the terminal 402 is configured to be in a relay mode
  • the terminal 400 and the terminal 401 are configured to transmit a mode.
  • the terminal 402 can obtain the device information of the terminal 403 and the device information of the terminal 404, and can send the device information of the terminal 403 and the device information of the terminal 404 to the terminal 401.
  • the terminal 402 can also send the device information of the terminal 403 and the device information of the terminal 404 to the terminal 401.
  • the first terminal may establish a second direct connection communication with other terminals in the direct communication mode to perform device information interaction.
  • the first terminal establishes a second direct communication connection with the terminal in the sending mode when detecting the connection request of the terminal in the sending mode; the first terminal receives the second direct communication connection by using the terminal a forwarding request of the terminal in the sending mode, and returning a response message about the forwarding request; wherein the response message is used to notify the terminal in the sending mode to establish a first direct communication connection with the first terminal to acquire target data.
  • the first terminal acquires target data of the second terminal when receiving the forwarding request of the second terminal in the sending mode, and forwards the target data according to the transmission path indicated in the forwarding request.
  • the forwarding request may include an identifier of the target object that is sent by the target data.
  • the target object may be a terminal in a receiving mode.
  • the identifier includes, but is not limited to, the name of the target object, a MAC address, an IP address, a port number, and the like.
  • the foregoing transmission path is determined by the second terminal according to the acquired device information.
  • the direct communication cluster is composed of a terminal 400, a terminal 401, a terminal 402, a terminal 403, and a terminal 404.
  • the first terminal is the terminal 402.
  • the second terminal is the terminal 402.
  • the terminal 404 is configured in a receiving mode
  • the terminal 402 and the terminal 403 are configured in a relay mode
  • the terminal 400 and the terminal 401 are configured in a transmitting mode.
  • the terminal 402 Upon receiving the forwarding request of the terminal 401, the terminal 402 forwards the data 1 according to the transmission path indicated in the forwarding request, and transmits the data 1 to the terminal 404 as by the terminal 402.
  • forwarding the target data according to the transmission path indicated in the forwarding request including: if the next node indicated by the transmission path indicated in the forwarding request is a terminal in a relay mode in the direct communication cluster, And the first terminal establishes a first direct communication connection with the terminal in the relay mode to transmit the target data; if the next node indicated by the transmission path indicated in the forwarding request is in the direct communication cluster
  • the terminal of the mode establishes a first direct communication connection with the terminal in the receiving mode to transmit the target data.
  • the target data is not limited to data such as audio and video files, documents, pictures, and the like.
  • the direct communication cluster is composed of a terminal 400, a terminal 401, a terminal 402, a terminal 403, and a terminal 404.
  • the first terminal is the terminal 402.
  • the second end is the terminal 401.
  • the terminal 404 is configured to receive a mode
  • the terminal 402 and the terminal 403 are configured in a relay mode
  • the terminal 400 and the terminal 401 are configured to transmit a mode.
  • the terminal 402 receives the forwarding request from the terminal 401. And determining that the target terminal is the terminal 404. If the next node indicated by the transmission path indicated in the forwarding request is the terminal 404, the terminal 402 establishes a first direct communication connection with the terminal 404 to transmit the data 1 to the terminal 404. If the next node indicated by the transmission path indicated in the forwarding request is the terminal 403, the first direct communication connection may be established with the terminal 403 to transmit the data 1, and the data 1 is transmitted to the terminal 404 through the terminal 403.
  • the first terminal when the first terminal is configured to be in the relay mode, the first terminal implements information between the terminal in the receiving mode and the second terminal in the sending mode in the direct communication cluster. And the interaction of data, thereby expanding the data transmission mode and facilitating data transmission.
  • FIG. 5 is a schematic flowchart of a data transmission method according to another embodiment of the present disclosure.
  • the method may be applied to an intelligent terminal, including but not limited to a portable mobile device such as a mobile phone or a tablet computer.
  • the method may include:
  • the first terminal After the first terminal establishes a direct communication connection with the terminal in the direct communication cluster, if it is configured to be in the sending mode, obtain the terminal in the direct mode communication cluster in which the first terminal is located in the relay mode. Device information.
  • the device information that is sent may include: device information of each terminal in the receiving mode in the direct communication cluster, and device information of each terminal in the relay mode.
  • the device information of each of the terminals in the receiving mode includes the device identification of the terminal in the receiving mode and the direct communication mode in which it is located.
  • the device information of each of the terminals in the relay mode includes the device identifier of the terminal in the relay mode and the direct communication mode in which the terminal is located.
  • the first terminal may perform configuration of multiple direct communication modes, such as a transmission mode, a reception mode, and a relay mode. After the first terminal initiates the corresponding direct communication mode, the first terminal direct communication function can be switched through the configured different direct communication mode, so that the direct communication cluster including the first terminal is configured.
  • the communication between the two is more flexible.
  • the terminal 600, the terminal 601, the terminal 602, the terminal 603, and the terminal 604 are configured.
  • the first terminal is the terminal 601.
  • the terminal 603 and the terminal 604 are configured to receive a mode
  • the terminal 602 is configured to be in a relay mode
  • the terminal 600 and the terminal 601 are configured to transmit a mode.
  • the terminal 601 can acquire the device information of the terminal 603 and the device information of the terminal 604 through the terminal 602.
  • the terminal 600 can also obtain the device information of the terminal 603 and the device information of the terminal 604 through the terminal 602.
  • the first terminal displays a user interface; the user interface is configured to display the acquired device information to set the transmission path.
  • the acquired information is device information sent by each terminal in the relay mode in the communication mode.
  • the first terminal may determine a corresponding transmission path according to the selection operation when detecting a selection operation for the device information in the user interface.
  • the user interface may display device information of the terminal in the receiving mode, and may receive a selection operation for the user interface, and display a device information of the terminal in the receiving mode by using a jump page, such as a terminal in the relay mode.
  • Device Information may be used to determine a corresponding transmission path according to the selection operation when detecting a selection operation for the device information in the user interface.
  • the user interface may display device information of the terminal in the receiving mode, and may receive a selection operation for the user interface, and display a device information of the terminal in the receiving mode by using a jump page, such as a terminal in the relay mode.
  • Device Information is a corresponding transmission path according to the selection operation when detecting a selection operation for the device information in the user interface.
  • the terminal 600, the terminal 601, the terminal 602, the terminal 603, and the terminal 604 are configured.
  • the first terminal is the terminal 601.
  • the terminal 603 and the terminal 604 are configured to receive a mode
  • the terminal 602 is configured to be in a relay mode
  • the terminal 600 and the terminal 601 are configured to transmit a mode.
  • the user interface of the terminal 601 can display the device information of the terminal 603 and the device information of the terminal 604 as shown in FIG. 6, and can also display the device information of the transmitting terminal 603 and the device information of the terminal 602 of the device information of the terminal 604.
  • the determining the transmission path according to the acquired device information may include: selecting a target terminal according to the obtained terminal device information in the receiving mode, and selecting a corresponding transmission path for transmitting the data to the target terminal.
  • data can be transmitted to the target terminal through each terminal in the relay mode.
  • the difference between the number of nodes passing through the device information in the relay mode according to the device information of the target terminal is different.
  • the intermediate passing node may be a terminal in a relay mode.
  • the first terminal may receive a selection operation for device information in the user interface, and determine a transmission path according to the selection operation.
  • the terminal in the transmission mode such as the user interface of the terminal 601 includes at least device information of the terminal 602, device information of the terminal 603, and device information of the terminal 604.
  • the terminal 602 may be selected as the target terminal of the transmission target data, and then the terminal 602 is selected to determine the transmission path to perform data forwarding by the terminal 602.
  • the first terminal may record the transmission path of the feedback of the target terminal, and when the first terminal selects the target terminal to transmit the target data, the data may be transmitted according to the recorded transmission path.
  • the first terminal sends the data to the target terminal according to the transmission path.
  • the first terminal may determine the transmission path according to the acquired device information.
  • the first terminal may transmit data through the determined transmission path.
  • the transmission path indicates at least one terminal in the relay mode.
  • the first terminal may generate a forwarding request for requesting to forward the data when the data is transmitted, where the forwarding request may carry the device information of the target terminal. If the next node indicated by the transmission path indicated by the forwarding request is a terminal in the relay mode.
  • the first terminal may send the forwarding request through a second direct communication connection established with the first terminal in the relay mode, and may establish a first direct communication connection with the terminal in the relay mode to transmit The data. For example, as shown in FIG. 7, if the transmission path selected by the terminal 601 is data forwarding through the terminal 602, the terminal 601 can send a forwarding request with the terminal 602 through the established second direct communication connection, and the terminal 602 Establish a first direct communication connection to transfer data 1.
  • the first terminal when the first terminal is configured to be in a sending mode, device information of the terminal in the receiving mode and device information in the relay mode may be acquired, and the device information is selected according to the acquired device information.
  • the corresponding transmission path is used for data transmission, thereby realizing various data transmission modes and increasing the flexibility of data transmission.
  • FIG. 8 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present disclosure.
  • the apparatus may be applied to a smart terminal, including but not limited to a portable mobile device such as a mobile phone or a tablet computer.
  • the device may acquire the module 801, the sending module 802, and the obtaining and sending module 803, and may further include a determining module 804.
  • the device may include:
  • the obtaining module 801 is configured to: after being configured to perform a direct communication connection with the terminal in the direct communication cluster, if configured to be in the relay mode, acquire each of the direct communication clusters where the first terminal is located in the receiving mode Device information of the terminal; the direct communication cluster includes at least one terminal in a receiving mode, at least one terminal in a transmitting mode, and at least one terminal in a relay mode.
  • the sending module 802 is configured to send, to the second terminal in the sending mode, the device information of each terminal in the receiving mode.
  • the obtaining module 803 is configured to acquire target data of the second terminal when receiving the forwarding request of the second terminal in the sending mode, and forward the target data according to the transmission path indicated in the forwarding request.
  • the transmission path is determined by the second terminal according to the acquired device information.
  • the obtaining module 801 may correspond to a communication interface, such as a wireless communication module such as a Bluetooth module, a Wi-Fi module, or a radio frequency module.
  • the sending module 802 can correspond to a communication interface, such as a wireless communication module such as a Bluetooth module or a Wi-Fi module.
  • the acquisition sending module 803 may correspond to a communication interface, such as a wireless communication module such as a Bluetooth module or a Wi-Fi module.
  • the device information includes: a device identifier and a direct communication mode in which the corresponding terminal is located, where the device information is sent by the first terminal to the second terminal by using a second direct communication connection; the direct communication mode
  • the method includes: a sending mode, a relay mode, and a receiving mode; the forwarding request is sent by the second terminal to the first terminal by using a second direct communication connection; the target data is that the second terminal is connected by using the first direct communication Sent to the first terminal.
  • the first terminal may be configured in different direct communication modes and perform different functions in different direct communication modes. For example, if it is the receiving mode, the data transmitted by the terminal in the transmitting mode and the data transmitted by the terminal in the relay mode can be received by the first terminal.
  • the obtaining and sending module 803 is specifically configured to: if the next node indicated by the transmission path indicated in the forwarding request is a terminal in a relay mode in the direct communication cluster, The terminal in the relay mode establishes a first direct communication connection to transmit the target data; if the next node indicated by the transmission path indicated in the forwarding request is a terminal in the receiving mode in the direct communication cluster, then Establishing a first direct communication connection with the terminal in the receiving mode to transmit the target data.
  • the first direct communication connection includes, but is not limited to, a wireless communication connection such as a Wi-Fi connection.
  • the target data includes, but is not limited to, audio and video files, pictures, documents, and the like.
  • the obtaining module 801 is further configured to: if configured to be in a sending mode, acquire device information sent by each terminal in the relay mode in the direct communication cluster where the first terminal is located.
  • the device information to be sent includes: device information of each terminal in the receiving mode in the direct communication cluster, and device information of each terminal in the relay mode.
  • the determining module 804 is configured to determine, according to the acquired device information, a transmission path when the data needs to be sent to the target terminal.
  • the determining module 804 may be specifically disposed in the processor.
  • the determining module 804 can determine, according to the device information, that the transmission path is through the terminal in the relay mode to forward the data to the target terminal.
  • the target terminal is a terminal in a receiving mode in the direct communication cluster.
  • the sending module 802 is further configured to send the data to the target terminal according to the transmission path.
  • the determining module 804 is specifically configured to display a user interface; the user interface is configured to display the acquired device information; receive a selection operation for the device information, and determine a transmission path according to the selecting operation.
  • the sending module 802 may establish the first straight line with the terminal in the relay mode. Connect to the communication to transfer data.
  • the second terminal in the sending mode can be made to the terminal in the sending mode by the first terminal in the direct communication cluster.
  • the transmission of data provides a variety of data transmission methods, which facilitates the transmission of data and increases the flexibility of data transmission.
  • FIG. 9 is a schematic structural diagram of a data transmission apparatus according to another embodiment of the present disclosure, where the apparatus can be applied to a smart terminal, including but not limited to a portable mobile device such as a mobile phone or a tablet computer.
  • the device may acquire the module 901, the determining module 902, and the sending module 903.
  • the device may include:
  • the obtaining module 901 is configured to: after being configured to perform a direct communication connection with the terminal in the direct communication cluster, if configured to be in the sending mode, acquire each terminal in the direct mode communication cluster in which the first terminal is located in the relay mode Device information sent.
  • the device information that is sent may include: device information of each terminal in the receiving mode in the direct communication cluster, and device information of each terminal in the relay mode.
  • the obtaining module 901 may correspond to a communication interface.
  • the device information of the terminal in the receiving mode includes, but is not limited to, an identifier of the terminal in the receiving mode and a direct communication mode in which the terminal in the receiving mode is located.
  • the device information of the terminal in the relay mode includes, but is not limited to, the identity of the terminal in the relay mode and the direct communication mode in which the terminal in the relay mode is located.
  • the direct communication mode includes but is not limited to a receiving mode, a transmitting mode, and a relay mode.
  • the determining module 902 is configured to determine a transmission path according to the acquired device information when it is required to send data to the target terminal.
  • the determining module 902 can be set in the processor.
  • the determining module 902 can determine a transmission path based on the device information.
  • the target terminal in the receiving mode may be determined by the device information of the terminal in the receiving mode to transmit the target data
  • the device may be determined by the device information of the terminal in the relay mode to specifically pass the target terminal in the relay mode. Data forwarding.
  • the sending module 903 is configured to send the data to the target terminal according to the transmission path. In the embodiment of the present application, after determining the forwarding path, the sending module 903 may establish a first direct communication connection with the determined target terminal in the relay mode to transmit data.
  • the determining module 902 is specifically configured to display a user interface; the user interface is configured to display the acquired device information; and according to the selecting operation for receiving the device information, and determining the transmission path according to the selecting operation.
  • the first terminal may select the terminal 603 as the target terminal, and select the transmission path to perform data forwarding through the terminal 602.
  • the first terminal when the first terminal is configured to be in a sending mode, device information of the terminal in the receiving mode, device information in the relay mode, and device information selected according to the acquired device information may be acquired.
  • the corresponding transmission path is used for data transmission, thereby realizing various data transmission modes and increasing the flexibility of data transmission.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application, for performing a data transmission method as shown in the embodiment of FIG. 3 or FIG. 5 of the present application.
  • the terminal in the embodiment of the present application may include: at least one component of the processor 1000, the memory 3000, and the like.
  • the terminal may further include a communication interface 2000.
  • these components are communicatively connected by one or more buses 4000.
  • the structure of the terminal shown in FIG. 10 does not constitute a limitation on the embodiment of the present application. It may be a bus-shaped structure or a star-shaped structure, and may include more than the figure or Fewer parts, or a combination of some parts, or different parts. among them:
  • the processor 1000 is a control center of the terminal, and connects various parts of the entire terminal by using various interfaces and lines, by executing or executing programs and/or modules stored in the memory 3000, and calling data stored in the memory 3000 to execute the terminal.
  • the processor 1000 may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • the processor 1000 may include only a central processing unit (CPU), or may be a CPU, a digital signal processor (DSP), or a graphics processing unit (GPU). And a combination of various control chips.
  • the CPU may be a single operation core, and may also include a multi-operation core.
  • the communication interface 2000 may include multiple wireless communication modules, such as a radio frequency module, a Wi-Fi module, a Bluetooth module, an ultrasound module, etc., and may be used to establish a direct communication connection between terminals in a direct communication cluster, including but not limited to implementation.
  • the communication interface 2000 can also include a display screen for outputting a user interface, or a touch screen or the like can be used to receive user operations, such as receiving a selection operation for device information.
  • the communication interface 2000 can also be a touch display.
  • the memory 3000 can be used to store computer programs and modules.
  • the processor 1000 and the communication interface 2000 perform various functional applications of the terminal and implement data processing by calling computer programs and modules stored in the memory 3000.
  • the memory 3000 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, and the like; the data storage area can store data created according to the use of the terminal, and the like.
  • the operating system may be an Android system, an iOS system, a Windows operating system, or the like.
  • the processor 1000 calls a computer program stored in the memory 3000 for performing the following steps:
  • the communication interface 2000 acquires each terminal in the direct communication cluster in which the first terminal is located in the receiving mode.
  • Device information; the direct communication cluster includes at least one terminal in a receiving mode, at least one terminal in a transmitting mode, and at least one terminal in a relay mode;
  • Receiving the forwarding request of the second terminal in the sending mode acquiring the target data of the second terminal through the communication interface 2000, and forwarding the target data according to the transmission path indicated in the forwarding request;
  • the transmission path is determined by the second terminal according to the acquired device information.
  • the device information includes: a device identifier and a direct communication mode in which the corresponding terminal is located, where the device information is sent by the first terminal to the second terminal by using a second direct communication connection;
  • the communication mode includes: a transmission mode, a relay mode, and a reception mode; the forwarding request is sent by the second terminal to the first terminal by using a second direct communication connection; the target data is the second
  • the terminal sends the first terminal to the first terminal through a first direct communication connection.
  • the processor 1000 calls a computer program stored in the memory 3000, and the target data is forwarded according to the transmission path indicated in the forwarding request, specifically for performing the following steps:
  • next node indicated by the transmission path indicated in the forwarding request is a terminal in a relay mode in the direct communication cluster, establishing a first direct communication connection with the terminal in the relay mode to transmit The target data;
  • next node indicated by the transmission path indicated in the forwarding request is a terminal in the receiving mode in the direct communication cluster, establishing a first direct communication connection with the terminal in the receiving mode to transmit the Target data.
  • the processor 1000 invokes a computer program stored in the memory 3000, and after establishing a direct communication connection with the terminal in the direct communication cluster, is also used to perform the following steps:
  • the device information to be sent includes: each receiving in the direct communication cluster Device information of the terminal of the mode, and device information of each terminal in the relay mode;
  • the transmission path is determined according to the acquired device information
  • the processor 1000 calls a computer program stored in the memory 3000, and when the data needs to be sent to the target terminal, determines a transmission path according to the acquired device information, and is configured to perform the following steps:
  • a selection operation for the device information is received through the communication interface 2000, and a transmission path is determined according to the selection operation.
  • the processor 1000 calls a computer program stored in the memory 3000, and is also configured to perform the following steps:
  • the device information to be sent includes: device information of each terminal in the receiving mode in the direct communication cluster, and device information of each terminal in the relay mode;
  • the transmission path is determined according to the acquired device information
  • the processor 1000 calls a computer program stored in the memory 3000, and is also configured to perform the following steps:
  • a selection operation for the device information is received through the communication interface 2000, and a transmission path is determined according to the selection operation.
  • a computer readable storage medium is also provided, the computer readable storage medium storing a computer program implemented by the processor 1000 to be implemented in the embodiment of FIG. 3 or FIG. 5 of the present application. The data transmission method described.
  • a computer program product comprising a computer readable storage medium storing a computer program, which when executed by processor 1000, implements FIG. 3 or FIG. 5 of the present application The data transmission method described in the embodiment.
  • the first terminal when the first terminal is configured to be in the relay mode, the first terminal implements information between the terminal in the receiving mode and the second terminal in the sending mode in the direct communication cluster. And the interaction of data, thereby expanding the data transmission mode and facilitating data transmission.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
  • the modules described as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. . Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the above-described integrated modules implemented in the form of software function modules can be stored in a computer readable storage medium.
  • the above software function module is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute the method described in various embodiments of the present application. Part of the steps.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本申请实施例公开了一种数据传输方法、装置、终端及计算机可读存储介质,该方法包括:在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息;将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端;在接收到处于发送模式的所述第二终端的转发请求时,获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据。采用本申请,方便了数据的传输,增加了数据传输的灵活性。

Description

一种数据传输方法、装置、终端及计算机可读存储介质
本申请要求于2017年7月18日提交中国专利局、申请号为201710587644.9、发明名称为“一种数据传输方法、装置、终端及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种数据传输方法、装置、终端及计算机可读存储介质。
背景技术
随着通信技术的发展,人们可以利用各式各样的通信方式进行数据的交互。例如,各个终端间可以通过蓝牙、无线保真(Wireless-Fidelity,Wi-Fi)、近场通信(Near Field Communication,NFC)等无线通信方式,来发送和/或接收数据。
通常来说,终端会获取用户想要传输至其它终端的数据,并在接收到用于发送该数据的指令时,可以将该数据发送至该其它终端。经实践发现,由于终端间距离发生改变或者在该终端传输距离受限时,会影响该终端对其它终端的数据传输。
申请内容
本申请实施例提供了一种数据传输方法、装置、终端及计算机可读存储介质,使得在直连通信集群中的各个设备可以进行数据交互,扩展了数据传输方式,有利于进行数据传输。
第一方面,本申请实施例提供了一种数据传输方法,包括:
在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息;所述直连通信集群中包括至少一个处于接收模式的终端、至少一个处于发送模式的终端、至少一个处于中继模式的终端;
将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端;
在接收到处于发送模式的所述第二终端的转发请求时,获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据;所述传输路径是所述第二终端根据获取的设备信息确定的。
第二方面,本申请实施例还提供了一种数据传输方法,包括:
在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;所述发送的设备信息包括:所述直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息;
在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
根据所述传输路径向所述目标终端发送所述数据。
第三方面,本申请实施例提供了一种数据传输装置,包括:
获取模块,用于在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息;所述直连通信集群中包括至少一个处于接收模式的终端、至少一个处于发送模式的终端、至少一个处于中继模式的终端;
发送模块,用于将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端;
获取发送模块,用于在接收到处于发送模式的所述第二终端的转发请求时,获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据;所述传输路径是所述第二终端根据获取的设备信息确定的。
第四方面,本申请实施例还提供了一种数据传输装置,该装置包括:
获取模块,用于在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;所述发送的设备信息包括:所述直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息;
确定模块,用于在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
发送模块,用于根据所述传输路径向所述目标终端发送所述数据。
第五方面,本申请实施例提供了一种终端,至少包括处理器和存储器,其中,所述存储器用于存储应用程序代码,所述处理器被配置用于调用所述程序代码,执行如第一方面的方法,或者第二方面的方法。
第六方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如第一方面的方法,或者第二方面的方法。
第七方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括了存储有计算机程序的计算机可读存储介质,所述计算机程序被处理器使所述处理器执行上述第一方面的方法,或者第二方面的方法。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种网路架构图;
图2为本申请再一实施例提供的一种网路架构图;
图3为本申请实施例提供的一种数据传输方法的流程示意图;
图4为本申请实施例提供的一种数据传输网络示意图;
图5为本申请再一实施例提供的一种数据传输方法的流程示意图;
图6为本申请再一实施例提供的一种数据传输网络示意图;
图7为本申请实施例提供的一种用户界面示意图;
图8为本申请实施例提供的一种数据传输装置的结构示意图;
图9为本申请再一实施例提供的一种数据传输装置的结构示意图;
图10为本申请实施例提供的一种终端的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”等是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、***、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括没有列出的步骤或模块,或可选地还包括 对于这些过程、方法、产品或设备固有的其它步骤或模块。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
应理解,本申请所描述的第一终端、第二终端或第三终端可以包括,但不限于:手机(如Android手机、iOS手机等)、平板电脑等具有网络连接和数据传输功能的移动终端。该移动终端还可称为用户设备(User Equipment,简称UE)、终端(Terminal)、无线终端或移动台(Mobile Station,简称MS)等等,本申请实施例不做限定。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
请参阅图1,为本申请实施例提供的一种网络架构图。该网络架构可以应用于一般的直连通信场景中,如图1所示,该网络架构中可以包括第一终端10、第二终端20。
其中,第一终端10可以与第二终端20间建立直连通信连接。该直连通信连接是指该第一终端10和第二终端20之间直接通信而不借助于第三方设备,如图1所示。第一终端10与第二终端20间建立直连通信连接的方式可以包括:第一终端10与第二终端20间基于第二传输方式建立第二直连通信连接,并可以在该第二直连通信连接上交互第一传输方式的连接信息。该第一终端10与该第二终端20间可以基于该连接信息建立基于第一传输方式的第一直连通信连接。其中,第二直连通信连接在进行数据交互时的能耗值小于第一直连通信连接在进行数据交互时的能耗值,或者第二直连通信连接在进行数据交互时的能耗值小于第一终端10与第二终端20间交互该第一传输方式的连接信息时的能耗值。
其中,第二传输方式建立的第二直连通信连接包括但不限于蓝牙连接、射频连接,如近场通信(Near Field communication,NFC)连接、超声波连接、电磁波连接,如红外线连接。第一传输方式建立的第一直连通信连接包括但不限于无线保真(Wireless Fidelity,Wi-Fi)通信连接。
在一个实施例中,在建立第一直连通信连接时,可以先建立第二直连通信连接,例如,可以先在该第一终端10与第二终端20间通过蓝牙建立蓝牙连接,可以在该蓝牙连接上交互Wi-Fi的连接信息,如Wi-Fi热点的用户名和密码。该第一终端10与该第二终端20间可以基于该连接信息建立基于Wi-Fi热点的第一直连通信连接。第一终端10可以在建立第二直连通信连接后,主动开启第一终端20的Wi-Fi热点功能,以便于建立与第二终端20之间的第一直连通信连接,也可以通过第二直连通信连接触发第二终端20开启Wi-Fi热点功能,以便于第一终端101接入到第二终端102完成第一直连通信连接的建立。
在一个实施例中,第一终端10的用户在需要向第二终端102传输数据时,可以在该第一终端10上配置管理第一终端10上的传输模式(该传输模式,对应于至少一种数据传输方式)的直连通信按钮,在点击该按钮开启了第一终端10的直连通信模式之后,该第一终端10便可以自动开启蓝牙对应的第二传输功能以及Wi-Fi对应的第一传输功能。同样,该第二终端20的用户也可以开启第二终端20的直连通信按钮,并自动开启蓝牙对应的第二传输功能以及Wi-Fi对应的第一传输功能。然后,第一终端10的用户可以在第一终端10通过蓝牙扫描到的至少一个终端中确定出第二终端20,该第一终端10与第二终端20建立该蓝牙连接。
在一个实施例中,在需要建立第一直连通信连接时,该第一终端10也可以首先检测自身的电量值,如果该电量值大于电量预设百分比(例如90%),那么该第一终端10也可以直接建立基于Wi-Fi热点的第一直连通信连接。如果该电量值小于或者等于该电量预设 百分比(例如20%),那么该第一终端10可以首先建立该基于蓝牙的第二直连通信连接,再在蓝牙连接的基础上建立Wi-Fi连接,以完成第一直连通信连接的建立。
可见,本申请实施例可以通过蓝牙连接(即第二直连通信连接)交互用于建立Wi-Fi连接(即第一直连通信连接)的连接信息,连接信息例如可以是作为Wi-Fi热点的终端的用户名和接入密码,再根据该连接信息建立Wi-Fi连接(即第一直连通信连接),在一定程度上节约了终端能耗,并且该Wi-Fi连接(即第一直连通信连接)可以保证较快的传输速度,同时也提高了终端在传输数据时的传输效率。
在一个实施例中,在需要建立第一直连通信连接时,还可以先在第一终端10中开启Wi-Fi热点,并通过二维码的方式携带该Wi-Fi热点的用户名和密码,第二终端20可以扫描该二维码,进而直接得到第一终端10的Wi-Fi热点的用户名和密码,接入到第一终端10建立两者之间的第一直连通信连接。或者第二终端20开启Wi-Fi热点,并通过二维码的方式携带该Wi-Fi热点的用户名和密码,第一终端10可以扫描该二维码,进而直接得到第二终端20的Wi-Fi热点的用户名和密码,接入到第二终端20建立两者之间的第一直连通信连接。
下面将在图1所描述的实施例1的基础上,结合本申请以包括三个终端的网络架构进行简要说明。请参阅图2,图2为本申请实施例提供的一种网络架构图。如图2所示,该网络架构中可以包括第一终端10、第二终端20、第三终端30。
该第一终端10、第二终端20、第三终端30可以构成一个直连通信集群,该直连通信集群中的各个终端可以通过互相建立的直连通信连接,以交互数据。该直连通信集群中,还可以包括其它终端,本申请实施例仅为展现的其中一个简单的网络架构。
除此之外,第一终端10还可以与多个终端(除第二终端20、第三终端30)、建立直连通信连接以形成子直连通信集群。相应地,第二终端20、第三终端30也可以像第一终端10一样,形成各自的子直连通信集群。第一终端10、第二终端20以及第三终端30均可以根据需要通过直连通信连接将数据发送至对应子直连通信集群中。
其中,本申请实施例提及的直连通信连接为终端间不借助第三方设备建立的无线通信连接,包括但不限于终端之间的Wi-Fi连接、蓝牙连接、射频连接,如NFC连接、红外线连接、超声波连接等无线通信连接。其中,终端之间的Wi-Fi连接是指两个终端中至少有一个终端开启了Wi-Fi热点功能,另一终端直接接入到该建立了Wi-Fi热点的终端,建立直连通信连接。
在一个实施例中,第一终端10、第二终端20、第三终端30互相之间可以通过建立的不同的直连通信连接,如第一直连通信连接、第二直连通信连接实现数据的并发。
在一个实施例中,该第一直连通信连接可以为能够快速传输视频、图片等数据量大于或等于预置阈值(或者大于或等于预置的数据量阈值)的数据的通信连接,包括但不限于Wi-Fi连接等无线通信连接。第二直连通信连接为功耗小于预设阈值,且能够传输数据量小于预置阈值(或者小于预置的数据量阈值)的数据的通信连接,包括但不限于,如蓝牙连接、射频连接、红外线连接等无线通信连接。
在该第一直连通信连接是针对数据量大于预置阈值(或者大于或等于预置的数据量阈值)的待传输数据中的某部分数据(包括但不限于某一类文件数据,如第二类文件数据)时,该第一终端10、第二终端20、第三终端30可以通过在上述三个终端间建立的第一直连通信连接传输该待传输数据中的某部分数据(包括但不限于某一类文件数据,如第二类文件数据)。
或者,在该第二直连通信连接是针对数据量小于预置阈值(或者小于预置的数据量阈值)的待传输数据中的另一部分数据(包括但不限于另一类文件数据,如第一类文件数据)时,该第一终端10、第二终端20、第三终端30可以通过在上述三个终端间建立的第二直连通信连接传输该待传输数据中的另一部分数据(包括但不限于另一类文件数据,如第一 类文件数据)。
在该第一直连通信连接是针对数据量大于或等于预置阈值(或者大于或等于预置的数据量阈值)的待传输数据时,该第一终端10、第二终端20、第三终端30可以通过在上述三个终端间建立的第一直连通信连接传输该待传输数据。例如,若第一终端10确定出该待传输数据的数据量为20M,预置的数据量阈值为5M。第一终端10可以确定该待传输数据的数据量大于预置的数据量阈值,则通过与该第二终端20建立的第一直连通信连接,如Wi-Fi连接,传输该待传输数据。或者,在该第一直连通信连接是针对数据量小于预置阈值(或者小于预置的数据量阈值)的待传输数据时,该第一终端10、第二终端20、第三终端30可以通过在上述三个终端间建立的第二直连通信连接传输该待传输数据。例如,若该第一终端10确定出该待传输数据的数据量为1M,预置的数据量阈值为5M,第一终端10可以确定该待传输数据的数据量小于预置的数据量阈值,则通过与该第二终端20建立的第二直连通信连接,如蓝牙连接,传输该待传输数据。
在一个实施例中,在某一终端将数据发送至另外一个终端时,该另外一个终端在接收到该数据后,可以将该数据作为该另外一个终端的待传输数据。其中,该数据可以是某一终端的待传输数据、待传输数据中部分数据,如某一类数据(包括但不限于某一类文件数据)。换句话说,也可以理解为某一终端的已传输数据可以作为另外一个终端的待传输数据。
在一个实施例中,若某一终端(如第一终端10)向另外一个终端(如第二终端20)传输完待传输数据中的某一类数据后,如第一类文件数据,则可以发送指示信息至该另外一个终端(如第二终端20)或者目标终端(如第三终端30),该指示信息可以用于指示该另外一个终端(如第二终端20)和目标终端(如第三终端30)建立第二直连通信连接,并在该第二直连通信连接上传输该第一类文件数据。传输完的第一类文件数据可以作为某一终端对另外一个终端的已传输数据。
在一个实施例中,若某一终端(如第一终端10)对另外一个终端(如第二终端20)的已传输数据在待传输数据中的比例超过预置的比例阈值后,如超过80%,则可以发送通知消息至该另外一个终端(如第二终端20)或者目标终端(如第三终端30),该通知消息可以用于通知该另外一个终端(如第二终端20)作为发送端,并通过与目标终端(如第三终端30)建立的直连通信连接,传输该已传输数据。
在一些实施例中,直连通信集群中各终端间还可以通过第二直连通信连接交互一些请求/消息/指令/信息。例如,上述的通知消息、指示信息。
该第一终端10、第二终端20、第三终端30可以根据各自的数据收发的需求,作为发送端和/或接收端来传输数据。
在第一终端10需要向直连通信集群中的各个终端传输数据时,可以作为发送端以通过与该直连通信集群中的各个终端建立的直连通信连接,向各个终端传输数据。该直连通信集群中的各个终端可以作为接收端,通过与第一终端10建立的直连通信连接(例如第一直连通信连接或第二直连通信连接)接收由第一终端10发送的数据。
第一终端10可以通过与第二终端20间建立的直连通信连接发送数据至第二终端20。第二终端20可以通过与第一终端10建立的直连通信连接接收到该第一终端10发送的数据。其中,第一终端20还可以通过与第三终端30间建立的直连通信连接发送数据至第三终端30。第三终端30可以通过与第一终端10建立的直连通信连接接收到该第一终端10发送的数据。
在一个实施例中,该第一终端10可以在需要向直连通信集群中的各个终端传输数据时,将直连通信模式配置为发送模式,以向该直连通信集群中各个处于接收模式的终端发送数据。相应地,该第二终端20、该第三终端30可以分别将直连通信模式配置为接收模式,以针对性的接收处于发送模式的终端发送的数据,可以更好地根据各终端的收发需求 来选择发送和接收数据。
其中,在第一终端10被配置为发送模式,且该第二终端20被配置为接收模式时,第一终端10可以通过与第二终端20间建立的直连通信连接发送数据至第二终端20。第二终端20可以通过与第一终端10建立的直连通信连接接收到该第一终端10发送的数据。
在第一终端10在被配置为发送模式,且该第三终端30被配置为接收模式时,第一终端10也可以通过与第三终端30建立的直连通信连接发送数据至第三终端30。第三终端30可以通过与第一终端10建立的直连通信连接接收到该第一终端10发送的数据。
该第一终端10除了与该直连通信集群中的各个终端直接建立直连通信连接以发送数据之外,还可以通过该直连通信集群中的其它终端向直连通信集群中的目标终端发送数据。
在一个实施例中,该目标终端可以为第一终端10确定出的该直连通信集群中需要接收该待传输数据的初始终端中,与第一终端10间的信号强度小于预置信号强度阈值的初始终端。或者,该目标终端也可以是该直连通信集群中未接收到第一终端10发送的数据的终端。或者,该目标终端还可以是该直连通信集群中与该第一终端10的数据传输过程中断的终端。或者,该目标终端还可以是第一终端10根据获取该直连通信集群中的接收端的设备信息选取的终端。在一个实施例中,该目标终端可以是接收端,还可以是被配置为接收模式的终端。
对应到本网络架构中,该第一终端10除了直接与该第三终端30建立直连通信连接以发送数据之外,还可以通过第二终端20,以发送数据至目标终端,如第三终端30。相应地,第一终端10除了与该第二终端20建立直连通信连接以发送数据之外,还可以通过第三终端30以发送数据至目标终端,该目标终端例如为第二终端20。
下面将以第一终端10通过第二终端20发送数据至作为目标终端的第三终端30为例进行进一步说明。
若第一终端10通过与第二终端20建立的直连通信连接,发送数据至第二终端20。第二终端30可以通过与第三终端30建立的直连通信连接以将该第一终端10发送的数据发送至第三终端30。可选地,该第二终端20可以被配置为中继模式,以便可以接收第一终端10发送的数据,并将接收到的该第一终端10发送的数据转发至第三终端30。
在一个实施例中,该第二终端20可以由第一终端10根据该直连通信集群中的各个终端的性能信息确定的。
其中,该第二终端20可以是第一终端10根据该直连通信集群中的各个终端的性能信息确定出的性能状态较佳的终端。如,该第二终端20为第一终端10确定出的该直连通信集群中剩余电量最多的终端,或者剩余电量超过预置的电量阈值的终端。
发送端在和多个接收端形成直连通信集群后,各个接收端可以将当前本机的性能信息,如存储空间、剩余电量、剩余内存、传输速度等信息上报至发送端,以便该发送端可以根据该上报的性能信息确定出性能状态最好的某个终端以发送数据至目标终端。
在一个实施例中,该直连通信集群中的各个终端在检测到第一终端10用于获取性能信息的请求时,可以将该直连通信集群中的各个终端性能信息分别通过与该第一终端10建立的直连通信连接发送至该第一终端10。
在一个实施例中,该第二终端20还可以是在确定该第一终端10的性能信息满足预置切换条件,如性能信息小于对应预置的阈值时,该第一终端10根据该直连通信集群中的各个终端的性能信息确定出的终端。
在一个实施例中,该第二终端20还可以是在确定该第一终端10的性能信息小于对应预置的阈值时,该第一终端10根据该直连通信集群中的各个终端的性能信息确定出的终端,如性能状态较佳的终端。其中,第一终端10的性能信息包括但不限于第一终端10的存储空间、剩余电量、剩余内存、传输速度等信息。
在一个实施例中,该第一终端10的性能信息小于对应预置的阈值可以通过如下方式 确定:在该第一终端10的性能信息包括剩余电量时,判断该剩余电量是否小于预置的第一电量阈值;在该第一终端10的性能信息包括传输速度时,判断该传输速度是否小于预置的第一速度阈值;若该剩余电量小于该预置的第一电量阈值和/或该传输速度小于该预置的第一速度阈值,则确定该第一终端10的性能信息小于对应预置的阈值。
其中,除了可以利用第一终端10的性能信息中的各个信息以单独判断该第一终端10的性能信息是否小于对应预置的阈值外,还可以将第一终端10的性能信息中的剩余电量、剩余内存、存储空间、传输速度等信息以递进或者并列的形式组合起来判断第一终端10的性能信息是否小于对应预置的阈值。
在一个实施例中,该第一终端10的性能信息小于对应预置的阈值还可以通过如下方式确定:在该第一终端10的性能信息包括剩余电量时,判断该剩余电量是否小于预置的第一电量阈值;若小于,在该第一终端10的性能信息包括传输速度时,判断该传输速度是否小于预置的第一速度阈值;若小于,若该剩余电量小于该预置的第一电量阈值和/或该传输速度小于该预置的第一速度阈值,则确定该第一终10端的性能信息小于对应预置的阈值。
在一个实施例中,该第一终端10根据该直连通信集群中的各个终端的性能信息确定出第二终端20可以包括:判断该直连通信集群中各个终端的剩余电量是否超过预置的电量阈值;判断该直连通信集群中各个终端的剩余内存是否超过预置的剩余内存阈值;确定该各个终端中剩余电量超过预置的电量阈值,和/或确定该各个终端中剩余内存超过预剩余内存阈值的终端为第二终端。在一个实施例中,该电量阈值、速度阈值对应可以为第二电量阈值、第二速度阈值。
其中,除了可以利用直连通信集群中各个终端的性能信息中的各个信息以单独判断以确定出第二终端20外,还可以将直连通信集群中各个终端的性能信息中的各个信息以递进或者并列的形式组合起来确定出第二终端20。
在一个实施例中,该第一终端10根据该直连通信集群中的各个终端的性能信息确定出第二终端20可以包括:判断该直连通信集群中各个终端的性能信息中的剩余电量是否大于或者等于预置的第二电量阈值;在确定该各个终端中包括剩余电量大于或者等于该预置的第二电量阈值的多个终端时,判断该多个终端的性能信息中的传输速度是否大于或者等于预置的第二速度阈值;选取该多个终端中传输速度大于或者等于该预置的第二速度阈值的终端作为第二终端。
在一个实施例中,该各个终端的性能信息除了可以包括前述的剩余电量、剩余内存、存储空间、传输速度,还可以包括已接收数据的数据量。
在一个实施例中,该第一终端10根据该直连通信集群中的各个终端的性能信息确定出第二终端20还可以包括:判断该直连通信集群中各个终端的性能信息中的已接收数据的数据量是否大于或等于预置的数据接收阈值;在确定该各个终端中包括已接收数据的数据量大于或等于预置的数据接收阈值的多个终端时,判断该多个终端的性能信息中的传输速度是否大于或者等于预置的第二速度阈值;选取该多个终端中传输速度大于或者等于该预置的第二速度阈值的终端作为第二终端。
在一个实施例中,该第二终端20还可以是第一终端10根据获取的直连通信集群中各个终端的设备信息确定的。
处于发送模式的第一终端10可以通过与处于中继模式的第二终端20建立的直连通信连接,发送数据至处于中继模式的第二终端20。处于中继模式的第二终端30可以通过与处于接收模式的第三终端30建立的直连通信连接,将该处于接收模式的第一终端10发送的数据发送至处于接收模式的第三终端30。
在一个实施例中,第二终端10可以通过与第三终端30间的第二直连通信连接,获取第三终端30的设备信息;第二终端20可以将第二终端20的设备信息、第三终端30的设 备信息发送至第一终端10。第一终端10在接收到第二终端20发送的设备信息后,可以将该第三终端30的设备信息确定为发送数据的目标终端。
以手机A包括接收模式、发送模式、中继模式为例。用户可以通过点击中继模式选项或者图标,将手机A的直连通信模式设置为中继模式。处于中继模式的手机A可以获取其它处于接收模式的手机B的设备信息,并且手机A可以获取到处于发送模式的手机C的设备信息,从而可以将该处于接收模式的手机B的设备信息发送至该处于发送模式的手机C。
该第二终端20可以在接收到第一终端10的转发请求时,通过第一直连通信连接获取发起终端10的发送的数据,并可以根据该转发请求中指示的传输路径转发该第一终端发送的数据;该转发请求指示的传输路径可以为通过第二终端20将第一终端10发送的数据发送至第三终端30。该转发请求可以包括第三终端的设备信息。该传输路径可以是第一终端10根据获取的设备信息确定的。
在一个实施例中,该第二终端20可以在接收到第一终端10的转发请求时,通过第二直连通信连接获取发起终端10的发送的数据,并可以根据该转发请求中指示的传输路径转发该第一终端发送的数据;该转发请求指示的传输路径可以为通过第二终端20将第一终端10发送的数据发送至第三终端30。该转发请求可以包括第三终端的设备信息。该传输路径可以是第一终端10根据获取的设备信息确定的。
在一个实施例中,如果该转发请求中指示的传输路径所指示的下一节点是第二终端20,则第一终端10与该第二终端20可以建立第一直连通信连接以传输数据;如果该转发请求中指示的传输路径所指示的下一节点是该直连通信集群中其它终端,则第一终端10与该其它终端建立第一直连通信连接以传输数据。该其它终端可以为其它接收端。
该第一终端10可以显示一个用户界面,该用户界面可以用于显示获取的设备信息。第一终端10可以接收针对设备信息的选择操作,并根据该选择操作确定出传输路径。例如,第一终端10在需要向第三终端30传输数据1时,可以在选取该第三终端30以作为发送数据1的目标终端后,再选取第二终端20以确定传输路径为通过第二终端20进行数据转发。
在一个实施例中,该设备信息可以包括对应终端的标识,如媒体访问控制(Media Access Control,MAC)地址、互联网协议(Internet Protocol,IP)地址、名称、端口号等。在一个实施例中,该设备信息可以包括对应终端的标识、以及对应终端所处的直连通信模式。
该第二终端20还可以是被配置为接收模式的终端,在接收到第一终端10发送的数据后,可以通过将第二终端20的直连通信模式配置为发送模式,使得该第二终端20可以切换为发送端以发送数据到处于接收模式的第三终端30。在一个实施例中,若第三终端30一直用于接收数据,则可以将该第三终端30的直连通信模式配置为接收模式。
在一个实施例中,直连通信集群中的各个终端设置有直连通信模式,该直连通信模式可以为发送模式、接收模式、中继模式。若终端被配置为发送模式,则该终端可以为用于发送数据的发送端,若该终端被配置为中继模式,那么该终端可以用于转发数据。若终端被配置为接收模式,则该终端可以为用于接收数据的接收端。
在一个实施例中,各个终端可以配置有一个直连通信按钮,点击该直连通信按钮后,可以进行直连通信模式的选择。
当该直连通信集群中的某个终端开启中继模式后,某个终端可以将周围扫描到的处于接收模式的终端的设备信息,发送到周围处于发送模式的终端。通常在某个终端的传输距离受限,可以通过处于中继模式的终端来转发数据以扩大传输距离。除此之外,若某个终端的传输距离未受限,则也可以通过处于中继模式的终端来转发数据来扩展数据传输方式。
在一个实施例中,发送端可以管理自己扫描到的接收端的设备信息,以及中继设备发 送过来的接收端的设备信息。该接收端可以为处于接收模式的终端。中继终端可以为处于中继模式的终端。该发送端可以为处于发送模式的终端。
在一个实施例中,若用户在发送端选择一个接收端作为目标终端后(可以是根据获取的接收端的设备信息选取的),则发送端可以根据该接收端反馈上来的路径将数据先传输至下一个的中继终端,在由该中继终端传输至目标终端。或者,在该用户选择一个接收端作为目标终端后,用户可以再选取一个以转发数据的中继终端,再由该中继终端将数据传输至目标终端。
该直连通信集群中各个终端根据设置的直连通信模式不同,可以进行多个直连通信模式的切换,以便基于设置的不同直连通信模式,来使各个终端提供不同功能。并且可以在终端间距离发生变化,距离较远、终端性能较差等原因导致不能继续传输任务或者不想继续数据传输时,通过将终端作为中继终端的方式,可以扩展数据传输距离,增加组网的灵活性。
在一个实施例中,该第一终端10在被配置为中继模式时,可以基本实现第二终端20处于中继模式时所实现的所有功能。该第二终端20在被配置为发送模式时,可以基本实现第一终端10处于发送模式时所实现的所有功能。
在第一终端10需要向第二终端20发送数据时,该第一终端10向第二终端20发送的数据可以为第一终端10选取的待传输数据。该待传输数据包括但不限于该文档、音视频文件、图片等数据。其中,第一终端10可以通过与第二终端20间建立直接通信连接来传输数据。该第一终端10向第二终端20传发送的数据还可以为第一终端10选取的待传输数据中的部分数据(包括但不限于某一类文件数据)。在一个实施例中,该发送的数据还可以为第一终端10对第二终端20的已传输数据,该已传输数据可以为上述待传输数据,还可以是待传输数据中的部分数据(包括但不限于某一类文件数据)。
在一个实施例中,第二终端20与第三终端30之间的用于传输数据的直连通信连接可以通过第一终端10发送连接请求的形式触发建立。
在一个实施例中,该连接请求可以由第一终端10发送至目标终端,如第三终端30。其中,该连接请求可以包括第二终端20的设备信息。或者,该连接请求还可以由第一终端10发送至第二终端20。其中,该连接请求可以包括目标终端,如第三终端30的设备信息。
在一个实施例中,根据连接请求所触发建立的直连通信连接的不同,该连接请求还可以包括第一连接请求,第二连接请求。
在一个实施例中,第一终端10可以确定发送的数据的数据量;并在该数据的数据量大于或等于预置阈值(或者大于或等于预置的数据量阈值)时,发送第一连接请求至第二终端20或者第三终端30,该第一连接请求10用于触发建立该第二终端20与第三终端30间的第一直连通信连接;在该数据的数据量小于预置阈值(或者小于预置的数据量阈值)时,则发送第二连接请求至第二终端20或者第三终端30,该第二连接请求用于触发建立该第二终端20与第三终端30之间的第二直连通信连接,从而实现根据第一终端10传输的数据的数据量的不同,触发与第二终端20建立不同的直连通信连接以进行数据的传输,提高了数据传输效率。其中,该第一连接请求、第二连接请求可以通过第一终端10与第二终端间建立的第二直连通信连接发送至第二终端20,也可以通过第一终端10与第三终端30建立的第二直连通信连接发送至第三终端30。
在一个实施例中,第一终端10向第二终端20发送的数据还可以是将待传输数据进行分类后通过至少一个直连通信连接依次发送的数据,或者通过多个直连通信连接并行发送的数据。其中,对该待传输数据进行分类包括但不限于将该待传输数据中各个数据按照类别、大小、名称进行分类。
在一个实施例中,第一终端10可以确定出该待传输数据中的第一类文件数据,该第 一类文件数据为数据量小于预置阈值的数据;将该第一类文件数据第一终端10通过与该第二终端20建立的第二直连通信连接,将该第一类文件数据发送至该第二终端20。第一终端10确定出该待传输数据中的第二类文件数据,该第二类文件数据为数据量大于或等于预置阈值的数据;该第一终端10通过与该第二终端20建立的第一直连通信连接,将该第二类文件数据发送至该第二终端20。
假设待传输数据包括文件1、文件2、文件3,若按照数据大小对该待传输数据进行分类。其中数据量小于1M的有文件1。则数据量大于1M的待传输数据有文件2、文件3。可以确定文件1为第一类文件数据。需要说明的是,第二终端20在接收到第一终端10发送的数据后,可以通过与第三终端30间的直连通信连接发送至第三终端30。
第二终端20与第三终端30间的直连通信连接包括但不限于以第二终端20接收到连接请求后触发建立。其中,该连接请求可以为第一终端10发送的,还可以为第三终端30发送的。在一个实施例中,该连接请求可以包括前面提到的第一连接请求或者第二连接请求。
在一个实施例中,第一终端10可以发送通知消息至第二终端20或者第三终端30,该通知消息用以通知第二终端20作为发送端,并与第三终端30之间通过建立的直连通信连接传输第一终端10发送的数据或者第一终端10的已传输数据。其中,第二终端20可以接收第一终端10发送的通知消息。其中,若该第一终端10在确定目标终端为多个接收端时。第二终端20可以选取将该第一终端10发送的数据或者第一终端10的已传输数据分别发送至该多个接收端。
在一个实施例中,第一终端10可以发送指示消息至第二终端20或者第三终端30,该指示消息用以指示第二终端20与第三终端30之间建立直连通信连接,并指示第二终端20与第三终端30之间传输该第一终端10发送的数据或者第一终端10的已传输数据,如第一类文件数据。其中,第二终端20可以通过第二直连通信连接接收第一终端10发送的指示信息。
若该第一终端10在确定目标终端为多个接收端时。则第二终端20可以选取将该第一终端10发送的数据或者第一终端10的已传输数据,如第一类文件数据分别发送至该多个接收端。
在一个实施例中,该第一终端10可以在完成针对目标终端的部分数据,如某一类文件数据的传输任务后,再依次进行或者同时向其它设备进行剩余数据的传输任务;还可以同时开展多个传输任务,例如在向目标终端进行数据传输时,同时向多个设备中的部分终端或者全部终端进行数据传输。
在一个实施例中,发送端可以优先将小文件传输给当前性能状态较佳或者最好的接收端。该小文件可以为本申请实施例提及的待传输数据中数据量小于预置阈值的数据。并且,发送端可以在传完该小文件后,继续传输其它文件,并且可以发送一些信息,如设备信息,或包括设备信息的连接请求,至其它接收端,以便建立该性能状态最好的接收端与其它接收端间的直连通信连接。其中,发送端还可以触发已经接收完小文件的性能状态最好的接收端将部分数据发送至其它接收端(包括但不限于以通知消息触发)。优先接收到部分数据的终端可以向其它目标接收端发送刚刚接收到的小文件,从而可以组成多终端并行传输的方式。该发送端可以为第一终端10,该性能状态最好的终端可以为第二终端20。该其它目标终端可以为第三终端30。通过多终端并行传输的方式,可以提高数据传输效率。
发送端还可以优先将小文件传输给当前性能状态最好的接收端,并将其它接收端的信息,如设备信息或包含设备信息的连接请求,发送至该性能状态最好的接收端,以便该性能状态最好的接收端可以与其它接收端间建立直连通信连接以传输数据。该小文件可以为本申请实施例提及的待传输数据中数据量小于预置阈值的第一类文件数据。并且,发送端可以在传完该小文件后,传输大文件。该大文件可以为待传输数据中数据量大于预置阈值 的第二类文件数据。若该发送端因为某些原因(如电量低于预置的电量阈值)而不能继续传输任务时,可以触发该性能状态最好的接收端作为发送端以发送接收到的数据到其它目标接收端(包括但不限于以通知消息触发),从而提高直连通信集群中的终端的整体工作效率。该发送端可以为第一终端10,该性能状态最好的终端可以为第二终端20。该其它目标终端可以为第三终端30。
在一些实施例中,上述待传输数据中部分数据,如某一类数据(包括但不限于第一类文件数据或第二类文件数据)或者已传输数据可以作为目标数据。或者,上述待传输数据也可以称为目标数据。
根据第一终端10对直连通信集群中各个终端的传输任务分配的不同,对该数据划分情况也不同。如,将该待传输数据划分为多个类别,分别发送至多个目标终端,再由多个终端将需要发送至其它终端的数据通过至少一个直连通信连接依次或并行发送至其它终端,这样就完成了多个设备的协作数据传输。相应地,随着参与协作传输的设备的增加,该数据也可以被划分为、第一类数据、第二类数据、第三类数据、第四类数据……其中,本申请实施例对数据的标号、称谓不做限定。
请参阅图3,为本申请实施例提供的一种数据传输方法的流程示意图。其中,该方法可以应用于智能终端,包括但不限于,如手机、平板电脑等便携式移动设备。其中,该方法可以包括:
S301、第一终端在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息。
本申请实施例中,该直连通信集群中包括至少一个处于接收模式的终端、至少一个处于发送模式的终端、至少一个处于中继模式的终端。该设备信息包括:设备标识和对应终端所处的直连通信模式,该设备信息是通过第二直连通信连接发送给各个处于发送模式的终端的;该直连通信模式包括:发送模式、中继模式和接收模式。
需要说明的是,在步骤S301中,若第一终端的直连通信模式被配置为中继模式,则第一终端可以获取到该第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息。除此之外,该第一终端还可以获取所在的直连通信集群中各个处于发送模式的终端的设备信息,从而可以根据该设备信息中包括的各终端的直连通信模式准确地将处于接收模式的终端的设备信息发送至处于发送模式的终端。通过直连通信模式的设置,使得终端间的分工更加明确,传输数据更为方便。举例来说,如图4所示,若该直连通信集群中,由终端400,终端401,终端402,终端403,终端404构成。其中,第一终端为终端402。终端403、终端404被配置为接收模式,终端402被配置为中继模式,终端400、终端401被配置为发送模式。终端402可以获取到终端403的设备信息、终端404的设备信息。
需要说明的是,在第一终端处于直连通信模式下时,可以通过该直连通信模式对应的第一直连通信连接与该直连通信集群中其它终端传输目标数据,还可以利用该直连通信模式下的第二直连通信连接与该直连通信集群中的其它终端交互设备信息等其它信息。其中,该第一直连通信连接包括但不限于Wi-Fi连接等无线通信连接、第二直连通信连接包括但不限于蓝牙连接、NFC连接、超声波连接等无线通信连接。可选地,第一终端可以接收用户的直连通信模式设置操作,该设置操作包括但不限于以点击、按压对应的直连通信模式选项、图标等其它触控操作。例如,第一终端在检测到用户对中继模式选项的点击操作时,则启动中继模式对应的功能,如执行步骤S301中获取处于接收模式的终端的设备信息。
需要说明的是,第一终端可以在三种直连通信模式间进行切换,即可以由一个直连通信模式切换为另外一个直连通信模式。例如,该第一终端当前的直连通信模式为接收模式,若该第一终端希望作为发送端选择目标终端以发送数据,则将该第一终端配置为发送模式即可。可选地,如果该第一终端被配置为接收模式,该第一终端可以将设备信息发送至处 于中继模式的终端或者处于发送模式的终端,并且可以接收处于中继模式的终端以及处于发送模式的终端发送的数据。
可选地,如果该第一终端被配置为发送模式,则获取该第一终端所在直连通信集群中各个处于中继模式的终端发送的各个处于接收模式的终端的设备信息、以及该各个处于中继模式的终端的设备信息;在需要向该各个处于接收模式的终端中的目标终端发送数据时,根据获取的设备信息确定传输路径;根据该传输路径发送该数据。举例来说,如图4所示,若该直连通信集群中,由终端400,终端401,终端402,终端403,终端404构成。其中,第一终端为终端401。终端403、终端404被配置为接收模式,终端402被配置为中继模式,终端400、终端401被配置为发送模式。终端401可以通过终端402获取到终端403的设备信息、终端404的设备信息。若终端401根据终端403的设备信息确定将数据1传输至终端403,则可以选择传输路径为通过终端402将数据1传输至终端403。
需要说明的是,在第一终端处于发送模式时,需要向该各个处于接收模式的终端中的目标终端发送数据时,第一终端可以通过设备信息确定传输数据的目标终端。其中,第一终端可以设置传输路径。并且,在传输数据至该目标终端的传输路径为多个时,可以选择想要的传输路径进行数据的传输。举例来说,如图4所示,若该直连通信集群中,由终端400,终端401,终端402,终端403,终端404构成。其中,第一终端为终端401。终端403被配置为接收模式,终端402、终端404被配置为中继模式,终端400、终端401被配置为发送模式。第一终端为终端401,若终端401检测到在该直连通信集群中,当前处于中继模式的终端除了终端402之外,还有终端404处于中继模式,那么该终端401可以选取传输路径为通过该终端404将数据1发送至终端403。
可选地,该第一终端设置有用户界面;该用户界面用于显示该获取的设备信息以设置该传输路径。例如,用户在选取目标终端的标识后,可以选取直连通信集群中处于中继模式的终端的标识以确定传输路径。
S302、第一终端将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端。
本申请实施例中,该处于发送模式的第二终端可以为一个或多个处于发送模式的终端。
举例来说,如图4所示,若该直连通信集群中,由终端400,终端401,终端402,终端403,终端404构成。其中,第一终端为终端402。第二终端为终端401。终端403、终端404被配置为接收模式,终端402被配置为中继模式,终端400、终端401被配置为发送模式。终端402可以获取到终端403的设备信息、终端404的设备信息,并可以将终端403的设备信息、终端404的设备信息发送至终端401。相应地,终端402还可以将终端403的设备信息、终端404的设备信息发送至终端401。
需要说明的是,第一终端可以通过与其它处于直连通信模式的终端建立第二直接连接通信以进行设备信息的交互。
可选地,该第一终端在检测到处于发送模式的终端的连接请求时,与该处于发送模式的终端建立第二直连通信连接;该第一终端通过该第二直连通信连接接收该处于发送模式的终端的转发请求,并返回关于该转发请求的响应消息;其中,该响应消息用于通知该处于发送模式的终端与该第一终端建立第一直连通信连接以获取目标数据。
S303、第一终端在接收到处于发送模式的所述第二终端的转发请求时,获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据。
本申请实施例中,该转发请求中可以包含该目标数据所发送的目标对象的标识。该目标对象可以为处于接收模式的终端。该标识包括但不限于该目标对象的名称、MAC地址、IP地址、端口号等。上述传输路径是该第二终端根据获取的设备信息确定的。
举例来说,如图4所示,若该直连通信集群中,由终端400,终端401,终端402,终端403,终端404构成。其中,第一终端为终端402。第二终端为终端402。终端404被配 置为接收模式,终端402、终端403被配置为中继模式,终端400、终端401被配置为发送模式。终端402若接收到终端401的转发请求,则根据转发请求中指示的传输路径转发数据1,如通过终端402将数据1发送至终端404。
可选地,该根据该转发请求中指示的传输路径转发该目标数据,包括:如果该转发请求中指示的传输路径所指示的下一节点是该直连通信集群中处于中继模式的终端,则该第一终端与该处于中继模式的终端建立第一直连通信连接以传输该目标数据;如果该转发请求中指示的传输路径所指示的下一节点是该直连通信集群中处于接收模式的终端,则与该处于接收模式的终端建立第一直连通信连接以传输该目标数据。其中,该目标数据但不限于音视频文件、文档、图片等数据。
举例来说,如图4所示,若该直连通信集群中,由终端400,终端401,终端402,终端403,终端404构成。其中,第一终端为终端402。第二端为终端401。终端404被配置为接收模式,终端402、终端403被配置为中继模式,终端400、终端401被配置为发送模式。终端402若接收到终端401的转发请求。并确定目标终端为终端404。若转发请求中指示的传输路径所指示的下一节点为终端404,则终端402与终端404建立第一直连通信连接以将数据1发送至终端404。若转发请求中指示的传输路径所指示的下一节点为终端403,则可以与终端403建立第一直连通信连接以发送数据1、并通过该终端403将数据1传输至终端404。
可见,图3所示的实施例中,第一终端可以在被配置为中继模式时,该第一终端实现直连通信集群中处于接收模式的终端与处于发送模式的第二终端间的信息以及数据的交互,从而扩展数据传输方式,并且方便了数据传输。
请参阅图5,为本申请再一实施例提供的一种数据传输方法的流程示意图,其中,该方法可以应用于智能终端,包括但不限于,如手机、平板电脑等便携式移动设备。其中,该方法可以包括:
S501、第一终端在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息。
本申请实施例中,该发送的设备信息可以包括:该直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息。该各个处于接收模式的终端的设备信息包括该处于接收模式的终端的设备标识以及所处的直连通信模式。该各个处于中继模式的终端的设备信息包括该处于中继模式的终端的设备标识以及所处的直连通信模式。
需要说明的是,第一终端可以进行多个直连通信模式的配置,例如发送模式、接收模式、中继模式。其中,在该第一终端启动相应的直连通信模式后,可以通过被配置的不同的直连通信模式,进行第一终端直连通信功能的切换,使得包括该第一终端的直连通信集群间的通信更加灵活。举例来说,如图6所示,若该直连通信集群中,由终端600,终端601,终端602,终端603,终端604构成。其中,第一终端为终端601。终端603、终端604被配置为接收模式,终端602被配置为中继模式,终端600、终端601被配置为发送模式。终端601可以通过终端602获取到终端603的设备信息以及终端604的设备信息。终端600也可以通过终端602获取到终端603的设备信息以及终端604的设备信息。
可选地,该第一终端显示一个用户界面;该用户界面用于显示该获取的设备信息以设置该传输路径。该获取的信息为连通信集群中各个处于中继模式的终端发送的设备信息。
进一步可选地,该第一终端可以在检测到针对该用户界面中设备信息的选择操作时,根据该选择操作确定对应的传输路径。或者,该用户界面可以显示处于接收模式的终端的设备信息,可以接收针对该用户界面的选择操作,以跳转页面显示发送该处于接收模式的终端的设备信息,如处于中继模式的终端的设备信息。
举例来说,如图6所示,若该直连通信集群中,由终端600,终端601,终端602,终端603,终端604构成。其中,第一终端为终端601。终端603、终端604被配置为接收模式,终端602被配置为中继模式,终端600、终端601被配置为发送模式。则终端601的用户界面可以如图6所示,显示终端603的设备信息、终端604的设备信息,还可以显示发送终端603的设备信息、终端604的设备信息的终端602的设备信息。
S502、第一终端在需要向目标终端发送数据时,根据获取的设备信息确定传输路径。
可选地,上述根据获取的设备信息确定传输路径可以包括:根据获取的各个处于接收模式的终端设备信息选取目标终端,并为发送数据到该目标终端的过程选取相应的传输路径。其中,可以通过各个处于中继模式的终端中将数据发送至目标终端。其中,该通过各个处于中继模式的终端中根据发送该目标终端的设备信息中间经过的节点数量不同而不同。该中间经过的节点可以为处于中继模式的终端。
具体地,该第一终端可以接收针对用户界面中设备信息的选择操作,并根据该选择操作确定传输路径。举例来说,如图7所示,在该处于发送模式的终端,如终端601的用户界面中,至少包括终端602的设备信息、终端603的设备信息、终端604的设备信息。其中,终端601在需要向终端603传输数据1时,可以在选取该终端603以作为发送目标数据的目标终端后,再选取终端602以确定传输路径为通过终端602进行数据转发。
在一个实施例中,该第一终端可以记录该目标终端的反馈的传输路径,并在该第一终端选取该目标终端传输目标数据时,则可以根据该记录的传输路径进行数据的传输。
S503、第一终端根据所述传输路径向所述目标终端发送所述数据。
需要说明的是,在步骤S502中,第一终端可以根据获取的设备信息确定传输路径。在步骤S503中,该第一终端可以通过确定的传输路径发送数据。其中,该传输路径会指示至少一个处于中继模式的终端。
其中,该第一终端在进行数据传输时,可以生成转发请求,用于请求转发该数据,其中,该转发请求可以携带目标终端的设备信息。若转发请求指示的传输路径所指示的下一节点为处于中继模式的终端。则该第一终端可以通过与该处于中继模式的第一终端间建立的第二直连通信连接以发送该转发请,并且可以与处于中继模式的终端建立第一直连通信连接以传输该数据。举例来说,如图7所示,若该终端601选取的传输路径为通过终端602进行数据转发,那么该终端601可以与终端602通过建立的第二直接通信连接发送转发请求,并与终端602建立第一直连通信连接以传输数据1。
可见,图5所示的实施例中,在该第一终端被配置为发送模式时,可以获取处于接收模式的终端的设备信息,以及处于中继模式的设备信息,并根据获取的设备信息选择相应传输路径,以进行数据传输,从而实现了多种数据传输方式,增加了数据传输的灵活性。
请参阅图8,为本申请实施例提供的一种数据传输装置的结构示意图,其中,该装置可以应用于智能终端,包括但不限于,如手机、平板电脑等便携式移动设备。具体地,该装置可以获取模块801、发送模块802、获取发送模块803,还可以包括确定模块804。具体地,该装置可以包括:
获取模块801,用于在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息;所述直连通信集群中包括至少一个处于接收模式的终端、至少一个处于发送模式的终端、至少一个处于中继模式的终端。
发送模块802,用于将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端。
获取发送模块803,用于在接收到处于发送模式的所述第二终端的转发请求时,获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据;所述传输路径是所述第二终端根据获取的设备信息确定的。
本申请实施例中,该获取模块801可以对应于通信接口,如蓝牙模块、Wi-Fi模块、射频模块等无线通信模块。发送模块802可以对应于通信接口,如蓝牙模块、Wi-Fi模块等无线通信模块。获取发送模块803可以对应于通信接口,如蓝牙模块、Wi-Fi模块等无线通信模块。可选地,该设备信息包括:设备标识和对应终端所处的直连通信模式,该设备信息是该第一终端通过第二直连通信连接发送给该第二终端的;该直连通信模式包括:发送模式、中继模式和接收模式;该转发请求是该第二终端通过第二直连通信连接发送给该第一终端的;该目标数据是该第二终端通过第一直连通信连接发送给该第一终端的。
需要说明的是,该第一终端可以配置为不同的直连通信模式,并就不同的直连通信模式执行不同的功能。例如,若为接收模式,则通过该第一终端可以接收处于发送模式的终端所传输的数据以及处于中继模式的终端所传输的数据。
可选地,所述获取发送模块803,具体用于如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于中继模式的终端,则与所述处于中继模式的终端建立第一直连通信连接以传输所述目标数据;如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于接收模式的终端,则与所述处于接收模式的终端建立第一直连通信连接以传输所述目标数据。
需要说明的是,该第一直连通信连接包括但不限于Wi-Fi连接等无线通信连接。该目标数据包括但不限于音视频文件、图片、文档等数据。
可选地,获取模块801,还用于如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息。
其中,该发送的设备信息包括:该直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息。
可选地,确定模块804,用于在需要向目标终端发送数据时,根据获取的设备信息确定传输路径。
本申请实施例中,确定模块804可以具体设置于处理器中。确定模块804可以根据设备信息确定传输路径为通过处于中继模式的终端,以转发数据至目标终端中。其中,该目标终端为直连通信集群中处于接收模式的终端。
可选地,发送模块802,还用于根据所述传输路径向所述目标终端发送所述数据。
可选地,所述确定模块804,具体用于显示一个用户界面;所述用户界面用于显示获取的设备信息;接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
本申请实施例中,若根据设备信息确定出传输路径为通过处于中继模式的终端,以转发该数据至目标终端中,则发送模块802可以通过与该处于中继模式的终端建立第一直连通信连接以传输数据。
可见,图8所示的实施例中,第一终端在被配置为中继模式时,可以实现在直连通信集群中通过该第一终端使处于发送模式的第二终端向处于发送模式的终端传输数据,从而提供了多种数据传输方式,方便了数据的传输,增加了数据传输的灵活性。
请参阅图9,为本申请再一实施例提供的一种数据传输装置的结构示意图,其中,该装置可以应用于智能终端,包括但不限于,如手机、平板电脑等便携式移动设备。具体地,该装置可以获取模块901、确定模块902、发送模块903。具体地,该装置可以包括:
获取模块901,用于在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息。
其中,该发送的设备信息可以包括:该直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息。本申请实施例中,该获取模块901可以对应于通信接口。该处于接收模式的终端的设备信息包括但不限于该处于接收模式的终端的标识以及该处于接收模式的终端所处的直连通信模式。该处于中继模式的终端的设备信 息包括但不限于该处于中继模式的终端的标识以及该处于中继模式的终端所处的直连通信模式。该直连通信模式包括但不限于接收模式、发送模式、中继模式。
确定模块902,用于在需要向目标终端发送数据时,根据获取的设备信息确定传输路径。本申请实施例中,确定模块902可以设置与处理器中。该确定模块902可以根据设备信息确定传输路径。例如,可以通过处于接收模式的终端的设备信息确定处于接收模式的目标终端以传输目标数据,可以通过处于中继模式的终端的设备信息确定传输路径为具体通过该处于中继模式的目标终端以进行数据转发。
发送模块903,用于根据所述传输路径向所述目标终端发送所述数据。本申请实施例中,在确定转发路径后,发送模块903可以通过与确定的处于中继模式的目标终端建立第一直连通信连接以传输数据。
可选地,确定模块902,具体用于显示一个用户界面;所述用户界面用于显示获取的设备信息;根据接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
举例来说,如图7所示,该第一终端可以选取终端603作为目标终端,选取传输路径为通过终端602进行数据转发。
可见,图9所示的实施例中,在该第一终端被配置为发送模式时,可以获取处于接收模式的终端的设备信息,以及处于中继模式的设备信息,并根据获取的设备信息选择相应传输路径,以进行数据传输,从而实现了多种数据传输方式,增加了数据传输的灵活性。
请参阅图10,图10是本申请实施例提供的一种终端的结构示意图,用于执行如本申请图3或图5实施例中所示的数据传输方法。具体地,如图10所示,本申请实施例的终端可以包括:至少一个处理器1000、存储器3000等组件。可选地,该终端还可以包括通信接口2000。其中,这些组件通过一条或多条总线4000进行通信连接。本领域技术人员可以理解,图10中示出的终端的结构并不构成对本申请实施例的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
处理器1000为终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器3000内的程序和/或模块,以及调用存储在存储器3000内的数据以执行终端的各种功能和处理数据。处理器1000可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器1000可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是CPU、数字信号处理器(Digital Signal Processor,简称DSP)、图形处理器(Graphic Processing Unit,简称GPU)及各种控制芯片的组合。在本申请实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
通信接口2000可以包括多个无线通信模块,如射频模块、Wi-Fi模块、蓝牙模块、超声波模块等,可以用于建立直连通信集群中各个终端间的直连通信连接,包括但不限于实施例中提及的第一直连通信连接、第二直连通信连接。该通信接口2000还可以包括显示屏,用于输出用户界面,或者触摸屏等可以用于接收用户的操作,如接收针对设备信息的选择操作。在一个实施例中,该通信接口2000还可以为触摸显示屏。
存储器3000可用于存储计算机程序以及模块,处理器1000、通信接口2000通过调用存储在存储器3000中的计算机程序以及模块,从而执行终端的各项功能应用以及实现数据处理。存储器3000主要包括程序存储区和数据存储区,其中,程序存储区可存储操作***、至少一个功能所需的应用程序等;数据存储区可存储根据终端的使用所创建的数据等。在本申请实施例中,操作***可以是Android***、iOS***或Windows操作***等等。
具体地,当本申请实施例的终端用于执行如本申请图3或图5所示的数据传输方法时,处理器1000调用存储在存储器3000中的计算机程序,用于执行以下步骤:
在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则通过通信接口2000获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息;所述直连通信集群中包括至少一个处于接收模式的终端、至少一个处于发送模式的终端、至少一个处于中继模式的终端;
通过通信接口2000将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端;
在接收到处于发送模式的所述第二终端的转发请求时,通过通信接口2000获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据;所述传输路径是所述第二终端根据获取的设备信息确定的。
其中,所述设备信息包括:设备标识和对应终端所处的直连通信模式,所述设备信息是所述第一终端通过第二直连通信连接发送给所述第二终端的;所述直连通信模式包括:发送模式、中继模式和接收模式;所述转发请求是所述第二终端通过第二直连通信连接发送给所述第一终端的;所述目标数据是所述第二终端通过第一直连通信连接发送给所述第一终端的。
可选地,处理器1000调用存储在存储器3000中的计算机程序,所述根据所述转发请求中指示的传输路径转发所述目标数据,具体用于执行以下步骤:
如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于中继模式的终端,则与所述处于中继模式的终端建立第一直连通信连接以传输所述目标数据;
如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于接收模式的终端,则与所述处于接收模式的终端建立第一直连通信连接以传输所述目标数据。
可选地,处理器1000调用存储在存储器3000中的计算机程序,所述在与直连通信集群中的终端建立了直连通信连接之后,还用于执行以下步骤:
如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;所述发送的设备信息包括:所述直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息;
在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
根据所述传输路径向所述目标终端发送所述数据。
可选地,处理器1000调用存储在存储器3000中的计算机程序,所述在需要向目标终端发送数据时,根据获取的设备信息确定传输路径,用于执行以下步骤:
通过所述通信接口2000显示一个用户界面;所述用户界面用于显示获取的设备信息;
通过所述通信接口2000接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
可选地,处理器1000调用存储在存储器3000中的计算机程序,还用于执行以下步骤:
在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;所述发送的设备信息包括:所述直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息;
在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
根据所述传输路径向所述目标终端发送所述数据。
可选地,处理器1000调用存储在存储器3000中的计算机程序,还用于执行以下步骤:
通过通信接口2000显示一个用户界面;所述用户界面用于显示获取的设备信息;
通过通信接口2000接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
在一个实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器1000执行时实现如本申请图3或图5实施例中所描述的数据传输方法。
再一个实施例中,还提供了一种计算机程序产品,该计算机程序产品包括了存储有计算机程序的计算机可读存储介质,该计算机程序被处理器1000执行时实现如本申请图3或图5的实施例中所描述的数据传输方法。
可见,图10所示的实施例中,第一终端可以在被配置为中继模式时,该第一终端实现直连通信集群中处于接收模式的终端与处于发送模式的第二终端间的信息以及数据的交互,从而扩展数据传输方式,并且方便了数据传输。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述该作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(Processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (20)

  1. 一种数据传输方法,应用于第一终端,其特征在于,所述方法包括:
    在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息;所述直连通信集群中包括至少一个处于接收模式的终端、至少一个处于发送模式的终端、至少一个处于中继模式的终端;
    将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端;
    在接收到处于发送模式的所述第二终端的转发请求时,获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据;所述传输路径是所述第二终端根据获取的设备信息确定的。
  2. 根据权利要求1所述的方法,其特征在于,所述设备信息包括:设备标识和对应终端所处的直连通信模式,所述设备信息是所述第一终端通过第二直连通信连接发送给所述第二终端的;所述直连通信模式包括:发送模式、中继模式和接收模式;所述转发请求是所述第二终端通过第二直连通信连接发送给所述第一终端的;所述目标数据是所述第二终端通过第一直连通信连接发送给所述第一终端的。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述转发请求中指示的传输路径转发所述目标数据,包括:
    如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于中继模式的终端,则与所述处于中继模式的终端建立第一直连通信连接以传输所述目标数据;
    如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于接收模式的终端,则与所述处于接收模式的终端建立第一直连通信连接以传输所述目标数据。
  4. 根据权利要求1所述的方法,其特征在于,所述在与直连通信集群中的终端建立了直连通信连接之后,所述方法还包括:
    如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;所述发送的设备信息包括:所述直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息;
    在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
    根据所述传输路径向所述目标终端发送所述数据。
  5. 根据权利要求4所述的方法,其特征在于,所述在需要向目标终端发送数据时,根据获取的设备信息确定传输路径,包括:
    显示一个用户界面;所述用户界面用于显示获取的设备信息;
    接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
  6. 一种数据传输方法,应用于第一终端,其特征在于,所述方法包括:
    在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;所述发送的设备信息包括:所述直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息;
    在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
    根据所述传输路径向所述目标终端发送所述数据。
  7. 根据权利要求6所述的方法,其特征在于,所述在需要向目标终端发送数据时,根据获取的设备信息确定传输路径,包括:
    显示一个用户界面;所述用户界面用于显示获取的设备信息;
    接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
  8. 一种数据传输装置,应用于第一终端,其特征在于,所述装置包括:
    获取模块,用于在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设备信息;所述直连通信集群中包括至少一个处于接收模式的终端、至少一个处于发送模式的终端、至少一个处于中继模式的终端;
    发送模块,用于将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端;
    获取发送模块,用于在接收到处于发送模式的所述第二终端的转发请求时,获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据;所述传输路径是所述第二终端根据获取的设备信息确定的。
  9. 根据权利要求8所述的装置,其特征在于,所述设备信息包括:设备标识和对应终端所处的直连通信模式,所述设备信息是所述第一终端通过第二直连通信连接发送给所述第二终端的;所述直连通信模式包括:发送模式、中继模式和接收模式;所述转发请求是所述第二终端通过第二直连通信连接发送给所述第一终端的;所述目标数据是所述第二终端通过第一直连通信连接发送给所述第一终端的。
  10. 根据权利要求9所述的装置,其特征在于,所述获取发送模块,具体用于如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于中继模式的终端,则与所述处于中继模式的终端建立第一直连通信连接以传输所述目标数据;如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于接收模式的终端,则与所述处于接收模式的终端建立第一直连通信连接以传输所述目标数据。
  11. 根据权利要求8所述的装置,其特征在于,所述装置还包括确定模块,
    所述获取模块,还用于如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;
    所述确定模块,用于在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
    所述发送模块,还用于根据所述传输路径向所述目标终端发送所述数据。
  12. 根据权利要求11所述的装置,其特征在于,所述确定模块,具体用于显示一个用户界面;所述用户界面用于显示获取的设备信息;接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
  13. 一种数据传输装置,应用于第一终端,其特征在于,所述装置包括:
    获取模块,用于在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;所述发送的设备信息包括:所述直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息;
    确定模块,用于在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
    发送模块,用于根据所述传输路径向所述目标终端发送所述数据。
  14. 根据权利要求13所述的装置,其特征在于,所述确定模块,具体用于显示一个用户界面;所述用户界面用于显示获取的设备信息;接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
  15. 一种终端,其特征在于,至少包括处理器、通信接口和存储器,其中,所述存储器用于存储应用程序代码,所述处理器被配置用于调用所述程序代码,执行如下步骤:
    在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为中继模式,则通过所述通信接口获取所述第一终端所在的直连通信集群中各个处于接收模式的终端的设 备信息;所述直连通信集群中包括至少一个处于接收模式的终端、至少一个处于发送模式的终端、至少一个处于中继模式的终端;
    通过所述通信接口将所述各个处于接收模式的终端的设备信息发送至所述直连通信集群中处于发送模式的第二终端;
    在接收到处于发送模式的所述第二终端的转发请求时,通过所述通信接口获取所述第二终端的目标数据,并根据所述转发请求中指示的传输路径转发所述目标数据;所述传输路径是所述第二终端根据获取的设备信息确定的。
  16. 根据权利要求15所述的终端,其特征在于,所述设备信息包括:设备标识和对应终端所处的直连通信模式,所述设备信息是所述第一终端通过第二直连通信连接发送给所述第二终端的;所述直连通信模式包括:发送模式、中继模式和接收模式;所述转发请求是所述第二终端通过第二直连通信连接发送给所述第一终端的;所述目标数据是所述第二终端通过第一直连通信连接发送给所述第一终端的。
  17. 根据权利要求16所述的终端,其特征在于,所述处理器调用存储在存储器中的计算机程序,所述根据所述转发请求中指示的传输路径转发所述目标数据,具体用于执行以下步骤:
    如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于中继模式的终端,则与所述处于中继模式的终端建立第一直连通信连接以传输所述目标数据;
    如果所述转发请求中指示的传输路径所指示的下一节点是所述直连通信集群中处于接收模式的终端,则与所述处于接收模式的终端建立第一直连通信连接以传输所述目标数据。
  18. 一种终端,其特征在于,至少包括处理器和存储器,其中,所述存储器用于存储应用程序代码,所述处理器被配置用于调用所述程序代码,执行如下步骤:
    在与直连通信集群中的终端建立了直连通信连接之后,如果被配置为发送模式,则获取所述第一终端所在直连通信集群中各个处于中继模式的终端发送的设备信息;所述发送的设备信息包括:所述直连通信集群中各个处于接收模式的终端的设备信息、和各个处于中继模式的终端的设备信息;
    在需要向目标终端发送数据时,根据获取的设备信息确定传输路径;
    根据所述传输路径向所述目标终端发送所述数据。
  19. 根据权利要求18所述的终端,其特征在于,所述终端还包括通信接口,所述处理器调用存储在存储器中的计算机程序,还用于执行以下步骤:
    通过所述通信接口显示一个用户界面;所述用户界面用于显示获取的设备信息;
    通过所述通信接口接收针对所述设备信息的选择操作,并根据所述选择操作确定传输路径。
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-5任意一项所述的方法,或者权利要求6或7所述的方法。
PCT/CN2018/091674 2017-07-18 2018-06-15 一种数据传输方法、装置、终端及计算机可读存储介质 WO2019015427A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710587644.9 2017-07-18
CN201710587644.9A CN107360635B (zh) 2017-07-18 2017-07-18 一种数据传输方法、装置、终端及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2019015427A1 true WO2019015427A1 (zh) 2019-01-24

Family

ID=60285242

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/091674 WO2019015427A1 (zh) 2017-07-18 2018-06-15 一种数据传输方法、装置、终端及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN107360635B (zh)
WO (1) WO2019015427A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360636B (zh) * 2017-07-18 2019-09-10 Oppo广东移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质
CN107360635B (zh) * 2017-07-18 2020-02-07 Oppo广东移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质
CN107277756B (zh) * 2017-07-18 2019-09-17 Oppo广东移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质
CN108173725A (zh) * 2017-12-26 2018-06-15 上海展扬通信技术有限公司 设备控制方法、装置、终端及计算机可读存储介质
CN110602804B (zh) * 2018-06-13 2023-06-02 佛山市顺德区美的电热电器制造有限公司 一种基于ap直连的数据交换方法、设备及存储介质
CN109874129B (zh) * 2019-03-31 2021-11-16 联想(北京)有限公司 一种数据处理方法及电子设备
CN111836329B (zh) * 2019-04-19 2022-04-22 Oppo广东移动通信有限公司 数据传输方法及相关装置
CN110148293A (zh) * 2019-06-06 2019-08-20 Oppo广东移动通信有限公司 抄表异常处理方法及装置、***、存储介质和电子设备
JP7375342B2 (ja) * 2019-06-17 2023-11-08 富士フイルムビジネスイノベーション株式会社 中継装置、情報処理システム及び中継処理プログラム
CN113382423B (zh) * 2020-03-09 2023-08-22 维沃移动通信有限公司 信号传输方法、信息指示方法和相关设备
CN118176751A (zh) * 2021-10-30 2024-06-11 华为技术有限公司 一种d2d通信方法
CN114339951B (zh) * 2021-12-28 2023-03-24 中兴***技术有限公司 一种公网集群融合通信方法及***

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101512926A (zh) * 2005-12-12 2009-08-19 摩托罗拉公司 用于无线通信信号的协同分集接收的方法和装置
EP2385729A2 (en) * 2010-05-07 2011-11-09 Vodafone IP Licensing limited Control of electronic features in a network
CN103974245A (zh) * 2013-02-01 2014-08-06 华为终端有限公司 设备配置方法、设备及***
CN107277756A (zh) * 2017-07-18 2017-10-20 广东欧珀移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质
CN107360635A (zh) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质
CN107360636A (zh) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9730082B2 (en) * 2012-08-24 2017-08-08 Intel Corporation Methods and arrangements to relay packets via Wi-Fi direct
CN103533671A (zh) * 2013-11-12 2014-01-22 深圳如果技术有限公司 一种蓝牙连接方法、移动终端及车载终端
CN106211026B (zh) * 2014-12-22 2019-05-24 中兴通讯股份有限公司 一种实现设备直通中继选择的方法、网络控制节点及用户设备
CN106211188A (zh) * 2015-04-10 2016-12-07 中兴通讯股份有限公司 更换中继节点的方法及***、d2d用户设备及控制节点
CN105188099B (zh) * 2015-08-21 2019-01-11 北京邮电大学 基于d2d通信的中继设备重选方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101512926A (zh) * 2005-12-12 2009-08-19 摩托罗拉公司 用于无线通信信号的协同分集接收的方法和装置
EP2385729A2 (en) * 2010-05-07 2011-11-09 Vodafone IP Licensing limited Control of electronic features in a network
CN103974245A (zh) * 2013-02-01 2014-08-06 华为终端有限公司 设备配置方法、设备及***
CN107277756A (zh) * 2017-07-18 2017-10-20 广东欧珀移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质
CN107360635A (zh) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质
CN107360636A (zh) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 一种数据传输方法、装置、终端及计算机可读存储介质

Also Published As

Publication number Publication date
CN107360635B (zh) 2020-02-07
CN107360635A (zh) 2017-11-17

Similar Documents

Publication Publication Date Title
WO2019015427A1 (zh) 一种数据传输方法、装置、终端及计算机可读存储介质
WO2019015428A1 (zh) 一种数据传输方法、装置、终端及计算机可读存储介质
JP6311755B2 (ja) 通信装置、通信方法、プログラムおよび通信システム
US10701545B2 (en) File sending method and terminal, and file receiving method and terminal
WO2019015429A1 (zh) 一种数据传输方法、装置、终端及计算机可读存储介质
KR101597177B1 (ko) 무선 통신 접속의 콘텍스트 인식 근접도 기반 설정
WO2017097088A1 (zh) 多屏投影控制方法、***、终端设备及计算机存储介质
WO2020134720A1 (zh) 数据传输控制方法及相关产品
CN104426583B (zh) 基于近场通信的数据传输方法、装置及近场通信设备
WO2013086993A1 (zh) 终端之间传输数据的方法和终端
CN110121902B (zh) 一种通信建立的方法及终端
CN105760127A (zh) 一种传屏方法、传屏装置及移动终端
CN107222937B (zh) 一种数据传输方法、装置及终端
US20230345221A1 (en) Method for transmitting data in near field, device, and system
CN104333643B (zh) 添加联系人的方法、***及终端
JP2016519869A (ja) Ieee802.11高速セッション転送をサポートするためのマルチプロトコルドライバ
CN104333598A (zh) 基于二维码和网络适配的移动终端和web终端互连的方法
CN110300187A (zh) 一种跨终端的远程协助方法和终端、服务器以及***
WO2019001188A1 (zh) 一种数据处理方法、终端以及基站
WO2018129876A1 (zh) 多媒体数据传输的方法、服务器和终端
WO2019079971A1 (zh) 群组的通信方法及装置、计算机存储介质、计算机设备
CN105704110A (zh) 一种媒体传输方法、媒体控制方法及装置
CN105704106B (zh) 一种可视化ivr实现方法及移动终端
WO2023202131A1 (zh) 设备互联方法、装置、电子设备及存储介质
WO2019140648A1 (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: 18835770

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

Country of ref document: EP

Kind code of ref document: A1