WO2014110855A1 - Data transmission method and terminals - Google Patents

Data transmission method and terminals Download PDF

Info

Publication number
WO2014110855A1
WO2014110855A1 PCT/CN2013/071818 CN2013071818W WO2014110855A1 WO 2014110855 A1 WO2014110855 A1 WO 2014110855A1 CN 2013071818 W CN2013071818 W CN 2013071818W WO 2014110855 A1 WO2014110855 A1 WO 2014110855A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
connection
point
function
connection request
Prior art date
Application number
PCT/CN2013/071818
Other languages
French (fr)
Chinese (zh)
Inventor
文燎
Original Assignee
深圳市同洲电子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市同洲电子股份有限公司 filed Critical 深圳市同洲电子股份有限公司
Publication of WO2014110855A1 publication Critical patent/WO2014110855A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a data transmission method and terminal. Background technique
  • the data transmission method is no longer simply two terminals transmitting data through the data line.
  • the wireless connection mode of the wireless router is gradually replacing the way the data line is connected, as people transmit data. Convenience requirements are getting higher and higher, making the way of wireless connection
  • Wi-Fi Display is a Wi-Fi Direct-based connection that allows terminals in a wireless network to connect to each other and transmit data without using a wireless router.
  • the Wi-Fi Direct function is enabled in the coverage of the search signal.
  • the terminal connects to the connected terminal by using the terminal name.
  • the connected terminal negotiates with the requesting connection terminal through the Wi-Fi Direct protocol.
  • the user needs to click to confirm the connection.
  • the terminal can establish a connection relationship.
  • the connected terminal needs to wait for the user to input a confirmation connection command to complete the connection relationship with the request connection terminal and perform data transmission, thereby increasing data transmission.
  • the time required affects the efficiency of data transmission and reduces the intelligence of the terminal. Summary of the invention
  • the embodiment of the invention provides a data transmission method and a terminal, which can improve the connection efficiency without requiring the user to respond to the connection request, thereby reducing the time required for data transmission and improving the intelligence of the terminal.
  • An embodiment of the present invention provides a data transmission method, including:
  • the first terminal returns a connection confirmation message to the second terminal according to the connection request, to establish a point-to-point communication connection with the second terminal;
  • the first terminal receives data transmitted by the second terminal based on the point-to-point communication connection.
  • an embodiment of the present invention further provides a terminal, including:
  • a receiving module configured to receive a connection request sent by a second terminal in a preset range
  • connection confirmation module configured to return a connection confirmation message to the second terminal according to the connection request, to establish a point-to-point communication connection with the second terminal
  • a data transmission module configured to receive data transmitted by the second terminal based on the point-to-point communication connection.
  • the first terminal does not need to return a connection confirmation message to the second terminal by the user in response to the connection request of the second terminal, to be connected to the second terminal.
  • Establish a point-to-point communication connection relationship perform data transmission, improve the efficiency of data transmission, and improve the intelligence of the terminal.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for data transmission according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for data transmission according to the present invention.
  • FIG. 3 is a schematic structural diagram of a main component module of a terminal according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a connection confirmation module according to an embodiment of the present invention. detailed description
  • the first terminal when the first terminal receives the connection request of the second terminal, the first terminal performs communication negotiation with the second terminal according to the connection request, and if the negotiation passes, returns a connection confirmation message to the second terminal. To establish a point-to-point communication connection, thereby receiving data transmitted by the second terminal.
  • the first terminal and the second terminal may be terminals with a Wi-Fi Display function, such as a mobile phone, a tablet computer, a television, etc., and the Wi-Fi Display is a Wi-Fi Direct connection-based wireless device. Terminals in the network do not need to be connected to each other via a wireless router and transmit data.
  • the connection request may carry the identifier of the second terminal and the type of the communication protocol supported by the second terminal.
  • the content of the communication negotiation may include: confirming that the identifier of the second terminal exists in the identifier of the terminal that is searched and recorded by the first terminal, confirming that the communication protocol supported by the second terminal is supported by the first terminal
  • the communication protocols are the same.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for data transmission according to an embodiment of the present invention. As shown in FIG. 1, the method of the embodiment of the present invention includes the following steps:
  • the first terminal receives a connection request sent by a second terminal in a preset range.
  • the preset range may be a range covered by the Wi-Fi Direct signal of the first terminal, or may be a range set by the user, where the range set by the user is less than or equal to the Wi of the first terminal. -Fi Direct coverage of the signal.
  • the first terminal receives a connection request sent by the second terminal within a preset range.
  • the first terminal returns a connection confirmation message to the second terminal according to the connection request, to establish a point-to-point communication connection with the second terminal.
  • the first terminal negotiates with the second terminal according to the connection request sent by the second terminal, and if the negotiation passes, the first terminal returns a connection confirmation message to the second terminal, to Establishing a point-to-point communication connection with the second terminal.
  • the first terminal receives data transmitted by the second terminal according to the point-to-point communication connection. Specifically, if the first terminal establishes a point-to-point communication connection with the second terminal, the first terminal Receiving data transmitted by the second terminal.
  • the first terminal turns on the Wi-Fi Direct function, enables the search function in the Wi-Fi Direct function, searches for a terminal in a preset range, and records an identifier of the terminal.
  • the first terminal when the first terminal is powered on, the first terminal automatically turns on the Wi-Fi Direct function, and automatically starts or performs a search function in the Wi-Fi Direct function according to a user manually setting, the first The terminal searches for a terminal within a preset range, and records the identifier of the terminal.
  • the preset range may be a range covered by the Wi-Fi Direct signal of the first terminal, or may be a range set by the user, and the range set by the user is less than or equal to the Wi- of the first terminal.
  • the range covered by the Fi Direct signal may be a range covered by the Wi-Fi Direct signal of the first terminal, or may be a range set by the user, and the range set by the user is less than or equal to the Wi- of the first terminal.
  • S202 The first terminal receives a connection request sent by the second terminal in the preset range.
  • the first terminal performs communication negotiation with the second terminal according to the connection request sent by the second terminal. Determining, by the first terminal, whether the identifier of the second terminal carried in the connection request exists in the identifier of the terminal recorded by the first terminal, and if the identifier of the second terminal exists, determining, according to the connection request, the first Whether the communication protocol supported by the second terminal is the same as the communication protocol supported by the first terminal; if the identifier of the second terminal does not exist, the connection request of the second terminal is interrupted.
  • the first terminal if the communication protocol supported by the second terminal is the same as the communication protocol supported by the first terminal, the first terminal returns a connection confirmation message to the second terminal, to establish a point-to-point communication connection with the second terminal. ;
  • the first terminal determines that the identifier of the second terminal that is carried in the connection request exists in the identifier of the terminal that is recorded by the first terminal, and that the communication protocol supported by the second terminal is supported by the first terminal, If the protocol is the same, the first terminal negotiates with the second terminal, and the first terminal automatically returns a connection confirmation message to the second terminal, and establishes a point-to-point communication connection with the second terminal. 5205, the first terminal turns off the search function in the Wi-Fi Direct function;
  • the first terminal when the first terminal establishes a point-to-point communication connection with the second terminal, the first terminal turns off the search function in the Wi-Fi Direct function.
  • the first terminal disconnects the communication connection with the second terminal, enable a search function in the Wi-Fi Direct function, search for a terminal in a preset range, and record an identifier of the terminal.
  • the search function in the Wi-Fi Direct function is automatically started or manually according to the user setting, and the terminal in the preset range is searched. And record the identity of the terminal.
  • step S202 of the embodiment of the present invention reference may be made to the step S101 of the embodiment shown in FIG. 1 , and details are not described herein.
  • FIG. 3 is a schematic structural diagram of a main component module of a terminal according to an embodiment of the present invention.
  • the terminal in this embodiment may be a first terminal, and the terminal 1 includes:
  • the receiving module 10 is configured to receive a connection request sent by the second terminal in the preset range
  • the preset range may be a range covered by the Wi-Fi Direct signal of the terminal 1, or may be a range set by the user, and the range set by the user is less than or equal to the Wi- of the terminal 1.
  • the receiving module 10 receives the connection request sent by the second terminal within a preset range.
  • connection confirmation module 20 is configured to return a connection confirmation message to the second terminal according to the connection request, to establish a point-to-point communication connection with the second terminal;
  • connection confirmation module 20 negotiates with the second terminal according to the connection request sent by the second terminal, and if the negotiation succeeds, the connection confirmation module 20 goes to the The second terminal returns a connection confirmation message to establish a point-to-point communication connection with the second terminal.
  • a data transmission module 30 configured to receive data transmitted by the second terminal based on the point-to-point communication connection
  • the data transmission module 30 receives the data transmitted by the second terminal.
  • the first terminal does not need to perform communication negotiation with the second terminal by the user in response to the connection request of the second terminal according to the connection request sent by the second terminal, and if the negotiation succeeds, the first terminal
  • the second terminal automatically returns a connection confirmation message to establish a point-to-point communication connection relationship with the second terminal, and performs data transmission, thereby improving data transmission efficiency and improving terminal intelligence.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal in this embodiment may be a first terminal, and the terminal 1 of the embodiment of the present invention includes a receiving module 10, a connection confirmation module 20, and a data transmission module 30, and further includes: a function enabling module 40 and a search closing module 50;
  • the receiving module 10 the connection confirmation module 20, and the data transmission module 30, refer to the related description of the embodiment shown in FIG. 3, and details are not described herein.
  • a function enabling module 40 configured to enable a Wi-Fi Direct function, enable a search function in the Wi-Fi Direct function, search for a terminal within a preset range, and record an identifier of the terminal;
  • the search function in the Wi-Fi Direct function is enabled, the terminal in the preset range is searched, and the identifier of the terminal is recorded;
  • the function enabling module 40 when the terminal 1 is powered on, the function enabling module 40 automatically turns on Wi-Fi.
  • the range may be a range covered by the Wi-Fi Direct signal of the terminal 1 or a range set by the user, and the range set by the user is less than or equal to the coverage range of the Wi-Fi Direct signal of the terminal 1;
  • the function enabling module 40 starts the search function in the Wi-Fi Direct function automatically or according to the user's manual setting, and searches for the preset range. Other terminals, and record the identifiers of all the terminals that are searched.
  • Searching off module 50 when establishing the point-to-point communication connection with the second terminal, Turn off the search function in the Wi-Fi Direct function;
  • connection confirmation module 20 when the terminal 1 establishes a point-to-point communication connection with the second terminal, the search closing module 50 turns off the search function in the Wi-Fi Direct function.
  • FIG. 5 a schematic structural diagram of a connection confirmation module according to an embodiment of the present invention is provided.
  • the connection confirmation module shown in FIG. 5 may be the connection confirmation module 20 in the embodiment shown in FIG. 3 or FIG. 4, and the connection confirmation module 20 includes:
  • the identifier determining unit 21 is configured to determine whether the identifier of the second terminal carried in the connection request exists in the identifier of the first terminal recording terminal;
  • the identifier determining unit 21 performs communication negotiation with the second terminal according to the connection request of the second terminal received by the receiving module 10, and the identifier determining unit 21 determines the terminal 1 Whether the identifier of the second terminal carried in the connection request exists in the identifier of all the terminals recorded.
  • the protocol determining unit 22 determines, according to the connection request, that the second terminal supports Whether the communication protocol is the same as the communication protocol supported by the terminal 1.
  • connection establishing unit 23 configured to: if the communication protocol supported by the second terminal is the same as the communication protocol supported by the first terminal, return a connection confirmation message to the second terminal, to establish a point-to-point with the second terminal Communication connection
  • the Wi-Fi Direct function when the first terminal is powered on, the Wi-Fi Direct function is started and the search function in the Wi-Fi Direct function is started, and the terminal in the preset range is searched in advance, and the terminal is recorded.
  • the identifier when receiving the connection request sent by the second terminal, does not need to communicate with the second terminal by the user in response to the connection request of the second terminal, and returns a connection confirmation message to the second terminal, The time spent in the connection process is saved.
  • the search function in the Wi-Fi Direct function is automatically turned off, thereby avoiding connection interference of other terminals, and improving The efficiency of data transmission improves the intelligence of the terminal.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed are a data transmission method and terminals. The method comprises the following steps: a first terminal receiving a connection request sent by a second terminal in a preset range; the first terminal returning a connection acknowledgement message to the second terminal according to the connection request, so as to establish a point-to-point communication connection with the second terminal; and the first terminal receiving data transmitted by the second terminal based on the point-to-point communication connection. A user is not required to respond to a connection request, so the connection efficiency is improved; therefore, the time required for data transmission is reduced, and intelligence of the terminals is improved.

