WO2015032196A1 - Method for mobile network to automatically establish connection, and terminal - Google Patents

Method for mobile network to automatically establish connection, and terminal Download PDF

Info

Publication number
WO2015032196A1
WO2015032196A1 PCT/CN2014/074710 CN2014074710W WO2015032196A1 WO 2015032196 A1 WO2015032196 A1 WO 2015032196A1 CN 2014074710 W CN2014074710 W CN 2014074710W WO 2015032196 A1 WO2015032196 A1 WO 2015032196A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
information
authentication information
broadcast
audio
Prior art date
Application number
PCT/CN2014/074710
Other languages
French (fr)
Chinese (zh)
Inventor
张清
汪香君
许剑峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015032196A1 publication Critical patent/WO2015032196A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/069Authentication using certificates or pre-shared keys
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

Disclosed are a method for a mobile network to automatically establish a connection, and a terminal, which can solve the problems of a complex operation and a low efficiency due to the fact that, in the process of network connection between an access point terminal and other terminals, a user is required to manually set a lot of information and operations to complete this network connection process. In the technical solution of the present invention, an access point terminal can broadcast authentication information which is needed for accessing other terminals to the network connection. After receiving the broadcast, other terminals can acquire the authentication information from the broadcasted information and then establish a network connection with the terminal which sends the broadcast, according to the acquired authentication information. The present invention is mainly applied to the process of establishing a network connection between terminal devices.

Description

