[go: up one dir, main page]

CN105472698A - Wireless network access method and device - Google Patents

Wireless network access method and device Download PDF

Info

Publication number
CN105472698A
CN105472698A CN201510855878.8A CN201510855878A CN105472698A CN 105472698 A CN105472698 A CN 105472698A CN 201510855878 A CN201510855878 A CN 201510855878A CN 105472698 A CN105472698 A CN 105472698A
Authority
CN
China
Prior art keywords
terminal
wireless network
network access
information
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510855878.8A
Other languages
Chinese (zh)
Inventor
张鹏飞
夏勇峰
苏峻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Beijing Smartmi Technology Co Ltd
Original Assignee
Xiaomi Inc
Beijing Smartmi Technology Co Ltd
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 Xiaomi Inc, Beijing Smartmi Technology Co Ltd filed Critical Xiaomi Inc
Priority to CN201510855878.8A priority Critical patent/CN105472698A/en
Publication of CN105472698A publication Critical patent/CN105472698A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

The invention discloses a wireless network access method and device and belongs to the communication technical field. The wireless network access method includes the following steps that: a server determines a first terminal associated with a second terminal; the server sends device information of the second terminal to the first terminal; the first terminal establishes a connection with the second terminal according to the device information; the first terminal shares the network access information of a wireless network with the second terminal through the connection, wherein the first terminal has been connected into the wireless network; and the second terminal is connected into the wireless network according to the network access information. With the wireless network access method and device adopted, the problems of a very complicated wireless network connection process and inflexible sharing modes which are caused by a situation that the user of the second terminal is required to initially request to connect the wireless network due to the singleness of the sharing modes of the wireless network, can be solved; the first terminal which has been connected into the wireless network can share the network access information of the wireless network with the second terminal, so that the second terminal can be connected into the wireless network according to the shared network access information, and therefore, a connection process of the wireless network can be simplified, and the utilization rate of the wireless network can be improved.

Description

无线网络接入方法及装置Wireless network access method and device

技术领域technical field

本公开实施例涉及通信技术领域,特别涉及一种无线网络接入方法及装置。Embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a method and device for accessing a wireless network.

背景技术Background technique

随着移动终端的广泛使用,无线网络成为移动终端接入互联网的一种重要形式。With the widespread use of mobile terminals, wireless networks have become an important form for mobile terminals to access the Internet.

相关技术中,移动终端在接入无线网络时,首先需要获取到该无线网络的服务集标识和接入密钥。目前,当终端A在接入无线网络时,终端A的用户首先需要通过向已接入该无线网络的终端B的用户索取接入密钥,终端B的用户将接入密钥告知终端A的用户,终端A的用户根据无线网络的服务集标识和索取到的接入密钥接入该无线网络。In related technologies, when a mobile terminal accesses a wireless network, it first needs to obtain a service set identifier and an access key of the wireless network. At present, when terminal A is accessing the wireless network, the user of terminal A first needs to obtain an access key from the user of terminal B who has already connected to the wireless network, and the user of terminal B informs the user of terminal A of the access key. The user, the user of terminal A, accesses the wireless network according to the SSID of the wireless network and the obtained access key.

发明内容Contents of the invention

为了解决相关技术中存在的问题,本公开提供一种无线网络接入方法及装置。所述技术方案如下:In order to solve the problems existing in related technologies, the present disclosure provides a wireless network access method and device. Described technical scheme is as follows:

根据本公开实施例的第一方面,提供一种无线网络接入方法,该方法包括:According to a first aspect of an embodiment of the present disclosure, a wireless network access method is provided, the method including:

第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端;The first terminal receives the device information of the second terminal sent by the server, and the first terminal is a terminal associated with the second terminal determined by the server;

第一终端根据设备信息与第二终端建立连接;The first terminal establishes a connection with the second terminal according to the device information;

第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The first terminal shares the network access information of the accessed wireless network with the second terminal through the connection, and the network access information carries the service set identifier and the access key of the wireless network, so that the second terminal can access the wireless network according to the network access information. into the wireless network.

在一种可能的实现方式中,设备信息包括第二终端在处于热点模式时的预定服务集标识;In a possible implementation manner, the device information includes a predetermined service set identifier when the second terminal is in the hotspot mode;

第一终端根据设备信息与第二终端建立连接,包括:The first terminal establishes a connection with the second terminal according to the device information, including:

第一终端根据预定服务集标识扫描第二终端提供的热点无线网络;The first terminal scans the hotspot wireless network provided by the second terminal according to the predetermined service set identifier;

第一终端接入热点无线网络,与第二终端建立无线网络连接。The first terminal accesses the hotspot wireless network, and establishes a wireless network connection with the second terminal.

在一种可能的实现方式中,设备信息包括第二终端的蓝牙标识;In a possible implementation manner, the device information includes the Bluetooth identifier of the second terminal;

第一终端根据设备信息与第二终端建立连接,包括:The first terminal establishes a connection with the second terminal according to the device information, including:

第一终端接收第二终端发送的蓝牙广播报文,蓝牙广播报文包括第二终端的蓝牙标识;The first terminal receives the Bluetooth broadcast message sent by the second terminal, and the Bluetooth broadcast message includes the Bluetooth identification of the second terminal;

第一终端根据蓝牙标识与第二终端建立蓝牙连接。The first terminal establishes a Bluetooth connection with the second terminal according to the Bluetooth identifier.

在一种可能的实现方式中,第一终端根据设备信息与第二终端建立连接,包括:In a possible implementation, the first terminal establishes a connection with the second terminal according to device information, including:

第一终端根据设备信息通过服务器向第二终端发送连接请求;The first terminal sends a connection request to the second terminal through the server according to the device information;

第一终端根据连接请求,以服务器作为中转节点与第二终端建立连接。According to the connection request, the first terminal establishes a connection with the second terminal using the server as a transit node.

根据本公开实施例的第二方面,提供一种无线网络接入方法,该方法包括:According to a second aspect of an embodiment of the present disclosure, a wireless network access method is provided, the method including:

第二终端通过设备信息与第一终端建立连接,第一终端是服务器确定出的与第二终端关联的终端,设备信息是由服务器发送给第一终端的;The second terminal establishes a connection with the first terminal through the device information, the first terminal is a terminal determined by the server to be associated with the second terminal, and the device information is sent to the first terminal by the server;

第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥;The second terminal receives the network access information of the wireless network shared by the first terminal, and the network access information carries a service set identifier and an access key of the wireless network;

第二终端根据网络接入信息接入无线网络。The second terminal accesses the wireless network according to the network access information.

在一种可能的实现方式中,设备信息包括第二终端在处于热点模式时的预定服务集标识;In a possible implementation manner, the device information includes a predetermined service set identifier when the second terminal is in the hotspot mode;

第二终端通过设备信息与第一终端建立连接,包括:The second terminal establishes a connection with the first terminal through device information, including:

第二终端进入热点模式提供热点无线网络,热点无线网络的服务集标识是预定服务集标识;The second terminal enters the hotspot mode to provide a hotspot wireless network, and the service set identifier of the hotspot wireless network is a predetermined service set identifier;

当第一终端接入热点无线网络后,第二终端与第一终端建立无线网络连接。After the first terminal accesses the hotspot wireless network, the second terminal establishes a wireless network connection with the first terminal.

在一种可能的实现方式中,设备信息包括第二终端的蓝牙标识;In a possible implementation manner, the device information includes the Bluetooth identifier of the second terminal;

第二终端通过设备信息与第一终端建立连接,包括:The second terminal establishes a connection with the first terminal through device information, including:

第二终端发送蓝牙广播报文,蓝牙广播报文包括第二终端的蓝牙标识;The second terminal sends a Bluetooth broadcast message, and the Bluetooth broadcast message includes the Bluetooth identification of the second terminal;

当第一终端根据蓝牙广播报文请求连接时,第二终端与第一终端建立蓝牙连接。When the first terminal requests a connection according to the Bluetooth broadcast message, the second terminal establishes a Bluetooth connection with the first terminal.

在一种可能的实现方式中,第二终端通过设备信息与第一终端建立连接,包括:In a possible implementation manner, the second terminal establishes a connection with the first terminal through device information, including:

第二终端接收服务器转发的来自于第一终端的连接请求,连接请求是第一终端与第二终端建立连接的请求;The second terminal receives a connection request from the first terminal forwarded by the server, and the connection request is a request for establishing a connection between the first terminal and the second terminal;

第二终端根据连接请求,以服务器作为中转节点与第一终端建立连接。According to the connection request, the second terminal establishes a connection with the first terminal using the server as a transit node.

根据本公开实施例的第三方面,提供一种无线网络接入方法,该方法包括:According to a third aspect of an embodiment of the present disclosure, a wireless network access method is provided, the method including:

确定与第二终端关联的第一终端;determining a first terminal associated with a second terminal;

向第一终端发送第二终端的设备信息,第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。Send the device information of the second terminal to the first terminal, the first terminal is used to establish a connection with the second terminal according to the device information, and share the network access information of the accessed wireless network with the second terminal through the connection, the second terminal It is used to access the wireless network according to the network access information.

在一种可能的实现方式中,确定与第二终端关联的第一终端,包括:In a possible implementation manner, determining the first terminal associated with the second terminal includes:

将与第二终端使用同一用户帐号购买的终端,确定为与第二终端关联的第一终端;determining the terminal purchased using the same user account as the second terminal as the first terminal associated with the second terminal;

或,or,

将与第二终端使用同一购买地址的终端,确定为与第二终端关联的第一终端;determining the terminal using the same purchase address as the second terminal as the first terminal associated with the second terminal;

或,or,

将与第二终端绑定有同一用户帐号的终端,确定为与第二终端关联的第一终端。A terminal bound with the same user account as the second terminal is determined as the first terminal associated with the second terminal.

在一种可能的实现方式中,该方法,还包括:In a possible implementation, the method further includes:

接收第一终端向第二终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥;receiving network access information of the wireless network shared by the first terminal to the second terminal, where the network access information carries a service set identifier and an access key of the wireless network;

将网络接入信息转发给第二终端,以便第二终端根据网络接入信息接入无线网络。The network access information is forwarded to the second terminal, so that the second terminal accesses the wireless network according to the network access information.

根据本公开实施例的第四方面,提供一种无线网络接入装置,该装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a wireless network access device, the device comprising:

信息接收模块,被配置为第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端;The information receiving module is configured such that the first terminal receives the device information of the second terminal sent by the server, and the first terminal is a terminal associated with the second terminal determined by the server;

连接建立模块,被配置为第一终端根据设备信息与第二终端建立连接;A connection establishing module, configured to establish a connection between the first terminal and the second terminal according to the device information;

网络分享模块,被配置为第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The network sharing module is configured so that the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection, and the network access information carries the service set identifier and the access key of the wireless network, so that the second terminal The terminal accesses the wireless network according to the network access information.

在一种可能的实现方式中,设备信息包括第二终端在处于热点模式时的预定服务集标识;In a possible implementation manner, the device information includes a predetermined service set identifier when the second terminal is in the hotspot mode;

连接建立模块,包括:Connection establishment modules, including:

网络扫描子模块,被配置为第一终端根据预定服务集标识扫描第二终端提供的热点无线网络;The network scanning submodule is configured so that the first terminal scans the hotspot wireless network provided by the second terminal according to the predetermined service set identifier;

第一连接子模块,被配置为第一终端接入热点无线网络,与第二终端建立无线网络连接。The first connection sub-module is configured so that the first terminal accesses the hotspot wireless network and establishes a wireless network connection with the second terminal.

在一种可能的实现方式中,设备信息包括第二终端的蓝牙标识;In a possible implementation manner, the device information includes the Bluetooth identifier of the second terminal;