Description

一种数据传输的方法及终端  Method and terminal for data transmission
本申请要求于 201 3 年 1 月 1 5 日提交中国专利局、 申请号为 201310013753.1 , 发明名称为 "一种数据传输的方法及终端" 的中国专利申 请 的 优 先 权 , 其全部 内 容通 过 引 用 结 合在 本 申 请 中 。 技术领域  This application claims priority to Chinese Patent Application No. 201310013753.1, entitled "A Method and Terminal for Data Transmission", filed on January 15, 2013, the entire contents of which are incorporated by reference. In this application. Technical field
本发明涉及电子技术领域, 尤其涉及一种数据传输的方法及终端。 背景技术  The present invention relates to the field of electronic technologies, and in particular, to a data transmission method and terminal. Background technique
随着电子技术产业不断的发展,数据传输的方式不再是单纯的两个终端通 过数据线进行数据传输,无线路由器的无线连接方式正逐渐取代数据线连接的 方式, 随着人们对数据传输的便捷性要求越来越高,使得无线连接的方式中又 With the continuous development of the electronic technology industry, the data transmission method is no longer simply two terminals transmitting data through the data line. The wireless connection mode of the wireless router is gradually replacing the way the data line is connected, as people transmit data. Convenience requirements are getting higher and higher, making the way of wireless connection
^汙生出蓝牙连接和 Wi-Fi Direct连接两种方式。 ^ Stained two ways of Bluetooth connection and Wi-Fi Direct connection.
Wi-Fi Display是一种基于 Wi-Fi Direct连接的允许无线网络中的终端无需 通过无线路由器即可相互连接并且进行数据传输的方式,通过搜索信号覆盖范 围内的已经开启 Wi-Fi Direct功能的终端, 以终端名称与被连接的终端进行连 接, 在连接的过程中, 被连接终端通过 Wi-Fi Direct协议与请求连接终端进行 协商, 当终端之间协商通过后, 需要由用户点击确认连接, 此时终端才能建立 连接关系, 而当用户在连接的过程中有事需暂时离开时,被连接终端需要等待 用户输入确认连接指令才可以与请求连接终端完成连接关系并进行数据传输, 增加了数据传输所需的时间, 影响了数据传输的效率, 降低了终端的智能性。 发明内容  Wi-Fi Display is a Wi-Fi Direct-based connection that allows terminals in a wireless network to connect to each other and transmit data without using a wireless router. The Wi-Fi Direct function is enabled in the coverage of the search signal. The terminal connects to the connected terminal by using the terminal name. During the connection process, the connected terminal negotiates with the requesting connection terminal through the Wi-Fi Direct protocol. After the terminal negotiates, the user needs to click to confirm the connection. At this point, the terminal can establish a connection relationship. When the user needs to temporarily leave during the connection process, the connected terminal needs to wait for the user to input a confirmation connection command to complete the connection relationship with the request connection terminal and perform data transmission, thereby increasing data transmission. The time required affects the efficiency of data transmission and reduces the intelligence of the terminal. Summary of the invention
本发明实施例提供了一种数据传输的方法及终端,无需用户响应连接请求, 可以提高连接的效率, 从而减少数据传输所需的时间, 提高了终端的智能性。  The embodiment of the invention provides a data transmission method and a terminal, which can improve the connection efficiency without requiring the user to respond to the connection request, thereby reducing the time required for data transmission and improving the intelligence of the terminal.
本发明实施例提供了一种数据传输的方法, 包括:  An embodiment of the present invention provides a data transmission method, including:
第一终端接收预设范围内的第二终端发送的连接请求;  Receiving, by the first terminal, a connection request sent by the second terminal in the preset range;
第一终端根据所述连接请求, 向所述第二终端返回连接确认消息, 以与所 述第二终端建立点对点通信连接; 第一终端基于所述点对点通信连接, 接收所述第二终端传输的数据。 相应地, 本发明实施例还提供了一种终端, 包括: The first terminal returns a connection confirmation message to the second terminal according to the connection request, to establish a point-to-point communication connection with the second terminal; The first terminal receives data transmitted by the second terminal based on the point-to-point communication connection. Correspondingly, an embodiment of the present invention further provides a terminal, including:
接收模块, 用于接收预设范围内的第二终端发送的连接请求;  a receiving module, configured to receive a connection request sent by a second terminal in a preset range;
连接确认模块, 用于根据所述连接请求, 向所述第二终端返回连接确认消 息, 以与所述第二终端建立点对点通信连接;  a connection confirmation module, configured to return a connection confirmation message to the second terminal according to the connection request, to establish a point-to-point communication connection with the second terminal;
数据传输模块, 用于基于所述点对点通信连接,接收所述第二终端传输的 数据。  And a data transmission module, configured to receive data transmitted by the second terminal based on the point-to-point communication connection.
实施本发明实施例, 具有如下有益效果:  Embodiments of the present invention have the following beneficial effects:
本发明实施例中, 第一终端根据第二终端发送的连接请求, 无需通过用户 响应所述第二终端的连接请求, 自动向所述第二终端返回连接确认消息, 以与 所述第二终端建立点对点的通信连接关系, 进行数据传输,提高了数据传输的 效率, 提升了终端的智能性。 附图说明  In the embodiment of the present invention, the first terminal, according to the connection request sent by the second terminal, does not need to return a connection confirmation message to the second terminal by the user in response to the connection request of the second terminal, to be connected to the second terminal. Establish a point-to-point communication connection relationship, perform data transmission, improve the efficiency of data transmission, and improve the intelligence of the terminal. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例中所需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only the present invention. In some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive work.
图 1是本发明一种数据传输的方法的第一实施例流程示意图;  1 is a schematic flow chart of a first embodiment of a method for data transmission according to the present invention;
图 2是本发明一种数据传输的方法的第二实施例流程示意图;  2 is a schematic flow chart of a second embodiment of a method for data transmission according to the present invention;
图 3是本发明实施例的一种终端的主要组成模块的结构示意图; 图 4是本发明实施例的一种终端的结构示意图;  3 is a schematic structural diagram of a main component module of a terminal according to an embodiment of the present invention; FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图 5是本发明实施例的连接确认模块的结构示意图。 具体实施方式  FIG. 5 is a schematic structural diagram of a connection confirmation module according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 本发明实施例中, 当第一终端接收到第二终端的连接请求时,根据所述连 接请求与所述第二终端进行通信协商,如果协商通过, 则返回连接确认消息到 所述第二终端以建立点对点的通信连接, 以此接收所述第二终端传输的数据。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention. In the embodiment of the present invention, when the first terminal receives the connection request of the second terminal, the first terminal performs communication negotiation with the second terminal according to the connection request, and if the negotiation passes, returns a connection confirmation message to the second terminal. To establish a point-to-point communication connection, thereby receiving data transmitted by the second terminal.
其中, 所述第一终端和所述第二终端都可以为手机、 平板电脑、 电视等具 备 Wi-Fi Display功能的终端, 所述 Wi-Fi Display是一种基于 Wi-Fi Direct连 接的允许无线网络中的终端无需通过无线路由器即可相互连接并且进行数据 传输的方式。所述连接请求可以携带第二终端的标识及第二终端所支持的通信 协议的类型。所述通信协商的内容可以包括: 确认所述第一终端搜索并记录的 终端的标识中存在所述第二终端的标识、确认所述第二终端支持的通信协议与 所述第一终端支持的通信协议相同等。 请参见图 1 , 为本发明实施例提供一种数据传输的方法的第一实施例流程 示意图。 如图 1所示, 本发明实施例的所述方法包括以下步骤:  The first terminal and the second terminal may be terminals with a Wi-Fi Display function, such as a mobile phone, a tablet computer, a television, etc., and the Wi-Fi Display is a Wi-Fi Direct connection-based wireless device. Terminals in the network do not need to be connected to each other via a wireless router and transmit data. The connection request may carry the identifier of the second terminal and the type of the communication protocol supported by the second terminal. The content of the communication negotiation may include: confirming that the identifier of the second terminal exists in the identifier of the terminal that is searched and recorded by the first terminal, confirming that the communication protocol supported by the second terminal is supported by the first terminal The communication protocols are the same. FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for data transmission according to an embodiment of the present invention. As shown in FIG. 1, the method of the embodiment of the present invention includes the following steps:
5101 , 第一终端接收预设范围内的第二终端发送的连接请求;  5101. The first terminal receives a connection request sent by a second terminal in a preset range.
具体的, 所述预设范围可以为第一终端的 Wi-Fi Direct信号覆盖的范围, 也可以为用户自行设定的范围,所述用户设定的范围小于或等于所述第一终端 的 Wi-Fi Direct信号覆盖的范围。 所述第一终端在预设范围内接收第二终端发 送的连接请求。  Specifically, the preset range may be a range covered by the Wi-Fi Direct signal of the first terminal, or may be a range set by the user, where the range set by the user is less than or equal to the Wi of the first terminal. -Fi Direct coverage of the signal. The first terminal receives a connection request sent by the second terminal within a preset range.
5102, 第一终端根据所述连接请求, 向所述第二终端返回连接确认消息, 以与所述第二终端建立点对点通信连接;  S102: The first terminal returns a connection confirmation message to the second terminal according to the connection request, to establish a point-to-point communication connection with the second terminal.
具体的, 所述第一终端根据所述第二终端发送的连接请求, 与所述第二终 端进行协商,如果协商通过, 则所述第一终端向所述第二终端返回连接确认消 息, 以与所述第二终端建立点对点的通信连接。  Specifically, the first terminal negotiates with the second terminal according to the connection request sent by the second terminal, and if the negotiation passes, the first terminal returns a connection confirmation message to the second terminal, to Establishing a point-to-point communication connection with the second terminal.
5103,第一终端基于所述点对点通信连接,接收所述第二终端传输的数据; 具体的,如果所述第一终端与所述第二终端建立了点对点的通信连接, 则 所述第一终端接收所述第二终端传输的数据。  5103. The first terminal receives data transmitted by the second terminal according to the point-to-point communication connection. Specifically, if the first terminal establishes a point-to-point communication connection with the second terminal, the first terminal Receiving data transmitted by the second terminal.
本发明实施例中, 第一终端根据第二终端发送的连接请求, 无需通过用户 响应所述第二终端的连接请求,与所述第二终端进行通信协商,如果协商通过, 则向所述第二终端自动返回连接确认消息,以与所述第二终端建立点对点的通 信连接关系, 进行数据传输, 提高了数据传输的效率, 提升了终端的智能性。 请参见图 2, 为本发明实施例提供一种数据传输的方法的第二实施例流程 示意图。 如图 2所示, 本发明实施例的所述方法包括以下步骤: In the embodiment of the present invention, the first terminal does not need to perform communication negotiation with the second terminal by the user in response to the connection request of the second terminal according to the connection request sent by the second terminal, and if the negotiation succeeds, the first terminal The second terminal automatically returns a connection confirmation message to establish a point-to-point communication with the second terminal. The connection relationship between the letters and the data transmission improves the efficiency of data transmission and improves the intelligence of the terminal. FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for data transmission according to an embodiment of the present invention. As shown in FIG. 2, the method of the embodiment of the present invention includes the following steps:
S201 , 第一终端开启 Wi-Fi Direct功能, 启用所述 Wi-Fi Direct功能中的 搜索功能, 搜索预设范围内的终端, 并记录所述终端的标识;  S201. The first terminal turns on the Wi-Fi Direct function, enables the search function in the Wi-Fi Direct function, searches for a terminal in a preset range, and records an identifier of the terminal.
具体的, 当所述第一终端上电时, 所述第一终端自动打开 Wi-Fi Direct功 能, 并自动或者根据用户手动设置启动所述 Wi-Fi Direct功能中的搜索功能, 所述第一终端搜索预设范围内的终端, 并记录所述终端的标识。  Specifically, when the first terminal is powered on, the first terminal automatically turns on the Wi-Fi Direct function, and automatically starts or performs a search function in the Wi-Fi Direct function according to a user manually setting, the first The terminal searches for a terminal within a preset range, and records the identifier of the terminal.
其中, 所述预设范围可以为第一终端的 Wi-Fi Direct信号覆盖的范围, 也 可以为用户自行设定的范围,所述用户设定的范围小于或等于所述第一终端的 Wi-Fi Direct信号覆盖的范围。  The preset range may be a range covered by the Wi-Fi Direct signal of the first terminal, or may be a range set by the user, and the range set by the user is less than or equal to the Wi- of the first terminal. The range covered by the Fi Direct signal.
5202, 第一终端接收预设范围内的第二终端发送的连接请求;  S202: The first terminal receives a connection request sent by the second terminal in the preset range.
5203 ,如果第一终端记录的终端的标识中存在所述连接请求中携带的第二 终端的标识, 第一终端根据所述连接请求, 判断所述第二终端支持的通信协议 与所述第一终端支持的通信协议是否相同;  S203: If the identifier of the second terminal that is carried in the connection request exists in the identifier of the terminal recorded by the first terminal, the first terminal determines, according to the connection request, the communication protocol supported by the second terminal and the first Whether the communication protocols supported by the terminal are the same;
具体的, 所述第一终端根据第二终端发送的连接请求, 与所述第二终端进 行通信协商。所述第一终端判断自身记录的终端的标识中是否存在所述连接请 求中携带的第二终端的标识,如果存在所述第二终端的标识, 则再根据所述连 接请求,判断所述第二终端支持的通信协议与所述第一终端支持的通信协议是 否相同; 如果不存在所述第二终端的标识, 则中断第二终端的连接请求。  Specifically, the first terminal performs communication negotiation with the second terminal according to the connection request sent by the second terminal. Determining, by the first terminal, whether the identifier of the second terminal carried in the connection request exists in the identifier of the terminal recorded by the first terminal, and if the identifier of the second terminal exists, determining, according to the connection request, the first Whether the communication protocol supported by the second terminal is the same as the communication protocol supported by the first terminal; if the identifier of the second terminal does not exist, the connection request of the second terminal is interrupted.
5204 ,若所述第二终端支持的通信协议与所述第一终端支持的通信协议相 同, 第一终端则向所述第二终端返回连接确认消息, 以与所述第二终端建立点 对点通信连接;  S204, if the communication protocol supported by the second terminal is the same as the communication protocol supported by the first terminal, the first terminal returns a connection confirmation message to the second terminal, to establish a point-to-point communication connection with the second terminal. ;
具体的,如果所述第一终端判断自身记录的终端的标识中存在所述连接请 求中携带的第二终端的标识,并且所述第二终端支持的通信协议与所述第一终 端支持的通信协议相同, 则可以说明所述第一终端与所述第二终端协商通过, 所述第一终端自动返回连接确认消息至所述第二终端,并与所述第二终端建立 点对点的通信连接。 5205, 第一终端关闭 Wi-Fi Direct功能中的搜索功能; Specifically, if the first terminal determines that the identifier of the second terminal that is carried in the connection request exists in the identifier of the terminal that is recorded by the first terminal, and that the communication protocol supported by the second terminal is supported by the first terminal, If the protocol is the same, the first terminal negotiates with the second terminal, and the first terminal automatically returns a connection confirmation message to the second terminal, and establishes a point-to-point communication connection with the second terminal. 5205, the first terminal turns off the search function in the Wi-Fi Direct function;
具体的, 当所述第一终端与所述第二终端建立了点对点的通信连接时, 所 述第一终端关闭所述 Wi-Fi Direct功能中的搜索功能。  Specifically, when the first terminal establishes a point-to-point communication connection with the second terminal, the first terminal turns off the search function in the Wi-Fi Direct function.
5206,当所述第一终端断开与所述第二终端的通信连接时,启用所述 Wi-Fi Direct功能中的搜索功能, 搜索预设范围内的终端, 并记录所述终端的标识; 具体的, 当所述第一终端断开与所述第二终端的通信连接时, 则再次自动 或者根据用户手动设置启动所述 Wi-Fi Direct功能中的搜索功能, 搜索预设范 围内的终端, 并记录所述终端的标识。  5206. When the first terminal disconnects the communication connection with the second terminal, enable a search function in the Wi-Fi Direct function, search for a terminal in a preset range, and record an identifier of the terminal. Specifically, when the first terminal disconnects the communication connection with the second terminal, the search function in the Wi-Fi Direct function is automatically started or manually according to the user setting, and the terminal in the preset range is searched. And record the identity of the terminal.
其中, 本发明实施例的步骤 S202可以参见图 1所示实施例的步骤 S101 , 在此不进行赘述。  For the step S202 of the embodiment of the present invention, reference may be made to the step S101 of the embodiment shown in FIG. 1 , and details are not described herein.
在本发明实施例中, 当第一终端上电时, 会启动 Wi-Fi Direct功能并启动 Wi-Fi Direct功能中的搜索功能, 预先搜索预设范围内的终端, 且记录终端的 标识, 当接收到第二终端发送的连接请求, 无需通过用户响应所述第二终端的 连接请求, 自动与所述第二终端进行通信协商并向所述第二终端返回连接确认 消息, 以此节省了连接过程中耗费的时间, 当与所述第二终端建立点对点的通 信连接关系进行数据传输时, 会自动关闭 Wi-Fi Direct功能中的搜索功能, 避 免了其他终端的连接干扰, 提高了数据传输的效率, 提升了终端的智能性。 请参见图 3, 为本发明实施例提供一种终端的主要组成模块的结构示意图。 本实施例所述的终端可以为第一终端, 所述终端 1包括:  In the embodiment of the present invention, when the first terminal is powered on, the Wi-Fi Direct function is started and the search function in the Wi-Fi Direct function is started, the terminal in the preset range is searched in advance, and the identifier of the terminal is recorded. Receiving the connection request sent by the second terminal, the user does not need to respond to the connection request of the second terminal, automatically negotiates with the second terminal, and returns a connection confirmation message to the second terminal, thereby saving the connection. The time spent in the process, when establishing a point-to-point communication connection relationship with the second terminal for data transmission, the search function in the Wi-Fi Direct function is automatically turned off, the connection interference of other terminals is avoided, and the data transmission is improved. Efficiency, improving the intelligence of the terminal. FIG. 3 is a schematic structural diagram of a main component module of a terminal according to an embodiment of the present invention. The terminal in this embodiment may be a first terminal, and the terminal 1 includes:
接收模块 10, 用于接收预设范围内的第二终端发送的连接请求;  The receiving module 10 is configured to receive a connection request sent by the second terminal in the preset range;
具体实现中,所述预设范围可以为终端 1的 Wi-Fi Direct信号覆盖的范围, 也可以为用户自行设定的范围, 所述用户设定的范围小于或等于所述终端 1 的 Wi-Fi Direct信号覆盖的范围。所述接收模块 10在预设范围内接收第二终端 发送的连接请求。  In a specific implementation, the preset range may be a range covered by the Wi-Fi Direct signal of the terminal 1, or may be a range set by the user, and the range set by the user is less than or equal to the Wi- of the terminal 1. The range covered by the Fi Direct signal. The receiving module 10 receives the connection request sent by the second terminal within a preset range.
连接确认模块 20, 用于根据所述连接请求, 向所述第二终端返回连接确 认消息, 以与所述第二终端建立点对点通信连接;  The connection confirmation module 20 is configured to return a connection confirmation message to the second terminal according to the connection request, to establish a point-to-point communication connection with the second terminal;
具体实现中, 所述连接确认模块 20根据所述第二终端发送的连接请求, 与所述第二终端进行协商, 如果协商通过, 则所述连接确认模块 20向所述第 二终端返回连接确认消息, 以与所述第二终端建立点对点的通信连接。 In a specific implementation, the connection confirmation module 20 negotiates with the second terminal according to the connection request sent by the second terminal, and if the negotiation succeeds, the connection confirmation module 20 goes to the The second terminal returns a connection confirmation message to establish a point-to-point communication connection with the second terminal.
数据传输模块 30, 用于基于所述点对点通信连接, 接收所述第二终端传 输的数据;  a data transmission module 30, configured to receive data transmitted by the second terminal based on the point-to-point communication connection;
具体实现中, 如果所述终端 1与所述第二终端建立了点对点的通信连接, 则所述数据传输模块 30接收所述第二终端传输的数据。  In a specific implementation, if the terminal 1 establishes a point-to-point communication connection with the second terminal, the data transmission module 30 receives the data transmitted by the second terminal.
本发明实施例中, 第一终端根据第二终端发送的连接请求, 无需通过用户 响应所述第二终端的连接请求,与所述第二终端进行通信协商,如果协商通过, 则向所述第二终端自动返回连接确认消息,以与所述第二终端建立点对点的通 信连接关系, 进行数据传输, 提高了数据传输的效率, 提升了终端的智能性。 请参见图 4, 为本发明实施例提供一种终端的结构示意图。 本实施例所述 的终端可以为第一终端, 本发明实施例的所述终端 1 包括接收模块 10、 连接 确认模块 20和数据传输模块 30, 还包括: 功能启用模块 40和搜索关闭模块 50; 其中, 接收模块 10、 连接确认模块 20和数据传输模块 30的结构可以参 见图 3所示实施例的相关描述, 在此不进行赘述。  In the embodiment of the present invention, the first terminal does not need to perform communication negotiation with the second terminal by the user in response to the connection request of the second terminal according to the connection request sent by the second terminal, and if the negotiation succeeds, the first terminal The second terminal automatically returns a connection confirmation message to establish a point-to-point communication connection relationship with the second terminal, and performs data transmission, thereby improving data transmission efficiency and improving terminal intelligence. FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal in this embodiment may be a first terminal, and the terminal 1 of the embodiment of the present invention includes a receiving module 10, a connection confirmation module 20, and a data transmission module 30, and further includes: a function enabling module 40 and a search closing module 50; For the structure of the receiving module 10, the connection confirmation module 20, and the data transmission module 30, refer to the related description of the embodiment shown in FIG. 3, and details are not described herein.
功能启用模块 40 , 用于开启 Wi-Fi Direct功能, 启用所述 Wi-Fi Direct功 能中的搜索功能, 搜索预设范围内的终端, 并记录所述终端的标识; 还用于当 断开与所述第二终端的通信连接时,启用所述 Wi-Fi Direct功能中的搜索功能, 搜索预设范围内的终端, 并记录所述终端的标识;  a function enabling module 40, configured to enable a Wi-Fi Direct function, enable a search function in the Wi-Fi Direct function, search for a terminal within a preset range, and record an identifier of the terminal; When the communication connection of the second terminal is enabled, the search function in the Wi-Fi Direct function is enabled, the terminal in the preset range is searched, and the identifier of the terminal is recorded;
具体实现中, 当所述终端 1上电时,所述功能启用模块 40自动打开 Wi-Fi In a specific implementation, when the terminal 1 is powered on, the function enabling module 40 automatically turns on Wi-Fi.
Direct功能, 并自动或者根据用户手动设置启动所述 Wi-Fi Direct功能中的搜 索功能, 搜索预设范围内的其他终端, 并记录所述搜索到的所有终端的标识, 其中, 所述预设范围可以为终端 1的 Wi-Fi Direct信号覆盖的范围, 也可以为 用户自行设定的范围, 所述用户设定的范围小于或等于所述终端 1 的 Wi-Fi Direct信号覆盖的范围; Directly, and automatically or according to a user manually setting a search function in the Wi-Fi Direct function, searching for other terminals in the preset range, and recording the identifiers of all the searched terminals, wherein the preset The range may be a range covered by the Wi-Fi Direct signal of the terminal 1 or a range set by the user, and the range set by the user is less than or equal to the coverage range of the Wi-Fi Direct signal of the terminal 1;
当所述终端 1断开与所述第二终端的通信连接时, 所述功能启用模块 40 再次自动或者根据用户手动设置启动所述 Wi-Fi Direct功能中的搜索功能, 搜 索预设范围内的其他终端, 并记录所述搜索到的所有终端的标识。  When the terminal 1 disconnects the communication connection with the second terminal, the function enabling module 40 starts the search function in the Wi-Fi Direct function automatically or according to the user's manual setting, and searches for the preset range. Other terminals, and record the identifiers of all the terminals that are searched.
搜索关闭模块 50, 用于当与所述第二终端建立所述点对点通信连接时, 关闭 Wi-Fi Direct功能中的搜索功能; Searching off module 50, when establishing the point-to-point communication connection with the second terminal, Turn off the search function in the Wi-Fi Direct function;
具体实现中, 当所述终端 1与所述第二终端建立了点对点的通信连接时, 所述搜索关闭模块 50关闭所述 Wi-Fi Direct功能中的搜索功能。 请一并参见图 5, 为本发明实施例提供连接确认模块的结构示意图。 图 5 所示的连接确认模块可以为图 3或图 4所示实施例中的连接确认模块 20, 所 述连接确认模块 20包括:  In a specific implementation, when the terminal 1 establishes a point-to-point communication connection with the second terminal, the search closing module 50 turns off the search function in the Wi-Fi Direct function. Referring to FIG. 5, a schematic structural diagram of a connection confirmation module according to an embodiment of the present invention is provided. The connection confirmation module shown in FIG. 5 may be the connection confirmation module 20 in the embodiment shown in FIG. 3 or FIG. 4, and the connection confirmation module 20 includes:
标识判断单元 21 , 用于判断所述第一终端记录终端的标识中是否存在所 述连接请求中携带的第二终端的标识;  The identifier determining unit 21 is configured to determine whether the identifier of the second terminal carried in the connection request exists in the identifier of the first terminal recording terminal;
具体实现中,所述标识判断单元 21根据所述接收模块 10接收到的所述第 二终端的连接请求时, 与所述第二终端进行通信协商, 所述标识判断单元 21 判断所述终端 1 记录的所有终端的标识中是否存在所述连接请求中携带的第 二终端的标识。  In a specific implementation, the identifier determining unit 21 performs communication negotiation with the second terminal according to the connection request of the second terminal received by the receiving module 10, and the identifier determining unit 21 determines the terminal 1 Whether the identifier of the second terminal carried in the connection request exists in the identifier of all the terminals recorded.
协议判断单元 22, 用于如果所述第一终端记录的终端的标识中存在所述 连接请求中携带的第二终端的标识, 第一终端根据所述连接请求, 判断所述第 二终端支持的通信协议与所述第一终端支持的通信协议是否相同;  The protocol determining unit 22 is configured to: if the identifier of the second terminal carried in the connection request exists in the identifier of the terminal recorded by the first terminal, the first terminal determines, according to the connection request, that the second terminal supports Whether the communication protocol is the same as the communication protocol supported by the first terminal;
具体实现中,如果所述终端 1记录的所有终端的标识中存在所述连接请求 中携带的第二终端的标识, 则所述协议判断单元 22根据所述连接请求, 判断 所述第二终端支持的通信协议与所述终端 1支持的通信协议是否相同。  In a specific implementation, if the identifier of the second terminal carried in the connection request exists in the identifier of all the terminals recorded by the terminal 1, the protocol determining unit 22 determines, according to the connection request, that the second terminal supports Whether the communication protocol is the same as the communication protocol supported by the terminal 1.
连接建立单元 23, 用于若所述第二终端支持的通信协议与所述第一终端 支持的通信协议相同, 则向所述第二终端返回连接确认消息, 以与所述第二终 端建立点对点通信连接;  a connection establishing unit 23, configured to: if the communication protocol supported by the second terminal is the same as the communication protocol supported by the first terminal, return a connection confirmation message to the second terminal, to establish a point-to-point with the second terminal Communication connection
具体实现中, 如果所述标识判断单元 21确定自身记录的所有终端的标识 中存在所述连接请求中携带的第二终端的标识, 并且所述协议判断单元 22确 定所述第二终端支持的通信协议与所述终端 1支持的通信协议相同,则可以说 明所述终端 1与所述第二终端协商通过, 所述连接建立单元 23 自动返回连接 确认消息至所述第二终端, 并与所述第二终端建立点对点的通信连接。  In a specific implementation, if the identifier determining unit 21 determines that the identifier of the second terminal carried in the connection request exists in the identifier of all the terminals recorded by the terminal, and the protocol determining unit 22 determines the communication supported by the second terminal. The protocol is the same as the communication protocol supported by the terminal 1, and the terminal 1 can negotiate that the terminal 1 negotiates with the second terminal, and the connection establishing unit 23 automatically returns a connection confirmation message to the second terminal, and the The second terminal establishes a point-to-point communication connection.
在本发明实施例中, 当第一终端上电时, 会启动 Wi-Fi Direct功能并启动 Wi-Fi Direct功能中的搜索功能, 预先搜索预设范围内的终端, 且记录终端的 标识, 当接收到第二终端发送的连接请求, 无需通过用户响应所述第二终端的 连接请求, 自动与所述第二终端进行通信协商并向所述第二终端返回连接确认 消息, 以此节省了连接过程中耗费的时间, 当与所述第二终端建立点对点的通 信连接关系进行数据传输时, 会自动关闭 Wi-Fi Direct功能中的搜索功能, 避 免了其他终端的连接干扰, 提高了数据传输的效率, 提升了终端的智能性。 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。 In the embodiment of the present invention, when the first terminal is powered on, the Wi-Fi Direct function is started and the search function in the Wi-Fi Direct function is started, and the terminal in the preset range is searched in advance, and the terminal is recorded. The identifier, when receiving the connection request sent by the second terminal, does not need to communicate with the second terminal by the user in response to the connection request of the second terminal, and returns a connection confirmation message to the second terminal, The time spent in the connection process is saved. When the data connection is established by establishing a point-to-point communication connection relationship with the second terminal, the search function in the Wi-Fi Direct function is automatically turned off, thereby avoiding connection interference of other terminals, and improving The efficiency of data transmission improves the intelligence of the terminal. A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, the program When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之 权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。  The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and the equivalent changes made by the claims of the present invention are still within the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种数据传输的方法, 其特征在于, 包括: 1. A data transmission method, characterized by including:
第一终端接收预设范围内的第二终端发送的连接请求; The first terminal receives the connection request sent by the second terminal within the preset range;
第一终端根据所述连接请求, 向所述第二终端返回连接确认消息, 以与所 述第二终端建立点对点通信连接; The first terminal returns a connection confirmation message to the second terminal according to the connection request to establish a point-to-point communication connection with the second terminal;
第一终端基于所述点对点通信连接, 接收所述第二终端传输的数据。 The first terminal receives the data transmitted by the second terminal based on the point-to-point communication connection.
2、 根据权利要求 1所述的方法, 其特征在于, 第一终端接收预设范围内 的第二终端发送的连接请求之前, 还包括: 2. The method according to claim 1, characterized in that before the first terminal receives the connection request sent by the second terminal within the preset range, it further includes:
第一终端开启 Wi-Fi Direct功能, 启用所述 Wi-Fi Direct功能中的搜索功 能, 搜索预设范围内的终端, 并记录所述终端的标识。 The first terminal turns on the Wi-Fi Direct function, enables the search function in the Wi-Fi Direct function, searches for terminals within a preset range, and records the identification of the terminal.
3、 根据权利要求 2所述的方法, 其特征在于, 所述第一终端根据所述连 接请求, 向所述第二终端返回连接确认消息, 以与所述第二终端建立点对点通 信连接, 包括: 3. The method according to claim 2, wherein the first terminal returns a connection confirmation message to the second terminal according to the connection request to establish a point-to-point communication connection with the second terminal, including :
第一终端判断所述第一终端记录的终端的标识中是否存在所述连接请求 中携带的第二终端的标识; The first terminal determines whether the identification of the second terminal carried in the connection request exists in the identification of the terminal recorded by the first terminal;
如果存在, 第一终端根据所述连接请求, 判断所述第二终端支持的通信协 议与所述第一终端支持的通信协议是否相同; If there is, the first terminal determines, based on the connection request, whether the communication protocol supported by the second terminal is the same as the communication protocol supported by the first terminal;
若相同, 第一终端则向所述第二终端返回连接确认消息, 以与所述第二终 端建立点对点通信连接; If they are the same, the first terminal returns a connection confirmation message to the second terminal to establish a point-to-point communication connection with the second terminal;
其中,所述连接请求中携带第二终端的标识及第二终端所支持的通信协议 的类型。 Wherein, the connection request carries the identifier of the second terminal and the type of communication protocol supported by the second terminal.
4、 根据权利要求 2所述的方法, 其特征在于, 所述第一终端基于所述点 对点通信连接, 接收所述第二终端传输的数据之后, 还包括: 4. The method according to claim 2, characterized in that, after the first terminal receives the data transmitted by the second terminal based on the point-to-point communication connection, it further includes:
第一终端关闭 Wi-Fi Direct功能中的搜索功能; The first terminal turns off the search function in the Wi-Fi Direct function;
当所述第一终端断开与所述第二终端的通信连接时, 启用所述 Wi-Fi Direct功能中的搜索功能, 搜索预设范围内的终端, 并记录所述终端的标识。 When the first terminal disconnects the communication connection with the second terminal, enabling the Wi-Fi The search function in the Direct function searches for terminals within a preset range and records the identification of the terminal.
5、 根据权利要求 2或 4所述的方法, 其特征在于, 所述启用所述 Wi-Fi Direct功能中的搜索功能, 包括: 5. The method according to claim 2 or 4, characterized in that said enabling the search function in the Wi-Fi Direct function includes:
第一终端自动启用所述 Wi-Fi Direct功能中的搜索功能; 或者, 第一终端 根据用户手动设置, 启用所述搜索功能。 The first terminal automatically enables the search function in the Wi-Fi Direct function; or, the first terminal enables the search function according to manual settings by the user.
6、 一种终端, 其特征在于, 包括: 6. A terminal, characterized by including:
接收模块, 用于接收预设范围内的第二终端发送的连接请求; A receiving module, configured to receive a connection request sent by a second terminal within a preset range;
连接确认模块, 用于根据所述连接请求, 向所述第二终端返回连接确认消 息, 以与所述第二终端建立点对点通信连接; A connection confirmation module, configured to return a connection confirmation message to the second terminal according to the connection request, so as to establish a point-to-point communication connection with the second terminal;
数据传输模块, 用于基于所述点对点通信连接,接收所述第二终端传输的 数据。 A data transmission module, configured to receive data transmitted by the second terminal based on the point-to-point communication connection.
7、 根据权利要求 6所述的终端, 其特征在于, 包括: 7. The terminal according to claim 6, characterized in that it includes:
功能启用模块, 用于开启 Wi-Fi Direct功能, 启用所述 Wi-Fi Direct功能 中的搜索功能, 搜索预设范围内的终端, 并记录所述终端的标识。 The function enabling module is used to enable the Wi-Fi Direct function, enable the search function in the Wi-Fi Direct function, search for terminals within a preset range, and record the identification of the terminal.
8、 根据权利要求 7所述的终端, 其特征在于, 所述连接确认模块包括: 标识判断单元,用于判断所述第一终端记录终端的标识中是否存在所述连 接请求中携带的第二终端的标识; 8. The terminal according to claim 7, characterized in that, the connection confirmation module includes: an identification judgment unit, used to judge whether the first terminal records the terminal identification whether there is the second identifier carried in the connection request. The identification of the terminal;
协议判断单元,用于如果所述第一终端记录的终端的标识中存在所述连接 请求中携带的第二终端的标识, 第一终端根据所述连接请求, 判断所述第二终 端支持的通信协议与所述第一终端支持的通信协议是否相同; A protocol judgment unit configured to determine, according to the connection request, the communication supported by the second terminal if the identity of the second terminal carried in the connection request exists in the identity of the terminal recorded by the first terminal. Whether the protocol is the same as the communication protocol supported by the first terminal;
连接建立单元,用于若所述第二终端支持的通信协议与所述第一终端支持 的通信协议相同, 则向所述第二终端返回连接确认消息, 以与所述第二终端建 立点对点通信连接; A connection establishment unit configured to, if the communication protocol supported by the second terminal is the same as the communication protocol supported by the first terminal, return a connection confirmation message to the second terminal to establish point-to-point communication with the second terminal connect;
其中,所述连接请求中携带第二终端的标识及第二终端所支持的通信协议 的类型。 The connection request carries the identifier of the second terminal and the type of communication protocol supported by the second terminal.
9、 根据权利要求 8所述的终端, 其特征在于, 还包括: 9. The terminal according to claim 8, further comprising:
搜索关闭模块, 用于当与所述第二终端建立所述点对点通信连接时, 关闭 Wi-Fi Direct功能中的搜索功能; A search closing module, configured to close the search function in the Wi-Fi Direct function when the point-to-point communication connection is established with the second terminal;
所述功能启用模块,还用于当断开与所述第二终端的通信连接时, 启用所 述 Wi-Fi Direct功能中的搜索功能, 搜索预设范围内的终端, 并记录所述终端 的标识。 The function enabling module is also configured to enable the search function in the Wi-Fi Direct function when the communication connection with the second terminal is disconnected, search for terminals within a preset range, and record the terminal's logo.
10、 根据权利要求 7或 9所述的接收端装置, 其特征在于, 所述功能启用 模块具体用于: 10. The receiving end device according to claim 7 or 9, characterized in that the function enabling module is specifically used for:
自动启用所述 Wi-Fi Direct功能中的搜索功能;或者,根据用户手动设置, 启用所述搜索功能。 The search function in the Wi-Fi Direct function is automatically enabled; or, the search function is enabled according to the user's manual settings.
PCT/CN2013/071818 2013-01-15 2013-02-25 Data transmission method and terminals WO2014110855A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2013100137531A CN103108406A (en) 2013-01-15 2013-01-15 Data transmission method and terminals
CN201310013753.1 2013-01-15

