CN113852953A - Method and device for establishing network connection and electronic equipment - Google Patents
Method and device for establishing network connection and electronic equipment Download PDFInfo
- Publication number
- CN113852953A CN113852953A CN202010527105.8A CN202010527105A CN113852953A CN 113852953 A CN113852953 A CN 113852953A CN 202010527105 A CN202010527105 A CN 202010527105A CN 113852953 A CN113852953 A CN 113852953A
- Authority
- CN
- China
- Prior art keywords
- access point
- target access
- network connection
- configuration information
- electronic device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 59
- 238000004891 communication Methods 0.000 claims description 26
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 10
- 230000003993 interaction Effects 0.000 description 8
- 238000003860 storage Methods 0.000 description 8
- 230000007246 mechanism Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- OVGWMUWIRHGGJP-WVDJAODQSA-N (z)-7-[(1s,3r,4r,5s)-3-[(e,3r)-3-hydroxyoct-1-enyl]-6-thiabicyclo[3.1.1]heptan-4-yl]hept-5-enoic acid Chemical compound OC(=O)CCC\C=C/C[C@@H]1[C@@H](/C=C/[C@H](O)CCCCC)C[C@@H]2S[C@H]1C2 OVGWMUWIRHGGJP-WVDJAODQSA-N 0.000 description 1
- 101100161473 Arabidopsis thaliana ABCB25 gene Proteins 0.000 description 1
- 101000988961 Escherichia coli Heat-stable enterotoxin A2 Proteins 0.000 description 1
- 101100395869 Escherichia coli sta3 gene Proteins 0.000 description 1
- 101000752249 Homo sapiens Rho guanine nucleotide exchange factor 3 Proteins 0.000 description 1
- 101100096893 Mus musculus Sult2a1 gene Proteins 0.000 description 1
- 102100021689 Rho guanine nucleotide exchange factor 3 Human genes 0.000 description 1
- 101150081243 STA1 gene Proteins 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000005336 cracking Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
When the encryption mode of a main AP is Wi-Fi Protected Access 3 (WPA 3), configuration information of the main AP is obtained by an STA from another AP different from the encryption mode of the main AP, and then network connection is established with the main AP based on the configuration information, so that a user can enjoy the high security of WPA3 and can realize the purpose of avoiding close Access.
Description
Technical Field
The present application relates to the field of electronic technologies and terminals, and in particular, to a method and an apparatus for establishing a network connection, and an electronic device.
Background
The Wi-Fi alliance has promulgated a more secure third generation Wi-Fi Access protection (WPA 3) standard. WPA3 adopts a key establishment protocol of Simultaneous Authentication of Equal (SAE) of peer entities, can resist attack of password cracking of offline dictionaries, and is a mainstream Wi-Fi encryption mode in the future.
However, when the encryption mode of the Access Point (AP) is WPA3, a user needs to manually input a password when establishing a connection between a Station (STA) and the Access Point, that is, the Access cannot be achieved without secret, which affects user experience.
Disclosure of Invention
The application provides a method and a device for establishing network connection, which can solve the problem that a user cannot perform the seal-free access under a WPA3 encryption mode.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, a method for establishing a network connection is provided, including: a station sends a connection request message to an intermediate access point, wherein the connection request message requests to establish 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 that of the target access point; a station receives configuration information of the target access point, which is sent by an intermediate access point, wherein the configuration information is used for the station to establish network connection with the target access point; and the station establishes network connection with the target access point according to the configuration information.
Based on the technical scheme, when the encryption mode of the main AP is WPA3, the STA obtains the configuration information of the main AP from another AP which is different from the encryption mode of the main AP, and establishes network connection with the main AP based on the configuration information, so that a user can enjoy the high security of WPA3, and the user experience can be improved without close connection.
With reference to the first aspect, in certain implementations of the first aspect, the configuration information includes a service set identification, SSID, a password, and an encryption manner of the target access point.
With reference to the first aspect and the foregoing 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 with network connection relation.
With reference to the first aspect and the foregoing implementation manner, the encryption manner of the intermediate access point is WPA 2.
With reference to the first aspect and the foregoing implementation manner, the intermediate access point supports Wi-Fi Protected configuration (WPS) connection; or, the intermediate access point supports push-to-talk.
It should be noted that, in the embodiment of the present application, the term "one-key fast connection" refers to that when a user establishes a network connection with a router, the user only needs to press a WLAN protection setting button on the router, and does not need to press a WPS connection button in a WLAN setting interface displayed by a mobile phone before or after pressing the WLAN protection setting button, or while pressing the WLAN protection setting button.
Based on the technical scheme, when the encryption mode of the main AP is WPA3, the WPS connection is started on the intermediate AP, so that the mobile phone and the intermediate AP carry out information interaction, the configuration information of the main AP is obtained from the intermediate AP, and then the network connection is established with the main AP based on the configuration information, so that when a user uses the mobile phone to establish the network connection with the main AP, the user can enjoy the high security of WPA3, and the non-secret access can be realized in the WPS mode.
Based on the technical scheme, when the encryption mode of the main AP is WPA3, the WPS connection is started on the intermediate AP, so that the mobile phone and the intermediate AP carry out information interaction, the configuration information of the main AP is obtained from the intermediate AP, and then the network connection is established with the main AP based on the configuration information, so that when a user uses the mobile phone to establish the network connection with the main AP, the user can enjoy the high security of WPA3, and the secret-free access can be realized in a one-key quick connection mode.
In a second aspect, a method for establishing a network connection is provided, including: an intermediate access point receives a connection request message sent by a station, the connection request message requests to establish 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 that of the target access point; the intermediate access point generates configuration information of the target access point according to the connection request message, wherein the configuration information is used for the station to establish network connection with the target access point; and the intermediate access point sends the configuration information to the station.
Based on the technical scheme, when the encryption mode of the main AP is WPA3, the STA obtains the configuration information of the main AP from another AP which is different from the encryption mode of the main AP, and establishes network connection with the main AP based on the configuration information, so that a user can enjoy the high security of WPA3, and the user experience can be improved without close connection.
With reference to the second aspect, in certain implementations of the second aspect, the configuration information includes a service set identification, SSID, a password, and an encryption manner of the target access point.
With reference to the second aspect and the foregoing 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 with network connection relation.
With reference to the second aspect and the foregoing implementation manner, the encryption manner of the intermediate access point is WPA 2.
With reference to the second aspect and the foregoing implementation manner, the intermediate access point supports WPS connection; or, the intermediate access point supports push-to-talk.
Based on the technical scheme, when the encryption mode of the main AP is WPA3, the WPS connection is started on the intermediate AP, so that the mobile phone and the intermediate AP carry out information interaction, the configuration information of the main AP is obtained from the intermediate AP, and then the network connection is established with the main AP based on the configuration information, so that when a user uses the mobile phone to establish the network connection with the main AP, the user can enjoy the high security of WPA3, and the non-secret access can be realized in the WPS mode.
Based on the technical scheme, when the encryption mode of the main AP is WPA3, the WPS connection is started on the intermediate AP, so that the mobile phone and the intermediate AP carry out information interaction, the configuration information of the main AP is obtained from the intermediate AP, and then the network connection is established with the main AP based on the configuration information, so that when a user uses the mobile phone to establish the network connection with the main AP, the user can enjoy the high security of WPA3, and the secret-free access can be realized in a one-key quick connection mode.
In a third aspect, the present application provides an electronic device, comprising: the system comprises a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are communicated through a bus; the memory is to store instructions; the communication interface is configured to send a connection request message to an intermediate access point, where the connection request message requests to establish network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the intermediate access point is different from an encryption manner of the target access point; the communication interface is further configured to receive configuration information of the target access point, which is sent by an intermediate access point, where the configuration information is used for the electronic device to establish network connection with the target access point; and the processor is used for establishing network connection with the target access point according to the configuration information.
With reference to the third aspect, in certain implementations of the third aspect, the configuration information includes a service set identification, SSID, a password, and an encryption manner of the target access point.
With reference to the third aspect and the foregoing 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 with network connection relation.
With reference to the third aspect and the foregoing implementation manner, the encryption manner of the intermediate access point is WPA 2.
With reference to the third aspect and the foregoing implementation manner, the intermediate access point supports WPS connection; or, the intermediate access point supports push-to-talk.
In a fourth aspect, the present application provides an electronic device, comprising: the system comprises a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are communicated through a bus; the memory is to store instructions; the communication interface is configured to receive a connection request message sent by a station, where the connection request message requests to establish network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the electronic device is different from that of the target access point; the processor is configured to generate configuration information of the target access point according to the connection request message, where the configuration information is used for the station to establish network connection with the target access point; the communication interface is further configured to send the configuration information to the station.
With reference to the fourth aspect, in some implementations of the fourth aspect, the configuration information includes a service set identification, SSID, a password, and an encryption manner of the target access point.
With reference to the fourth aspect and the foregoing implementation manner, the electronic device and the target access point are distributed on the same router; or the electronic equipment and the target access point are distributed on different routers with network connection relation.
With reference to the fourth aspect and the foregoing implementation manner, the encryption manner of the electronic device is WPA 2.
With reference to the fourth aspect and the foregoing implementation manner, the electronic device supports WPS connection; or, the electronic device supports one-key quick connection.
In a fifth aspect, the present application provides an apparatus, which is included in an electronic device, and has a function of implementing the behavior of the electronic device in any possible implementation manner of the third aspect and the third aspect. The functions may 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-described functions. Such as a transceiver module or unit, a processing module or unit, etc.
In a sixth aspect, the present application provides an apparatus, which is included in an electronic device, and has a function of implementing the behavior of the electronic device in any one of the above-mentioned fourth aspect and the possible implementation manners of the fourth aspect. The functions may 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-described functions. Such as a transceiver module or unit, a processing module or unit, etc.
In a seventh aspect, the present application provides a computer-readable storage medium, which includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform the method for establishing a network connection in any one of the foregoing first aspect and possible implementation manners of the first aspect.
In an eighth aspect, the present application provides a computer-readable storage medium, which includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method for establishing a network connection according to any one of the second aspect and the possible implementation manner of the second aspect.
In a ninth aspect, the present application provides a computer program product, which, when run on an electronic device, causes the electronic device to perform the method for establishing a network connection in any one of the above-mentioned first aspect and possible implementation manners of the first aspect.
In a tenth aspect, the present application provides a computer program product, which, when run on an electronic device, causes the electronic device to execute the method for establishing a network connection in any one of the second aspect and the possible implementation manners of the second aspect.
Drawings
Fig. 1 is a schematic architecture diagram of a network connection system according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a connection process for network connection based on DPP;
fig. 3 is an interaction flow diagram of a method for establishing a network connection according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a graphical user interface for establishing a network connection according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another example of a graphical user interface for establishing a network connection according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus for establishing a network connection according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another apparatus for establishing a network connection according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Fig. 1 shows an architectural schematic of a network connection system 100 suitable for use in the present application. As shown in fig. 1, in the network connection system 100, at least one STA and one network device, for example, STA1, STA2, STA3, STA4, etc., may be included. For example, the STA may be a mobile phone, a tablet computer, a wearable device, an in-vehicle 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, where the network device may be a router and each router may include a plurality of APs thereon.
It should be noted that only one network device is shown in the system 100 in fig. 1, and 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 typically establishes a network connection with the master AP on that route; when there are two or more routers in the system 100, there is a master router in the two or more routers, and the other routers are connected below the master router, the STA usually establishes a network connection with the master AP on the master router.
At present, if the encryption mode of the AP is WPA3, when establishing a connection between a Station (STA) and an access point, a user needs to manually input a password, that is, a secret-free access cannot be realized, which affects user experience
In one possible implementation, if the encryption mode of the AP is WPA3, the user may implement a secret-free access with the AP based on a Device Provisioning Protocol (DPP). The following briefly describes a method for implementing close-contact avoidance by an AP based on DPP and WPA3 as an encryption scheme.
As shown in fig. 2 (a), a user may scan a two-dimensional code on a router using a mobile phone, and configure an AP in which the encryption scheme is WPA3 based on DPP to create a network. After network creation is complete, the handset may be used to manage other STAs that need to establish a network connection with the AP, as shown in fig. 2 (b). For example, when the tablet computer needs to establish network connection with the AP, the two-dimensional code on the tablet computer needs to be scanned by using the mobile phone, so that the tablet computer establishes network connection with the AP, and finally, a network connection relationship shown in fig. 2 (c) is formed.
However, not all STAs carry the two-dimensional code, and when the encryption scheme of the AP is WPA3, the DPP cannot be widely used in the non-close-coupled field because the DPP cannot close-couple to the AP without the STA carrying the two-dimensional code.
In view of this, when the encryption scheme of the main AP is WPA3, in order to enable the user to enjoy the high security of WPA3 and to achieve the secret-free access, the present application provides a method for establishing a network connection, in which the STA obtains configuration information of the main AP from another AP that is different from the encryption scheme of the main AP, and then establishes a network connection with the main AP based on the configuration information, so that the user can enjoy the high security of WPA3 and can achieve the secret-free access, thereby improving user experience.
A method for establishing a network connection according to an embodiment of the present application is described in detail below by taking the system shown in fig. 1 as an example.
Fig. 3 is an interaction flow diagram of a method for establishing a network connection according to an embodiment of the present application. As shown in FIG. 3, the method includes steps 210-260, and the steps 210-260 are described in detail below.
Step 210, the STA sends a connection request message to an intermediate access point, where the connection request message requests to establish network connection with a target access point, 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.
In step 220, the intermediate access point receives the connection request message sent by the station.
Step 230, 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 station to establish network connection with the target access point.
Step 240, the intermediate access point sends the configuration information of the target access point to the station.
Step 250, the STA receives the configuration information of the target access point sent by the intermediate access point.
Step 260, the STA establishes a network connection with the target access point according to the configuration information.
For convenience of description, in the following, for example, the STA is a mobile phone, the target access point is a master AP (hereinafter, simply referred to as "master AP") of a router with which the mobile phone is to establish a network connection, an encryption method of the master AP is WPA3, and the intermediate access point is another AP (hereinafter, simply referred to as "intermediate AP") on the router, which is not limited to the scheme.
The method for establishing network connection provided by the embodiment of the present application is described in different scenarios.
The encryption mode of the main AP in the scenario 1 is WPA3, and a user can realize the password-free access in a WPS mode.
In step 210, when the user needs to avoid being tightly connected to the primary AP with the WPA3, the user may click the WPS connection button in the WLAN setting interface 401 displayed on the mobile phone, the content of the interface is shown in (a) in fig. 4, and then the mobile phone may display the interface 402, the content of the interface is shown in (b) in fig. 4, and the user may press the WLAN protection setting button on the router according to the prompt of the interface 402.
It should be noted that, in scenario 1, the network connection performed by the mobile phone is non-directional, for example, assuming that there are a plurality of routers around the mobile phone, the user may select to press a WLAN protection setting button on one of the routers from the plurality of routers, and then the mobile phone establishes a network connection with the master AP on the router.
For example, if the user selects one router closest to the user from the plurality of routers for connection, the user may press a WLAN protection setting button on the router closest to the user for a period of time (e.g., two minutes) after clicking a WPS connection button in the WLAN setting interface.
When the user presses the WLAN protection settings button on the router, the router may initiate the WPS connection mechanism on an intermediate AP that supports the WPS connection, for example, the intermediate AP may be a backhaul (backhaul) AP on the router and the encryption scheme may be WPA 2.
When a WPS connection button in a WLAN setting interface is pressed, a mobile phone may detect whether an AP that starts a WPS connection mechanism exists around, for example, the mobile phone detects that the intermediate AP starts the WPS connection mechanism, and sends a connection request message to the intermediate AP, where the connection request message requests a master AP of the router to establish network connection. Accordingly, in step 220, the connection request message sent by the handset is received by the intermediate AP.
It should be noted that the foregoing examples are merely illustrative and do not limit the embodiments of the present application in any way, and in a specific implementation, the WPS connection button in the WLAN setting interface may be pressed simultaneously with the WLAN protection setting button on the router, or the WLAN protection setting button on the router may be pressed first, and then the WPS connection button in the WLAN setting interface is pressed within a period of time (e.g., two minutes), which is not limited in any way in the embodiments of the present application.
In step 230, the intermediate AP generates configuration information of the master AP according to the connection request message, where the configuration information is used for the mobile phone to establish network connection with the master AP. For example, the intermediate AP may negotiate with the mobile phone to obtain an encryption key, and may encrypt the SSID, the encryption mode, and the password of the main AP using the encryption key to generate the configuration information.
In step 240, the intermediate AP sends the configuration information to the handset so that the handset is protected from the primary AP based on the configuration information. For example, the intermediate AP may fill the Configuration information of the master AP in an M2 or M8 message (please refer to WPS standard protocol Wi-Fi _ Simple _ Configuration _ Technical _ specification. pdf for specific introduction of the M2 message and the M8 message), and send the Configuration information of the master AP to the handset through the M2 or M8 message. Accordingly, in step 250, the handset receives configuration information from the master AP of the intermediate APs.
In step 260, after the mobile phone receives the configuration information of the main AP, it can avoid accessing the main AP according to the configuration information.
In the embodiment of the application, when the encryption mode of the master AP is WPA3, the WPS connection is started on the intermediate AP, so that the mobile phone performs information interaction with the intermediate AP, the configuration information of the master AP is obtained from the intermediate AP, and then the network connection is established with the master AP based on the configuration information, so that when a user uses the mobile phone to establish the network connection with the master AP, the user can enjoy the high security of WPA3, and the WPS mode can be used for realizing the secret-free access.
The encryption mode of the main AP in the scenario 2 is WPA3, and a user can realize the secret-free access in a one-key quick connection mode.
In the embodiment of the present application, when the encryption mode of the master AP is set to WPA3, the master AP may broadcast it supporting push-to-connect via a broadcast message.
When a user needs to establish a network connection with a master AP encrypted by the WPA3, the user may select a master AP with an "H" icon in the available WLAN list interface 501 displayed on the mobile phone for connection, and the content of the interface is shown in fig. 5 (a). It should be noted that, after the master AP broadcasts that it supports the push-to-connect, 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 the push-to-connect. It should be noted that, in a specific implementation, the master AP may also be indicated to support the one-key fast connection in other ways, which is not limited in this embodiment of the present application.
For example, the user selects a main AP with SSID "HONOR-3103C 047" from the interface 501, and after the user clicks the SSID of the main AP, the mobile phone displays the interface 502, the content of the interface is shown in (b) in fig. 5, and at this time, the user may select to press a WLAN protection setting button on the router where the main AP is located according to the prompt of the interface 502.
It should be noted that, in scenario 2, there may be a case where two or more handsets select the same master AP at the same time, and only the handset selected by the router can establish network connection with the master AP.
In step 210, when the user presses the WLAN protection setting button on the router, assuming that the router has selected to establish a network connection with the handset, the router may start the WPS connection mechanism on an intermediate AP supporting the WPS connection, for example, the intermediate AP may be a backhaul AP on the router, and the encryption scheme may be WPA 2.
The router notifies the mobile phone of being selected after making a selection, the mobile phone detects whether an AP which starts a WPS connection mechanism exists around the mobile phone, illustratively, the mobile phone detects that the intermediate AP starts the WPS connection mechanism, the mobile phone sends a connection request message to the intermediate AP, and the connection request message requests to establish network connection with a master AP of the router. Accordingly, in step 220, the connection request message sent by the handset is received by the intermediate AP.
It should be noted that, for the way for the router to notify the mobile phone that the mobile phone has been selected, reference is made to the existing one-key fast connection technology, and details are not described herein for brevity.
In step 230, the intermediate AP generates configuration information of the master AP according to the connection request message, where the configuration information is used for the mobile phone to establish network connection with the master AP. For example, the intermediate AP may negotiate with the mobile phone to obtain an encryption key, and may encrypt the SSID, the encryption mode, and the password of the main AP using the encryption key to generate the configuration information.
In step 240, the intermediate AP sends the configuration information to the handset, so that the handset establishes a network connection with the master AP according to the configuration information. For example, the intermediate AP may fill the configuration information of the master AP in an M2 or M8 message, and send the configuration information of the master AP to the mobile phone through an M2 or M8 message. Accordingly, in step 250, the handset receives configuration information from the master AP of the intermediate APs.
In step 260, after the mobile phone receives the configuration information of the main AP, it can avoid accessing the main AP according to the configuration information.
In the embodiment of the application, when the encryption mode of the master AP is WPA3, the WPS connection is started on the intermediate AP, so that the mobile phone performs information interaction with the intermediate AP, the configuration information of the master AP is obtained from the intermediate AP, and then the network connection is established with the master AP based on the configuration information, so that when a user uses the mobile phone to establish the network connection with the master AP, the user can enjoy the high security of WPA3, and the secret-free access can be realized in a one-key fast connection mode.
It should be noted that, in scenario 1 and scenario 2, a method for establishing a network connection in the embodiment of the present application is described by taking an example that a master AP and an intermediate AP are distributed on one router, and in a specific implementation, the master AP and the intermediate AP may also be distributed on different routers, for example, the master AP may be located on router #1, the intermediate AP may be located on router #2, router #1 is a master router, router #2 is connected below router #1 as a slave router, and router #1 and router #2 externally present only one SSID, which is an SSID of router # 1. When the main AP and the intermediate AP may also be distributed on different routers, the method for establishing a network connection between the mobile phone and the main AP may refer to the related description in the above method, and for brevity, details are not described here again.
It should be noted that, the above description is only made by exemplifying the establishment of network connection by the WPS method and the establishment of network connection by the one-touch fast-connect method, and in a specific implementation, the master AP in which the WPA3 is the lock-free encryption method may be implemented by another method, as long as the method enables the user to enjoy the high security of the WPA3 and also enables lock-free access, which is not limited in this embodiment of the present invention.
It should be noted that, the above description only uses the encryption scheme of the intermediate AP as WPA2 as an example, and in a specific implementation, the encryption scheme of the intermediate AP may also be another encryption scheme different from WPA3, which is not limited in this embodiment of the present application.
The method for establishing a network connection provided by the embodiment of the present application is described above with reference to fig. 1 to 5, and the apparatus and the electronic device for establishing a network connection provided by the embodiment of the present application are described below with reference to fig. 6 to 8.
Fig. 6 is a schematic structural diagram illustrating an apparatus 600 for establishing a network connection according to an embodiment of the present application, where the apparatus 600 includes a transceiver module 610 and a processing module 620.
A transceiver module 610, configured to send a connection request message, where the connection request message requests to establish a network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the intermediate access point is different from an encryption manner of the target access point; a transceiver module 610, further configured to receive configuration information of the target access point sent by an intermediate access point, where the configuration information is used for the apparatus to establish network connection with the target access point; a processing module 620, configured to establish a network connection with the target access point according to the configuration information.
The configuration information comprises a Service Set Identifier (SSID), a password and an encryption mode of the target access point.
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 with network connection relation.
Optionally, the encryption mode of the intermediate access point is WPA 2.
Optionally, the intermediate access point supports WPS connectivity; or, the intermediate access point supports push-to-talk.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The apparatus for establishing a network connection provided in this embodiment is configured to execute the method for establishing a network connection, and therefore, the same effect as that of the implementation method can be achieved.
Fig. 7 is a schematic structural diagram of another apparatus 700 for establishing a network connection according to an embodiment of the present application, where the apparatus 700 includes a transceiver module 710 and a processing module 720.
A transceiver module 710, configured to receive a connection request message sent by a station, where the connection request message requests to establish network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the apparatus is different from that of the target access point; a processing module 720, configured to generate configuration information of the target access point according to the connection request message, where the configuration information is used for the station to establish network connection with the target access point; the transceiver module 710 is further configured to send the configuration information to a station.
Optionally, the configuration information includes a service set identifier SSID, a password, and an encryption manner of the target access point.
Optionally, the apparatus is distributed on the same router as the target access point; or, the device and the target access point are distributed on different routers with network connection relation.
Optionally, the encryption mode of the device is WPA 2.
Optionally, the apparatus supports WPS connectivity; alternatively, the device supports a one-key quick connect.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The apparatus for establishing a network connection provided in this embodiment is configured to execute the method for establishing a network connection, and therefore, the same effect as that of the implementation method can be achieved.
Fig. 8 shows a schematic structural diagram of an electronic device 800 according to an embodiment of the present application, where the device 800 includes a processor 810, a memory 820, and a communication interface 830, and the processor 810, the memory 820, and the communication interface 830 communicate with each other through a bus 840.
The memory 820 is used for storing instructions; the communication interface 830 is configured to send a connection request message, where the connection request message requests to establish a network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the intermediate access point is different from an encryption manner of the target access point; the communication interface 830 is further configured to receive configuration information of the target access point, where the configuration information is used for the electronic device to establish a network connection with the target access point, where the configuration information is sent by an intermediate access point; the processor 810 is configured to establish a network connection with the target access point according to the configuration information.
Optionally, the configuration information includes a service set identifier SSID, a password, and an encryption manner of the target access point.
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 with network connection relation.
Optionally, the encryption mode of the intermediate access point is WPA 2.
Optionally, the intermediate access point supports WPS connectivity; or, the intermediate access point supports push-to-talk.
The electronic device provided by the embodiment is used for executing the method for establishing the network connection, so that the same effect as the implementation method can be achieved.
Fig. 9 shows a schematic structural diagram of another electronic device 900 provided in an embodiment of the present application, where the device 900 includes a processor 910, a memory 920, and a communication interface 930, and the processor 910, the memory 920, and the communication interface 930 communicate with each other through a bus 940.
The memory 920 is used for storing instructions; the communication interface 930 is configured to receive a connection request message sent by a station, where the connection request message requests to establish network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the electronic device is different from an encryption manner of the target access point; the processor 910 is configured to generate configuration information of the target access point according to the connection request message, where the configuration information is used for the station to establish network connection with the target access point; the communication interface is further configured to send the configuration information to a station.
Optionally, the configuration information includes a service set identifier SSID, a password, and an encryption manner of the target access point.
Optionally, the electronic device and the target access point are distributed on the same router; or the electronic equipment and the target access point are distributed on different routers with network connection relation.
Optionally, the encryption mode of the electronic device is WPA 2.
Optionally, the electronic device supports WPS connectivity; or, the electronic device supports one-key quick connection.
The electronic device provided by the embodiment is used for executing the method for establishing the network connection, so that the same effect as the implementation method can be achieved.
The present embodiment also provides a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are executed on an electronic device, the electronic device executes the above related method steps to implement the method for measuring temperature in the above embodiments.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the method for measuring temperature in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the method for measuring the temperature in the above method embodiments.
The electronic device, the computer-readable storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer-readable storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (30)
1. A method of establishing a network connection, the method being performed by a station and comprising:
sending a connection request message to an intermediate access point, wherein the connection request message requests to establish 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 that of the target access point;
receiving configuration information of the target access point, which is sent by the intermediate access point, wherein the configuration information is used for the station to establish network connection with the target access point;
and establishing network connection with the target access point according to the configuration information.
2. The method of claim 1, wherein the configuration information comprises a Service Set Identification (SSID), a password, and an encryption scheme of the target access point.
3. The method according to claim 1 or 2, wherein the intermediate access point and the target access point are distributed on the same router; or the like, or, alternatively,
the intermediate access point and the target access point are distributed on different routers with network connection relation.
4. The method according to any of claims 1 to 3, wherein the intermediate access point is encrypted in WPA 2.
5. The method according to any of claims 1 to 4, wherein the intermediate access point supports WPS connection; or the like, or, alternatively,
the intermediate access point supports push-to-talk.
6. A method of establishing a network connection, the method being performed by an intermediate access point, comprising:
receiving a connection request message sent by a station, wherein the connection request message requests to establish network connection with a target access point, the encryption mode of the target access point is WPA3, and the encryption mode of an intermediate access point is different from that of the target access point;
generating configuration information of the target access point according to the connection request message, wherein the configuration information is used for establishing network connection between the station and the target access point;
and sending the configuration information to the station.
7. The method of claim 6, wherein the configuration information comprises a Service Set Identification (SSID), a password, and an encryption scheme of the target access point.
8. The method according to claim 6 or 7, wherein the intermediate access point and the target access point are distributed on the same router; or the like, or, alternatively,
the intermediate access point and the target access point are distributed on different routers with network connection relation.
9. The method according to any of claims 6 to 8, wherein the intermediate access point is encrypted in a WPA2 manner.
10. The method according to any of claims 6 to 9, wherein the intermediate access point supports WPS connections; or the like, or, alternatively,
the intermediate access point supports push-to-talk.
11. An apparatus for establishing a network connection, comprising:
a transceiver module, configured to send a connection request message to an intermediate access point, where the connection request message requests to establish network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the intermediate access point is different from an encryption manner of the target access point;
the transceiver module is further configured to receive configuration information of the target access point, where the configuration information is sent by an intermediate access point and used for the device to establish network connection with the target access point;
and the processing module is used for establishing network connection with the target access point according to the configuration information.
12. The apparatus of claim 11, wherein the configuration information comprises a Service Set Identification (SSID), a password, and an encryption scheme of the target access point.
13. The apparatus according to claim 11 or 12, wherein the intermediate access point and the target access point are distributed on the same router; or the like, or, alternatively,
the intermediate access point and the target access point are distributed on different routers with network connection relation.
14. The apparatus according to any of claims 11 to 13, wherein the intermediate access point is encrypted using WPA 2.
15. The apparatus according to any of claims 11 to 14, wherein the intermediate access point supports WPS connections; or the like, or, alternatively,
the intermediate access point supports push-to-talk.
16. An apparatus for establishing a network connection, comprising:
a transceiver module, configured to receive a connection request message sent by a station, where the connection request message requests to establish network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the apparatus is different from that of the target access point;
a processing module, configured to generate configuration information of the target access point according to the connection request message, where the configuration information is used for the station to establish network connection with the target access point;
the transceiver module is further configured to send the configuration information to the station.
17. The apparatus of claim 16, wherein the configuration information comprises a Service Set Identification (SSID), a password, and an encryption scheme of the target access point.
18. The apparatus according to claim 16 or 17, wherein the apparatus is distributed on the same router as the target access point; or the like, or, alternatively,
the device and the target access point are distributed on different routers with network connection relation.
19. The apparatus according to any one of claims 16 to 18, wherein the apparatus is encrypted in WPA 2.
20. The apparatus according to any of claims 16 to 19, wherein the apparatus supports WPS connections; or the like, or, alternatively,
the device supports a one-key quick connect.
21. An electronic device, comprising:
the system comprises a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are communicated through a bus;
the memory is to store instructions;
the communication interface is configured to send a connection request message to an intermediate access point, where the connection request message requests to establish network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the intermediate access point is different from an encryption manner of the target access point;
the communication interface is further configured to receive configuration information of the target access point, which is sent by an intermediate access point, where the configuration information is used for the electronic device to establish network connection with the target access point;
and the processor is used for establishing network connection with the target access point according to the configuration information.
22. The electronic device of claim 21, wherein the configuration information comprises a Service Set Identification (SSID), a password, and an encryption scheme of the target access point.
23. The electronic device of claim 21 or 22, wherein the intermediate access point and the target access point are distributed on the same router; or the like, or, alternatively,
the intermediate access point and the target access point are distributed on different routers with network connection relation.
24. The electronic device according to any of claims 21-23, wherein the intermediate access point is encrypted using WPA 2.
25. The electronic device of any of claims 21-24, wherein the intermediate access point supports WPS connectivity; or the like, or, alternatively,
the intermediate access point supports push-to-talk.
26. An electronic device, comprising:
the system comprises a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are communicated through a bus;
the memory is to store instructions;
the communication interface is configured to receive a connection request message sent by a station, where the connection request message requests to establish network connection with a target access point, an encryption manner of the target access point is WPA3, and an encryption manner of the electronic device is different from that of the target access point;
the processor is configured to generate configuration information of the target access point according to the connection request message, where the configuration information is used for the station to establish network connection with the target access point;
the communication interface is further configured to send the configuration information to the station.
27. The electronic device of claim 26, wherein the configuration information comprises a Service Set Identification (SSID), a password, and an encryption scheme for the target access point.
28. The electronic device of claim 26 or 27, wherein the electronic device and the target access point are distributed on the same router; or the like, or, alternatively,
the electronic equipment and the target access point are distributed on different routers with network connection relation.
29. The electronic device according to any one of claims 26 to 28, wherein the encryption scheme of the electronic device is WPA 2.
30. The electronic device of any of claims 26-29, wherein the electronic device supports WPS connectivity; or the like, or, alternatively,
the electronic device supports one-key quick connect.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010527105.8A CN113852953B (en) | 2020-06-10 | 2020-06-10 | Method and device for establishing network connection and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010527105.8A CN113852953B (en) | 2020-06-10 | 2020-06-10 | Method and device for establishing network connection and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113852953A true CN113852953A (en) | 2021-12-28 |
CN113852953B CN113852953B (en) | 2024-08-27 |
Family
ID=78972014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010527105.8A Active CN113852953B (en) | 2020-06-10 | 2020-06-10 | Method and device for establishing network connection and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113852953B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024007239A1 (en) * | 2022-07-07 | 2024-01-11 | Qualcomm Incorporated | Preventing attacks in a mixed wpa2 and wpa3 environment |
WO2024017141A1 (en) * | 2022-07-21 | 2024-01-25 | 华为技术有限公司 | Networking method and wireless access point device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011040670A1 (en) * | 2009-10-01 | 2011-04-07 | Kyungpook National University Industry-Academic Cooperation Foundation | User-oriented network system having automatic user authentication function and method thereof |
US20180278625A1 (en) * | 2017-03-24 | 2018-09-27 | Qualcomm Incorporated | Exchanging message authentication codes for additional security in a communication system |
WO2018206107A1 (en) * | 2017-05-11 | 2018-11-15 | Telefonaktiebolaget Lm Ericsson (Publ) | Establishing connections between wifi access points and wireless devices via light fidelity access points |
US20190182666A1 (en) * | 2016-10-21 | 2019-06-13 | Comcast Cable Communications, Llc | Methods And Systems For Automatically Connecting To A Network |
CN111182546A (en) * | 2019-12-31 | 2020-05-19 | 华为技术有限公司 | Method, equipment and system for accessing wireless network |
-
2020
- 2020-06-10 CN CN202010527105.8A patent/CN113852953B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011040670A1 (en) * | 2009-10-01 | 2011-04-07 | Kyungpook National University Industry-Academic Cooperation Foundation | User-oriented network system having automatic user authentication function and method thereof |
US20190182666A1 (en) * | 2016-10-21 | 2019-06-13 | Comcast Cable Communications, Llc | Methods And Systems For Automatically Connecting To A Network |
US20180278625A1 (en) * | 2017-03-24 | 2018-09-27 | Qualcomm Incorporated | Exchanging message authentication codes for additional security in a communication system |
WO2018206107A1 (en) * | 2017-05-11 | 2018-11-15 | Telefonaktiebolaget Lm Ericsson (Publ) | Establishing connections between wifi access points and wireless devices via light fidelity access points |
CN111182546A (en) * | 2019-12-31 | 2020-05-19 | 华为技术有限公司 | Method, equipment and system for accessing wireless network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024007239A1 (en) * | 2022-07-07 | 2024-01-11 | Qualcomm Incorporated | Preventing attacks in a mixed wpa2 and wpa3 environment |
WO2024017141A1 (en) * | 2022-07-21 | 2024-01-25 | 华为技术有限公司 | Networking method and wireless access point device |
Also Published As
Publication number | Publication date |
---|---|
CN113852953B (en) | 2024-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11200012B2 (en) | Terminal device, access point, communication device, and computer programs therefor | |
US11709639B2 (en) | Non-transitory computer-readable medium storing computer-readable instructions for terminal device and terminal device | |
US9843579B2 (en) | Dynamically generated SSID | |
US9628585B2 (en) | Systems and methods for cross-layer secure connection set up | |
US8595807B2 (en) | Method, system, and device for implementing device addition in Wi-Fi device to device network | |
US11758394B2 (en) | Communication device and non-transitory computer-readable recording medium storing computer-readable instructions for communication device | |
US12067312B2 (en) | First communication device and non-transitory computer-readable medium storing computer-readable instructions for first communication device | |
US12016066B2 (en) | Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and non-transitory computer-readable recording medium storing computer-readable instructions for first external device | |
JP2014509468A (en) | Method and system for out-of-band delivery of wireless network credentials | |
US12022285B2 (en) | Communication device and non-transitory computer-readable recording medium storing computer-readable instructions for communication device | |
CN113852953B (en) | Method and device for establishing network connection and electronic equipment | |
US11357065B2 (en) | Communication device capable of executing process for establishing wireless connection according to first scheme or second scheme of Wi-Fi standard and non-transitory computer-readable recording medium storing computer readable instructions for communication device | |
US11589223B2 (en) | Terminal device and non-transitory computer-readable recording medium storing computer readable instructions for terminal device | |
US20220353679A1 (en) | Non-transitory computer-readable recording medium storing computer-readable instructions for terminal device, terminal device, and communication device | |
US20220353678A1 (en) | Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for terminal device, and terminal device | |
US12124748B2 (en) | Terminal device, access point, communication device, and computer programs therefor | |
CN113919007A (en) | Data signature method and device, electronic equipment and computer readable storage medium | |
WO2016183943A1 (en) | Wireless local area network access method, terminal and system |
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 |