连接建立模块,包括:Connection establishment modules, including:

广播接收子模块,被配置为第一终端接收第二终端发送的蓝牙广播报文,蓝牙广播报文包括第二终端的蓝牙标识;The broadcast receiving sub-module is configured so that the first terminal receives the Bluetooth broadcast message sent by the second terminal, and the Bluetooth broadcast message includes the Bluetooth identification of the second terminal;

第二连接子模块,被配置为第一终端根据蓝牙标识与第二终端建立蓝牙连接。The second connection submodule is configured so that the first terminal establishes a Bluetooth connection with the second terminal according to the Bluetooth identifier.

在一种可能的实现方式中,连接建立模块,包括:In a possible implementation manner, the connection establishment module includes:

请求发送子模块,被配置为第一终端根据设备信息通过服务器向第二终端发送连接请求;The request sending submodule is configured such that the first terminal sends a connection request to the second terminal through the server according to the device information;

第三连接子模块,被配置为第一终端根据连接请求,以服务器作为中转节点与第二终端建立连接。The third connection sub-module is configured such that the first terminal establishes a connection with the second terminal using the server as a transit node according to the connection request.

根据本公开实施例的第五方面,提供一种无线网络接入装置,该装置包括:According to a fifth aspect of an embodiment of the present disclosure, there is provided a wireless network access device, the device comprising:

信息连接模块,被配置为第二终端通过设备信息与第一终端建立连接,第一终端是服务器确定出的与第二终端关联的终端,设备信息是由服务器发送给第一终端的;The information connection module is configured such that the second terminal establishes a connection with the first terminal through device information, the first terminal is a terminal determined by the server to be associated with the second terminal, and the device information is sent to the first terminal by the server;

网络接收模块,被配置为第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥;The network receiving module is configured so that the second terminal receives the network access information of the wireless network shared by the first terminal, and the network access information carries a service set identifier and an access key of the wireless network;

网络接入模块,被配置为第二终端根据网络接入信息接入无线网络。The network access module is configured so that the second terminal accesses the wireless network according to the network access information.

在一种可能的实现方式中,设备信息包括第二终端在处于热点模式时的预定服务集标识;In a possible implementation manner, the device information includes a predetermined service set identifier when the second terminal is in the hotspot mode;

信息连接模块,包括:Information connection module, including:

网络提供子模块,被配置为第二终端进入热点模式提供热点无线网络,热点无线网络的服务集标识是预定服务集标识;The network providing sub-module is configured to provide a hotspot wireless network for the second terminal to enter the hotspot mode, and the service set identifier of the hotspot wireless network is a predetermined service set identifier;

第四连接子模块,被配置为当第一终端接入热点无线网络后,第二终端与第一终端建立无线网络连接。The fourth connection sub-module is configured to establish a wireless network connection between the second terminal and the first terminal after the first terminal accesses the hotspot wireless network.

在一种可能的实现方式中,设备信息包括第二终端的蓝牙标识;In a possible implementation manner, the device information includes the Bluetooth identifier of the second terminal;

信息连接模块,包括:Information connection module, including:

广播发送子模块,被配置为第二终端发送蓝牙广播报文,蓝牙广播报文包括第二终端的蓝牙标识;The broadcast sending sub-module is configured to send a Bluetooth broadcast message to the second terminal, and the Bluetooth broadcast message includes the Bluetooth identification of the second terminal;

第五连接子模块,被配置为当第一终端根据蓝牙广播报文请求连接时,第二终端与第一终端建立蓝牙连接。The fifth connection submodule is configured to establish a Bluetooth connection between the second terminal and the first terminal when the first terminal requests a connection according to the Bluetooth broadcast message.

在一种可能的实现方式中,信息连接模块,包括:In a possible implementation manner, the information connection module includes:

请求接收子模块,被配置为第二终端接收服务器转发的来自于第一终端的连接请求,连接请求是第一终端与第二终端建立连接的请求;The request receiving submodule is configured so that the second terminal receives a connection request from the first terminal forwarded by the server, and the connection request is a request for establishing a connection between the first terminal and the second terminal;

第六连接子模块,被配置为第二终端根据连接请求,以服务器作为中转节点与第一终端建立连接。The sixth connection submodule is configured so that the second terminal establishes a connection with the first terminal using the server as a transit node according to the connection request.

根据本公开实施例的第六方面,提供一种无线网络接入装置,该装置包括:According to a sixth aspect of the embodiments of the present disclosure, there is provided a wireless network access device, the device comprising:

关联确定模块,被配置为确定与第二终端关联的第一终端;an association determination module configured to determine the first terminal associated with the second terminal;

信息发送模块,被配置为向第一终端发送第二终端的设备信息,第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。The information sending module is configured to send the device information of the second terminal to the first terminal, the first terminal is used to establish a connection with the second terminal according to the device information, and share the connected wireless network network with the second terminal through the connection The access information is used for the second terminal to access the wireless network according to the network access information.

在一种可能的实现方式中,关联确定模块,被配置为将与第二终端使用同一用户帐号购买的终端,确定为与第二终端关联的第一终端;In a possible implementation manner, the association determination module is configured to determine a terminal purchased using the same user account as the second terminal as the first terminal associated with the second terminal;

或,or,

关联确定模块,被配置为将与第二终端使用同一购买地址的终端,确定为与第二终端关联的第一终端;an association determination module configured to determine a terminal using the same purchase address as the second terminal as the first terminal associated with the second terminal;

或,or,

关联确定模块,被配置为将与第二终端绑定有同一用户帐号的终端,确定为与第二终端关联的第一终端。The association determining module is configured to determine a terminal bound with the same user account as the second terminal as the first terminal associated with the second terminal.

在一种可能的实现方式中,该装置,还包括:In a possible implementation manner, the device further includes:

分享接收模块,被配置为接收第一终端向第二终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥;The sharing receiving module is configured to receive the network access information of the wireless network shared by the first terminal to the second terminal, where the network access information carries a service set identifier and an access key of the wireless network;

网络转发模块,被配置为将网络接入信息转发给第二终端,以便第二终端根据网络接入信息接入无线网络。The network forwarding module is configured to forward the network access information to the second terminal, so that the second terminal can access the wireless network according to the network access information.

根据本公开实施例的第七方面,提供一种无线网络接入装置,该装置包括:According to a seventh aspect of the embodiments of the present disclosure, there is provided a wireless network access device, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,处理器被配置为:where the processor is configured as:

第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端;The first terminal receives the device information of the second terminal sent by the server, and the first terminal is a terminal associated with the second terminal determined by the server;

第一终端根据设备信息与第二终端建立连接;The first terminal establishes a connection with the second terminal according to the device information;

第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The first terminal shares the network access information of the accessed wireless network with the second terminal through the connection, and the network access information carries the service set identifier and the access key of the wireless network, so that the second terminal can access the wireless network according to the network access information. into the wireless network.

根据本公开实施例的第八方面,提供一种无线网络接入装置,该装置包括:According to an eighth aspect of the embodiments of the present disclosure, there is provided a wireless network access device, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,处理器被配置为:where the processor is configured as:

第二终端通过设备信息与第一终端建立连接,第一终端是服务器确定出的与第二终端关联的终端,设备信息是由服务器发送给第一终端的;The second terminal establishes a connection with the first terminal through the device information, the first terminal is a terminal determined by the server to be associated with the second terminal, and the device information is sent to the first terminal by the server;

第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥;The second terminal receives the network access information of the wireless network shared by the first terminal, and the network access information carries a service set identifier and an access key of the wireless network;

第二终端根据网络接入信息接入无线网络。The second terminal accesses the wireless network according to the network access information.

根据本公开实施例的第九方面,提供一种无线网络接入装置,该装置包括:According to a ninth aspect of embodiments of the present disclosure, there is provided a wireless network access device, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,处理器被配置为:where the processor is configured as:

确定与第二终端关联的第一终端;determining a first terminal associated with a second terminal;

向第一终端发送第二终端的设备信息,第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。Send the device information of the second terminal to the first terminal, the first terminal is used to establish a connection with the second terminal according to the device information, and share the network access information of the accessed wireless network with the second terminal through the connection, the second terminal It is used to access the wireless network according to the network access information.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

通过第一终端接收服务器发送的第二终端的设备信息;第一终端根据设备信息与第二终端建立连接;第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。The first terminal receives the device information of the second terminal sent by the server; the first terminal establishes a connection with the second terminal according to the device information; the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection; It solves the problem that the sharing method of the wireless network is relatively simple, and the user of the second terminal needs to actively request to obtain it, which leads to a very cumbersome wireless network connection process and the problem that the sharing method is not flexible enough; it achieves the problem that the first terminal connected to the wireless network can connect the wireless The network access information of the network is shared with the second terminal, and the second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves the utilization rate of the wireless network.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并于说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种无线网络接入方法所涉及的实施环境的示意图;Fig. 1 is a schematic diagram of an implementation environment involved in a wireless network access method according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种无线网络接入方法的流程图;Fig. 2 is a flow chart showing a method for accessing a wireless network according to an exemplary embodiment;

图3A是根据另一示例性实施例示出的一种无线网络接入方法的流程图;Fig. 3A is a flow chart showing a method for accessing a wireless network according to another exemplary embodiment;

图3B是根据一示例性实施例示出的一种获取热点无线网络列表的示意图;Fig. 3B is a schematic diagram of obtaining a hotspot wireless network list according to an exemplary embodiment;

图4A是根据另一示例性实施例示出的一种无线网络接入方法的流程图;Fig. 4A is a flow chart showing a method for accessing a wireless network according to another exemplary embodiment;

图4B是根据一示例性实施例示出的一种接收蓝牙广播报文列表的示意图;Fig. 4B is a schematic diagram of receiving a Bluetooth broadcast message list according to an exemplary embodiment;

图5是根据另一示例性实施例示出的一种无线网络接入方法的流程图;Fig. 5 is a flow chart showing a method for accessing a wireless network according to another exemplary embodiment;

图6是根据一示例性实施例示出的一种无线网络接入装置的框图;Fig. 6 is a block diagram of a wireless network access device according to an exemplary embodiment;

图7A是根据另一示例性实施例示出的一种无线网络接入装置的框图;Fig. 7A is a block diagram of a wireless network access device according to another exemplary embodiment;

图7B是根据一示例性实施例示出的一种连接建立模块的子模块的框图;Fig. 7B is a block diagram of a submodule of a connection establishment module according to an exemplary embodiment;

图7C是根据另一示例性实施例示出的一种连接建立模块的子模块的框图;Fig. 7C is a block diagram of a submodule of a connection establishment module according to another exemplary embodiment;

图8是根据一示例性实施例示出的一种无线网络接入装置的框图;Fig. 8 is a block diagram of a wireless network access device according to an exemplary embodiment;

图9A是根据另一示例性实施例示出的一种无线网络接入装置的框图;Fig. 9A is a block diagram of a wireless network access device according to another exemplary embodiment;

图9B是根据一示例性实施例示出的一种信息连接模块的子模块的框图;Fig. 9B is a block diagram of submodules of an information connection module according to an exemplary embodiment;

图9C是根据另一示例性实施例示出的一种信息连接模块的子模块的框图;Fig. 9C is a block diagram of submodules of an information connection module according to another exemplary embodiment;

图10是根据一示例性实施例示出的一种无线网络接入装置的框图;Fig. 10 is a block diagram of a wireless network access device according to an exemplary embodiment;

图11是根据另一示例性实施例示出的一种无线网络接入装置的框图;Fig. 11 is a block diagram of a wireless network access device according to another exemplary embodiment;

图12是根据一示例性实施例示出的一种无线网络接入装置的框图。Fig. 12 is a block diagram showing a wireless network access device according to an exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

