[go: up one dir, main page]

CN111970676B - WiFi hotspot access method, device, equipment and storage medium - Google Patents

WiFi hotspot access method, device, equipment and storage medium Download PDF

Info

Publication number
CN111970676B
CN111970676B CN201910418616.3A CN201910418616A CN111970676B CN 111970676 B CN111970676 B CN 111970676B CN 201910418616 A CN201910418616 A CN 201910418616A CN 111970676 B CN111970676 B CN 111970676B
Authority
CN
China
Prior art keywords
wifi hotspot
wifi
account
connection request
hotspot
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.)
Active
Application number
CN201910418616.3A
Other languages
Chinese (zh)
Other versions
CN111970676A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910418616.3A priority Critical patent/CN111970676B/en
Publication of CN111970676A publication Critical patent/CN111970676A/en
Application granted granted Critical
Publication of CN111970676B publication Critical patent/CN111970676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • 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
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application discloses a WiFi hot spot access method, a WiFi hot spot access device, wiFi hot spot access equipment and a WiFi hot spot access storage medium, and belongs to the field of man-machine interaction. The method comprises the following steps: displaying equipment identifiers of at least one candidate equipment in the WiFi list, wherein the candidate equipment is positioned on the periphery of the first equipment and has a WiFi hot spot function; when a selection signal for the target equipment identification in the WiFi list is received, determining candidate equipment corresponding to the target equipment identification as second equipment; sending a WiFi hotspot connection request to the second equipment; and when a connection request response sent by the second equipment is received, accessing the WiFi hot spot created by the second equipment according to the hot spot connection information contained in the connection request response. By adopting the method provided by the embodiment of the application, the first equipment without the network can be connected to the second equipment by one key to realize WiFi hot spot access, the hot spot access step is simplified, and the hot spot sharing efficiency among the equipment is improved.

Description

WiFi热点接入方法、装置、设备及存储介质WiFi hotspot access method, device, equipment and storage medium

技术领域technical field

本申请实施例涉及人机交互领域,特别涉及一种无线保真(Wireless Fidelity,WiFi)热点接入方法、装置、设备及存储介质。The embodiments of the present application relate to the field of human-computer interaction, and in particular to a method, device, device, and storage medium for accessing a Wireless Fidelity (Wireless Fidelity, WiFi) hotspot.

背景技术Background technique

目前,随着移动设备的不断发展,WiFi网络已经被用户在生活中广泛使用。At present, with the continuous development of mobile devices, WiFi networks have been widely used by users in their lives.

相关技术中,当需要分享WiFi热点时,用户首先需要通过预定操作开启第一设备的WiFi热点功能,然后设置WiFi热点的热点名称以及热点密码。第二设备扫描到第一设备对应的WiFi热点,并输入正确的热点密码后,即可接入该WiFi热点。In related technologies, when it is necessary to share a WiFi hotspot, the user first needs to enable the WiFi hotspot function of the first device through a predetermined operation, and then set a hotspot name and a password of the WiFi hotspot. After the second device scans the WiFi hotspot corresponding to the first device, and enters the correct hotspot password, it can access the WiFi hotspot.

发明内容Contents of the invention

本申请实施例提供了一种WiFi热点接入方法、装置、设备及存储介质,能够解决相关技术中WiFi热点的接入流程繁琐、接入效率较低的问题。所述技术方案如下:Embodiments of the present application provide a WiFi hotspot access method, device, device, and storage medium, which can solve the problems of cumbersome WiFi hotspot access procedures and low access efficiency in related technologies. Described technical scheme is as follows:

一方面,提供了一种WiFi热点接入方法,所述方法用于第一设备,所述方法包括:In one aspect, a WiFi hotspot access method is provided, the method is used for a first device, and the method includes:

在WiFi列表中显示至少一个候选设备的设备标识,所述候选设备位于所述第一设备周侧且具有WiFi热点功能;Displaying the device identification of at least one candidate device in the WiFi list, the candidate device is located around the first device and has a WiFi hotspot function;

当接收到对所述WiFi列表中目标设备标识的选择信号时,将所述目标设备标识对应的所述候选设备确定为第二设备;When receiving a selection signal for a target device identifier in the WiFi list, determining the candidate device corresponding to the target device identifier as a second device;

向所述第二设备发送WiFi热点连接请求;Sending a WiFi hotspot connection request to the second device;

当接收到所述第二设备发送的连接请求响应时,根据所述连接请求响应中包含的热点连接信息接入所述第二设备创建的WiFi热点。When receiving the connection request response sent by the second device, access the WiFi hotspot created by the second device according to the hotspot connection information included in the connection request response.

一方面,提供了一种WiFi热点接入方法,所述方法用于第二设备,所述方法包括:In one aspect, a method for accessing a WiFi hotspot is provided, the method is used for a second device, and the method includes:

接收第一设备发送的WiFi热点连接请求,所述WiFi热点连接请求是所述第一设备接收到对WiFi列表中目标设备标识的选择信号时发送的,所述WiFi列表中包含至少一个候选设备的设备标识,所述候选设备位于所述第一设备周侧且具有WiFi热点功能;Receive a WiFi hotspot connection request sent by the first device, the WiFi hotspot connection request is sent when the first device receives a selection signal for the target device identifier in the WiFi list, and the WiFi list contains at least one candidate device A device identifier, the candidate device is located around the first device and has a WiFi hotspot function;

根据所述WiFi热点连接请求生成连接请求响应,所述连接请求响应中包含热点连接信息;Generate a connection request response according to the WiFi hotspot connection request, and include hotspot connection information in the connection request response;

向所述第一设备发送所述连接请求响应,所述第一设备用于根据所述热点连接信息接入所述第二设备创建的WiFi热点。Sending the connection request response to the first device, where the first device is used to access the WiFi hotspot created by the second device according to the hotspot connection information.

另一方面,提供了一种WiFi热点接入装置,所述装置用于第一设备,所述装置包括:In another aspect, a WiFi hotspot access device is provided, the device is used for a first device, and the device includes:

显示模块,被配置为在WiFi列表中显示至少一个候选设备的设备标识,候选设备位于第一设备周侧且具有WiFi热点功能;The display module is configured to display the device identification of at least one candidate device in the WiFi list, the candidate device is located on the side of the first device and has a WiFi hotspot function;

选择模块,被配置为当接收到对WiFi列表中目标设备标识的选择信号时,将目标设备标识对应的候选设备确定为第二设备;The selection module is configured to determine the candidate device corresponding to the target device ID as the second device when receiving a selection signal for the target device ID in the WiFi list;

请求发送模块,被配置为向第二设备发送WiFi热点连接请求;A request sending module configured to send a WiFi hotspot connection request to the second device;

响应接收模块,被配置为当接收到第二设备发送的连接请求响应时,根据连接请求响应中包含的热点连接信息接入第二设备创建的WiFi热点。The response receiving module is configured to, when receiving the connection request response sent by the second device, access the WiFi hotspot created by the second device according to the hotspot connection information contained in the connection request response.

另一方面,提供了一种WiFi热点接入装置,所述装置用于第二设备,所述装置包括:In another aspect, a WiFi hotspot access device is provided, the device is used for a second device, and the device includes:

请求接收模块,被配置为接收第一设备发送的WiFi热点连接请求,WiFi热点连接请求是第一设备接收到对WiFi列表中目标设备标识的选择信号时发送的,所述WiFi列表中包含至少一个候选设备的设备标识,候选设备位于第一设备周侧且具有WiFi热点功能;The request receiving module is configured to receive a WiFi hotspot connection request sent by the first device, the WiFi hotspot connection request is sent when the first device receives a selection signal for the target device identifier in the WiFi list, and the WiFi list contains at least one The device identification of the candidate device, where the candidate device is located around the first device and has a WiFi hotspot function;

响应生成模块,被配置根据WiFi热点连接请求生成连接请求响应,连接请求响应中包含热点连接信息;The response generation module is configured to generate a connection request response according to a WiFi hotspot connection request, and the connection request response includes hotspot connection information;

响应发送模块,被配置为向第一设备发送连接请求响应,第一设备用于根据热点连接信息接入第二设备创建的WiFi热点。The response sending module is configured to send a connection request response to the first device, and the first device is used to access the WiFi hotspot created by the second device according to the hotspot connection information.

另一方面,提供了一种计算机设备,所述计算机设备包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如上述方面所述的WiFi热点接入方法。In another aspect, a computer device is provided, the computer device includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the above aspect WiFi hotspot access method.

另一方面,提供了一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上述方面所述的WiFi热点接入方法。In another aspect, a computer-readable storage medium is provided, the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the method for accessing a WiFi hotspot as described in the above aspect.

另一方面,还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现上述方面所述的WiFi热点接入方法。In another aspect, a computer program product is also provided, the computer program product stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the WiFi hotspot access method described in the above aspect.

本申请实施例中,第一设备发现周围具有WiFi热点功能的候选设备后,将候选设备的设备标识显示在WiFi列表中,当接收到对候选设备中第二设备的选择时,通过向第二设备发送WiFi热点连接请求,获取第二设备反馈的热点连接信息,从而根据该热点连接信息接入第二设备创建的WiFi热点;相较于相关技术中需要用户手动设置并连接WiFi热点,采用本申请实施例提供的方法可以实现WiFi热点一键式接入,简化了WiFi热点的接入流程,提高了WiFi热点的接入效率。In the embodiment of the present application, after the first device discovers a candidate device with WiFi hotspot function around it, it displays the device identifier of the candidate device in the WiFi list, and when receiving the selection of the second device among the candidate devices, it sends the The device sends a WiFi hotspot connection request, obtains the hotspot connection information fed back by the second device, and then accesses the WiFi hotspot created by the second device according to the hotspot connection information; compared with related technologies that require users to manually set and connect to the WiFi hotspot, this The method provided in the embodiment of the application can realize one-click access to the WiFi hotspot, simplifies the access process of the WiFi hotspot, and improves the access efficiency of the WiFi hotspot.

附图说明Description of drawings

图1示出了本申请一个示例性实施例提供的实施环境的环境示意图;FIG. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;

图2示出了本申请一个示例性实施例提供的WiFi热点接入方法的流程图;FIG. 2 shows a flow chart of a WiFi hotspot access method provided by an exemplary embodiment of the present application;