Publications (1)

Publication Number Publication Date
WO2014110855A1 true WO2014110855A1 (en) 2014-07-24

Family

ID=48315897

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/071818 WO2014110855A1 (en) 2013-01-15 2013-02-25 Data transmission method and terminals

Country Status (2)

Country Link
CN (1) CN103108406A (en)
WO (1) WO2014110855A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108406A (en) * 2013-01-15 2013-05-15 深圳市同洲电子股份有限公司 Data transmission method and terminals
CN103368619A (en) * 2013-07-23 2013-10-23 京东方科技集团股份有限公司 Mobile terminal and method and device for communication between mobile terminals
CN103458057B (en) * 2013-09-30 2017-02-22 小米科技有限责任公司 Resource acquiring method, device and server
CN104053249A (en) * 2014-06-18 2014-09-17 广州三星通信技术研究有限公司 Device, method and system for transmitting data between electronic terminals
CN106157583B (en) * 2015-04-24 2019-08-06 小米科技有限责任公司 It is a kind of to establish the method and device being wirelessly connected
CN106330985B (en) * 2015-06-15 2019-11-05 展讯通信(上海)有限公司 Point-to-point equipment and its searching and matching method
CN105791920A (en) * 2016-03-10 2016-07-20 腾讯科技(深圳)有限公司 Video play control method and apparatus
CN105957331A (en) * 2016-04-26 2016-09-21 乐视控股(北京)有限公司 Selfie stick connecting method and device
CN107222854A (en) * 2017-06-19 2017-09-29 依偎科技(南昌)有限公司 A kind of method and device for obtaining software
CN108337741B (en) * 2018-02-06 2020-11-03 百度在线网络技术(北京)有限公司 Method, apparatus and computer-readable storage medium for establishing communication connection
CN110769397B (en) * 2018-07-25 2023-03-07 深圳市优必选科技有限公司 Method and device for connecting robot with network and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110073239A (en) * 2009-12-22 2011-06-29 삼성전자주식회사 Method and apparatus for service discovery in wifi direct network
CN102420876A (en) * 2012-01-06 2012-04-18 重庆国虹科技发展有限公司 Active peer-to-peer file transmission method for android-based intelligent mobile terminal
CN102572584A (en) * 2011-12-12 2012-07-11 青岛海信电器股份有限公司 Intelligent television system and intelligent television method capable of expanding cellphone
CN103108406A (en) * 2013-01-15 2013-05-15 深圳市同洲电子股份有限公司 Data transmission method and terminals

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8559340B2 (en) * 2009-12-22 2013-10-15 Samsung Electronics Co., Ltd. Method and apparatus for service discovery in Wi-Fi direct network
CN102497221B (en) * 2011-12-13 2014-12-31 华为终端有限公司 Method for data transmission between terminals, and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110073239A (en) * 2009-12-22 2011-06-29 삼성전자주식회사 Method and apparatus for service discovery in wifi direct network
CN102572584A (en) * 2011-12-12 2012-07-11 青岛海信电器股份有限公司 Intelligent television system and intelligent television method capable of expanding cellphone
CN102420876A (en) * 2012-01-06 2012-04-18 重庆国虹科技发展有限公司 Active peer-to-peer file transmission method for android-based intelligent mobile terminal
CN103108406A (en) * 2013-01-15 2013-05-15 深圳市同洲电子股份有限公司 Data transmission method and terminals