图1是根据一示例性实施例示出的一种无线网络接入方法所涉及的实施环境的示意图,如图1所示,该实施环境可以包括第一终端110、第二终端120和服务器130。FIG. 1 is a schematic diagram of an implementation environment involved in a wireless network access method according to an exemplary embodiment. As shown in FIG. 1 , the implementation environment may include a first terminal 110 , a second terminal 120 and a server 130 .

第一终端110或第二终端120可以是手机、平板电脑、电子书阅读器、MP3(MovingPictureExpertsGroupAudioLayerIII,动态影像专家压缩标准音频层面3)播放器、MP4(MovingPictureExpertsGroupAudioLayerIV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。第一终端110和第二终端120中安装有通信类应用程序,该通信类应用程序可以是即时通信程序、社交类应用程序或语音通信程序。比如,该通信类应用程序是即时通信程序米聊、微博或微信。The first terminal 110 or the second terminal 120 can be a mobile phone, a tablet computer, an e-book reader, an MP3 (MovingPictureExpertsGroupAudioLayerIII, moving picture expert compression standard audio layer 3) player, MP4 (MovingPictureExpertsGroupAudioLayerIV, moving picture expert compression standard audio layer 4) players, laptops and desktops, and more. A communication application program is installed in the first terminal 110 and the second terminal 120, and the communication application program may be an instant messaging program, a social networking application program or a voice communication program. For example, the communication application program is an instant messaging program Michat, Weibo or WeChat.

第一终端110与第二终端120通过服务器130建立关联关系。The first terminal 110 establishes an association relationship with the second terminal 120 via the server 130 .

服务器130可以获取到第二终端120的设备信息,并将获取到的设备信息发送给第一终端110。The server 130 may obtain the device information of the second terminal 120 and send the obtained device information to the first terminal 110 .

服务器130是通信类应用程序的后台服务器。服务器130可以是一台服务器、多台服务器组成的服务器集群或云计算中心。The server 130 is a background server of communication application programs. The server 130 may be a server, a server cluster composed of multiple servers, or a cloud computing center.

图2是根据一示例性实施例示出的一种无线网络接入方法的流程图,如图2所示,该无线网络接入方法应用于图1所示的实施环境中,包括以下步骤。Fig. 2 is a flowchart showing a wireless network access method according to an exemplary embodiment. As shown in Fig. 2, the wireless network access method is applied in the implementation environment shown in Fig. 1 and includes the following steps.

在步骤201中,服务器确定与第二终端关联的第一终端。In step 201, the server determines the first terminal associated with the second terminal.

在步骤202中,服务器向第一终端发送第二终端的设备信息。In step 202, the server sends the device information of the second terminal to the first terminal.

第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。The first terminal is used to establish a connection with the second terminal according to the device information, and share the network access information of the accessed wireless network with the second terminal through the connection, and the second terminal is used to access the wireless network according to the network access information.

对应地,第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端。Correspondingly, the first terminal receives the device information of the second terminal sent by the server, and the first terminal is determined by the server to be associated with the second terminal.

在步骤203中,第一终端根据设备信息与第二终端建立连接。In step 203, the first terminal establishes a connection with the second terminal according to the device information.

对应地,第二终端通过设备信息与第一终端建立连接。Correspondingly, the second terminal establishes a connection with the first terminal through the device information.

第一终端是服务器确定出的与第二终端关联的终端,设备信息是由服务器发送给第一终端的。The first terminal is determined by the server to be associated with the second terminal, and the device information is sent to the first terminal by the server.

在步骤204中,第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息。In step 204, the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection.

网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The network access information carries the service set identifier and the access key of the wireless network, so that the second terminal can access the wireless network according to the network access information.

在步骤205中,第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥。In step 205, the second terminal receives the network access information of the wireless network shared by the first terminal, and the network access information carries the service set identifier and the access key of the wireless network.

在步骤206中,第二终端根据网络接入信息接入无线网络。In step 206, the second terminal accesses the wireless network according to the network access information.

综上所述,本公开实施例中提供的无线网络接入方法,通过服务器确定与第二终端关联的第一终端;服务器向第一终端发送第二终端的设备信息;第一终端根据设备信息与第二终端建立连接;第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息;第二终端根据网络接入信息接入无线网络;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, in the wireless network access method provided in the embodiments of the present disclosure, the server determines the first terminal associated with the second terminal; the server sends the device information of the second terminal to the first terminal; Establish a connection with the second terminal; the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection; the second terminal accesses the wireless network according to the network access information; solves the problem of sharing the wireless network Single, requires the user of the second terminal to actively request to obtain, which leads to the problem that the wireless network connection process is very cumbersome and the sharing method is not flexible enough; the network access information of the wireless network can be shared with the first terminal that has already connected to the wireless network. The second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves the utilization rate of the wireless network.

需要说明的一点是:图2实施例中有关服务器侧的步骤可以单独实现成为服务器一侧的无线网络接入方法,有关第一终端侧的步骤可以单独实现成为第一终端一侧的无线网络接入方法,有关第二终端侧的步骤可以单独实现成为第二终端一侧的无线网络接入方法。It should be noted that the steps related to the server side in the embodiment of FIG. 2 can be independently implemented as a wireless network access method on the server side, and the steps related to the first terminal side can be independently implemented as a wireless network access method on the first terminal side. In the access method, the steps on the second terminal side can be independently implemented as a wireless network access method on the second terminal side.

图3A是根据另一示例性实施例示出的一种无线网络接入方法的流程图,如图3A所示,该无线网络接入方法应用于图1所示的实施环境中,包括以下步骤。Fig. 3A is a flow chart showing a wireless network access method according to another exemplary embodiment. As shown in Fig. 3A, the wireless network access method is applied in the implementation environment shown in Fig. 1 and includes the following steps.

在步骤301中,服务器确定与第二终端关联的第一终端。In step 301, the server determines the first terminal associated with the second terminal.

服务器在获取第二终端的设备信息时,确定与第二终端关联的第一终端。When acquiring the device information of the second terminal, the server determines the first terminal associated with the second terminal.

可选的,服务器将与第二终端使用同一用户帐号购买的终端,确定为与第二终端关联的第一终端。Optionally, the server determines the terminal purchased using the same user account as the second terminal as the first terminal associated with the second terminal.

服务器根据第二终端获取到购买第二终端的用户帐号,将通过该用户帐号购买的终端确定为与第二终端关联的第一终端。The server acquires the user account for purchasing the second terminal according to the second terminal, and determines the terminal purchased through the user account as the first terminal associated with the second terminal.

服务器通过该用户帐号可以获取到第二终端的设备信息,也可以查询到第一终端。The server can obtain the device information of the second terminal through the user account, and can also query the first terminal.

可选的,服务器将与第二终端使用同一购买地址的终端,确定为与第二终端关联的第一终端。Optionally, the server determines a terminal using the same purchase address as the second terminal as the first terminal associated with the second terminal.

服务器根据第二终端获取到购买第二终端的购买地址,将通过同一购买地址购买的终端确定为与第二终端关联的第一终端。The server acquires the purchase address of the second terminal according to the acquisition of the second terminal, and determines the terminal purchased through the same purchase address as the first terminal associated with the second terminal.

其中,购买地址可以是购买第二终端的网站地址、某个购物网站地址或第二终端实际购买的地址等。Wherein, the purchase address may be the address of the website where the second terminal is purchased, the address of a certain shopping website, or the actual purchase address of the second terminal.

服务器通过该购买地址可以获取到第二终端的设备信息,也可以查询到第一终端。The server can obtain the device information of the second terminal through the purchase address, and can also inquire about the first terminal.

可选的,服务器将与第二终端绑定有同一用户帐号的终端,确定为与第二终端关联的第一终端。Optionally, the server determines the terminal bound with the same user account as the second terminal as the first terminal associated with the second terminal.

服务器根据第二终端获取到与第二终端绑定的用户帐号,将该用户帐号绑定的其它终端确定为与第二终端关联的第一终端。According to the user account bound to the second terminal acquired by the second terminal, the server determines other terminals bound to the user account as the first terminal associated with the second terminal.

服务器通过绑定的用户帐号可以获取到第二终端的设备信息,也可以查询到第一终端。The server can acquire the device information of the second terminal through the bound user account, and can also query the first terminal.

在步骤302中,服务器向第一终端发送第二终端的设备信息,设备信息包括第二终端在处于热点模式时的预定服务集标识。In step 302, the server sends the device information of the second terminal to the first terminal, where the device information includes a predetermined service set identifier when the second terminal is in the hotspot mode.

服务器获取第二终端的设备信息,将获取到的设备信息发送给第一终端,该设备信息中包括第二终端在处于热点模式时的预定服务集标识。The server obtains the device information of the second terminal, and sends the obtained device information to the first terminal, where the device information includes a predetermined service set identifier when the second terminal is in the hotspot mode.

第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。The first terminal is used to establish a connection with the second terminal according to the device information, and share the network access information of the accessed wireless network with the second terminal through the connection, and the second terminal is used to access the wireless network according to the network access information.

对应地,第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端。Correspondingly, the first terminal receives the device information of the second terminal sent by the server, and the first terminal is determined by the server to be associated with the second terminal.

在步骤303中,第二终端进入热点模式提供热点无线网络,热点无线网络的服务集标识是预定服务集标识。In step 303, the second terminal enters a hotspot mode to provide a hotspot wireless network, and the service set identifier of the hotspot wireless network is a predetermined service set identifier.

第二终端在初始化时,会进入热点模式提供热点无线网络,该热点无线网络的服务集标识是服务器向第一终端发送第二终端的设备信息中的预定服务集标识,且第二终端在初始化过程中,第二终端提供的热点无线网络无需接入密钥即可接入。When the second terminal is initialized, it will enter the hotspot mode to provide a hotspot wireless network. The service set identifier of the hotspot wireless network is the predetermined service set identifier in the device information of the second terminal sent by the server to the first terminal. During the process, the hotspot wireless network provided by the second terminal can be accessed without an access key.

可选的,第二终端提供的热点无线网络需要接入密钥才可接入无线网络,则服务器在向第一终端发送第二终端的设备信息时,将第二终端提供的热点无线网络的接入密钥携带在设备信息中提前发送给第一终端。Optionally, the hotspot wireless network provided by the second terminal requires an access key to access the wireless network, and when the server sends the device information of the second terminal to the first terminal, the hotspot wireless network provided by the second terminal The access key is carried in the device information and sent to the first terminal in advance.

在步骤304中,第一终端根据预定服务集标识扫描第二终端提供的热点无线网络。In step 304, the first terminal scans the hotspot wireless network provided by the second terminal according to the predetermined service set identifier.

第一终端在接收到服务器发送的第二终端的预定服务集标识后,根据该预定服务集标识扫描第二终端提供的热点无线网络。After receiving the predetermined service set identifier of the second terminal sent by the server, the first terminal scans the hotspot wireless network provided by the second terminal according to the predetermined service set identifier.

可选的,无线网络包括无线网络的名称、序列号、MAC(MediaAccessControl,介质访问控制)地址等。Optionally, the wireless network includes a name of the wireless network, a serial number, a MAC (MediaAccessControl, medium access control) address, and the like.

第一终端经过扫描获取到预定范围内可用的热点无线网络列表,从扫描到的热点无线网络列表中选择预定服务集标识的网络。比如:预定服务集标识为无线网络的名称“hahahaha”,获取到的无线网络列表如图3B所示。The first terminal acquires a list of hotspot wireless networks available within a predetermined range through scanning, and selects a network identified by a predetermined service set from the scanned list of hotspot wireless networks. For example, if the predetermined service set is identified as the name of the wireless network "hahahaha", the obtained list of wireless networks is shown in FIG. 3B .

在步骤305中,第一终端接入热点无线网络,与第二终端建立无线网络连接。In step 305, the first terminal accesses the hotspot wireless network, and establishes a wireless network connection with the second terminal.

第一终端根据预定服务集标识扫描到第二终端提供的热点无线网络后,与第二终端通过热点无线网络建立无线网络连接。After scanning to the hotspot wireless network provided by the second terminal according to the predetermined service set identifier, the first terminal establishes a wireless network connection with the second terminal through the hotspot wireless network.

对应地,当第一终端接入热点无线网络后,第二终端与第一终端建立无线网络连接。Correspondingly, after the first terminal accesses the hotspot wireless network, the second terminal establishes a wireless network connection with the first terminal.

在步骤306中,第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息。In step 306, the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection.

第一终端通过与第二终端建立连接后,通过连接将已接入的无线网络的网络接入信息分享给第二终端,以便第二终端根据网络接入信息接入该无线网络。After establishing a connection with the second terminal, the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection, so that the second terminal can access the wireless network according to the network access information.

已接入的无线网络是第一终端在接入第二终端提供的热点无线网络之前接入的网络,也即第一终端历史接入的网络。第一终端在接入第二终端提供的热点无线网络后,将历史接入的无线网络的网络接入信息通过连接分享给第二终端。The accessed wireless network is the network accessed by the first terminal before accessing the hotspot wireless network provided by the second terminal, that is, the network previously accessed by the first terminal. After accessing the hotspot wireless network provided by the second terminal, the first terminal shares the network access information of the historically accessed wireless network with the second terminal through the connection.

可选的,第一终端将接入第二终端提供的热点无线网络之前,最近接入的无线网络的网络信息通过连接分享给第二终端。Optionally, before the first terminal accesses the hotspot wireless network provided by the second terminal, the network information of the most recently accessed wireless network is shared with the second terminal through the connection.

可选的,第一终端根据自身所在的区域位置,将历史接入的无线网络中的部分网络接入信息通过连接分享给第二终端,该部分网络接入信息是所在的区域位置中可用的无线网络的网络接入信息。Optionally, the first terminal shares part of the network access information in the historically accessed wireless network with the second terminal through the connection according to the area where it is located, and this part of the network access information is available in the area where it is located Network access information for the wireless network.

可选的,第一终端将历史接入的无线网络中的全部网络接入信息通过连接分享给第二终端。Optionally, the first terminal shares all network access information in the historically accessed wireless network with the second terminal through the connection.

可选的,第一终端在将历史接入的无线网络的网络接入信息通过连接分享给第二终端后,断开与第二终端提供的热点无线网络的连接,继续接入历史接入的无线网络。可选的,第一终端继续接入最近接入的无线网络。Optionally, after the first terminal shares the network access information of the historically accessed wireless network with the second terminal through the connection, it disconnects from the hotspot wireless network provided by the second terminal, and continues to access the historically accessed wireless network. wireless network. Optionally, the first terminal continues to access the recently accessed wireless network.

网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The network access information carries the service set identifier and the access key of the wireless network, so that the second terminal can access the wireless network according to the network access information.

在步骤307中,第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥。In step 307, the second terminal receives the network access information of the wireless network shared by the first terminal, and the network access information carries the service set identifier and the access key of the wireless network.

第二终端接收第一终端分享的无线网络的网络接入信息,并获取该网络接入信息中携带的无线网络的服务集标识和该无线网络的接入密钥。The second terminal receives the network access information of the wireless network shared by the first terminal, and obtains the service set identifier of the wireless network and the access key of the wireless network carried in the network access information.

在步骤308中,第二终端根据网络接入信息接入无线网络。In step 308, the second terminal accesses the wireless network according to the network access information.

第二终端根据获取到的无线网络的服务集标识和该无线网络的接入密钥接入第一终端分享的无线网络。The second terminal accesses the wireless network shared by the first terminal according to the acquired SSID of the wireless network and the access key of the wireless network.

综上所述,本公开实施例中提供的无线网络接入方法,通过服务器确定与第二终端关联的第一终端;服务器向第一终端发送第二终端的设备信息;第一终端根据设备信息与第二终端建立连接;第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息;第二终端根据网络接入信息接入无线网络;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, in the wireless network access method provided in the embodiments of the present disclosure, the server determines the first terminal associated with the second terminal; the server sends the device information of the second terminal to the first terminal; Establish a connection with the second terminal; the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection; the second terminal accesses the wireless network according to the network access information; solves the problem of sharing the wireless network Single, requires the user of the second terminal to actively request to obtain, which leads to the problem that the wireless network connection process is very cumbersome and the sharing method is not flexible enough; the network access information of the wireless network can be shared with the first terminal that has already connected to the wireless network. The second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves the utilization rate of the wireless network.

需要说明的一点是:图3A实施例中有关服务器侧的步骤可以单独实现成为服务器一侧的无线网络接入方法,有关第一终端侧的步骤可以单独实现成为第一终端一侧的无线网络接入方法,有关第二终端侧的步骤可以单独实现成为第二终端一侧的无线网络接入方法。It should be noted that the steps related to the server side in the embodiment of FIG. 3A can be independently implemented as a wireless network access method on the server side, and the steps related to the first terminal side can be independently implemented as a wireless network access method on the first terminal side. In the access method, the steps on the second terminal side can be independently implemented as a wireless network access method on the second terminal side.

基于图3A实施例提供的无线网络接入方法中,服务器向第一终端发送的第二终端的设备信息,设备信息包括第二终端在处于热点模式时的预定服务集标识。可选的,作为另一种可能的实现方式,设备信息包括第二终端的蓝牙标识,则图3A实施例中的步骤302至步骤305可替代实现为步骤302a至步骤305a,如图4A所示。Based on the wireless network access method provided in the embodiment of FIG. 3A , the server sends the device information of the second terminal to the first terminal, and the device information includes a predetermined service set identifier when the second terminal is in the hotspot mode. Optionally, as another possible implementation, the device information includes the Bluetooth identifier of the second terminal, then steps 302 to 305 in the embodiment of FIG. 3A can be replaced by steps 302a to 305a, as shown in FIG. 4A .

在步骤302a中,服务器向第一终端发送第二终端的设备信息,设备信息包括第二终端的蓝牙标识。In step 302a, the server sends the device information of the second terminal to the first terminal, where the device information includes the Bluetooth identifier of the second terminal.

服务器获取第二终端的设备信息,设备信息中包括第二终端的蓝牙标识,服务器将获取到的第二终端的蓝牙标识发送给第一终端。The server obtains the device information of the second terminal, the device information includes the Bluetooth identifier of the second terminal, and the server sends the obtained Bluetooth identifier of the second terminal to the first terminal.

第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。The first terminal is used to establish a connection with the second terminal according to the device information, and share the network access information of the accessed wireless network with the second terminal through the connection, and the second terminal is used to access the wireless network according to the network access information.

对应地,第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端。Correspondingly, the first terminal receives the device information of the second terminal sent by the server, and the first terminal is determined by the server to be associated with the second terminal.

在步骤303a中,第二终端发送蓝牙广播报文,蓝牙广播报文包括第二终端的蓝牙标识。In step 303a, the second terminal sends a Bluetooth broadcast packet, where the Bluetooth broadcast packet includes the Bluetooth identifier of the second terminal.

第二终端在预定范围内发送蓝牙广播报文,蓝牙广播报文包括第二终端的蓝牙标识。The second terminal sends a Bluetooth broadcast message within a predetermined range, and the Bluetooth broadcast message includes the Bluetooth identifier of the second terminal.

可选的,蓝牙标识包括蓝牙设备的名称、序列号、MAC地址等。Optionally, the Bluetooth identifier includes the name, serial number, MAC address, etc. of the Bluetooth device.

在步骤304a中,第一终端接收第二终端发送的蓝牙广播报文。In step 304a, the first terminal receives the Bluetooth broadcast message sent by the second terminal.

其中,蓝牙广播报文包括第二终端的蓝牙标识。Wherein, the Bluetooth broadcast message includes the Bluetooth identifier of the second terminal.

第一终端接收第二终端发送的蓝牙广播报文,获取蓝牙广播报文中携带的信息。The first terminal receives the Bluetooth broadcast message sent by the second terminal, and obtains the information carried in the Bluetooth broadcast message.

比如:第一终端获取到蓝牙广播报文中的蓝牙设备的名称为“小米A”,蓝牙设备的序列号为“AAA12BBBCCCC”,蓝牙设备的MCA地址为“00-23-5A-15-99-0E”。For example: the name of the Bluetooth device in the Bluetooth broadcast message obtained by the first terminal is "Xiaomi A", the serial number of the Bluetooth device is "AAA12BBBCCCC", and the MCA address of the Bluetooth device is "00-23-5A-15-99- 0E".

比如:预定服务集标识为蓝牙设备的名称“小米A”,获取到的蓝牙标识列表如图4B所示。For example, the predetermined service set identifier is the name of the Bluetooth device "Xiaomi A", and the obtained Bluetooth identifier list is shown in Figure 4B.

第一终端根据设备信息从接收到的蓝牙广播报文的列表中选择第二终端的蓝牙标识。The first terminal selects the Bluetooth identifier of the second terminal from the list of received Bluetooth broadcast messages according to the device information.

在步骤305a中,第一终端根据蓝牙标识与第二终端建立蓝牙连接。In step 305a, the first terminal establishes a Bluetooth connection with the second terminal according to the Bluetooth identifier.

第一终端根据接收到的蓝牙标识与第二终端建立蓝牙连接。The first terminal establishes a Bluetooth connection with the second terminal according to the received Bluetooth identifier.

对应地,当第一终端根据蓝牙广播报文请求连接时,第二终端与第一终端建立蓝牙连接。Correspondingly, when the first terminal requests a connection according to the Bluetooth broadcast message, the second terminal establishes a Bluetooth connection with the first terminal.

综上所述,本公开实施例中提供的无线网络接入方法,通过服务器确定与第二终端关联的第一终端;服务器向第一终端发送第二终端的设备信息;第一终端根据设备信息与第二终端建立连接;第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息;第二终端根据网络接入信息接入无线网络;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, in the wireless network access method provided in the embodiments of the present disclosure, the server determines the first terminal associated with the second terminal; the server sends the device information of the second terminal to the first terminal; Establish a connection with the second terminal; the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection; the second terminal accesses the wireless network according to the network access information; solves the problem of sharing the wireless network Single, requires the user of the second terminal to actively request to obtain, which leads to the problem that the wireless network connection process is very cumbersome and the sharing method is not flexible enough; the network access information of the wireless network can be shared with the first terminal that has already connected to the wireless network. The second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves the utilization rate of the wireless network.

需要说明的一点是:图4A实施例中有关服务器侧的步骤可以单独实现成为服务器一侧的无线网络接入方法,有关第一终端侧的步骤可以单独实现成为第一终端一侧的无线网络接入方法,有关第二终端侧的步骤可以单独实现成为第二终端一侧的无线网络接入方法。It should be noted that the steps related to the server side in the embodiment of FIG. 4A can be independently implemented as a wireless network access method on the server side, and the steps related to the first terminal side can be independently implemented as a wireless network access method on the first terminal side. In the access method, the steps on the second terminal side can be independently implemented as a wireless network access method on the second terminal side.

基于图3A实施例提供的无线网络接入方法中,服务器向第一终端发送的第二终端的设备信息,设备信息包括第二终端在处于热点模式时的预定服务集标识。可选的,作为另一种可能的实现方式,第一终端根据设备信息,以服务器为中转节点与第二终端建立连接,则图3A实施例中的步骤302至步骤308可替代实现为步骤302b至步骤310b,如图5所示。Based on the wireless network access method provided in the embodiment of FIG. 3A , the server sends the device information of the second terminal to the first terminal, and the device information includes a predetermined service set identifier when the second terminal is in the hotspot mode. Optionally, as another possible implementation, the first terminal establishes a connection with the second terminal using the server as a transit node according to the device information, then steps 302 to 308 in the embodiment of FIG. 3A can be implemented as step 302b instead Go to step 310b, as shown in FIG. 5 .

在步骤302b中,服务器向第一终端发送第二终端的设备信息。In step 302b, the server sends the device information of the second terminal to the first terminal.

第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。The first terminal is used to establish a connection with the second terminal according to the device information, and share the network access information of the accessed wireless network with the second terminal through the connection, and the second terminal is used to access the wireless network according to the network access information.

对应地,第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端。Correspondingly, the first terminal receives the device information of the second terminal sent by the server, and the first terminal is determined by the server to be associated with the second terminal.

在步骤303b中,第一终端根据设备信息通过服务器向第二终端发送连接请求。In step 303b, the first terminal sends a connection request to the second terminal through the server according to the device information.

第一终端根据接收到的设备信息通过服务器向第二终端发送连接请求,连接请求是第一终端向第二终端发送的建立连接的请求。The first terminal sends a connection request to the second terminal through the server according to the received device information, where the connection request is a request sent by the first terminal to the second terminal to establish a connection.

在步骤304b中,第二终端接收服务器转发的来自于第一终端的连接请求。In step 304b, the second terminal receives the connection request from the first terminal forwarded by the server.

其中,连接请求是第一终端与第二终端建立连接的请求。Wherein, the connection request is a request for establishing a connection between the first terminal and the second terminal.

第二终端接收服务器转发的第一终端的连接请求,并接收第一终端的连接请求。The second terminal receives the connection request of the first terminal forwarded by the server, and receives the connection request of the first terminal.

在步骤305b中,第一终端根据连接请求,以服务器作为中转节点与第二终端建立连接。In step 305b, the first terminal establishes a connection with the second terminal using the server as a transit node according to the connection request.

第一终端根据连接请求与第二终端建立连接。The first terminal establishes a connection with the second terminal according to the connection request.

对应地,第二终端根据连接请求,以服务器作为中转节点与第一终端建立连接。Correspondingly, according to the connection request, the second terminal establishes a connection with the first terminal using the server as a transit node.

在步骤306b中,第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息。In step 306b, the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection.

第一终端通过服务器与第二终端建立连接后,通过服务器将已接入的无线网络的网络接入信息分享给第二终端,以便第二终端根据网络接入信息接入该无线网络。After establishing a connection with the second terminal through the server, the first terminal shares the network access information of the accessed wireless network with the second terminal through the server, so that the second terminal can access the wireless network according to the network access information.

已接入的无线网络是第一终端已接入的网络,该无线网络包括家庭网络、公用网络或工作网络等。比如:第一终端将已连接的家庭网络的网络接入信息分享给第二终端,则第二终端根据第一终端分享的网络接入信息也可以接入到该家庭网络。The accessed wireless network is a network that the first terminal has accessed, and the wireless network includes a home network, a public network, or a work network. For example, if the first terminal shares the network access information of the connected home network with the second terminal, then the second terminal can also access the home network according to the network access information shared by the first terminal.

网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The network access information carries the service set identifier and the access key of the wireless network, so that the second terminal can access the wireless network according to the network access information.

在步骤307b中,服务器接收第一终端向第二终端分享的无线网络的网络接入信息。In step 307b, the server receives the network access information of the wireless network shared by the first terminal to the second terminal.

服务器接收第一终端以服务器为中转节点向第二终端分享的无线网络的网络接入信息。The server receives the network access information of the wireless network shared by the first terminal with the server as a transit node to the second terminal.

其中,网络接入信息携带有无线网络的服务集标识和接入密钥。Wherein, the network access information carries the service set identifier and the access key of the wireless network.

在步骤308b中,服务器将网络接入信息转发给第二终端。In step 308b, the server forwards the network access information to the second terminal.

服务器将接收到的无线网络的网络接入信息转发给第二终端,以便第二终端根据网络接入信息接入无线网络。The server forwards the received network access information of the wireless network to the second terminal, so that the second terminal accesses the wireless network according to the network access information.

在步骤309b中,第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥。In step 309b, the second terminal receives the network access information of the wireless network shared by the first terminal, where the network access information carries the service set identifier and the access key of the wireless network.

第二终端接收服务器转发的第一终端分享的无线网络的网络接入信息,并获取该网络接入信息中携带的无线网络的服务集标识和该无线网络的接入密钥。The second terminal receives the network access information of the wireless network shared by the first terminal forwarded by the server, and obtains the service set identifier of the wireless network and the access key of the wireless network carried in the network access information.

在步骤310b中,第二终端根据网络接入信息接入无线网络。In step 310b, the second terminal accesses the wireless network according to the network access information.

第二终端根据获取到的无线网络的服务集标识和该无线网络的接入密钥接入第一终端分享的无线网络。The second terminal accesses the wireless network shared by the first terminal according to the acquired SSID of the wireless network and the access key of the wireless network.

综上所述,本公开实施例中提供的无线网络接入方法,通过服务器确定与第二终端关联的第一终端;服务器向第一终端发送第二终端的设备信息;第一终端根据设备信息与第二终端建立连接;第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息;第二终端根据网络接入信息接入无线网络;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, in the wireless network access method provided in the embodiments of the present disclosure, the server determines the first terminal associated with the second terminal; the server sends the device information of the second terminal to the first terminal; Establish a connection with the second terminal; the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection; the second terminal accesses the wireless network according to the network access information; solves the problem of sharing the wireless network Single, requires the user of the second terminal to actively request to obtain, which leads to the problem that the wireless network connection process is very cumbersome and the sharing method is not flexible enough; the network access information of the wireless network can be shared with the first terminal that has already connected to the wireless network. The second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves the utilization rate of the wireless network.

需要说明的一点是:图5实施例中有关服务器侧的步骤可以单独实现成为服务器一侧的无线网络接入方法,有关第一终端侧的步骤可以单独实现成为第一终端一侧的无线网络接入方法,有关第二终端侧的步骤可以单独实现成为第二终端一侧的无线网络接入方法。One point to be explained is: the steps related to the server side in the embodiment of FIG. In the access method, the steps on the second terminal side can be independently implemented as a wireless network access method on the second terminal side.

下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.

图6是根据一示例性实施例示出的一种无线网络接入装置的框图,如图6所示,该无线网络接入装置应用于图1所示实施环境中的第一终端110中,该无线网络接入装置包括但不限于:Fig. 6 is a block diagram showing a wireless network access device according to an exemplary embodiment. As shown in Fig. 6, the wireless network access device is applied to the first terminal 110 in the implementation environment shown in Fig. 1 , the wireless network access device Wireless network access devices include but are not limited to:

信息接收模块610,被配置为第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端。The information receiving module 610 is configured such that the first terminal receives the device information of the second terminal sent by the server, and the first terminal is a terminal determined by the server to be associated with the second terminal.

连接建立模块620,被配置为第一终端根据设备信息与第二终端建立连接。The connection establishing module 620 is configured to establish a connection between the first terminal and the second terminal according to the device information.

网络分享模块630,被配置为第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The network sharing module 630 is configured such that the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection, and the network access information carries the service set identifier and the access key of the wireless network, so that the second terminal The second terminal accesses the wireless network according to the network access information.

综上所述,本公开实施例中提供的无线网络接入装置,通过第一终端接收服务器发送的第二终端的设备信息;第一终端根据设备信息与第二终端建立连接;第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, the wireless network access device provided in the embodiments of the present disclosure uses the first terminal to receive the device information of the second terminal sent by the server; the first terminal establishes a connection with the second terminal according to the device information; Connect and share the network access information of the connected wireless network to the second terminal; solve the problem that the wireless network sharing method is relatively simple, and the user of the second terminal needs to actively request to obtain it, which makes the wireless network connection process very cumbersome and the sharing method is not enough The problem of flexibility; the first terminal that has connected to the wireless network can share the network access information of the wireless network with the second terminal, and the second terminal can access the wireless network according to the shared network access information, which simplifies the connection of the wireless network. The connection process improves the effect of wireless network utilization.

图7A是根据另一示例性实施例示出的一种无线网络接入装置的框图,如图7A所示,该无线网络接入装置应用于图1所示实施环境中的第一终端110中,该无线网络接入装置包括但不限于:Fig. 7A is a block diagram showing a wireless network access device according to another exemplary embodiment. As shown in Fig. 7A, the wireless network access device is applied to the first terminal 110 in the implementation environment shown in Fig. 1 , The wireless network access device includes but is not limited to:

信息接收模块610,被配置为第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端。The information receiving module 610 is configured such that the first terminal receives the device information of the second terminal sent by the server, and the first terminal is a terminal determined by the server to be associated with the second terminal.

连接建立模块620,被配置为第一终端根据设备信息与第二终端建立连接。The connection establishing module 620 is configured to establish a connection between the first terminal and the second terminal according to the device information.

设备信息包括第二终端在处于热点模式时的预定服务集标识。The device information includes a predetermined service set identifier when the second terminal is in the hotspot mode.

本实施例中,连接建立模块620可以包括如下子模块:In this embodiment, the connection establishment module 620 may include the following submodules:

网络扫描子模块621,被配置为第一终端根据预定服务集标识扫描第二终端提供的热点无线网络。The network scanning submodule 621 is configured such that the first terminal scans the hotspot wireless network provided by the second terminal according to the predetermined service set identifier.

第一连接子模块622,被配置为第一终端接入热点无线网络,与第二终端建立无线网络连接。The first connection submodule 622 is configured so that the first terminal accesses the hotspot wireless network and establishes a wireless network connection with the second terminal.

网络分享模块630,被配置为第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The network sharing module 630 is configured such that the first terminal shares the network access information of the accessed wireless network with the second terminal through the connection, and the network access information carries the service set identifier and the access key of the wireless network, so that the second terminal The second terminal accesses the wireless network according to the network access information.

综上所述,本公开实施例中提供的无线网络接入装置,通过第一终端接收服务器发送的第二终端的设备信息;第一终端根据设备信息与第二终端建立连接;第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, the wireless network access device provided in the embodiments of the present disclosure uses the first terminal to receive the device information of the second terminal sent by the server; the first terminal establishes a connection with the second terminal according to the device information; Connect and share the network access information of the connected wireless network to the second terminal; solve the problem that the wireless network sharing method is relatively simple, and the user of the second terminal needs to actively request to obtain it, which makes the wireless network connection process very cumbersome and the sharing method is not enough The problem of flexibility; the first terminal that has connected to the wireless network can share the network access information of the wireless network with the second terminal, and the second terminal can access the wireless network according to the shared network access information, which simplifies the connection of the wireless network. The connection process improves the effect of wireless network utilization.

基于图7A示出的无线网络接入装置中,连接建立模块620还可以包括如下子模块,如图7B所示:Based on the wireless network access device shown in FIG. 7A, the connection establishment module 620 may also include the following submodules, as shown in FIG. 7B:

设备信息包括第二终端的蓝牙标识。The device information includes the Bluetooth identifier of the second terminal.

广播接收子模块623,被配置为第一终端接收第二终端发送的蓝牙广播报文,蓝牙广播报文包括第二终端的蓝牙标识。The broadcast receiving sub-module 623 is configured so that the first terminal receives the Bluetooth broadcast message sent by the second terminal, and the Bluetooth broadcast message includes the Bluetooth identifier of the second terminal.

第二连接子模块624,被配置为第一终端根据蓝牙标识与第二终端建立蓝牙连接。The second connection submodule 624 is configured so that the first terminal establishes a Bluetooth connection with the second terminal according to the Bluetooth identifier.

基于图7A示出的无线网络接入装置中,连接建立模块620还可以包括如下子模块,如图7C所示:Based on the wireless network access device shown in FIG. 7A, the connection establishment module 620 may also include the following submodules, as shown in FIG. 7C:

请求发送子模块625,被配置为第一终端根据设备信息通过服务器向第二终端发送连接请求。The request sending submodule 625 is configured such that the first terminal sends a connection request to the second terminal through the server according to the device information.

第三连接子模块626,被配置为第一终端根据连接请求,以服务器作为中转节点与第二终端建立连接。The third connection submodule 626 is configured such that the first terminal establishes a connection with the second terminal using the server as a transit node according to the connection request.

图8是根据一示例性实施例示出的一种无线网络接入装置的框图,如图8所示,该无线网络接入装置应用于图1所示实施环境中的第二终端120中,该无线网络接入装置包括但不限于:Fig. 8 is a block diagram showing a wireless network access device according to an exemplary embodiment. As shown in Fig. 8, the wireless network access device is applied to the second terminal 120 in the implementation environment shown in Fig. 1 , the wireless network access device Wireless network access devices include but are not limited to:

信息连接模块810,被配置为第二终端通过设备信息与第一终端建立连接,第一终端是服务器确定出的与第二终端关联的终端,设备信息是由服务器发送给第一终端的。The information connection module 810 is configured such that the second terminal establishes a connection with the first terminal through device information, the first terminal is a terminal determined by the server to be associated with the second terminal, and the device information is sent to the first terminal by the server.

网络接收模块820,被配置为第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥。The network receiving module 820 is configured so that the second terminal receives the network access information of the wireless network shared by the first terminal, and the network access information carries the service set identifier and the access key of the wireless network.

网络接入模块830,被配置为第二终端根据网络接入信息接入无线网络。The network access module 830 is configured so that the second terminal accesses the wireless network according to the network access information.

综上所述,本公开实施例中提供的无线网络接入装置,通过第二终端通过设备信息与第一终端建立连接;第二终端接收第一终端分享的无线网络的网络接入信息;第二终端根据网络接入信息接入无线网络;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, the wireless network access device provided in the embodiments of the present disclosure establishes a connection with the first terminal through the second terminal through device information; the second terminal receives the network access information of the wireless network shared by the first terminal; The second terminal accesses the wireless network according to the network access information; it solves the problem that the sharing method of the wireless network is relatively simple, and the user of the second terminal needs to actively request to obtain it, which leads to a very cumbersome wireless network connection process and the problem that the sharing method is not flexible enough; achieved The first terminal that has connected to the wireless network shares the network access information of the wireless network with the second terminal, and the second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves wireless network access. The effect of network utilization.

图9A是根据另一示例性实施例示出的一种无线网络接入装置的框图,如图9A所示,该无线网络接入装置应用于图1所示实施环境中的第二终端120中,该无线网络接入装置包括但不限于:Fig. 9A is a block diagram showing a wireless network access device according to another exemplary embodiment. As shown in Fig. 9A, the wireless network access device is applied to the second terminal 120 in the implementation environment shown in Fig. 1 , The wireless network access device includes but is not limited to:

信息连接模块810,被配置为第二终端通过设备信息与第一终端建立连接,第一终端是服务器确定出的与第二终端关联的终端,设备信息是由服务器发送给第一终端的。The information connection module 810 is configured such that the second terminal establishes a connection with the first terminal through device information, the first terminal is a terminal determined by the server to be associated with the second terminal, and the device information is sent to the first terminal by the server.

设备信息包括第二终端在处于热点模式时的预定服务集标识;The device information includes a predetermined service set identifier when the second terminal is in the hotspot mode;

本实施例中,信息连接模块810可以包括如下子模块:In this embodiment, the information connection module 810 may include the following submodules:

网络提供子模块811,被配置为第二终端进入热点模式提供热点无线网络,热点无线网络的服务集标识是预定服务集标识。The network providing sub-module 811 is configured to provide a hotspot wireless network for the second terminal to enter the hotspot mode, and the service set identifier of the hotspot wireless network is a predetermined service set identifier.

第四连接子模块812,被配置为当第一终端接入热点无线网络后,第二终端与第一终端建立无线网络连接。The fourth connection submodule 812 is configured to establish a wireless network connection between the second terminal and the first terminal after the first terminal accesses the hotspot wireless network.

网络接收模块820,被配置为第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥。The network receiving module 820 is configured so that the second terminal receives the network access information of the wireless network shared by the first terminal, and the network access information carries the service set identifier and the access key of the wireless network.

网络接入模块830,被配置为第二终端根据网络接入信息接入无线网络。The network access module 830 is configured so that the second terminal accesses the wireless network according to the network access information.

综上所述,本公开实施例中提供的无线网络接入装置,通过第二终端通过设备信息与第一终端建立连接;第二终端接收第一终端分享的无线网络的网络接入信息;第二终端根据网络接入信息接入无线网络;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, the wireless network access device provided in the embodiments of the present disclosure establishes a connection with the first terminal through the second terminal through device information; the second terminal receives the network access information of the wireless network shared by the first terminal; The second terminal accesses the wireless network according to the network access information; it solves the problem that the sharing method of the wireless network is relatively simple, and the user of the second terminal needs to actively request to obtain it, which leads to a very cumbersome wireless network connection process and the problem that the sharing method is not flexible enough; achieved The first terminal that has connected to the wireless network shares the network access information of the wireless network with the second terminal, and the second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves wireless network access. The effect of network utilization.

基于图9A示出的无线网络接入装置中,信息连接模块810还可以包括如下子模块,如图9B所示:Based on the wireless network access device shown in FIG. 9A, the information connection module 810 may also include the following submodules, as shown in FIG. 9B:

设备信息包括第二终端的蓝牙标识。The device information includes the Bluetooth identifier of the second terminal.

广播发送子模块813,被配置为第二终端发送蓝牙广播报文,蓝牙广播报文包括第二终端的蓝牙标识。The broadcast sending sub-module 813 is configured to send a Bluetooth broadcast packet to the second terminal, and the Bluetooth broadcast packet includes the Bluetooth identifier of the second terminal.

第五连接子模块814,被配置为当第一终端根据蓝牙广播报文请求连接时,第二终端与第一终端建立蓝牙连接。The fifth connection submodule 814 is configured to establish a Bluetooth connection between the second terminal and the first terminal when the first terminal requests a connection according to the Bluetooth broadcast message.

基于图9A示出的无线网络接入装置中,信息连接模块810还可以包括如下子模块,如图9C所示:Based on the wireless network access device shown in FIG. 9A, the information connection module 810 may also include the following submodules, as shown in FIG. 9C:

请求接收子模块815,被配置为第二终端接收服务器转发的来自于第一终端的连接请求,连接请求是第一终端与第二终端建立连接的请求。The request receiving sub-module 815 is configured so that the second terminal receives a connection request from the first terminal forwarded by the server, where the connection request is a request for establishing a connection between the first terminal and the second terminal.

第六连接子模块816,被配置为第二终端根据连接请求,以服务器作为中转节点与第一终端建立连接。The sixth connection submodule 816 is configured such that the second terminal establishes a connection with the first terminal using the server as a transit node according to the connection request.

图10是根据一示例性实施例示出的一种无线网络接入装置的框图,如图10所示,该无线网络接入装置应用于图1所示实施环境中的服务器130中,该无线网络接入装置包括但不限于:Fig. 10 is a block diagram showing a wireless network access device according to an exemplary embodiment. As shown in Fig. 10, the wireless network access device is applied to the server 130 in the implementation environment shown in Fig. 1, the wireless network Access devices include but are not limited to:

关联确定模块1020,被配置为确定与第二终端关联的第一终端。The association determination module 1020 is configured to determine the first terminal associated with the second terminal.

信息发送模块1040,被配置为向第一终端发送第二终端的设备信息,第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。The information sending module 1040 is configured to send the device information of the second terminal to the first terminal, the first terminal is used to establish a connection with the second terminal according to the device information, and share the information of the accessed wireless network with the second terminal through the connection Network access information, the second terminal is used to access the wireless network according to the network access information.

综上所述,本公开实施例中提供的无线网络接入装置,通过确定与第二终端关联的第一终端;向第一终端发送第二终端的设备信息,第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, the wireless network access device provided in the embodiments of the present disclosure determines the first terminal associated with the second terminal; sends the device information of the second terminal to the first terminal, and the first terminal is used to Establish a connection with the second terminal, and share the network access information of the wireless network that has been accessed to the second terminal through the connection, and the second terminal is used to access the wireless network according to the network access information; solves the comparison of wireless network sharing methods Single, requires the user of the second terminal to actively request to obtain, which leads to the problem that the wireless network connection process is very cumbersome and the sharing method is not flexible enough; the network access information of the wireless network can be shared with the first terminal that has already connected to the wireless network. The second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves the utilization rate of the wireless network.

图11是根据另一示例性实施例示出的一种无线网络接入装置的框图,如图11所示,该无线网络接入装置应用于图1所示实施环境中的服务器130中,该无线网络接入装置包括但不限于:FIG. 11 is a block diagram of a wireless network access device according to another exemplary embodiment. As shown in FIG. 11, the wireless network access device is applied to the server 130 in the implementation environment shown in FIG. Network access devices include but are not limited to:

关联确定模块1020,被配置为确定与第二终端关联的第一终端。The association determination module 1020 is configured to determine the first terminal associated with the second terminal.

可选的,关联确定模块1020,被配置为将与第二终端使用同一用户帐号购买的终端,确定为与第二终端关联的第一终端;Optionally, the association determining module 1020 is configured to determine a terminal purchased using the same user account as the second terminal as the first terminal associated with the second terminal;

可选的,关联确定模块1020,被配置为将与第二终端使用同一购买地址的终端,确定为与第二终端关联的第一终端;Optionally, the association determining module 1020 is configured to determine a terminal using the same purchase address as the second terminal as the first terminal associated with the second terminal;

可选的,关联确定模块1020,被配置为将与第二终端绑定有同一用户帐号的终端,确定为与第二终端关联的第一终端。Optionally, the association determination module 1020 is configured to determine a terminal bound with the same user account as the second terminal as the first terminal associated with the second terminal.

信息发送模块1040,被配置为向第一终端发送第二终端的设备信息,第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。The information sending module 1040 is configured to send the device information of the second terminal to the first terminal, the first terminal is used to establish a connection with the second terminal according to the device information, and share the information of the accessed wireless network with the second terminal through the connection Network access information, the second terminal is used to access the wireless network according to the network access information.

可选的,本实施例中,无线网络接入装置还包括如下模块:Optionally, in this embodiment, the wireless network access device further includes the following modules:

分享接收模块1060,被配置为接收第一终端向第二终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥。The sharing receiving module 1060 is configured to receive the network access information of the wireless network shared by the first terminal to the second terminal, where the network access information carries a service set identifier and an access key of the wireless network.

网络转发模块1080,被配置为将网络接入信息转发给第二终端,以便第二终端根据网络接入信息接入无线网络。The network forwarding module 1080 is configured to forward the network access information to the second terminal, so that the second terminal accesses the wireless network according to the network access information.

综上所述,本公开实施例中提供的无线网络接入装置,通过确定与第二终端关联的第一终端;向第一终端发送第二终端的设备信息,第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络;解决了无线网络的分享方式比较单一,需要第二终端的用户主动请求获取,从而导致无线网络连接过程十分繁琐,分享方式不够灵活的问题;达到了通过已接入无线网络的第一终端将无线网络的网络接入信息分享给第二终端,第二终端根据分享的网络接入信息接入无线网络,简化了无线网络的连接过程,提高了无线网络利用率的效果。To sum up, the wireless network access device provided in the embodiments of the present disclosure determines the first terminal associated with the second terminal; sends the device information of the second terminal to the first terminal, and the first terminal is used to Establish a connection with the second terminal, and share the network access information of the wireless network that has been accessed to the second terminal through the connection, and the second terminal is used to access the wireless network according to the network access information; solves the comparison of wireless network sharing methods Single, requires the user of the second terminal to actively request to obtain, which leads to the problem that the wireless network connection process is very cumbersome and the sharing method is not flexible enough; the network access information of the wireless network can be shared with the first terminal that has already connected to the wireless network. The second terminal accesses the wireless network according to the shared network access information, which simplifies the connection process of the wireless network and improves the utilization rate of the wireless network.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

本公开一示例性实施例提供了一种无线网络接入装置,能够实现本公开提供的无线网络接入方法,该无线网络接入装置包括:处理器、用于存储处理器可执行指令的存储器;An exemplary embodiment of the present disclosure provides a wireless network access device capable of implementing the wireless network access method provided in the present disclosure, and the wireless network access device includes: a processor and a memory for storing processor-executable instructions ;

其中,处理器被配置为:where the processor is configured as:

第一终端接收服务器发送的第二终端的设备信息,第一终端是服务器确定出的与第二终端关联的终端;The first terminal receives the device information of the second terminal sent by the server, and the first terminal is a terminal associated with the second terminal determined by the server;

第一终端根据设备信息与第二终端建立连接;The first terminal establishes a connection with the second terminal according to the device information;

第一终端通过连接向第二终端分享已接入的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥,以便第二终端根据网络接入信息接入无线网络。The first terminal shares the network access information of the accessed wireless network with the second terminal through the connection, and the network access information carries the service set identifier and the access key of the wireless network, so that the second terminal can access the wireless network according to the network access information. into the wireless network.

本公开一示例性实施例提供了一种无线网络接入装置,能够实现本公开提供的无线网络接入方法,该无线网络接入装置包括:处理器、用于存储处理器可执行指令的存储器;An exemplary embodiment of the present disclosure provides a wireless network access device capable of implementing the wireless network access method provided in the present disclosure, and the wireless network access device includes: a processor and a memory for storing processor-executable instructions ;

其中,处理器被配置为:where the processor is configured as:

第二终端通过设备信息与第一终端建立连接,第一终端是服务器确定出的与第二终端关联的终端,设备信息是由服务器发送给第一终端的;The second terminal establishes a connection with the first terminal through the device information, the first terminal is a terminal determined by the server to be associated with the second terminal, and the device information is sent to the first terminal by the server;

第二终端接收第一终端分享的无线网络的网络接入信息,网络接入信息携带有无线网络的服务集标识和接入密钥;The second terminal receives the network access information of the wireless network shared by the first terminal, and the network access information carries a service set identifier and an access key of the wireless network;

第二终端根据网络接入信息接入无线网络。The second terminal accesses the wireless network according to the network access information.

本公开一示例性实施例提供了一种无线网络接入装置,能够实现本公开提供的无线网络接入方法,该无线网络接入装置包括:处理器、用于存储处理器可执行指令的存储器;An exemplary embodiment of the present disclosure provides a wireless network access device capable of implementing the wireless network access method provided in the present disclosure, and the wireless network access device includes: a processor and a memory for storing processor-executable instructions ;

其中,处理器被配置为:where the processor is configured as:

确定与第二终端关联的第一终端;determining a first terminal associated with a second terminal;

向第一终端发送第二终端的设备信息,第一终端用于根据设备信息与第二终端建立连接,并通过连接向第二终端分享已接入的无线网络的网络接入信息,第二终端用于根据网络接入信息接入无线网络。Send the device information of the second terminal to the first terminal, the first terminal is used to establish a connection with the second terminal according to the device information, and share the network access information of the accessed wireless network with the second terminal through the connection, the second terminal It is used to access the wireless network according to the network access information.

图12是根据一示例性实施例示出的一种用无线网络接入装置的框图。例如,装置1200可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 12 is a block diagram showing a device for accessing a wireless network according to an exemplary embodiment. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图12,装置1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)接口1212,传感器组件1214,以及通信组件1216。12, apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and Communication component 1216.