图3是图2所示WiFi热点接入方法的实施示意图;Fig. 3 is the implementation schematic diagram of the WiFi hotspot access method shown in Fig. 2;

图4示出了本申请另一个示例性实施例提供的WiFi热点接入方法的流程图;FIG. 4 shows a flowchart of a WiFi hotspot access method provided by another exemplary embodiment of the present application;

图5和图6是图4所示WiFi热点接入方法的实施示意图;Fig. 5 and Fig. 6 are the implementation schematic diagrams of the WiFi hotspot access method shown in Fig. 4;

图7示出了本申请一个示例性实施例提供的WiFi热点接入装置的结构框图;FIG. 7 shows a structural block diagram of a WiFi hotspot access device provided by an exemplary embodiment of the present application;

图8示出了本申请另一个示例性实施例提供的WiFi热点接入装置的结构框图;FIG. 8 shows a structural block diagram of a WiFi hotspot access device provided by another exemplary embodiment of the present application;

图9示出了本申请一个示例性实施例提供的计算机设备的结构图。Fig. 9 shows a structural diagram of a computer device provided by an exemplary embodiment of the present application.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the following will further describe in detail the embodiments of the present invention in conjunction with the accompanying drawings.

在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The "plurality" mentioned herein means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.

请参考图1,其示出了本申请一个示例性实施例提供的实施环境的环境示意图,该实施环境中包括第一设备110和第二设备120。Please refer to FIG. 1 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application, and the implementation environment includes a first device 110 and a second device 120 .

第一设备110是具有WiFi连接功能的电子设备,其可以是智能手机、平板电脑、个人便携式计算机、可穿戴式设备等等。图1中,以第一设备110是智能手机为例进行示意,但并不对此构成限定。The first device 110 is an electronic device with a WiFi connection function, which may be a smart phone, a tablet computer, a personal portable computer, a wearable device, and the like. In FIG. 1 , it is illustrated by taking the first device 110 as an example of a smart phone, but this is not limited thereto.

第二设备120是具有WiFi热点功能的电子设备,其可以是智能手机、平板电脑、个人便携式计算机等等。图1中,以第二设备120是智能手机为例进行示意,但并不对此构成限定。在开启WiFi热点功能的情况下,第二设备120创建WiFi热点,并能够为接入自身WiFi热点的设备提供互联网访问服务。The second device 120 is an electronic device with a WiFi hotspot function, which may be a smart phone, a tablet computer, a personal portable computer, and the like. In FIG. 1 , it is illustrated that the second device 120 is a smart phone as an example, but this is not limited thereto. When the WiFi hotspot function is turned on, the second device 120 creates a WiFi hotspot, and can provide Internet access services for devices connected to its own WiFi hotspot.

在一种可能的实施方式中,第一设备110和第二设备120还具有预定近场通信功能,借助该预定近场通信功能,第一设备110和第二设备120能够进行数据通信。In a possible implementation manner, the first device 110 and the second device 120 also have a predetermined near field communication function, and by means of the predetermined near field communication function, the first device 110 and the second device 120 can perform data communication.

下述各个实施例提供的WiFi热点接入方法即用于第一设备110和第二设备120。The WiFi hotspot access methods provided in the following embodiments are used for the first device 110 and the second device 120 .

请参考图2,其示出了本申请一个示例性实施例提供的WiFi热点接入方法的流程图。该方法包括:Please refer to FIG. 2 , which shows a flowchart of a method for accessing a WiFi hotspot provided by an exemplary embodiment of the present application. The method includes:

步骤201,第一设备在WiFi列表中显示至少一个候选设备的设备标识,候选设备位于第一设备周侧且具有WiFi热点功能。Step 201, the first device displays the device identifier of at least one candidate device in the WiFi list, the candidate device is located around the first device and has a WiFi hotspot function.

通常情况下,WiFi列表用于显示附近可用WiFi网络的网络名称。而本申请实施例中,第一设备具有发现周侧具备WiFi热点功能的设备的能力,相应的,第一设备的WiFi列表中包含具备WiFi热点功能的候选设备的设备标识。Typically, the WiFi list is used to display the network names of available nearby WiFi networks. However, in the embodiment of the present application, the first device has the ability to discover surrounding devices with the WiFi hotspot function. Correspondingly, the WiFi list of the first device includes device identifiers of candidate devices with the WiFi hotspot function.

可选的,第一设备通过预定近场通信方式发现候选设备,且候选设备的WiFi热点功能处于开启状态或关闭状态。Optionally, the first device discovers the candidate device through a predetermined near field communication method, and the WiFi hotspot function of the candidate device is turned on or off.

可选的,除了显示候选设备的设备标识外,第一设备的WiFi列表中还可以包括附近可用WiFi网络的网络信息。Optionally, in addition to displaying device identifiers of candidate devices, the WiFi list of the first device may also include network information of nearby available WiFi networks.

示意性的,如图3所示,第一设备301的周侧包含第一手机302、平板电脑303和第二手机304,其中,第一手机302和第二手机304具有WiFi热点功能,而平板电脑303不具备WiFi热点功能,因此,第一设备301显示的WiFi列表301A中包含第一手机302对应的第一设备标识302A,以及第二手机304对应的第二设备标识304A。Schematically, as shown in Figure 3, the peripheral side of the first device 301 includes a first mobile phone 302, a tablet computer 303 and a second mobile phone 304, wherein the first mobile phone 302 and the second mobile phone 304 have a WiFi hotspot function, and the tablet The computer 303 does not have a WiFi hotspot function, therefore, the WiFi list 301A displayed by the first device 301 includes the first device identifier 302A corresponding to the first mobile phone 302 and the second device identifier 304A corresponding to the second mobile phone 304 .

步骤202,当接收到对WiFi列表中目标设备标识的选择信号时,第一设备将目标设备标识对应的候选设备确定为第二设备。Step 202, when receiving a selection signal for the target device ID in the WiFi list, the first device determines the candidate device corresponding to the target device ID as the second device.

可选的,选择信号可以是对目标设备标识的点击操作信号,或,可以是对目标设备标识对应选择控件的点击操作信号。Optionally, the selection signal may be a click operation signal on the target device identifier, or may be a click operation signal on the selection control corresponding to the target device identifier.

示意性的,如图3所示,当接收到对WiFi列表301A中第一手机302对应选择控件302B的点击操作信号时,第一设备301将第一手机302确定为第二设备。Schematically, as shown in FIG. 3 , when receiving a click operation signal on the selection control 302B corresponding to the first mobile phone 302 in the WiFi list 301A, the first device 301 determines the first mobile phone 302 as the second device.

步骤203,第一设备向第二设备发送WiFi热点连接请求。Step 203, the first device sends a WiFi hotspot connection request to the second device.

在一种可能的实施方式中,第一设备通过预定近场通信方式将WiFi热点连接请求发送给第二设备。可选的,预定近场通信方式包括蓝牙、红外线、WiFi直连(direct)、近场通信(Near Field Communication,NFC)中的至少一种。In a possible implementation manner, the first device sends the WiFi hotspot connection request to the second device through a predetermined near field communication manner. Optionally, the predetermined near field communication manner includes at least one of Bluetooth, infrared, WiFi direct, and near field communication (Near Field Communication, NFC).

在一种可能的实施方式中,WiFi热点连接请求中包含第一设备的设备标识,以便第二设备根据设备标识确定WiFi热点连接请求的发送方。In a possible implementation manner, the WiFi hotspot connection request includes the device identifier of the first device, so that the second device can determine the sender of the WiFi hotspot connection request according to the device identifier.

步骤204,第二设备接收第一设备发送的WiFi热点连接请求。Step 204, the second device receives the WiFi hotspot connection request sent by the first device.

可选的,第二设备通过预定近场通信方式接收第一设备发送的WiFi热点连接请求。Optionally, the second device receives the WiFi hotspot connection request sent by the first device through a predetermined near field communication method.

步骤205,第二设备根据WiFi热点连接请求生成连接请求响应,连接请求响应中包含热点连接信息。Step 205, the second device generates a connection request response according to the WiFi hotspot connection request, and the connection request response includes hotspot connection information.

在一种可能的实施方式中,第二设备接收到WiFi热点连接请求后,首先确定自身是否已开启WiFi热点功能。若已开启WiFi热点功能,则直接将自身WiFi热点的热点连接信息打包生成连接请求响应;若没有开启WiFi热点功能,则在后台自动创建WiFi热点(无需用户手动创建),然后将创建的WiFi热点的热点连接信息打包生成连接请求响应。In a possible implementation manner, after receiving the WiFi hotspot connection request, the second device first determines whether it has enabled the WiFi hotspot function. If the WiFi hotspot function is enabled, it will directly package the hotspot connection information of its own WiFi hotspot to generate a connection request response; if the WiFi hotspot function is not enabled, it will automatically create a WiFi hotspot in the background (no need for the user to manually create it), and then the created WiFi hotspot The hotspot connection information is packaged to generate a connection request response.

步骤206,第二设备向第一设备发送连接请求响应。Step 206, the second device sends a connection request response to the first device.

示意性的,如图3所示,第一手机302将生成的连接请求响应发送给第一设备301。Schematically, as shown in FIG. 3 , the first mobile phone 302 sends the generated connection request response to the first device 301 .

步骤207,当接收到第二设备发送的连接请求响应时,第一设备根据连接请求响应中包含的热点连接信息接入第二设备创建的WiFi热点。Step 207, when receiving the connection request response sent by the second device, the first device accesses the WiFi hotspot created by the second device according to the hotspot connection information contained in the connection request response.

在一种可能的实施方式中,连接请求响应的热点连接信息包含有热点名称和热点密码。第一设备接收到连接请求响应后,根据热点名称确定WiFi热点连接对象即第二设备,并向第二设备发送热点接入请求,该热点接入请求包含热点密码。第二设备接收到热点接入请求后,验证热点接入请求中包含的热点密码是否与自身的热点密码相同,并在两者相同时,同意第一设备接入创建的WiFi热点。In a possible implementation manner, the hotspot connection information in the connection request response includes a hotspot name and a hotspot password. After receiving the connection request response, the first device determines the WiFi hotspot connection object, that is, the second device according to the hotspot name, and sends a hotspot access request to the second device, and the hotspot access request includes a hotspot password. After receiving the hotspot access request, the second device verifies whether the hotspot password included in the hotspot access request is the same as its own hotspot password, and if they are the same, agrees to the first device to access the created WiFi hotspot.

