The convenient method and system for logging in wireless network
Technical field
The present invention relates to wireless communication field, more particularly to a kind of convenient method and system for logging in wireless network.
Background technology
Wi-Fi is that a kind of permission electronic equipment is connected to a technology for WLAN, usually using 2.4G UHF or
5G SHF ISM radio frequency bands.It is connected to WLAN and is typically cryptoguard;But may also be open, thus permit
Perhaps on any equipment in the range of WLAN can be connected.
Current wireless technology is, it is necessary to wireless terminal client is using preceding knowing existing service set (SSID) and close
Code.Following problem can be produced:
1. the acquisition of service set and password is not convenient, and user can not in any case log in wireless network;
2. under commercial environment, it is known that the number of service set and password is numerous, Information Security cannot be ensured.
The existing method for logging in wireless network, not only login mode is not convenient enough, and security cannot be ensured, uses
Family can not relievedly connect commercial wireless network.
The patent of Publication No. CN104320408A provides a kind of login method of Wi-Fi Hotspot, and client is local
One focus AP log form of storage, and every record includes SSID, account number, password and pattern field, automatic login of client side Wi-
The method of Fi focuses AP includes:Client receives the SSID information of periphery AP broadcast, and chooses one of SSID;With what is obtained
SSID chooses pattern-word segment value with the consistent record of AP login modes as keyword search AP log forms, calculates record SSID
The matching length of field value and keyword;If there is a plurality of record with keyword match length is not 0, every matching record is calculated
Priority, choose the maximum record of priority;Corresponding account and password automated log on Wi-Fi Hotspot are recorded with what is chosen
AP.The focus login method that the invention is proposed supports same account number SSID's different with password login
Wi-Fi Hotspot, and the login method has good compatibility, only need to be real in the focus login module of client
Now this login method, just can normally run in existing Wi-Fi equipment and network.But the login method of the invention is not enough just
Prompt and security cannot be guaranteed.
The content of the invention
The technical problem to be solved in the present invention purpose is to provide a kind of convenient method and system for logging in wireless network, is used
With solve the problems, such as in the prior art user can not freely log in wireless network and under commercial environment security is low.
To achieve these goals, the technical solution adopted by the present invention is:
A kind of convenient method for logging in wireless network, including step:
The use state information of S1, the service set of acquisition router;
S2, untapped service set is determined whether, if so, obtaining the service set and password of configuration;Otherwise,
Terminate to log in;
S3, service set and password login wireless network according to the configuration of the acquisition.
Further, step is also included between step S2 and step S3:
Whether have duplication of name, if so, then prompting user reconfigures if judging the service set of the configuration of the acquisition;If
Nothing, then complete configuration.
Further, step S2 is specifically included:
The service set not configured is determined whether, if so, obtaining the service set and password of configuration;
If without the service set not configured, determining whether services set mark that is configured but not used in Preset Time
Know, if so, obtaining the service set and password for reconfiguring;Otherwise, terminate to log in.
Further, step S1 is to obtain the service set of router by the H5 protocol entry radio configuration pages
Use state information.
Further, the router supports multiple service set spaces simultaneously and the multiple service set is empty
Between carry out that service set and password is independently configured by the radio configuration page.
A kind of convenient system for logging in wireless network, including:
Acquisition module, the use state information of the service set for obtaining router;
Judge module, for determining whether untapped service set, if so, obtain configuration service set and
Password;Otherwise, terminate to log in;
Login module, service set and password login wireless network for the configuration according to the acquisition.
Further, also include:
Correction verification module, for judging whether the service set of configuration of the acquisition has duplication of name, if so, then pointing out user
Reconfigure;If nothing, configuration is completed.
Further, the judge module includes:
Non- configuration determination unit, for determining whether the service set not configured, if so, obtaining the services set of configuration
Mark and password;
Judging unit is not used, if configured but not pre- for without the service set not configured, determining whether
If the service set that the time uses, if so, obtaining the service set and password for reconfiguring;Otherwise, terminate to log in.
Further, the acquisition module includes:
Configuration page acquiring unit, for by the H5 protocol entry radio configuration pages obtaining the services set mark of router
The use state information of knowledge.
Further, the judge module includes:
Wireless separate configurations unit, for making the router support multiple service set spaces and described many simultaneously
Individual service set space carries out that service set and password is independently configured by the radio configuration page.
It is of the invention compared with traditional technology, have the following advantages:
1., using the present invention, user is more convenient and safely logs in wireless network.
2. each user has exclusive service set and password, and influence will not be produced on other users when using.
Brief description of the drawings
Fig. 1 is the method flow diagram of a kind of convenient login wireless network that embodiment one is provided;
Fig. 2 is the system construction drawing of a kind of convenient login wireless network that embodiment one is provided;
Fig. 3 is the method flow diagram of a kind of convenient login wireless network that embodiment two is provided;
Fig. 4 is the method flow diagram of a kind of convenient login wireless network that embodiment three is provided;
Fig. 5 is the system construction drawing of a kind of convenient login wireless network for implementing two, three offers;
Fig. 6 is the wireless separate configurations method schematic diagram of the embodiment of the present invention.
Specific embodiment
The following is specific embodiment of the invention and with reference to accompanying drawing, technical scheme is further described,
But the present invention is not limited to these embodiments.
Embodiment one
A kind of convenient method for logging in wireless network is present embodiments provided, as shown in figure 1, including step:
S11:Obtain the use state information of the service set of router;
S12:Untapped service set is determined whether, if so, obtaining the service set and password of configuration;It is no
Then, terminate to log in;
S13:According to the service set and password login wireless network of the configuration for obtaining.
Wireless network is the network realized using wireless communication technology.
Wireless network refers to " Wireless Fidelity " in the category of WLAN, substantially a kind of commercial verification,
It is also simultaneously a kind of Wireless networking technologies, computer was connected by netting twine in the past, and Wi-Fi is networked by radio wave;
Common is exactly a wireless router, and the effective range covered in the electric wave of this wireless router can use Wi-Fi
Connected mode is networked, if wireless router is connected to an adsl line or other online circuit, is otherwise known as
Focus.
Current wireless technology is, it is necessary to wireless terminal client is using preceding knowing existing service set (SSID) and close
Code.And obtain service set (SSID) and password and more bother, and user of service is numerous under commercial environment can produce safety
Hidden danger.
SSID is service set.Can be divided into for a WLAN by SSID technologies several needs different identity to verify
Sub-network, each sub-network is required for independent authentication, only can just enter phase by the user of authentication
The sub-network answered, prevents unauthorized user from entering present networks.
The SSID for the appearing below i.e. abbreviation of service set.
The present invention is used to solve the two problems, accomplishes to set at any time privately owned SSID and password is logged in, and
And set and do not influence other to be currently in use the user of wireless router using process, accomplish convenient login and its data communication
Safety.
In the present embodiment, step S11 is the use state information of the service set for obtaining router.
Wherein, step S11 is made with obtaining the service set of router by the H5 protocol entry radio configuration pages
Use status information.
H5 is HTML5, and one under kernel language, the standard generalized markup language of WWW is applied HTML
(HTML) the 5th material alteration.An application under HTML, standard generalized markup language." hypertext " refers to
Can be comprising non-legible elements such as picture, link, or even music, programs in the page.The structure of HTML includes
" head " part and " main body " part, wherein " head " portion provides the information on webpage, " main body " part provides the specific interior of webpage
Hold.
It is the radio configuration webpage in order to allow client easily to sign in wireless router by H5 protocol entries.
User logs in the router radio configuration page first by H5 agreements by the SSID that router is fixed, and checks at present
Router SSID free time and be currently in use SSID information situations such as.
In the present embodiment, step S12 is to determine whether untapped service set, if so, obtaining the service of configuration
Set identifier (SSID) and password;Otherwise, terminate to log in.
When ensuring that SSID has unused state, SSID and password can be configured by page configuration wireless messages.
In the present embodiment, the router supports multiple SSID spaces simultaneously and the multiple SSID spaces are by wireless
The configuration page carries out that SSID and password is independently configured.
Wherein, configuration SSID and password concrete mode are as shown in fig. 6, the wireless channel including 2.4G and 5G.
Each wireless channel has the MAC Address (BSSID) of multiple bridge joint wireless networks, it is preferred that have 16 BSSID, right
Answer 16 SSID, wherein SSID1 to be used for the login of the H5 pages to use, be that system default is set, it is impossible to change, without password, can support
16 users log in simultaneously.
BSSID2~BSSID16 is used to general user's online, and correspondence SSID2~SSID16 general users can be
Configured after logging in the H5 pages, each SSID can support that multiple users surf the Net.
Channel/frequency range/wireless mode is administrator configurations, is made because influencing whether the user of all SSID when being operated
With so general user cannot configure.
In the present embodiment, as user a to environment for having a Wi-Fi, the SSID1 without password is connected, by Domain Hijacking
Or router address is directly inputted, using H5 protocol entries, the user of software design patterns SSID1 connections is directly entered radio configuration
Administration page.
User first reads the information of current all SSID, confirms the SSID that whether current SSID was connected before having, such as
Have, connection can be attempted.
If cannot login successfully, by system queries whether have BSSID be not used, if so, obtain configuration SSID and
Password, if nothing, terminates to log in.
Specifically, if all BSSID are being used, this operation terminates.
If there is BSSID to be not used, user is input into new SSID and password by the H5 pages.
In the present embodiment, step S13 is the service set and password login wireless network of the configuration according to obtaining.
If the new SSID and password of user configuring can use, login successfully.
Mutually it is independent of each other between each SSID, does not influence other to be currently in use the use of active wireless network after reconfiguring
Family, lifts Consumer's Experience.Also, each user has exclusive SSID and password, enhances the security of Web vector graphic.
The present embodiment additionally provides a kind of convenient system for logging in wireless network, as shown in Fig. 2 including:
Acquisition module 21, the use state information of the service set for obtaining router;
Judge module 22, for determining whether untapped service set, if so, obtaining the service set of configuration
And password;Otherwise, terminate to log in;
Login module 23, for service set and password login wireless network according to the configuration for obtaining.
In the present embodiment, acquisition module 21 includes:
Configuration page acquiring unit, for by the H5 protocol entry radio configuration pages obtaining the services set mark of router
The use state information of knowledge.
It is the radio configuration webpage for allowing client easily to sign in wireless router by H5 protocol entries.
Specifically, user logs in the router radio configuration page first by H5 agreements by the SSID that router is fixed,
Check current router SSID free time and be currently in use SSID information situations such as.
In the present embodiment, when ensuring that SSID has unused state, can be configured by page configuration wireless messages
SSID and password.
Judge module 22 includes:
Wireless separate configurations unit, for making router support multiple SSID spaces and the multiple SSID spaces simultaneously
Carry out that SSID and password is independently configured by the radio configuration page.
Wherein, configuration SSID and password concrete mode are as shown in Figure 6.
Each wireless channel has the MAC Address (BSSID) of multiple bridge joint wireless networks, it is preferred that have 16 BSSID, right
Answer 16 SSID, wherein SSID1 to be used for the login of the H5 pages to use, be that system default is set, it is impossible to change, without password, can support
16 users log in simultaneously.
BSSID2~BSSID16 is used to general user's online, and correspondence SSID2~SSID16 general users can be
Configured after logging in the H5 pages, each SSID can support that multiple users surf the Net.
Channel/frequency range/wireless mode is administrator configurations, is made because influencing whether the user of all SSID when being operated
With so general user cannot configure.
In the present embodiment, as user a to environment for having a Wi-Fi, the SSID1 without password is connected, by Domain Hijacking
Or router address is directly inputted, using H5 protocol entries, the user of software design patterns SSID1 connections is directly entered radio configuration
Administration page.
User first reads the information of current all SSID, confirms the SSID that whether current SSID was connected before having, such as
Have, connection can be attempted.
If cannot login successfully, by system queries whether have BSSID be not used, if so, obtain configuration SSID and
Password, if nothing, terminates to log in.
Login module 23, for service set and password login wireless network according to the configuration for obtaining.
If the new SSID and password of user configuring can use, login successfully.
Embodiment two
A kind of convenient method for logging in wireless network is present embodiments provided, as shown in figure 3, including step:
S31:Obtain the use state information of the service set of router;
S32:Untapped service set is determined whether, if so, obtaining the service set and password of configuration;It is no
Then, terminate to log in;
S33:Whether have duplication of name, if any then prompting user reconfigures if judging the service set of the configuration for obtaining;It is no
Then, configuration is completed;
S34:According to the service set and password login wireless network of the configuration for obtaining.
It is with the difference of embodiment one:
In the present embodiment, step S33 is to judge whether the service set of configuration for obtaining has duplication of name, if any then pointing out
User reconfigures;Otherwise, configuration is completed.
Before configuration take-effective, system can check whether the SSID of configuration has duplication of name phenomenon, if the SSID for repeating, point out to use
Family reconfigures.The configuration take-effective if without repeating, the SSID modules are restarted, and the use of other SSID modules is not influenceed.
After configuration take-effective, the SSID and password login wireless network that have changed are used.
The present embodiment additionally provides a kind of convenient system for logging in wireless network, as shown in figure 5, including:
Acquisition module 51, the use state information of the service set for obtaining router;
Judge module 52, for determining whether untapped service set, if so, obtaining the service set of configuration
And password;Otherwise, terminate to log in;
Whether correction verification module 53, the service set of the configuration for judging to obtain has duplication of name, if so, then prompting user weight
New configuration;If nothing, configuration is completed;
Login module 54, for service set and password login wireless network according to the configuration for obtaining.
It is with the difference of embodiment one, including correction verification module 53.
Specifically, being used for before configuration take-effective, system can check whether the SSID of configuration has duplication of name phenomenon, if repeat
SSID, points out user to reconfigure.The configuration take-effective if without repeating, the SSID modules are restarted, and other SSID modules are not influenceed
Use.
After configuration take-effective, the SSID and password login wireless network that have changed are used.
By after verification, configured in the case where judging without bearing the same name, it is to avoid configuration failure caused by because bearing the same name.
Enhance security.
Embodiment three
A kind of convenient method for logging in wireless network is present embodiments provided, as shown in figure 4, including step:
S41:Obtain the use state information of the service set of router;
S42:The service set not configured is determined whether, if so, obtaining the service set and password of configuration;
S43:If without the service set not configured, determining whether service that is configured but not used in Preset Time
Set identifier, if so, obtaining the service set and password for reconfiguring;Otherwise, terminate to log in;
S44:Whether have duplication of name, if any then prompting user reconfigures if judging the service set of the configuration for obtaining;It is no
Then, configuration is completed;
S45:According to the service set and password login wireless network of the configuration for obtaining.
The present embodiment is whether user has BSSID to be not used by system queries with the difference of embodiment two.Do not make
Situation includes:
1. SSID and password were not configured;
2. configured mistake, but the SSID of corresponding SSID endless connections in Preset Time.
Therefore, determine whether that untapped SSID comprises determining whether the SSID not configured and determines whether to have matched somebody with somebody
Put the SSID not used in Preset Time.
In the present embodiment, the SSID not configured first is determined whether, if so, obtaining the SSID and password of configuration;
If without the SSID not configured, then SSID that is configured but not used in Preset Time is determined whether, if so, obtaining
Take the SSID and password for reconfiguring;Otherwise, terminate to log in.
The present embodiment additionally provide it is a kind of it is convenient log in wireless network system, as shown in figure 5, it is different from embodiment two it
Place is:
Judge module 52 includes:
Non- configuration determination unit, for determining whether the service set not configured, if so, obtaining the services set of configuration
Mark and password;
Judging unit is not used, if configured but not pre- for without the service set not configured, determining whether
If the service set that the time uses, if so, obtaining the service set and password for reconfiguring;Otherwise, terminate to log in.
Whether user has BSSID to be not used by system queries.Untapped situation includes:
1. SSID and password were not configured;
2. configured mistake, but the SSID of corresponding SSID endless connections in Preset Time.
Therefore, judge module 52 specifically includes non-configuration determination unit and unused judging unit, and being respectively used to judgement is
It is no to have the SSID that does not configure and determine whether the configured SSID not used in Preset Time.
Specific embodiment described herein is only to the spiritual explanation for example of the present invention.Technology neck belonging to of the invention
The technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar mode
Generation, but without departing from spirit of the invention or surmount scope defined in appended claims.