处理组件1202通常控制装置1200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1218来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operations of the device 1200, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1218 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202 .

存储器1204被配置为存储各种类型的数据以支持在装置1200的操作。这些数据的示例包括用于在装置1200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1204 is configured to store various types of data to support operations at the device 1200 . Examples of such data include instructions for any application or method operating on device 1200, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件1206为装置1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为装置1200生成、管理和分配电力相关联的组件。The power supply component 1206 provides power to various components of the device 1200 . Power components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1200 .

多媒体组件1208包括在装置1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1208包括一个前置摄像头和/或后置摄像头。当装置1200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1208 includes a front camera and/or a rear camera. When the device 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当装置1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (MIC), which is configured to receive external audio signals when the device 1200 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1204 or sent via communication component 1216 . In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件1214包括一个或多个传感器,用于为装置1200提供各个方面的状态评估。例如,传感器组件1214可以检测到装置1200的打开/关闭状态,组件的相对定位,例如组件为装置1200的显示器和小键盘,传感器组件1214还可以检测装置1200或装置1200一个组件的位置改变,用户与装置1200接触的存在或不存在,装置1200方位或加速/减速和装置1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1214 includes one or more sensors for providing status assessments of various aspects of device 1200 . For example, the sensor component 1214 can detect the open/closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200, the sensor component 1214 can also detect a change in the position of the device 1200 or a component of the device 1200, the user Presence or absence of contact with device 1200 , device 1200 orientation or acceleration/deceleration and temperature change of device 1200 . Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1214 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件1216被配置为便于装置1200和其他设备之间有线或无线方式的通信。装置1200可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1216 is configured to facilitate wired or wireless communication between the apparatus 1200 and other devices. The device 1200 can access wireless networks based on communication standards, such as Wi-Fi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述无线网络接入方法。In an exemplary embodiment, apparatus 1200 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the above wireless network access method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由装置1200的处理器1218执行以完成上述无线网络接入方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1204 including instructions, which can be executed by the processor 1218 of the device 1200 to implement the above wireless network access method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (25)