一种移动网络自动建立连接的方法及终端 技术领域  Method and terminal for automatically establishing connection of mobile network
本发明涉及通信领域, 尤其涉及一种移动网络自动建立连接的方法及终 端。 背景技术  The present invention relates to the field of communications, and in particular, to a method and a terminal for automatically establishing a connection in a mobile network. Background technique
随着 3G( 3rd-generation,第三代移动通信技术)、 4G( 4th generation, 第四代移动通信技术)技术的不断发展, 智能终端的普及率越来越高。 同一 公司、 同一家庭或者同一个人都有能力同时拥有两个或两个以上智能终端。 有了多个智能终端之后, 用户就可以在多个智能终端之间完成分享照片、 分 享音乐或者协作游戏等活动, 从而获得较单机操作而言更为丰富的业务体验。 但是, 要想获得更好的业务体验之前, 必须要让多个智能终端连接到同 一个网络中, 才能使多个智能终端之间互相通信。  With the continuous development of 3G (3rd-generation, 3rd generation mobile communication technology) and 4G (4th generation, 4th generation mobile communication technology) technology, the popularity of intelligent terminals is getting higher and higher. The same company, the same family, or the same person has the ability to have two or more smart terminals at the same time. With multiple smart terminals, users can share photos, share music, or collaborate games between multiple smart devices, resulting in a richer business experience than stand-alone operation. However, in order to get a better business experience, multiple intelligent terminals must be connected to the same network in order to allow multiple intelligent terminals to communicate with each other.
现有建立网络连接的一种方法是使用 wifi (Wireless Fidelity, 无线保 真)技术实现终端之间的网络连接, 具体为: 用户在多个终端中选择一个作 为接入终端, 例 ¾。WIFI AP (Wireless Fidelity Access Point, 无线保真接 入点), 并手动为该接入终端设置身份认证信息, 例如 WIFI AP名称和密码。 然后用户在其它终端上从搜索到的所有可连接的终端中通过 WIFI AP名称来 选取接入终端, 之后再使用同样的身份认证信息连接到接入终端上, 这样所 有终端就都可以通过接入终端连接到同一个网络中, 从而使多个终端之间能 够互相通信。  One way to establish a network connection is to use wifi (Wireless Fidelity) technology to implement network connection between terminals. Specifically, the user selects one of the multiple terminals as the access terminal, for example. WIFI AP (Wireless Fidelity Access Point), and manually set identity authentication information for the access terminal, such as WIFI AP name and password. Then, the user selects the access terminal by using the WIFI AP name from all the connected terminals that are searched on the other terminal, and then connects to the access terminal by using the same identity authentication information, so that all terminals can access the terminal. The terminals are connected to the same network, so that multiple terminals can communicate with each other.
现有建立网络连接的一种方法是使用蓝牙技术实现终端互相通信, 具体 为: 用户在第一终端上手动设置配对信息, 例如蓝牙名称和配对密钥, 然后 用户在另一个第二终端上从搜索到的所有可连接的终端中通过蓝牙名称来选 取第一终端, 之后用户再使用同样的配对信息与第一终端建立蓝牙连接, 这 样两个终端之间就可以连接到同一个网络中, 从而实现互相通信。 在实现现有方法的过程中, 发明人发现现有技术中至少存在如下问题: 在接入点的终端和其他终端进行网络连接的过程中, 都需要用户手动进行很 多信息设置和操作才能完成这个网络连接过程, 这样就使得整个网络连接操 作极为繁瑣, 操作效率低。 One method for establishing a network connection is to implement communication between terminals by using Bluetooth technology. Specifically, the user manually sets pairing information, such as a Bluetooth name and a pairing key, on the first terminal, and then the user is on the other second terminal. The first terminal is selected by the Bluetooth name in all the connected terminals that are searched, and then the user establishes a Bluetooth connection with the first terminal by using the same pairing information, so that the two terminals can be connected to the same network, thereby Realize communication with each other. In the process of implementing the existing method, the inventors found that at least the following problems exist in the prior art: In the process of network connection between the terminal of the access point and other terminals, the user needs to manually perform a lot of information setting and operation to complete the network connection process, which makes the entire network connection operation extremely cumbersome and has low operation efficiency.
发明内容 Summary of the invention
本发明实施例提供一种移动网络自动建立连接的方法及终端, 能够解决 在需要连接终端和被连接终端进行网络连接的过程中, 都需要用户手动进行 很多信息设置和操作才能完成这个网络连接过程而导致的操作繁瑣、 效率低 的问题。  The embodiment of the invention provides a method and a terminal for automatically establishing a connection in a mobile network, which can solve the problem that in the process of connecting a terminal and the connected terminal to perform network connection, the user needs to manually perform a lot of information setting and operation to complete the network connection process. The resulting operation is cumbersome and inefficient.
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
第一方面, 本发明实施例提供了一种移动网络自动建立连接的方法, 包 括:  In a first aspect, an embodiment of the present invention provides a method for automatically establishing a connection in a mobile network, including:
第一终端获取第一认证信息;  The first terminal acquires the first authentication information;
所述第一终端将所述第一认证信息进行编码, 并将编码结果进行广播, 以使得第二终端在接收到所述编码结果之后, 对所述编码结果进行解码, 用 以获取所述第一认证信息;  The first terminal encodes the first authentication information, and broadcasts the encoded result, so that after receiving the encoded result, the second terminal decodes the encoded result, to obtain the first An authentication information;
所述第一终端接收第二终端发送的网络连接建立请求, 所述网络连接建 立请求携带有第二认证信息;  Receiving, by the first terminal, a network connection establishment request sent by the second terminal, where the network connection establishment request carries the second authentication information;
根据所述第一认证信息, 所述第一终端判断所述第二认证信息是否合法; 若确定所述第二认证信息合法, 则所述第一终端与所述第二终端建立网 络连接。  The first terminal determines whether the second authentication information is legal according to the first authentication information. If the second authentication information is determined to be legal, the first terminal establishes a network connection with the second terminal.
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述方法还包 括:  In conjunction with the first aspect, in a first possible implementation of the first aspect, the method further includes:
所述第一终端获取所述第一终端的标识信息;  Obtaining, by the first terminal, identifier information of the first terminal;
所述第一终端将所述标识信息进行编码, 并将编码结果进行广播。  The first terminal encodes the identification information and broadcasts the encoded result.
结合第一方面或第一方面的第一种可能的实现方式, 在第一方面的第二 种可能的实现方式中, 所述将所述第一认证信息进行编码包括:  In combination with the first aspect or the first possible implementation of the first aspect, in the second possible implementation manner of the first aspect, the encoding, by the first authentication information, includes:
对所述第一认证信息进行二进制编码, 生成二进制序列; 则所述将编码结果进行广播包括: Binding the first authentication information to generate a binary sequence; Then, the broadcasting the encoded result includes:
所述第一终端将所述二进制序列转换成第一音频信息, 所述第一音频信 息包括第一有声音频片段和静音音频片段中的至少一种; 并且第一有声音频 片段和静音音频片段在第一音频信息中的出现规律, 与在该第一音频信息对 应的二进制序列中的两种数值的出现规律相同;  Converting, by the first terminal, the binary sequence into first audio information, the first audio information comprising at least one of a first voiced audio segment and a silenced audio segment; and the first voiced audio segment and the silenced audio segment are The occurrence rule in the first audio information is the same as the appearance rule of the two values in the binary sequence corresponding to the first audio information;
将所述第一音频信息进行广播。  The first audio information is broadcast.
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的实 现方式中, 所述第一有声音频片段为持续预设时长并具有 19KHz音频频率的 音频片段。  In conjunction with the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the first voiced audio segment is an audio segment that has a preset duration and has an audio frequency of 19 KHz.
结合第一方面或第一方面的第一至三种中任意一种可能的实现方式, 在 第一方面的第四种可能的实现方式中, 在所述获取第一认证信息之前, 还包 括:  With reference to the first aspect, or any one of the first to the third aspects of the first aspect, in a fourth possible implementation manner of the first aspect, before the obtaining the first authentication information, the method further includes:
在确定接收到所述广播请求消息时, 所述第一终端获取第一认证信息。 结合第一方面的第四种可能的实现方式, 在第一方面的第五种可能的实 现方式中, 所述广播请求消息包括第二音频信息, 所述第二音频信息用于请 求第一终端广播所述第一认证信息, 所述第二音频信息包括第二有声音频片 段, 所述第二有声音频片段与所述第一有声音频片段使用的频率不同。  When it is determined that the broadcast request message is received, the first terminal acquires the first authentication information. In conjunction with the fourth possible implementation of the first aspect, in a fifth possible implementation manner of the first aspect, the broadcast request message includes second audio information, where the second audio information is used to request the first terminal The first authentication information is broadcasted, the second audio information includes a second voiced audio segment, and the second voiced audio segment is used at a different frequency than the first voiced audio segment.
第二方面, 本发明实施例提供了一种移动网络自动建立连接的方法, 包 括:  In a second aspect, an embodiment of the present invention provides a method for automatically establishing a connection in a mobile network, including:
第二终端接收广播信息, 所述广播信息包括经过编码的认证信息; 所述第二终端从所述广播信息中提取所述经过编码的认证信息, 并对提 取结果进行解码, 得到所述认证信息;  The second terminal receives the broadcast information, where the broadcast information includes the encoded authentication information; the second terminal extracts the encoded authentication information from the broadcast information, and decodes the extraction result to obtain the authentication information. ;
所述第二终端确定广播所述认证信息的第一终端, 并向所述第一终端发 送网络连接建立请求, 所述网络连接建立请求包括所述认证信息, 以使得所 述第一终端在确认所述认证信息合法时, 所述第一终端与所述第二终端建立 网络连接。  Determining, by the second terminal, the first terminal that broadcasts the authentication information, and sending a network connection establishment request to the first terminal, where the network connection establishment request includes the authentication information, so that the first terminal is in the confirmation When the authentication information is legal, the first terminal establishes a network connection with the second terminal.
结合第二方面, 在第二方面的第一种可能的实现方式中, 所述广播信息 包括有声音频片段和静音音频片段中的至少一种; With reference to the second aspect, in a first possible implementation manner of the second aspect, the broadcast information Include at least one of an audio audio segment and a silent audio segment;
所述从所述广播信息中提取所述经过编码的认证信息包括:  The extracting the encoded authentication information from the broadcast information includes:
所述第二终端在预设频段对所述广播信息进行滤波处理;  The second terminal performs filtering processing on the broadcast information in a preset frequency band;
所述第二终端从滤波结果中提取有声音频片段和静音音频片段; 其中, 所述声音频片段和静音音频片段的出现规律用于指示所述经过编码的认证信 息;  The second terminal extracts the voiced audio segment and the silenced audio segment from the filtered result; wherein the appearance rule of the audio audio segment and the silent audio segment is used to indicate the encoded authentication information;
则所述对提取结果进行解码, 得到所述认证信息包括:  Then, the decoding result is decoded, and the obtaining the authentication information includes:
所述第二终端将提取到的有声音频片段和静音音频片段转换为二进制序 列; 其中, 在所述二进制序列中的两种数值的出现规律, 与在所述滤波结果 中提取到的有声音频片段和静音音频片段的出现规律相同;  The second terminal converts the extracted voiced audio segment and the mute audio segment into a binary sequence; wherein, the occurrence rule of the two values in the binary sequence, and the voiced audio segment extracted in the filtering result The appearance of the mute audio segment is the same;
所述第二终端对所述二进制序列进行二进制解码, 得到所述认证信息。 结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能的实 现方式中, 所述方法中的所述有声音频片段为持续预设时长并具有 19KHz音 频频率的音频片段。  The second terminal performs binary decoding on the binary sequence to obtain the authentication information. With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the voiced audio segment in the method is an audio segment that has a preset preset duration and has an audio frequency of 19 kHz. .
结合第二方面的第一种可能的实现方式或者第二方面的第二种可能的实 现方式, 在第二方面的第三种可能的实现方式中, 所述确定广播所述认证信 息的第一终端包括:  With reference to the first possible implementation of the second aspect or the second possible implementation of the second aspect, in a third possible implementation manner of the second aspect, the determining, The terminal includes:
当所述广播信息中携带有经过编码的第一终端的标识信息时, 所述第二 终端从所述广播信息中提取所述经过编码的第一终端的标识信息, 并对提取 的所述经过编码的第一终端的标识信息进行解码, 得到所述第一终端的标识 信息; 根据所述第一终端的标识信息, 从可检测到的终端中选取与所述第一 终端的标识信息对应的第一终端;  When the broadcast information carries the identifier information of the encoded first terminal, the second terminal extracts the identifier information of the encoded first terminal from the broadcast information, and extracts the And the identifier information of the first terminal is decoded to obtain the identifier information of the first terminal, and the identifier information corresponding to the identifier information of the first terminal is selected from the detectable terminals according to the identifier information of the first terminal. First terminal;
或者, 所述第二终端根据第二终端内存储的预设标识信息, 从可检测到 的终端中选取与所述预设标识信息对应的第一终端。  Or the second terminal selects, according to the preset identifier information stored in the second terminal, the first terminal corresponding to the preset identifier information from the detectable terminal.
结合第二方面或第二方面的第一至三种中任意一种可能的实现方式, 在 第二方面的第四种可能的实现方式中, 在所述接收广播信息之前, 还包括: 所述第二终端生成广播请求消息, 并将所述广播请求消息进行广播, 所 述广播请求消息用于请求接收到所述广播请求消息的第一终端广播所述第一 终端的认证信息, 所述认证信息为与所述第一终端建立网络连接关系所需的 认证信息。 With reference to the second aspect or any one of the first to the third aspects of the second aspect, in a fourth possible implementation manner of the second aspect, before the receiving the broadcast information, the method further includes: The second terminal generates a broadcast request message, and broadcasts the broadcast request message. The broadcast request message is used to request that the first terminal that receives the broadcast request message broadcasts the authentication information of the first terminal, where the authentication information is authentication information required to establish a network connection relationship with the first terminal.
结合第二方面的第四种可能的实现方式, 在第二方面的第五种可能的实 现方式中, 所述广播请求消息包括有声音频片段, 并且, 广播请求消息中的 有声音频片段与广播消息中的有声音频片段使用的频率不同。  With reference to the fourth possible implementation of the second aspect, in a fifth possible implementation manner of the second aspect, the broadcast request message includes a voiced audio segment, and the voiced audio segment and the broadcast message in the broadcast request message The audio clips in use are used at different frequencies.
第三方面, 本发明实施例提供了一种移动网络自动建立连接的装置, 包 括:  In a third aspect, an embodiment of the present invention provides a device for automatically establishing a connection in a mobile network, including:
获取单元, 用于获取第一认证信息;  An obtaining unit, configured to acquire first authentication information;
编码单元, 用于将所述获取单元获取到的第一认证信息进行编码; 广播单元, 用于将所述编码单元得到的编码结果进行广播;  a coding unit, configured to encode the first authentication information acquired by the acquiring unit, and a broadcast unit, configured to broadcast the encoded result obtained by the coding unit;
接收单元, 用于接收第二终端发送的网络连接建立请求, 所述网络连接 建立请求携带有第二认证信息;  a receiving unit, configured to receive a network connection establishment request sent by the second terminal, where the network connection establishment request carries the second authentication information;
判断单元, 用于根据所述获取单元获取到的第一认证信息, 判断所述接 收单元接收的第二认证信息是否合法;  a determining unit, configured to determine, according to the first authentication information acquired by the acquiring unit, whether the second authentication information received by the receiving unit is legal;
建立连接单元, 用于在所述判断单元判断第二认证信息合法时, 与所述 第二终端建立网络连接。  Establishing a connection unit, configured to establish a network connection with the second terminal when the determining unit determines that the second authentication information is legal.
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述获取单元 还用于, 获取移动网络自动建立连接的装置的标识信息;  With reference to the third aspect, in a first possible implementation manner of the third aspect, the acquiring unit is further configured to: obtain, by the mobile network, identifier information of a device that automatically establishes a connection;
所述编码单元还用于, 将所述获取单元获取到的标识信息进行编码; 结合第三方面或第三方面的第一种可能的实现方式, 在第三方面的第二 种可能的实现方式中, 所述编码单元具体用于对所述第一认证信息进行二进 制编码, 生成二进制序列。  The coding unit is further configured to: encode the identifier information acquired by the acquiring unit; and combine the third aspect or the first possible implementation manner of the third aspect, the second possible implementation manner of the third aspect The coding unit is specifically configured to perform binary coding on the first authentication information to generate a binary sequence.
所述广播单元具体包括:  The broadcast unit specifically includes:
转换子单元, 用于将所述编码单元生成的二进制序列转换成第一音频信 息, 所述第一音频信息包括第一有声音频片段和静音音频片段中的至少一种; 广播子单元, 用于将所述转换子单元转换得到的第一音频信息进行广播。 结合第三方面的第二种可能的实现方式, 在第三方面的第三种可能的实 现方式中, 所述第一有声音频片段为持续预设时长并具有 19KHz音频频率的 音频片段。 a conversion subunit, configured to convert a binary sequence generated by the coding unit into first audio information, the first audio information including at least one of a first voiced audio segment and a silence audio segment; a broadcast subunit, configured to broadcast the first audio information converted by the conversion subunit. In conjunction with the second possible implementation of the third aspect, in a third possible implementation of the third aspect, the first voiced audio segment is an audio segment that has a preset duration and has an audio frequency of 19 KHz.
结合第三方面或第三方面的第一至三种中任意一种可能的实现方式, 在 第三方面的第四种可能的实现方式中, 所述装置还包括:  With reference to the third aspect or any one of the first to the third aspects of the third aspect, in a fourth possible implementation manner of the third aspect, the device further includes:
检测单元, 用于检测是否接收到广播请求消息;  a detecting unit, configured to detect whether a broadcast request message is received;
所述获取单元具体用于在所述检测单元确定接收到第二音频信息广播请 求消息时, 获取第一认证信息。  The obtaining unit is specifically configured to acquire the first authentication information when the detecting unit determines that the second audio information broadcast request message is received.
结合第三方面的第四种可能的实现方式, 在第三方面的第五种可能的实 现方式中, 所述广播请求消息包括第二音频信息, 所述第二音频信息用于请 求第一终端广播所述第一认证信息, 所述第二音频信息包括第二有声音频片 段, 所述第二有声音频片段与所述第一有声音频片段使用的频率不同。  With the fourth possible implementation of the third aspect, in a fifth possible implementation manner of the third aspect, the broadcast request message includes second audio information, where the second audio information is used to request the first terminal The first authentication information is broadcasted, the second audio information includes a second voiced audio segment, and the second voiced audio segment is used at a different frequency than the first voiced audio segment.
第四方面, 本发明实施例提供了一种移动网络自动建立连接的装置, 包 括:  In a fourth aspect, an embodiment of the present invention provides a device for automatically establishing a connection in a mobile network, including:
接收单元,用于接收广播信息,所述广播信息包括经过编码的认证信息; 提取单元, 用于从所述接收单元接收到的广播信息中提取所述经过编码 的认证信息;  a receiving unit, configured to receive broadcast information, where the broadcast information includes encoded authentication information, and an extracting unit, configured to extract the encoded authentication information from the broadcast information received by the receiving unit;
解码单元, 用于对所述提取单元提取得到的结果进行解码, 得到所述认 证信息;  a decoding unit, configured to decode the result extracted by the extracting unit to obtain the authentication information;
确定单元, 用于确定广播所述解码单元解码得到的认证信息的第一终端; 发送单元, 用于向所述选取单元选取的第一终端发送网络连接建立请求 , 所述网络连接建立请求包括所述认证信息, 以使得所述第一终端在确认所述 认证信息合法时, 所述第一终端与所述第二终端建立网络连接。  a determining unit, configured to determine a first terminal that broadcasts the authentication information decoded by the decoding unit, and a sending unit, configured to send a network connection establishment request to the first terminal selected by the selecting unit, where the network connection establishment request includes The authentication information is such that when the first terminal confirms that the authentication information is legal, the first terminal establishes a network connection with the second terminal.
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述广播信息 包括有声音频片段和静音音频片段中的至少一种;  With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the broadcast information includes at least one of a voiced audio segment and a silent audio segment;
所述提取单元具体包括: 滤波子单元, 用于在预设频段对所述广播信息进行滤波处理; 第一提取子单元, 用于从所述滤波子单元滤波的结果中提取有声音频片 段和静音音频片段; 其中, 所述声音频片段和静音音频片段的出现规律用于 指示所述经过编码的认证信息; The extracting unit specifically includes: a filtering subunit, configured to perform filtering processing on the broadcast information in a preset frequency band; a first extracting subunit, configured to extract, from the filtered result of the filtering subunit, an audio audio segment and a silent audio segment; An appearance rule of the audio audio segment and the silent audio segment is used to indicate the encoded authentication information;
所述解码单元具体包括:  The decoding unit specifically includes:
转换子单元, 用于将所述第一提取子单元提取得到的有声音频片段和静 音音频片段转换为二进制序列; 其中, 在所述二进制序列中的两种数值的出 现规律, 与在所述滤波结果中提取到的有声音频片段和静音音频片段的出现 规律相同;  a conversion subunit, configured to convert the audio audio segment and the mute audio segment extracted by the first extraction subunit into a binary sequence; wherein, the occurrence rule of the two values in the binary sequence, and the filtering The appearance of the audio and audio audio segments extracted in the result is the same;
第一解码子单元, 用于对所述转换子单元转换得到的二进制序列进行二 进制解码, 得到所述认证信息。  And a first decoding subunit, configured to perform binary decoding on the binary sequence converted by the conversion subunit, to obtain the authentication information.
结合第四方面的第一种可能的实现方式, 在第四方面的第二种可能的实 现方式中, 所述有声音频片段为持续预设时长并具有 19KHz音频频率的音频 片段。  In conjunction with the first possible implementation of the fourth aspect, in a second possible implementation of the fourth aspect, the voiced audio segment is an audio segment that has a preset duration and has an audio frequency of 19 KHz.
结合第四方面的第一种可能的实现方式或第四方面的第二种可能的实现 方式, 在第四方面的第三种可能的实现方式中, 所述确定单元具体包括: 第二提取子单元, 用于当所述广播信息中携带有经过编码的第一终端的 标识信息时, 从所述广播信息中提取所述经过编码的第一终端的标识信息; 第二解码子单元, 用于对所述第二提取子单元提取的所述经过编码的第 一终端的标识信息进行解码, 得到所述第一终端的标识信息; 选取子单元, 用于根据所述第二解码子单元解码得到的所述第一终端的标识信息, 从可检 测到的终端中选取与所述第一终端的标识信息对应的第一终端; 所述选取子 单元还用于, 根据第二终端内存储的预设标识信息, 从可检测到的终端中选 取与所述预设标识信息对应的第一终端。  With reference to the first possible implementation of the fourth aspect or the second possible implementation of the fourth aspect, in a third possible implementation manner of the fourth aspect, the determining unit specifically includes: a second extractor a unit, configured to: when the broadcast information carries the identifier information of the encoded first terminal, extract the identifier information of the encoded first terminal from the broadcast information; and the second decoding subunit is configured to: Decoding, by the second extraction subunit, the identifier information of the encoded first terminal, to obtain identifier information of the first terminal, and selecting a subunit, configured to decode according to the second decoding subunit The identifier information of the first terminal is: the first terminal corresponding to the identifier information of the first terminal is selected from the detectable terminal; the selecting subunit is further configured to: according to the preset stored in the second terminal The identifier information is set, and the first terminal corresponding to the preset identifier information is selected from the detectable terminals.
结合第四方面或第四方面的第一至三种中任意一种可能的实现方式, 在 第四方面的第四种可能的实现方式中, 所述装置还包括:  With reference to the fourth aspect, or any one of the first to the third aspects of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the device further includes:
生成单元, 用于生成广播请求消息; 广播单元, 用于将所述生成单元生成的广播请求消息进行广播, 所述广 播请求消息用于请求接收到所述广播请求消息的第一终端广播所述第一终端 的认证信息, 所述认证信息为与所述第一终端建立网络连接关系所需的认证 信息。 a generating unit, configured to generate a broadcast request message; a broadcast unit, configured to broadcast a broadcast request message generated by the generating unit, where the broadcast request message is used to request that a first terminal that receives the broadcast request message broadcasts authentication information of the first terminal, where the authentication The information is authentication information required to establish a network connection relationship with the first terminal.
结合第四方面的第四种可能的实现方式, 在第四方面的第五种可能的实 现方式中, 所述广播请求消息包括有声音频片段, 并且, 所述广播请求消息 中的有声音频片段与所述广播消息中的有声音频片段使用的频率不同。  With the fourth possible implementation of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the broadcast request message includes a voiced audio segment, and the voiced audio segment in the broadcast request message is The audio audio segments in the broadcast message are used at different frequencies.
本发明实施例提供的移动网络自动建立连接的方法及装置, 能够将其他 终端接入网络连接需要使用的认证信息进行广播, 其他终端接收到广播后就 可以从广播信息中获取认证信息, 然后在根据获取到的认证信息与发送广播 的终端建立网络连接, 相比于现有技术中实现接入点终端和其他终端进行网 络连接的过程都需要用户手动进行很多信息设置和操作才能完成的方案来说, 本发明实施例可以让终端之间自动建立网络连接, 从而使用户不需要手动进 行认证信息的设置以及认证信息的输入, 减少了手动操作过程带来的繁瑣和 效率低的问题, 提高了终端之间的网络连接建立速度, 让用户获得了更好的 体验。 附图说明 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  The method and device for automatically establishing a connection by the mobile network provided by the embodiment of the present invention can broadcast the authentication information required for other terminals to access the network connection, and the other terminal can obtain the authentication information from the broadcast information after receiving the broadcast, and then According to the obtained authentication information, the network connection is established with the terminal that sends the broadcast. Compared with the prior art, the process of implementing the network connection between the access point terminal and other terminals requires the user to manually perform a lot of information setting and operation to complete the solution. The embodiment of the present invention can automatically establish a network connection between the terminals, so that the user does not need to manually set the authentication information and input the authentication information, thereby reducing the cumbersome and inefficient problems caused by the manual operation process, and improving the problem. The speed of network connection between terminals enables users to get a better experience. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图 1为本发明实施例中一种移动网络自动建立连接的系统的示意图; 图 2为本发明实施例提供的一种移动网络自动建立连接的方法的流程图; 图 3为本发明实施例提供的一种移动网络自动建立连接的方法的流程图; 图 4为本发明实施例提供的一种移动网络自动建立连接的方法的流程图; 图 5为本发明实施例提供的一种移动网络自动建立连接的方法的流程图; 图 6 为本发明实施例提供的一种移动网络自动建立连接的交互方法的流 程图; 1 is a schematic diagram of a system for automatically establishing a connection in a mobile network according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for automatically establishing a connection in a mobile network according to an embodiment of the present invention; FIG. 4 is a flowchart of a method for automatically establishing a connection in a mobile network according to an embodiment of the present invention; FIG. 5 is a schematic diagram of a mobile network automatically according to an embodiment of the present invention; A flow chart of a method of establishing a connection; FIG. 6 is a flowchart of an interaction method for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 Ί 为本发明实施例提供的一种移动网络自动建立连接的装置的结构示 意图;  Figure Ί is a schematic structural diagram of an apparatus for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 8 为本发明实施例提供的一种移动网络自动建立连接的装置的结构示 意图;  FIG. 8 is a schematic structural diagram of an apparatus for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 9 为本发明实施例提供的一种移动网络自动建立连接的装置的结构示 意图;  FIG. 9 is a schematic structural diagram of an apparatus for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 10为本发明实施例提供的一种移动网络自动建立连接的装置的结构示 意图;  FIG. 10 is a schematic structural diagram of an apparatus for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 11为本发明实施例提供的一种移动网络自动建立连接的装置的结构示 意图;  FIG. 11 is a schematic structural diagram of an apparatus for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 12为本发明实施例提供的一种移动网络自动建立连接的装置的结构示 意图;  FIG. 12 is a schematic structural diagram of an apparatus for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 1 3为本发明实施例提供的一种移动网络自动建立连接的装置的结构示 意图;  FIG. 13 is a schematic structural diagram of an apparatus for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 14为本发明实施例提供的一种移动网络自动建立连接的装置的结构示 意图;  FIG. 14 is a schematic structural diagram of an apparatus for automatically establishing a connection in a mobile network according to an embodiment of the present invention;
图 15为本发明实施例提供的一种电子终端的结构示意图;  FIG. 15 is a schematic structural diagram of an electronic terminal according to an embodiment of the present disclosure;
图 16为本发明实施例提供的一种电子终端的结构示意图。 具体实施方式 下面将结合本实施例中的附图, 对本实施例中的技术方案进行清楚、 完 整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部 的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性 劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  FIG. 16 is a schematic structural diagram of an electronic terminal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The technical solutions in the present embodiments will be described in detail with reference to the accompanying drawings in the embodiments. FIG. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为便于对本发明实施例进行理解, 首先对本发明实施例所基于的移动网 络自动建立连接的系统进行简要说明。 如图 1 所示, 本发明所涉及的移动网 络自动建立连接的系统包括: 第一终端 11和至少一个第二终端 12 , 第一终端 11和第二终端 12之间可以建立网络连接。 在本发明实施例中, 上述第一终端 11和第二终端 12均可以为具有通信功能的电子终端例如智能手机、平板电脑 或者其他通信电子产品。 并且, 这些电子终端需要设置包括 wif i芯片或者蓝 牙芯片或者其他类型的近距离通信芯片在内的通信芯片、 麦克风以及扬声器。 In order to facilitate understanding of the embodiments of the present invention, a system for automatically establishing a connection based on a mobile network according to an embodiment of the present invention is first described. As shown in FIG. 1, the mobile network involved in the present invention The system for automatically establishing a connection includes: a first terminal 11 and at least one second terminal 12, and a network connection can be established between the first terminal 11 and the second terminal 12. In the embodiment of the present invention, each of the first terminal 11 and the second terminal 12 may be an electronic terminal having a communication function, such as a smart phone, a tablet computer, or other communication electronic products. Moreover, these electronic terminals require a communication chip, a microphone, and a speaker including a Wif i chip or a Bluetooth chip or other types of short-range communication chips.
实施例 1  Example 1
本发明实施例提供了一种移动网络自动建立连接的方法, 所述方法由如 图 1所示的移动网络自动建立连接的系统的第一终端实现。 如图 2所示, 该 方法包括:  Embodiments of the present invention provide a method for automatically establishing a connection in a mobile network, which is implemented by a first terminal of a system that automatically establishes a connection as shown in FIG. As shown in Figure 2, the method includes:
201、 第一终端获取第一认证信息。  201. The first terminal acquires first authentication information.
本发明实施例中的第一认证信息可以为 WIFI AP 的接入密码或者是建立 蓝牙通信关系的匹配密钥。  The first authentication information in the embodiment of the present invention may be an access password of the WIFI AP or a matching key for establishing a Bluetooth communication relationship.
202、 第一终端将第一认证信息进行编码, 并将编码结果进行广播, 以使 得第二终端在接收到编码结果之后, 对编码结果进行解码, 用以获取所述第 一认证信息。  202. The first terminal encodes the first authentication information, and broadcasts the encoded result, so that the second terminal, after receiving the encoded result, decodes the encoded result to obtain the first authentication information.
在本发明实施例中,编码方式可以使用二进制编码,采用此编码方式后, 将编码结果进行广播的具体实现方式包括:  In the embodiment of the present invention, the coding mode may use binary coding. After the coding mode is used, the specific implementation manner of broadcasting the coding result includes:
将编码得到的二进制序列转换成第一音频信息, 所述第一音频信息包括 第一有声音频片段和静音音频片段; 并且在同一第一音频信息中的第一有声 音频片段和静音音频片段的出现规律, 与在该第一音频信息对应的二进制序 列中的两种数值的出现规律相同。 其中, 第一有声音频片段具有特定的频率 F1 , 例如 Fl=19KHz。  Converting the encoded binary sequence into first audio information, the first audio information comprising a first voiced audio segment and a silenced audio segment; and the presence of the first voiced audio segment and the silenced audio segment in the same first audio information The law of occurrence of the two values in the binary sequence corresponding to the first audio information is the same. Wherein, the first voiced audio segment has a specific frequency F1, for example, Fl=19KHz.
203、 第一终端接收第二终端发送的网络连接建立请求, 所述网络连接建 立请求携带有第二认证信息。  203. The first terminal receives a network connection establishment request sent by the second terminal, where the network connection establishment request carries the second authentication information.
所述第二认证信息为第二终端解码接收到的第一终端广播的信息得到的 认证信息, 若第二终端能够正确接收并解码, 则所述第二认证信息应该与所 述第一认证信息内容相同。 若第二终端接收错误, 或者, 接收正确但解码错 误, 则所述第二认证信息就可能与所述第一认证信息内容不同。 The second authentication information is authentication information obtained by the second terminal decoding the received information broadcast by the first terminal. If the second terminal can correctly receive and decode, the second authentication information should be related to the first authentication information. The content is the same. If the second terminal receives an error, or, the reception is correct but the decoding is wrong. The second authentication information may be different from the first authentication information content.
204、 根据第一认证信息, 所述第一终端判断第二认证信息是否合法。 本发明实施例中, 在判断第二认证信息合法性时, 可以通过比对第一认 证信息和第二认证信息是否相同, 或者通过比对第一认证信息和第二认证信 息的差异符合预设容忍值等。  204. The first terminal determines, according to the first authentication information, whether the second authentication information is legal. In the embodiment of the present invention, when determining the legality of the second authentication information, whether the comparison between the first authentication information and the second authentication information is the same, or the difference between the first authentication information and the second authentication information is consistent with the preset. Tolerance value, etc.
205、 若确定第二认证信息合法, 则第一终端与第二终端建立网络连接。 在本发明实施例中, 建立网络连接可使用 wif i技术或蓝牙技术或近距离 通信技术。  205. If it is determined that the second authentication information is legal, the first terminal establishes a network connection with the second terminal. In the embodiment of the present invention, the establishment of the network connection may use wif i technology or Bluetooth technology or short-range communication technology.
本发明实施例提供的移动网络自动建立连接的方法, 接入点终端可以将 用于建立网络连接的认证信息对外进行广播, 以便其他终端接收此广播, 并 从中提取认证信息, 然后根据此认证信息与广播此认证信息的终端建立网络 连接, 相比于现有技术中实现接入点终端和其他终端进行网络连接的过程都 需要用户手动进行很多信息设置和操作才能完成的方案来说, 本发明实施例 可以让终端之间自动建立网络连接, 从而使用户不需要手动进行认证信息的 设置以及认证信息的输入, 减少了手动操作过程带来的繁瑣和效率低的问题, 提高了终端之间的网络连接建立速度, 让用户获得了更好的体验。  The method for automatically establishing a connection by the mobile network provided by the embodiment of the present invention, the access point terminal may broadcast the authentication information for establishing the network connection to the other terminal, so that the other terminal receives the broadcast, and extracts the authentication information, and then according to the authentication information. The invention establishes a network connection with a terminal that broadcasts the authentication information, and the present invention requires a user to perform a lot of information setting and operation manually to complete the process of implementing network connection between the access point terminal and other terminals in the prior art. The embodiment can automatically establish a network connection between terminals, so that the user does not need to manually set the authentication information and input the authentication information, which reduces the cumbersome and inefficient problems caused by the manual operation process, and improves the relationship between the terminals. The speed of network connection is established, allowing users to get a better experience.
实施例 2  Example 2
本发明实施例提供了一种移动网络自动建立连接的方法, 所述方法由如 图 1所示的移动网络自动建立连接的系统的第二终端实现。 如图 3所示, 该 方法包括:  Embodiments of the present invention provide a method for automatically establishing a connection by a mobile network, which is implemented by a second terminal of a system that automatically establishes a connection as shown in FIG. As shown in Figure 3, the method includes:
301、 第二终端接收广播信息, 广播信息包括经过编码的认证信息。  301. The second terminal receives broadcast information, where the broadcast information includes the encoded authentication information.
本发明实施例中, 该广播信息就是第一终端广播的经过编码的广播信息, 因此, 广播信息的具体设置和包含的内容可参照第一终端侧的描述。  In the embodiment of the present invention, the broadcast information is the encoded broadcast information broadcast by the first terminal. Therefore, the specific settings of the broadcast information and the content included may refer to the description on the first terminal side.
302、 第二终端从广播信息中提取经过编码的认证信息, 并对提取结果进 行解码, 得到认证信息。  302. The second terminal extracts the encoded authentication information from the broadcast information, and decodes the extraction result to obtain the authentication information.
其中, 第二终端提取和解码认证信息的方法, 与第一终端侧发送和编码 的方法互为逆过程, 其具体实施方式在此不做赞述。 303、 第二终端选取广播认证信息的第一终端, 并向第一终端发送网络连 接建立请求, 所述网络连接建立请求包括认证信息, 以使得第一终端在确认 认证信息合法时, 第一终端与第二终端建立网络连接。 The method for the second terminal to extract and decode the authentication information is inversely related to the method for transmitting and encoding the first terminal, and the specific implementation manner is not described herein. 303. The second terminal selects the first terminal that broadcasts the authentication information, and sends a network connection establishment request to the first terminal, where the network connection establishment request includes the authentication information, so that when the first terminal confirms that the authentication information is legal, the first terminal Establish a network connection with the second terminal.
在本发明实施例中, 第二终端获取广播认证信息的第一终端的实现方式 可以是通过第一终端的标识信息在第二终端可搜索到的所有终端中进行查找 , 而第一终端的标识信息可以预先设置在第二终端中, 也可以由第一终端广播 出来, 再由第二终端接收并解码得到。  In the embodiment of the present invention, the implementation manner of the first terminal that the second terminal acquires the broadcast authentication information may be performed by using the identifier information of the first terminal in all the terminals searchable by the second terminal, and the identifier of the first terminal. The information may be preset in the second terminal, or may be broadcast by the first terminal, and then received and decoded by the second terminal.
本发明实施例提供的移动网络自动建立连接的方法, 其他终端通过接收 接入点终端发送的广播信息, 从中提取网络建立所需的认证信息, 然后根据 提取到的认证信息向发送该认证信息的接入点终端建立网络连接, 相比于现 有技术中实现接入点终端和其他终端进行网络连接的过程都需要用户手动进 行很多信息设置和操作才能完成的方案来说, 本发明实施例可以让终端之间 自动建立网络连接,从而使用户不需要手动进行认证信息的设置以及认证信 息的输入, 减少了手动操作过程带来的繁瑣和效率低的问题, 提高了终端之 间的网络连接建立速度, 让用户获得了更好的体验。  The method for automatically establishing a connection by the mobile network provided by the embodiment of the present invention, the other terminal extracts the authentication information required by the network establishment by receiving the broadcast information sent by the access point terminal, and then sends the authentication information according to the extracted authentication information. The access point terminal establishes a network connection. Compared with the prior art, the process of implementing the network connection between the access point terminal and the other terminal requires the user to manually perform a lot of information setting and operation to complete the solution. The network connection is automatically established between the terminals, so that the user does not need to manually set the authentication information and input the authentication information, which reduces the cumbersome and inefficient problems caused by the manual operation process, and improves the network connection establishment between the terminals. Speed, let users get a better experience.
实施例 3  Example 3
作为对实施例 1 所述方法的详细说明及进一步扩展, 本发明实施例还提 供了一种移动网络自动建立连接的方法, 所述方法同样由第一终端实现, 用 以实现第一终端与其他终端自动建立网络连接。如图 4所示,所述方法包括: As a detailed description and further extension of the method in Embodiment 1, the embodiment of the present invention further provides a method for automatically establishing a connection in a mobile network, where the method is also implemented by a first terminal, to implement the first terminal and other The terminal automatically establishes a network connection. As shown in FIG. 4, the method includes:
401、 第一终端检测是否接收到广播请求消息。 401. The first terminal detects whether a broadcast request message is received.
本发明实施例中, 该广播请求信息是用来让待接入设备(即实施例 2 中 的第二终端)请求第一终端发送第一认证信息。 而该广播请求信息发送的方 式与第一终端发送经过编码的认证信息的方式相同, 具体参见本发明实施例 后续描述。  In the embodiment of the present invention, the broadcast request information is used to enable the device to be accessed (ie, the second terminal in Embodiment 2) to request the first terminal to send the first authentication information. The manner in which the broadcast request information is sent is the same as the manner in which the first terminal sends the encoded authentication information. For details, refer to the following description of the embodiments of the present invention.
需要特别说明的是, 为了防止在设备同时接收广播请求消息和经过编码 的认证信息的情况下, 出现识别混淆, 第二终端在发送广播请求消息时使用 的有声音频片段的频率要求与第一终端发送认证信息时使用的有声音频片段 的频率不同。 例如, 第一终端发送认证信息使用的有声音频片段的频率为It should be particularly noted that, in order to prevent identification confusion when the device receives the broadcast request message and the encoded authentication information at the same time, the frequency requirement of the voiced audio segment used by the second terminal when transmitting the broadcast request message is related to the first terminal. Voiced audio clips used when sending authentication information The frequency is different. For example, the frequency of the voiced audio segment used by the first terminal to send the authentication information is
19KHz , 则第二终端发送广播请求消息时使用的有声音频片段的频率可以为 20KHz。 At 19 kHz, the frequency of the audio segment used when the second terminal transmits the broadcast request message may be 20 kHz.
402、 当第一终端确定接收到广播请求消息时, 获取第一认证信息。 其中, 第一认证信息一般由第一终端随机生成, 当然也可以由用户手动 设置。  402. When the first terminal determines to receive the broadcast request message, obtain the first authentication information. The first authentication information is generally randomly generated by the first terminal, and may also be manually set by the user.
403、 当确定接收到广播请求消息时, 获取第一终端的标识信息, 以便将 标识信息进行编码, 并将编码结果进行广播。  403. When it is determined that the broadcast request message is received, obtain the identifier information of the first terminal, so as to encode the identifier information, and broadcast the encoded result.
其中, 标识信息的设置和获取方法与第一认证信息相同。  The setting and obtaining method of the identification information is the same as the first authentication information.
当第一终端以第一种方法获取该标识信息后, 对所述标识信息进行编码 和广播的方式与第一认证信息的编码和广播方式相同, 具体实现方式将在后 续说明。  After the first terminal obtains the identification information in the first method, the manner of encoding and broadcasting the identification information is the same as the encoding and broadcasting manner of the first authentication information, and the specific implementation manner will be described later.
并且由于标识信息的广播方式与第一认证信息的广播方式相同, 因此, 在实际广播过程中, 所述标识信息可以与第一认证信息承载在同一个广播信 息中, 也可以分别独立广播。  In the actual broadcast process, the identifier information may be carried in the same broadcast information as the first authentication information, or may be independently broadcasted separately.
404、 第一终端对第一认证信息进行二进制编码, 生成二进制序列。 第一终端对第一认证信息进行二进制编码的具体过程如下:  404. The first terminal performs binary coding on the first authentication information to generate a binary sequence. The specific process for the first terminal to binary code the first authentication information is as follows:
本发明实施例中使用的二进制序列要求依次设置有前缀位、 校验位、 字 符位。  The binary sequence used in the embodiment of the present invention requires a prefix bit, a parity bit, and a character bit to be sequentially set.
前缀位通常设置为一个 8位二进制数, 是二进制序列中的引导序列, 用 于方便第二终端进行提取并识别经过二进制编码的认证信息。  The prefix bit is usually set to an 8-bit binary number, which is a boot sequence in the binary sequence, which is convenient for the second terminal to extract and identify the binary-encoded authentication information.
字符位为将认证信息中的字符经过二进制转化得到的二进制序列。 一般 一个十进制数字字符对应 4个二进制位, 一个英文字符对应 4或 8个二进制 位。  The character bit is a binary sequence obtained by binary conversion of characters in the authentication information. Generally, a decimal digit character corresponds to 4 binary digits, and an English character corresponds to 4 or 8 binary digits.
校验位为根据字符位中每两个认证信息的字符对应的二进制位求和并对 2取模得到的二进制数。  The parity bit is a binary number obtained by summing the binary bits corresponding to the characters of each two pieces of authentication information in the character bits and modulo 2 .
例如, 第一终端要传输认证信息为 8位数字字符 12345679 , 则要传输的 二进制序列为 00011111 0100 1000 0100 1100 0010 1010 0110 011 1 1001。 其中, 00011111为前缀位, 0100为校验位, 1000 0100 1100 0010 1010 0110 0111 1001为字符位。 For example, if the first terminal wants to transmit the authentication information to the 8-digit character 12345679, it is to be transmitted. The binary sequence is 00011111 0100 1000 0100 1100 0010 1010 0110 011 1 1001. Among them, 00011111 is the prefix bit, 0100 is the check digit, 1000 0100 1100 0010 1010 0110 0111 1001 is the character bit.
在此以十进制数转化为二进制数的编码方式只是一种示例, 若密码为 Here, the encoding method of converting decimal numbers into binary numbers is just an example. If the password is
Un i code或 ASCI I等方式,则可以先将 Un i code编码值或 ASCI I编码值转化为 相应的数值, 然后再进行二进制转码, 具体的方法可按照业内常用手段进行 操作。 In the case of Un i code or ASCI I, the Un i code value or the ASCI I code value can be converted into a corresponding value, and then binary transcoding is performed. The specific method can be operated according to commonly used means in the industry.
需要说明的是, 有关广播请求消息和标识消息的编码的具体过程可以参 照上述第一终端对第一认证信息进行二进制编码的具体过程。  It should be noted that the specific process of encoding the broadcast request message and the identification message may refer to a specific process in which the first terminal performs binary coding on the first authentication information.
405、 第一终端将二进制序列转换成第一音频信息, 第一音频信息包括第 一有声音频片段和静音音频片段中的至少一种; 并且第一有声音频片段和静 音音频片段在第一音频信息中的出现规律, 与在该第一音频信息对应的二进 制序列中的两种数值的出现规律相同。  405. The first terminal converts the binary sequence into the first audio information, where the first audio information includes at least one of the first audio segment and the mute audio segment; and the first audio segment and the mute audio segment are in the first audio information. The appearance rule in the same is the same as the appearance of the two values in the binary sequence corresponding to the first audio information.
具体的, 第一终端将二进制序列转换成第一音频信息具体为:  Specifically, the first terminal converts the binary sequence into the first audio information, specifically:
所述第一终端将所述二进制序列转换成第一音频信息, 所述第一音频信 息包括第一有声音频片段和静音音频片段中的至少一种。 并且, 第一有声音 频片段和静音音频片段在第一音频信息中的出现规律, 与在该第一音频信息 对应的二进制序列中的两种数值的出现规律相同。  The first terminal converts the binary sequence into first audio information, the first audio information including at least one of a first voiced audio segment and a silenced audio segment. And, the appearance rule of the first audio frequency segment and the mute audio segment in the first audio information is the same as the appearance rule of the two values in the binary sequence corresponding to the first audio information.
在具体实现过程中, 可以将二进制序列中的 " 1 " 转换为有声音频片段, 将二进制序列中的 "0" 转换为静音音频片段, 或者是, 可以将二进制序列中 的 " 0"转换为有声音频片段, 将二进制序列中的 "1 "转换为静音音频片段。 例如,在二进制序列仅包括 "0"时,第一音频信息可以仅包括静音音频片段; 在二进制序列仅包括 "1 " 时, 第一音频信息仅包括第一有声音频片段。  In the specific implementation process, the "1" in the binary sequence can be converted into a voiced audio segment, the "0" in the binary sequence can be converted into a silent audio segment, or the "0" in the binary sequence can be converted into a voiced sound. An audio clip that converts a "1" in a binary sequence into a silent audio clip. For example, when the binary sequence includes only "0", the first audio information may only include the mute audio segment; when the binary sequence includes only "1", the first audio information includes only the first audio segment.
例如, 若每个二进制序列中的 " 0 "用静音音频片段表示, 每个二进制序 列中的 " 1 "用一定频率的有声音频表示, 则当需要广播的字符为 0123 时, 通过步骤 303的方法可知编码为二进制序列的结果为 "0000" "1000" "0100" " 1100" , 那么 " 0000" 由四个静音音频片段发送, " 1000" 由一个有声音频 片段和三个静音音频片段发送, "0100" 由一个有声音频片段和三个静音音频 片段发送, "1100" 由两个有声音频片段和两个静音音频片段发送。 其中, 用 来表示同一个第一认证信息的有声音频片段和静音音频片段的出现的次数和 顺序对应的与转化为的二进制序列的 "1 " 和 "0" 出现的次数和顺序一致, 本发明实施例中的所述第一有声音频片段为持续预设时长 20ms并具有 19KHz 音频频率的音频片段, 但是, 本发明中所述第一有声音频片段的预设时长和 频率并不局限于此。 For example, if "0" in each binary sequence is represented by a silent audio segment, "1" in each binary sequence is represented by a certain frequency of voiced audio, then when the character to be broadcast is 0123, the method of step 303 is passed. It can be seen that the result of encoding as a binary sequence is "0000""1000""0100""1100", then "0000" is sent by four silent audio clips, "1000" by one audio audio The clip and three silent audio clips are sent, "0100" is sent by one voiced audio clip and three muted audio clips, and "1100" is sent by two voiced audio clips and two muted audio clips. Wherein, the number and order of occurrences of "1" and "0" of the converted binary sequence corresponding to the number and order of occurrence of the voiced audio clip and the silent audio clip of the same first authentication information are the same, and the present invention The first voiced audio segment in the embodiment is an audio segment that lasts for 20 ms and has an audio frequency of 19 KHz. However, the preset duration and frequency of the first voiced audio segment in the present invention are not limited thereto.
需要说明的是, 对广播请求消息和标识消息进行转换的具体过程可以参 照上述第一终端将二进制序列转换成第一音频信息的具体过程。  It should be noted that the specific process of converting the broadcast request message and the identification message may refer to a specific process in which the first terminal converts the binary sequence into the first audio information.
406、 第一终端将所述第一音频信息进行广播。  406. The first terminal broadcasts the first audio information.
第一终端用其本身配置的扬声器将有声音频与静音音频交错的片段进行 广播并不断循环发送。  The first terminal broadcasts the segments of the audio and mute audio interleaves with their own configured speakers and continuously circulates them.
另外, 为了节省功率的目的, 第一终端可以在确认没有其它终端需要与 自身建立网络连接时, 或者是循环广播一定时长后, 停止广播信息。  In addition, for the purpose of saving power, the first terminal may stop broadcasting information after confirming that no other terminal needs to establish a network connection with itself, or after cyclically broadcasting for a certain period of time.
在本发明实施例中, 在步骤 406之后还可继续执行实施例 1 中描述的步 M. 203至 205。  In the embodiment of the present invention, steps M. 203 to 205 described in Embodiment 1 may also be continued after step 406.
需要说明的是, 对广播请求消息和标识消息进行广播的具体过程可以参 照上述第一终端将二进制序列转换成第一音频信息进行广播的具体过程。 本 发明实施例提供的移动网络自动建立连接的方法, 接入点终端可以将用于建 立网络连接的认证信息对外进行广播, 以便其他终端接收此广播, 并从中提 取认证信息, 然后根据此认证信息与广播此认证信息的终端建立网络连接, 相比于现有技术中实现接入点终端和其他终端进行网络连接的过程都需要用 户手动进行很多信息设置和操作才能完成的方案来说, 本发明实施例可以让 终端之间自动建立网络连接, 从而使用户不需要手动进行认证信息的设置以 及认证信息的输入, 减少了手动操作过程带来的繁瑣和效率低的问题, 提高 了终端之间的网络连接建立速度, 让用户获得了更好的体验。  It should be noted that the specific process of broadcasting the broadcast request message and the identification message may refer to the specific process in which the first terminal converts the binary sequence into the first audio information for broadcasting. The method for automatically establishing a connection by the mobile network provided by the embodiment of the present invention, the access point terminal may broadcast the authentication information for establishing the network connection to the other terminal, so that the other terminal receives the broadcast, and extracts the authentication information, and then according to the authentication information. The invention establishes a network connection with a terminal that broadcasts the authentication information, and the present invention requires a user to perform a lot of information setting and operation manually to complete the process of implementing network connection between the access point terminal and other terminals in the prior art. The embodiment can automatically establish a network connection between terminals, so that the user does not need to manually set the authentication information and input the authentication information, which reduces the cumbersome and inefficient problems caused by the manual operation process, and improves the relationship between the terminals. The speed of network connection is established, allowing users to get a better experience.
实施例 4 作为对实施例 2 所述方法的详细说明及进一步扩展, 本发明实施例还提 供了一种移动网络自动建立连接的方法, 所述方法同样由第二终端实现, 用 以实现第二终端与其他终端自动建立网络连接。如图 5所示,所述方法包括:Example 4 As a detailed description and further extension of the method in Embodiment 2, the embodiment of the present invention further provides a method for automatically establishing a connection in a mobile network, where the method is also implemented by a second terminal, to implement the second terminal and other The terminal automatically establishes a network connection. As shown in FIG. 5, the method includes:
501、 第二终端生成广播请求消息, 并将所述广播请求消息进行广播, 所 述广播请求消息用于请求接收到所述广播请求消息的第一终端广播所述第一 终端的认证信息, 所述认证信息为与所述第一终端建立网络连接关系所需的 认证信息。 501. The second terminal generates a broadcast request message, and broadcasts the broadcast request message, where the broadcast request message is used to request that the first terminal that receives the broadcast request message broadcasts the authentication information of the first terminal. The authentication information is authentication information required to establish a network connection relationship with the first terminal.
本发明实施例中有关广播请求消息的广播方式可参照实施例 3 的相关描 述。  For the manner of broadcasting the broadcast request message in the embodiment of the present invention, refer to the related description of Embodiment 3.
502、 第二终端接收广播信息, 所述广播信息包括经过编码的认证信息, 并在预设频段对广播信息进行滤波处理。  502. The second terminal receives broadcast information, where the broadcast information includes the encoded authentication information, and performs filtering processing on the broadcast information in a preset frequency band.
本发明实施例中, 滤波处理的方法可以使用带通滤波来实现。 具体为:第 二终端通过自身配置的麦克风捕获的第一终端广播的音频信息, 然后对捕获 到的音频信息进行带通滤波。  In the embodiment of the present invention, the filtering processing method may be implemented by using band pass filtering. Specifically, the second terminal captures the audio information broadcast by the first terminal through the microphone configured by itself, and then performs band-pass filtering on the captured audio information.
例如, 捕获到的目标信号是具有 19kHz音频频率的音频信号, 则可以选 择具有 18. 5kHz— 19. 5kHz音频频率的带通滤波器, 过滤出频率在其他范围的 干扰信号, 从而得到需要的音频频率为 19kHz的音频片段。  For example, if the captured target signal is an audio signal with an audio frequency of 19 kHz, a bandpass filter with an audio frequency of 18.5 kHz - 19.5 kHz can be selected to filter out interference signals of other frequencies to obtain the desired audio. An audio clip with a frequency of 19 kHz.
若标识信息也携带在广播信息中, 那么第二终端也可以通过上述滤波处 理得到携带有标识信息的音频片段。  If the identification information is also carried in the broadcast information, the second terminal may also obtain the audio segment carrying the identification information by using the filtering process.
503、 第二终端从滤波结果中提取有声音频片段和静音音频片段; 其中, 有声音频片段和静音音频片段的出现规律用于指示经过编码的认证信息。  503. The second terminal extracts the voiced audio segment and the silenced audio segment from the filtered result. The appearance rule of the voiced audio segment and the silenced audio segment is used to indicate the encoded authentication information.
接着, 第二终端对带通滤波得到的音频频率为 19kHz 的音频片段进行能 量检测, 根据被检测的音频片段能量的大小, 将其分割成有声音频片段和静 音音频片段。 例如, 有超过白噪声功率的音频片段就认为是有声音频片段, 未超过白噪声功率的音频片段就认为是静音音频片段。 可以理解的是, 第二 终端可以从滤波结果中提取到有声音频片段和静音音频片段, 也可能从滤波 结果中仅提取到有声音频片段或静音音频片段。 504、 第二终端将提取到的有声音频片段和静音音频片段转换为二进制序 列; 其中, 在二进制序列中的两种数值的出现规律, 与在滤波结果中提取到 的有声音频片段和静音音频片段的出现规律相同。 可以理解的是, 在第二终 端提取到了有声音频片段和静音音频片段时, 第二终端是将提取到的所有有 声音频片段和静音音频片段转换成二进制序列; 而在第二终端仅提取到了有 声音频片段或静音音频片段时, 第二终端会将提取到的声音频片段或静音音 频片段转换成二进制序列。 Then, the second terminal performs energy detection on the audio segment with the audio frequency of 19 kHz obtained by band-pass filtering, and divides the audio segment into a voiced audio segment and a silent audio segment according to the detected energy of the audio segment. For example, an audio segment that exceeds white noise power is considered to be a voiced audio segment, and an audio segment that does not exceed white noise power is considered a silent audio segment. It can be understood that the second terminal can extract the voiced audio segment and the silenced audio segment from the filtered result, and may also extract only the voiced audio segment or the silent audio segment from the filtered result. 504. The second terminal converts the extracted audio audio segment and the mute audio segment into a binary sequence; wherein, the occurrence rule of the two values in the binary sequence, and the voiced audio segment and the mute audio segment extracted in the filtering result The appearance of the law is the same. It can be understood that, when the second terminal extracts the voiced audio segment and the silenced audio segment, the second terminal converts all the extracted audio and audio segments into a binary sequence; and only the voice is extracted in the second terminal. When an audio clip or a silent audio clip is used, the second terminal converts the extracted audio or audio clip into a binary sequence.
例如, 第二终端根据有声音频片段和静音音片段的预设长度, 确定对应 的 "1"和 "0" 。 例如, 第一终端中每 20ms的静音音频片段代表一个 "0" , 每 20ms的有声音频片段代表一个 "1" , 则第二终端对应的每接收到 20ms的 静音音频片段, 则记录一个 "0" , 每接收到 20ms 的有声音频片段, 则记录 一个 "1" , 从而从接收到的有声音频片段和静音音频片段的信息中, 得一个 二进制序列。  For example, the second terminal determines the corresponding "1" and "0" according to the preset length of the audio and mute segments. For example, every 20 ms of the mute audio segment in the first terminal represents a "0", and every 20 ms of the audio audio segment represents a "1", and each time the second terminal corresponds to the received 20 ms mute audio segment, a "0" is recorded. ", every time a 20ms audio clip is received, a "1" is recorded, so that a binary sequence is obtained from the received information of the audio clip and the mute audio clip.
例如接收的音频信息为: 20ms 的静音音频片段, 20ms 的静音音频片段、 20ms 的静音音频片段、 20ms 的有声音频片段、 20ms 的有声音频片段、 20ms 的有声音频片段、 20ms的有声音频片段、 20ms的有声音频片段, 对应的得到 的二进制序列为 00011111。 其中, 所述二进制序列 00011111 中的 "1" 和滤 波前的有声音频片段的数量和顺序一致, 得到的二进制序列中的 "0" 和滤波 前的静音音频片段的数量和顺序一致。  For example, the received audio information is: 20ms silent audio clip, 20ms silent audio clip, 20ms silent audio clip, 20ms audio clip, 20ms voice clip, 20ms voice clip, 20ms voice clip, 20ms The audio sequence of the corresponding audio, the corresponding binary sequence is 00011111. The number and order of the "1" in the binary sequence 00011111 and the pre-filtered audio segment are the same, and the "0" in the obtained binary sequence and the number and order of the mute audio segments before filtering are identical.
505、 第二终端对二进制序列进行二进制解码, 得到认证信息。  505. The second terminal performs binary decoding on the binary sequence to obtain authentication information.
第二终端对二进制序列进行二进制解码的方法如下, 具体为:  The method for binary decoding the binary sequence by the second terminal is as follows:
首先, 第二终端对滤波得到的二进制序列进行前缀搜索, 例如, 第一终 端发送的二进制序列的前缀是" 00011111 " , 第二终端对得到的二进制序列 进行搜索, 当出现第一个 " 00011111 " 时, 则判断该二进制序列是前缀并确 定第一组数据的起始位置, 当搜索到第二个 "00011111 " 时, 则确定第一组 数据的结束位置, 其中第一组数据的结束位置也是第二组数据的起始位置。  First, the second terminal performs a prefix search on the filtered binary sequence. For example, the prefix of the binary sequence sent by the first terminal is "00011111", and the second terminal searches for the obtained binary sequence, when the first "00011111" appears. Determining that the binary sequence is a prefix and determining a starting position of the first set of data. When the second "00011111" is searched, determining an ending position of the first set of data, wherein the ending position of the first set of data is also The starting position of the second set of data.
然后, 第二终端获取第一终端发送的校验码, 具体方法为: 第二终端对 每两个字符的二进制位的所有位数进行求和, 然后对 2取模, 得到所有的字 符的二进制位数数值, 在将得到的结果与接收到的校验位的所有字符的二进 制位数数值进行比较, 如果比较结果一致, 则认为结果正确; 如果比较结果 不一致, 则认为结果错误。 Then, the second terminal acquires the check code sent by the first terminal, where the specific method is: The sum of all the bits of the binary character of each two characters, and then modulo 2, to obtain the binary digit value of all the characters, the binary digit of all the characters in the received result and the received check digit The values are compared. If the comparison results are consistent, the result is considered correct. If the comparison results are inconsistent, the result is considered incorrect.
接着, 当校验位的检测结果正确时, 第二终端读取二进制序列, 具体的, 第二终端从搜索到的第一个前缀的末位开始, 按顺序读取校验位的二进制序 列和字符的二进制序列, 例如, 第一终端发送 4个校验位 0100和 8位字符 12345679, 总共是 40个二进制数, 则第二终端读取的二进制序列为 00011111 0100 1000 0100 1100 0010 1010 0110 0111 1001, 其中包括 4个校验位和 8 个 4位的二进制数。  Then, when the detection result of the check bit is correct, the second terminal reads the binary sequence. Specifically, the second terminal starts from the last bit of the first prefix searched, and sequentially reads the binary sequence of the check digit and A binary sequence of characters, for example, the first terminal sends 4 parity bits 0100 and 8 characters 12345679, for a total of 40 binary numbers, and the binary sequence read by the second terminal is 00011111 0100 1000 0100 1100 0010 1010 0110 0111 1001 , which includes 4 check digits and 8 4-bit binary numbers.
最后, 第二终端将得到的二进制序列转换为字符, 得到认证信息, 具体 的, 第二终端将二进制序列 "1000"转换为 "1" , "0100"转换为 "2" , "1100" 转换为 "3" , "0010" 转换为 "4" , "1010" 转换为 "5" , "0110" 转换为 "6" , "0111" 转换为 "7", "1001"转换为 "9" , 从而得到认证信 息。  Finally, the second terminal converts the obtained binary sequence into characters to obtain authentication information. Specifically, the second terminal converts the binary sequence "1000" to "1", "0100" to "2", and "1100" to "3", "0010" is converted to "4", "1010" is converted to "5", "0110" is converted to "6", "0111" is converted to "7", "1001" is converted to "9", thus Get certification information.
当检测结果错误时, 第二终端继续向搜索前缀 "00011111 " , 当搜索到 前缀 "00011111 "时, 获取另一组数据, 在进行校验比对及其后续流程。  When the detection result is wrong, the second terminal continues to search for the prefix "00011111", and when the prefix "00011111" is searched, another set of data is acquired, and the check comparison and subsequent processes are performed.
上述步骤 502至 505的流程同样适用于标识信息的获取。  The above steps 502 to 505 are also applicable to the acquisition of identification information.
506、 第二终端确定广播所述认证信息的第一终端, 并向所述第一终端发 送网络连接建立请求, 所述网络连接建立请求包括所述认证信息, 以使得所 述第一终端在确认所述认证信息合法时, 所述第一终端与所述第二终端建立 网络连接。  506. The second terminal determines a first terminal that broadcasts the authentication information, and sends a network connection establishment request to the first terminal, where the network connection establishment request includes the authentication information, so that the first terminal confirms When the authentication information is legal, the first terminal establishes a network connection with the second terminal.
在本发明实施例中, 在确定第一终端时, 一般需要根据第一终端的标识 信息, 在第二终端可检测到信号的终端中选择与所述标识信息对应的第一终 端。  In the embodiment of the present invention, when determining the first terminal, the first terminal corresponding to the identifier information is generally selected in the terminal that can detect the signal by the second terminal according to the identifier information of the first terminal.
而标识信息的选取有以下两种方法:  There are two ways to select the identification information:
第一种方法: 若广播信息中携带有经过编码的第一终端的标识信息时, 第二终端从广播信息中提取经过编码的第一终端的标识信息, 并对提取结果 进行解码, 得到第一终端的标识信息; 根据标识信息, 从可检测到的终端中 选取与预设标识信息对应的第一终端。 The first method: if the broadcast information carries the identifier information of the encoded first terminal, The second terminal extracts the identifier information of the encoded first terminal from the broadcast information, and decodes the extraction result to obtain the identifier information of the first terminal. According to the identifier information, the preset identifier information is selected from the detectable terminal. Corresponding first terminal.
第二种方法: 第二终端根据预设标识信息, 从可检测到的终端中选取与 预设标识信息对应的第一终端。  The second method: the second terminal selects the first terminal corresponding to the preset identifier information from the detectable terminals according to the preset identifier information.
其中, 预设标识信息即第二终端已经预先设置好的标识信息, 并且该标 识信息与第一终端的标识信息相同。  The preset identification information is the identification information that the second terminal has previously set, and the identification information is the same as the identification information of the first terminal.
本发明实施例提供的移动网络自动建立连接的方法, 其他终端通过接收 接入点终端发送的广播信息, 从中提取网络建立所需的认证信息, 然后根据 提取到的认证信息向发送该认证信息的接入点终端建立网络连接, 相比于现 有技术中实现接入点终端和其他终端进行网络连接的过程都需要用户手动进 行很多信息设置和操作才能完成的方案来说, 本发明实施例可以让终端之间 自动建立网络连接,从而使用户不需要手动进行认证信息的设置以及认证信 息的输入, 减少了手动操作过程带来的繁瑣和效率低的问题, 提高了终端之 间的网络连接建立速度, 让用户获得了更好的体验。  The method for automatically establishing a connection by the mobile network provided by the embodiment of the present invention, the other terminal extracts the authentication information required by the network establishment by receiving the broadcast information sent by the access point terminal, and then sends the authentication information according to the extracted authentication information. The access point terminal establishes a network connection. Compared with the prior art, the process of implementing the network connection between the access point terminal and the other terminal requires the user to manually perform a lot of information setting and operation to complete the solution. The network connection is automatically established between the terminals, so that the user does not need to manually set the authentication information and input the authentication information, which reduces the cumbersome and inefficient problems caused by the manual operation process, and improves the network connection establishment between the terminals. Speed, let users get a better experience.
实施例 5  Example 5
本发明实施例还提供了一种移动网络自动建立连接的交互方法, 该方法 涉及第一终端以及第二终端两侧之间的交互流程。 如图 6所示, 具体为: The embodiment of the present invention further provides an interaction method for automatically establishing a connection in a mobile network, where the method involves an interaction process between the first terminal and the two sides of the second terminal. As shown in Figure 6, it is specifically:
601、 用户手动选择第一终端作为网络接入点 WIFI AP, 并打开该终端的 WIFI AP , 此时第一终端会不断检测周围是否有音频频率为 20KHz的有声音频 信号。 601. The user manually selects the first terminal as the network access point WIFI AP, and opens the WIFI AP of the terminal. At this time, the first terminal continuously detects whether there is an audio audio signal with an audio frequency of 20 kHz.
602、 第二终端在没有接入到网络时, 会不断使用具有 20KHz音频频率的 有声音频信号向周围发射广播请求信息,并不断检测周围的音频频率为 19KHz 的有声音频片段。  602. When the second terminal is not connected to the network, the audible audio signal having an audio frequency of 20 KHz is continuously used to transmit broadcast request information to the surroundings, and the surrounding audio frequency of the audio frequency of 19 kHz is continuously detected.
603、 当第一终端检测到音频频率为 20KHz的有声音频信号时, 获取属于 自己的 WIFI AP名称和密码信息, 并通过音频频率为 19KHz的有声音频信号 进行广播。 604、 第二终端检测到音频频率为 19KHz的有声音频信号, 并通过对该音 频信号进行滤波解码获取其携带的 WIFI AP名称和密码信息。 603. When the first terminal detects the audio audio signal with the audio frequency of 20 kHz, obtain the WIFI AP name and password information belonging to itself, and broadcast the audio audio signal with the audio frequency of 19 kHz. 604. The second terminal detects the voiced audio signal with an audio frequency of 19 kHz, and obtains the WIFI AP name and password information carried by filtering and decoding the audio signal.
605、第二终端才艮据 WIFI AP名称从可搜索到的所有终端中选取第一终端, 并将密码信息携带在网络连接建立请求发送至第一终端。 同时, 停止使用具 有 20KHz音频频率的有声音频信号向周围发射广播请求信息。  605. The second terminal selects the first terminal from all the searchable terminals according to the WIFI AP name, and carries the password information in the network connection establishment request to the first terminal. At the same time, the use of the audio audio signal having the audio frequency of 20 KHz is stopped to transmit the broadcast request information to the surroundings.
606、 第一终端接收到第二终端发送的网络连接建立请求后, 判断其携带 的密码信息和自身广播的密码信息是否相同。  606. After receiving the network connection establishment request sent by the second terminal, the first terminal determines whether the password information carried by the first terminal is the same as the password information broadcasted by itself.
607、 第一终端在确定网络连接建立请求中携带的密码信息和自身广播的 密码信息相同时, 与第二终端自动建立连接。  607. The first terminal automatically establishes a connection with the second terminal when determining that the password information carried in the network connection establishment request is the same as the password information of the self-broadcast.
需要说明的是, 若不同时, 则第一终端可以反馈错误报告, 或者不做任 何响应。  It should be noted that, if not, the first terminal may report an error report or do not respond.
本发明实施例中仅提供了第一终端和第二终端之间的 wif i网络连接建立 的示例 ,其他终端与第一终端也可以执行上述操作完成 w i f i网络连接的建立。 而基于蓝牙技术的网络连接的建立流程与此类似, 本发明对此不再做详细描 述。  In the embodiment of the present invention, only an example of establishing a wif i network connection between the first terminal and the second terminal is provided. The other terminal and the first terminal may also perform the foregoing operations to complete the establishment of the network connection. The establishment process of the network connection based on the Bluetooth technology is similar to this, and the present invention will not be described in detail.
本发明实施例提供的移动网络自动建立连接的方法, 接入点终端将其他 终端接入网络连接需要使用的认证信息进行广播, 其他终端接收到广播后就 可以从广播信息中获取认证信息, 然后在根据获取到的认证信息与发送广播 的接入点终端建立网络连接, 相比于现有技术中实现接入点终端和其他终端 进行网络连接的过程都需要用户手动进行很多信息设置和操作才能完成的方 案来说, 本发明实施例可以让终端之间自动建立网络连接, 从而使用户不需 要手动进行认证信息的设置以及认证信息的输入, 减少了手动操作过程带来 的繁瑣和效率低的问题, 提高了终端之间的网络连接建立速度, 让用户获得 了更好的体验。 实施例 6  A method for automatically establishing a connection by a mobile network according to an embodiment of the present invention, an access point terminal broadcasts authentication information required for other terminals to access a network connection, and other terminals can obtain authentication information from the broadcast information after receiving the broadcast, and then In the process of establishing a network connection with the access point terminal that sends the broadcast according to the obtained authentication information, the user needs to manually perform a lot of information setting and operation in the process of implementing the network connection between the access point terminal and other terminals in the prior art. In the implementation of the solution, the network connection is automatically established between the terminals, so that the user does not need to manually set the authentication information and input the authentication information, which reduces the cumbersome and inefficient operation caused by the manual operation process. The problem is to improve the speed of network connection establishment between terminals, so that users get a better experience. Example 6
参考图 2、 图 4以及图 6中部分所示方法的实现, 本发明实施例提供了一 种移动网络自动建立连接的装置, 所述装置可以位于第一终端内部, 用以实 现图 2、 图 4以及图 6中部分所示的方法。 如图 7所示, 所述装置包括: 获取 单元 71、 编码单元 72、 广播单元 73、 接收单元 74、 判断单元 75以及建立连 接单元 76 , 其中, Referring to the implementation of the method shown in the sections of FIG. 2, FIG. 4 and FIG. 6, an embodiment of the present invention provides a A device for automatically establishing a connection in a mobile network, the device being located inside the first terminal for implementing the methods shown in the sections of FIGS. 2, 4 and 6. As shown in FIG. 7, the apparatus includes: an obtaining unit 71, an encoding unit 72, a broadcasting unit 73, a receiving unit 74, a determining unit 75, and a establishing connecting unit 76, where
获取单元 71 , 用于获取第一认证信息。  The obtaining unit 71 is configured to acquire first authentication information.
编码单元 72 , 用于将所述获取单元 71获取到的第一认证信息进行编码。 广播单元 73 , 用于将所述编码单元 72得到的编码结果进行广播。  The encoding unit 72 is configured to encode the first authentication information acquired by the acquiring unit 71. The broadcasting unit 73 is configured to broadcast the encoded result obtained by the encoding unit 72.
接收单元 74 , 用于接收第二终端发送的网络连接建立请求, 所述网络连 接建立请求携带有第二认证信息。  The receiving unit 74 is configured to receive a network connection establishment request sent by the second terminal, where the network connection establishment request carries the second authentication information.
判断单元 75 , 用于根据所述获取单元 71获取到的第一认证信息, 判断所 述接收单元 74接收的第二认证信息是否合法。  The determining unit 75 is configured to determine, according to the first authentication information acquired by the acquiring unit 71, whether the second authentication information received by the receiving unit 74 is legal.
建立连接单元 76 , 用于在所述判断单元 75判断第二认证信息合法时, 与 所述第二终端建立网络连接。  The establishing connection unit 76 is configured to establish a network connection with the second terminal when the determining unit 75 determines that the second authentication information is legal.
所述获取单元 71还用于,获取移动网络自动建立连接的装置的标识信息。 所述编码单元 72还用于, 将所述获取单元 71获取到的标识信息进行编 码。  The obtaining unit 71 is further configured to acquire identification information of a device that automatically establishes a connection by the mobile network. The encoding unit 72 is further configured to encode the identification information acquired by the obtaining unit 71.
进一步的, 所述编码单元 72具体用于对所述第一认证信息进行二进制编 码, 生成二进制序列。  Further, the encoding unit 72 is specifically configured to perform binary coding on the first authentication information to generate a binary sequence.
进一步的, 如图 8所示, 所述广播单元 73具体包括:  Further, as shown in FIG. 8, the broadcast unit 73 specifically includes:
转换子单元 81 ,用于将所述编码单元 72生成的二进制序列转换成第一音 频信息, 所述第一音频信息包括第一有声音频片段和静音音频片段中的至少 一种。  The converting subunit 81 is configured to convert the binary sequence generated by the encoding unit 72 into first audio information, the first audio information comprising at least one of a first voiced audio segment and a silenced audio segment.
广播子单元 82 ,用于将所述转换子单元 81转换得到的第一音频信息进行 广播。  The broadcast subunit 82 is configured to broadcast the first audio information converted by the conversion subunit 81.
其中, 所述第一有声音频片段为持续预设时长并具有 19KHz音频频率的 音频片段。  The first voiced audio segment is an audio segment that lasts for a preset duration and has an audio frequency of 19 kHz.
进一步的, 如图 9所示, 所述装置还包括: 检测单元 91 , 用于检测是否接收到广播请求消息。 Further, as shown in FIG. 9, the apparatus further includes: The detecting unit 91 is configured to detect whether a broadcast request message is received.
进一步的,所述获取单元 71具体用于在确定接收到所述广播请求消息时, 获取第一认证信息。  Further, the obtaining unit 71 is specifically configured to acquire the first authentication information when determining that the broadcast request message is received.
其中, 所述广播请求消息包括第二音频信息, 所述第二音频信息用于请 求第一终端广播第一认证信息, 所述第二音频信息包括第二有声音频片段, 所述第二有声音频片段与所述第一有声音频片段使用的频率不同。  The broadcast request message includes second audio information, where the second audio information is used to request the first terminal to broadcast the first authentication information, the second audio information includes a second voiced audio segment, and the second voiced audio The segment is different from the frequency at which the first audio segment is used.
本发明实施例提供的移动网络自动建立连接的装置, 接入点终端可以将 用于建立网络连接的认证信息对外进行广播, 以便其他终端接收此广播, 并 从中提取认证信息, 然后根据此认证信息与广播此认证信息的接入点终端建 立网络连接, 相比于现有技术中实现接入点终端和其他终端进行网络连接的 过程都需要用户手动进行很多信息设置和操作才能完成的方案来说, 本发明 实施例可以让终端之间自动建立网络连接, 从而使用户不需要手动进行认证 信息的设置以及认证信息的输入, 减少了手动操作过程带来的繁瑣和效率低 的问题, 提高了终端之间的网络连接建立速度, 让用户获得了更好的体验。  The device for automatically establishing a connection in the mobile network provided by the embodiment of the present invention, the access point terminal may broadcast the authentication information for establishing the network connection to the other terminal, so that the other terminal receives the broadcast, and extracts the authentication information, and then according to the authentication information. The network connection is established with the access point terminal that broadcasts the authentication information. Compared with the prior art, the process of implementing the network connection between the access point terminal and other terminals requires the user to manually perform a lot of information setting and operation to complete the solution. The embodiment of the invention can automatically establish a network connection between the terminals, so that the user does not need to manually set the authentication information and input the authentication information, thereby reducing the cumbersome and inefficient problems caused by the manual operation process, and improving the terminal. The speed of the network connection is established, allowing users to get a better experience.
实施例 7  Example 7
参考图 3、 图 5以及图 6中部分所示方法的实现, 本发明实施例提供了一 种移动网络自动建立连接的装置, 所述装置可以位于第二终端内部, 用以实 现图 3、 图 5以及图 6中部分所示的方法。 如图 10所示, 所述装置包括: 接 收单元 101、提取单元 102、解码单元 103、确定单元 1 04以及发送单元 105 , 其中,  Referring to the implementation of the method shown in FIG. 3, FIG. 5 and FIG. 6, an embodiment of the present invention provides a device for automatically establishing a connection in a mobile network, where the device may be located inside the second terminal, to implement FIG. 3 and FIG. 5 and the method shown in the section of Figure 6. As shown in FIG. 10, the apparatus includes: a receiving unit 101, an extracting unit 102, a decoding unit 103, a determining unit 104, and a sending unit 105, where
接收单元 101 , 用于接收广播信息, 所述广播信息包括经过编码的认证信 息。  The receiving unit 101 is configured to receive broadcast information, where the broadcast information includes encoded authentication information.
提取单元 102 ,用于从所述接收单元 101接收到的广播信息中提取所述经 过编码的认证信息。  The extracting unit 102 is configured to extract the encoded authentication information from the broadcast information received by the receiving unit 101.
解码单元 103 , 用于对所述提取单元 102提取得到的结果进行解码,得到 所述认证信息。  The decoding unit 103 is configured to decode the result extracted by the extracting unit 102 to obtain the authentication information.
确定单元 104 ,用于确定广播所述解码单元 103解码得到的认证信息的第 一终端。 a determining unit 104, configured to determine a first part of the authentication information decoded by the decoding unit 103 a terminal.
发送单元 105 ,用于向所述选取单元 104选取的第一终端发送网络连接建 立请求, 所述网络连接建立请求包括所述认证信息, 以使得所述第一终端在 确认所述认证信息合法时, 所述第一终端与所述第二终端建立网络连接。  The sending unit 105 is configured to send a network connection establishment request to the first terminal selected by the selecting unit 104, where the network connection establishment request includes the authentication information, so that when the first terminal confirms that the authentication information is legal The first terminal establishes a network connection with the second terminal.
进一步的, 如图 11所示, 所述提取单元 102具体包括:  Further, as shown in FIG. 11, the extracting unit 102 specifically includes:
滤波子单元 111 , 用于在预设频段对所述广播信息进行滤波处理。  The filtering subunit 111 is configured to perform filtering processing on the broadcast information in a preset frequency band.
其中, 根据具体情况的不同, 所述广播信息包括有声音频片段和静音音 频片段中的至少一种。  The broadcast information includes at least one of a voiced audio clip and a silent audio clip, depending on the specific situation.
第一提取子单元 1 12 ,用于从所述滤波子单元 111滤波的结果中提取有声 音频片段和静音音频片段; 其中, 所述声音频片段和静音音频片段的出现规 律用于指示所述经过编码的认证信息。  a first extraction sub-unit 1 12, configured to extract, from the result of filtering by the filtering sub-unit 111, an audio-sound segment and a mute audio segment; wherein an appearance rule of the audio-video segment and the mute audio segment is used to indicate the Encoded authentication information.
进一步的, 如图 12所示, 所述解码单元 103具体包括:  Further, as shown in FIG. 12, the decoding unit 103 specifically includes:
转换子单元 121 ,用于将所述第一提取子单元 112提取得到的有声音频片 段和静音音频片段转换为二进制序列; 其中, 在所述二进制序列中的两种数 值的出现规律, 与在所述滤波结果中提取到的有声音频片段和静音音频片段 的出现规律相同。  a conversion sub-unit 121, configured to convert the voiced audio segment and the mute audio segment extracted by the first extraction sub-unit 112 into a binary sequence; wherein, the occurrence rule of the two values in the binary sequence is The appearance rules of the voiced audio segment and the silenced audio segment extracted in the filtering result are the same.
第一解码子单元 122 ,用于对所述转换子单元 121转换得到的二进制序列 进行二进制解码, 得到所述认证信息。  The first decoding sub-unit 122 is configured to perform binary decoding on the binary sequence converted by the conversion sub-unit 121 to obtain the authentication information.
其中, 所述有声音频片段为持续预设时长并具有 19KHz音频频率的音频 片段。  The voiced audio segment is an audio segment that lasts for a preset duration and has an audio frequency of 19 kHz.
进一步的, 如图 1 3所示, 所述确定单元 104具体包括:  Further, as shown in FIG. 13 , the determining unit 104 specifically includes:
第二提取子单元 1 31 ,用于当所述广播信息中携带有经过编码的第一终端 的标识信息时, 从所述广播信息中提取所述经过编码的第一终端的标识信息。  The second extraction sub-unit 1 31 is configured to: when the broadcast information carries the identifier information of the encoded first terminal, extract the identifier information of the encoded first terminal from the broadcast information.
第二解码子单元 1 32 ,用于对所述第二提取子单元 1 31提取的所述经过编 码的第一终端的标识信息进行解码, 得到所述第一终端的标识信息。 选取子 单元 1 33 ,用于根据所述第二解码子单元 1 32解码得到的所述第一终端的标识 信息, 从可检测到的终端中选取与所述第一终端的标识信息对应的第一终端。 所述选取子单元 1 33还用于, 根据第二终端内存储的预设标识信息, 从 可检测到的终端中选取与所述预设标识信息对应的第一终端。 The second decoding sub-unit 1 32 is configured to decode the identification information of the encoded first terminal extracted by the second extraction sub-unit 1 31 to obtain identification information of the first terminal. The sub-unit 1 33 is configured to select, according to the identifier information of the first terminal that is decoded by the second decoding sub-unit 1 32, the first corresponding to the identifier information of the first terminal from the detectable terminal. a terminal. The selecting sub-unit 1 is further configured to: select, according to the preset identifier information stored in the second terminal, the first terminal corresponding to the preset identifier information from the detectable terminal.
进一步的, 如图 14所示, 所述装置还包括:  Further, as shown in FIG. 14, the device further includes:
生成单元 141 , 用于生成广播请求消息。  The generating unit 141 is configured to generate a broadcast request message.
广播单元 142 , 用于将所述生成单元 141生成的广播请求消息进行广播, 所述广播请求消息用于请求接收到所述广播请求消息的第一终端广播所述第 一终端的认证信息, 所述认证信息为与所述第一终端建立网络连接关系所需 的认证信息。  The broadcast unit 142 is configured to broadcast the broadcast request message generated by the generating unit 141, where the broadcast request message is used to request that the first terminal that receives the broadcast request message broadcasts the authentication information of the first terminal, where The authentication information is authentication information required to establish a network connection relationship with the first terminal.
其中, 所述广播请求消息包括有声音频片段, 并且, 所述广播请求消息 中的有声音频片段与所述广播消息中的有声音频片段使用的频率不同。  The broadcast request message includes a voiced audio segment, and the voiced audio segment in the broadcast request message is used at a different frequency than the voiced audio segment in the broadcast message.
本发明实施例提供的移动网络自动建立连接的装置, 其他终端通过接收 接入点终端发送的广播信息, 从中提取网络建立所需的认证信息, 然后根据 提取到的认证信息向发送该认证信息的接入点终端建立网络连接, 相比于现 有技术中实现接入点终端和其他终端进行网络连接的过程都需要用户手动进 行很多信息设置和操作才能完成的方案来说, 本发明实施例可以让终端之间 自动建立网络连接,从而使用户不需要手动进行认证信息的设置以及认证信 息的输入, 减少了手动操作过程带来的繁瑣和效率低的问题, 提高了终端之 间的网络连接建立速度, 让用户获得了更好的体验。  The device for automatically establishing a connection in the mobile network provided by the embodiment of the present invention, the other terminal extracts the broadcast information sent by the access point terminal, extracts the authentication information required for the network establishment, and then sends the authentication information according to the extracted authentication information. The access point terminal establishes a network connection. Compared with the prior art, the process of implementing the network connection between the access point terminal and the other terminal requires the user to manually perform a lot of information setting and operation to complete the solution. The network connection is automatically established between the terminals, so that the user does not need to manually set the authentication information and input the authentication information, which reduces the cumbersome and inefficient problems caused by the manual operation process, and improves the network connection establishment between the terminals. Speed, let users get a better experience.
实施例 8  Example 8
本发明实施例还提供了一种电子终端, 如图 15所示, 该电子终端包括处 理器 151、 存储器 152、 扬声器 153、 麦克风 154以及无线接收机 155 , 所述 存储器 152被配置程序代码, 所述扬声器 153用于广播音频信号, 所述麦克 风 154用于接收音频信号, 无线接收机 155可以用于接收非音频信号, 所述 处理器 151用于调用存储器 152配置的程序代码以实现如图 2、 4、 6中所示 的方法流程, 上述各个器件之间可通过总线进行通信。  An embodiment of the present invention further provides an electronic terminal. As shown in FIG. 15, the electronic terminal includes a processor 151, a memory 152, a speaker 153, a microphone 154, and a wireless receiver 155. The memory 152 is configured with a program code. The speaker 153 is used to broadcast an audio signal, the microphone 154 is used to receive an audio signal, the wireless receiver 155 can be used to receive a non-audio signal, and the processor 151 is used to call a program code configured by the memory 152 to implement FIG. The method flow shown in 4, 6 can communicate with each other through the bus.
所述处理器 151用于从所述存储器 152 中获取第一认证信息; 将第一认 证信息进行编码; 根据第一认证信息, 判断麦克风 154接收的第二认证信息 是否合法; 当确定第二认证信息合法时, 所述第一终端与所述第二终端建立 网络连接; The processor 151 is configured to obtain first authentication information from the memory 152, encode the first authentication information, and determine, according to the first authentication information, the second authentication information received by the microphone 154. Whether it is legal; when it is determined that the second authentication information is legal, the first terminal establishes a network connection with the second terminal;
所述扬声器 153 , 用于将所述处理器 151编码得到的结果进行广播; 无线接收机 155还用于, 接收第二终端发送的网络连接建立请求, 所述 网络连接建立请求携带有第二认证信息。  The speaker 153 is configured to broadcast the result encoded by the processor 151; the wireless receiver 155 is further configured to: receive a network connection establishment request sent by the second terminal, where the network connection establishment request carries the second authentication information.
可选的, 所述处理器 151还用于, 从所述存储器 152 中获取所述第一终 端的标识信息; 将获取到的标识信息进行编码;  Optionally, the processor 151 is further configured to: obtain the identifier information of the first terminal from the memory 152; and encode the obtained identifier information;
所述扬声器 153还用于, 将编码得到的结果进行广播。  The speaker 153 is further configured to broadcast the encoded result.
可选的是, 所述处理器 151 具体用于对所述第一认证信息进行二进制编 码, 生成二进制序列; 将生成的二进制序列转换成第一音频信息, 所述第一 音频信息包括第一有声音频片段和静音音频片段中的至少一种;  Optionally, the processor 151 is specifically configured to perform binary coding on the first authentication information to generate a binary sequence, and convert the generated binary sequence into first audio information, where the first audio information includes the first voice information. At least one of an audio clip and a silent audio clip;
所述扬声器 153具体用于将第一音频信息进行广播;  The speaker 153 is specifically configured to broadcast the first audio information;
其中, 所述第一有声音频片段为持续预设时长并具有 19KHz音频频率的 音频片段。  The first voiced audio segment is an audio segment that lasts for a preset duration and has an audio frequency of 19 kHz.
可选的是, 所述处理器 151还用于, 检测所述麦克风 154是否接收到广 播请求消息; 在确定所述麦克风 154接收到第二音频信息广播请求消息时, 获取第一认证信息。 所述广播请求消息包括第二音频信息, 所述第二音频信 息用于请求第一终端广播所述第一认证信息, 所述第二音频信息包括第二有 声音频片段, 所述第二有声音频片段与所述第一有声音频片段使用的频率不 同。  Optionally, the processor 151 is further configured to: detect whether the microphone 154 receives the broadcast request message; and when determining that the microphone 154 receives the second audio information broadcast request message, obtain the first authentication information. The broadcast request message includes second audio information, where the second audio information is used to request the first terminal to broadcast the first authentication information, the second audio information includes a second voiced audio segment, and the second voiced audio The segment is different from the frequency at which the first audio segment is used.
本发明实施例提供的移动网络自动建立连接的装置, 接入点终端可以将 用于建立网络连接的认证信息对外进行广播, 以便其他终端接收此广播, 并 从中提取认证信息, 然后根据此认证信息与广播此认证信息的接入点终端建 立网络连接, 相比于现有技术中实现接入点终端和其他终端进行网络连接的 过程都需要用户手动进行很多信息设置和操作才能完成的方案来说, 本发明 实施例可以让终端之间自动建立网络连接, 从而使用户不需要手动进行认证 信息的设置以及认证信息的输入, 减少了手动操作过程带来的繁瑣和效率低 的问题, 提高了终端之间的网络连接建立速度, 让用户获得了更好的体验。 实施例 9 The device for automatically establishing a connection in the mobile network provided by the embodiment of the present invention, the access point terminal may broadcast the authentication information for establishing the network connection to the other terminal, so that the other terminal receives the broadcast, and extracts the authentication information, and then according to the authentication information. The network connection is established with the access point terminal that broadcasts the authentication information. Compared with the prior art, the process of implementing the network connection between the access point terminal and other terminals requires the user to manually perform a lot of information setting and operation to complete the solution. The embodiment of the invention can automatically establish a network connection between the terminals, so that the user does not need to manually set the authentication information and input the authentication information, thereby reducing the cumbersome and inefficient operation caused by the manual operation process. The problem is to improve the speed of network connection between terminals and let users get a better experience. Example 9
本发明实施例还提供了一种电子终端, 如图 16所示, 该电子终端包括处 理器 161、 存储器 162、 扬声器 163、 麦克风 164以及无线发射机 165 , 所述 存储器 162被配置程序代码, 所述扬声器 163用于广播音频信号, 所述麦克 风 164用于接收音频信号, 无线发射机 165可以用于发射非音频信号, 所述 处理器 161用于调用存储器 162配置的程序代码以实现如图 3、 5、 6中所示 的方法流程, 上述各个器件之间可通过总线进行通信。 所述麦克风 164还用 于接收广播信息, 所述广播信息包括经过编码的认证信息。  An embodiment of the present invention further provides an electronic terminal. As shown in FIG. 16, the electronic terminal includes a processor 161, a memory 162, a speaker 163, a microphone 164, and a wireless transmitter 165. The memory 162 is configured with a program code. The speaker 163 is used to broadcast an audio signal, the microphone 164 is used to receive an audio signal, the wireless transmitter 165 can be used to transmit a non-audio signal, and the processor 161 is used to call a program code configured by the memory 162 to implement FIG. The method flow shown in 5, 6 can communicate with each other through the bus. The microphone 164 is also operative to receive broadcast information, the broadcast information including encoded authentication information.
所述处理器 161还用于, 从所述扬声器 163接收的广播信息中提取所述 经过编码的认证信息; 对提取得到的结果进行解码, 得到所述认证信息; 确 定广播所述认证信息的第一终端;  The processor 161 is further configured to: extract the encoded authentication information from the broadcast information received by the speaker 163; decode the extracted result to obtain the authentication information; and determine to broadcast the authentication information a terminal
所述无线发射机 165还用于, 向所述第一终端发送网络连接建立请求, 所述网络连接建立请求包括所述认证信息, 以使得所述第一终端在确认所述 认证信息合法时, 所述第一终端与所述第二终端建立网络连接。  The wireless transmitter 165 is further configured to: send a network connection establishment request to the first terminal, where the network connection establishment request includes the authentication information, so that when the first terminal confirms that the authentication information is legal, The first terminal establishes a network connection with the second terminal.
可选的是, 所述处理器 161 具体用于在预设频段对所述广播信息进行滤 波处理; 其中, 所述广播信息包括有声音频片段和静音音频片段中的至少一 种; 从滤波的结果中提取有声音频片段和静音音频片段; 其中, 所述声音频 片段和静音音频片段的出现规律用于指示所述经过编码的认证信息; 将提取 得到的有声音频片段和静音音频片段转换为二进制序列; 其中, 在所述二进 制序列中的两种数值的出现规律, 与在所述滤波结果中提取到的有声音频片 段和静音音频片段的出现规律相同。  Optionally, the processor 161 is specifically configured to perform filtering processing on the broadcast information in a preset frequency band, where the broadcast information includes at least one of a voiced audio segment and a silence audio segment; And extracting the audio audio segment and the silent audio segment; wherein, the appearance rules of the audio audio segment and the silent audio segment are used to indicate the encoded authentication information; and converting the extracted audio audio segment and the silent audio segment into a binary sequence Wherein, the occurrence rules of the two values in the binary sequence are the same as the appearance rules of the audio and audio segments extracted in the filtering result.
可选的是, 所述处理器 151 具体用于对转换得到的二进制序列进行二进 制解码, 得到所述认证信息。 所述有声音频片段为持续预设时长并具有 19KHz 音频频率的音频片段。  Optionally, the processor 151 is specifically configured to perform binary decoding on the converted binary sequence to obtain the authentication information. The voiced audio clip is an audio clip that lasts for a preset duration and has an audio frequency of 19 kHz.
可选的是, 所述处理器 151 具体用于当所述广播信息中携带有经过编码 的第一终端的标识信息时, 从所述广播信息中提取所述经过编码的第一终端 的标识信息; 对提取的所述经过编码的第一终端的标识信息进行解码, 得到 所述第一终端的标识信息; 根据所述第一终端的解码得到的所述标识信息, 从可检测到的终端中选取与所述第一终端的预设标识信息对应的第一终端; 根据第二终端内存储的预设标识信息, 从可检测到的终端中选取与所述预设 标识信息对应的第一终端。 Optionally, the processor 151 is specifically configured to: when the broadcast information carries the identifier information of the encoded first terminal, extract the encoded first terminal from the broadcast information. The identification information of the encoded first terminal is decoded to obtain the identification information of the first terminal; and the identification information obtained by decoding the first terminal is detectable Selecting, by the terminal, a first terminal that is corresponding to the preset identifier information of the first terminal, and selecting, according to preset identifier information stored in the second terminal, a preset corresponding to the preset identifier information from the detectable terminal. The first terminal.
可选的是, 所述处理器 151还用于, 生成广播请求消息;  Optionally, the processor 151 is further configured to: generate a broadcast request message;
所述扬声器 153还用于, 将所述广播请求消息进行广播, 所述广播请求 消息用于请求接收到所述广播请求消息的第一终端广播所述第一终端的认证 信息, 所述认证信息为与所述第一终端建立网络连接关系所需的认证信息。  The speaker 153 is further configured to: broadcast the broadcast request message, where the broadcast request message is used to request that the first terminal that receives the broadcast request message broadcasts authentication information of the first terminal, where the authentication information is The authentication information required to establish a network connection relationship with the first terminal.
本实施例提供的移动网络自动建立连接的装置, 其他终端通过接收其他 终端发送的广播信息, 从中提取网络建立所需的认证信息, 然后根据提取到 的认证信息向发送该认证信息的接入点终端建立网络连接, 相比于现有技术 中实现接入点终端和待其他终端进行网络连接的过程都需要用户手动进行很 多信息设置和操作才能完成的方案来说, 本发明实施例可以让终端之间自动 建立网络连接,从而使用户不需要手动进行认证信息的设置以及认证信息的 输入, 减少了手动操作过程带来的繁瑣和效率低的问题, 提高了终端之间的 网络连接建立速度, 让用户获得了更好的体验。  The mobile network provided by the embodiment automatically establishes a connection device, and the other terminal extracts the broadcast information sent by the other terminal, extracts the authentication information required for the network establishment, and then sends the authentication information to the access point according to the extracted authentication information. The terminal establishes a network connection. Compared with the prior art, the process of implementing the network connection of the access point terminal and the other terminal requires the user to manually perform a lot of information setting and operation to complete the solution. The network connection is automatically established, so that the user does not need to manually set the authentication information and input the authentication information, which reduces the cumbersome and inefficient problems caused by the manual operation process, and improves the network connection establishment speed between the terminals. Let users get a better experience.
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件, 但 很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该 计算机软件产品存储在可读取的存储介质中, 如计算机的软盘, 硬盘或光盘 等, 包括若干指令用以使得一台计算机终端 (可以是个人计算机, 服务器, 或者网络终端等)执行本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. . Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. , a hard disk or an optical disk, etc., including instructions for causing a computer terminal (which may be a personal computer, a server, or a network terminal, etc.) to perform the methods described in various embodiments of the present invention.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准 ( The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the protection of the present invention The scope should be stated in the scope of the claims (

Claims

权利要求 书 claims
1、 一种移动网络自动建立连接的方法, 其特征在于, 包括: 1. A method for automatically establishing a connection on a mobile network, which is characterized by including:
第一终端获取第一认证信息; The first terminal obtains the first authentication information;
所述第一终端将所述第一认证信息进行编码, 并将编码结果进行广播, 以 使得第二终端在接收到所述编码结果之后, 对所述编码结果进行解码, 用以获 取所述第一认证信息; The first terminal encodes the first authentication information and broadcasts the encoding result, so that after receiving the encoding result, the second terminal decodes the encoding result to obtain the third 1. Certification information;
所述第一终端接收第二终端发送的网络连接建立请求, 所述网络连接建立 请求携带有第二认证信息; The first terminal receives a network connection establishment request sent by the second terminal, and the network connection establishment request carries second authentication information;
根据所述第一认证信息, 所述第一终端判断所述第二认证信息是否合法; 若确定所述第二认证信息合法, 则所述第一终端与所述第二终端建立网络 连接。 According to the first authentication information, the first terminal determines whether the second authentication information is legal; if it is determined that the second authentication information is legal, the first terminal establishes a network connection with the second terminal.
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 所述第一终端获取所述第一终端的标识信息; 2. The method according to claim 1, characterized in that, the method further includes: the first terminal obtains the identification information of the first terminal;
所述第一终端将所述标识信息进行编码, 并将编码结果进行广播。 The first terminal encodes the identification information and broadcasts the encoding result.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述将所述第一认证信 息进行编码包括: 3. The method according to claim 1 or 2, wherein encoding the first authentication information includes:
对所述第一认证信息进行二进制编码, 生成二进制序列; Perform binary encoding on the first authentication information to generate a binary sequence;
则所述将编码结果进行广播包括: Then the broadcasting of the encoding results includes:
所述第一终端将所述二进制序列转换成第一音频信息, 所述第一音频信息 包括第一有声音频片段和静音音频片段中的至少一种; 并且第一有声音频片段 和静音音频片段在第一音频信息中的出现规律, 与在该第一音频信息对应的二 进制序列中的两种数值的出现规律相同; The first terminal converts the binary sequence into first audio information, where the first audio information includes at least one of a first voiced audio segment and a silent audio segment; and the first voiced audio segment and the silent audio segment are in The appearance rule in the first audio information is the same as the appearance rule of the two numerical values in the binary sequence corresponding to the first audio information;
将所述第一音频信息进行广播。 The first audio information is broadcast.
4、 根据权利要求 3所述的方法, 其特征在于, 所述第一有声音频片段为持 续预设时长并具有 19KHz音频频率的音频片段。 4. The method according to claim 3, wherein the first voiced audio segment is an audio segment that lasts for a preset duration and has an audio frequency of 19KHz.
5、 根据权利 1至 4任意一项所述的方法, 其特征在于, 在所述获取第一认 证信息之前, 还包括: 所述第一终端检测是否接收到广播请求消息; 5. The method according to any one of claims 1 to 4, characterized in that, before obtaining the first authentication information, it further includes: The first terminal detects whether a broadcast request message is received;
则所述获取第一认证信息包括: Then the obtaining the first authentication information includes:
在确定接收到所述广播请求消息时, 所述第一终端获取第一认证信息。 When determining that the broadcast request message is received, the first terminal acquires first authentication information.
6、 根据权利要求 5所述的方法, 其特征在于, 所述广播请求消息包括第二 音频信息, 所述第二音频信息用于请求第一终端广播所述第一认证信息, 所述 第二音频信息包括第二有声音频片段, 所述第二有声音频片段与所述第一有声 音频片段使用的频率不同。 6. The method according to claim 5, wherein the broadcast request message includes second audio information, and the second audio information is used to request the first terminal to broadcast the first authentication information, and the second The audio information includes a second voiced audio segment using a different frequency than the first voiced audio segment.
7、 一种移动网络自动建立连接的方法, 其特征在于, 包括: 7. A method for automatically establishing a connection on a mobile network, which is characterized by including:
第二终端接收广播信息, 所述广播信息包括经过编码的认证信息; The second terminal receives broadcast information, where the broadcast information includes encoded authentication information;
所述第二终端从所述广播信息中提取所述经过编码的认证信息, 并对提取 结果进行解码, 得到所述认证信息; The second terminal extracts the encoded authentication information from the broadcast information, and decodes the extraction result to obtain the authentication information;
所述第二终端确定广播所述认证信息的第一终端, 并向所述第一终端发送 网络连接建立请求, 所述网络连接建立请求包括所述认证信息, 以使得所述第 一终端在确认所述认证信息合法时, 所述第一终端与所述第二终端建立网络连 接。 The second terminal determines the first terminal that broadcasts the authentication information, and sends a network connection establishment request to the first terminal, where the network connection establishment request includes the authentication information, so that the first terminal confirms When the authentication information is legal, the first terminal establishes a network connection with the second terminal.
8、 根据权利要求 7所述的方法, 其特征在于, 所述广播信息包括有声音频 片段和静音音频片段中的至少一种; 8. The method according to claim 7, wherein the broadcast information includes at least one of a sound audio segment and a silent audio segment;
所述从所述广播信息中提取所述经过编码的认证信息包括: Extracting the encoded authentication information from the broadcast information includes:
所述第二终端在预设频段对所述广播信息进行滤波处理; The second terminal performs filtering processing on the broadcast information in a preset frequency band;
所述第二终端从滤波结果中提取有声音频片段和静音音频片段; 其中, 所 述声音频片段和静音音频片段的出现规律用于指示所述经过编码的认证信息; 则所述对提取结果进行解码, 得到所述认证信息包括: The second terminal extracts the voiced audio segments and the silent audio segments from the filtering result; wherein, the occurrence rules of the voiced audio segments and the silent audio segments are used to indicate the encoded authentication information; then the extraction result is Decode and obtain the authentication information including:
所述第二终端将提取到的有声音频片段和静音音频片段转换为二进制序列; 其中, 在所述二进制序列中的两种数值的出现规律, 与在所述滤波结果中提取 到的有声音频片段和静音音频片段的出现规律相同; The second terminal converts the extracted voiced audio segments and silent audio segments into binary sequences; wherein, the occurrence rules of the two numerical values in the binary sequence are consistent with the extracted voiced audio segments in the filtering result. The same pattern occurs with silent audio clips;
所述第二终端对所述二进制序列进行二进制解码, 得到所述认证信息。 The second terminal performs binary decoding on the binary sequence to obtain the authentication information.
9、 根据权利要求 8所述的方法, 其特征在于, 所述有声音频片段为持续预 设时长并具有 19KHz音频频率的音频片段。 9. The method of claim 8, wherein the voiced audio clip is a continuous pre-recorded An audio clip with a set duration and an audio frequency of 19KHz.
1 0、 根据权利要求 8或 9所述的方法, 其特征在于, 所述确定广播所述认 证信息的第一终端包括: 10. The method according to claim 8 or 9, wherein the determining the first terminal that broadcasts the authentication information includes:
当所述广播信息中携带有经过编码的第一终端的标识信息时, 所述第二终 端从所述广播信息中提取所述经过编码的第一终端的标识信息, 并对提取的所 述经过编码的第一终端的标识信息进行解码, 得到所述第一终端的标识信息; 根据所述第一终端的标识信息, 从可检测到的终端中选取与所述第一终端的标 识信息对应的第一终端; When the broadcast information carries the encoded identification information of the first terminal, the second terminal extracts the encoded identification information of the first terminal from the broadcast information, and processes the extracted process. decode the encoded identification information of the first terminal to obtain the identification information of the first terminal; select the terminal corresponding to the identification information of the first terminal from the detectable terminals according to the identification information of the first terminal. first terminal;
或者, 所述第二终端根据第二终端内存储的预设标识信息, 从可检测到的 终端中选取与所述预设标识信息对应的第一终端。 Alternatively, the second terminal selects the first terminal corresponding to the preset identification information from the detectable terminals based on the preset identification information stored in the second terminal.
1 1、 根据权利要求 7至 10任意一项所述的方法, 其特征在于, 在所述接收 广播信息之前, 还包括: 11. The method according to any one of claims 7 to 10, characterized in that, before receiving the broadcast information, it further includes:
所述第二终端生成广播请求消息, 并将所述广播请求消息进行广播, 所述 广播请求消息用于请求接收到所述广播请求消息的第一终端广播所述第一终端 的认证信息, 所述认证信息为与所述第一终端建立网络连接关系所需的认证信 息。 The second terminal generates a broadcast request message and broadcasts the broadcast request message. The broadcast request message is used to request the first terminal that receives the broadcast request message to broadcast the authentication information of the first terminal, so The authentication information is authentication information required to establish a network connection relationship with the first terminal.
12、 根据权利要求 11所述的方法, 其特征在于, 所述广播请求消息包括有 声音频片段, 并且, 所述广播请求消息中的有声音频片段与所述广播消息中的 有声音频片段使用的频率不同。 12. The method according to claim 11, characterized in that, the broadcast request message includes a voiced audio segment, and, the voiced audio segment in the broadcast request message is different from the frequency used by the voiced audio segment in the broadcast message. different.
1 3、 一种移动网络自动建立连接的装置, 其特征在于, 包括: 1 3. A device for automatically establishing a connection to a mobile network, which is characterized by including:
获取单元, 用于获取第一认证信息; The acquisition unit is used to acquire the first authentication information;
编码单元, 用于将所述获取单元获取到的第一认证信息进行编码; 广播单元, 用于将所述编码单元得到的编码结果进行广播; An encoding unit, used to encode the first authentication information obtained by the acquisition unit; A broadcast unit, used to broadcast the encoding result obtained by the encoding unit;
接收单元, 用于接收第二终端发送的网络连接建立请求, 所述网络连接建 立请求携带有第二认证信息; A receiving unit configured to receive a network connection establishment request sent by the second terminal, where the network connection establishment request carries second authentication information;
判断单元, 用于根据所述获取单元获取到的第一认证信息, 判断所述接收 单元接收的第二认证信息是否合法; 建立连接单元, 用于在所述判断单元判断第二认证信息合法时, 与所述第 二终端建立网络连接。 A judging unit, configured to judge whether the second authentication information received by the receiving unit is legal based on the first authentication information obtained by the obtaining unit; A connection establishment unit is configured to establish a network connection with the second terminal when the judgment unit judges that the second authentication information is legal.
14、 根据权利要求 1 3所述的装置, 其特征在于, 所述获取单元还用于, 获 取移动网络自动建立连接的装置的标识信息; 14. The device according to claim 13, wherein the acquisition unit is further configured to acquire identification information of a device that automatically establishes a connection to a mobile network;
所述编码单元还用于, 将所述获取单元获取到的标识信息进行编码。 The encoding unit is also used to encode the identification information obtained by the acquisition unit.
15、 根据权利要求 1 3或 14所述的装置, 其特征在于, 所述编码单元具体 用于对所述第一认证信息进行二进制编码, 生成二进制序列; 15. The device according to claim 13 or 14, characterized in that the encoding unit is specifically used to binary encode the first authentication information to generate a binary sequence;
所述广播单元具体包括: The broadcast unit specifically includes:
转换子单元, 用于将所述编码单元生成的二进制序列转换成第一音频信息, 所述第一音频信息包括第一有声音频片段和静音音频片段中的至少一种; A conversion subunit, configured to convert the binary sequence generated by the encoding unit into first audio information, where the first audio information includes at least one of a first voiced audio segment and a silent audio segment;
广播子单元, 用于将所述转换子单元转换得到的第一音频信息进行广播。 A broadcasting subunit, configured to broadcast the first audio information converted by the conversion subunit.
16、 根据权利要求 15所述的装置, 其特征在于, 所述第一有声音频片段为 持续预设时长并具有 19KHz音频频率的音频片段。 16. The device according to claim 15, wherein the first voiced audio segment is an audio segment that lasts for a preset duration and has an audio frequency of 19KHz.
17、 根据权利要求 1 3至 16任意一项所述的装置, 其特征在于, 所述装置 还包括: 17. The device according to any one of claims 13 to 16, characterized in that the device further includes:
检测单元, 用于检测是否接收到广播请求消息; A detection unit, used to detect whether a broadcast request message is received;
所述获取单元具体用于在所述检测单元确定接收到所述广播请求消息时, 获取第一认证信息。 The obtaining unit is specifically configured to obtain the first authentication information when the detection unit determines that the broadcast request message is received.
18、 根据权利要求 17所述的装置, 其特征在于, 所述广播请求消息包括第 二音频信息, 所述第二音频信息用于请求所述第一终端广播所述第一认证信息, 所述第二音频信息包括第二有声音频片段, 所述第二有声音频片段与所述第一 有声音频片段使用的频率不同。 18. The device according to claim 17, wherein the broadcast request message includes second audio information, and the second audio information is used to request the first terminal to broadcast the first authentication information, The second audio information includes a second voiced audio segment using a different frequency than the first voiced audio segment.
19、 一种移动网络自动建立连接的装置, 其特征在于, 包括: 19. A device for automatically establishing a connection to a mobile network, characterized by: including:
接收单元, 用于接收广播信息, 所述广播信息包括经过编码的认证信息; 提取单元, 用于从所述接收单元接收到的广播信息中提取所述经过编码的 认证信息; A receiving unit, configured to receive broadcast information, where the broadcast information includes encoded authentication information; an extraction unit, configured to extract the encoded authentication information from the broadcast information received by the receiving unit;
解码单元, 用于对所述提取单元提取得到的结果进行解码, 得到所述认证 信息; A decoding unit, used to decode the results extracted by the extraction unit to obtain the authentication information;
确定单元, 用于确定广播所述解码单元解码得到的认证信息的第一终端; 发送单元, 用于向所述选取单元选取的第一终端发送网络连接建立请求, 所述网络连接建立请求包括所述认证信息, 以使得所述第一终端在确认所述认 证信息合法时, 所述第一终端与所述第二终端建立网络连接。 A determining unit, configured to determine the first terminal that broadcasts the authentication information decoded by the decoding unit; A sending unit, configured to send a network connection establishment request to the first terminal selected by the selection unit, where the network connection establishment request includes the The authentication information is provided, so that when the first terminal confirms that the authentication information is legal, the first terminal establishes a network connection with the second terminal.
20、 根据权利要求 19所述的装置, 其特征在于, 所述广播信息包括有声音 频片段和静音音频片段中的至少一种; 20. The device according to claim 19, wherein the broadcast information includes at least one of a sound audio segment and a silent audio segment;
所述提取单元具体包括: The extraction unit specifically includes:
滤波子单元, 用于在预设频段对所述广播信息进行滤波处理; A filtering subunit, used to filter the broadcast information in a preset frequency band;
第一提取子单元, 用于从所述滤波子单元滤波的结果中提取有声音频片段 和静音音频片段; 其中, 所述声音频片段和静音音频片段的出现规律用于指示 所述经过编码的认证信息; The first extraction subunit is used to extract voiced audio segments and silent audio segments from the filtering results of the filtering subunit; wherein the appearance rules of the voiced audio segments and silent audio segments are used to indicate the encoded authentication information;
所述解码单元具体包括: The decoding unit specifically includes:
转换子单元, 用于将所述第一提取子单元提取得到的有声音频片段和静音 音频片段转换为二进制序列; 其中, 在所述二进制序列中的两种数值的出现规 律, 与在所述滤波结果中提取到的有声音频片段和静音音频片段的出现规律相 同; A conversion subunit, used to convert the sound audio clips and silent audio clips extracted by the first extraction subunit into a binary sequence; wherein, the occurrence rules of the two numerical values in the binary sequence are the same as those in the filtering The sound audio clips and silent audio clips extracted from the results appear in the same pattern;
第一解码子单元, 用于对所述转换子单元转换得到的二进制序列进行二进 制解码, 得到所述认证信息。 The first decoding subunit is used to binary decode the binary sequence converted by the conversion subunit to obtain the authentication information.
21、 根据权利要求 20所述的装置, 其特征在于, 所述有声音频片段为持续 预设时长并具有 19KHz音频频率的音频片段。 21. The device according to claim 20, wherein the voiced audio clip is an audio clip that lasts for a preset duration and has an audio frequency of 19KHz.
22、 根据权利要求 20或 21所述的装置, 其特征在于, 所述确定单元具体 包括: 22. The device according to claim 20 or 21, characterized in that the determining unit specifically includes:
第二提取子单元, 用于当所述广播信息中携带有经过编码的第一终端的标 识信息时, 从所述广播信息中提取所述经过编码的第一终端的标识信息; The second extraction subunit is configured to extract the encoded identification information of the first terminal from the broadcast information when the broadcast information carries the encoded identification information of the first terminal;
第二解码子单元, 用于对所述第二提取子单元提取的所述经过编码的第一 终端的标识信息进行解码, 得到所述第一终端的标识信息; 选取子单元, 用于 根据所述第二解码子单元解码得到的所述第一终端的标识信息, 从可检测到的 终端中选取与所述第一终端的标识信息对应的第一终端; 所述选取子单元还用 于, 根据第二终端内存储的预设标识信息, 从可检测到的终端中选取与所述预 设标识信息对应的第一终端。 The second decoding subunit is used to decode the encoded identification information of the first terminal extracted by the second extraction subunit to obtain the identification information of the first terminal; the selection subunit is used for According to the identification information of the first terminal decoded by the second decoding subunit, select the first terminal corresponding to the identification information of the first terminal from the detectable terminals; the selection subunit also uses Then, according to the preset identification information stored in the second terminal, select the first terminal corresponding to the preset identification information from the detectable terminals.
23、 根据权利要求 19至 11任意一项所述的装置, 其特征在于, 所述装置 还包括: 23. The device according to any one of claims 19 to 11, characterized in that the device further includes:
生成单元, 用于生成广播请求消息; Generating unit, used to generate broadcast request messages;
广播单元, 用于将所述生成单元生成的广播请求消息进行广播, 所述广播 请求消息用于请求接收到所述广播请求消息的第一终端广播所述第一终端的认 证信息, 所述认证信息为与所述第一终端建立网络连接关系所需的认证信息。 a broadcast unit, configured to broadcast the broadcast request message generated by the generating unit; the broadcast request message is used to request the first terminal that receives the broadcast request message to broadcast the authentication information of the first terminal; the authentication The information is authentication information required to establish a network connection relationship with the first terminal.
24、 根据权利要求 23所述的装置, 其特征在于, 所述广播请求消息包括有 声音频片段, 并且, 所述广播请求消息中的有声音频片段与所述广播消息中的 有声音频片段使用的频率不同。 24. The apparatus according to claim 23, wherein the broadcast request message includes a voiced audio segment, and the frequency of the voiced audio segment in the broadcast request message is consistent with the frequency used by the voiced audio segment in the broadcast message. different.
PCT/CN2014/074710 2013-09-04 2014-04-03 Method for mobile network to automatically establish connection, and terminal WO2015032196A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310398686.XA CN104427471A (en) 2013-09-04 2013-09-04 Method for automatically establishing connection of mobile network and terminal
CN201310398686.X 2013-09-04

Publications (1)

Publication Number Publication Date
WO2015032196A1 true WO2015032196A1 (en) 2015-03-12

Family

ID=52627759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/074710 WO2015032196A1 (en) 2013-09-04 2014-04-03 Method for mobile network to automatically establish connection, and terminal

Country Status (2)

Country Link
CN (1) CN104427471A (en)
WO (1) WO2015032196A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869611A (en) * 2015-04-30 2015-08-26 杭州华三通信技术有限公司 WLAN access method and device
GB2555941A (en) * 2016-09-19 2018-05-16 Asio Ltd A method and system for authenticating a device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714008B (en) * 2015-11-13 2021-09-17 深圳兆日科技股份有限公司 Audio communication method, intelligent terminal and audio equipment
CN106358157B (en) * 2016-09-30 2019-07-09 Oppo广东移动通信有限公司 The method and apparatus of smart machine networking
CN107945807B (en) * 2016-10-12 2021-04-13 厦门雅迅网络股份有限公司 Voice recognition method and system based on silence run
CN106686639A (en) * 2017-01-16 2017-05-17 上海智臻智能网络科技股份有限公司 Network configuration method and device for intelligent voice interaction equipment, and related equipment
CN106960561A (en) * 2017-03-30 2017-07-18 中广核(深圳)辐射监测技术有限公司 Wireless collection transmission adaptor and collecting method for electron dosimeter
CN107094095B (en) * 2017-04-18 2020-03-06 中电科微波通信(上海)股份有限公司 Network management system and network management method
CN107358285B (en) * 2017-08-17 2023-07-04 中国汽车工业工程有限公司 Binary coded hard medium bar code with checking rule
CN107396319B (en) * 2017-09-01 2019-09-20 深圳回收宝科技有限公司 A kind of method of wireless network authentication, equipment, storage medium and terminal reclaimer
US11317289B2 (en) 2017-09-07 2022-04-26 Google Llc Audio communication tokens
CN112399638B (en) * 2020-11-17 2023-07-14 Oppo广东移动通信有限公司 Communication connection establishment method, storage medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286839A (en) * 2006-12-27 2008-10-15 英特尔公司 A method for exchanging strong encryption keys between devices using alternative input methods in wireless personal area networks (WPAN)
JP2010021777A (en) * 2008-07-10 2010-01-28 Yamaha Corp Communication system
CN202931336U (en) * 2012-12-06 2013-05-08 深圳市创想天空科技有限公司 System for realizing data transmission through voice and data transmission and receiving terminals
CN203027256U (en) * 2012-11-22 2013-06-26 国民技术股份有限公司 Communication device and communication system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7533735B2 (en) * 2002-02-15 2009-05-19 Qualcomm Corporation Digital authentication over acoustic channel
US9628514B2 (en) * 2011-11-10 2017-04-18 Skype Device association using an audio signal
CN102801530B (en) * 2012-09-04 2015-08-26 飞天诚信科技股份有限公司 A kind of authentication method based on transfer voice

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286839A (en) * 2006-12-27 2008-10-15 英特尔公司 A method for exchanging strong encryption keys between devices using alternative input methods in wireless personal area networks (WPAN)
JP2010021777A (en) * 2008-07-10 2010-01-28 Yamaha Corp Communication system
CN203027256U (en) * 2012-11-22 2013-06-26 国民技术股份有限公司 Communication device and communication system
CN202931336U (en) * 2012-12-06 2013-05-08 深圳市创想天空科技有限公司 System for realizing data transmission through voice and data transmission and receiving terminals

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869611A (en) * 2015-04-30 2015-08-26 杭州华三通信技术有限公司 WLAN access method and device
GB2555941A (en) * 2016-09-19 2018-05-16 Asio Ltd A method and system for authenticating a device
GB2555941B (en) * 2016-09-19 2021-08-11 Sonos Experience Ltd A method and system for authenticating a device

Also Published As

Publication number Publication date
CN104427471A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
WO2015032196A1 (en) Method for mobile network to automatically establish connection, and terminal
US9894059B2 (en) Device association
US20130265857A1 (en) Device Association
US9407869B2 (en) Systems and methods for initiating conferences using external devices
WO2018113545A1 (en) Cross-device login method, system and apparatus
WO2013071209A1 (en) Method and system for pairing devices
EP3049949B1 (en) Acoustic feedback control for conference calls
CN110753330A (en) Bluetooth pairing method and Bluetooth headset
WO2014090040A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
CN103166702A (en) Method and device for configuring wireless network in voice frequency mode
US20160165343A1 (en) Wireless connection and control method for wireless sound box and system thereof
CN104869497A (en) Wireless network setting method and apparatus of WIFI sound box
CN110636485A (en) Bluetooth automatic connection method and method for initiating Bluetooth connection
CN104869568A (en) Audio-based monitoring system configuration method and system
CN103957220A (en) Data transmission method and system based on frequency conversion sound waves
TW201607357A (en) Toning control method of WiFi device setting by smart device
CN105722183A (en) Sharing method and apparatus for Wi-Fi (wireless fidelity) link information
CN104702373A (en) Device and method for using acoustic code to perform network configuration for equipment
WO2011137872A2 (en) Method, system, and corresponding terminal for multimedia communications
CN107820251B (en) Network access method, device and system
US20140163971A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
CN106559588B (en) Method and device for uploading text information
CN106303966B (en) FM sharing system and method
TW201725882A (en) A communicating method for a mobile device and communicating method for a cloud server
CN110636460B (en) Information transmission method based on voice call

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14842256

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14842256

Country of ref document: EP

Kind code of ref document: A1