综上所述,本申请实施例中,第一设备发现周围具有WiFi热点功能的候选设备后,将候选设备的设备标识显示在WiFi列表中,当接收到对候选设备中第二设备的选择时,通过向第二设备发送WiFi热点连接请求,获取第二设备反馈的热点连接信息,从而根据该热点连接信息接入第二设备创建的WiFi热点;相较于相关技术中需要用户手动设置并连接WiFi热点,采用本申请实施例提供的方法可以实现WiFi热点一键式接入,简化了WiFi热点的接入流程,提高了WiFi热点的接入效率。To sum up, in the embodiment of the present application, after the first device discovers a candidate device with WiFi hotspot function around it, it displays the device identifier of the candidate device in the WiFi list, and when receiving the selection of the second device among the candidate devices , by sending a WiFi hotspot connection request to the second device to obtain the hotspot connection information fed back by the second device, so as to access the WiFi hotspot created by the second device according to the hotspot connection information; compared with the related art, the user needs to manually set and connect For WiFi hotspots, one-click access to WiFi hotspots can be realized by adopting the method provided in the embodiment of the present application, which simplifies the access process of WiFi hotspots and improves the access efficiency of WiFi hotspots.

在一种可能的实施方式中,第一设备通过蓝牙发现周围具备WiFi热点功能的候选设备,并进一步通过蓝牙与选中的第二设备进行通信,从而接入第二设备创建的WiFi热点。下面采用示意性的实施例进行说明。In a possible implementation manner, the first device discovers surrounding candidate devices with the WiFi hotspot function through Bluetooth, and further communicates with the selected second device through Bluetooth, so as to access the WiFi hotspot created by the second device. The following uses a schematic embodiment for description.

请参考图4,其示出了本申请另一个示例性实施例提供的WiFi热点接入方法的流程图。该方法包括:Please refer to FIG. 4 , which shows a flow chart of a method for accessing a WiFi hotspot provided in another exemplary embodiment of the present application. The method includes:

步骤401,第二设备广播蓝牙广播信息,蓝牙广播信息中包含预设字段以及设备标识,预设字段用于指示具备WiFi热点功能。Step 401, the second device broadcasts Bluetooth broadcast information, the Bluetooth broadcast information includes a preset field and a device identifier, and the preset field is used to indicate that it has a WiFi hotspot function.

对于具备WiFi热点功能的设备,为了使其能够被请求接入WiFi热点的其他设备所发现,设备广播的蓝牙广播信息中包含预设字段,以便接收到该蓝牙广播信息的其他设备能够根据该预设字段确定设备是否具备WiFi热点功能。For a device with a WiFi hotspot function, in order to be discovered by other devices that request access to a WiFi hotspot, the Bluetooth broadcast information broadcast by the device contains a preset field, so that other devices that receive the Bluetooth broadcast information can follow the preset field. Set the field to determine whether the device has the WiFi hotspot function.

可选的,该预设字段位于蓝牙广播报文的保留给未来使用(Reserved for FutureUse,RFU)字段中。当然,设备开发商可以根据需求自定义该预设字段的在蓝牙广播报文中的位置,本申请实施例对此不做限定。Optionally, the preset field is located in a Reserved for Future Use (RFU) field of the Bluetooth broadcast message. Of course, the device developer can customize the position of the preset field in the Bluetooth broadcast message according to requirements, which is not limited in this embodiment of the present application.

示意性的,如图5所示,第一设备501的周侧包含第一手机502、平板电脑503和第二手机504(均开启蓝牙功能),其中,第一手机502和第二手机504广播的蓝牙广播信息中包含预设字段,表明第一手机502和第二手机504具有WiFi热点功能,而平板电脑503广播的蓝牙广播信息不包含预设字段,表明平板电脑503不具备WiFi热点功能。Schematically, as shown in FIG. 5 , the peripheral side of the first device 501 includes a first mobile phone 502, a tablet computer 503 and a second mobile phone 504 (both with Bluetooth enabled), wherein the first mobile phone 502 and the second mobile phone 504 broadcast The bluetooth broadcast information includes a preset field, indicating that the first mobile phone 502 and the second mobile phone 504 have a WiFi hotspot function, while the bluetooth broadcast information broadcast by the tablet computer 503 does not contain a preset field, indicating that the tablet computer 503 does not have a WiFi hotspot function.

步骤402,第一设备接收各个附近设备广播的蓝牙广播信息。In step 402, the first device receives Bluetooth broadcast information broadcast by each nearby device.

相关技术中,当需要接入WiFi网络时,第一设备通过WiFi扫描功能搜索附近的WiFi网络,采用这种方式,第一设备仅能够发现无线路由器提供的WiFi网络或其他设备开启的WiFi热点,对于未开启WiFi热点功能的设备,第一设备将无法发现。In related technologies, when a WiFi network needs to be accessed, the first device searches for nearby WiFi networks through the WiFi scanning function. In this way, the first device can only find the WiFi network provided by the wireless router or the WiFi hotspot opened by other devices. For devices that do not have the WiFi hotspot function turned on, the first device will not be able to discover them.

而本申请实施例中,为了使第一设备能够发现未开启WiFi热点功能的设备,在一种可能的实施方式中,第一设备通过WiFi扫描功能搜索附近WiFi网络的同时,接收附近设备广播的蓝牙广播信息,以便根据蓝牙广播信息发现具有WiFi热点功能的设备。However, in this embodiment of the application, in order to enable the first device to discover devices that do not have the WiFi hotspot function enabled, in a possible implementation manner, the first device searches for nearby WiFi networks through the WiFi scanning function, and at the same time receives information broadcast by nearby devices. Bluetooth broadcast information, in order to discover devices with WiFi hotspot function according to the Bluetooth broadcast information.

可选的,当需要接入WiFi网络时,若蓝牙功能未开启,第一设备自动开启蓝牙功能,然后借助蓝牙功能接收附近设备广播的蓝牙广播信息。Optionally, when the WiFi network needs to be connected, if the Bluetooth function is not enabled, the first device automatically enables the Bluetooth function, and then receives the Bluetooth broadcast information broadcasted by nearby devices by means of the Bluetooth function.

示意性的,如图5所示,第一设备501接收到第一手机502、平板电脑503以及第二手机504广播的蓝牙广播信息。Schematically, as shown in FIG. 5 , the first device 501 receives the Bluetooth broadcast information broadcast by the first mobile phone 502 , the tablet computer 503 and the second mobile phone 504 .

步骤403,若蓝牙广播信息中包含预设字段,第一设备则将附近设备确定为候选设备,预设字段用于指示具备WiFi热点功能。Step 403, if the Bluetooth broadcast information includes a preset field, the first device determines nearby devices as candidate devices, and the preset field is used to indicate that it has a WiFi hotspot function.

在一种可能的实施方式中,第一设备将在其蓝牙广播范围内且已打开蓝牙功能的设备确定为附近设备,并将蓝牙广播信息中包含预设字段的附近设备确定为候选设备。In a possible implementation manner, the first device determines a device within its Bluetooth broadcast range and has turned on the Bluetooth function as a nearby device, and determines a nearby device including a preset field in the Bluetooth broadcast information as a candidate device.

示意性的,在图5所示场景下,第一设备501将第一手机502和第二手机504确定为候选设备。Schematically, in the scenario shown in FIG. 5 , the first device 501 determines the first mobile phone 502 and the second mobile phone 504 as candidate devices.

步骤404,第一设备从蓝牙广播信息中获取候选设备的设备标识,并将设备标识显示在WiFi列表中。Step 404, the first device obtains the device identifier of the candidate device from the Bluetooth broadcast information, and displays the device identifier in the WiFi list.

进一步的,第一设备从候选设备广播的蓝牙广播信息中,获取候选设备的设备标识,并将该设备标识显示在WiFi列表中,以便用户知悉附近存在可以提供WiFi热点连接的其他设备。Further, the first device acquires the device identifier of the candidate device from the Bluetooth broadcast information broadcast by the candidate device, and displays the device identifier in the WiFi list, so that the user knows that there are other devices nearby that can provide WiFi hotspot connections.

其中,该设备标识可以是设备型号(默认),或者,可以是用户自定义的设备名称。Wherein, the device identifier may be a device model (default), or may be a user-defined device name.

示意性的,如图5所示,第一设备501在WiFi列表501A中显示第一手机502对应的第一设备标识502A以及第二手机504对应的第二设备标识504A。Schematically, as shown in FIG. 5 , the first device 501 displays the first device identifier 502A corresponding to the first mobile phone 502 and the second device identifier 504A corresponding to the second mobile phone 504 in the WiFi list 501A.

在一种可能的实施方式中,WiFi列表中设备标识的显示顺序与候选设备的蓝牙信号强度相关,即候选设备的蓝牙信号强度越高,其对应设备标识的显示顺序在WiFi列表中越靠前。In a possible implementation manner, the display order of the device identifiers in the WiFi list is related to the Bluetooth signal strength of the candidate device, that is, the higher the Bluetooth signal strength of the candidate device, the higher the display order of the corresponding device identifiers in the WiFi list.

步骤405,当接收到对WiFi列表中目标设备标识的选择信号时,第一设备将目标设备标识对应的候选设备确定为第二设备。Step 405, when receiving a selection signal for the target device ID in the WiFi list, the first device determines the candidate device corresponding to the target device ID as the second device.

可选的,选择信号可以是对目标设备标识的点击操作信号,或,可以是对目标设备标识对应选择控件的点击操作信号。Optionally, the selection signal may be a click operation signal on the target device identifier, or may be a click operation signal on the selection control corresponding to the target device identifier.

示意性的,如图5所示,当接收到对WiFi列表501A中第一手机502对应选择控件502B的点击操作信号时,第一设备501将第一手机502确定为第二设备。Schematically, as shown in FIG. 5 , when receiving a click operation signal on the selection control 502B corresponding to the first mobile phone 502 in the WiFi list 501A, the first device 501 determines the first mobile phone 502 as the second device.