1. a wireless network access method, is characterized in that, described method comprises:
The facility information of the second terminal that first terminal reception server sends, described first terminal be described server determine with the terminal of described second terminal association;
Described first terminal connects according to described facility information and described second terminal;
The network access information of the wireless network that described first terminal has been accessed to described second terminals share by described connection, described network access information carries service set and the access key of described wireless network, so that described second terminal accesses described wireless network according to described network access information.
2. method according to claim 1, is characterized in that, described facility information comprises the reservation service set identifier of described second terminal when being in hotspot pattern;
Described first terminal connects according to described facility information and described second terminal, comprising:
The focus wireless network that described first terminal provides according to described second terminal of described reservation service set identifier scanning;
Described first terminal accesses described focus wireless network, sets up wireless network be connected with described second terminal.
3. method according to claim 1, is characterized in that, described facility information comprises the Bluetooth identification of described second terminal;
Described first terminal connects according to described facility information and described second terminal, comprising:
Described first terminal receives the Bluetooth broadcast message that described second terminal sends, and described Bluetooth broadcast message comprises the Bluetooth identification of described second terminal;
Described first terminal is set up bluetooth according to described Bluetooth identification with described second terminal and is connected.
4. method according to claim 1, is characterized in that, described first terminal connects according to described facility information and described second terminal, comprising:
Described first terminal sends connection request by described server to described second terminal according to described facility information;
Described first terminal, according to described connection request, connects using described server as transit node and described second terminal.
5. a wireless network access method, is characterized in that, described method comprises:
Second terminal is connected by facility information and first terminal, described first terminal be server determine with the terminal of described second terminal association, described facility information sends to described first terminal by described server;
Described second terminal receives the network access information of the wireless network that described first terminal is shared, and described network access information carries service set and the access key of described wireless network;
Described second terminal accesses described wireless network according to described network access information.
6. method according to claim 5, is characterized in that, described facility information comprises the reservation service set identifier of described second terminal when being in hotspot pattern;
Described second terminal is connected by facility information and first terminal, comprising:
Second terminal enters hotspot pattern and provides focus wireless network, and the service set of described focus wireless network is described reservation service set identifier;
After described first terminal accesses described focus wireless network, described second terminal is set up wireless network with described first terminal and is connected.
7. method according to claim 5, is characterized in that, described facility information comprises the Bluetooth identification of described second terminal;
Described second terminal is connected by facility information and first terminal, comprising:
Described second terminal sends Bluetooth broadcast message, and described Bluetooth broadcast message comprises the Bluetooth identification of described second terminal;
When described first terminal connects according to described Bluetooth broadcast message request, described second terminal is set up bluetooth with described first terminal and is connected.
8. method according to claim 5, is characterized in that, described second terminal is connected by facility information and first terminal, comprising:
Second terminal receives the connection request coming from described first terminal that described server forwards, and described connection request is the request that described first terminal and described second terminal connect;
Described second terminal, according to described connection request, connects using described server as transit node and described first terminal.
9. a wireless network access method, is characterized in that, described method comprises:
Determine the first terminal with the second terminal association;
The facility information of described second terminal is sent to described first terminal, described first terminal is used for connecting according to described facility information and described second terminal, and the network access information of the wireless network accessed to described second terminals share by described connection, described second terminal is used for accessing described wireless network according to described network access information.
10. method according to claim 9, is characterized in that, describedly determines, with the first terminal of the second terminal association, to comprise:
By the terminal using same user account number to buy with the second terminal, be defined as the described first terminal with described second terminal association;
Or,
Use the terminal of same purchase address by with the second terminal, be defined as the described first terminal with described second terminal association;
Or,
There is the terminal of same user account number by with the second terminal binding, be defined as the described first terminal with described second terminal association.
11. methods according to claim 9, is characterized in that, described method, also comprises:
Receive the network access information of described first terminal to the described wireless network of described second terminals share, described network access information carries service set and the access key of described wireless network;
Described network access information is transmitted to described second terminal, so that described second terminal accesses described wireless network according to described network access information.
12. 1 kinds of Wireless network connection equipments, is characterized in that, described device comprises:
Information receiving module, is configured to the facility information of the second terminal that first terminal reception server sends, described first terminal be described server determine with the terminal of described second terminal association;
Connection establishment module, is configured to described first terminal and connects according to described facility information and described second terminal;
Network sharing module, be configured to the network access information of the wireless network that described first terminal has been accessed to described second terminals share by described connection, described network access information carries service set and the access key of described wireless network, so that described second terminal accesses described wireless network according to described network access information.
13. devices according to claim 12, is characterized in that, described facility information comprises the reservation service set identifier of described second terminal when being in hotspot pattern;
Described connection establishment module, comprising:
Network sweep submodule, is configured to the focus wireless network that described first terminal provides according to described second terminal of described reservation service set identifier scanning;
First connexon module, is configured to described first terminal and accesses described focus wireless network, set up wireless network be connected with described second terminal.
14. devices according to claim 12, is characterized in that, described facility information comprises the Bluetooth identification of described second terminal;
Described connection establishment module, comprising:
Broadcast reception submodule, be configured to the Bluetooth broadcast message that described first terminal receives described second terminal transmission, described Bluetooth broadcast message comprises the Bluetooth identification of described second terminal;
Second connexon module, is configured to described first terminal and sets up bluetooth according to described Bluetooth identification with described second terminal and be connected.
15. devices according to claim 12, is characterized in that, described connection establishment module, comprising:
Request sends submodule, is configured to described first terminal and sends connection request by described server to described second terminal according to described facility information;
3rd connexon module, is configured to described first terminal according to described connection request, connects using described server as transit node and described second terminal.
16. 1 kinds of Wireless network connection equipments, is characterized in that, described device comprises:
Information link block, be configured to the second terminal connected by facility information and first terminal, described first terminal be server determine with the terminal of described second terminal association, described facility information sends to described first terminal by described server;
Network reception module, is configured to the network access information that described second terminal receives the wireless network that described first terminal is shared, and described network access information carries service set and the access key of described wireless network;
Network access module, is configured to described second terminal and accesses described wireless network according to described network access information.
17. devices according to claim 16, is characterized in that, described facility information comprises the reservation service set identifier of described second terminal when being in hotspot pattern;
Described information link block, comprising:
Network provides submodule, and be configured to the second terminal and enter hotspot pattern and provide focus wireless network, the service set of described focus wireless network is described reservation service set identifier;
4th connexon module, be configured to after described first terminal accesses described focus wireless network, described second terminal is set up wireless network with described first terminal and is connected.
18. devices according to claim 16, is characterized in that, described facility information comprises the Bluetooth identification of described second terminal;
Described information link block, comprising:
Broadcast transmission submodule, be configured to described second terminal and send Bluetooth broadcast message, described Bluetooth broadcast message comprises the Bluetooth identification of described second terminal;
5th connexon module, be configured to when described first terminal connects according to described Bluetooth broadcast message request, described second terminal is set up bluetooth with described first terminal and is connected.
19. devices according to claim 16, is characterized in that, described information link block, comprising:
Request receiving submodule, be configured to the connection request coming from described first terminal that the second terminal receives the forwarding of described server, described connection request is the request that described first terminal and described second terminal connect;
6th connexon module, is configured to described second terminal according to described connection request, connects using described server as transit node and described first terminal.
20. 1 kinds of Wireless network connection equipments, is characterized in that, described device comprises:
Association determination module, is configured to determine the first terminal with the second terminal association;
Information sending module, be configured to the facility information sending described second terminal to described first terminal, described first terminal is used for connecting according to described facility information and described second terminal, and the network access information of the wireless network accessed to described second terminals share by described connection, described second terminal is used for accessing described wireless network according to described network access information.
21. devices according to claim 20, is characterized in that, described association determination module, are configured to, by the terminal using same user account number to buy with the second terminal, be defined as the described first terminal with described second terminal association;
Or,
Described association determination module, is configured to use the terminal of same purchase address by with the second terminal, is defined as the described first terminal with described second terminal association;
Or,
Described association determination module, is configured to there is the terminal of same user account number by with the second terminal binding, is defined as the described first terminal with described second terminal association.
22. devices according to claim 20, is characterized in that, described device, also comprises:
Share receiver module, be configured to receive the network access information of described first terminal to the described wireless network of described second terminals share, described network access information carries service set and the access key of described wireless network;
Forwarded module, is configured to described network access information to be transmitted to described second terminal, so that described second terminal accesses described wireless network according to described network access information.
23. 1 kinds of Wireless network connection equipments, is characterized in that, described device comprises:
Processor;
For storing the memory of described processor executable;
Wherein, described processor is configured to:
The facility information of the second terminal that first terminal reception server sends, described first terminal be described server determine with the terminal of described second terminal association;
Described first terminal connects according to described facility information and described second terminal;
The network access information of the wireless network that described first terminal has been accessed to described second terminals share by described connection, described network access information carries service set and the access key of described wireless network, so that described second terminal accesses described wireless network according to described network access information.
24. 1 kinds of Wireless network connection equipments, is characterized in that, described device comprises:
Processor;
For storing the memory of described processor executable;
Wherein, described processor is configured to:
Second terminal is connected by facility information and first terminal, described first terminal be server determine with the terminal of described second terminal association, described facility information sends to described first terminal by described server;
Described second terminal receives the network access information of the wireless network that described first terminal is shared, and described network access information carries service set and the access key of described wireless network;
Described second terminal accesses described wireless network according to described network access information.
25. 1 kinds of Wireless network connection equipments, is characterized in that, described device comprises:
Processor;
For storing the memory of described processor executable;
Wherein, described processor is configured to:
Determine the first terminal with the second terminal association;
The facility information of described second terminal is sent to described first terminal, described first terminal is used for connecting according to described facility information and described second terminal, and the network access information of the wireless network accessed to described second terminals share by described connection, described second terminal is used for accessing described wireless network according to described network access information.
CN201510855878.8A 2015-11-30 2015-11-30 Wireless network access method and device Pending CN105472698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510855878.8A CN105472698A (en) 2015-11-30 2015-11-30 Wireless network access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510855878.8A CN105472698A (en) 2015-11-30 2015-11-30 Wireless network access method and device

