Method for connecting to WLAN hotspot device, WLAN hotspot device, and user equipment
A method for connecting to a Wi-Fi hotspot device, the Wi-Fi hotspot device, and a user equipment (UE), where the method includes generating, by the Wi-Fi hotspot device, a two-dimensional barcode according to Wi-Fi authentication information, where the two-dimensional barcode includes the Wi-Fi authentication information, and the Wi-Fi authentication information is used for authentication prior to connection to the Wi-Fi hotspot device, and presenting, by the Wi-Fi hotspot device, the two-dimensional barcode to the UE using a display screen of the Wi-Fi hotspot device such that the UE may connect to the Wi-Fi hotspot device according to the two-dimensional barcode, and a user does not need to memorize or record the Wi-Fi authentication information, thereby improving user experience.
1. A method comprising:
generating, by a first user equipment (UE), a two-dimensional barcode according to a wireless local area network (WLAN) authentication information corresponding to a WLAN hotspot device, wherein the WLAN authentication information is used for authentication to connect with the WLAN hotspot device;
sending, by the first UE, the two-dimensional barcode to the WLAN hotspot device;
scanning, by a second UE, the two-dimensional barcode presented on a display screen of the WLAN hotspot device;
extracting, by the second UE, the WLAN authentication information from the two-dimensional barcode;
presenting, by the second UE to a user, prompt information that instructs the user to connect to the WLAN hotspot device after the WLAN authentication information is successfully extracted from the two-dimensional barcode, wherein the prompt information comprises a button displayed for connection confirmation;
automatically enabling, by the second UE before connecting to the WLAN hotspot device, a WLAN function of the second UE when the WLAN function of the second UE is not already enabled;
receiving, by the second UE, an input on the button;
in response to the input on the button, completing, by the second UE, authentication with the WLAN hotspot device according to the WLAN authentication information; and
connecting, by the second UE, to the WLAN hotspot device.
2. The method of claim 1 , wherein the two-dimensional barcode comprises a quick response (QR) code.
3. The method of claim 1 , wherein the WLAN authentication information comprises at least one of: a service set identifier (SSID), an authentication mode, or an authentication password.
4. The method of claim 1 , further comprising sending, by the second UE, the two-dimensional barcode to a third UE.
5. The method of claim 4 , wherein the WLAN authentication information comprises at least one of: a service set identifier (SSID), an authentication mode, or an authentication password.
6. The method of claim 1 , wherein the WLAN authentication information is dynamically changed by the WLAN hotspot device.
7. The method of claim 6 , wherein the two-dimensional barcode is dynamically generated according to the dynamically changed WLAN authentication information.
8. The method of claim 1 , further comprising receiving, by the first UE, the WLAN authentication information from the WLAN hotspot device.
9. A system comprising:
a first electronic device; and
a second electronic device,
wherein the first electronic device is configured to:
generate a two-dimensional barcode according to a wireless local area network (WLAN) authentication information corresponding to a WLAN hotspot device, wherein the WLAN authentication information is used for authentication to connect with the WLAN hotspot device; and
send the two-dimensional barcode to the WLAN hotspot device,
wherein the second electronic device is configured to:
scan the two-dimensional barcode presented on a display screen of the WLAN hotspot device;
extract the WLAN authentication information from the two-dimensional barcode, wherein the WLAN authentication information comprises at least one of: a service set identifier (SSID), an authentication mode, or an authentication password;
present, to a user, prompt information that instructs the user to connect to the WLAN hotspot device after the WLAN authentication information is successfully extracted from the two-dimensional barcode, wherein the prompt information comprises a button displayed for connection confirmation;
when a WLAN function of the second electronic device is not already enabled, automatically enable the WLAN function of the second electronic device before connecting to the WLAN hotspot device;
receive an input on the button;
in response to the input on the button, complete authentication with the WLAN hotspot device according to the WLAN authentication information; and
connect to the WLAN hotspot device.
10. The system of claim 9 , wherein the two-dimensional barcode comprises a quick response (QR) code.
11. The system of claim 9 , wherein the second electronic device is further configured to send the two-dimensional barcode to a third UE.
12. The system of claim 9 , wherein the WLAN authentication information is dynamically changed by the WLAN hotspot device.
13. The system of claim 12 , wherein the two-dimensional barcode is dynamically generated according to the dynamically changed WLAN authentication information.
14. The system of claim 9 , wherein the first electronic device is further configured to receive the WLAN authentication information from the WLAN hotspot device.
15. A system, comprising:
a first electronic device;
a second electronic device; and
a wireless local area network (WLAN) hotspot device in communication with the first electronic device and the second electronic device,
wherein the first electronic device is configured to:
generate a two-dimensional barcode according to a WLAN authentication information corresponding to the WLAN hotspot device, wherein the WLAN authentication information is used for authentication to connect with the WLAN hotspot device; and
send the two-dimensional barcode to the WLAN hotspot device,
wherein the second electronic device is configured to:
scan the two-dimensional barcode presented on a display screen of the WLAN hotspot device;
extract the WLAN authentication information from the two-dimensional barcode, wherein the WLAN authentication information comprises at least one of: a service set identifier (SSID), an authentication mode, or an authentication password;
present, to a user, prompt information that instructs the user to connect to the WLAN hotspot device after the WLAN authentication information is successfully extracted from the two-dimensional barcode, wherein the prompt information comprises a button displayed for connection confirmation;
receive an input on the button;
in response to the input on the button, complete authentication with the WLAN hotspot device according to the WLAN authentication information; and
connect to the WLAN hotspot device.
16. The first UE system of claim 15 , wherein the two-dimensional barcode comprises a quick response (QR) code.
17. The system of claim 15 , wherein the second electronic device is further configured to send the two-dimensional barcode to a third UE.
18. The system of claim 15 , wherein the WLAN authentication information is dynamically changed by the WLAN hotspot device.
19. The system of claim 18 , wherein the two-dimensional barcode is dynamically generated according to the dynamically changed WLAN authentication information.
20. The system of claim 15 , wherein the first electronic device is further configured to receive the WLAN authentication information from the WLAN hotspot device.