步骤406,第一设备获取第一设备登陆的第一账号。Step 406, the first device obtains the first account logged in by the first device.

为了提高WiFi热点的连接安全性,第一设备向第二设备发送的WiFi热点连接请求中需要包含身份验证信息,以便第二设备根据该身份验证信息确定直接向第一设备反馈连接请求响应,或,在经过用户确认后向第一设备反馈连接请求响应。In order to improve the connection security of the WiFi hotspot, the WiFi hotspot connection request sent by the first device to the second device needs to include identity verification information, so that the second device can directly feed back a connection request response to the first device according to the identity verification information, or , feeding back a connection request response to the first device after confirmation by the user.

本实施例中,第一设备将自身登陆的第一账号作为身份验证信息,其中,该第一账号可以是第一设备操作系统的系统账号,该系统账号用于唯一标识使用该第一设备的用户。In this embodiment, the first device uses the first account logged in by itself as the identity verification information, wherein the first account may be a system account of the operating system of the first device, and the system account is used to uniquely identify the user who uses the first device. user.

在一个示意性的例子中,第一设备获取到的第一帐号为“zhangsan001”。In an illustrative example, the first account obtained by the first device is "zhangsan001".

步骤407,第一设备向第二设备发送包含第一账号的WiFi热点连接请求。Step 407, the first device sends a WiFi hotspot connection request including the first account to the second device.

进一步的,第一设备根据获取到的第一账号生成WiFi热点连接请求,并通过蓝牙向第二设备发送WiFi热点连接请求。Further, the first device generates a WiFi hotspot connection request according to the obtained first account, and sends the WiFi hotspot connection request to the second device through Bluetooth.

可选的,第一设备向第二设备发送WiFi热点连接请求之前,通过三次握手与第二设备建立蓝牙连接,后续第一设备与第二设备即通过蓝牙连接进行数据通信。Optionally, before the first device sends a WiFi hotspot connection request to the second device, it establishes a Bluetooth connection with the second device through a three-way handshake, and then the first device and the second device perform data communication through the Bluetooth connection.

步骤408,第二设备接收第一设备发送的WiFi热点连接请求。Step 408, the second device receives the WiFi hotspot connection request sent by the first device.

在一种可能的实施方式中,接收到WiFi热点连接请求后,第二设备检测WiFi热点连接请求中包含的第一账号与第二设备登陆的第二账号是否相同,当第一账号和第二账号不同时,执行步骤409至步骤411;当第一账号和第二账号相同时,执行步骤412至步骤413。In a possible implementation manner, after receiving the WiFi hotspot connection request, the second device detects whether the first account included in the WiFi hotspot connection request is the same as the second account logged in by the second device. If the accounts are different, execute step 409 to step 411; when the first account and the second account are the same, execute step 412 to step 413.

步骤409,若WiFi热点连接请求中包含第一设备登陆的第一账号,且第二设备登陆的第二账号与第一账号不同,第二设备则显示请求响应确认控件。Step 409, if the WiFi hotspot connection request includes the first account logged in by the first device, and the second account logged in by the second device is different from the first account, the second device displays a request response confirmation control.

可选的,当第一账号与第二账号不同时,表明第一设备和第二设备不属于同一个用户,为了避免第一设备直接连接到第二设备的WiFi热点,造成第二设备流量损失,第二设备显示请求响应确认控件,以便第二设备的用户确认是否为第一设备提供WiFi热点。Optionally, when the first account is different from the second account, it indicates that the first device and the second device do not belong to the same user, in order to prevent the first device from directly connecting to the WiFi hotspot of the second device, causing traffic loss on the second device , the second device displays a request response confirmation control, so that the user of the second device can confirm whether to provide a WiFi hotspot for the first device.

可选的,该请求响应确认控件为悬浮窗口或提示框,本申请实施例对此不做限定。Optionally, the request response confirmation control is a floating window or a prompt box, which is not limited in this embodiment of the present application.

示意性的,如图5所示,当检测到第一手机502登陆的第二账号与第一设备501的第一账号不同时,第一手机502即显示请求响应确认控件505。Schematically, as shown in FIG. 5 , when it is detected that the second account logged in by the first mobile phone 502 is different from the first account of the first device 501 , the first mobile phone 502 displays a request response confirmation control 505 .

步骤410,若接收到对请求响应确认控件的触发操作,第二设备则获取WiFi热点的热点连接信息。Step 410, if a trigger operation on the request response confirmation control is received, the second device acquires hotspot connection information of the WiFi hotspot.

当接收到对请求响应确认控件的触发操作时,表明允许第一设备使用第二设备的WiFi热点,第二设备即获取WiFi热点的热点连接信息,其中,获取热点连接信息的过程可以参考上述步骤205,本实施例在此不再赘述。When the trigger operation on the request response confirmation control is received, it indicates that the first device is allowed to use the WiFi hotspot of the second device, and the second device obtains the hotspot connection information of the WiFi hotspot, and the process of obtaining the hotspot connection information can refer to the above steps 205. This embodiment will not be repeated here.

示意性的,如图5所示,第一手机502接收到对请求响应确认控件505的触发操作,即同意第一设备501连接第一手机502的热点时,第一手机502开启WiFi热点功能(显示WiFi热点标识506)。Schematically, as shown in FIG. 5, when the first mobile phone 502 receives a trigger operation on the request response confirmation control 505, that is, when it agrees that the first device 501 connects to the hotspot of the first mobile phone 502, the first mobile phone 502 turns on the WiFi hotspot function ( Display WiFi hotspot identification 506).

步骤411,第二设备根据热点连接信息生成连接请求响应。Step 411, the second device generates a connection request response according to the hotspot connection information.

示意性的,如图5所示,第一手机502根据获取到的WiFi热点的热点连接信息,在后台生成连接请求响应。Schematically, as shown in FIG. 5 , the first mobile phone 502 generates a connection request response in the background according to the acquired hotspot connection information of the WiFi hotspot.

需要说明的是,若未接收到对请求响应确认控件的触发操作(或触发操作指示不允许第一设备接入WiFi热点)时,第二设备生成拒绝连接响应,并发送给第一设备。It should be noted that if no trigger operation on the request response confirmation control is received (or the trigger operation indicates that the first device is not allowed to access the WiFi hotspot), the second device generates a connection rejection response and sends it to the first device.

步骤412,若WiFi热点连接请求中包含第一设备登陆的第一账号,且第二设备登陆的第二账号与第一账号相同,第二设备则获取WiFi热点的热点连接信息。Step 412, if the WiFi hotspot connection request includes the first account logged in by the first device, and the second account logged in by the second device is the same as the first account, the second device obtains hotspot connection information of the WiFi hotspot.

可选的,当第一账号与第二账号相同时,表明第一设备和第二设备是同一个用户使用的设备,因此相比较步骤409中需要通过请求响应确认控件进行确认,本步骤中,第二设备不需要显示请求响应确认控件,而是直接获取WiFi热点的热点连接信息。Optionally, when the first account is the same as the second account, it indicates that the first device and the second device are devices used by the same user. Therefore, compared with step 409, it needs to be confirmed through the request response confirmation control. In this step, The second device does not need to display the request response confirmation control, but directly obtains the hotspot connection information of the WiFi hotspot.

示意性的,如图5所示,第一手机502登陆的第二账号与第一设备501的第一账号相同,第一手机502自动开启WiFi热点功能(显示WiFi热点连接标识506),并获取WiFi热点的热点连接信息。Schematically, as shown in FIG. 5, the second account logged in by the first mobile phone 502 is the same as the first account of the first device 501, and the first mobile phone 502 automatically turns on the WiFi hotspot function (displaying the WiFi hotspot connection logo 506), and obtains Hotspot connection information for WiFi hotspots.

步骤413,第二设备根据热点连接信息生成连接请求响应。Step 413, the second device generates a connection request response according to the hotspot connection information.

示意性的,如图5所示,第一手机502根据获取到的WiFi热点的热点连接信息,在后台生成连接请求响应。Schematically, as shown in FIG. 5 , the first mobile phone 502 generates a connection request response in the background according to the acquired hotspot connection information of the WiFi hotspot.

步骤414,第二设备向第一设备发送连接请求响应。Step 414, the second device sends a connection request response to the first device.

步骤415,当接收到第二设备发送的连接请求响应时,第一设备根据连接请求响应中包含的热点连接信息接入第二设备创建的WiFi热点。Step 415, when receiving the connection request response sent by the second device, the first device accesses the WiFi hotspot created by the second device according to the hotspot connection information contained in the connection request response.

本步骤的实施方式可以参考上述步骤207,本实施例在此不再赘述。For the implementation manner of this step, reference may be made to the above step 207, and details will not be described here in this embodiment.

本实施例中,第一设备根据接收到的蓝牙广播信息发现附近具有WiFi热点功能的候选设备(即便未开启WiFi热点),并向用户选中的第二设备发送WiFi热点连接请求,从而根据第二设备反馈的热点连接信息接入第二设备提供的WiFi热点;整个热点连接过程中,无需用户手动开启WiFi热点,也无需用户手动输入热点密码,提高了WiFi热点的接入效率。In this embodiment, the first device finds a nearby candidate device with WiFi hotspot function (even if the WiFi hotspot is not turned on) according to the received Bluetooth broadcast information, and sends a WiFi hotspot connection request to the second device selected by the user, thereby according to the second The hotspot connection information fed back by the device is connected to the WiFi hotspot provided by the second device; during the whole hotspot connection process, the user does not need to manually open the WiFi hotspot, nor does the user need to manually enter the hotspot password, which improves the access efficiency of the WiFi hotspot.

此外,第一设备通过在WiFi热点连接请求中添加自身登陆的第一账号,以便第二设备在检测到自身登陆的第二账号与第一账号相同时,直接向第一设备提供热点连接信息,免去了用户在第二设备处进行确认的操作,进一步简化了WiFi热点的接入流程,提高了接入效率。In addition, the first device adds the first account logged in to the WiFi hotspot connection request, so that the second device can directly provide the hotspot connection information to the first device when it detects that the second account logged in by itself is the same as the first account, The operation of confirming by the user at the second device is eliminated, the access process of the WiFi hotspot is further simplified, and the access efficiency is improved.

在一种可能的应用场景下,用户拥有第一设备和第二设备,当需要将第二设备的热点分享给第一设备时,由于第一设备附近还存在其他具有WiFi热点功能的设备,导致用户从WiFi列表中选取第二设备的效率较低(因为大多数设备的设备标识都采用默认的设备型号)。In a possible application scenario, the user owns the first device and the second device, and when it is necessary to share the hotspot of the second device with the first device, since there are other devices with WiFi hotspot functions near the first device, the It is inefficient for the user to select the second device from the WiFi list (because the device identification of most devices adopts the default device model).

为了提高在这种场景下,用户从WiFi列表中选择第二设备的效率,在一种可能的实施方式中,第二设备(以及其他候选设备)广播的蓝牙广播信息中不仅包含预设字段以及设备标识,还包含账号信息,该账号信息用于指示第二设备登陆的第二账号。In order to improve the efficiency for the user to select the second device from the WiFi list in this scenario, in a possible implementation, the Bluetooth broadcast information broadcast by the second device (and other candidate devices) not only includes preset fields and The device identifier also includes account information, and the account information is used to indicate the second account logged in by the second device.

相应的,若候选设备广播的蓝牙广播信息中包含账号信息,且账号信息与第一设备登陆的第一账号相同,第一设备则在设备标识对应的区域显示预设标识,该预设标识用于指示候选设备与所述第一设备登陆同一账号。Correspondingly, if the Bluetooth broadcast information broadcast by the candidate device includes account information, and the account information is the same as the first account logged in by the first device, the first device displays a preset logo in the area corresponding to the device logo, and the preset logo uses Instructing the candidate device to log in with the same account as the first device.

示意性的,如图6所示,第一设备601接收到第一手机602和第二手机603广播的蓝牙广播信息,由于第一手机602登陆的第二账号与第一设备601登陆的第一账号相同,因此,第一设备601在WiFi列表601A中,第一手机602对应第一设备标识602A的右侧区域显示预设标识602B。Schematically, as shown in FIG. 6 , the first device 601 receives the Bluetooth broadcast information broadcast by the first mobile phone 602 and the second mobile phone 603. The accounts are the same, therefore, the first device 601 is in the WiFi list 601A, and the first mobile phone 602 displays a preset identifier 602B in the right area corresponding to the first device identifier 602A.

本实施例中,第一设备根据蓝牙广播信息中的账号信息,确定与自身登陆同一账号的候选设备,并在该候选设备的周侧显示预设标识,有助于用户快速选取设备进行热点连接,进一步提高了热点连接的效率。In this embodiment, the first device determines the candidate device that logs in with the same account as itself according to the account information in the Bluetooth broadcast information, and displays a preset logo on the side of the candidate device, which helps the user to quickly select the device for hotspot connection , further improving the efficiency of the hotspot connection.

需要说明的是,上述各个实施例中,以第一设备为执行主体的步骤可以单独实现成为第一设备侧的WiFi热点接入方法,以第二设备为执行主体的步骤可以单独实现成为第二设备侧的WiFi热点接入方法,本实施例在此不再赘述。It should be noted that, in each of the above-mentioned embodiments, the steps with the first device as the execution subject can be independently implemented as a WiFi hotspot access method on the side of the first device, and the steps with the second device as the execution subject can be independently implemented as the second The WiFi hotspot access method on the device side will not be described in detail in this embodiment.

请参考图7,其示出了本申请一个实施例提供的WiFi热点接入装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为计算机设备的全部或一部分。该装置包括:Please refer to FIG. 7 , which shows a structural block diagram of a WiFi hotspot access device provided by an embodiment of the present application. The device can be implemented as all or a part of computer equipment through software, hardware or a combination of the two. The unit includes:

显示模块701,被配置为在WiFi列表中显示至少一个候选设备的设备标识,所述候选设备位于所述第一设备周侧且具有WiFi热点功能;The display module 701 is configured to display the device identification of at least one candidate device in the WiFi list, the candidate device is located around the first device and has a WiFi hotspot function;

选择模块702,被配置为当接收到对所述WiFi列表中目标设备标识的选择信号时,将所述目标设备标识对应的所述候选设备确定为第二设备;The selection module 702 is configured to determine the candidate device corresponding to the target device identifier as the second device when receiving a selection signal for the target device identifier in the WiFi list;

请求发送模块703,被配置为向所述第二设备发送WiFi热点连接请求;The request sending module 703 is configured to send a WiFi hotspot connection request to the second device;

响应接收模块704,被配置为当接收到所述第二设备发送的连接请求响应时,根据所述连接请求响应中包含的热点连接信息接入所述第二设备创建的WiFi热点。The response receiving module 704 is configured to, when receiving the connection request response sent by the second device, access the WiFi hotspot created by the second device according to the hotspot connection information contained in the connection request response.

可选的,所述显示模块701,包括:Optionally, the display module 701 includes:

蓝牙接收子模块,被配置为接收各个附近设备广播的蓝牙广播信息;The bluetooth receiving sub-module is configured to receive bluetooth broadcast information broadcast by each nearby device;

显示子模块,被配置为根据蓝牙广播信息,在WiFi列表中显示至少一个所述候选设备的所述设备标识,所述候选设备属于所述附近设备。The display submodule is configured to display the device identifier of at least one candidate device in the WiFi list according to the Bluetooth broadcast information, and the candidate device belongs to the nearby device.

可选的,所述显示子模块,被配置为:Optionally, the display submodule is configured as:

若所述蓝牙广播信息中包含预设字段,则将所述附近设备确定为所述候选设备,所述预设字段用于指示具备所述WiFi热点功能;If the Bluetooth broadcast information includes a preset field, then determine the nearby device as the candidate device, and the preset field is used to indicate that it has the WiFi hotspot function;

从所述蓝牙广播信息中获取所述候选设备的所述设备标识,并将所述设备标识显示在所述WiFi列表中。Obtaining the device identifier of the candidate device from the Bluetooth broadcast information, and displaying the device identifier in the WiFi list.

可选的,所述显示子模块,被配置为:Optionally, the display submodule is configured as:

若所述候选设备广播的所述蓝牙广播信息中包含账号信息,且所述账号信息与所述第一设备登陆的第一账号相同,则在所述设备标识对应的区域显示预设标识,所述预设标识用于指示所述候选设备与所述第一设备登陆同一账号。If the bluetooth broadcast information broadcast by the candidate device includes account information, and the account information is the same as the first account logged in by the first device, then a preset identifier is displayed in the area corresponding to the device identifier, so The preset identifier is used to indicate that the candidate device is logged in with the same account as the first device.

可选的,所述请求发送模块703,包括:Optionally, the request sending module 703 includes:

第一获取子模块,被配置为获取所述第一设备登陆的第一账号;The first obtaining submodule is configured to obtain the first account logged in by the first device;

请求发送子模块,被配置为向所述第二设备发送包含所述第一账号的所述WiFi热点连接请求,其中,所述第二设备用于在所述第二设备登陆的第二账号与所述第一账号相同时,向所述第一设备发送所述连接请求响应;或者,所述第二设备用于在所述第二账号与所述第一账号不同,且接收到请求响应操作时,向所述第一设备发送所述连接请求响应。The request sending submodule is configured to send the WiFi hotspot connection request including the first account to the second device, wherein the second account used by the second device to log in to the second device is the same as When the first account is the same, send the connection request response to the first device; or, the second device is configured to operate when the second account is different from the first account and receives the request response , sending the connection request response to the first device.

综上所述,本申请实施例中,第一设备发现周围具有WiFi热点功能的候选设备后,将候选设备的设备标识显示在WiFi列表中,当接收到对候选设备中第二设备的选择时,通过向第二设备发送WiFi热点连接请求,获取第二设备反馈的热点连接信息,从而根据该热点连接信息接入第二设备创建的WiFi热点;相较于相关技术中需要用户手动设置并连接WiFi热点,采用本申请实施例提供的方法可以实现WiFi热点一键式接入,简化了WiFi热点的接入流程,提高了WiFi热点的接入效率。To sum up, in the embodiment of the present application, after the first device discovers a candidate device with WiFi hotspot function around it, it displays the device identifier of the candidate device in the WiFi list, and when receiving the selection of the second device among the candidate devices , by sending a WiFi hotspot connection request to the second device to obtain the hotspot connection information fed back by the second device, so as to access the WiFi hotspot created by the second device according to the hotspot connection information; compared with the related art, the user needs to manually set and connect For WiFi hotspots, one-click access to WiFi hotspots can be realized by adopting the method provided in the embodiment of the present application, which simplifies the access process of WiFi hotspots and improves the access efficiency of WiFi hotspots.

请参考图8,其示出了本申请另一个实施例提供的WiFi热点接入装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为计算机设备的全部或一部分。该装置包括:Please refer to FIG. 8 , which shows a structural block diagram of a WiFi hotspot access device provided by another embodiment of the present application. The device can be implemented as all or a part of computer equipment through software, hardware or a combination of the two. The unit includes:

请求接收模块800,被配置为接收第一设备发送的WiFi热点连接请求,所述WiFi热点连接请求是所述第一设备接收到对WiFi列表中目标设备标识的选择信号时发送的,所述WiFi列表中包含至少一个候选设备的设备标识,所述候选设备位于所述第一设备周侧且具有WiFi热点功能;The request receiving module 800 is configured to receive a WiFi hotspot connection request sent by the first device, the WiFi hotspot connection request is sent when the first device receives a selection signal for the target device identifier in the WiFi list, the WiFi The list includes a device identifier of at least one candidate device, the candidate device is located around the first device and has a WiFi hotspot function;

响应生成模块801,被配置根据所述WiFi热点连接请求生成连接请求响应,所述连接请求响应中包含热点连接信息;The response generation module 801 is configured to generate a connection request response according to the WiFi hotspot connection request, and the connection request response includes hotspot connection information;

响应发送模块802,被配置为向所述第一设备发送所述连接请求响应,所述第一设备用于根据所述热点连接信息接入所述第二设备创建的WiFi热点。The response sending module 802 is configured to send the connection request response to the first device, and the first device is used to access the WiFi hotspot created by the second device according to the hotspot connection information.

可选的,所述装置还包括:Optionally, the device also includes:

蓝牙广播模块,被配置为广播蓝牙广播信息,所述蓝牙广播信息中包含预设字段以及设备标识,所述预设字段用于指示具备所述WiFi热点功能。The Bluetooth broadcast module is configured to broadcast Bluetooth broadcast information, the Bluetooth broadcast information includes a preset field and a device identifier, and the preset field is used to indicate that the WiFi hotspot function is available.

可选的,所述蓝牙广播信息中还包含账号信息,所述账号信息用于指示所述第二设备登陆的第二账号,所述第一设备用于在登陆的第一账号与所述第二账号相同时,在所述WiFi列表中所述第二设备对应的区域显示预设标识,所述预设标识用于指示所述第二设备与所述第一设备登陆同一账号。Optionally, the Bluetooth broadcast information further includes account information, the account information is used to indicate the second account logged in by the second device, and the first device is used to connect the first account logged in with the second account. When the two accounts are the same, a preset logo is displayed in the area corresponding to the second device in the WiFi list, and the preset logo is used to indicate that the second device and the first device log into the same account.

可选的,所述响应生成模块801,包括:Optionally, the response generating module 801 includes:

第一信息获取子模块,被配置为若所述WiFi热点连接请求中包含所述第一设备登陆的第一账号,且所述第二设备登陆的第二账号与所述第一账号相同,则获取所述WiFi热点的所述热点连接信息;The first information acquisition submodule is configured to if the WiFi hotspot connection request includes the first account logged in by the first device, and the second account logged in by the second device is the same as the first account, then Obtain the hotspot connection information of the WiFi hotspot;

第一响应生成子模块,被配置为根据所述热点连接信息生成所述连接请求响应。The first response generating submodule is configured to generate the connection request response according to the hotspot connection information.

可选的,所述响应生成模块801,包括:Optionally, the response generating module 801 includes:

控件显示子模块,被配置为若所述WiFi热点连接请求中包含所述第一设备登陆的第一账号,且所述第二设备登陆的第二账号与所述第一账号不同,则显示请求响应确认控件;The control display submodule is configured to display the request if the WiFi hotspot connection request includes the first account logged in by the first device, and the second account logged in by the second device is different from the first account Response confirmation control;

第二信息获取子模块,被配置为若接收到对所述请求响应确认控件的触发操作,则获取所述WiFi热点的所述热点连接信息;The second information acquisition submodule is configured to acquire the hotspot connection information of the WiFi hotspot if a trigger operation on the request response confirmation control is received;

第二响应生成子模块,被配置为根据所述热点连接信息生成所述连接请求响应。The second response generating submodule is configured to generate the connection request response according to the hotspot connection information.

综上所述,本申请实施例中,第一设备发现周围具有WiFi热点功能的候选设备后,将候选设备的设备标识显示在WiFi列表中,当接收到对候选设备中第二设备的选择时,通过向第二设备发送WiFi热点连接请求,获取第二设备反馈的热点连接信息,从而根据该热点连接信息接入第二设备创建的WiFi热点;相较于相关技术中需要用户手动设置并连接WiFi热点,采用本申请实施例提供的方法可以实现WiFi热点一键式接入,简化了WiFi热点的接入流程,提高了WiFi热点的接入效率。To sum up, in the embodiment of the present application, after the first device discovers a candidate device with WiFi hotspot function around it, it displays the device identifier of the candidate device in the WiFi list, and when receiving the selection of the second device among the candidate devices , by sending a WiFi hotspot connection request to the second device to obtain the hotspot connection information fed back by the second device, so as to access the WiFi hotspot created by the second device according to the hotspot connection information; compared with the related art, the user needs to manually set and connect For WiFi hotspots, one-click access to WiFi hotspots can be realized by adopting the method provided in the embodiment of the present application, which simplifies the access process of WiFi hotspots and improves the access efficiency of WiFi hotspots.

请参考图9,其示出了本申请一个示例性实施例提供的计算机设备900的结构方框图。该计算机设备900可以是智能手机、平板电脑、电子书、便携式个人计算机等安装并运行有应用程序的电子设备。本申请中的计算机设备900可以包括一个或多个如下部件:处理器910、存储器920和屏幕930。Please refer to FIG. 9 , which shows a structural block diagram of a computer device 900 provided by an exemplary embodiment of the present application. The computer device 900 may be a smart phone, a tablet computer, an e-book, a portable personal computer, etc., which have application programs installed and running. The computer device 900 in this application may include one or more of the following components: a processor 910 , a memory 920 and a screen 930 .

处理器910可以包括一个或者多个处理核心。处理器910利用各种接口和线路连接整个计算机设备900内的各个部分,通过运行或执行存储在存储器920内的指令、程序、代码集或指令集,以及调用存储在存储器920内的数据,执行计算机设备900的各种功能和处理数据。可选地,处理器910可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器910可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责屏幕930所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器910中,单独通过一块通信芯片进行实现。Processor 910 may include one or more processing cores. The processor 910 uses various interfaces and lines to connect various parts of the entire computer device 900, and by running or executing instructions, programs, code sets or instruction sets stored in the memory 920, and calling data stored in the memory 920, executes Various functions of the computer device 900 and processing data. Optionally, the processor 910 may use at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (ProgrammableLogic Array, PLA). implemented in the form of hardware. The processor 910 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, the user interface and application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the screen 930; the modem is used for processing wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 910, but may be realized by a communication chip alone.

存储器920可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选地,该存储器920包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器920可用于存储指令、程序、代码、代码集或指令集。存储器920可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等,该操作系统可以是安卓(Android)系统(包括基于Android系统深度开发的系统)、苹果公司开发的IOS系统(包括基于IOS系统深度开发的系统)或其它系统。存储数据区还可以存储计算机设备900在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 920 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory). Optionally, the memory 920 includes a non-transitory computer-readable storage medium. The memory 920 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , the instruction etc. that are used to realize above-mentioned each method embodiment, this operating system can be Andrews (Android) system (comprising the system based on the depth development of Android system), the IOS system developed by Apple Inc. (comprising the system based on the depth development of IOS system) or other systems. The storage data area can also store data created by the computer device 900 during use (such as phone book, audio and video data, chat record data) and the like.

屏幕930可以为触摸显示屏,该触摸显示屏用于接收用户使用手指、触摸笔等任何适合的物体在其上或附近的触摸操作,以及显示各个应用程序的用户界面。触摸显示屏通常设置在计算机设备900的前面板。触摸显示屏可被设计成为全面屏、曲面屏或异型屏。触摸显示屏还可被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合,本申请实施例对此不加以限定。The screen 930 may be a touch display screen, which is used for receiving user's touch operation on or near it with any suitable object such as a finger or a touch pen, and displaying user interfaces of various application programs. The touch display screen is usually provided on the front panel of the computer device 900 . Touch screens can be designed as full screens, curved screens or special-shaped screens. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment of the present application.

本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的WiFi热点接入方法。The embodiment of the present application also provides a computer-readable medium, the computer-readable medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to realize the WiFi hotspot connection described in the above embodiments. input method.

本申请实施例还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的WiFi热点接入方法。The embodiment of the present application also provides a computer program product, the computer program product stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the WiFi hotspot access method described in the above embodiments .

本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the foregoing one or more examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.

以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (16)

1.一种无线保真WiFi热点接入方法,其特征在于,所述方法用于第一设备,所述方法包括:1. A wireless fidelity WiFi hotspot access method, characterized in that, the method is used for the first device, and the method comprises: 接收各个附近设备广播的蓝牙广播信息;Receive Bluetooth broadcast information broadcast by each nearby device; 若所述蓝牙广播信息中包含预设字段,则将所述附近设备确定为候选设备,所述预设字段用于指示具备WiFi热点功能,所述候选设备的所述WiFi热点功能处于开启状态或关闭状态,在开启所述WiFi热点功能的情况下,所述候选设备创建WiFi热点,并能够为接入自身WiFi热点的设备提供互联网访问服务;If the Bluetooth broadcast information includes a preset field, then determine the nearby device as a candidate device, the preset field is used to indicate that it has a WiFi hotspot function, and the WiFi hotspot function of the candidate device is turned on or Closed state, when the WiFi hotspot function is turned on, the candidate device creates a WiFi hotspot, and can provide Internet access services for devices connected to its own WiFi hotspot; 从所述蓝牙广播信息中获取所述候选设备的所述设备标识,并将所述设备标识显示在WiFi列表中;Obtaining the device identification of the candidate device from the Bluetooth broadcast information, and displaying the device identification in a WiFi list; 当接收到对所述WiFi列表中目标设备标识的选择信号时,将所述目标设备标识对应的所述候选设备确定为第二设备;When receiving a selection signal for a target device identifier in the WiFi list, determining the candidate device corresponding to the target device identifier as a second device; 向所述第二设备发送WiFi热点连接请求;Sending a WiFi hotspot connection request to the second device; 当接收到所述第二设备发送的连接请求响应时,根据所述连接请求响应中包含的热点连接信息接入所述第二设备创建的WiFi热点。When receiving the connection request response sent by the second device, access the WiFi hotspot created by the second device according to the hotspot connection information included in the connection request response. 2.根据权利要求1所述的方法,其特征在于,所述根据所述蓝牙广播信息,在所述WiFi列表中显示至少一个所述候选设备的所述设备标识,还包括:2. The method according to claim 1, wherein the displaying the device identification of at least one candidate device in the WiFi list according to the Bluetooth broadcast information further comprises: 若所述候选设备广播的所述蓝牙广播信息中包含账号信息,且所述账号信息与所述第一设备登陆的第一账号相同,则在所述设备标识对应的区域显示预设标识,所述预设标识用于指示所述候选设备与所述第一设备登陆同一账号。If the bluetooth broadcast information broadcast by the candidate device includes account information, and the account information is the same as the first account logged in by the first device, then a preset identifier is displayed in the area corresponding to the device identifier, so The preset identifier is used to indicate that the candidate device is logged in with the same account as the first device. 3.根据权利要求1或2所述的方法,其特征在于,所述向所述第二设备发送WiFi热点连接请求,包括:3. The method according to claim 1 or 2, wherein the sending a WiFi hotspot connection request to the second device comprises: 获取所述第一设备登陆的第一账号;Obtaining a first account logged in by the first device; 向所述第二设备发送包含所述第一账号的所述WiFi热点连接请求,其中,所述第二设备用于在所述第二设备登陆的第二账号与所述第一账号相同时,向所述第一设备发送所述连接请求响应;或者,所述第二设备用于在所述第二账号与所述第一账号不同,且接收到请求响应操作时,向所述第一设备发送所述连接请求响应。Sending the WiFi hotspot connection request including the first account to the second device, wherein the second device is configured to, when the second account logged in by the second device is the same as the first account, Sending the connection request response to the first device; or, the second device is configured to send the connection request response to the first device when the second account is different from the first account and a request response operation is received. Send the connection request response. 4.一种WiFi热点接入方法,其特征在于,所述方法用于第二设备,所述方法包括:4. A WiFi hotspot access method, characterized in that, the method is used for a second device, and the method comprises: 广播蓝牙广播信息,所述蓝牙广播信息中包含预设字段以及设备标识,所述预设字段用于指示具备WiFi热点功能;Broadcasting bluetooth broadcast information, the bluetooth broadcast information includes a preset field and a device identifier, and the preset field is used to indicate that it has a WiFi hotspot function; 接收第一设备发送的WiFi热点连接请求,所述WiFi热点连接请求是所述第一设备接收到对WiFi列表中目标设备标识的选择信号时发送的,所述WiFi列表中包含至少一个候选设备的设备标识,所述候选设备是蓝牙广播信息中包含所述预设字段的附近设备,所述候选设备的所述WiFi热点功能处于开启状态或关闭状态,在开启所述WiFi热点功能的情况下,所述候选设备创建WiFi热点,并能够为接入自身WiFi热点的设备提供互联网访问服务;Receive a WiFi hotspot connection request sent by the first device, the WiFi hotspot connection request is sent when the first device receives a selection signal for the target device identifier in the WiFi list, and the WiFi list contains at least one candidate device Device identification, the candidate device is a nearby device that includes the preset field in the Bluetooth broadcast information, the WiFi hotspot function of the candidate device is on or off, and when the WiFi hotspot function is turned on, The candidate device creates a WiFi hotspot, and can provide Internet access services for devices that access its own WiFi hotspot; 根据所述WiFi热点连接请求生成连接请求响应,所述连接请求响应中包含热点连接信息;Generate a connection request response according to the WiFi hotspot connection request, and include hotspot connection information in the connection request response; 向所述第一设备发送所述连接请求响应,所述第一设备用于根据所述热点连接信息接入所述第二设备创建的WiFi热点。Sending the connection request response to the first device, where the first device is used to access the WiFi hotspot created by the second device according to the hotspot connection information. 5.根据权利要求4所述的方法,其特征在于,所述蓝牙广播信息中还包含账号信息,所述账号信息用于指示所述第二设备登陆的第二账号,所述第一设备用于在登陆的第一账号与所述第二账号相同时,在所述WiFi列表中所述第二设备对应的区域显示预设标识,所述预设标识用于指示所述第二设备与所述第一设备登陆同一账号。5. The method according to claim 4, wherein the Bluetooth broadcast information further includes account information, the account information is used to indicate the second account logged in by the second device, and the first device uses When the first account logged in is the same as the second account, a preset logo is displayed in the area corresponding to the second device in the WiFi list, and the preset logo is used to indicate that the second device is the same as the second device. The above-mentioned first device logs in the same account. 6.根据权利要求4或5所述的方法,其特征在于,所述根据所述WiFi热点连接请求生成连接请求响应,包括:6. The method according to claim 4 or 5, wherein the generating a connection request response according to the WiFi hotspot connection request comprises: 若所述WiFi热点连接请求中包含所述第一设备登陆的第一账号,且所述第二设备登陆的第二账号与所述第一账号相同,则获取所述WiFi热点的所述热点连接信息;If the WiFi hotspot connection request includes the first account logged in by the first device, and the second account logged in by the second device is the same as the first account, then obtain the hotspot connection of the WiFi hotspot information; 根据所述热点连接信息生成所述连接请求响应。generating the connection request response according to the hotspot connection information. 7.根据权利要求4或5所述的方法,其特征在于,所述根据所述WiFi热点连接请求生成连接请求响应,包括:7. The method according to claim 4 or 5, wherein the generating a connection request response according to the WiFi hotspot connection request comprises: 若所述WiFi热点连接请求中包含所述第一设备登陆的第一账号,且所述第二设备登陆的第二账号与所述第一账号不同,则显示请求响应确认控件;If the WiFi hotspot connection request includes the first account logged in by the first device, and the second account logged in by the second device is different from the first account, a request response confirmation control is displayed; 若接收到对所述请求响应确认控件的触发操作,则获取所述WiFi热点的所述热点连接信息;If a trigger operation on the request response confirmation control is received, then obtain the hotspot connection information of the WiFi hotspot; 根据所述热点连接信息生成所述连接请求响应。generating the connection request response according to the hotspot connection information. 8.一种WiFi热点接入装置,其特征在于,所述装置用于第一设备,所述装置包括:8. A WiFi hotspot access device, characterized in that the device is used for the first device, and the device comprises: 显示模块,被配置为接收各个附近设备广播的蓝牙广播信息;A display module configured to receive Bluetooth broadcast information broadcast by each nearby device; 所述显示模块,还被配置为若所述蓝牙广播信息中包含预设字段,则将所述附近设备确定为候选设备,所述预设字段用于指示具备WiFi热点功能,所述候选设备的所述WiFi热点功能处于开启状态或关闭状态,在开启所述WiFi热点功能的情况下,所述候选设备创建WiFi热点,并能够为接入自身WiFi热点的设备提供互联网访问服务;The display module is also configured to determine the nearby device as a candidate device if the Bluetooth broadcast information includes a preset field, the preset field is used to indicate that it has a WiFi hotspot function, and the candidate device's The WiFi hotspot function is on or off, and when the WiFi hotspot function is turned on, the candidate device creates a WiFi hotspot, and can provide Internet access services for devices accessing its own WiFi hotspot; 所述显示模块,还被配置为从所述蓝牙广播信息中获取所述候选设备的所述设备标识,并将所述设备标识显示在WiFi列表中;The display module is further configured to obtain the device identifier of the candidate device from the Bluetooth broadcast information, and display the device identifier in a WiFi list; 选择模块,被配置为当接收到对所述WiFi列表中目标设备标识的选择信号时,将所述目标设备标识对应的所述候选设备确定为第二设备;A selection module configured to determine the candidate device corresponding to the target device identifier as a second device when receiving a selection signal for the target device identifier in the WiFi list; 请求发送模块,被配置为向所述第二设备发送WiFi热点连接请求;A request sending module configured to send a WiFi hotspot connection request to the second device; 响应接收模块,被配置为当接收到所述第二设备发送的连接请求响应时,根据所述连接请求响应中包含的热点连接信息接入所述第二设备创建的WiFi热点。The response receiving module is configured to, when receiving the connection request response sent by the second device, access the WiFi hotspot created by the second device according to the hotspot connection information contained in the connection request response. 9.根据权利要求8所述的装置,其特征在于,所述显示子模块,被配置为:9. The device according to claim 8, wherein the display sub-module is configured to: 若所述候选设备广播的所述蓝牙广播信息中包含账号信息,且所述账号信息与所述第一设备登陆的第一账号相同,则在所述设备标识对应的区域显示预设标识,所述预设标识用于指示所述候选设备与所述第一设备登陆同一账号。If the bluetooth broadcast information broadcast by the candidate device includes account information, and the account information is the same as the first account logged in by the first device, then a preset identifier is displayed in the area corresponding to the device identifier, so The preset identifier is used to indicate that the candidate device is logged in with the same account as the first device. 10.根据权利要求8或9所述的装置,其特征在于,所述请求发送模块,包括:10. The device according to claim 8 or 9, wherein the request sending module includes: 第一获取子模块,被配置为获取所述第一设备登陆的第一账号;The first obtaining submodule is configured to obtain the first account logged in by the first device; 请求发送子模块,被配置为向所述第二设备发送包含所述第一账号的所述WiFi热点连接请求,其中,所述第二设备用于在所述第二设备登陆的第二账号与所述第一账号相同时,向所述第一设备发送所述连接请求响应;或者,所述第二设备用于在所述第二账号与所述第一账号不同,且接收到请求响应操作时,向所述第一设备发送所述连接请求响应。The request sending submodule is configured to send the WiFi hotspot connection request including the first account to the second device, wherein the second account used by the second device to log in to the second device is the same as When the first account is the same, send the connection request response to the first device; or, the second device is configured to operate when the second account is different from the first account and receives the request response , sending the connection request response to the first device. 11.一种WiFi热点接入装置,其特征在于,所述装置用于第二设备,所述装置包括:11. A WiFi hotspot access device, characterized in that said device is used for a second device, said device comprising: 蓝牙广播模块,被配置为广播蓝牙广播信息,所述蓝牙广播信息中包含预设字段以及设备标识,所述预设字段用于指示具备WiFi热点功能;The bluetooth broadcast module is configured to broadcast bluetooth broadcast information, and the bluetooth broadcast information includes a preset field and a device identification, and the preset field is used to indicate that there is a WiFi hotspot function; 请求接收模块,被配置为接收第一设备发送的WiFi热点连接请求,所述WiFi热点连接请求是所述第一设备接收到对WiFi列表中目标设备标识的选择信号时发送的,所述WiFi列表中包含至少一个候选设备的设备标识,所述候选设备是蓝牙广播信息中包含所述预设字段的附近设备,所述候选设备的所述WiFi热点功能处于开启状态或关闭状态,在开启所述WiFi热点功能的情况下,所述候选设备创建WiFi热点,并能够为接入自身WiFi热点的设备提供互联网访问服务;The request receiving module is configured to receive a WiFi hotspot connection request sent by the first device, the WiFi hotspot connection request is sent when the first device receives a selection signal for the target device identifier in the WiFi list, the WiFi list contains at least one device identifier of a candidate device, the candidate device is a nearby device that includes the preset field in the Bluetooth broadcast information, the WiFi hotspot function of the candidate device is on or off, and when the In the case of the WiFi hotspot function, the candidate device creates a WiFi hotspot, and can provide Internet access services for devices connected to its own WiFi hotspot; 响应生成模块,被配置根据所述WiFi热点连接请求生成连接请求响应,所述连接请求响应中包含热点连接信息;The response generation module is configured to generate a connection request response according to the WiFi hotspot connection request, and the connection request response includes hotspot connection information; 响应发送模块,被配置为向所述第一设备发送所述连接请求响应,所述第一设备用于根据所述热点连接信息接入所述第二设备创建的WiFi热点。A response sending module configured to send the connection request response to the first device, where the first device is used to access the WiFi hotspot created by the second device according to the hotspot connection information. 12.根据权利要求11所述的装置,其特征在于,所述蓝牙广播信息中还包含账号信息,所述账号信息用于指示所述第二设备登陆的第二账号,所述第一设备用于在登陆的第一账号与所述第二账号相同时,在所述WiFi列表中所述第二设备对应的区域显示预设标识,所述预设标识用于指示所述第二设备与所述第一设备登陆同一账号。12. The device according to claim 11, wherein the Bluetooth broadcast information further includes account information, the account information is used to indicate the second account logged in by the second device, and the first device uses When the first account logged in is the same as the second account, a preset logo is displayed in the area corresponding to the second device in the WiFi list, and the preset logo is used to indicate that the second device is the same as the second device. The above-mentioned first device logs in the same account. 13.根据权利要求11或12所述的装置,其特征在于,所述响应生成模块,包括:13. The device according to claim 11 or 12, wherein the response generating module comprises: 第一信息获取子模块,被配置为若所述WiFi热点连接请求中包含所述第一设备登陆的第一账号,且所述第二设备登陆的第二账号与所述第一账号相同,则获取所述WiFi热点的所述热点连接信息;The first information acquisition submodule is configured to if the WiFi hotspot connection request includes the first account logged in by the first device, and the second account logged in by the second device is the same as the first account, then Obtain the hotspot connection information of the WiFi hotspot; 第一响应生成子模块,被配置为根据所述热点连接信息生成所述连接请求响应。The first response generating submodule is configured to generate the connection request response according to the hotspot connection information. 14.根据权利要求11或12所述的装置,其特征在于,所述响应生成模块,包括:14. The device according to claim 11 or 12, wherein the response generation module comprises: 控件显示子模块,被配置为若所述WiFi热点连接请求中包含所述第一设备登陆的第一账号,且所述第二设备登陆的第二账号与所述第一账号不同,则显示请求响应确认控件;The control display submodule is configured to display the request if the WiFi hotspot connection request includes the first account logged in by the first device, and the second account logged in by the second device is different from the first account Response confirmation control; 第二信息获取子模块,被配置为若接收到对所述请求响应确认控件的触发操作,则获取所述WiFi热点的所述热点连接信息;The second information acquisition submodule is configured to acquire the hotspot connection information of the WiFi hotspot if a trigger operation on the request response confirmation control is received; 第二响应生成子模块,被配置为根据所述热点连接信息生成所述连接请求响应。The second response generating submodule is configured to generate the connection request response according to the hotspot connection information. 15.一种计算机设备,其特征在于,所述计算机设备包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如权利要求1至3任一所述的WiFi热点接入方法,或,实现如权利要求4至7任一所述的WiFi热点接入方法。15. A computer device, characterized in that, the computer device comprises a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement claims 1 to 1. 3. The WiFi hotspot access method described in any one of claims 4 to 7, or to implement the WiFi hotspot access method described in any one of claims 4 to 7. 16.一种计算机可读存储介质,其特征在于,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如权利要求1至3任一所述的WiFi热点接入方法,或,实现如权利要求4至7任一所述的WiFi热点接入方法。16. A computer-readable storage medium, characterized in that the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to realize the WiFi hotspot according to any one of claims 1 to 3 access method, or, realize the WiFi hotspot access method as described in any one of claims 4 to 7.
CN201910418616.3A 2019-05-20 2019-05-20 WiFi hotspot access method, device, equipment and storage medium Active CN111970676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910418616.3A CN111970676B (en) 2019-05-20 2019-05-20 WiFi hotspot access method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910418616.3A CN111970676B (en) 2019-05-20 2019-05-20 WiFi hotspot access method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111970676A CN111970676A (en) 2020-11-20
CN111970676B true CN111970676B (en) 2023-07-18