Publications (1)

Publication Number Publication Date
CN105472698A true CN105472698A (en) 2016-04-06

Family

ID=55609857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510855878.8A Pending CN105472698A (en) 2015-11-30 2015-11-30 Wireless network access method and device

Country Status (1)

Country Link
CN (1) CN105472698A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060772A (en) * 2016-08-10 2016-10-26 乐视控股(北京)有限公司 Method and device for configuring WIFI parameter
CN108093384A (en) * 2017-12-12 2018-05-29 北京快乐茄信息技术有限公司 Terminal establishes direct-connected method, first terminal, second terminal
CN109219108A (en) * 2018-11-28 2019-01-15 上海连尚网络科技有限公司 Method and apparatus for connecting wireless access point
CN109525987A (en) * 2018-12-27 2019-03-26 深圳创维数字技术有限公司 Wireless network connecting method, device, top box of digital machine and readable storage medium storing program for executing
CN109996347A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 It is a kind of to establish the method and device connected between terminal device
CN112020049A (en) * 2019-05-30 2020-12-01 深圳富泰宏精密工业有限公司 Network connection method and electronic device
CN112261653A (en) * 2020-09-09 2021-01-22 上海连尚网络科技有限公司 A method and device for managing shared users of wireless access points
CN114338774A (en) * 2021-12-31 2022-04-12 深圳Tcl新技术有限公司 Management method, device, computer equipment and storage medium for Internet of Things equipment
CN114466427A (en) * 2022-02-15 2022-05-10 深圳海翼智新科技有限公司 Network access method, terminal equipment, intelligent equipment and system
WO2022237721A1 (en) * 2021-05-14 2022-11-17 华为技术有限公司 Networking method, and relevant apparatus and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103299683A (en) * 2011-01-09 2013-09-11 缤果无线有限公司 System, method and apparatus for dynamic wireless network discovery
CN103686674A (en) * 2013-09-30 2014-03-26 深圳市通力科技开发有限公司 Network access method, intelligent terminal and WiFi access equipment
CN104159255A (en) * 2014-08-11 2014-11-19 小米科技有限责任公司 Method of sharing network among terminals and device
CN104735814A (en) * 2015-04-10 2015-06-24 三星电子(中国)研发中心 Access method, system and related device for automatically getting access to WiFi network
US9185641B2 (en) * 2013-07-16 2015-11-10 Qualcomm Innovation Center, Inc. Using discoverable peer-to-peer services to allow remote onboarding of headless devices over a Wi-Fi network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103299683A (en) * 2011-01-09 2013-09-11 缤果无线有限公司 System, method and apparatus for dynamic wireless network discovery
US9185641B2 (en) * 2013-07-16 2015-11-10 Qualcomm Innovation Center, Inc. Using discoverable peer-to-peer services to allow remote onboarding of headless devices over a Wi-Fi network
CN103686674A (en) * 2013-09-30 2014-03-26 深圳市通力科技开发有限公司 Network access method, intelligent terminal and WiFi access equipment
CN104159255A (en) * 2014-08-11 2014-11-19 小米科技有限责任公司 Method of sharing network among terminals and device
CN104735814A (en) * 2015-04-10 2015-06-24 三星电子(中国)研发中心 Access method, system and related device for automatically getting access to WiFi network

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060772A (en) * 2016-08-10 2016-10-26 乐视控股(北京)有限公司 Method and device for configuring WIFI parameter
CN108093384A (en) * 2017-12-12 2018-05-29 北京快乐茄信息技术有限公司 Terminal establishes direct-connected method, first terminal, second terminal
CN109996347B (en) * 2017-12-29 2023-05-23 珠海金山办公软件有限公司 A method and device for establishing a connection between terminal devices
CN109996347A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 It is a kind of to establish the method and device connected between terminal device
CN109219108A (en) * 2018-11-28 2019-01-15 上海连尚网络科技有限公司 Method and apparatus for connecting wireless access point
CN109219108B (en) * 2018-11-28 2020-11-06 上海连尚网络科技有限公司 Method and apparatus for connecting wireless access points
CN109525987A (en) * 2018-12-27 2019-03-26 深圳创维数字技术有限公司 Wireless network connecting method, device, top box of digital machine and readable storage medium storing program for executing
CN112020049A (en) * 2019-05-30 2020-12-01 深圳富泰宏精密工业有限公司 Network connection method and electronic device
CN112020049B (en) * 2019-05-30 2023-06-09 深圳富泰宏精密工业有限公司 Network connection method and electronic device
CN112261653B (en) * 2020-09-09 2023-03-24 上海连尚网络科技有限公司 Method and equipment for managing shared users of wireless access point
CN112261653A (en) * 2020-09-09 2021-01-22 上海连尚网络科技有限公司 A method and device for managing shared users of wireless access points
WO2022237721A1 (en) * 2021-05-14 2022-11-17 华为技术有限公司 Networking method, and relevant apparatus and system
CN114338774A (en) * 2021-12-31 2022-04-12 深圳Tcl新技术有限公司 Management method, device, computer equipment and storage medium for Internet of Things equipment
CN114466427A (en) * 2022-02-15 2022-05-10 深圳海翼智新科技有限公司 Network access method, terminal equipment, intelligent equipment and system