Also Published As

Publication number Publication date
CN103108406A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
WO2014110855A1 (en) Data transmission method and terminals
JP6352365B2 (en) Establish and control audio and voice back channels for WI-FI display connections
US10932313B2 (en) Wireless connection switching method and terminal
EP2696643B1 (en) Apparatus and method of connecting service, according to user intention
US9036517B2 (en) Methods and apparatus for establishing a tunneled direct link setup (TDLS) session between devices in a wireless network
US9872129B2 (en) Communication apparatus, method for controlling the same, and storage medium
US20130311694A1 (en) Devices and methods for facilitating direct pairing in a wireless docking system
US8825873B2 (en) Using a service discovery request to find available devices
CN109451474A (en) Controlled terminal equipment and its bluetooth return even method
US10264038B2 (en) Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system
JP5891559B2 (en) Instant messaging method, terminal, server and system
WO2017045276A1 (en) Terminal interconnecting method, device, and storage medium
WO2015070580A1 (en) Method and device for constructing wireless local area network based on near field communication
WO2014059813A1 (en) Data transmission method and terminal device
WO2018120390A1 (en) Method for establishing communication, and terminal
KR102037256B1 (en) Apparatus and method for connecting service reflected in user intent
CN111050415B (en) Wireless data transmission method convenient to operate
WO2020151003A1 (en) Method and apparatus for establishing bluetooth data channel
CN111465123B (en) Network connection method, terminal and storage medium
US20160285949A1 (en) Wireless login-based remote control method and device
WO2015139401A1 (en) Establishment method and system for wireless network, and wireless routing device
WO2021239032A1 (en) Bluetooth protocol connection method and apparatus, storage medium, and related device
WO2018157646A1 (en) File transmission method, device and system
CN114363876A (en) Connection establishing method, device, equipment, storage medium and program product
US20240048990A1 (en) Bluetooth connection method and system, intelligent terminal, and computer storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1