CN108377500A - A kind of wifi network connection method, device and equipment - Google Patents

A kind of wifi network connection method, device and equipment Download PDF

Info

Publication number
CN108377500A
CN108377500A CN201610984738.5A CN201610984738A CN108377500A CN 108377500 A CN108377500 A CN 108377500A CN 201610984738 A CN201610984738 A CN 201610984738A CN 108377500 A CN108377500 A CN 108377500A
Authority
CN
China
Prior art keywords
network
wifi 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.)
Granted
Application number
CN201610984738.5A
Other languages
Chinese (zh)
Other versions
CN108377500B (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

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]

Landscapes

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

Abstract

The present invention provides a kind of wifi network connection method, device and equipment, wherein method includes:Obtain service set SSID input by user;Wifi network scanning is carried out using the SSID, obtains scanning result;Obtain network authentication information input by user;It attempts to connect at least one of scanning result wifi network using the network authentication information, wherein during attempting to connect wifi network, using the wifi network type automatically determined out.User is not necessarily to oneself judge and select the network type of wifi network to be accessed through the invention, it is only necessary to input SSID and network authentication information can be realized as Auto-matching and the connection of network, simplify user's operation.

Description

A kind of wifi network connection method, device and equipment
【Technical field】
The present invention relates to computer application technology, more particularly to a kind of wifi network connection method, device and equipment.
【Background technology】
The common network type of wifi includes mainly at present:OPEN, WEP, WPA/WPA2,802.1xEAP etc..Wherein, OPEN networks are open network, do not need certification and can access, will not be encrypted in data transmission procedure.WEP(Wired Equivalent Privacy, Wired Equivalent Privacy) it is encrypted using the key of regular length and static state.WPA(Wi-Fi Protected Access, protection wireless network access) be wildcard mode encryption type, mainly include WPA and Two standards of WPA2.802.1x EAP (Extensible Authentication Protocol, Extensible Authentication Protocol) are needed Certificate or username and password is wanted to be authenticated.
When user needs to connect wifi network, usually there are two types of modes:One is available by wifi scanning discoveries Network scan list selects a wifi network to be attached from network scan list.Second is by adding wifi network The mode of network, the corresponding wifi networks of the inserted SSID of connection user, including hide the network of SSID.Wherein, when user passes through When adding the mode of wifi network, user oneself is needed to specify network type, i.e., from OPEN, WEP, WPA/WPA2,802.1x One is specified in EAP as the network type to be connected, and can carry out wifi network connection.As shown in fig. 1A, work as user It after selection addition network, needs to input the SSID to be connected on interface as shown in fig. 1A, and clicks " safety " choosing Xiang Hou selects the network type to be connected from interface as shown in Figure 1 b.Android the and IOS systems of mainstream are at present So.However, for wireless network knowledge shortcoming user for, it is often at a loss as to what to do, on the one hand operate it is comparatively laborious, in addition On the one hand, wifi network can not correctly usually be connected because of network type input error.
【Invention content】
In view of this, the present invention provides a kind of wifi network connection method, device and equipment, in order to simplify user behaviour Make.
Specific technical solution is as follows:
The present invention provides a kind of wifi network connection method, this method includes:
Obtain service set SSID input by user;
Wifi network scanning is carried out using the SSID, obtains scanning result;
Obtain network authentication information input by user;
It attempts to connect at least one of scanning result wifi network using the network authentication information, wherein During attempting connection wifi network, using the wifi network type automatically determined out.
Further include before obtaining network authentication information input by user according to a preferred embodiment of the invention:Show User is prompted to input the interface of network authentication information.
According to a preferred embodiment of the invention, connection is attempted in the scanning result using the network authentication information Each wifi network includes:
If only including a wifi network in the scanning result, according to what is obtained from the broadcast frame of the wifi network Wifi network type establishes the connection with the wifi network using the network authentication information.
According to a preferred embodiment of the invention, attempt to connect in the scanning result using the network authentication information At least one wifi network includes:
Using network authentication information input by user, target wifi network type is determined;
Determine the wifi network for belonging to target wifi network type in the scanning result;
Using the network authentication information, the wifi network determined is connected.
According to one preferred embodiment of the present invention target wifi network is determined using network authentication information input by user Type includes:
If the network authentication information input by user is sky, it is determined that target wifi network type is open network.
According to one preferred embodiment of the present invention target wifi network is determined using network authentication information input by user Type includes:
If the network authentication information input by user is password, target wifi network is identified using the length of the password Network type.
According to a preferred embodiment of the invention, include using the length identification target wifi network type of the password:
Judge whether the length of the password meets preset Wired Equivalent Privacy WEP Password Lengths, if it is not, then determining The target wifi network type is WPA/WPA2;
If it is, determining that the target wifi network type is WEP or WPA/WPA2, determined in the connection When wifi network, the wifi network of preferential attachment WEP types.
According to a preferred embodiment of the invention, if the network authentication information input by user includes:Certificate information, or Person, username and password, it is determined that the target wifi network type is 802.1x EAP.
According to a preferred embodiment of the invention, however, it is determined that belong to target wifi network type in the scanning result Wifi network is two or more, then executes the wifi network for connecting and determining according to preset priority rule.
According to a preferred embodiment of the invention, the preset priority rule includes:
Connection is attempted according to the sequence of wifi signal strengths from high to low.
According to a preferred embodiment of the invention, this method further includes:
If wifi network is not present in the scanning result, show the prompt message for not scanning wifi network.
According to a preferred embodiment of the invention, this method further includes:
If each wifi network in the scanning result is all connected with failure, show the prompt message of network connection failure; If wifi network success, shows the successful prompt message of network connection one of in connection scanning result.
The present invention also provides a kind of equipment, including
Memory, including one or more program;
One or more processor is coupled to the memory, executes one or more of programs, to realize:
Obtain service set SSID input by user;
Wifi network scanning is carried out using the SSID, obtains scanning result;
Obtain network authentication information input by user;
It attempts to connect at least one of scanning result wifi network using the network authentication information.
The present invention also provides a kind of wifi network attachment device, which includes:
First acquisition unit, for obtaining service set SSID input by user;
Scanning element obtains scanning result for carrying out wifi network scanning using the SSID;
Second acquisition unit, for obtaining network authentication information input by user;
Connection unit connects at least one of scanning result wifi for being attempted using the network authentication information Network, wherein during attempting to connect wifi network, using the wifi network type automatically determined out.
According to a preferred embodiment of the invention, the first acquisition unit is additionally operable to show prompt user's input network The interface of authentication information obtains SSID input by user from the interface.
According to a preferred embodiment of the invention, the connection unit is specific to execute:
If only including a wifi network in the scanning result, according to what is obtained from the broadcast frame of the wifi network Wifi network type establishes the connection with the wifi network using the network authentication information.
According to a preferred embodiment of the invention, the connection unit is specific to execute:
Using network authentication information input by user, target wifi network type is determined;
Determine the wifi network for belonging to target wifi network type in the scanning result;
Using the network authentication information, the wifi network determined is connected.
According to a preferred embodiment of the invention, the connection unit is specific to execute:
If the network authentication information input by user is sky, it is determined that target wifi network type is open network.
According to a preferred embodiment of the invention, the connection unit is specific to execute:
If the network authentication information input by user is password, target wifi network is identified using the length of the password Network type.
According to a preferred embodiment of the invention, the connection unit is in the length identification target wifi using the password It is specific to execute when network type:
Judge whether the length of the password meets preset Wired Equivalent Privacy WEP Password Lengths, if it is not, then determining The target wifi network type is WPA/WPA2;
If it is, determining that the target wifi network type is WEP or WPA/WPA2, determined in the connection When wifi network, the wifi network of preferential attachment WEP types.
According to a preferred embodiment of the invention, the connection unit is specific to execute:
If the network authentication information input by user includes:Certificate information, alternatively, username and password, it is determined that institute It is 802.1x EAP to state target wifi network type.
According to a preferred embodiment of the invention, the connection unit is specific to execute:
If it is determined that the wifi network for belonging to target wifi network type in the scanning result is two or more, then according to pre- If priority rule execute and described connect the wifi network determined.
According to a preferred embodiment of the invention, the preset priority rule includes:
Connection is attempted according to the sequence of wifi signal strengths from high to low.
According to a preferred embodiment of the invention, which further includes:
Prompt unit shows if for wifi network to be not present in the scanning result and does not scan wifi network Prompt message;If alternatively, each wifi network in the scanning result is all connected with failure, show the prompt of network connection failure Information;Alternatively, if wifi network success one of in connection scanning result, shows network connection and successfully prompts to believe Breath.
As can be seen from the above technical solutions, user judges without oneself and selects wifi network to be accessed through the invention Network type, it is only necessary to input SSID and network authentication information can be realized as Auto-matching and the connection of network, simplify User's operation.
【Description of the drawings】
The operation interface schematic diagram that Fig. 1 a and Fig. 1 b are used when respectively connecting wifi network in the prior art;
Fig. 2 is main method flow chart provided in an embodiment of the present invention;
Fig. 3 a are the interface schematic diagram of input SSID provided in an embodiment of the present invention;
Fig. 3 b are the interface schematic diagram of input network authentication information provided in an embodiment of the present invention;
Fig. 4 is the flow chart of preferred implementation method provided in an embodiment of the present invention;
Fig. 5 is structure drawing of device provided in an embodiment of the present invention;
Fig. 6 is equipment structure chart provided in an embodiment of the present invention.
【Specific implementation mode】
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments The present invention is described in detail.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, is not intended to be limiting The present invention.In the embodiment of the present invention and "an" of singulative used in the attached claims, " described " and "the" It is also intended to including most forms, unless context clearly shows that other meanings.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation of description affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate:Individualism A, exists simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, it is a kind of relationship of "or" to typically represent forward-backward correlation object.
Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement Or event) when " or " in response to detection (condition or event of statement) ".
Fig. 2 is main method flow chart provided in an embodiment of the present invention, and as shown in Figure 2, this method includes mainly following Step:
In 201, SSID input by user is obtained.
In embodiments of the present invention, when user's selection in such a way that oneself inputs SSID come when scanning wifi network, can be with By such as clicking " addition network " as shown in fig. 1A, then input what user to be connected on interface as shown in Figure 3a The SSID of wifi network.Other than using the SSID of input user's wifi network to be connected on the interface shown in Fig. 3 a, The mode of other inputs SSID may be used, if such as user connected the wifi network of the SSID before, then going through The SSID of the wifi network may be had existed in Records of the Historian record, therefore, user can be by selecting the SSID's in historical record Mode inputs.
In 202, wifi network scanning is carried out using SSID, obtains scanning result.
In this step, Probe Request (probe requests thereby) frame that SSID can be carried by transmission, with searching and institute State the matched wifi networks of SSID;After AP (access point) receives Probe Request, if itself wifi network and Probe The SSID matchings that Request is carried, then return to Probe Response (probe response) frame, wrapped in the Probe Response frames SSID containing wifi network and network type information, these SSID just constitute scanning result.
The wifi network scanned in this step may include two kinds:One is the AP for actively sending broadcast frame is corresponding Wifi network, another kind are the corresponding wifi networks of AP for not sending broadcast frame actively, this wifi for also referred to as hiding SSID Network.
After completing wifi network scanning, obtained scanning result may have several situations:
The first situation:Wifi network is not present in scanning result, i.e., any wifi network is not scanned, then this feelings Condition can show the prompt message for not scanning wifi network to user.User can check whether that input SSID is wrong, or It changes a SSID and re-starts input etc..
The second situation:Only include a wifi network in scanning result, then in this case, actually user will connect What the network type of the wifi network connect was to determine (has learned that the wifi network in scanning process by Probe Response The network type of network), target wifi network is also to determine, is exactly the wifi network in scanning result.
The third situation:Include more than two wifi networks in scanning result, in this case, target wifi network is just It does not know.
For the second situation and the third situation, it can show prompt user after obtaining scanning result and input network The interface of authentication information, user can input network authentication information at the interface.
In 203, network authentication information input by user is obtained.
In the present embodiment, it can be provided in following items at least on the interface of prompt user input network authentication information It is a kind of to be inputted for user:
1) passphrase (password), this is a kind of relatively common situation.User inputs one on interface in password box String character string.Password is network authentication information used in the network types such as WEP or WPA/WPA2.
2) certificate information may include CA (CertificationAuthority, visa-granting office) certificate, user certificate Deng.Digit integer is typically by terminal device application and to be installed in terminal device in advance, and certificate information is used for terminal device With authentication of the server device in carrying out data exchange process and data encrypting and deciphering.802.1x EAP network types are often Using this network authentication information, user needs to select mounted certificate information in terminal, can be successfully accessed 802.1x The wifi network of EAP types.
3) username and password.This is also the network authentication information that 802.1x EAP network types can use, at some Such as enterprise's wifi network, campus wifi network, after the installation for completing digital certificate, when logging in wifi network every time, Without carrying out the input of certificate information, but need to input username and password progress authentication.
4) not inputting any network authentication information, i.e. user eliminates the input of network authentication information, it is also assumed that with The network authentication information of family input is sky.
For example, it is assumed that user has input SSID on the interface shown in Fig. 3 a be " test-wifi ", user can be further The selection input network authentication information on interface as shown in Figure 3b can select input password, or selection input certificate letter Breath, or selection input username and password, user can also input nothing, directly select determination.
In 204, at least one of connection scanning result wifi network is attempted using network authentication information, wherein During attempting connection wifi network, using the wifi network type automatically determined out.
If the network authentication information that user inputs in above-mentioned 203 is sky, it can determine that target wifi network type is Open network determines the wifi network for belonging to open network in scanning result, and connects the wifi network determined.If swept It retouches in result that there are multiple wifi networks for belonging to open network, then can be attached according to preset priority orders, directly To successful connection.Such as it can be attached according to the sequence of signal strength from high to low.
If the network authentication information that user inputs in above-mentioned 203 is password, target type is WEP or WAP/WAP2, The wifi network for belonging to WEP and WAP/WAP2 network types can be determined from scanning result, then utilized input by user Password attempts the wifi network that connection is determined one by one according to certain priority.For example, can according to signal strength from height to Low sequence is attached.
In this case, there is also a kind of preferred embodiments, i.e., know first with Password Length input by user Other network type is 5 or 13 since Password Length used by WEP is fixed, such as by ASCII character input length, and The Password Length that WAP/WAP2 is used is variable.Therefore it is default can to first determine whether Password Length input by user meets WEP Password Lengths, if it is not, then can directly determine target wifi network type be WPA/WPA2, determine in scanning result Belong to the wifi network of WPA/WPA2 and is attached.Equally if there is multiple wifi networks for belonging to WPA/WPA2, then may be used To be attached according to preset priority rule, such as it is attached from high to low according to signal strength.If user inputs Password Length meet preset WEP Password Lengths, then can determine that target wifi network may be the wifi network of WEP, but It is also likely to be the wifi network of WPA/WPA2.It in this case, can be with the wifi network of WEP types in preferential attachment scanning result Network, if it fails to connect, reconnecting the wifi network of WPA/WPA2.
If the network authentication information that user inputs in 203 is certificate information, alternatively, username and password, then it can be true The wifi network that sets the goal type is 802.1x EAP, and the wifi network for belonging to 802.1x EAP is determined in scanning result, is gone forward side by side Row connection.It, can be according to preset preferential if determining multiple wifi networks for belonging to 802.1x EAP in scanning result Grade sequence is attached, until successful connection, such as the sequence according to signal strength from high to low.
Certainly, in actual use, there may also be other kinds of wifi networks, or with network technology The wifi network for new type occur is continued to develop, but can be realized based on core of the invention mode and select net without user Network type, but automatically attempt to connect wifi network from scanning result according to network authentication information input by user.
If wifi network success, can show network connection and successfully prompt to believe one of in connection scanning result It ceases, may include the SSID of the wifi network of successful connection in the prompt message.If being all connected with failure, network can be showed The prompt message that connection fails.
A preferred embodiment for realizing the above method of the present invention is provided by taking Fig. 4 as an example below, as shown in figure 4, this is excellent The embodiment is selected to may include:
In 401, SSID input by user is obtained.
In 402, wifi network scanning is carried out using SSID, obtains scanning result.
In 403, the wifi network quantity in scanning result is judged, if wifi network is not present in scanning result, Execute 404.If only including a wifi network in scanning result, 405 are executed.If there are multiple wifi in scanning result Network then executes 407.
In 404, show the prompt message for not scanning wifi network.
In 405, show prompt user and input the interface of network authentication information, and obtains network authentication letter input by user Breath.
In 406, a wifi network for including in scanning result is connected using network authentication information input by user, is turned To execution 414.
In 407, show prompt user and input the interface of network authentication information, and obtains network authentication letter input by user Breath.
In 408, network authentication information input by user is judged, if network authentication information input by user is sky, hold Row 409;If network authentication information input by user is certificate information, or is username and password, then 410 are executed;If user The network authentication information of input is password, then executes 411.
In 409, determines that target wifi network type is open network, connect in scanning result and belong to open network Wifi network executes 414.
In 410, determines that target wifi network type is 802.1x EAP, connect in scanning result and belong to 802.1x EAP Wifi network, execute 414.
In 411, judge whether Password Length input by user meets preset WEP Password Lengths, if not, executing 412;If so, executing 413.
In 412, determines that target wifi network type is WAP/WAP2, connect in scanning result and belong to WAP/WAP2's Wifi network executes 414.
In 413, determine target wifi network type be WEP or WAP/WAP2, connect scanning result in belong to WEP or The wifi network of person WAP/WAP2, wherein preferential attachment belong to the wifi network of WEP.
In 414, judge whether successful connection, if successful connection, executes 415;If being all connected with failure, execute 416。
In 415, show the successful prompt message of network connection, terminates flow.
In 416, show the prompt message that network connection fails, terminates flow.
The executive agent of the above method can be wifi network attachment device, which can be answering positioned at terminal device With, or can also be plug-in unit or Software Development Kit (Software in the application of terminal device DevelopmentKit, SDK) etc. functional units.
Fig. 5 is structure drawing of device provided in an embodiment of the present invention, as shown in figure 5, the device may include:First obtains list Member 01, scanning element 02, second acquisition unit 03 and connection unit 04, can also include prompt unit 05.Each component units Major function is as follows:
First acquisition unit 01 is responsible for obtaining SSID input by user.First acquisition unit 01 can show prompt and use first Family inputs the interface of network authentication information, and SSID input by user is then obtained from the interface.
Scanning element 02 is responsible for carrying out wifi network scanning using SSID, obtains scanning result.Specifically, scanning element 02 The Probe Request frames that SSID can be carried by transmission, to find and the matched wifi networks of SSID input by user;AP After receiving Probe Request, if the wifi network of itself is matched with the ProbeRequest SSID carried, return Probe Response frames include the SSID and network type information of wifi network in the Probe Response frames, these SSID just constitutes scanning result.
After obtaining scanning result, second acquisition unit 03 obtains network authentication information input by user.04 profit of connection unit At least one of connection scanning result wifi network is attempted with network authentication information, wherein is attempting connection wifi network In the process, using the wifi network type automatically determined out.
If not including wifi network in scanning result, it can be showed by prompt unit 05 and not scan carrying for wifi network Show information.User can check whether that input SSID is wrong, or change a SSID and re-start input etc..
If only including a wifi network in scanning result, connection unit 04 is according to from the broadcast frame of the wifi network The wifi network type of acquisition establishes the connection with the wifi network using network authentication information.
If in scanning result including multiple wifi networks, connection unit 04 can utilize network authentication input by user to believe Breath, determines target wifi network type;The wifi network for belonging to target wifi network type in scanning result is determined again;Utilize net Network authentication information connects the wifi network determined.
Wherein, if network authentication information input by user is sky, connection unit 04 can determine target wifi network class Type is open network.
If network authentication information input by user is password, connection unit 04 identifies target wifi using the length of password Network type.Specifically, it can be determined that whether the length of password meets preset Wired Equivalent Privacy WEP Password Lengths, if It is no, it is determined that target wifi network type is WPA/WPA2;If it is, determining that target wifi network type is WEP or WPA/ WPA2, connection unit 04, can be with the wifi networks of preferential attachment WEP types in the wifi network that connection is determined.
If network authentication information input by user includes:Certificate information, alternatively, username and password, then connection unit 04 It can determine that target wifi network type is 802.1x EAP.
In addition, if it is determined that scanning result in belong to target wifi network type wifi network be two or more, then The wifi network that connection is determined can be executed according to preset priority rule.It preferably, can be according to signal strength from height To the low wifi network determined that is linked in sequence.
If each wifi network in scanning result is all connected with failure, prompt unit 05 can show network connection failure Prompt message;If wifi network success, prompt unit 05 can show network connection one of in connection scanning result Successful prompt message.
The above method and device provided in an embodiment of the present invention can be to be arranged and run on the computer program in equipment It embodies.The equipment may include one or more processors, further include memory and one or more programs, as shown in Figure 6. Wherein the one or more program is stored in memory, is executed by said one or multiple processors to realize that the present invention is above-mentioned Method flow shown in embodiment and/or device operation.For example, the method stream executed by said one or multiple processors Journey may include:
Obtain service set SSID input by user;
Wifi network scanning is carried out using the SSID, obtains scanning result;
Obtain network authentication information input by user;
Each wifi network of connection is attempted in scanning result using network authentication information.
The terminal device that the embodiment of the present invention is applicable in can include but is not limited to such as intelligent mobile terminal, smart home Equipment, the network equipment, wearable device, intelligent medical equipment, PC (personal computer) etc..Wherein Intelligent mobile equipment can be with Including mobile phone, tablet computer, laptop, PDA (personal digital assistant), internet automobile etc..Smart home device May include intelligent appliance equipment, such as smart television, intelligent air condition, intelligent water heater, intelligent refrigerator, Intelligent air purifier Etc., smart home device can also include intelligent door lock, intelligent socket, intelligent electric lamp, intelligent camera head etc..The network equipment can To include interchanger, wireless aps, server etc..Wearable device may include such as smartwatch, intelligent glasses, intelligence Can bracelet, virtual reality device, augmented reality equipment, mixed reality equipment (can support virtual reality and augmented reality Equipment) etc..Intelligent medical equipment may include such as intelligent thermometer, intelligent blood pressure instrument, Intelligent blood sugar instrument etc..
Lift a specific application scenarios:
User needs smart television connecting wifi network, after entering network settings interface, by " addition network " into Enter to input the interface of SSID, inputs the SSID for the wifi network to be connected.Smart television obtains matching with the SSID by scanning Wifi network, then show prompt user input network authentication information interface.User can input network by the interface Authentication information, such as user input the password of 8 bit length of password.Determine that target wifi network type is WAP/ after judging WAP2 then determines that network type is the wifi network of WAP/WAP2 in search result, and using password input by user and is somebody's turn to do Wifi network establishes connection.In whole process, user is not necessarily to oneself judge and select the network type of wifi network to be accessed, only It needs to input SSID and password can be realized as Auto-matching and the connection of network, simplify user's operation.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of division of logic function, formula that in actual implementation, there may be another division manner.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various The medium of program code can be stored.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.

Claims (24)

1. a kind of wifi network connection method, which is characterized in that this method includes:
Obtain service set SSID input by user;
Wifi network scanning is carried out using the SSID, obtains scanning result;
Obtain network authentication information input by user;
It attempts to connect at least one of scanning result wifi network using the network authentication information, wherein attempting During connecting wifi network, using the wifi network type automatically determined out.
2. according to the method described in claim 1, it is characterized in that, before obtaining network authentication information input by user, go back Including:Show the interface that prompt user inputs network authentication information.
3. according to the method described in claim 1, it is characterized in that, using the network authentication information in the scanning result Attempting each wifi network of connection includes:
If only including a wifi network in the scanning result, according to the wifi obtained from the broadcast frame of the wifi network Network type establishes the connection with the wifi network using the network authentication information.
4. according to the method described in claim 1, it is characterized in that, attempting to connect the scanning using the network authentication information At least one of as a result wifi network includes:
Using network authentication information input by user, target wifi network type is determined;
Determine the wifi network for belonging to target wifi network type in the scanning result;
Using the network authentication information, the wifi network determined is connected.
5. according to the method described in claim 4, it is characterized in that, using network authentication information input by user, target is determined Wifi network type includes:
If the network authentication information input by user is sky, it is determined that target wifi network type is open network.
6. according to the method described in claim 4, it is characterized in that, using network authentication information input by user, target is determined Wifi network type includes:
If the network authentication information input by user is password, target wifi network class is identified using the length of the password Type.
7. according to the method described in claim 6, it is characterized in that, the length using the password identifies target wifi network class Type includes:
Judge whether the length of the password meets preset Wired Equivalent Privacy WEP Password Lengths, if it is not, then described in determining Target wifi network type is WPA/WPA2;
If it is, determining that the target wifi network type is WEP or WPA/WPA2, in the wifi network for connecting and determining When network, the wifi network of preferential attachment WEP types.
8. if according to the method described in claim 4, it is characterized in that, the network authentication information input by user includes:Card Letter ceases, alternatively, username and password, it is determined that the target wifi network type is 802.1x EAP.
9. according to the method described in claim 4, it is characterized in that, however, it is determined that belong to target wifi network in the scanning result The wifi network of type is two or more, then executes the wifi network for connecting and determining according to preset priority rule.
10. according to the method described in claim 9, it is characterized in that, the preset priority rule includes:
Connection is attempted according to the sequence of wifi signal strengths from high to low.
11. according to the method described in claim 1, it is characterized in that, this method further includes:
If wifi network is not present in the scanning result, show the prompt message for not scanning wifi network.
12. according to the method described in any claim of claim 1 to 11, which is characterized in that this method further includes:
If each wifi network in the scanning result is all connected with failure, show the prompt message of network connection failure;Alternatively,
If wifi network success, shows the successful prompt message of network connection one of in connection scanning result.
13. a kind of wifi network attachment device, which is characterized in that the device includes:
First acquisition unit, for obtaining service set SSID input by user;
Scanning element obtains scanning result for carrying out wifi network scanning using the SSID;
Second acquisition unit, for obtaining network authentication information input by user;
Connection unit connects at least one of scanning result wifi network for being attempted using the network authentication information Network, wherein during attempting to connect wifi network, using the wifi network type automatically determined out.
14. device according to claim 13, which is characterized in that the first acquisition unit is additionally operable to show prompt use Family inputs the interface of network authentication information, and SSID input by user is obtained from the interface.
15. device according to claim 13, which is characterized in that the connection unit, it is specific to execute:
If only including a wifi network in the scanning result, according to the wifi obtained from the broadcast frame of the wifi network Network type establishes the connection with the wifi network using the network authentication information.
16. device according to claim 13, which is characterized in that the connection unit, it is specific to execute:
Using network authentication information input by user, target wifi network type is determined;
Determine the wifi network for belonging to target wifi network type in the scanning result;
Using the network authentication information, the wifi network determined is connected.
17. device according to claim 16, which is characterized in that the connection unit, it is specific to execute:
If the network authentication information input by user is sky, it is determined that target wifi network type is open network.
18. device according to claim 16, which is characterized in that the connection unit, it is specific to execute:
If the network authentication information input by user is password, target wifi network class is identified using the length of the password Type.
19. device according to claim 18, which is characterized in that the connection unit is known using the length of the password It is specific to execute when other target wifi network type:
Judge whether the length of the password meets preset Wired Equivalent Privacy WEP Password Lengths, if it is not, then described in determining Target wifi network type is WPA/WPA2;
If it is, determining that the target wifi network type is WEP or WPA/WPA2, in the wifi network for connecting and determining When network, the wifi network of preferential attachment WEP types.
20. device according to claim 16, which is characterized in that the connection unit, it is specific to execute:
If the network authentication information input by user includes:Certificate information, alternatively, username and password, it is determined that the mesh Mark wifi network type is 802.1x EAP.
21. device according to claim 16, which is characterized in that the connection unit, it is specific to execute:
If it is determined that the wifi network for belonging to target wifi network type in the scanning result is two or more, then according to preset Priority rule executes the wifi network for connecting and determining.
22. device according to claim 21, which is characterized in that the preset priority rule includes:
Connection is attempted according to the sequence of wifi signal strengths from high to low.
23. according to the device described in any claim of claim 13 to 22, which is characterized in that the device further includes:
Prompt unit shows the prompt for not scanning wifi network if for wifi network to be not present in the scanning result Information;Alternatively,
If each wifi network in the scanning result is all connected with failure, show the prompt message of network connection failure;Alternatively,
If wifi network success, shows the successful prompt message of network connection one of in connection scanning result.
24. a kind of equipment, including
Memory, including one or more program;
One or more processor is coupled to the memory, executes one or more of programs, to realize:
Obtain service set SSID input by user;
Wifi network scanning is carried out using the SSID, obtains scanning result;
Obtain network authentication information input by user;
It attempts to connect at least one of scanning result wifi network using the network authentication information, wherein attempting During connecting wifi network, using the wifi network type automatically determined out.
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 true CN108377500A (en) 2018-08-07
CN108377500B 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)

Cited By (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
CN111431854A (en) * 2020-02-23 2020-07-17 中国科学院信息工程研究所 Wi-Fi received signal strength-based double-factor authentication method and electronic device
CN113507709A (en) * 2021-09-10 2021-10-15 中国人民解放军总医院 Automatic network connection method and device for medical equipment in scene of medical internet of things

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625132A (en) * 2003-12-05 2005-06-08 微软公司 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
US20060209773A1 (en) * 2004-12-28 2006-09-21 Hundal Sukhdeep S Method and system for enhanced wireless communications
CN101385279A (en) * 2006-02-17 2009-03-11 佳能株式会社 Communication apparatus, method and system
CN102572831A (en) * 2012-02-07 2012-07-11 中兴通讯股份有限公司 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
CN103634794A (en) * 2013-10-30 2014-03-12 邦讯技术股份有限公司 WLAN (Wireless Local Area Network) terminal identification recognition method by integrating Portal
CN105517189A (en) * 2015-11-27 2016-04-20 小米科技有限责任公司 Method and apparatus for realizing WIFI connection

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625132A (en) * 2003-12-05 2005-06-08 微软公司 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
US20060209773A1 (en) * 2004-12-28 2006-09-21 Hundal Sukhdeep S Method and system for enhanced wireless communications
CN101385279A (en) * 2006-02-17 2009-03-11 佳能株式会社 Communication apparatus, method and system
CN102572831A (en) * 2012-02-07 2012-07-11 中兴通讯股份有限公司 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
CN103634794A (en) * 2013-10-30 2014-03-12 邦讯技术股份有限公司 WLAN (Wireless Local Area Network) terminal identification recognition method by integrating Portal
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
郭婵: "移动互联网中多连接下网络的发现和选择", 《中国优秀硕士学位论文全文数据库》 *

Cited By (5)

* 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
CN111431854A (en) * 2020-02-23 2020-07-17 中国科学院信息工程研究所 Wi-Fi received signal strength-based double-factor authentication method and electronic device
CN113507709A (en) * 2021-09-10 2021-10-15 中国人民解放军总医院 Automatic network connection method and device for medical equipment in scene of medical internet of things
CN113507709B (en) * 2021-09-10 2021-11-23 中国人民解放军总医院 Automatic network connection method and device for medical equipment in scene of medical internet of things

Also Published As

Publication number Publication date
CN108377500B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN105282731B (en) Processing configures the method for profile and the electronic device for supporting this method
EP3072334B1 (en) Method, system and apparatus for automatically connecting to wlan
JP5784827B2 (en) Authentication system via two communication devices
US8909196B2 (en) Systems and methods for facilitating communication between mobile devices and wireless access points
JP4173866B2 (en) Communication device
US8245284B2 (en) Extensible network discovery
US8199699B2 (en) Legacy support for Wi-Fi protected setup
JP4978895B2 (en) Connection parameter setting system, method and server
EP1589703A2 (en) System and method for accessing a wireless network
EP2206278B1 (en) Systems and methods for wireless network selection based on attributes stored in a network database
JP2005142907A (en) Access point, terminal, encryption key setting system, encryption key setting method and program
JP2006067174A (en) Control program, communication relay device control method, and communication relay device and system
CN108377500A (en) A kind of wifi network connection method, device and equipment
CN104488302B (en) Wireless connection authentication method and server
CN109831441B (en) Identity authentication method, system and related components
JP2019036091A (en) Vehicle security system and vehicle security method
WO2010151692A1 (en) Systems and methods for obtaining network credentials
US20210029543A1 (en) Method and device for authenticating device using wireless lan service
JP6169642B2 (en) Screen sharing server, screen sharing method, and screen sharing program
JP2010124161A (en) Communication system, communication device, information processing method and information processing program
US20090271846A1 (en) Method and Device to Suspend the Access to a Service
JP2005092614A (en) Biometrics system, program, and information storage medium
US20080117837A1 (en) Method for setting wireless lan communication system and wireless lan access point
US20200228972A1 (en) Systems and methods for validating a device and authenticating a user
CN105871793A (en) Resource sharing method and device

Legal Events

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