CN104581993A - Method for establishing wireless connection, method for data transmission, and terminal - Google Patents
Method for establishing wireless connection, method for data transmission, and terminal Download PDFInfo
- Publication number
- CN104581993A CN104581993A CN201410776519.9A CN201410776519A CN104581993A CN 104581993 A CN104581993 A CN 104581993A CN 201410776519 A CN201410776519 A CN 201410776519A CN 104581993 A CN104581993 A CN 104581993A
- Authority
- CN
- China
- Prior art keywords
- wireless connection
- local wireless
- source terminal
- terminal
- configuration message
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/12—Setup of transport tunnels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信领域,具体涉及无线连接建立的方法、数据传输的方法以及终端。The present invention relates to the communication field, in particular to a method for establishing a wireless connection, a method for data transmission and a terminal.
背景技术Background technique
手机之间可以通过蓝牙、无线保真(Wireless Fidelity,Wifi)等技术建立点对点的本地无线连接,然后再通过该点对点的连接进行数据传输。A point-to-point local wireless connection can be established between mobile phones through technologies such as Bluetooth and Wireless Fidelity (Wifi), and then data transmission is performed through the point-to-point connection.
通常建立蓝牙连接的流程为:Usually the process of establishing a Bluetooth connection is:
首先将两个手机用蓝牙进行配对,打开手机“设置”,弹出设置对话框,然后选择“无线和网络”选项,单击打开,在“无线和网络设置”中,选中“蓝牙设置”,进入“蓝牙设置”项,并在“蓝牙”项后面打勾,在“蓝牙设置”选项中,“设备名称”栏点击,可以输入本手机被检查时候出现在对方手机上的名称。将另一部手机用同样的方法打开蓝牙,然后点击“扫描查找设备”,系统将搜到的所有设备会列在下方,弹出“蓝牙设备选择器”,然后在下方“蓝牙设备”列表中选中对方的蓝牙名称,即可建立通信连接。First, pair the two mobile phones with Bluetooth, open the “Settings” of the mobile phone, and the setting dialog box will pop up, then select the “Wireless and Network” option, click to open, in the “Wireless and Network Settings”, select “Bluetooth Settings”, enter "Bluetooth Settings" item, and tick the "Bluetooth" item, in the "Bluetooth Settings" option, click on the "Device Name" column, you can enter the name that appears on the other party's mobile phone when the mobile phone is checked. Use the same method to turn on the Bluetooth on another mobile phone, and then click "Scan to find devices", all the devices found by the system will be listed below, and the "Bluetooth Device Selector" will pop up, and then select it in the "Bluetooth Devices" list below Bluetooth name of the other party to establish a communication connection.
通常建立Wifi连接的流程为:Usually the process of establishing a Wifi connection is:
1.确认安卓手机支持Wi-Fi Direct功能。1. Confirm that the Android phone supports the Wi-Fi Direct function.
2.在支持Wi-Fi Direct的手机里设置->无线与网络的“更多”->勾选Wi-Fi Direct。2. In the mobile phone that supports Wi-Fi Direct, set up -> "More" of wireless and network -> check Wi-Fi Direct.
3.Wi-Fi Direct采用了WPS(Wi-Fi Protected Setup)的机制,选择Wi-FiDirect的安全连接模式,有三种:3. Wi-Fi Direct adopts the WPS (Wi-Fi Protected Setup) mechanism, and there are three types of safe connection modes for Wi-Fi Direct:
(1)PIN模式,PIN(Personal Information Number),即个人信息数字,直接输入一组数字(4或8位数)。这种方式连接速度快,只要输入完成即可连接。(1) PIN mode, PIN (Personal Information Number), that is, personal information numbers, directly enter a set of numbers (4 or 8 digits). The connection speed is fast in this way, as long as the input is completed, the connection can be made.
(2)PBC模式,PBC(Push Button Configuration),即按按钮配置(软件模拟的按钮或硬按钮)。分别按下两个设备的按钮,即可完成连接。这种连接方式的连接速度较慢。(2) PBC mode, PBC (Push Button Configuration), that is, push button configuration (software simulated button or hard button). Press the buttons on both devices separately to complete the connection. This connection method has a slower connection speed.
(3)WPA2加密模式,此模式和第一种模式一样,是输入密码,输入完成即可开始连接,设置一种加密方式即可。(3) WPA2 encryption mode, this mode is the same as the first mode, it is to enter the password, the connection can be started after the input is completed, and an encryption method can be set.
4.然后另外一台手机就按照使用Wi-Fi的方式去找到开启了Wi-FiDirect的手机,在设置->无线与网络->开启Wi-Fi,然后选择Wi-FiDirect的手机,输入安全密码,两者即可开始连接。4. Then the other mobile phone uses the Wi-Fi method to find the mobile phone with Wi-Fi Direct turned on, go to Settings->Wireless and Network->Turn on Wi-Fi, then select the mobile phone with Wi-Fi Direct, and enter the security password , the two can start connecting.
由此可见,目前建立本地无线连接的过程都是基于终端搜索建立的,建立蓝牙连接和wifi连接的过程都很复杂,很多人都不会建立蓝牙或wifi连接,导致这种基于搜索的无线连接建立的效率很低。It can be seen that the current process of establishing a local wireless connection is based on terminal search. The process of establishing a Bluetooth connection and a WiFi connection is very complicated. Many people do not know how to establish a Bluetooth or WiFi connection, resulting in this search-based wireless connection. The efficiency of the establishment is very low.
发明内容Contents of the invention
本发明实施例一方面提供一种无线连接建立的方法,可以通过互联网通道或电信网通道来建立本地无线连接,从而提高了无线连接建立的效率,降低了无线连接建立的复杂度。本发明实施例还提供了相应的终端。Embodiments of the present invention provide a method for establishing a wireless connection on the one hand, which can establish a local wireless connection through an Internet channel or a telecommunication network channel, thereby improving the efficiency of establishing a wireless connection and reducing the complexity of establishing a wireless connection. The embodiment of the present invention also provides a corresponding terminal.
本发明实施例另一方面提供一种数据传输的方法,可以通过互联网通道或电信网通道来建立本地无线连接,并通过该无线连接传输数据,既提高了无线连接建立的效率,又避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。本发明实施例还提供了相应的终端。On the other hand, the embodiments of the present invention provide a data transmission method, which can establish a local wireless connection through an Internet channel or a telecommunication network channel, and transmit data through the wireless connection, which not only improves the efficiency of wireless connection establishment, but also avoids data transmission. Transmission through the Internet (such as: social applications) improves the security of data transmission. The embodiment of the present invention also provides a corresponding terminal.
本发明第一方面提供一种无线连接建立的方法,用于源终端,所述方法包括:The first aspect of the present invention provides a method for establishing a wireless connection, which is used for a source terminal, and the method includes:
通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;Send a local wireless connection configuration message to the destination terminal through an Internet channel or a telecommunication network channel, the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator is used to indicate the purpose The terminal parses the local wireless connection configuration message, and initiates a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information;
接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;receiving a local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message;
根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接。Establish a local wireless connection with the destination terminal according to the local wireless connection establishment request.
结合第一方面,在第一种可能的实现方式中,所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息,所述密钥信息用于所述目的终端根据所述密钥信息为所述源终端和所述目的终端进行配对,在配对成功后,向所述源终端发送所述本地无线连接建立请求。With reference to the first aspect, in a first possible implementation manner, the local wireless connection configuration message further carries key information configured by the source terminal for establishing a local wireless connection, and the key information is used for the The destination terminal performs pairing for the source terminal and the destination terminal according to the key information, and sends the local wireless connection establishment request to the source terminal after the pairing is successful.
结合第一方面或第一方面第一种可能的实现方式,在第二种可能的实现方式中,所述本地无线连接配置消息还携带所述源终端的位置信息,所述源终端的位置信息用于所述目的终端确定与所述源终端的距离,当所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the local wireless connection configuration message further carries location information of the source terminal, and the location information of the source terminal It is used for the destination terminal to determine the distance from the source terminal, and when the distance is within the range of establishing a local wireless connection, send the local wireless connection establishment request to the source terminal.
结合第一方面、第一方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述本地无线连接类型信息包括至少两个无线连接类型标识时,所述接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求,包括:With reference to the first aspect, the first or the second possible implementation manner of the first aspect, in a third possible implementation manner, when the local wireless connection type information includes at least two wireless connection type identifiers, the receiving The local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message includes:
接收所述目的终端根据所述本地无线连接配置消息发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;receiving at least two types of local wireless connection establishment requests sent by the destination terminal according to the local wireless connection configuration message, where the at least two types of local wireless connection establishment requests correspond to the at least two wireless connection type identifiers respectively ;
所述根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接,包括:The establishing a local wireless connection with the destination terminal according to the local wireless connection establishment request includes:
根据所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的本地无线连接。Establish at least two types of local wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests.
本发明第二方面提供一种无线连接建立的方法,用于目的终端,所述方法包括:The second aspect of the present invention provides a method for establishing a wireless connection, which is used for a destination terminal, and the method includes:
通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;receiving a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information;
根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;Analyzing the local wireless connection configuration message according to the local wireless connection indicator to obtain the local wireless connection type information;
根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;Sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information;
与所述源终端建立本地无线连接。Establish a local wireless connection with the source terminal.
结合第二方面,在第一种可能的实现方式中,所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息;With reference to the second aspect, in a first possible implementation manner, the local wireless connection configuration message further carries key information configured by the source terminal for establishing the local wireless connection;
所述获得所述本地无线连接类型信息时,所述方法还包括:When obtaining the local wireless connection type information, the method further includes:
获得所述密钥信息;Obtain the key information;
所述根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求之前,所述方法还包括:Before sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information, the method further includes:
根据所述密钥信息为所述源终端和所述目的终端进行配对;performing pairing for the source terminal and the destination terminal according to the key information;
所述向所述源终端发送本地无线连接建立请求,包括:The sending a local wireless connection establishment request to the source terminal includes:
在配对成功后,向所述源终端发送所述本地无线连接建立请求。After the pairing is successful, send the local wireless connection establishment request to the source terminal.
结合第二方面或第二方面第一种可能的实现方式,在第二种可能的实现方式中,所述本地无线连接配置消息还携带所述源终端的位置信息,所述获得所述无线连接类型信息时,所述方法还包括:With reference to the second aspect or the first possible implementation of the second aspect, in a second possible implementation, the local wireless connection configuration message also carries the location information of the source terminal, and the obtaining the wireless connection When type information is provided, the method further includes:
获得所述源终端的位置信息;Obtaining location information of the source terminal;
所述根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求之前,所述方法还包括:Before sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information, the method further includes:
根据所述源终端的位置信息,确定与所述源终端的距离;determining a distance from the source terminal according to the location information of the source terminal;
所述向所述源终端发送所述本地无线连接建立请求,包括:The sending the local wireless connection establishment request to the source terminal includes:
当所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。When the distance is within the range of establishing a local wireless connection, sending the local wireless connection establishment request to the source terminal.
结合第二方面、第二方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述本地无线连接类型信息包括至少两个无线连接类型标识时,With reference to the second aspect, the first or the second possible implementation manner of the second aspect, in a third possible implementation manner, when the local wireless connection type information includes at least two wireless connection type identifiers,
所述根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求,包括:The sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information includes:
根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;Send at least two types of local wireless connection establishment requests to the source terminal according to the at least two wireless connection type identifiers, the at least two types of local wireless connection establishment requests are respectively related to the at least two wireless connection types identification correspondence;
所述与所述源终端建立本地无线连接,包括:The establishment of a local wireless connection with the source terminal includes:
与所述目的终端建立至少两种类型的本地无线连接。At least two types of local wireless connections are established with the destination terminal.
本发明第三方面提供一种数据传输的方法,用于源终端,所述方法包括:A third aspect of the present invention provides a data transmission method for a source terminal, the method comprising:
通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;Send a local wireless connection configuration message to the destination terminal through an Internet channel or a telecommunication network channel, the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator is used to indicate the purpose The terminal parses the local wireless connection configuration message, and initiates a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information;
接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;receiving a local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message;
根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接;Establishing a local wireless connection with the destination terminal according to the local wireless connection establishment request;
通过所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据。Sending data to the destination terminal through the local wireless connection established between the source terminal and the destination terminal.
结合第三方面,在第一种可能的实现方式中,所述本地无线连接类型信息包括至少两个无线连接类型标识时,所述接收所述目的终端发送的本地无线连接建立请求,包括:With reference to the third aspect, in a first possible implementation manner, when the local wireless connection type information includes at least two wireless connection type identifiers, the receiving the local wireless connection establishment request sent by the destination terminal includes:
接收所述目的终端发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;receiving at least two types of local wireless connection establishment requests sent by the destination terminal, the at least two types of local wireless connection establishment requests respectively corresponding to the at least two wireless connection type identifiers;
所述根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接,包括:The establishing a local wireless connection with the destination terminal according to the local wireless connection establishment request includes:
根据所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的本地无线连接;Establishing at least two types of local wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests;
所述通过所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据,包括:The sending data to the destination terminal through the local wireless connection established between the source terminal and the destination terminal includes:
通过所述至少两种类型的本地无线连接中的一种,向所述目的终端发送数据;sending data to the destination terminal via one of the at least two types of local wireless connections;
当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续发送所述数据。When the data transmission is interrupted, the data is continued to be sent through the other one of the at least two types of local wireless connections.
本发明第四方面提供一种数据传输的方法,用于目的终端,所述方法包括:A fourth aspect of the present invention provides a data transmission method for a destination terminal, the method comprising:
通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;receiving a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information;
根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;Analyzing the local wireless connection configuration message according to the local wireless connection indicator to obtain the local wireless connection type information;
根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;Sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information;
与所述源终端建立本地无线连接;establishing a local wireless connection with the source terminal;
通过所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据。Data is received from the source terminal through the local wireless connection established between the source terminal and the destination terminal.
结合第四方面,在第一种可能的实现方式中,所述本地无线连接类型信息包括至少两个无线连接类型标识时,With reference to the fourth aspect, in a first possible implementation manner, when the local wireless connection type information includes at least two wireless connection type identifiers,
所述根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求,包括:The sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information includes:
根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;Send at least two types of local wireless connection establishment requests to the source terminal according to the at least two wireless connection type identifiers, the at least two types of local wireless connection establishment requests are respectively related to the at least two wireless connection types identification correspondence;
所述与所述源终端建立本地无线连接,包括:The establishment of a local wireless connection with the source terminal includes:
与所述目的终端建立至少两种类型的本地无线连接;establishing at least two types of local wireless connections with the destination terminal;
所述通过所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据,包括:The receiving data from the source terminal through the local wireless connection established between the source terminal and the destination terminal includes:
通过所述至少两种类型的本地无线连接中的一种,从所述源终端接收数据;receiving data from the source terminal over one of the at least two types of local wireless connections;
当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续接收所述数据。When the data transmission is interrupted, the data continues to be received through the other one of the at least two types of local wireless connections.
本发明第五方面提供一种终端,所述终端为源终端时,所述终端包括:A fifth aspect of the present invention provides a terminal. When the terminal is a source terminal, the terminal includes:
发送单元,用于通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;A sending unit, configured to send a local wireless connection configuration message to a destination terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator uses instructing the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information;
接收单元,用于在所述发送单元发送所述本地无线连接配置消息之后,接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;a receiving unit, configured to receive a local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message after the sending unit sends the local wireless connection configuration message;
连接建立单元,用于根据所述接收单元接收的本地无线连接建立请求,与所述目的终端建立本地无线连接。A connection establishment unit, configured to establish a local wireless connection with the destination terminal according to the local wireless connection establishment request received by the receiving unit.
结合第五方面,在第一种可能的实现方式中,所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息,所述密钥信息用于所述目的终端根据所述密钥信息为所述源终端和所述目的终端进行配对,在配对成功后,向所述源终端发送所述本地无线连接建立请求。With reference to the fifth aspect, in a first possible implementation manner, the local wireless connection configuration message further carries key information configured by the source terminal for establishing a local wireless connection, and the key information is used for the The destination terminal performs pairing for the source terminal and the destination terminal according to the key information, and sends the local wireless connection establishment request to the source terminal after the pairing is successful.
结合第五方面或第五方面第一种可能的实现方式,在第二种可能的实现方式中,所述本地无线连接配置消息还携带所述源终端的位置信息,所述源终端的位置信息用于所述目的终端确定与所述源终端的距离,当所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the local wireless connection configuration message further carries location information of the source terminal, and the location information of the source terminal It is used for the destination terminal to determine the distance from the source terminal, and when the distance is within the range of establishing a local wireless connection, send the local wireless connection establishment request to the source terminal.
结合第五方面、第五方面第一种或第二种可能的实现方式,在三种可能的实现方式中,In combination with the fifth aspect, the first or second possible implementation of the fifth aspect, in the three possible implementations,
所述接收单元,具体用于在本地无线连接类型信息包括至少两个无线连接类型标识时,接收所述目的终端根据所述本地无线连接配置消息发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The receiving unit is specifically configured to receive at least two types of local wireless connection establishment requests sent by the destination terminal according to the local wireless connection configuration message when the local wireless connection type information includes at least two wireless connection type identifiers, The at least two types of local wireless connection establishment requests correspond to the at least two wireless connection type identifiers respectively;
所述连接建立单元,具体用于根据所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的本地无线连接。The connection establishing unit is specifically configured to establish at least two types of local wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests.
本发明第六方面提供一种终端,所述终端为目的终端时,所述终端包括:A sixth aspect of the present invention provides a terminal. When the terminal is a destination terminal, the terminal includes:
接收单元,用于通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;The receiving unit is configured to receive a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information;
解析单元,用于根据所述接收单元接收的所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;A parsing unit, configured to parse the local wireless connection configuration message according to the local wireless connection indicator received by the receiving unit, and obtain the local wireless connection type information;
发送单元,用于根据所述解析单元解析出的所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;a sending unit, configured to send a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information parsed by the parsing unit;
连接建立单元,用于在所述发送单元发送所述本地无线连接建立请求后,与所述源终端建立本地无线连接。A connection establishment unit, configured to establish a local wireless connection with the source terminal after the sending unit sends the local wireless connection establishment request.
结合第六方面,在第一种可能的实现方式中,所述终端还包括配对单元,With reference to the sixth aspect, in a first possible implementation manner, the terminal further includes a pairing unit,
所述解析单元,还用于在所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息时,获得所述密钥信息;The parsing unit is further configured to obtain the key information when the local wireless connection configuration message also carries the key information configured by the source terminal for establishing a local wireless connection;
所述配对单元,用于根据所述解析单元获得的所述密钥信息为所述源终端和所述目的终端进行配对;The pairing unit is configured to pair the source terminal with the destination terminal according to the key information obtained by the parsing unit;
所述发送单元,具体用于在所述配对单元配对成功后,向所述源终端发送所述本地无线连接建立请求。The sending unit is specifically configured to send the local wireless connection establishment request to the source terminal after the pairing unit is paired successfully.
结合第六方面或第六方面第一种可能的实现方式,在第二种可能的实现方式中,所述终端还包括确定单元,With reference to the sixth aspect or the first possible implementation manner of the sixth aspect, in a second possible implementation manner, the terminal further includes a determining unit,
所述解析单元,还用于在述本地无线连接配置消息还携带所述源终端的位置信息时,获得所述源终端的位置信息;The parsing unit is further configured to obtain the location information of the source terminal when the local wireless connection configuration message also carries the location information of the source terminal;
所述确定单元,用于根据所述解析单元获得的所述源终端的位置信息,确定与所述源终端的距离;The determining unit is configured to determine a distance from the source terminal according to the location information of the source terminal obtained by the parsing unit;
所述发送单元,具体用于当所述确定单元确定的所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。The sending unit is specifically configured to send the local wireless connection establishment request to the source terminal when the distance determined by the determining unit is within a range for establishing a local wireless connection.
结合第六方面、第六方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,In combination with the sixth aspect, the first or second possible implementation of the sixth aspect, in the third possible implementation,
所述发送单元,具体用于在本地无线连接类型信息包括至少两个无线连接类型标识时,根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The sending unit is specifically configured to send at least two types of local wireless connection establishment to the source terminal according to the at least two wireless connection type identifiers when the local wireless connection type information includes at least two wireless connection type identifiers request, the at least two types of local wireless connection establishment requests correspond to the at least two wireless connection type identifiers respectively;
所述连接建立单元,具体用于与所述目的终端建立至少两种类型的本地无线连接。The connection establishing unit is specifically configured to establish at least two types of local wireless connections with the destination terminal.
本发明第七方面提供一种终端,所述终端为源终端时,所述终端包括:A seventh aspect of the present invention provides a terminal. When the terminal is a source terminal, the terminal includes:
发送单元,用于通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;A sending unit, configured to send a local wireless connection configuration message to a destination terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator uses instructing the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information;
接收单元,用于在所述发送单元发送所述本地无线连接配置消息之后,接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;a receiving unit, configured to receive a local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message after the sending unit sends the local wireless connection configuration message;
连接建立单元,用于根据所述接收单元接收的本地无线连接建立请求,与所述目的终端建立本地无线连接;a connection establishing unit, configured to establish a local wireless connection with the destination terminal according to the local wireless connection establishment request received by the receiving unit;
所述发送单元,还用于通过所述连接建立单元建立的所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据。The sending unit is further configured to send data to the destination terminal through the local wireless connection established between the source terminal and the destination terminal established by the connection establishment unit.
结合第七方面,在第一种可能的实现方式中,In combination with the seventh aspect, in the first possible implementation manner,
所述接收单元,具体用于在所述本地无线连接类型信息包括至少两个无线连接类型标识时,接收所述目的终端发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The receiving unit is specifically configured to receive at least two types of local wireless connection establishment requests sent by the destination terminal when the local wireless connection type information includes at least two wireless connection type identifiers, the at least two types The local wireless connection establishment request corresponds to the at least two wireless connection type identifiers respectively;
所述连接建立单元,用于根据所述接收单元接收的所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的本地无线连接;The connection establishing unit is configured to establish at least two types of local wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests received by the receiving unit;
所述发送单元,还具体用于通过所述至少两种类型的本地无线连接中的一种,向所述目的终端发送数据,当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续发送所述数据。The sending unit is further specifically configured to send data to the destination terminal through one of the at least two types of local wireless connections, and when the data transmission is interrupted, through the at least two types of local wireless connections The other one continues to send the data.
本发明第八方面提供一种终端,所述终端为目的终端时,所述终端包括:The eighth aspect of the present invention provides a terminal. When the terminal is a destination terminal, the terminal includes:
接收单元,用于通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;The receiving unit is configured to receive a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information;
解析单元,用于根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;A parsing unit, configured to parse the local wireless connection configuration message according to the local wireless connection indicator, and obtain the local wireless connection type information;
发送单元,用于根据所述解析单元解析出的所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;a sending unit, configured to send a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information parsed by the parsing unit;
连接建立单元,用于在所述发送单元发送所述本地无线连接建立请求后,与所述源终端建立本地无线连接;a connection establishment unit, configured to establish a local wireless connection with the source terminal after the sending unit sends the local wireless connection establishment request;
所述接收单元,还用于通过所述连接建立单元建立的所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据。The receiving unit is further configured to receive data from the source terminal through the local wireless connection established between the source terminal and the destination terminal established by the connection establishing unit.
结合第八方面,在第一种可能的实现方式中,In combination with the eighth aspect, in the first possible implementation manner,
所述发送单元,具体用于在本地无线连接类型信息包括至少两个无线连接类型标识时,根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The sending unit is specifically configured to send at least two types of local wireless connection establishment to the source terminal according to the at least two wireless connection type identifiers when the local wireless connection type information includes at least two wireless connection type identifiers request, the at least two types of local wireless connection establishment requests correspond to the at least two wireless connection type identifiers respectively;
所述连接建立单元,用于与所述目的终端建立至少两种类型的本地无线连接;The connection establishment unit is configured to establish at least two types of local wireless connections with the destination terminal;
所述接收单元,还具体用于通过所述至少两种类型的本地无线连接中的一种,从所述源终端接收数据,当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续接收所述数据。The receiving unit is further specifically configured to receive data from the source terminal through one of the at least two types of local wireless connections, and when the data transmission is interrupted, through the at least two types of local wireless connections The other one continues to receive the data.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例中无线连接建立的系统的一实施例示意图;FIG. 1 is a schematic diagram of an embodiment of a system for establishing a wireless connection in an embodiment of the present invention;
图2是本发明实施例中数据传输的方法的一实施例示意图;FIG. 2 is a schematic diagram of an embodiment of a data transmission method in an embodiment of the present invention;
图3是本发明实施例中数据传输的方法的另一实施例示意图;FIG. 3 is a schematic diagram of another embodiment of the data transmission method in the embodiment of the present invention;
图4是本发明实施例中无线连接建立的方法的一实施例示意图;FIG. 4 is a schematic diagram of an embodiment of a method for establishing a wireless connection in an embodiment of the present invention;
图5是本发明实施例中无线连接建立的方法的一实施例示意图;FIG. 5 is a schematic diagram of an embodiment of a method for establishing a wireless connection in an embodiment of the present invention;
图6是本发明实施例中数据传输的方法的一实施例示意图;FIG. 6 is a schematic diagram of an embodiment of a data transmission method in an embodiment of the present invention;
图7是本发明实施例中数据传输的方法的另一实施例示意图;FIG. 7 is a schematic diagram of another embodiment of the data transmission method in the embodiment of the present invention;
图8是本发明实施例中终端的一实施例示意图;FIG. 8 is a schematic diagram of an embodiment of a terminal in an embodiment of the present invention;
图9是本发明实施例中终端的另一实施例示意图;FIG. 9 is a schematic diagram of another embodiment of a terminal in the embodiment of the present invention;
图10是本发明实施例中终端的另一实施例示意图;FIG. 10 is a schematic diagram of another embodiment of a terminal in the embodiment of the present invention;
图11是本发明实施例中终端的另一实施例示意图;Fig. 11 is a schematic diagram of another embodiment of the terminal in the embodiment of the present invention;
图12是本发明实施例中终端的另一实施例示意图;Fig. 12 is a schematic diagram of another embodiment of a terminal in the embodiment of the present invention;
图13是本发明实施例中终端的另一实施例示意图;Fig. 13 is a schematic diagram of another embodiment of the terminal in the embodiment of the present invention;
图14是本发明实施例中终端的另一实施例示意图。Fig. 14 is a schematic diagram of another embodiment of a terminal in the embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例一方面提供一种无线连接建立的方法,可以通过互联网通道或电信网通道来建立本地无线连接,从而提高了本地无线连接建立的效率,降低了无线连接建立的复杂度。本发明实施例还提供了相应的终端。Embodiments of the present invention provide a method for establishing a wireless connection on the one hand, which can establish a local wireless connection through an Internet channel or a telecommunication network channel, thereby improving the efficiency of establishing a local wireless connection and reducing the complexity of establishing a wireless connection. The embodiment of the present invention also provides a corresponding terminal.
本发明实施例另一方面提供一种数据传输的方法,可以通过互联网通道或电信网通道来建立本地无线连接,并通过该无线连接传输数据,既提高了本地无线连接建立的效率,又避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。本发明实施例还提供了相应的终端。On the other hand, the embodiments of the present invention provide a data transmission method, which can establish a local wireless connection through an Internet channel or a telecommunication network channel, and transmit data through the wireless connection, which not only improves the efficiency of establishing a local wireless connection, but also avoids Data is transmitted through the Internet (such as: social applications), which improves the security of data transmission. The embodiment of the present invention also provides a corresponding terminal.
以下分别进行详细说明。Each will be described in detail below.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
图1为本发明实施例中无线连接建立的系统以及数据传输的系统的一实施例示意图,当终端A为源终端,终端B为目的终端时,终端A和终端B都分别包括如图1所示的模块,当然终端A和终端B都可以在不同条件下作为源终端或目的终端,实际上终端A和终端B中各模块的功能都是相同的,只是在所在终端扮演源终端或者目的终端时表现出不同的功能。Figure 1 is a schematic diagram of an embodiment of a system for establishing a wireless connection and a system for data transmission in an embodiment of the present invention. When terminal A is a source terminal and terminal B is a destination terminal, both terminal A and terminal B respectively include The modules shown above, of course, both terminal A and terminal B can be used as source terminal or destination terminal under different conditions. In fact, the functions of each module in terminal A and terminal B are the same, but the terminal acts as a source terminal or a destination terminal. show different functions.
在建立本地无线连接的过程中:During the establishment of a local wireless connection:
交互控制模块A:负责与用户的交互,并根据用户的需求获取用于生成本地无线连接配置消息的相应信息,生成本地无线连接配置消息,所述本地无线连接配置消息可以携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,以获得所述无线连接类型标识,所述本地无线连接类型信息用于指示所述目的终端建立所述无线连接类型所对应的本地无线连接,无线连接类型信息可以包括:蓝牙标识、wifi标识、近距离通信(Near Field Communication,NFC)标识等,所述本地无线连接配置消息还可以携带用于建立本地无线连接的密钥信息以及源终端的位置信息等,所述源终端的位置信息用于所述目的终端确定与所述源终端的距离。Interaction control module A: responsible for interacting with the user, and obtaining corresponding information for generating a local wireless connection configuration message according to the user's needs, and generating a local wireless connection configuration message, the local wireless connection configuration message may carry a local wireless connection indication identifier and local wireless connection type information, the local wireless connection indication identifier is used to instruct the destination terminal to parse the local wireless connection configuration message to obtain the wireless connection type identifier, and the local wireless connection type information is used to indicate the The destination terminal establishes a local wireless connection corresponding to the wireless connection type, and the wireless connection type information may include: a bluetooth identifier, a wifi identifier, a near field communication (Near Field Communication, NFC) identifier, etc., and the local wireless connection configuration message also includes It may carry key information for establishing a local wireless connection, location information of the source terminal, etc., and the location information of the source terminal is used for the destination terminal to determine a distance from the source terminal.
公共消息模块A:用于接收交互控制模块A生成的本地无线连接配置消息,并将本地无线连接配置消息发送到终端B的公共消息模块B,公共消息模块B根据本地无线连接指示标识确定该本地无线连接配置消息是用于建立本地无线连接的消息,则进一步解析该本地无线连接配置消息,并将解析结果上报给交互控制模块B。公共消息模块A和公共消息模块B可以是短信消息模块,也可以是社交应用交互模块。Public message module A: used to receive the local wireless connection configuration message generated by the interactive control module A, and send the local wireless connection configuration message to the public message module B of the terminal B, and the public message module B determines the local wireless connection according to the local wireless connection indicator. The wireless connection configuration message is a message for establishing a local wireless connection, the local wireless connection configuration message is further analyzed, and the analysis result is reported to the interaction control module B. The public message module A and the public message module B may be short message message modules or social application interaction modules.
数据连接管理模块B:根据交互控制模块B的需求建立本地无线数据通道,如启动终端B的无线模块(如:蓝牙模块、wifi模块、NFC模块等),初始化无线通信环境,设置通信配对模式,进行密钥配对等。Data connection management module B: establish a local wireless data channel according to the needs of the interactive control module B, such as starting the wireless module of terminal B (such as: Bluetooth module, wifi module, NFC module, etc.), initializing the wireless communication environment, setting the communication pairing mode, Do key pairing, etc.
无线数据传输模块B与无线数据传输模块A建立本地无线连接。The wireless data transmission module B establishes a local wireless connection with the wireless data transmission module A.
系统资源管理模块A获取用户需要传递的数据内容的系统路径,并指示无线数据模块A传送该内容。The system resource management module A obtains the system path of the data content that the user needs to transfer, and instructs the wireless data module A to transfer the content.
系统资源管理模块B从无线数据传输模块B获取对端传送的数据内容并存放到系统指定位置。The system resource management module B obtains the data content transmitted by the peer end from the wireless data transmission module B and stores it in the designated location of the system.
本发明实施例中,可以通过互联网通道或电信网通道来建立本地无线连接,从而提高了本地无线连接建立的效率,降低了本地无线连接建立的复杂度。另一方面通过无线连接传输数据,避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。In the embodiment of the present invention, the local wireless connection can be established through the Internet channel or the telecommunication network channel, thereby improving the efficiency of establishing the local wireless connection and reducing the complexity of establishing the local wireless connection. On the other hand, data is transmitted through a wireless connection, which avoids data transmission through the Internet (such as: social applications), and improves the security of data transmission.
从终端A的角度来看,无线连接建立的过程以及数据传输的过程还可以参阅图2进行理解:From the perspective of terminal A, the process of establishing a wireless connection and the process of data transmission can also be understood by referring to Figure 2:
S100、交互控制模块A接收用户输入的数据传输指令。S100. The interaction control module A receives a data transmission instruction input by a user.
需要说明的是在本发明实施例中在建立本地无线连接通道后,可以进行数据传输,也可以不进行数据传输。It should be noted that in the embodiment of the present invention, after the local wireless connection channel is established, data transmission may or may not be performed.
S105、交互控制模块A从系统资源管理模块A获取待传输数据的描述信息。S105. The interaction control module A obtains the description information of the data to be transmitted from the system resource management module A.
待传输数据的描述信息可以是待传输数据的名称、内容简介、主体图片等信息,本地无线连接配置消息中还可以携带待传输数据的描述信息,这样终端B解析出待传输数据的描述信息后,终端B在建立本地无线连接前可以将这些描述信息显示给终端B的用户,以提示终端B的用户是否想要接收该待传输数据。The description information of the data to be transmitted can be information such as the name of the data to be transmitted, an introduction to the content, the main picture, etc., and the local wireless connection configuration message can also carry the description information of the data to be transmitted, so that after terminal B parses out the description information of the data to be transmitted , before establishing the local wireless connection, terminal B may display the descriptive information to the user of terminal B, so as to prompt the user of terminal B whether to receive the data to be transmitted.
S110、系统资源管理模块向交互控制模块A返回带传输数据的描述信息。S110, the system resource management module returns the description information with the transmission data to the interaction control module A.
S115、交互控制模块A生成本地无线连接配置消息,所述本地无线连接配置消息用于指示建立本地无线连接。S115. The interaction control module A generates a local wireless connection configuration message, where the local wireless connection configuration message is used to instruct establishment of a local wireless connection.
本地无线连接配置消息可以用于指示建立本地无线连接,在实现上可以是在该本地无线连接配置消息中携带本地无线连接指示标识,该本地无线连接指示标识指示该本地无线连接配置消息为一条用于建立本地无线连接的消息,需要进行后续处理。The local wireless connection configuration message may be used to indicate the establishment of a local wireless connection. In terms of implementation, the local wireless connection configuration message may carry a local wireless connection indication identifier, and the local wireless connection indication identifier indicates that the local wireless connection configuration message is a A message for establishing a local wireless connection needs to be processed subsequently.
在本地无线连接配置消息中还可以携带本地无线连接类型信息,如:蓝牙标识、wifi标识、NFC标识等。The local wireless connection configuration message may also carry local wireless connection type information, such as: bluetooth identifier, wifi identifier, NFC identifier, and the like.
在本地无线连接配置消息中还可以携带终端A的标识或地址,终端A的标识或地址用于指示终端B该与终端A建立本地无线连接。The identification or address of terminal A may also be carried in the local wireless connection configuration message, and the identification or address of terminal A is used to instruct terminal B to establish a local wireless connection with terminal A.
在本地无线连接配置消息中还可以携带密钥信息,所述密钥信息用于实现与终端B与终端A的配对。Key information may also be carried in the local wireless connection configuration message, and the key information is used to implement pairing between terminal B and terminal A.
在本地无线连接配置消息中还可以携带终端A的位置信息,这样所述终端B可以在确定终端B的位置信息后,根据终端A的位置信息确定终端B与终端A的距离,如果距离过远就自动取消本地无线连接建立的过程,并提示用户。更进一步,终端A可以将自身支持的无线连接方式(蓝牙、wifi及版本信息)通知给终端B,终端B结合自身的无线模块选择双方均支持的且互相兼容的无线方式进行连接。当使用的第一种本地无线连接传输数据中断后,双方还可以继续选择第二种本地无线连接通道继续传输数据,例如:蓝牙传输失败后,继续选择wifi进行传输。The location information of terminal A can also be carried in the local wireless connection configuration message, so that the terminal B can determine the distance between terminal B and terminal A according to the location information of terminal A after determining the location information of terminal B, if the distance is too far The process of establishing a local wireless connection is automatically canceled and the user is prompted. Furthermore, terminal A can notify terminal B of the wireless connection methods supported by itself (bluetooth, wifi and version information), and terminal B combines its own wireless module to select a wireless connection method supported by both parties and compatible with each other. When the first type of local wireless connection used to transmit data is interrupted, both parties can continue to select the second type of local wireless connection channel to continue transmitting data, for example: after Bluetooth transmission fails, continue to select wifi for transmission.
S120、交互控制模块A向公共消息模块A传输本地无线连接配置消息。S120. The interaction control module A transmits a local wireless connection configuration message to the public message module A.
S125、公共消息模块A向终端B发送本地无线连接配置消息。S125. The public message module A sends a local wireless connection configuration message to the terminal B.
S130、公共消息模块A向交互控制模块A返回本地无线连接配置消息已发送的结果。S130. The public message module A returns to the interaction control module A a result that the local wireless connection configuration message has been sent.
S135、交互控制模块A通知数据连接管理模块A启动无线数据传输模块A。S135. The interaction control module A notifies the data connection management module A to start the wireless data transmission module A.
S140、数据连接管理模块A启动无线数据传输模块A。S140. The data connection management module A starts the wireless data transmission module A.
S145、无线数据传输模块A从系统资源管理模块A获取待传输数据。S145. The wireless data transmission module A obtains the data to be transmitted from the system resource management module A.
S150、系统资源管理模块A向无线数据传输模块A返回待传输数据。S150. The system resource management module A returns the data to be transmitted to the wireless data transmission module A.
S155、在终端B与终端A建立本地无线连接通道后,无线数据传输模块A通过该无线连接通道传输待传输数据到终端B。S155. After the terminal B establishes a local wireless connection channel with the terminal A, the wireless data transmission module A transmits the data to be transmitted to the terminal B through the wireless connection channel.
本发明实施例中,可以通过互联网通道或电信网通道来建立本地无线连接,从而提高了本地无线连接建立的效率,降低了本地无线连接建立的复杂度。另一方面通过本地无线连接传输数据,避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。In the embodiment of the present invention, the local wireless connection can be established through the Internet channel or the telecommunication network channel, thereby improving the efficiency of establishing the local wireless connection and reducing the complexity of establishing the local wireless connection. On the other hand, the data is transmitted through the local wireless connection, which avoids the transmission of data through the Internet (such as: social applications), and improves the security of data transmission.
从终端B的角度来看,无线连接建立的过程以及数据传输的过程还可以参阅图3进行理解:From the perspective of terminal B, the process of establishing a wireless connection and the process of data transmission can also be understood by referring to Figure 3:
S200、接收终端A发送的本地无线连接配置消息,所述本地无线连接配置消息用于指示建立本地无线连接。S200. Receive a local wireless connection configuration message sent by terminal A, where the local wireless connection configuration message is used to instruct establishment of a local wireless connection.
S205、交互控制模块B解析本地无线连接配置消息。S205. The interactive control module B parses the local wireless connection configuration message.
本地无线连接配置消息可以用于指示建立本地无线连接,在实现上可以是在该本地无线连接配置消息中携带本地无线连接指示标识,该本地无线连接指示标识指示该本地无线连接配置消息为一条用于建立本地无线连接的消息,需要进行后续处理。The local wireless connection configuration message may be used to indicate the establishment of a local wireless connection. In terms of implementation, the local wireless connection configuration message may carry a local wireless connection indication identifier, and the local wireless connection indication identifier indicates that the local wireless connection configuration message is a A message for establishing a local wireless connection needs to be processed subsequently.
在本地无线连接配置消息中还可以携带本地无线连接类型信息,如:蓝牙标识、wifi标识、NFC标识等。The local wireless connection configuration message may also carry local wireless connection type information, such as: bluetooth identifier, wifi identifier, NFC identifier, and the like.
在本地无线连接配置消息中还可以携带终端A的标识或地址,终端A的标识或地址用于指示终端B该与终端A建立本地无线连接。The identification or address of terminal A may also be carried in the local wireless connection configuration message, and the identification or address of terminal A is used to instruct terminal B to establish a local wireless connection with terminal A.
在本地无线连接配置消息中还可以携带密钥信息,所述密钥信息用于实现终端B与终端A的配对。Key information may also be carried in the local wireless connection configuration message, and the key information is used to realize the pairing between terminal B and terminal A.
当本地无线连接配置消息中同时携带蓝牙标识、wifi标识、NFC标识时,在本地无线连接配置消息中还可以携带终端A的位置信息,这样所述终端B可以在确定终端B的位置信息后,根据终端A的位置信息确定终端B与终端A的距离,如果确定到终端B与终端A之间距离很近时,如只有几米,则终端B可以优先选择建立蓝牙连接,如果终端B与终端A之间距离有十几米,终端B可以优先选择建立NFC连接,如果终端B与终端A之间距离有几十米,终端B可以优先选择建立wifi连接,如果距离过远就自动取消无线连接建立的过程,并提示用户。这样,根据终端B与终端A之间距离确定合适的本地无线连接建立方式,提高了本地无线连接建立的速度。更进一步,终端A可以将自身支持的本地无线连接方式(蓝牙、wifi及版本信息)通知给终端B,终端B结合自身的无线模块选择双方均支持的且互相兼容的无线方式进行连接。当使用的第一种本地无线连接传输数据中断后,双方还可以继续选择第二种本地无线连接通道继续传输数据,例如:蓝牙传输失败后,继续选择wifi进行传输。When the local wireless connection configuration message carries the Bluetooth identifier, the wifi identifier, and the NFC identifier at the same time, the local wireless connection configuration message may also carry the location information of the terminal A, so that the terminal B can, after determining the location information of the terminal B, Determine the distance between terminal B and terminal A according to the location information of terminal A. If it is determined that the distance between terminal B and terminal A is very close, such as only a few meters, then terminal B can preferentially choose to establish a Bluetooth connection. If terminal B and terminal A If the distance between them is more than ten meters, terminal B can choose to establish NFC connection first. If the distance between terminal B and terminal A is tens of meters, terminal B can choose to establish wifi connection first. If the distance is too far, it will automatically cancel the establishment of wireless connection. process and prompt the user. In this way, an appropriate local wireless connection establishment method is determined according to the distance between terminal B and terminal A, and the speed of local wireless connection establishment is improved. Furthermore, terminal A can notify terminal B of the local wireless connection modes supported by itself (bluetooth, wifi and version information), and terminal B combines its own wireless module to select a wireless mode supported by both parties and compatible with each other for connection. When the first type of local wireless connection used to transmit data is interrupted, both parties can continue to select the second type of local wireless connection channel to continue transmitting data, for example: after Bluetooth transmission fails, continue to select wifi for transmission.
S210、交互控制模块B通知数据连接管理模块B启动无线数据传输模块B。S210, the interaction control module B notifies the data connection management module B to start the wireless data transmission module B.
S215、数据连接管理模块B启动无线数据传输模块B。S215. The data connection management module B starts the wireless data transmission module B.
S220、无线数据传输模块B向终端A发送本地无线连接建立请求,终端A与终端B的无线连接建立。S220. The wireless data transmission module B sends a local wireless connection establishment request to the terminal A, and the wireless connection between the terminal A and the terminal B is established.
S225、终端A通过无线连接通道向终端B发送待传输数据。S225. Terminal A sends the data to be transmitted to terminal B through the wireless connection channel.
S230、无线数据传输模块B将待传输数据存储到系统资源管理模块B。S230. The wireless data transmission module B stores the data to be transmitted in the system resource management module B.
下面以蓝牙连接为例,结合微信说明本发明的具体实施方式,交互控制模块实现与微信的配合,当用户A选择通过微信传输数据(如文件”file.doc”)到在一起吃饭的好友B,交互控制模块A通过系统资源管理模块A获取用户A要传输的数据“file.doc”的系统路径信息,同时产生蓝牙通讯配置消息,如蓝牙配对密码1234等,交互控制模块A生成本地无线连接配置消息:”p2p+bluetooth+Mate7+1234+storeage/emulated/1/file.doc”。其中,p2p为本地无线连接指示标识,bluetooth为本地无线连接类型信息,Mate7为源终端的类型,1234为源终端配置的用于建立本地无线连接的密钥信息,storeage/emulated/1/file.doc为文件的存储路径,用户A通过微信将上述信息发送到用户B的微信客户端。同时用户A侧的交互控制模块A指示数据连接管理模块A启动蓝牙功能,并设置配对密钥为1234,用户A的终端在接收到用户B的终端发送的蓝牙连接请求后,启动蓝牙。通过配对广播监控配对请求,并使用配对密码1234,建立配对,建立用户A的终端与用户B的终端的蓝牙连接。Taking Bluetooth connection as an example below, the specific implementation of the present invention will be described in conjunction with WeChat. The interactive control module realizes the cooperation with WeChat. , the interactive control module A obtains the system path information of the data "file.doc" to be transmitted by the user A through the system resource management module A, and at the same time generates a Bluetooth communication configuration message, such as the Bluetooth pairing password 1234, etc., and the interactive control module A generates a local wireless connection Configuration message: "p2p+bluetooth+Mate7+1234+storeage/emulated/1/file.doc". Among them, p2p is the local wireless connection indicator, bluetooth is the type information of the local wireless connection, Mate7 is the type of the source terminal, 1234 is the key information configured by the source terminal for establishing the local wireless connection, store/emulated/1/file. doc is the storage path of the file, and user A sends the above information to user B's WeChat client through WeChat. At the same time, the interactive control module A on the user A side instructs the data connection management module A to start the Bluetooth function, and sets the pairing key to 1234. After receiving the Bluetooth connection request sent by the user B's terminal, the terminal of user A starts Bluetooth. Monitor the pairing request through the pairing broadcast, and use the pairing password 1234 to establish pairing and establish a Bluetooth connection between the terminal of user A and the terminal of user B.
本发明实施例中,可以通过互联网通道或电信网通道来建立本地无线连接,从而提高了本地无线连接建立的效率,降低了本地无线连接建立的复杂度。另一方面通过无线连接传输数据,避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。In the embodiment of the present invention, the local wireless connection can be established through the Internet channel or the telecommunication network channel, thereby improving the efficiency of establishing the local wireless connection and reducing the complexity of establishing the local wireless connection. On the other hand, data is transmitted through a wireless connection, which avoids data transmission through the Internet (such as: social applications), and improves the security of data transmission.
参阅图4,本发明实施例提供的无线连接建立的方法的一实施例包括:所述方法用于源终端,所述方法可以包括:Referring to FIG. 4, an embodiment of a method for establishing a wireless connection provided by an embodiment of the present invention includes: the method is used for a source terminal, and the method may include:
301、通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接。301. Send a local wireless connection configuration message to the destination terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator is used to indicate the The destination terminal parses the local wireless connection configuration message, and initiates a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information.
302、接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求。302. Receive a local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message.
303、根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接。303. Establish a local wireless connection with the destination terminal according to the local wireless connection establishment request.
本发明实施例中,通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接。与现有技术中需要基于搜索才能建立两终端之间的本地无线连接相比,本发明实施例提供的无线连接建立的方法,通过互联网通道或电信网通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的本地无线连接,不需要源终端与目的终端互相搜索,从而提高了本地无线连接建立的效率,并且降低了本地无线连接建立的复杂度。In the embodiment of the present invention, a local wireless connection configuration message is sent to the destination terminal through an Internet channel or a telecommunication network channel, the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator Instructing the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information; receiving the destination terminal The terminal establishes a local wireless connection with the destination terminal according to the local wireless connection establishment request sent by the local wireless connection configuration message; according to the local wireless connection establishment request. Compared with the prior art that needs to be based on searching to establish a local wireless connection between two terminals, the method for establishing a wireless connection provided by the embodiment of the present invention sends the local wireless connection configuration to the destination terminal through an Internet channel or a telecommunication network channel message, the destination terminal automatically initiates a local wireless connection with the source terminal according to the local wireless connection configuration message, without the need for the source terminal and the destination terminal to search each other, thereby improving the efficiency of local wireless connection establishment and reducing the complexity of local wireless connection establishment Spend.
可选地,在上述图4对应的实施例的基础上,本发明实施例提供的无线连接建立的方法的另一实施例中,所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息,所述密钥信息用于所述目的终端根据所述密钥信息为所述源终端和所述目的终端进行配对,在配对成功后,向所述源终端发送所述本地无线连接建立请求。Optionally, on the basis of the above-mentioned embodiment corresponding to FIG. 4 , in another embodiment of the method for establishing a wireless connection provided by the embodiment of the present invention, the local wireless connection configuration message also carries the user configured by the source terminal. Key information for establishing a local wireless connection, the key information is used by the destination terminal to pair the source terminal with the destination terminal according to the key information, and after the pairing is successful, send the Send the local wireless connection establishment request.
可选地,在上述图4对应的实施例或可选实施例的基础上,本发明实施例提供的无线连接建立的方法的另一实施例中,Optionally, on the basis of the above embodiment corresponding to FIG. 4 or an optional embodiment, in another embodiment of the method for establishing a wireless connection provided by the embodiment of the present invention,
所述本地无线连接配置消息还携带所述源终端的位置信息,所述源终端的位置信息用于所述目的终端确定与所述源终端的距离,当所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。The local wireless connection configuration message also carries the location information of the source terminal, the location information of the source terminal is used for the destination terminal to determine the distance from the source terminal, when the distance is within the range of establishing a local wireless connection When within, send the local wireless connection establishment request to the source terminal.
可选地,在上述图4对应的实施例或可选实施例的基础上,本发明实施例提供的无线连接建立的方法的另一实施例中,Optionally, on the basis of the above embodiment corresponding to FIG. 4 or an optional embodiment, in another embodiment of the method for establishing a wireless connection provided by the embodiment of the present invention,
所述本地无线连接类型信息包括至少两个无线连接类型标识时,所述接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求,可以包括:When the local wireless connection type information includes at least two wireless connection type identifiers, the receiving the local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message may include:
接收所述目的终端根据所述本地无线连接配置消息发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;receiving at least two types of local wireless connection establishment requests sent by the destination terminal according to the local wireless connection configuration message, where the at least two types of local wireless connection establishment requests correspond to the at least two wireless connection type identifiers respectively ;
所述根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接,可以包括:The establishing a local wireless connection with the destination terminal according to the local wireless connection establishment request may include:
根据所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的本地无线连接。Establish at least two types of local wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests.
在本地无线连接类型信息包括至少两个无线连接类型标识时,目的终端也可以根据与源终端的距离,确定其中一种合适的本地无线连接方式建立本地无线连接,而不是针对每个无线连接类型标识都建立一个本地无线连接,这样可以提高本地无线连接建立的速度。When the local wireless connection type information includes at least two wireless connection type identifiers, the destination terminal may also determine one of the appropriate local wireless connection methods to establish a local wireless connection according to the distance from the source terminal, instead of targeting each wireless connection type Each logo establishes a local wireless connection, which can increase the speed of establishing the local wireless connection.
例如:目的终端如果确定到与源终端之间距离很近时,如只有几米,则目的终端可以优先选择建立蓝牙连接,如果目的终端与源终端之间距离有十几米,目的终端可以优先选择建立NFC连接,如果目的终端与源终端之间距离有几十米,目的终端可以优先选择建立wifi连接,如果距离过远就自动取消无线连接建立的过程,并提示用户。这样,根据目的终端与源终端之间距离确定合适的本地无线连接建立方式,提高了本地无线连接建立的速度。For example: if the destination terminal is determined to be very close to the source terminal, such as only a few meters, the destination terminal can give priority to establishing a Bluetooth connection; if the distance between the destination terminal and the source terminal is more than ten meters, the destination terminal can give priority to establishing a Bluetooth connection. For NFC connection, if the distance between the destination terminal and the source terminal is tens of meters, the destination terminal can choose to establish a wifi connection first, and if the distance is too far, it will automatically cancel the wireless connection establishment process and prompt the user. In this way, an appropriate local wireless connection establishment method is determined according to the distance between the destination terminal and the source terminal, which increases the speed of local wireless connection establishment.
本发明实施例提供的无线连接建立的方法,可以参阅图1至图3部分的相关描述进行理解,本处不做过多赘述。The method for establishing a wireless connection provided by the embodiment of the present invention can be understood by referring to the relevant descriptions in FIG. 1 to FIG. 3 , and details are not repeated here.
参阅图5,本发明实施例提供的无线连接建立的方法,用于目的终端,所述方法可以包括:Referring to FIG. 5, the method for establishing a wireless connection provided by an embodiment of the present invention is used for a destination terminal, and the method may include:
401、通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息。401. Receive a local wireless connection configuration message from a source terminal through an Internet channel or a telecommunications network channel, where the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information.
402、根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息。402. Parse the local wireless connection configuration message according to the local wireless connection indicator, and obtain the local wireless connection type information.
403、根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求。403. Send a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information.
404、与所述源终端建立本地无线连接。404. Establish a local wireless connection with the source terminal.
本发明实施例中,通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;与所述源终端建立本地无线连接。与现有技术中需要基于搜索才能建立两终端之间的无线连接相比,本发明实施例提供的无线连接建立的方法,通过公共消息通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的无线连接,不需要源终端与目的终端互相搜索,从而提高了本地无线连接建立的效率,并且降低了本地无线连接建立的复杂度。In the embodiment of the present invention, a local wireless connection configuration message is received from the source terminal through an Internet channel or a telecommunication network channel, and the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information; according to the local wireless connection indication Identifying and parsing the local wireless connection configuration message to obtain the local wireless connection type information; sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information; The source terminal establishes a local wireless connection. Compared with the prior art that needs to be based on searching to establish a wireless connection between two terminals, the method for establishing a wireless connection provided by the embodiment of the present invention sends the local wireless connection configuration message to the destination terminal through a public message channel, and the destination terminal The wireless connection with the source terminal is automatically started according to the local wireless connection configuration message, without the need for the source terminal and the destination terminal to search each other, thereby improving the efficiency of establishing the local wireless connection and reducing the complexity of establishing the local wireless connection.
可选地,在上述图5对应的实施例的基础上,本发明实施例提供的无线连接建立的方法的另一实施例中,所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息;Optionally, on the basis of the above embodiment corresponding to FIG. 5 , in another embodiment of the method for establishing a wireless connection provided by the embodiment of the present invention, the local wireless connection configuration message also carries the user configured by the source terminal. Key information for establishing a local wireless connection;
所述获得所述本地无线连接类型信息时,所述方法还可以包括:When obtaining the local wireless connection type information, the method may further include:
获得所述密钥信息;Obtain the key information;
所述根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求之前,所述方法还可以包括:Before sending the local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information, the method may further include:
根据所述密钥信息为所述源终端和所述目的终端进行配对;performing pairing for the source terminal and the destination terminal according to the key information;
所述向所述源终端发送本地无线连接建立请求,可以包括:The sending a local wireless connection establishment request to the source terminal may include:
在配对成功后,向所述源终端发送所述本地无线连接建立请求。After the pairing is successful, send the local wireless connection establishment request to the source terminal.
可选地,在上述图5对应的实施例或可选实施例的基础上,本发明实施例提供的无线连接建立的方法的另一实施例中,所述本地无线连接配置消息还携带所述源终端的位置信息,所述获得所述无线连接类型信息时,所述方法还可以包括:Optionally, on the basis of the above-mentioned embodiment corresponding to FIG. 5 or an optional embodiment, in another embodiment of the method for establishing a wireless connection provided by the embodiment of the present invention, the local wireless connection configuration message also carries the The location information of the source terminal. When obtaining the wireless connection type information, the method may further include:
获得所述源终端的位置信息;Obtaining location information of the source terminal;
所述根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求之前,所述方法还可以包括:Before sending the local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information, the method may further include:
根据所述源终端的位置信息,确定与所述源终端的距离;determining a distance from the source terminal according to the location information of the source terminal;
所述向所述源终端发送所述本地无线连接建立请求,可以包括:The sending the local wireless connection establishment request to the source terminal may include:
当所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。When the distance is within the range of establishing a local wireless connection, sending the local wireless connection establishment request to the source terminal.
可选地,在上述图5对应的实施例或可选实施例的基础上,本发明实施例提供的无线连接建立的方法的另一实施例中,所述本地无线连接类型信息包括至少两个无线连接类型标识时,Optionally, on the basis of the above-mentioned embodiment corresponding to FIG. 5 or an optional embodiment, in another embodiment of the method for establishing a wireless connection provided by the embodiment of the present invention, the local wireless connection type information includes at least two When the wireless connection type is identified,
所述根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求,可以包括:The sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information may include:
根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;Send at least two types of local wireless connection establishment requests to the source terminal according to the at least two wireless connection type identifiers, the at least two types of local wireless connection establishment requests are respectively related to the at least two wireless connection types identification correspondence;
所述与所述源终端建立本地无线连接,可以包括:The establishing a local wireless connection with the source terminal may include:
与所述目的终端建立至少两种类型的本地无线连接。At least two types of local wireless connections are established with the destination terminal.
在本地无线连接类型信息包括至少两个无线连接类型标识时,目的终端也可以根据与源终端的距离,确定其中一种合适的本地无线连接方式建立本地无线连接,而不是针对每个无线连接类型标识都建立一个本地无线连接,这样可以提高本地无线连接建立的速度。When the local wireless connection type information includes at least two wireless connection type identifiers, the destination terminal may also determine one of the appropriate local wireless connection methods to establish a local wireless connection according to the distance from the source terminal, instead of targeting each wireless connection type Each logo establishes a local wireless connection, which can increase the speed of establishing the local wireless connection.
例如:目的终端如果确定到与源终端之间距离很近时,如只有几米,则目的终端可以优先选择建立蓝牙连接,如果目的终端与源终端之间距离有十几米,目的终端可以优先选择建立NFC连接,如果目的终端与源终端之间距离有几十米,目的终端可以优先选择建立wifi连接,如果距离过远就自动取消无线连接建立的过程,并提示用户。这样,根据目的终端与源终端之间距离确定合适的本地无线连接建立方式,提高了本地无线连接建立的速度。For example: if the destination terminal is determined to be very close to the source terminal, such as only a few meters, the destination terminal can give priority to establishing a Bluetooth connection; if the distance between the destination terminal and the source terminal is more than ten meters, the destination terminal can give priority to establishing a Bluetooth connection. For NFC connection, if the distance between the destination terminal and the source terminal is tens of meters, the destination terminal can choose to establish a wifi connection first, and if the distance is too far, it will automatically cancel the wireless connection establishment process and prompt the user. In this way, an appropriate local wireless connection establishment method is determined according to the distance between the destination terminal and the source terminal, which increases the speed of local wireless connection establishment.
本发明实施例提供的无线连接建立的方法,可以参阅图1至图3部分的相关描述进行理解,本处不做过多赘述。The method for establishing a wireless connection provided by the embodiment of the present invention can be understood by referring to the relevant descriptions in FIG. 1 to FIG. 3 , and details are not repeated here.
参阅图6,本发明实施例提供的数据传输的方法,用于源终端,所述方法可以包括:Referring to FIG. 6, the data transmission method provided by the embodiment of the present invention is used for the source terminal, and the method may include:
501、通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接。501. Send a local wireless connection configuration message to the destination terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator is used to indicate the The destination terminal parses the local wireless connection configuration message, and initiates a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information.
502、接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求。502. Receive a local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message.
503、根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接。503. Establish a local wireless connection with the destination terminal according to the local wireless connection establishment request.
504、通过所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据。504. Send data to the destination terminal through the local wireless connection established between the source terminal and the destination terminal.
本发明实施例中,通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接;通过所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据。与现有技术中只能基于搜索才能建立本地无线连接,然后进行数据传输,或者通过第三网络才能进行数据传输相比,本发明实施例提供的数据传输的方法,通过公共消息通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的无线连接,源终端与目的终端通过该本地无线连接传输待传输数据,既提高了本地无线连接建立的效率,又避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。In the embodiment of the present invention, a local wireless connection configuration message is sent to the destination terminal through an Internet channel or a telecommunication network channel, the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator Instructing the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information; receiving the destination terminal The terminal sends a local wireless connection establishment request according to the local wireless connection configuration message; according to the local wireless connection establishment request, establishes a local wireless connection with the destination terminal; through the local wireless connection established between the source terminal and the destination terminal connect, and send data to the destination terminal. Compared with the prior art where a local wireless connection can only be established based on a search, and then data transmission can be performed, or data transmission can only be performed through a third network, the data transmission method provided by the embodiment of the present invention sends a message to the destination terminal through a public message channel. Send the local wireless connection configuration message, the destination terminal automatically starts the wireless connection with the source terminal according to the local wireless connection configuration message, the source terminal and the destination terminal transmit the data to be transmitted through the local wireless connection, which not only improves the local wireless connection establishment Efficiency, avoiding the transmission of data through the Internet (such as: social applications), and improving the security of data transmission.
可选地,在上述图6对应的实施例的基础上,本发明实施例提供的数据传输的另一实施例中,所述本地无线连接类型信息包括至少两个无线连接类型标识时,所述接收所述目的终端发送的本地无线连接建立请求,可以包括:Optionally, on the basis of the above embodiment corresponding to FIG. 6 , in another embodiment of data transmission provided by the embodiment of the present invention, when the local wireless connection type information includes at least two wireless connection type identifiers, the Receiving the local wireless connection establishment request sent by the destination terminal may include:
接收所述目的终端发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;receiving at least two types of local wireless connection establishment requests sent by the destination terminal, the at least two types of local wireless connection establishment requests respectively corresponding to the at least two wireless connection type identifiers;
所述根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接,可以包括:The establishing a local wireless connection with the destination terminal according to the local wireless connection establishment request may include:
根据所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的本地无线连接;Establishing at least two types of local wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests;
所述通过所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据,可以包括:The sending data to the destination terminal through the local wireless connection established between the source terminal and the destination terminal may include:
通过所述至少两种类型的本地无线连接中的一种,向所述目的终端发送数据;sending data to the destination terminal via one of the at least two types of local wireless connections;
当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续发送所述数据。When the data transmission is interrupted, the data is continued to be sent through the other one of the at least two types of local wireless connections.
本发明实施例提供的数据传输的方法,可以参阅图1至图3部分的相关描述进行理解,本处不做过多赘述。The data transmission method provided by the embodiment of the present invention can be understood by referring to the relevant descriptions in FIG. 1 to FIG. 3 , and details are not repeated here.
参阅图7,本发明实施例提供的数据传输的方法,用于目的终端,所述方法可以包括:Referring to FIG. 7, the data transmission method provided by the embodiment of the present invention is used for the destination terminal, and the method may include:
601、通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息。601. Receive a local wireless connection configuration message from a source terminal through an Internet channel or a telecommunications network channel, where the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information.
602、根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息。602. Parse the local wireless connection configuration message according to the local wireless connection indicator, and obtain the local wireless connection type information.
603、根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求。603. Send a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information.
604、与所述源终端建立本地无线连接。604. Establish a local wireless connection with the source terminal.
605、通过所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据。605. Receive data from the source terminal through the local wireless connection established between the source terminal and the destination terminal.
本发明实施例中,通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;与所述源终端建立本地无线连接;通过所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据。与现有技术中只能基于搜索才能建立本地无线连接,然后进行数据传输,或者通过第三网络才能进行数据传输相比,本发明实施例提供的数据传输的方法,通过公共消息通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的无线连接,源终端与目的终端通过该无线连接传输待传输数据,既提高了无线连接建立的效率,又避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。In the embodiment of the present invention, a local wireless connection configuration message is received from the source terminal through an Internet channel or a telecommunication network channel, and the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information; according to the local wireless connection indication Identifying and parsing the local wireless connection configuration message to obtain the local wireless connection type information; sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information; The source terminal establishes a local wireless connection; and receives data from the source terminal through the local wireless connection established between the source terminal and the destination terminal. Compared with the prior art where a local wireless connection can only be established based on a search, and then data transmission can be performed, or data transmission can only be performed through a third network, the data transmission method provided by the embodiment of the present invention sends a message to the destination terminal through a public message channel. Sending the local wireless connection configuration message, the destination terminal automatically starts a wireless connection with the source terminal according to the local wireless connection configuration message, and the source terminal and the destination terminal transmit data to be transmitted through the wireless connection, which not only improves the efficiency of wireless connection establishment, It also avoids the transmission of data through the Internet (such as: social applications), and improves the security of data transmission.
可选地,在上述图7对应的实施例的基础上,本发明实施例提供的数据传输的方法的另一实施例中,所述本地无线连接类型信息包括至少两个无线连接类型标识时,Optionally, on the basis of the above embodiment corresponding to FIG. 7 , in another embodiment of the data transmission method provided by the embodiment of the present invention, when the local wireless connection type information includes at least two wireless connection type identifiers,
所述根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求,可以包括:The sending a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information may include:
根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;Send at least two types of local wireless connection establishment requests to the source terminal according to the at least two wireless connection type identifiers, the at least two types of local wireless connection establishment requests are respectively related to the at least two wireless connection types identification correspondence;
所述与所述源终端建立本地无线连接,可以包括:The establishing a local wireless connection with the source terminal may include:
与所述目的终端建立至少两种类型的本地无线连接;establishing at least two types of local wireless connections with the destination terminal;
所述通过所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据,可以包括:The receiving data from the source terminal through the local wireless connection established between the source terminal and the destination terminal may include:
通过所述至少两种类型的本地无线连接中的一种,从所述源终端接收数据;receiving data from the source terminal over one of the at least two types of local wireless connections;
当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续接收所述数据。When the data transmission is interrupted, the data continues to be received through the other one of the at least two types of local wireless connections.
本发明实施例提供的数据传输的方法,可以参阅图1至图3部分的相关描述进行理解,本处不做过多赘述。The data transmission method provided by the embodiment of the present invention can be understood by referring to the relevant descriptions in FIG. 1 to FIG. 3 , and details are not repeated here.
参阅图8,本发明实施例提供的终端30的一实施例包括:所述终端为源终端时,所述终端包括:Referring to FIG. 8, an embodiment of the terminal 30 provided by the embodiment of the present invention includes: when the terminal is a source terminal, the terminal includes:
发送单元311,用于通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;The sending unit 311 is configured to send a local wireless connection configuration message to a destination terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator Instructing the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information;
接收单元312,用于在所述发送单元311发送所述本地无线连接配置消息之后,接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;The receiving unit 312 is configured to receive the local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message after the sending unit 311 sends the local wireless connection configuration message;
连接建立单元313,用于根据所述接收单元312接收的本地无线连接建立请求,与所述目的终端建立本地无线连接。A connection establishing unit 313, configured to establish a local wireless connection with the destination terminal according to the local wireless connection establishment request received by the receiving unit 312.
本发明实施例中,发送单元311通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;接收单元312在所述发送单元311发送所述本地无线连接配置消息之后,接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;连接建立单元313根据所述接收单元312接收的本地无线连接建立请求,与所述目的终端建立本地无线连接。与现有技术中需要基于搜索才能建立两终端之间的无线连接相比,本发明实施例提供的终端,通过公共消息通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的无线连接,不需要源终端与目的终端互相搜索,从而提高了本地无线连接建立的效率,并且降低了本地无线连接建立的复杂度。In the embodiment of the present invention, the sending unit 311 sends a local wireless connection configuration message to the destination terminal through an Internet channel or a telecommunication network channel. The local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information. The local wireless connection The connection indication identifier is used to instruct the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information; receiving After the sending unit 311 sends the local wireless connection configuration message, the unit 312 receives the local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message; the connection establishment unit 313 receives according to the receiving unit 312 The local wireless connection establishment request of the local wireless connection is established with the destination terminal. Compared with the prior art that needs to be based on searching to establish a wireless connection between two terminals, the terminal provided in the embodiment of the present invention sends the local wireless connection configuration message to the destination terminal through a public message channel, and the destination terminal sends the local wireless connection configuration message according to the local wireless connection configuration message. The connection configuration message automatically starts the wireless connection with the source terminal, without the need for the source terminal and the destination terminal to search each other, thereby improving the efficiency of establishing a local wireless connection and reducing the complexity of establishing a local wireless connection.
可选地,在上述图8对应的实施例的基础上本发明实施例提供的终端的另一实施例中,所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息,所述密钥信息用于所述目的终端根据所述密钥信息为所述源终端和所述目的终端进行配对,在配对成功后,向所述源终端发送所述本地无线连接建立请求。Optionally, in another embodiment of the terminal provided by the embodiment of the present invention based on the above embodiment corresponding to FIG. 8 , the local wireless connection configuration message also carries the information configured by the source terminal for establishing the local wireless connection. key information, the key information is used by the destination terminal to pair the source terminal with the destination terminal according to the key information, and after the pairing is successful, send the local wireless Connection establishment request.
可选地,在上述图8对应的实施例或可选实施例的基础上,本发明实施例提供的终端的另一实施例中,Optionally, on the basis of the above-mentioned embodiment corresponding to FIG. 8 or an alternative embodiment, in another embodiment of the terminal provided by the embodiment of the present invention,
所述本地无线连接配置消息还携带所述源终端的位置信息,所述源终端的位置信息用于所述目的终端确定与所述源终端的距离,当所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。The local wireless connection configuration message also carries the location information of the source terminal, the location information of the source terminal is used for the destination terminal to determine the distance from the source terminal, when the distance is within the range of establishing a local wireless connection When within, send the local wireless connection establishment request to the source terminal.
可选地,在上述图8对应的实施例或可选实施例的基础上,本发明实施例提供的终端的另一实施例中,所述本地无线连接类型信息包括至少两个无线连接类型标识时,Optionally, on the basis of the above-mentioned embodiment corresponding to FIG. 8 or an alternative embodiment, in another embodiment of the terminal provided by the embodiment of the present invention, the local wireless connection type information includes at least two wireless connection type identifiers hour,
所述接收单元312,具体用于在本地无线连接类型信息包括至少两个无线连接类型标识时,接收所述目的终端根据所述本地无线连接配置消息发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The receiving unit 312 is specifically configured to receive at least two types of local wireless connection establishment requests sent by the destination terminal according to the local wireless connection configuration message when the local wireless connection type information includes at least two wireless connection type identifiers , the at least two types of local wireless connection establishment requests correspond to the at least two wireless connection type identifiers respectively;
所述连接建立单元313,具体用于根据所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的本地无线连接。The connection establishing unit 313 is specifically configured to establish at least two types of local wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests.
在本地无线连接类型信息包括至少两个无线连接类型标识时,目的终端也可以根据与源终端的距离,确定其中一种合适的本地无线连接方式建立本地无线连接,而不是针对每个无线连接类型标识都建立一个本地无线连接,这样可以提高本地无线连接建立的速度。When the local wireless connection type information includes at least two wireless connection type identifiers, the destination terminal may also determine one of the appropriate local wireless connection methods to establish a local wireless connection according to the distance from the source terminal, instead of targeting each wireless connection type Each logo establishes a local wireless connection, which can increase the speed of establishing the local wireless connection.
例如:目的终端如果确定到与源终端之间距离很近时,如只有几米,则目的终端可以优先选择建立蓝牙连接,如果目的终端与源终端之间距离有十几米,目的终端可以优先选择建立NFC连接,如果目的终端与源终端之间距离有几十米,目的终端可以优先选择建立wifi连接,如果距离过远就自动取消无线连接建立的过程,并提示用户。这样,根据目的终端与源终端之间距离确定合适的本地无线连接建立方式,提高了本地无线连接建立的速度。For example: if the destination terminal is determined to be very close to the source terminal, such as only a few meters, the destination terminal can give priority to establishing a Bluetooth connection; if the distance between the destination terminal and the source terminal is more than ten meters, the destination terminal can give priority to establishing a Bluetooth connection. For NFC connection, if the distance between the destination terminal and the source terminal is tens of meters, the destination terminal can choose to establish a wifi connection first, and if the distance is too far, it will automatically cancel the wireless connection establishment process and prompt the user. In this way, an appropriate local wireless connection establishment method is determined according to the distance between the destination terminal and the source terminal, which increases the speed of local wireless connection establishment.
本发明实施例提供的终端,可以参阅图1至图4部分源终端部分的描述进行理解,本处不做过多赘述。The terminal provided by the embodiment of the present invention can be understood by referring to the description of the source terminal part in FIG. 1 to FIG. 4 , and details are not repeated here.
参阅图9,本发明实施例提供的终端30,所述终端为目的终端时,所述终端包括:Referring to FIG. 9, the terminal 30 provided by the embodiment of the present invention, when the terminal is a destination terminal, the terminal includes:
接收单元411,用于通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;The receiving unit 411 is configured to receive a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information;
解析单元412,用于根据所述接收单元411接收的所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;The parsing unit 412 is configured to parse the local wireless connection configuration message according to the local wireless connection indicator received by the receiving unit 411, and obtain the local wireless connection type information;
发送单元413,用于根据所述解析单元412解析出的所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;A sending unit 413, configured to send a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information parsed by the parsing unit 412;
连接建立单元414,用于在所述发送单元413发送所述本地无线连接建立请求后,与所述源终端建立本地无线连接。A connection establishing unit 414, configured to establish a local wireless connection with the source terminal after the sending unit 413 sends the local wireless connection establishment request.
本发明实施例中,接收单元411通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;解析单元412根据所述接收单元411接收的所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;发送单元413根据所述解析单元412解析出的所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;连接建立单元414在所述发送单元413发送所述本地无线连接建立请求后,与所述源终端建立本地无线连接。与现有技术中需要基于搜索才能建立两终端之间的无线连接相比,本发明实施例提供的终端,通过公共消息通道与源终端建立本地无线连接,不需要源终端与目的终端互相搜索,从而提高了本地无线连接建立的效率,并且降低了本地无线连接建立的复杂度。In the embodiment of the present invention, the receiving unit 411 receives a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, and the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information; the parsing unit 412 according to The local wireless connection indicator received by the receiving unit 411 parses the local wireless connection configuration message to obtain the local wireless connection type information; the sending unit 413 parses the local wireless connection type according to the parsing unit 412 The local wireless connection type indicated by the information, and send a local wireless connection establishment request to the source terminal; the connection establishment unit 414 establishes a local wireless connection with the source terminal after the sending unit 413 sends the local wireless connection establishment request . Compared with the prior art that needs to be based on searching to establish a wireless connection between two terminals, the terminal provided by the embodiment of the present invention establishes a local wireless connection with the source terminal through a public message channel, without the need for the source terminal and the destination terminal to search each other. Therefore, the efficiency of establishing the local wireless connection is improved, and the complexity of establishing the local wireless connection is reduced.
可选地,在上述图9对应的实施例的基础上,参阅图10,本发明实施例提供的终端的另一实施例中,所述终端40还包括配对单元415,Optionally, on the basis of the above embodiment corresponding to FIG. 9 , referring to FIG. 10 , in another embodiment of the terminal provided by the embodiment of the present invention, the terminal 40 further includes a pairing unit 415,
所述解析单元412,还用于在所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息时,获得所述密钥信息;The parsing unit 412 is further configured to obtain the key information when the local wireless connection configuration message also carries the key information configured by the source terminal for establishing a local wireless connection;
所述配对单元415,用于根据所述解析单元412获得的所述密钥信息为所述源终端和所述目的终端进行配对;The pairing unit 415 is configured to pair the source terminal with the destination terminal according to the key information obtained by the parsing unit 412;
所述发送单元413,具体用于在所述配对单元415配对成功后,向所述源终端发送所述本地无线连接建立请求。The sending unit 413 is specifically configured to send the local wireless connection establishment request to the source terminal after the pairing unit 415 succeeds in pairing.
可选地,在上述图9对应的实施例的基础上,参阅图11,本发明实施例提供的终端40的另一实施例中,所述终端还包括确定单元416,Optionally, on the basis of the above-mentioned embodiment corresponding to FIG. 9 , referring to FIG. 11 , in another embodiment of the terminal 40 provided by the embodiment of the present invention, the terminal further includes a determining unit 416,
所述解析单元412,还用于在述本地无线连接配置消息还携带所述源终端的位置信息时,获得所述源终端的位置信息;The parsing unit 412 is further configured to obtain the location information of the source terminal when the local wireless connection configuration message also carries the location information of the source terminal;
所述确定单元416,用于根据所述解析单元412获得的所述源终端的位置信息,确定与所述源终端的距离;The determining unit 416 is configured to determine a distance from the source terminal according to the location information of the source terminal obtained by the parsing unit 412;
所述发送单元413,具体用于当所述确定单元416确定的所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。The sending unit 413 is specifically configured to send the local wireless connection establishment request to the source terminal when the distance determined by the determining unit 416 is within a range for establishing a local wireless connection.
可选地,在上述图9至图11对应的实施例的基础上,参阅图11,本发明实施例提供的终端40的另一实施例中,Optionally, on the basis of the above embodiments corresponding to FIG. 9 to FIG. 11 , referring to FIG. 11 , in another embodiment of the terminal 40 provided by the embodiment of the present invention,
所述发送单元413,具体用于在本地无线连接类型信息包括至少两个无线连接类型标识时,根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The sending unit 413 is specifically configured to send at least two types of local wireless connections to the source terminal according to the at least two wireless connection type identifiers when the local wireless connection type information includes at least two wireless connection type identifiers An establishment request, the at least two types of local wireless connection establishment requests respectively corresponding to the at least two wireless connection type identifiers;
所述连接建立单元414,具体用于与所述目的终端建立至少两种类型的本地无线连接。The connection establishing unit 414 is specifically configured to establish at least two types of local wireless connections with the destination terminal.
在本地无线连接类型信息包括至少两个无线连接类型标识时,目的终端也可以根据与源终端的距离,确定其中一种合适的本地无线连接方式建立本地无线连接,而不是针对每个无线连接类型标识都建立一个本地无线连接,这样可以提高本地无线连接建立的速度。When the local wireless connection type information includes at least two wireless connection type identifiers, the destination terminal may also determine one of the appropriate local wireless connection methods to establish a local wireless connection according to the distance from the source terminal, instead of targeting each wireless connection type Each logo establishes a local wireless connection, which can increase the speed of establishing the local wireless connection.
例如:目的终端如果确定到与源终端之间距离很近时,如只有几米,则目的终端可以优先选择建立蓝牙连接,如果目的终端与源终端之间距离有十几米,目的终端可以优先选择建立NFC连接,如果目的终端与源终端之间距离有几十米,目的终端可以优先选择建立wifi连接,如果距离过远就自动取消无线连接建立的过程,并提示用户。这样,根据目的终端与源终端之间距离确定合适的本地无线连接建立方式,提高了本地无线连接建立的速度。For example: if the destination terminal is determined to be very close to the source terminal, such as only a few meters, the destination terminal can give priority to establishing a Bluetooth connection; if the distance between the destination terminal and the source terminal is more than ten meters, the destination terminal can give priority to establishing a Bluetooth connection. For NFC connection, if the distance between the destination terminal and the source terminal is tens of meters, the destination terminal can choose to establish a wifi connection first, and if the distance is too far, it will automatically cancel the wireless connection establishment process and prompt the user. In this way, an appropriate local wireless connection establishment method is determined according to the distance between the destination terminal and the source terminal, which increases the speed of local wireless connection establishment.
本发明实施例提供的终端,可以参阅图1至图3、图5部分目的终端部分的描述进行理解,本处不做过多赘述。The terminal provided by the embodiment of the present invention can be understood by referring to the description of the target terminal part in FIG. 1 to FIG. 3 and FIG. 5 , and details are not repeated here.
参阅图12,本发明实施例提供的终端为源终端时,所述终端包括:Referring to Figure 12, when the terminal provided by the embodiment of the present invention is a source terminal, the terminal includes:
发送单元511,用于通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;The sending unit 511 is configured to send a local wireless connection configuration message to a destination terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator Instructing the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information;
接收单元512,用于在所述发送单元511发送所述本地无线连接配置消息之后,接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;The receiving unit 512 is configured to receive the local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message after the sending unit 511 sends the local wireless connection configuration message;
连接建立单元513,用于根据所述接收单元512接收的本地无线连接建立请求,与所述目的终端建立本地无线连接;A connection establishing unit 513, configured to establish a local wireless connection with the destination terminal according to the local wireless connection establishment request received by the receiving unit 512;
所述发送单元511,还用于通过所述连接建立单元513建立的所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据。The sending unit 511 is further configured to send data to the destination terminal through the local wireless connection established between the source terminal and the destination terminal established by the connection establishing unit 513 .
本发明实施例中,发送单元511通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;接收单元512在所述发送单元511发送所述本地无线连接配置消息之后,接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;连接建立单元513根据所述接收单元512接收的本地无线连接建立请求,与所述目的终端建立本地无线连接;所述发送单元511还通过所述连接建立单元513建立的所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据。与现有技术中只能基于搜索才能建立本地无线连接,然后进行数据传输,或者通过第三网络才能进行数据传输相比,本发明实施例提供的终端,通过公共消息通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的无线连接,源终端与目的终端通过该无线连接传输待传输数据,既提高了本地无线连接建立的效率,又避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。In the embodiment of the present invention, the sending unit 511 sends a local wireless connection configuration message to the destination terminal through an Internet channel or a telecommunication network channel, the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information, and the local wireless connection The connection indication identifier is used to instruct the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information; receiving After the sending unit 511 sends the local wireless connection configuration message, the unit 512 receives the local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message; the connection establishment unit 513 receives the local wireless connection establishment request according to the receiving unit 512 A local wireless connection establishment request to establish a local wireless connection with the destination terminal; the sending unit 511 also transmits to the The destination terminal sends data. Compared with the prior art where a local wireless connection can only be established based on a search, and then data transmission can be performed, or data transmission can only be performed through a third network, the terminal provided in the embodiment of the present invention sends the destination terminal through a public message channel. Local wireless connection configuration message, the destination terminal automatically starts the wireless connection with the source terminal according to the local wireless connection configuration message, and the source terminal and the destination terminal transmit data to be transmitted through the wireless connection, which not only improves the efficiency of local wireless connection establishment, but also avoids Data is transmitted through the Internet (such as: social applications), which improves the security of data transmission.
可选地,在上述图12对应的实施例的基础上,本发明实施例提供的终端的另一实施例中,Optionally, on the basis of the above embodiment corresponding to FIG. 12 , in another embodiment of the terminal provided by the embodiment of the present invention,
所述接收单元512,具体用于在所述本地无线连接类型信息包括至少两个无线连接类型标识时,接收所述目的终端发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The receiving unit 512 is specifically configured to receive at least two types of local wireless connection establishment requests sent by the destination terminal when the local wireless connection type information includes at least two wireless connection type identifiers, and the at least two types Types of local wireless connection establishment requests respectively correspond to the at least two wireless connection type identifiers;
所述连接建立单元513,用于根据所述接收单元接收的所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的无线连接;The connection establishing unit 513 is configured to establish at least two types of wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests received by the receiving unit;
所述发送单元511,还具体用于通过所述至少两种类型的本地无线连接中的一种,向所述目的终端发送数据,当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续发送所述数据。The sending unit 511 is further specifically configured to send data to the destination terminal through one of the at least two types of local wireless connections, and when the data transmission is interrupted, through the at least two types of local wireless connections The other one of the connections continues to send the data.
本发明实施例提供的终端,可以参阅图1至图3、图6部分源终端部分的描述进行理解,本处不做过多赘述。The terminal provided by the embodiment of the present invention can be understood by referring to the description of the source terminal part in FIG. 1 to FIG. 3 and FIG. 6 , and details are not repeated here.
参阅图13,本发明实施例提供的终端60,所述终端为目的终端时,所述终端60包括:Referring to FIG. 13, the terminal 60 provided by the embodiment of the present invention, when the terminal is a destination terminal, the terminal 60 includes:
接收单元611,用于通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;The receiving unit 611 is configured to receive a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information;
解析单元612,用于根据所述接收单元611接收的所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;The parsing unit 612 is configured to parse the local wireless connection configuration message according to the local wireless connection indicator received by the receiving unit 611, and obtain the local wireless connection type information;
发送单元613,用于根据所述解析单元612解析出的所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;A sending unit 613, configured to send a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information parsed by the parsing unit 612;
连接建立单元614,用于在所述发送单元613发送所述本地无线连接建立请求后,与所述源终端建立本地无线连接;A connection establishing unit 614, configured to establish a local wireless connection with the source terminal after the sending unit 613 sends the local wireless connection establishment request;
所述接收单元611,还用于通过所述连接建立单元614建立的所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据。The receiving unit 611 is further configured to receive data from the source terminal through the local wireless connection established between the source terminal and the destination terminal established by the connection establishing unit 614 .
本发明实施例中,接收单元611通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;解析单元612根据所述接收单元611接收的所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;发送单元613根据所述解析单元612解析出的所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;连接建立单元614在所述发送单元613发送所述本地无线连接建立请求后,与所述源终端建立本地无线连接;所述接收单元611还通过所述连接建立单元614建立的所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据。与现有技术中只能基于搜索才能建立本地无线连接,然后进行数据传输,或者通过互联网才能进行数据传输相比,本发明实施例提供的终端,通过公共消息通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的无线连接,源终端与目的终端通过该本地无线连接传输待传输数据,既提高了本地无线连接建立的效率,又避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。In the embodiment of the present invention, the receiving unit 611 receives a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, and the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information; the parsing unit 612 according to The local wireless connection indicator received by the receiving unit 611 parses the local wireless connection configuration message to obtain the local wireless connection type information; the sending unit 613 parses the local wireless connection type according to the parsing unit 612 The local wireless connection type indicated by the information, and send a local wireless connection establishment request to the source terminal; the connection establishment unit 614 establishes a local wireless connection with the source terminal after the sending unit 613 sends the local wireless connection establishment request The receiving unit 611 also receives data from the source terminal through the local wireless connection established by the connection establishing unit 614 between the source terminal and the destination terminal. Compared with the prior art where a local wireless connection can only be established based on a search, and then data transmission can be performed, or data transmission can only be performed through the Internet, the terminal provided in the embodiment of the present invention sends the local wireless connection to the destination terminal through a public message channel. Connection configuration message, the destination terminal automatically starts the wireless connection with the source terminal according to the local wireless connection configuration message, the source terminal and the destination terminal transmit the data to be transmitted through the local wireless connection, which not only improves the efficiency of local wireless connection establishment, but also avoids Data is transmitted through the Internet (such as: social applications), which improves the security of data transmission.
可选地,在上述图13对应的实施例的基础上,本发明实施例提供的终端的另一实施例中,Optionally, on the basis of the above embodiment corresponding to FIG. 13 , in another embodiment of the terminal provided by the embodiment of the present invention,
所述发送单元613,具体用于在本地无线连接类型信息包括至少两个无线连接类型标识时,根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The sending unit 613 is specifically configured to send at least two types of local wireless connections to the source terminal according to the at least two wireless connection type identifiers when the local wireless connection type information includes at least two wireless connection type identifiers An establishment request, the at least two types of local wireless connection establishment requests respectively corresponding to the at least two wireless connection type identifiers;
所述连接建立单元614,用于与所述目的终端建立至少两种类型的本地无线连接;The connection establishment unit 614 is configured to establish at least two types of local wireless connections with the destination terminal;
所述接收单元611,还具体用于通过所述至少两种类型的本地无线连接中的一种,从所述源终端接收数据,当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续接收所述数据。The receiving unit 611 is further specifically configured to receive data from the source terminal through one of the at least two types of local wireless connections, and when the data transmission is interrupted, through the at least two types of local wireless connections The other of the connections continues to receive the data.
本发明实施例提供的终端,可以参阅图1至图3、图7部分目的终端部分的描述进行理解,本处不做过多赘述。The terminal provided by the embodiment of the present invention can be understood by referring to the description of the target terminal part in FIG. 1 to FIG. 3 and FIG. 7 , and details are not repeated here.
图14示出的是与本发明实施例提供的终端的部分结构的框图。参考图14,终端包括:射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线模块770、处理器780、以及电源790等部件。本领域技术人员可以理解,图14中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。无线模块770可以包括wifi模块、蓝牙模块、NFC模块。FIG. 14 shows a block diagram of a partial structure of a terminal provided by an embodiment of the present invention. 14, the terminal includes: a radio frequency (Radio Frequency, RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless module 770, a processor 780, and a power supply 790 and other components. Those skilled in the art can understand that the terminal structure shown in FIG. 14 does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine some components, or arrange different components. The wireless module 770 may include a wifi module, a Bluetooth module, and an NFC module.
下面结合图14对终端的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the terminal in conjunction with FIG. 14:
RF电路710可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器780处理;另外,将设计上行的数据发送给基站。通常,RF电路710包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(LongTerm Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 710 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 780; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 710 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行终端的各种功能应用以及数据处理。存储器720可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 720 can be used to store software programs and modules, and the processor 780 executes various functional applications and data processing of the terminal by running the software programs and modules stored in the memory 720 . The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of the terminal (such as audio data, phonebook, etc.) and the like. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元730可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 730 may be used to receive input number or character information, and generate key signal input related to user settings and function control of the terminal. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732 . The touch panel 731, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 731 or near the touch panel 731). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 731 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 731 , the input unit 730 may also include other input devices 732 . Specifically, other input devices 732 may include but not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及终端的各种菜单。显示单元740可包括显示面板741,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-EmittingDiode,OLED)等形式来配置显示面板741。进一步的,触控面板731可覆盖显示面板741,当触控面板731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图14中,触控面板731与显示面板741是作为两个独立的部件来实现终端的输入和输入功能,但是在某些实施例中,可以将触控面板731与显示面板741集成而实现终端的输入和输出功能。The display unit 740 may be used to display information input by or provided to the user and various menus of the terminal. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel 731 may cover the display panel 741, and when the touch panel 731 detects a touch operation on or near it, it transmits to the processor 780 to determine the type of the touch event, and then the processor 780 according to the touch event The type provides a corresponding visual output on the display panel 741 . Although in FIG. 14 , the touch panel 731 and the display panel 741 are used as two independent components to realize the input and input functions of the terminal, in some embodiments, the touch panel 731 and the display panel 741 can be integrated and Realize the input and output functions of the terminal.
终端还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在终端移动到耳边时,关闭显示面板741和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, where the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and/or when the terminal moves to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify terminal posture applications (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
音频电路760、扬声器761,传声器762可提供用户与终端之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710以发送给比如另一终端,或者将音频数据输出至存储器720以便进一步处理。The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the terminal. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the speaker 761 converts it into an audio signal for output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 780, and then sent to another terminal through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
终端通过无线模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图14示出了无线模块770,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Through the wireless module 770, the terminal can help users to send and receive e-mails, browse web pages, access streaming media, etc., and it provides users with wireless broadband Internet access. Although FIG. 14 shows the wireless module 770, it can be understood that it is not an essential component of the terminal, and can be completely omitted as required without changing the essence of the invention.
处理器780是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。可选的,处理器780可包括一个或多个处理单元;优选的,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。The processor 780 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire terminal. By running or executing software programs and/or modules stored in the memory 720, and calling data stored in the memory 720, execution Various functions and processing data of the terminal, so as to monitor the terminal as a whole. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 780 .
终端还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through the power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
尽管未示出,终端还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the terminal may also include a camera, a Bluetooth module, etc., which will not be repeated here.
本发明实施例提供中当该终端为源终端时,无线连接建立的方法的第一种可能的实现方式包括:The first possible implementation of the method for establishing a wireless connection when the terminal is the source terminal provided by the embodiment of the present invention includes:
RF电路710可用于通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;The RF circuit 710 can be used to send a local wireless connection configuration message to the destination terminal through an Internet channel or a telecommunication network channel. The local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information. The local wireless connection indicator uses instructing the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information;
RF电路710还可用于接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;The RF circuit 710 is further configured to receive a local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message;
无线模块770用于根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接。The wireless module 770 is configured to establish a local wireless connection with the target terminal according to the local wireless connection establishment request.
基于上述第一种可能的实现方式,在第二种可能的实现方式中,Based on the first possible implementation above, in the second possible implementation,
所述本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息,所述密钥信息用于所述目的终端根据所述密钥信息为所述源终端和所述目的终端进行配对,在配对成功后,向所述源终端发送所述本地无线连接建立请求。The local wireless connection configuration message also carries key information configured by the source terminal for establishing a local wireless connection, and the key information is used by the destination terminal to provide the source terminal and the source terminal with the key information according to the key information. The target terminal performs pairing, and sends the local wireless connection establishment request to the source terminal after the pairing is successful.
基于上述第一种或第二种可能的实现方式,在第三种可能的实现方式中,Based on the first or second possible implementation above, in the third possible implementation,
所述本地无线连接配置消息还携带所述源终端的位置信息,所述源终端的位置信息用于所述目的终端确定与所述源终端的距离,当所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。The local wireless connection configuration message also carries the location information of the source terminal, the location information of the source terminal is used for the destination terminal to determine the distance from the source terminal, when the distance is within the range of establishing a local wireless connection When within, send the local wireless connection establishment request to the source terminal.
基于上述第一种、第二种或第三种可能的实现方式,在第四种可能的实现方式中,Based on the first, second or third possible implementation above, in the fourth possible implementation,
RF电路710具体用于接收所述目的终端根据所述本地无线连接配置消息发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The RF circuit 710 is specifically configured to receive at least two types of local wireless connection establishment requests sent by the destination terminal according to the local wireless connection configuration message, and the at least two types of local wireless connection establishment requests are respectively related to the at least two types of local wireless connection establishment requests. corresponding to a wireless connection type identifier;
无线模块770具体用于根据所述至少两种类型的本地无线连接建立请求,与所述目的终端建立至少两种类型的本地无线连接。The wireless module 770 is specifically configured to establish at least two types of local wireless connections with the destination terminal according to the at least two types of local wireless connection establishment requests.
本发明实施例提供中当该终端为目的终端时,无线连接建立的方法的第一种可能的实现方式包括:When the terminal is the destination terminal provided in the embodiment of the present invention, the first possible implementation of the method for establishing a wireless connection includes:
RF电路710可用于通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;The RF circuit 710 may be configured to receive a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information;
处理器780用于根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;The processor 780 is configured to parse the local wireless connection configuration message according to the local wireless connection indicator, and obtain the local wireless connection type information;
RF电路710还可用于根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;The RF circuit 710 is further configured to send a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information;
无线模块770可用于与所述源终端建立本地无线连接。The wireless module 770 can be used to establish a local wireless connection with the source terminal.
基于上述第一种可能的实现方式,在第二种可能的实现方式中,Based on the first possible implementation above, in the second possible implementation,
处理器780还用于当本地无线连接配置消息还携带所述源终端配置的用于建立本地无线连接的密钥信息时,获得所述密钥信息,根据所述密钥信息为所述源终端和所述目的终端进行配对;The processor 780 is further configured to obtain the key information when the local wireless connection configuration message also carries the key information configured by the source terminal for establishing the local wireless connection, and provide the source terminal with the key information according to the key information. pairing with the target terminal;
无线模块770可用可用于在配对成功后,向所述源终端发送所述本地无线连接建立请求。The wireless module 770 may be configured to send the local wireless connection establishment request to the source terminal after the pairing is successful.
基于上述第一种或第二种可能的实现方式,在第三种可能的实现方式中,Based on the first or second possible implementation above, in the third possible implementation,
处理器780还用于在所述本地无线连接配置消息还携带所述源终端的位置信息,所述获得所述无线连接类型标识时,获得所述源终端的位置信息,根据所述源终端的位置信息,确定与所述源终端的距离;The processor 780 is further configured to carry location information of the source terminal in the local wireless connection configuration message, obtain the location information of the source terminal when the wireless connection type identifier is obtained, and obtain the location information of the source terminal according to the location information of the source terminal location information, determining a distance from said source terminal;
无线模块770可用具体用于当所述距离在建立本地无线连接的范围内时,向所述源终端发送所述本地无线连接建立请求。The wireless module 770 may be specifically configured to send the local wireless connection establishment request to the source terminal when the distance is within the range for establishing a local wireless connection.
基于上述第一种、第二种或第三种可能的实现方式,在第四种可能的实现方式中,Based on the first, second or third possible implementation above, in the fourth possible implementation,
RF电路710具体用于在所述本地无线连接类型信息包括至少两个无线连接类型标识时,根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应。The RF circuit 710 is specifically configured to send at least two types of local wireless connection establishment to the source terminal according to the at least two wireless connection type identifiers when the local wireless connection type information includes at least two wireless connection type identifiers. request, the at least two types of local wireless connection establishment requests correspond to the at least two wireless connection type identifiers respectively.
无线模块770具体用于与所述目的终端建立至少两种类型的本地无线连接The wireless module 770 is specifically configured to establish at least two types of local wireless connections with the destination terminal
与现有技术中需要基于搜索才能建立两终端之间的无线连接相比,本发明实施例提供的无线连接建立的方法,通过公共消息通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的无线连接,不需要源终端与目的终端互相搜索,从而提高了本地无线连接建立的效率,并且降低了本地无线连接建立的复杂度。Compared with the prior art that needs to be based on searching to establish a wireless connection between two terminals, the method for establishing a wireless connection provided by the embodiment of the present invention sends the local wireless connection configuration message to the destination terminal through a public message channel, and the destination terminal The wireless connection with the source terminal is automatically started according to the local wireless connection configuration message, without the need for the source terminal and the destination terminal to search each other, thereby improving the efficiency of establishing the local wireless connection and reducing the complexity of establishing the local wireless connection.
本发明实施例提供中当该终端为源终端时,数据传输的方法的第一种可能的实现方式包括:In the embodiment of the present invention, when the terminal is the source terminal, the first possible implementation of the data transmission method includes:
RF电路710用于通过互联网通道或电信网通道向目的终端发送本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息,所述本地无线连接指示标识用于指示所述目的终端解析所述本地无线连接配置消息,并根据获得的所述本地无线连接类型信息所指示的本地无线连接类型,发起与所述源终端的本地无线连接;The RF circuit 710 is configured to send a local wireless connection configuration message to the destination terminal through an Internet channel or a telecommunication network channel, the local wireless connection configuration message carries a local wireless connection indicator and local wireless connection type information, and the local wireless connection indicator uses instructing the destination terminal to parse the local wireless connection configuration message, and initiate a local wireless connection with the source terminal according to the local wireless connection type indicated by the obtained local wireless connection type information;
RF电路710还用于接收所述目的终端根据所述本地无线连接配置消息发送的本地无线连接建立请求;The RF circuit 710 is further configured to receive a local wireless connection establishment request sent by the destination terminal according to the local wireless connection configuration message;
无线模块770用于根据所述本地无线连接建立请求,与所述目的终端建立本地无线连接;The wireless module 770 is configured to establish a local wireless connection with the destination terminal according to the local wireless connection establishment request;
无线模块770还用于通过所述源终端与所述目的终端建立的本地无线连接,向所述目的终端发送数据。The wireless module 770 is further configured to send data to the destination terminal through the local wireless connection established between the source terminal and the destination terminal.
基于上述第一种可能的实现方式,在第二种可能的实现方式中,Based on the first possible implementation above, in the second possible implementation,
RF电路710还用于在所述本地无线连接类型信息包括至少两个无线连接类型标识时,接收所述目的终端发送的至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The RF circuit 710 is further configured to receive at least two types of local wireless connection establishment requests sent by the destination terminal when the local wireless connection type information includes at least two wireless connection type identifiers, the at least two types of local The wireless connection establishment request corresponds to the at least two wireless connection type identifiers respectively;
RF电路710还用于接收所述目的终端发送的与所述至少两个无线连接类型标识分别对应的至少两种类型的本地无线连接建立请求;The RF circuit 710 is further configured to receive at least two types of local wireless connection establishment requests sent by the destination terminal and respectively corresponding to the at least two wireless connection type identifiers;
无线模块770可用还用于通过所述至少两种类型的本地无线连接中的一种,向所述目的终端发送数据;当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续发送所述数据。The wireless module 770 can also be used to send data to the destination terminal through one of the at least two types of local wireless connections; when the data transmission is interrupted, through the at least two types of local wireless connections The other continues to send the data.
本发明实施例提供中当该终端为目的终端时,数据传输的方法的第一种可能的实现方式包括:In the embodiment of the present invention, when the terminal is the destination terminal, the first possible implementation of the data transmission method includes:
RF电路710用于通过互联网通道或电信网通道从源终端接收本地无线连接配置消息,所述本地无线连接配置消息携带本地无线连接指示标识和本地无线连接类型信息;The RF circuit 710 is configured to receive a local wireless connection configuration message from the source terminal through an Internet channel or a telecommunication network channel, where the local wireless connection configuration message carries a local wireless connection indication identifier and local wireless connection type information;
处理器780用于根据所述本地无线连接指示标识解析所述本地无线连接配置消息,获得所述本地无线连接类型信息;The processor 780 is configured to parse the local wireless connection configuration message according to the local wireless connection indicator, and obtain the local wireless connection type information;
RF电路710还用于根据所述本地无线连接类型信息所指示的本地无线连接类型,向所述源终端发送本地无线连接建立请求;The RF circuit 710 is further configured to send a local wireless connection establishment request to the source terminal according to the local wireless connection type indicated by the local wireless connection type information;
无线模块770用于与所述源终端建立本地无线连接,通过所述源终端与所述目的终端建立的本地无线连接,从所述源终端接收数据。The wireless module 770 is configured to establish a local wireless connection with the source terminal, and receive data from the source terminal through the local wireless connection established between the source terminal and the destination terminal.
基于上述第一种可能的实现方式,在第二种可能的实现方式中,Based on the first possible implementation above, in the second possible implementation,
RF电路710还用于所述本地无线连接类型信息包括至少两个无线连接类型标识时,根据所述至少两个无线连接类型标识,向所述源终端发送至少两种类型的本地无线连接建立请求,所述至少两种类型的本地无线连接建立请求分别与所述至少两个无线连接类型标识对应;The RF circuit 710 is further configured to send at least two types of local wireless connection establishment requests to the source terminal according to the at least two wireless connection type identifiers when the local wireless connection type information includes at least two wireless connection type identifiers , the at least two types of local wireless connection establishment requests correspond to the at least two wireless connection type identifiers respectively;
无线模块770用于与所述目的终端建立至少两种类型的无线连接;通过所述至少两种类型的本地无线连接中的一种,从所述源终端接收数据;当数据传输中断时,通过所述至少两种类型的本地无线连接中的另外一种继续接收所述数据。The wireless module 770 is configured to establish at least two types of wireless connections with the destination terminal; through one of the at least two types of local wireless connections, receive data from the source terminal; when data transmission is interrupted, through The other of the at least two types of local wireless connections continues to receive the data.
与现有技术中只能基于搜索才能建立本地无线连接,然后进行数据传输,或者通过第三网络才能进行数据传输相比,本发明实施例提供的数据传输的方法,通过公共消息通道向目的终端发送所述本地无线连接配置消息,目的终端根据该本地无线连接配置消息自动启动与源终端的无线连接,源终端与目的终端通过该本地无线连接传输待传输数据,既提高了本地无线连接建立的效率,又避免了数据通过互联网(如:社交应用)进行传输,提高了数据传输的安全性。Compared with the prior art where a local wireless connection can only be established based on a search, and then data transmission can be performed, or data transmission can only be performed through a third network, the data transmission method provided by the embodiment of the present invention sends a message to the destination terminal through a public message channel. Send the local wireless connection configuration message, the destination terminal automatically starts the wireless connection with the source terminal according to the local wireless connection configuration message, the source terminal and the destination terminal transmit the data to be transmitted through the local wireless connection, which not only improves the local wireless connection establishment Efficiency, avoiding the transmission of data through the Internet (such as: social applications), and improving the security of data transmission.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件(例如处理器)来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware (such as a processor) through a program, and the program can be stored in a computer-readable storage medium, The storage medium may include: ROM, RAM, magnetic disk or optical disk, etc.
以上对本发明实施例所提供的无线连接建立的方法、数据传输的方法以及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method for establishing a wireless connection, the method for data transmission, and the terminal provided by the embodiment of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiment is only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.
Claims (24)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410776519.9A CN104581993B (en) | 2014-12-15 | 2014-12-15 | Method for establishing wireless connection, method for data transmission, and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410776519.9A CN104581993B (en) | 2014-12-15 | 2014-12-15 | Method for establishing wireless connection, method for data transmission, and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104581993A true CN104581993A (en) | 2015-04-29 |
| CN104581993B CN104581993B (en) | 2019-05-03 |
Family
ID=53096917
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410776519.9A Active CN104581993B (en) | 2014-12-15 | 2014-12-15 | Method for establishing wireless connection, method for data transmission, and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104581993B (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106790639A (en) * | 2017-01-11 | 2017-05-31 | 杭州腾展科技股份有限公司 | Data transmission method and system |
| CN107222936A (en) * | 2017-06-26 | 2017-09-29 | 广东欧珀移动通信有限公司 | A kind of data processing method, device and terminal |
| CN108184225A (en) * | 2017-12-29 | 2018-06-19 | 飞天诚信科技股份有限公司 | Cancel the method and intelligent terminal of bluetooth connection in a kind of Bluetooth connection process in real time |
| CN110505712A (en) * | 2018-05-17 | 2019-11-26 | 华为技术有限公司 | A method and terminal for transferring files |
| CN111263344A (en) * | 2020-05-06 | 2020-06-09 | 成都极米科技股份有限公司 | Method and system for connecting wireless local area network based on NFC message transmission and projection equipment |
| CN111970645A (en) * | 2020-08-31 | 2020-11-20 | 深圳市紫光新能源技术有限公司 | Bluetooth positioning gateway, positioning gateway group and mine positioning system |
| CN113473428A (en) * | 2018-06-13 | 2021-10-01 | 华为技术有限公司 | Transmission control method and equipment |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101594578A (en) * | 2008-05-30 | 2009-12-02 | 深圳华为通信技术有限公司 | The method for building up of direct connected link, station equipment and communication system |
| US20110292835A1 (en) * | 2010-05-31 | 2011-12-01 | Huawei Device Co.,Ltd. | Method, and device for configuring wifi parameters |
| CN102332940A (en) * | 2011-07-29 | 2012-01-25 | 上海合合信息科技发展有限公司 | Data transmission method and system making use of Bluetooth wireless technology |
| CN102404725A (en) * | 2011-11-08 | 2012-04-04 | 复旦大学 | Method for safely establishing WiFi connection by SSID in application program |
| CN103281752A (en) * | 2013-05-28 | 2013-09-04 | 北京推博信息技术有限公司 | WIFI (wireless fidelity) network access method and device, electronic equipment and communication system |
| CN103281759A (en) * | 2013-05-28 | 2013-09-04 | 北京推博信息技术有限公司 | WIFI (wireless fidelity) network access method and device, electronic equipment and communication system |
-
2014
- 2014-12-15 CN CN201410776519.9A patent/CN104581993B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101594578A (en) * | 2008-05-30 | 2009-12-02 | 深圳华为通信技术有限公司 | The method for building up of direct connected link, station equipment and communication system |
| CN101594578B (en) * | 2008-05-30 | 2013-08-28 | 华为终端有限公司 | Establishment method of direct connected link, station device and communication system |
| US20110292835A1 (en) * | 2010-05-31 | 2011-12-01 | Huawei Device Co.,Ltd. | Method, and device for configuring wifi parameters |
| CN102332940A (en) * | 2011-07-29 | 2012-01-25 | 上海合合信息科技发展有限公司 | Data transmission method and system making use of Bluetooth wireless technology |
| CN102404725A (en) * | 2011-11-08 | 2012-04-04 | 复旦大学 | Method for safely establishing WiFi connection by SSID in application program |
| CN103281752A (en) * | 2013-05-28 | 2013-09-04 | 北京推博信息技术有限公司 | WIFI (wireless fidelity) network access method and device, electronic equipment and communication system |
| CN103281759A (en) * | 2013-05-28 | 2013-09-04 | 北京推博信息技术有限公司 | WIFI (wireless fidelity) network access method and device, electronic equipment and communication system |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106790639A (en) * | 2017-01-11 | 2017-05-31 | 杭州腾展科技股份有限公司 | Data transmission method and system |
| CN107222936A (en) * | 2017-06-26 | 2017-09-29 | 广东欧珀移动通信有限公司 | A kind of data processing method, device and terminal |
| CN107222936B (en) * | 2017-06-26 | 2020-05-05 | Oppo广东移动通信有限公司 | Data processing method and device and terminal |
| CN108184225A (en) * | 2017-12-29 | 2018-06-19 | 飞天诚信科技股份有限公司 | Cancel the method and intelligent terminal of bluetooth connection in a kind of Bluetooth connection process in real time |
| CN108184225B (en) * | 2017-12-29 | 2021-09-28 | 飞天诚信科技股份有限公司 | Method for canceling Bluetooth connection in real time in Bluetooth connection process and intelligent terminal |
| CN110505712A (en) * | 2018-05-17 | 2019-11-26 | 华为技术有限公司 | A method and terminal for transferring files |
| CN113473428A (en) * | 2018-06-13 | 2021-10-01 | 华为技术有限公司 | Transmission control method and equipment |
| CN113473428B (en) * | 2018-06-13 | 2024-01-30 | 华为技术有限公司 | A transmission control method and device |
| CN111263344A (en) * | 2020-05-06 | 2020-06-09 | 成都极米科技股份有限公司 | Method and system for connecting wireless local area network based on NFC message transmission and projection equipment |
| CN111970645A (en) * | 2020-08-31 | 2020-11-20 | 深圳市紫光新能源技术有限公司 | Bluetooth positioning gateway, positioning gateway group and mine positioning system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104581993B (en) | 2019-05-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102832975B (en) | Data transmission method, data transmission device and terminal with touch screen | |
| US10069818B2 (en) | Method, system, device, and terminal for network initialization of multimedia playback device | |
| CN104581993A (en) | Method for establishing wireless connection, method for data transmission, and terminal | |
| US20170316781A1 (en) | Remote electronic service requesting and processing method, server, and terminal | |
| JP2018513499A (en) | Communication message transmission method and wearable device | |
| WO2016150270A1 (en) | Method and apparatus for processing group session message | |
| WO2018120905A1 (en) | Message reminding method for terminal, and terminal | |
| CN107645551A (en) | Document transmission method and device | |
| CN112691363A (en) | Cross-terminal switching method and related device for cloud games | |
| US9961177B2 (en) | Method and device for adding contact information | |
| CN113873684B (en) | Connection establishment method and device based on local area network, terminal equipment and storage medium | |
| CN106445743A (en) | Data backup transmission method and mobile terminal | |
| CN104702678B (en) | Document transmission method and device | |
| CN106507447A (en) | A Wi-Fi hotspot connection method and mobile terminal | |
| CN104917905B (en) | Processing method, terminal and the server of Stranger Calls | |
| WO2014183439A1 (en) | Method, apparatus and system for switching function mode | |
| CN106331302B (en) | A method and device for adding contacts | |
| CN108270764B (en) | Application login method, server and mobile terminal | |
| CN107317828B (en) | File downloading method and device | |
| CN105376138A (en) | Contact adding method, data transmission method, and user equipment | |
| CN103699988A (en) | Numeric value transfer method, terminal, server and system | |
| CN106714279A (en) | A hotspot network switching method and terminal equipment | |
| CN106713386A (en) | Projection equipment binding communication method, projection equipment and intelligent terminal | |
| US20140344423A1 (en) | Method, apparatus and system for switching function mode | |
| CN105703808A (en) | Method and device for transmitting data |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |