Method, device and electronic device for establishing network connection
By using the intermediate AP to obtain the configuration information of the main AP under the WPA3 encryption method, WPS or one-click quick connection is realized, which solves the problem of users being unable to access without password, improves the user experience and maintains high security.
Patent Information
- Application Number
- CN202010527105.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-06-10
AI Technical Summary
In WPA3 encryption mode, users cannot achieve password-free access, which affects the user experience.
By enabling the STA to obtain the configuration information of the main AP from another AP with a different encryption method from the main AP, and establishing a network connection with the main AP based on the configuration information, the intermediate AP can be used to perform WPS or one-click quick connection to achieve password-free access.
Users can not only enjoy the high security of WPA3, but also achieve password-free access, improving user experience.
Smart Images

Figure CN113852953B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology and terminals, and in particular to a method, device and electronic device for establishing a network connection. Background Art
[0002] The Wireless-Fidelity (Wi-Fi) Alliance has released the more secure third-generation Wi-Fi Protected Access 3 (WPA3) standard. WPA3 uses the Simultaneous Authentication of Equals (SAE) key establishment protocol, which can resist offline dictionary password cracking attacks and is the mainstream Wi-Fi encryption method in the future.
[0003] However, when the encryption method of the access point (AP) is WPA3, the user needs to manually enter the password when establishing a connection between the station (STA) and the access point, that is, password-free access cannot be achieved, affecting the user experience. Summary of the invention
[0004] The present application provides a method and device for establishing a network connection, which can solve the problem that users cannot access the network without a password under the WPA3 encryption mode.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a method for establishing a network connection is provided, comprising: a station sends a connection request message to an intermediate access point, the connection request message requests to establish a network connection with a target access point, the encryption mode of the target access point is WPA3, and the encryption mode of the intermediate access point is different from the encryption mode of the target access point; the station receives configuration information of the target access point sent by the intermediate access point, the configuration information is used for the station to establish a network connection with the target access point; the station establishes a network connection with the target access point according to the configuration information.
[0007] Based on the above technical solution, when the encryption method of the main AP is WPA3, the STA obtains the configuration information of the main AP from another AP with a different encryption method from the main AP, and then establishes a network connection with the main AP based on the configuration information. In this way, users can enjoy the high security of WPA3 and achieve password-free access, thereby improving the user experience.
[0008] In combination with the first aspect, in some implementations of the first aspect, the configuration information includes a service set identifier SSID, a password, and an encryption method of the target access point.
[0009] In combination with the first aspect and the above implementation manner, the intermediate access point and the target access point are distributed on the same router; or, the intermediate access point and the target access point are distributed on different routers having a network connection relationship.
[0010] In combination with the first aspect and the above-mentioned implementation method, the encryption method of the intermediate access point is WPA2.
[0011] In combination with the first aspect and the above implementation, the intermediate access point supports Wi-Fi Protected Setup (WPS) connection; or, the intermediate access point supports one-key quick connection.
[0012] It should be noted that the “one-click quick connection” mentioned in the embodiments of the present application means that when the user establishes a network connection with the router, he only needs to press the WLAN protected setup button on the router, and there is no need to press the WPS connection button in the WLAN setup interface displayed on the mobile phone before or after pressing the WLAN protected setup button, or at the same time as pressing the WLAN protected setup button.
[0013] Based on the above technical solution, when the encryption method of the main AP is WPA3, by starting the WPS connection on the intermediate AP, the mobile phone and the intermediate AP can exchange information, obtain the configuration information of the main AP from the intermediate AP, and then establish a network connection with the main AP based on the configuration information. When the user uses the mobile phone to establish a network connection with the main AP, he can enjoy the high security of WPA3 and achieve password-free access through WPS.
[0014] Based on the above technical solution, when the encryption method of the main AP is WPA3, by starting the WPS connection on the intermediate AP, the mobile phone and the intermediate AP can exchange information, obtain the configuration information of the main AP from the intermediate AP, and then establish a network connection with the main AP based on the configuration information. When the user uses the mobile phone to establish a network connection with the main AP, he can enjoy the high security of WPA3 and achieve password-free access through a one-click quick connection.
[0015] In a second aspect, a method for establishing a network connection is provided, characterized in that it includes: an intermediate access point receives a connection request message sent by a site, the connection request message requests to establish a network connection with a target access point, the encryption mode of the target access point is WPA3, and the encryption mode of the intermediate access point is different from the encryption mode of the target access point; the intermediate access point generates configuration information of the target access point according to the connection request message, and the configuration information is used for the site to establish a network connection with the target access point; the intermediate access point sends the configuration information to the site.
[0016] Based on the above technical solution, when the encryption method of the main AP is WPA3, the STA obtains the configuration information of the main AP from another AP with a different encryption method from the main AP, and then establishes a network connection with the main AP based on the configuration information. In this way, users can enjoy the high security of WPA3 and achieve password-free access, thereby improving the user experience.
[0017] In combination with the second aspect, in some implementations of the second aspect, the configuration information includes a service set identifier SSID, a password, and an encryption method of the target access point.
[0018] In combination with the second aspect and the above implementation manner, the intermediate access point and the target access point are distributed on the same router; or, the intermediate access point and the target access point are distributed on different routers having a network connection relationship.
[0019] In combination with the second aspect and the above implementation, the encryption method of the intermediate access point is WPA2.
[0020] In combination with the second aspect and the above implementation, the intermediate access point supports WPS connection; or, the intermediate access point supports one-key quick connection.
[0021] Based on the above technical solution, when the encryption method of the main AP is WPA3, by starting the WPS connection on the intermediate AP, the mobile phone and the intermediate AP can exchange information, obtain the configuration information of the main AP from the intermediate AP, and then establish a network connection with the main AP based on the configuration information. When the user uses the mobile phone to establish a network connection with the main AP, he can enjoy the high security of WPA3 and achieve password-free access through WPS.
[0022] Based on the above technical solution, when the encryption method of the main AP is WPA3, by starting the WPS connection on the intermediate AP, the mobile phone and the intermediate AP can exchange information, obtain the configuration information of the main AP from the intermediate AP, and then establish a network connection with the main AP based on the configuration information. When the user uses the mobile phone to establish a network connection with the main AP, he can enjoy the high security of WPA3 and achieve password-free access through a one-click quick connection.
[0023] In a third aspect, the present application provides an electronic device, comprising: a processor, a memory and a communication interface, the processor, the memory and the communication interface communicating through a bus; the memory being used to store instructions; the communication interface being used to send a connection request message to an intermediate access point, the connection request message requesting to establish a network connection with a target access point, the encryption method of the target access point being WPA3, and the encryption method of the intermediate access point being different from the encryption method of the target access point; the communication interface being further used to receive configuration information of the target access point sent by the intermediate access point, the configuration information being used for the electronic device to establish a network connection with the target access point; the processor being used to establish a network connection with the target access point according to the configuration information.
[0024] In combination with the third aspect, in some implementations of the third aspect, the configuration information includes a service set identifier SSID, a password, and an encryption method of the target access point.
[0025] In combination with the third aspect and the above implementation, the intermediate access point and the target access point are distributed on the same router; or, the intermediate access point and the target access point are distributed on different routers having a network connection relationship.
[0026] In combination with the third aspect and the above-mentioned implementation method, the encryption method of the intermediate access point is WPA2.
[0027] In combination with the third aspect and the above implementation, the intermediate access point supports WPS connection; or, the intermediate access point supports one-key quick connection.
[0028] In a fourth aspect, the present application provides an electronic device, comprising: a processor, a memory and a communication interface, the processor, the memory and the communication interface communicating through a bus; the memory being used to store instructions; the communication interface being used to receive a connection request message sent by a site, the connection request message requesting to establish a network connection with a target access point, the encryption method of the target access point being WPA3, and the encryption method of the electronic device being different from the encryption method of the target access point; the processor being used to generate configuration information of the target access point according to the connection request message, the configuration information being used for the site to establish a network connection with the target access point; the communication interface being further used to send the configuration information to the site.
[0029] In combination with the fourth aspect, in some implementations of the fourth aspect, the configuration information includes a service set identifier SSID, a password, and an encryption method of the target access point.
[0030] In combination with the fourth aspect and the above implementation manner, the electronic device and the target access point are distributed on the same router; or, the electronic device and the target access point are distributed on different routers that have a network connection relationship.
[0031] In combination with the fourth aspect and the above-mentioned implementation method, the encryption method of the electronic device is WPA2.
[0032] In combination with the fourth aspect and the above-mentioned implementation method, the electronic device supports WPS connection; or, the electronic device supports one-key quick connection.
[0033] In a fifth aspect, the present application provides a device, which is included in an electronic device, and the device has the function of implementing the behavior of the electronic device in the third aspect and any possible implementation of the third aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a transceiver module or unit, a processing module or unit, etc.
[0034] In a sixth aspect, the present application provides a device, which is included in an electronic device, and the device has the function of implementing the electronic device behavior in the fourth aspect and any possible implementation of the fourth aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a transceiver module or unit, a processing module or unit, etc.
[0035] In a seventh aspect, the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method for establishing a network connection in the above-mentioned first aspect and any possible implementation of the first aspect.
[0036] In an eighth aspect, the present application provides a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method for establishing a network connection according to the second aspect and any possible implementation of the second aspect.
[0037] In a ninth aspect, the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method for establishing a network connection in the above-mentioned first aspect and any possible implementation of the first aspect.
[0038] In a tenth aspect, the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method for establishing a network connection in the above-mentioned second aspect and any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of the architecture of a network connection system provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of the connection process for network connection based on DPP;
[0041] Figure 3 A schematic diagram of an interactive process of a method for establishing a network connection provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of a graphical user interface for establishing a network connection provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of another graphical user interface for establishing a network connection provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of a device for establishing a network connection provided in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of the structure of another device for establishing a network connection provided in an embodiment of the present application;
[0046] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0047] Fig. 9 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0049] Figure 1 FIG. 1 shows a schematic diagram of the architecture of a network connection system 100 applicable to the present application. Figure 1As shown, in the network connection system 100, at least one STA and a network device may be included, for example, STA1, STA2, STA3, STA4, etc. Exemplarily, the STA may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other electronic devices with network connection functions, and the network device may be a router, and each router may include multiple APs.
[0050] It should be noted that Figure 1 Only one network device is shown in the system 100. In a specific implementation, the system 100 may include two or more network devices, which is not limited in this application. When there is only one router in the system 100, the STA usually establishes a network connection with the main AP on the router; when there are two or more routers in the system 100, there is a main router among the two or more routers, and other routers are connected to the main router. The STA usually establishes a network connection with the main AP on the main router.
[0051] Currently, if the encryption method of the AP is WPA3, the user needs to manually enter the password when establishing a connection between the station (STA) and the access point, that is, password-free access cannot be achieved, affecting the user experience
[0052] In a possible implementation, if the encryption mode of the AP is WPA3, the user can achieve password-free access with the AP based on the Device Provisioning Protocol (DPP). The following briefly introduces the method for achieving password-free access based on DPP and the AP with the encryption mode of WPA3.
[0053] like Figure 2 As shown in (a) in the figure, users can use their mobile phones to scan the QR code on the router and configure the AP with WPA3 encryption based on DPP to create a network. After the network is created, the mobile phone can be used to manage other STAs that need to establish a network connection with the AP, such as Figure 2 For example, when a tablet needs to establish a network connection with the AP, a mobile phone needs to be used to scan the QR code on the tablet so that the tablet can establish a network connection with the AP, and finally form the following Figure 2 The network connection relationship shown in (c).
[0054] However, not all STAs carry QR codes. When the AP's encryption method is WPA3, STAs that do not carry QR codes cannot access the AP based on DPP without a password. Therefore, DPP cannot be widely used in the field of password-free access.
[0055] In view of this, when the encryption method of the main AP is WPA3, in order to allow users to enjoy the high security of WPA3 and achieve password-free access, the present application proposes a method for establishing a network connection, by enabling the STA to obtain the configuration information of the main AP from another AP with a different encryption method from the main AP, and then establish a network connection with the main AP based on the configuration information, so that users can enjoy the high security of WPA3 and achieve password-free access, thereby improving the user experience.
[0056] Below Figure 1 Taking the system shown as an example, a method for establishing a network connection provided in an embodiment of the present application is described in detail.
[0057] Figure 3 FIG. 1 is a schematic diagram of an interactive process of a method for establishing a network connection provided in an embodiment of the present application. Figure 3 As shown, the method includes steps 210-260, and steps 210-260 are described in detail below.
[0058] Step 210: The STA sends a connection request message to the intermediate access point, wherein the connection request message requests to establish a network connection with the target access point, wherein the encryption mode of the target access point is WPA3, and the encryption mode of the intermediate access point is different from that of the target access point.
[0059] Step 220: The intermediate access point receives a connection request message sent by the station.
[0060] Step 230: The intermediate access point generates configuration information of the target access point according to the connection request message, where the configuration information is used for the station to establish a network connection with the target access point.
[0061] Step 240: The intermediate access point sends the configuration information of the target access point to the station.
[0062] Step 250: The STA receives the configuration information of the target access point sent by the intermediate access point.
[0063] Step 260: The STA establishes a network connection with the target access point according to the configuration information.
[0064] It should be noted that, in order to facilitate the description of the solution, the solution will be described in detail below by taking the STA as a mobile phone, the target access point as the main AP of the router with which the mobile phone wants to establish a network connection (hereinafter referred to as the "main AP"), where the encryption method of the main AP is WPA3, and the intermediate access point is another AP on the router (hereinafter referred to as the "intermediate AP"), but this does not constitute a limitation on the solution.
[0065] The following describes the method for establishing a network connection provided in an embodiment of the present application in different scenarios.
[0066] In scenario 1, the encryption method of the main AP is WPA3, and users can access the AP without a password through WPS.
[0067] In step 210, when the user needs to access the main AP with WPA3 encryption mode without password, the user can click the WPS connection button in the WLAN setting interface 401 displayed on the mobile phone. The interface content is as follows: Figure 4 As shown in (a) of FIG. 1 , the mobile phone will then display interface 402, the interface content is as follows Figure 4 As shown in (b) in FIG. 4 , the user may press the WLAN protection setup button on the router according to the prompt of interface 402 .
[0068] It should be noted that in scenario 1, the network connection made by the mobile phone is non-directional. For example, assuming that there are multiple routers around the mobile phone, the user can choose to press the WLAN protected setup button on one of the routers. After that, the mobile phone will establish a network connection with the main AP on the router.
[0069] For example, the user selects a router closest to him / her from multiple routers to connect. The user can press the WLAN protected setup button on the router closest to him / her within a period of time (e.g., two minutes) after clicking the WPS connection button in the WLAN setting interface.
[0070] When the user presses the WLAN protected setup button on the router, the router may start a WPS connection mechanism on an intermediate AP that supports WPS connection. For example, the intermediate AP may be a backhaul AP on the router, and the encryption method may be WPA2.
[0071] When the WPS connection button in the WLAN setting interface is pressed, the mobile phone will detect whether there is an AP with the WPS connection mechanism activated nearby. For example, the mobile phone detects that the intermediate AP has activated the WPS connection mechanism, and the mobile phone sends a connection request message to the intermediate AP, which requests to establish a network connection with the main AP of the router. Accordingly, in step 220, the connection request message sent by the mobile phone will be received by the intermediate AP.
[0072] It should be noted that the above examples are only for illustrative purposes and do not constitute any limitation on the embodiments of the present application. In specific implementation, the WPS connection button in the WLAN setting interface and the WLAN protected setup button on the router can be pressed at the same time, or the WLAN protected setup button on the router can be pressed first, and then the WPS connection button in the WLAN setting interface can be pressed within a period of time (for example, two minutes). The embodiments of the present application do not impose any limitation on this.
[0073] In step 230, the intermediate AP generates configuration information of the main AP according to the connection request message, and the configuration information is used for the mobile phone to establish a network connection with the main AP. For example, the intermediate AP can negotiate with the mobile phone to obtain an encryption key, and the encryption key can be used to encrypt the SSID, encryption method and password of the main AP to generate configuration information.
[0074] In step 240, the intermediate AP sends the configuration information to the mobile phone so that the mobile phone can access the main AP without a password according to the configuration information. For example, the intermediate AP can fill the configuration information of the main AP into the M2 or M8 message (for a detailed introduction to the M2 message and the M8 message, please refer to the WPS standard protocol Wi-Fi_Simple_Configuration_Technical_Specification.pdf), and send the configuration information of the main AP to the mobile phone through the M2 or M8 message. Accordingly, in step 250, the mobile phone receives the configuration information of the main AP from the intermediate AP.
[0075] In step 260, after the mobile phone receives the configuration information of the master AP, it can access the master AP without a password according to the configuration information.
[0076] In an embodiment of the present application, when the encryption method of the main AP is WPA3, a WPS connection is started on the intermediate AP, so that the mobile phone and the intermediate AP exchange information, obtain the configuration information of the main AP from the intermediate AP, and then establish a network connection with the main AP based on the configuration information. When the user uses the mobile phone to establish a network connection with the main AP, he can enjoy the high security of WPA3 and achieve password-free access through WPS.
[0077] In scenario 2, the encryption method of the main AP is WPA3, and users can access the AP without a password through a one-click quick connection.
[0078] In an embodiment of the present application, when the encryption mode of the master AP is set to WPA3, the master AP can broadcast its support for one-key quick connection through a broadcast message.
[0079] When the user needs to establish a network connection with a primary AP whose encryption method is WPA3, the user can select a primary AP with an "H" icon in the available WLAN list interface 501 displayed on the mobile phone to connect to. The interface content is as follows: Figure 5 As shown in (a) in FIG. 1 . It should be noted that, when the master AP broadcasts that it supports one-key quick connection, an "H" icon may be displayed next to the SSID of the master AP in the available WLAN list interface 501, indicating that it supports one-key quick connection. It is worth mentioning that, in a specific implementation, other methods may be used to indicate that the master AP supports one-key quick connection, which is not limited in the embodiments of the present application.
[0080] For example, the user selects the main AP with SSID "HONOR-3103C047" from interface 501. When the user clicks the SSID of the main AP, the mobile phone will display interface 502, and the interface content is as follows: Figure 5 As shown in (b) in FIG. 5 , at this time, the user can choose to press the WLAN protection setting button on the router where the main AP is located according to the prompt of the interface 502 .
[0081] It should be noted that in scenario 2, there may be a situation where two or more mobile phones select the same primary AP at the same time, and only the mobile phone selected by the router can establish a network connection with the primary AP.
[0082] In step 210, when the user presses the WLAN protected setup button on the router, assuming that the router has chosen to establish a network connection with the mobile phone, the router can start the WPS connection mechanism on an intermediate AP that supports WPS connection. For example, the intermediate AP can be a backhaul AP on the router, and the encryption method can be WPA2.
[0083] After making a selection, the router will notify the mobile phone that it has been selected. The mobile phone will detect whether there is an AP around that has started the WPS connection mechanism. For example, the mobile phone detects that the intermediate AP has started the WPS connection mechanism, and the mobile phone sends a connection request message to the intermediate AP, which requests to establish a network connection with the main AP of the router. Accordingly, in step 220, the connection request message sent by the mobile phone will be received by the intermediate AP.
[0084] It should be noted that for the method of the router notifying the mobile phone that it has been selected, please refer to the existing one-key quick connection technology. For the sake of brevity, it will not be repeated here.
[0085] In step 230, the intermediate AP generates configuration information of the main AP according to the connection request message, and the configuration information is used for the mobile phone to establish a network connection with the main AP. For example, the intermediate AP can negotiate with the mobile phone to obtain an encryption key, and the encryption key can be used to encrypt the SSID, encryption method and password of the main AP to generate configuration information.
[0086] In step 240, the intermediate AP sends the configuration information to the mobile phone so that the mobile phone can establish a network connection with the main AP according to the configuration information. For example, the intermediate AP can fill the configuration information of the main AP into the M2 or M8 message and send the configuration information of the main AP to the mobile phone through the M2 or M8 message. Accordingly, in step 250, the mobile phone receives the configuration information of the main AP from the intermediate AP.
[0087] In step 260, after the mobile phone receives the configuration information of the master AP, it can access the master AP without a password according to the configuration information.
[0088] In an embodiment of the present application, when the encryption method of the main AP is WPA3, a WPS connection is started on the intermediate AP, so that the mobile phone and the intermediate AP exchange information, obtain the configuration information of the main AP from the intermediate AP, and then establish a network connection with the main AP based on the configuration information. When the user uses the mobile phone to establish a network connection with the main AP, he can enjoy the high security of WPA3 and achieve password-free access through a one-click quick connection.
[0089] It should be noted that Scenario 1 and Scenario 2 use the example of the main AP and the intermediate AP being distributed on one router to illustrate the method of establishing a network connection in the embodiment of the present application. In specific implementation, the main AP and the intermediate AP can also be distributed on different routers. For example, the main AP can be located on router #1, and the intermediate AP can be located on router #2. Router #1 is the main router, and router #2 is connected to router #1 as a slave router. Routers #1 and #2 only present one SSID to the outside, which is the SSID of router #1. When the main AP and the intermediate AP can also be distributed on different routers, the method for establishing a network connection between the mobile phone and the main AP can refer to the relevant description in the above method, and for the sake of brevity, it will not be repeated here.
[0090] It should also be noted that the above only takes establishing a network connection through WPS and establishing a network connection through a one-click quick connection as an exemplary explanation. In the specific implementation, other methods can also be used to achieve password-free access to the main AP with the encryption method of WPA3. As long as this method can enable users to enjoy the high security of WPA3 and achieve password-free access, the embodiments of the present application do not impose any limitations on this.
[0091] It should also be noted that the above only uses WPA2 as an example for the encryption method of the intermediate AP. In specific implementation, the encryption method of the intermediate AP can also be other encryption methods different from WPA3, and the embodiments of the present application do not limit this.
[0092] The above combination Figures 1 to 5The method for establishing a network connection provided in the embodiment of the present application is introduced. Figures 6 to 8 The device and electronic device for establishing a network connection provided in the embodiments of the present application are introduced.
[0093] Figure 6 A schematic structural diagram of a device 600 for establishing a network connection provided in an embodiment of the present application is shown. The device 600 includes a transceiver module 610 and a processing module 620 .
[0094] The transceiver module 610 is used to send a connection request message, wherein the connection request message requests to establish a network connection with a target access point, wherein the encryption method of the target access point is WPA3, and the encryption method of the intermediate access point is different from the encryption method of the target access point; the transceiver module 610 is also used to receive configuration information of the target access point sent by the intermediate access point, wherein the configuration information is used for the device to establish a network connection with the target access point; the processing module 620 is used to establish a network connection with the target access point according to the configuration information.
[0095] The configuration information includes the service set identifier SSID, password and encryption method of the target access point.
[0096] Optionally, the intermediate access point and the target access point are distributed on the same router; or, the intermediate access point and the target access point are distributed on different routers having a network connection relationship.
[0097] Optionally, the encryption method of the intermediate access point is WPA2.
[0098] Optionally, the intermediate access point supports WPS connection; or, the intermediate access point supports one-key quick connection.
[0099] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0100] The device for establishing a network connection provided in this embodiment is used to execute the above-mentioned method for establishing a network connection, and thus can achieve the same effect as the above-mentioned implementation method.
[0101] Figure 7 A schematic structural diagram of another device 700 for establishing a network connection provided in an embodiment of the present application is shown. The device 700 includes a transceiver module 710 and a processing module 720 .
[0102] The transceiver module 710 is used to receive a connection request message sent by a site, wherein the connection request message requests to establish a network connection with a target access point, wherein the encryption method of the target access point is WPA3, and the encryption method of the device is different from the encryption method of the target access point; the processing module 720 is used to generate configuration information of the target access point according to the connection request message, wherein the configuration information is used for the site to establish a network connection with the target access point; the transceiver module 710 is also used to send the configuration information to the site.
[0103] Optionally, the configuration information includes a service set identifier SSID, a password, and an encryption method of the target access point.
[0104] Optionally, the device and the target access point are distributed on the same router; or, the device and the target access point are distributed on different routers having a network connection relationship.
[0105] Optionally, the encryption method of the device is WPA2.
[0106] Optionally, the device supports WPS connection; or, the device supports one-key quick connection.
[0107] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0108] The device for establishing a network connection provided in this embodiment is used to execute the above-mentioned method for establishing a network connection, and thus can achieve the same effect as the above-mentioned implementation method.
[0109] Figure 8 A schematic structural diagram of an electronic device 800 provided in an embodiment of the present application is shown. The device 800 includes a processor 810, a memory 820 and a communication interface 830. The processor 810, the memory 820 and the communication interface 830 communicate through a bus 840.
[0110] The memory 820 is used to store instructions; the communication interface 830 is used to send a connection request message, the connection request message requests to establish a network connection with a target access point, the encryption method of the target access point is WPA3, and the encryption method of the intermediate access point is different from the encryption method of the target access point; the communication interface 830 is also used to receive configuration information of the target access point sent by the intermediate access point, the configuration information is used for the electronic device to establish a network connection with the target access point; the processor 810 is used to establish a network connection with the target access point according to the configuration information.
[0111] Optionally, the configuration information includes a service set identifier SSID, a password, and an encryption method of the target access point.
[0112] Optionally, the intermediate access point and the target access point are distributed on the same router; or, the intermediate access point and the target access point are distributed on different routers having a network connection relationship.
[0113] Optionally, the encryption method of the intermediate access point is WPA2.
[0114] Optionally, the intermediate access point supports WPS connection; or, the intermediate access point supports one-key quick connection.
[0115] The electronic device provided in this embodiment is used to execute the above method for establishing a network connection, and thus can achieve the same effect as the above implementation method.
[0116] Fig. 9 A schematic diagram of the structure of another electronic device 900 provided in an embodiment of the present application is shown. The device 900 includes a processor 910, a memory 920 and a communication interface 930. The processor 910, the memory 920 and the communication interface 930 communicate through a bus 940.
[0117] The memory 920 is used to store instructions; the communication interface 930 is used to receive a connection request message sent by a site, the connection request message requests to establish a network connection with a target access point, the encryption method of the target access point is WPA3, and the encryption method of the electronic device is different from the encryption method of the target access point; the processor 910 is used to generate configuration information of the target access point according to the connection request message, and the configuration information is used for the site to establish a network connection with the target access point; the communication interface is also used to send the configuration information to the site.
[0118] Optionally, the configuration information includes a service set identifier SSID, a password, and an encryption method of the target access point.
[0119] Optionally, the electronic device and the target access point are distributed on the same router; or, the electronic device and the target access point are distributed on different routers having a network connection relationship.
[0120] Optionally, the encryption method of the electronic device is WPA2.
[0121] Optionally, the electronic device supports WPS connection; or, the electronic device supports one-key quick connection.
[0122] The electronic device provided in this embodiment is used to execute the above method for establishing a network connection, and thus can achieve the same effect as the above implementation method.
[0123] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method for measuring temperature in the above-mentioned embodiment.
[0124] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the method for measuring temperature in the above-mentioned embodiment.
[0125] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the method for measuring temperature in the above-mentioned method embodiments.
[0126] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0127] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0131] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0132] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for establishing a network connection, characterized in that: The method is performed by a station and includes: Sending a connection request message to the intermediate access point, wherein the connection request message requests to establish a network connection with the target access point, wherein the encryption mode of the target access point is WPA3, and the encryption mode of the intermediate access point is different from the encryption mode of the target access point; receiving configuration information of the target access point sent by the intermediate access point, the configuration information being used by the station to establish a network connection with the target access point; the configuration information being generated by the intermediate access point after encrypting the service set identifier SSID, the password and the encryption method of the target access point using the encryption key obtained by negotiation between the intermediate access point and the station; A network connection is established with the target access point according to the configuration information.
2. The method according to claim 1, characterized in that The intermediate access point and the target access point are distributed on the same router; or, The intermediate access point and the target access point are distributed on different routers that have a network connection relationship.
3. The method according to claim 2, characterized in that The encryption method of the intermediate access point is WPA2.
4. The method according to any one of claims 1 to 3, characterized in that The intermediate access point supports WPS connection; or, The intermediate access point supports one-key quick connection.
5. A method for establishing a network connection, characterized in that: The method is performed by an intermediate access point and includes: A connection request message is received from a station, wherein the connection request message requests to establish a network connection with a target access point, wherein an encryption mode of the target access point is WPA3, and an encryption mode of the intermediate access point is different from an encryption mode of the target access point; According to the connection request message, configuration information of the target access point is generated, and the configuration information is used by the site to establish a network connection with the target access point; the configuration information is generated after the intermediate access point encrypts the service set identifier SSID, the password and the encryption method of the target access point by using the encryption key obtained by negotiation between the intermediate access point and the site; and the configuration information is sent to the site.
6. The method according to claim 5, characterized in that The intermediate access point and the target access point are distributed on the same router; or, The intermediate access point and the target access point are distributed on different routers that have a network connection relationship.
7. The method according to claim 6, characterized in that The encryption method of the intermediate access point is WPA2.
8. The method according to any one of claims 5 to 7, characterized in that The intermediate access point supports WPS connection; or, The intermediate access point supports one-key quick connection.
9. A device for establishing a network connection, characterized in that: include: A transceiver module, configured to send a connection request message to an intermediate access point, wherein the connection request message requests to establish a network connection with a target access point, wherein the encryption mode of the target access point is WPA3, and the encryption mode of the intermediate access point is different from the encryption mode of the target access point; The transceiver module is further used to receive configuration information of the target access point sent by the intermediate access point, the configuration information being used for the device to establish a network connection with the target access point; the configuration information is generated by the intermediate access point after encrypting the service set identifier SSID, password and encryption method of the target access point using the encryption key obtained by negotiation between the intermediate access point and the station; A processing module is used to establish a network connection with the target access point according to the configuration information.
10. The device according to claim 9, characterized in that The intermediate access point and the target access point are distributed on the same router; or, The intermediate access point and the target access point are distributed on different routers that have a network connection relationship.
11. The device according to claim 10, characterized in that The encryption method of the intermediate access point is WPA2.
12. The device according to any one of claims 9 to 11, characterized in that The intermediate access point supports WPS connection; or, The intermediate access point supports one-key quick connection.
13. A device for establishing a network connection, characterized in that: include: a transceiver module, configured to receive a connection request message sent by a station, wherein the connection request message requests to establish a network connection with a target access point, wherein the encryption mode of the target access point is WPA3, and the encryption mode of the device is different from the encryption mode of the target access point; a processing module, configured to generate configuration information of the target access point according to the connection request message, wherein the configuration information is used by the station to establish a network connection with the target access point; the configuration information is generated after the intermediate access point encrypts the service set identifier SSID, the password and the encryption method of the target access point using the encryption key obtained by negotiation between the intermediate access point and the station; The transceiver module is further used to send the configuration information to the site.
14. The device according to claim 13, characterized in that The device and the target access point are distributed on the same router; or, The device and the target access point are distributed on different routers that have a network connection relationship.
15. The device according to claim 14, characterized in that The encryption method of the device is WPA2.
16. The device according to any one of claims 13 to 15, characterized in that The device supports WPS connection; or, The device supports one-key quick connection.
17. An electronic device, characterized in that: include: A processor, a memory and a communication interface, wherein the processor, the memory and the communication interface communicate via a bus; The memory is used to store instructions; The communication interface is used to send a connection request message to the intermediate access point, wherein the connection request message requests to establish a network connection with the target access point, the encryption mode of the target access point is WPA3, and the encryption mode of the intermediate access point is different from the encryption mode of the target access point; The communication interface is further used to receive configuration information of the target access point sent by the intermediate access point, the configuration information is used for the electronic device to establish a network connection with the target access point; the configuration information is generated after the intermediate access point encrypts the service set identifier SSID, password and encryption method of the target access point using the encryption key obtained by negotiation between the intermediate access point and the site; the processor is used to establish a network connection with the target access point according to the configuration information.
18. The electronic device according to claim 17, characterized in that: The intermediate access point and the target access point are distributed on the same router; or, The intermediate access point and the target access point are distributed on different routers that have a network connection relationship.
19. The electronic device according to claim 18, characterized in that: The encryption method of the intermediate access point is WPA2.
20. The electronic device according to any one of claims 17 to 19, characterized in that: The intermediate access point supports WPS connection; or, The intermediate access point supports one-key quick connection.
21. An electronic device, characterized in that: include: A processor, a memory and a communication interface, wherein the processor, the memory and the communication interface communicate via a bus; The memory is used to store instructions; The communication interface is used to receive a connection request message sent by a station, wherein the connection request message requests to establish a network connection with a target access point, the encryption mode of the target access point is WPA3, and the encryption mode of the electronic device is different from the encryption mode of the target access point; The processor is configured to generate configuration information of the target access point according to the connection request message, wherein the configuration information is used by the station to establish a network connection with the target access point; the configuration information is generated after the intermediate access point encrypts the service set identifier SSID, the password and the encryption method of the target access point using the encryption key obtained by negotiation between the intermediate access point and the station; The communication interface is also used to send the configuration information to the site.
22. The electronic device according to claim 20, characterized in that: The electronic device and the target access point are distributed on the same router; or, The electronic device and the target access point are distributed on different routers that have a network connection relationship.
23. The electronic device according to claim 22, characterized in that: The encryption method of the electronic device is WPA2.
24. The electronic device according to any one of claims 21 to 23, characterized in that: The electronic device supports WPS connection; or, The electronic device supports one-key quick connection.