Family

ID=73358249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910418616.3A Active CN111970676B (en) 2019-05-20 2019-05-20 WiFi hotspot access method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111970676B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929862B (en) * 2021-02-04 2023-04-25 青岛海信传媒网络技术有限公司 Bluetooth Beacon protocol-based device connection method
CN113518408A (en) * 2021-04-19 2021-10-19 Tcl通讯(宁波)有限公司 WiFi single-channel scanning method and device, terminal equipment and storage medium
CN117597981A (en) * 2022-06-09 2024-02-23 北京小米移动软件有限公司 A method, device and storage medium for establishing communication connection
CN119031453B (en) * 2023-05-23 2025-12-12 荣耀终端股份有限公司 Network sharing methods and electronic devices
CN118474908B (en) * 2023-10-31 2025-08-29 荣耀终端股份有限公司 Method and electronic device for establishing Wi-Fi point-to-point P2P connection

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130115642A (en) * 2012-04-12 2013-10-22 엘지전자 주식회사 Mobile terminal and wi-fi aggregation method thereof
CN104363588A (en) * 2014-11-19 2015-02-18 贵州万臻时代通讯技术有限公司 Mobile terminal internet access control method and mobile terminal
WO2015154454A1 (en) * 2014-09-11 2015-10-15 中兴通讯股份有限公司 Wireless network connection method and device
WO2016101482A1 (en) * 2014-12-23 2016-06-30 小米科技有限责任公司 Connection method and device
WO2017185483A1 (en) * 2016-04-25 2017-11-02 中兴通讯股份有限公司 Broadcast frame sending method and access point determination method and apparatus
WO2018040621A1 (en) * 2016-08-29 2018-03-08 深圳市中兴微电子技术有限公司 Hotspot sharing method, terminal, system and computer storage medium
CN107864469A (en) * 2017-10-31 2018-03-30 青岛海信电器股份有限公司 Wireless connection method and equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203278811U (en) * 2012-08-16 2013-11-06 北京播思软件技术有限公司 A mobile terminal that utilizes NFC to transmit WIFI hotspot keys or certificates
US9055400B1 (en) * 2012-12-12 2015-06-09 Square, Inc. Detecting proximity using WiFi hotspots
CN106211273A (en) * 2015-04-30 2016-12-07 中兴通讯股份有限公司 The method of attachment of a kind of wifi hotspot and device
CN105188013A (en) * 2015-06-26 2015-12-23 北京锤子数码科技有限公司 Network hotspot sharing method, device and system
CN106028328A (en) * 2016-05-19 2016-10-12 徐美琴 NFC-based hotspot authentication method
CN107835523A (en) * 2016-11-16 2018-03-23 深圳平安讯科技术有限公司 A kind of method and terminal that WIFI hot spot is provided
CN108616547A (en) * 2016-12-02 2018-10-02 武汉斗鱼网络科技有限公司 A kind of method and device of transmission file
US12016064B2 (en) * 2016-12-09 2024-06-18 Huawei Technologies Co., Ltd. Method for establishing hotspot connection and terminal device
CN107968994A (en) * 2017-11-29 2018-04-27 北京小米移动软件有限公司 Method for building up, the apparatus and system of LAN
CN108134733A (en) * 2017-12-21 2018-06-08 广东小天才科技有限公司 Friend making method and system based on wearable device and wearable device
CN108712715B (en) * 2018-04-04 2020-08-21 天地融科技股份有限公司 Method for switching network by using Bluetooth hotspot

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130115642A (en) * 2012-04-12 2013-10-22 엘지전자 주식회사 Mobile terminal and wi-fi aggregation method thereof
WO2015154454A1 (en) * 2014-09-11 2015-10-15 中兴通讯股份有限公司 Wireless network connection method and device
CN104363588A (en) * 2014-11-19 2015-02-18 贵州万臻时代通讯技术有限公司 Mobile terminal internet access control method and mobile terminal
WO2016101482A1 (en) * 2014-12-23 2016-06-30 小米科技有限责任公司 Connection method and device
WO2017185483A1 (en) * 2016-04-25 2017-11-02 中兴通讯股份有限公司 Broadcast frame sending method and access point determination method and apparatus
WO2018040621A1 (en) * 2016-08-29 2018-03-08 深圳市中兴微电子技术有限公司 Hotspot sharing method, terminal, system and computer storage medium
CN107864469A (en) * 2017-10-31 2018-03-30 青岛海信电器股份有限公司 Wireless connection method and equipment
WO2019085351A1 (en) * 2017-10-31 2019-05-09 青岛海信电器股份有限公司 Wireless connection method and device

Also Published As

Publication number Publication date
CN111970676A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN111970676B (en) WiFi hotspot access method, device, equipment and storage medium
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
US11934505B2 (en) Information content viewing method and terminal
US10154529B2 (en) Method and apparatus for connecting peripheral devices
CN105933899B (en) The cut-in method and device of wireless access point
KR101698094B1 (en) Apparatus and method for providing service corresponding to a service zone
JP6228676B2 (en) Connection state prompting method and apparatus
CN113169992B (en) Equipment network distribution method and device, electronic equipment and storage medium
CN111459433A (en) Screen transmission method, equipment and storage medium
CN112312586B (en) Method, device, equipment and storage medium for establishing WiFi direct connection
US9615195B2 (en) Media file sharing method and system
JP7601478B2 (en) Control method and apparatus, and electronic device
JP2018517186A (en) Business process execution method, apparatus, system, program, and recording medium
CN106027631B (en) Data transmission method and device
CN106445609A (en) Automatic updating method of application program and mobile terminal
CN108810123A (en) The method and apparatus for opening mobile cellular network service
CN106713418A (en) Reset result confirmation method and apparatus, server and mobile terminal
US20250023979A1 (en) Communication method and electronic device
CN109522131A (en) Resource allocation method, device and equipment
CN111465076A (en) Connection method and device of wireless local area network and computer storage medium
WO2024234837A1 (en) Login method, electronic device, and storage medium
CN105959952A (en) Network security access method and device
CN105516972A (en) Network connection method and device
WO2019179476A1 (en) Wireless access point related information providing and acquisition method
US20240089231A1 (en) Chat interface creation method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant