CN108377500B - Wifi network connection method, device and equipment - Google Patents

Wifi network connection method, device and equipment Download PDF

Info

Publication number
CN108377500B
CN108377500B CN201610984738.5A CN201610984738A CN108377500B CN 108377500 B CN108377500 B CN 108377500B CN 201610984738 A CN201610984738 A CN 201610984738A CN 108377500 B CN108377500 B CN 108377500B
Authority
CN
China
Prior art keywords
wifi network
network
authentication information
user
wifi
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610984738.5A
Other languages
Chinese (zh)
Other versions
CN108377500A (en
Inventor
朴云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610984738.5A priority Critical patent/CN108377500B/en
Publication of CN108377500A publication Critical patent/CN108377500A/en
Application granted granted Critical
Publication of CN108377500B publication Critical patent/CN108377500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The invention provides a wifi network connection method, a wifi network connection device and wifi network connection equipment, wherein the method comprises the following steps: acquiring a service set identifier SSID input by a user; carrying out wifi network scanning by using the SSID to obtain a scanning result; acquiring network authentication information input by a user; and attempting to connect at least one wifi network in the scanning result by using the network authentication information, wherein the wifi network type determined automatically is adopted in the process of attempting to connect the wifi network. According to the invention, the user does not need to judge and select the network type to be accessed to the wifi network by himself, and only needs to input the SSID and the network authentication information to realize automatic matching and connection of the network, so that the user operation is simplified.

Description

Wifi network connection method, device and equipment
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of computer application, in particular to a wifi network connection method, device and equipment.
[ background of the invention ]
The current common network types of wifi mainly include: OPEN, WEP, WPA/WPA2, 802.1xEAP, etc. The OPEN network is an OPEN network, can be accessed without authentication, and cannot be encrypted in the data transmission process. WEP (Wired Equivalent Privacy) performs encryption using a fixed-length and static key. WPA (Wi-Fi Protected Access) is an encryption type of a pre-shared key mode and mainly comprises two standards of WPA and WPA 2. 802.1x EAP (Extensible Authentication Protocol) requires a certificate or a user name and password for Authentication.
When a user needs to connect to a wifi network, there are two general ways: one is to find an available network scanning list through wifi scanning, and select a wifi network from the network scanning list for connection. The second is to connect the wifi network corresponding to the SSID filled by the user by adding the wifi network, including the network hiding the SSID. When a user adds a wifi network, the user needs to specify a network type, that is, one of OPEN, WEP, WPA/WPA2, and 802.1x EAP is specified as a network type to be connected, so that wifi network connection can be performed. As shown in fig. 1a, when the user selects to add a network, the SSID to be connected needs to be entered on the interface as shown in fig. 1a, and after clicking the "security" option, the network type to be connected is selected from the interface as shown in fig. 1 b. This is true for the currently mainstream Android and IOS systems. However, users with poor knowledge of wireless networks often have nothing to do, on one hand, the operation is cumbersome, and on the other hand, wifi networks cannot be connected correctly because of wrong network type input.
[ summary of the invention ]
In view of this, the invention provides a wifi network connection method, device and equipment so as to simplify user operation.
The specific technical scheme is as follows:
the invention provides a wifi network connection method, which comprises the following steps:
acquiring a service set identifier SSID input by a user;
carrying out wifi network scanning by using the SSID to obtain a scanning result;
acquiring network authentication information input by a user;
and attempting to connect at least one wifi network in the scanning result by using the network authentication information, wherein the wifi network type determined automatically is adopted in the process of attempting to connect the wifi network.
According to a preferred embodiment of the present invention, before acquiring the network authentication information input by the user, the method further includes: and displaying an interface for prompting the user to input the network authentication information.
According to a preferred embodiment of the present invention, attempting to connect to each wifi network in the scan result by using the network authentication information includes:
and if the scanning result only comprises one wifi network, establishing connection with the wifi network by using the network authentication information according to the type of the wifi network obtained from the broadcast frame of the wifi network.
According to a preferred embodiment of the present invention, attempting to connect to at least one wifi network in the scan result using the network authentication information comprises:
determining the type of a target wifi network by utilizing network authentication information input by a user;
determining a wifi network belonging to a target wifi network type in the scanning result;
and connecting the determined wifi network by using the network authentication information.
According to a preferred embodiment of the present invention, determining the target wifi network type using the network authentication information input by the user comprises:
and if the network authentication information input by the user is empty, determining that the target wifi network type is an open network.
According to a preferred embodiment of the present invention, determining the target wifi network type using the network authentication information input by the user comprises:
and if the network authentication information input by the user is a password, identifying the target wifi network type by using the length of the password.
According to a preferred embodiment of the present invention, identifying the type of the target wifi network using the length of the password comprises:
judging whether the length of the password accords with the preset wired equivalent privacy WEP password length or not, and if not, determining that the target wifi network type is WPA/WPA 2;
if so, determining that the target wifi network type is WEP or WPA/WPA2, and preferentially connecting the wifi network of the WEP type when the determined wifi network is connected.
According to a preferred embodiment of the present invention, if the network authentication information input by the user includes: and determining the target wifi network type to be 802.1x EAP according to the certificate information or the user name and the password.
According to a preferred embodiment of the present invention, if it is determined that there are more than two wifi networks belonging to the target wifi network type in the scanning result, the wifi networks determined by the connection are executed according to a preset priority rule.
According to a preferred embodiment of the present invention, the preset priority rule comprises:
and trying connection according to the sequence of wifi signal strength from high to low.
According to a preferred embodiment of the invention, the method further comprises:
and if the wifi network does not exist in the scanning result, displaying prompt information of the wifi network which is not scanned.
According to a preferred embodiment of the invention, the method further comprises:
if all the wifi networks in the scanning result are failed to connect, displaying prompt information of network connection failure; and if one wifi network in the connection scanning result is successful, displaying prompt information of successful network connection.
The invention also provides an apparatus comprising
A memory including one or more programs;
one or more processors, coupled to the memory, that execute the one or more programs to implement:
acquiring a service set identifier SSID input by a user;
carrying out wifi network scanning by using the SSID to obtain a scanning result;
acquiring network authentication information input by a user;
and utilizing the network authentication information to try to connect with at least one wifi network in the scanning result.
The invention also provides a wifi network connection device, which comprises:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a Service Set Identifier (SSID) input by a user;
the scanning unit is used for carrying out wifi network scanning by using the SSID to obtain a scanning result;
the second acquisition unit is used for acquiring the network authentication information input by the user;
and the connecting unit is used for attempting to connect with at least one wifi network in the scanning result by utilizing the network authentication information, wherein the wifi network type determined automatically is adopted in the process of attempting to connect with the wifi network.
According to a preferred embodiment of the present invention, the first obtaining unit is further configured to present an interface for prompting a user to input network authentication information, and obtain an SSID input by the user from the interface.
According to a preferred embodiment of the present invention, the connection unit specifically performs:
and if the scanning result only comprises one wifi network, establishing connection with the wifi network by using the network authentication information according to the type of the wifi network obtained from the broadcast frame of the wifi network.
According to a preferred embodiment of the present invention, the connection unit specifically performs:
determining the type of a target wifi network by utilizing network authentication information input by a user;
determining a wifi network belonging to a target wifi network type in the scanning result;
and connecting the determined wifi network by using the network authentication information.
According to a preferred embodiment of the present invention, the connection unit specifically performs:
and if the network authentication information input by the user is empty, determining that the target wifi network type is an open network.
According to a preferred embodiment of the present invention, the connection unit specifically performs:
and if the network authentication information input by the user is a password, identifying the target wifi network type by using the length of the password.
According to a preferred embodiment of the present invention, when the connection unit identifies the type of the target wifi network by using the length of the password, the connection unit specifically executes:
judging whether the length of the password accords with the preset wired equivalent privacy WEP password length or not, and if not, determining that the target wifi network type is WPA/WPA 2;
if so, determining that the target wifi network type is WEP or WPA/WPA2, and preferentially connecting the wifi network of the WEP type when the determined wifi network is connected.
According to a preferred embodiment of the present invention, the connection unit specifically performs:
if the network authentication information input by the user comprises: and determining the target wifi network type to be 802.1x EAP according to the certificate information or the user name and the password.
According to a preferred embodiment of the present invention, the connection unit specifically performs:
and if the number of the wifi networks belonging to the target wifi network type in the scanning result is more than two, executing the wifi networks determined by the connection according to a preset priority rule.
According to a preferred embodiment of the present invention, the preset priority rule comprises:
and trying connection according to the sequence of wifi signal strength from high to low.
According to a preferred embodiment of the invention, the apparatus further comprises:
the prompting unit is used for displaying prompting information which is not scanned to the wifi network if the wifi network does not exist in the scanning result; or if all the wifi networks in the scanning result are failed to connect, displaying prompt information of network connection failure; or if the connection with one wifi network in the scanning result is successful, displaying the prompt information of the successful network connection.
According to the technical scheme, the user does not need to judge and select the network type to be accessed to the wifi network by himself or herself, and only needs to input the SSID and the network authentication information to realize automatic matching and connection of the network, so that user operation is simplified.
[ description of the drawings ]
Fig. 1a and fig. 1b are schematic diagrams of an operation interface used when a wifi network is connected in the prior art respectively;
FIG. 2 is a flow chart of a main method provided by the embodiment of the present invention;
FIG. 3a is a schematic diagram of an interface for inputting SSID according to an embodiment of the present invention;
fig. 3b is a schematic diagram of an interface for inputting network authentication information according to an embodiment of the present invention;
FIG. 4 is a flow chart of a preferred method of implementing the present invention;
FIG. 5 is a block diagram of an apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of an apparatus according to an embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Fig. 2 is a flowchart of a main method provided in the embodiment of the present invention, as shown in fig. 2, the method mainly includes the following steps:
in 201, the SSID input by the user is acquired.
In the embodiment of the present invention, when the user selects to scan the wifi network by inputting the SSID by himself, the SSID of the wifi network to which the user is to connect may be input on the interface as shown in fig. 3a by, for example, clicking "add network" as shown in fig. 1 a. In addition to entering the SSID of the wifi network to which the user is to connect on the interface shown in fig. 3a, other means for entering the SSID may be used, for example, if the user has previously connected to the wifi network of the SSID, the SSID of the wifi network may already exist in the history, and thus the user may enter the SSID by selecting the SSID in the history.
In 202, wifi network scanning is performed by using SSID to obtain a scanning result.
In this step, a wifi network matched with an SSID can be found by sending a Probe Request frame carrying the SSID; after receiving the Probe Request, the AP (access point) returns a Probe Response frame if its wifi network matches the SSID carried by the Probe Request, where the Probe Response frame includes the SSID of the wifi network and the network type information, and the SSIDs constitute a scanning result.
The wifi network obtained by scanning in this step may include two types: one is a wifi network corresponding to an AP which actively sends a broadcast frame, and the other is a wifi network corresponding to an AP which does not actively send a broadcast frame, which is also referred to as a wifi network with a hidden SSID.
After wifi network scanning is completed, the obtained scanning result may have several situations:
in the first case: if the wifi network does not exist in the scanning result, that is, no wifi network is scanned, this situation may present the prompt information that the wifi network is not scanned to the user. The user can check whether the SSID is input by mistake or input again by replacing one SSID, and the like.
In the second case: only one wifi network is included in the scanning result, in this case, the network type of the wifi network to which the user is actually connected is determined (the network type of the wifi network is already known by Probe Response during the scanning process), and the target wifi network is also determined, which is the wifi network in the scanning result.
In the third case: the scanning result contains more than two wifi networks, and in this case, the target wifi network is uncertain.
For the second case and the third case, after the scanning result is obtained, an interface for prompting the user to input the network authentication information can be displayed, and the user can input the network authentication information on the interface.
In 203, network authentication information input by the user is acquired.
In this embodiment, at least one of the following items may be provided on the interface for prompting the user to input the network authentication information:
1) passpase (password), a relatively common situation. The user enters a string of characters in a password box on the interface. The password is network authentication information used by a network type such as WEP or WPA/WPA 2.
2) The certificate information may include a CA (certificate authority) certificate, a user certificate, and the like. The digital integer is usually applied by the terminal device in advance and installed in the terminal device, and the certificate information is used for identity authentication and data encryption and decryption in the data interaction process between the terminal device and the server device. The 802.1x EAP network type often uses this network authentication information, and the user needs to select the certificate information installed in the terminal to be able to successfully access the wifi network of the 802.1x EAP type.
3) A username and password. This is also network authentication information that can be used by 802.1x EAP network types, and in some networks such as an enterprise wifi network and a campus wifi network, after the installation of a digital certificate is completed, there is no need to input certificate information each time the wifi network is logged in, but a user name and a password are required to be input for identity authentication.
4) The network authentication information input by the user can also be considered as null if no network authentication information is input, i.e. the user cancels the input of the network authentication information.
For example, assuming that the user inputs SSID "test-wifi" on the interface shown in fig. 3a, the user may further select to input network authentication information, may select to input a password, or select to input certificate information, or select to input a user name and a password on the interface shown in fig. 3b, or the user may select to directly select the determination without inputting anything.
At 204, an attempt is made to connect to at least one wifi network in the scan results using the network authentication information, wherein the automatically determined wifi network type is used in the attempt to connect to the wifi network.
If the network authentication information input by the user in the step 203 is null, it may be determined that the target wifi network type is an open network, and a wifi network belonging to the open network is determined in the scanning result and connected to the determined wifi network. If a plurality of wifi networks belonging to the open network exist in the scanning result, connection can be performed according to a preset priority order until connection is successful. For example, the connection may be made in order of high signal strength to low signal strength.
If the network authentication information input by the user in the step 203 is a password, the target type is WEP or WAP/WAP2, wifi networks belonging to the WEP and WAP/WAP2 network types can be determined from the scanning result, and then the determined wifi networks are tried to be connected one by one according to a certain priority by using the password input by the user. For example, the connection may be made in order of high signal strength to low signal strength.
For this case, there is also a preferred embodiment that the network type is first identified by the password length entered by the user, since the password length used for WEP is fixed, for example, 5 or 13 as input in ASCII code, while the password length used for WAP/WAP2 is variable. Therefore, whether the password length input by the user meets the preset WEP password length or not can be judged firstly, if not, the target wifi network type can be directly determined to be the WPA/WPA2, and the wifi network belonging to the WPA/WPA2 in the scanning result is determined and connected. Also if there are multiple wifi networks belonging to WPA/WPA2, the connection may be made according to preset priority rules, for example from high to low signal strength. If the password length input by the user is consistent with the preset WEP password length, it can be determined that the target wifi network may be the wifi network of the WEP, but may also be the wifi network of the WPA/WPA 2. In this case, the wifi network of WEP type in the scanning result may be preferentially connected, and if the connection fails, the wifi network of WPA/WPA2 may be connected again.
If the network authentication information input by the user in 203 is certificate information or a user name and a password, it may be determined that the target wifi network type is 802.1x EAP, and a wifi network belonging to 802.1x EAP is determined in the scanning result and connected. If a plurality of wifi networks belonging to 802.1x EAP are determined in the scanning result, connection may be performed according to a preset priority order until connection is successful, for example, according to an order from high to low in signal strength.
Of course, in the actual use process, other types of wifi networks may exist, or new types of wifi networks appear along with the continuous development of network technologies, but all the wifi networks can be automatically tried to be connected to the scanning result according to the network authentication information input by the user without the need of the user to select the network type based on the core mode of the present invention.
If one wifi network in the connection scanning result is successful, prompt information of successful network connection can be displayed, and the prompt information can include an SSID of the wifi network which is successfully connected. If the connection fails, prompt information of network connection failure can be displayed.
A preferred embodiment of implementing the above method of the present invention is given below by taking fig. 4 as an example, and as shown in fig. 4, the preferred embodiment may include:
in 401, the SSID input by the user is acquired.
In 402, wifi network scanning is performed by using the SSID to obtain a scanning result.
In 403, the number of wifi networks in the scanning result is determined, and if no wifi network exists in the scanning result, 404 is executed. If only one wifi network is contained in the scan results, 405 is performed. If there are multiple wifi networks in the scan results, then 407 is performed.
In 404, a prompt is presented that the wifi network was not scanned.
In 405, an interface prompting the user to input the network authentication information is displayed, and the network authentication information input by the user is acquired.
At 406, a wifi network included in the scan result is connected using the network authentication information input by the user, and the process goes to execute 414.
In 407, an interface prompting the user to input the network authentication information is presented, and the network authentication information input by the user is acquired.
In 408, judging the network authentication information input by the user, and if the network authentication information input by the user is empty, executing 409; if the network authentication information input by the user is certificate information or a user name and a password, executing 410; if the network authentication information input by the user is a password, 411 is executed.
In 409, the target wifi network type is determined to be an open network, the wifi networks belonging to the open network in the scanning result are connected, and 414 is executed.
At 410, it is determined that the target wifi network type is 802.1x EAP, and wifi networks belonging to 802.1x EAP in the scan result are connected, and 414 is performed.
In 411, judging whether the password length input by the user accords with the preset WEP password length, if not, executing 412; if so, 413 is performed.
At 412, the target wifi network type is determined to be WAP/WAP2, the wifi networks belonging to WAP/WAP2 in the scan results are connected, and 414 is performed.
In 413, it is determined that the target wifi network type is WEP or WAP/WAP2, the wifi network belonging to WEP or WAP/WAP2 in the scan result is connected, wherein the wifi network belonging to WEP is preferentially connected.
At 414, a determination is made as to whether the connection was successful, and if so, execution 415 is performed; if both connections fail, 416 is performed.
At 415, a prompt message indicating that the network connection is successful is presented, and the process ends.
At 416, the prompt message indicating that all network connections have failed is presented, and the process ends.
The execution subject of the method may be a wifi network connection device, and the device may be an application located in the terminal device, or may also be a functional unit such as a plug-in or Software Development Kit (SDK) located in the application of the terminal device.
Fig. 5 is a structural diagram of an apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus may include: the first acquisition unit 01, the scanning unit 02, the second acquisition unit 03 and the connection unit 04, and may further include a prompt unit 05. The main functions of each constituent unit are as follows:
the first acquisition unit 01 is responsible for acquiring the SSID input by the user. The first obtaining unit 01 may first present an interface prompting the user to input network authentication information, and then obtain the SSID input by the user from the interface.
The scanning unit 02 is responsible for wifi network scanning by using the SSID to obtain a scanning result. Specifically, the scanning unit 02 may search for a wifi network matching the SSID input by the user by sending a Probe Request frame carrying the SSID; after receiving the Probe Request, if the wifi network of the AP is matched with the SSID carried by the Probe Request, returning a Probe Response frame, wherein the Probe Response frame comprises the SSID of the wifi network and the network type information, and the SSIDs form a scanning result.
After obtaining the scanning result, the second obtaining unit 03 obtains the network authentication information input by the user. The connection unit 04 tries to connect with at least one wifi network in the scanning result by using the network authentication information, wherein in the process of trying to connect with the wifi network, the wifi network type determined automatically is adopted.
If the scanning result does not contain the wifi network, the prompting unit 05 can display the prompting information that the wifi network is not scanned. The user can check whether the SSID is input by mistake or input again by replacing one SSID, and the like.
If the scanning result only includes one wifi network, the connection unit 04 establishes a connection with the wifi network by using the network authentication information according to the wifi network type obtained from the broadcast frame of the wifi network.
If the scanning result contains a plurality of wifi networks, the connection unit 04 may determine the target wifi network type by using the network authentication information input by the user; then determining a wifi network belonging to the target wifi network type in the scanning result; and connecting the determined wifi network by using the network authentication information.
If the network authentication information input by the user is null, the connection unit 04 may determine that the target wifi network type is an open network.
If the network authentication information input by the user is a password, the connection unit 04 identifies the target wifi network type by using the length of the password. Specifically, whether the length of the password accords with the preset wired equivalent privacy WEP password length or not can be judged, and if not, the target wifi network type is determined to be WPA/WPA 2; if yes, the target wifi network type is determined to be WEP or WPA/WPA2, and the connection unit 04 may preferentially connect to the wifi network of the WEP type when connecting to the determined wifi network.
If the network authentication information input by the user comprises: credential information, or username and password, the connection unit 04 may determine that the target wifi network type is 802.1x EAP.
In addition, if the number of the determined wifi networks belonging to the target wifi network type in the scanning result is more than two, the determined wifi networks can be connected according to a preset priority rule. Preferably, the determined wifi networks may be connected in order of high signal strength to low signal strength.
If all wifi networks in the scanning result fail to connect, the prompting unit 05 can display the prompting information of network connection failure; if one wifi network in the connection scanning result is successful, the prompting unit 05 can display the prompt information that the network connection is successful.
The above-described methods and apparatus provided by embodiments of the present invention may be embodied in a computer program that is configured and operable to be executed by a device. The apparatus may include one or more processors, and further include memory and one or more programs, as shown in fig. 6. Where the one or more programs are stored in memory and executed by the one or more processors to implement the method flows and/or device operations illustrated in the above-described embodiments of the invention. For example, the method flows executed by the one or more processors may include:
acquiring a service set identifier SSID input by a user;
carrying out wifi network scanning by using the SSID to obtain a scanning result;
acquiring network authentication information input by a user;
and trying to connect each wifi network in the scanning result by utilizing the network authentication information.
The terminal device to which the embodiment of the present invention is applicable may include, but is not limited to, a smart mobile terminal, a smart home device, a network device, a wearable device, a smart medical device, a PC (personal computer), and the like. Wherein the smart mobile device may include devices such as a cell phone, a tablet computer, a notebook computer, a PDA (personal digital assistant), an internet automobile, etc. The intelligent household equipment can comprise intelligent household equipment, such as an intelligent television, an intelligent air conditioner, an intelligent water heater, an intelligent refrigerator, an intelligent air purifier and the like, and the intelligent household equipment can further comprise an intelligent door lock, an intelligent socket, an intelligent electric lamp, an intelligent camera and the like. The network devices may include devices such as switches, wireless APs, servers, and the like. Wearable devices may include devices such as smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (i.e., devices that can support virtual reality and augmented reality), and so forth. The intelligent medical device may include, for example, an intelligent thermometer, an intelligent blood pressure meter, an intelligent blood glucose meter, and the like.
Taking a specific application scenario:
the user needs to connect the smart television with the wifi network, enters the network setting interface, enters the interface for inputting the SSID through the 'adding network', and inputs the SSID of the wifi network to be connected. And the smart television obtains the wifi network matched with the SSID through scanning, and then displays an interface for prompting a user to input network authentication information. The user may enter network authentication information through the interface, for example, the user enters a password of 8 bits in length. And determining that the target wifi network type is WAP/WAP2 after the judgment, determining the wifi network with the network type of WAP/WAP2 in the search result, and establishing connection with the wifi network by using the password input by the user. In the whole process, the user does not need to judge and select the network type to be accessed to the wifi network, and only needs to input the SSID and the password to realize automatic matching and connection of the network, so that the user operation is simplified.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. 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 invention 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, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. 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 purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (22)

1. A wifi network connection method is characterized in that the method comprises the following steps:
acquiring a service set identifier SSID input by a user;
carrying out wifi network scanning by using the SSID to obtain a scanning result;
acquiring network authentication information input by a user;
attempting to connect at least one wifi network in the scanning result by using the network authentication information, wherein the wifi network type determined automatically is adopted in the process of attempting to connect the wifi network;
wherein attempting to connect to at least one wifi network in the scan results using the network authentication information comprises: determining the type of a target wifi network by utilizing network authentication information input by a user; determining a wifi network belonging to a target wifi network type in the scanning result; and connecting the determined wifi network by using the network authentication information.
2. The method of claim 1, further comprising, before obtaining the network authentication information input by the user: and displaying an interface for prompting the user to input the network authentication information.
3. The method of claim 1, wherein attempting to connect to at least one wifi network in the scan results using the network authentication information comprises:
and if the scanning result only comprises one wifi network, establishing connection with the wifi network by using the network authentication information according to the type of the wifi network obtained from the broadcast frame of the wifi network.
4. The method of claim 1, wherein determining the target wifi network type using the network authentication information entered by the user comprises:
and if the network authentication information input by the user is empty, determining that the target wifi network type is an open network.
5. The method of claim 1, wherein determining the target wifi network type using the network authentication information entered by the user comprises:
and if the network authentication information input by the user is a password, identifying the target wifi network type by using the length of the password.
6. The method of claim 5, wherein identifying a target wifi network type using the length of the password comprises:
judging whether the length of the password accords with the preset wired equivalent privacy WEP password length or not, and if not, determining that the target wifi network type is WPA/WPA 2;
if so, determining that the target wifi network type is WEP or WPA/WPA2, and preferentially connecting the wifi network of the WEP type when the determined wifi network is connected.
7. The method of claim 1, wherein the network authentication information input by the user comprises: and determining the target wifi network type to be 802.1x EAP according to the certificate information or the user name and the password.
8. The method according to claim 1, wherein if it is determined that there are more than two wifi networks belonging to the target wifi network type in the scanning result, the wifi networks determined by the connection are executed according to a preset priority rule.
9. The method of claim 8, wherein the preset priority rule comprises:
and trying connection according to the sequence of wifi signal strength from high to low.
10. The method of claim 1, further comprising:
and if the wifi network does not exist in the scanning result, displaying prompt information of the wifi network which is not scanned.
11. The method of any one of claims 1 to 10, further comprising:
if all the wifi networks in the scanning result are failed to connect, displaying prompt information of network connection failure; alternatively, the first and second electrodes may be,
and if one wifi network in the connection scanning result is successful, displaying prompt information of successful network connection.
12. A wifi network connection device, characterized in that, the device includes:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a Service Set Identifier (SSID) input by a user;
the scanning unit is used for carrying out wifi network scanning by using the SSID to obtain a scanning result;
the second acquisition unit is used for acquiring the network authentication information input by the user;
the connecting unit is used for attempting to connect with at least one wifi network in the scanning result by utilizing the network authentication information, wherein the wifi network type which is automatically determined is adopted in the process of attempting to connect with the wifi network;
wherein, the connection unit specifically executes: determining the type of a target wifi network by utilizing network authentication information input by a user; determining a wifi network belonging to a target wifi network type in the scanning result; and connecting the determined wifi network by using the network authentication information.
13. The apparatus according to claim 12, wherein the first obtaining unit is further configured to present an interface prompting a user to input network authentication information, and obtain the network authentication information input by the user from the interface.
14. The apparatus according to claim 12, wherein the connection unit is configured to perform:
and if the scanning result only comprises one wifi network, establishing connection with the wifi network by using the network authentication information according to the type of the wifi network obtained from the broadcast frame of the wifi network.
15. The apparatus according to claim 12, wherein the connection unit is configured to perform:
and if the network authentication information input by the user is empty, determining that the target wifi network type is an open network.
16. The apparatus according to claim 12, wherein the connection unit is configured to perform:
and if the network authentication information input by the user is a password, identifying the target wifi network type by using the length of the password.
17. The apparatus according to claim 16, wherein the connection unit, when identifying the target wifi network type using the length of the password, specifically performs:
judging whether the length of the password accords with the preset wired equivalent privacy WEP password length or not, and if not, determining that the target wifi network type is WPA/WPA 2;
if so, determining that the target wifi network type is WEP or WPA/WPA2, and preferentially connecting the wifi network of the WEP type when the determined wifi network is connected.
18. The apparatus according to claim 12, wherein the connection unit is configured to perform:
if the network authentication information input by the user comprises: and determining the target wifi network type to be 802.1x EAP according to the certificate information or the user name and the password.
19. The apparatus according to claim 12, wherein the connection unit is configured to perform:
and if the number of the wifi networks belonging to the target wifi network type in the scanning result is more than two, executing the wifi networks determined by the connection according to a preset priority rule.
20. The apparatus of claim 19, wherein the preset priority rule comprises:
and trying connection according to the sequence of wifi signal strength from high to low.
21. The apparatus of any one of claims 12 to 20, further comprising:
the prompting unit is used for displaying prompting information which is not scanned to the wifi network if the wifi network does not exist in the scanning result; alternatively, the first and second electrodes may be,
if all the wifi networks in the scanning result are failed to connect, displaying prompt information of network connection failure; alternatively, the first and second electrodes may be,
and if one wifi network in the connection scanning result is successful, displaying prompt information of successful network connection.
22. A wifi network connection device, which comprises
A memory including one or more programs;
one or more processors, coupled to the memory, that execute the one or more programs to implement:
acquiring a service set identifier SSID input by a user;
carrying out wifi network scanning by using the SSID to obtain a scanning result;
acquiring network authentication information input by a user;
attempting to connect at least one wifi network in the scanning result by using the network authentication information, wherein the wifi network type determined automatically is adopted in the process of attempting to connect the wifi network;
wherein the attempting to connect to at least one wifi network in the scan results using the network authentication information comprises: determining the type of a target wifi network by utilizing network authentication information input by a user; determining a wifi network belonging to a target wifi network type in the scanning result; and connecting the determined wifi network by using the network authentication information.
CN201610984738.5A 2016-11-09 2016-11-09 Wifi network connection method, device and equipment Active CN108377500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610984738.5A CN108377500B (en) 2016-11-09 2016-11-09 Wifi network connection method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610984738.5A CN108377500B (en) 2016-11-09 2016-11-09 Wifi network connection method, device and equipment

Publications (2)

Publication Number Publication Date
CN108377500A CN108377500A (en) 2018-08-07
CN108377500B true CN108377500B (en) 2021-05-14

Family

ID=63016039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610984738.5A Active CN108377500B (en) 2016-11-09 2016-11-09 Wifi network connection method, device and equipment

Country Status (1)

Country Link
CN (1) CN108377500B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248380A (en) * 2019-06-18 2019-09-17 深圳慧源创新科技有限公司 A kind of method of the automatic connection unmanned plane WiFi signal of user terminal
CN110798835A (en) * 2019-09-16 2020-02-14 恒大智慧科技有限公司 Public wifi access method, mobile terminal and readable storage medium
CN111431854B (en) * 2020-02-23 2021-04-13 中国科学院信息工程研究所 Wi-Fi received signal strength-based double-factor authentication method and electronic device
CN113507709B (en) * 2021-09-10 2021-11-23 中国人民解放军总医院 Automatic network connection method and device for medical equipment in scene of medical internet of things

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101385279A (en) * 2006-02-17 2009-03-11 佳能株式会社 Communication apparatus, method and system
CN105517189A (en) * 2015-11-27 2016-04-20 小米科技有限责任公司 Method and apparatus for realizing WIFI connection

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7505596B2 (en) * 2003-12-05 2009-03-17 Microsoft Corporation Automatic detection of wireless network type
US20060068799A1 (en) * 2004-09-27 2006-03-30 T-Mobile, Usa, Inc. Open-host wireless access system
US20060106918A1 (en) * 2004-11-12 2006-05-18 Evert Matthew J Systems and methods for setting up a peripheral device for use on a wireless network
US7693516B2 (en) * 2004-12-28 2010-04-06 Vtech Telecommunications Limited Method and system for enhanced communications between a wireless terminal and access point
CN102572831B (en) * 2012-02-07 2014-09-10 中兴通讯股份有限公司 Method and system for access of multi-mode terminal to wireless local area network, and equipment
CN103415013A (en) * 2013-08-26 2013-11-27 南京市海聚信息科技有限公司 Method and system for enabling WiFi terminal to have rapid access to WiFi AP
CN103634794B (en) * 2013-10-30 2019-04-26 邦讯技术股份有限公司 By the WLAN terminal personal identification method for integrating Portal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101385279A (en) * 2006-02-17 2009-03-11 佳能株式会社 Communication apparatus, method and system
CN105517189A (en) * 2015-11-27 2016-04-20 小米科技有限责任公司 Method and apparatus for realizing WIFI connection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动互联网中多连接下网络的发现和选择;郭婵;《中国优秀硕士学位论文全文数据库》;20131130;全文 *

Also Published As

Publication number Publication date
CN108377500A (en) 2018-08-07

Similar Documents

Publication Publication Date Title
US20200177599A1 (en) Network connection method, hotspot terminal and management terminal
EP2975871B1 (en) Processing provisioning sim profile
CN108377500B (en) Wifi network connection method, device and equipment
EP3072334B1 (en) Method, system and apparatus for automatically connecting to wlan
CN103597799B (en) service access authentication method and system
US10069828B2 (en) Systems, methods, and media for authenticating multiple devices
US20180041893A1 (en) Method and system of multi-terminal mapping to a virtual sim card
EP3277027B1 (en) Wi-fi connection method, mobile terminal and storage medium
WO2018019046A1 (en) Key derivation method and apparatus
US9967099B2 (en) Method and apparatus for providing information
US20180034635A1 (en) GPRS System Key Enhancement Method, SGSN Device, UE, HLR/HSS, and GPRS System
CN104302015A (en) Adaptive WI-FI network connection method and system with hidden SSID
CN112136333A (en) Device pairing system and method, and device communication control system and method
EP3675541B1 (en) Authentication method and device
CN104488302B (en) Wireless connection authentication method and server
KR102471673B1 (en) Electronic device and method for controlling a connection of wireless communication thereof
CN113132973A (en) Equipment network distribution method and system and computer readable storage medium
CN104519490A (en) WIFI (wireless fidelity) connection method, WIFI connection device, mobile terminal and system
KR101807523B1 (en) Apparatus and method for identifying wireless network provider in wireless communication system
EP2614476B1 (en) Method and apparatus for connecting to online service
WO2017084456A1 (en) Wifi hotspot processing method, device and system
CN111818528B (en) Connection method and device of wireless local area network, storage medium and wireless access equipment
KR20220076491A (en) Provisioning a wireless network using a pre-shared key
US20210029543A1 (en) Method and device for authenticating device using wireless lan service
CN114760112B (en) Wireless local area network-oriented intelligent home equipment networking method, system, equipment and storage medium

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