Similar Documents

Publication Publication Date Title
CN105472698A (en) Wireless network access method and device
WO2022041245A1 (en) Paging cause sending method and apparatus, and paging cause acquisition method and apparatus
CN104684106B (en) The method and device of network connection
CN104580401A (en) Connecting method and device
CN105049416A (en) Method and apparatus for accessing to wifi network
CN104506410A (en) Instant communication method and device
EP3226432B1 (en) Method and devices for sharing media data between terminals
CN109451877B (en) Unmanned aerial vehicle control method and device, unmanned aerial vehicle and remote control equipment
CN105162728A (en) Network access method, network access device and network access system
CN106376057A (en) Wireless network access method and device
CN106452924A (en) Method and device for synchronizing wireless network configuration
CN106375479A (en) Data sharing method and device
CN105872020A (en) Access method of virtual desktop and mobile terminal
CN112040396A (en) Positioning method and device and computer storage medium
WO2022021017A1 (en) Capability reporting method and apparatus, and capability determination method and apparatus
CN106488450A (en) Connect the method and device of wireless network
CN106604230A (en) Region configuration method and region configuration device
CN110268746A (en) Cell handover method and device, handover configuration method and device, and user equipment
CN106453496B (en) Document transmission method and device
CN106714125A (en) Method and device for setting call transfer number
CN110495194B (en) Method and device for sending cache status report
CN105306567B (en) Method and device for terminal connection
CN110574403A (en) Information acquisition method and device, and information transmission method and device
CN106535192A (en) Method and device for realizing access of smart equipment to router and mobile terminal
CN110710237B (en) Method and device for determining support information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160406