Summary of the invention
The technical problem to be solved in the present invention is, it is provided that a kind of method for connecting network, network access equipment, wireless terminal
And network connection system.
The technical solution adopted for the present invention to solve the technical problems is: a kind of method for connecting network of structure, is used for having
The network access equipment of WPS pattern, including:
The radio connection request signal that described network access equipment monitoring wireless terminal sends, when described network access equipment is monitored
When the radio connection request signal strength values sent to described wireless terminal exceedes predetermined threshold value, the most described network access equipment opens
Use WPS pattern;
Described network access equipment and described wireless terminal carry out WPS negotiation, and are sent to by network configuration information described wireless
Terminal connects to set up wireless network;
Wherein, described wireless terminal monitors the wireless connection signal intensity level that its described network access equipment received is launched
When exceeding predetermined threshold value, described wireless terminal enables WPS pattern.
Preferably, described radio connection request signal is WiFi connection request signal;Described predetermined threshold value is RSSI threshold value;
Exceed pre-at the radio connection request signal strength values monitoring the transmission of described wireless terminal when described network access equipment
If in step during threshold value, including:
By the signal of the WiFi connection request signal that wireless terminal described in the RX electric circuit inspection of described network access equipment sends
Field intensity, and it is converted into RSSI value;
By RSSI threshold ratio default with described network access equipment for the described RSSI value detected relatively, when described RSSI value is more than
Or during equal to described RSSI threshold value, it is judged that exceed predetermined threshold value for described radio connection request signal strength values;Otherwise it is judged as
Described radio connection request signal strength values is not less than predetermined threshold value.
Preferably, also include after the step that described network access equipment enables WPS pattern: described network access equipment is examined
Described wireless terminal whether is connected, if it is not, then close the WPS pattern of described network access equipment in surveying Preset Time;And/or
Described network access equipment also records the number of times enabling described WPS pattern in Preset Time, when enabling described WPS pattern
Number of times when exceeding preset times, described network access equipment closes described WPS pattern.
The present invention also provides for a kind of method for connecting network, for having the wireless terminal of WPS pattern, including:
Described wireless terminal monitors the wireless connection signal intensity that its network access equipment received is launched, when described wireless company
Connecing signal strength values when exceeding predetermined threshold value, the most described wireless terminal sends radio connection request signal, and enables WPS pattern;
Described wireless terminal and described network access equipment carry out WPS negotiation, and receive the net that described network access equipment sends
Network configuration information connects to set up wireless network;
Wherein, described network access equipment monitor described wireless terminal send radio connection request signal strength values exceed pre-
If during threshold value, then enable WPS pattern.
Preferably, described wireless connection signal intensity is that WiFi connects signal intensity;Described predetermined threshold value is RSSI threshold value;
In described wireless terminal monitors the step of the wireless connection signal intensity that its network access equipment received is launched, bag
Include:
By the wireless connection signal of network access equipment described in the RX electric circuit inspection of described wireless terminal, and it is converted into RSSI
Value;
The RSSI threshold ratio that the described RSSI value that detects and described wireless terminal are preset relatively, when described RSSI value more than or etc.
When described RSSI threshold value, it is judged that exceed predetermined threshold value for described wireless connection signal intensity level;Otherwise it is judged as described wireless
Connect signal strength values not less than predetermined threshold value.
Preferably, also include after the step that described wireless terminal enables WPS pattern: when the detection of described wireless terminal is preset
In whether connect described network access equipment, if it is not, then close the WPS pattern of described wireless terminal;And/or
Described wireless terminal also records the number of times enabling described WPS pattern in Preset Time, enables the secondary of WPS pattern when described
When number exceedes preset times, described wireless terminal closes described WPS pattern.
The present invention also provides for a kind of network access equipment, has WPS pattern, including:
Monitoring of equipment module, for monitoring the radio connection request signal that wireless terminal sends;
Equipment intensity judge module, for judging that the radio connection request signal strength values monitoring the transmission of described wireless terminal is
No exceed predetermined threshold value;
Equipment WPS module, for exceeding default at the radio connection request signal strength values monitoring the transmission of described wireless terminal
During threshold value, enable described WPS pattern;And
Communication module, for carrying out WPS negotiation with described wireless terminal, and is sent to described wireless terminal by network configuration information
To set up wireless network connection, wherein, described wireless terminal monitors the nothing that its described network access equipment received is launched
When line connection signal strength values exceedes predetermined threshold value, described wireless terminal enables WPS pattern.
Preferably, described network access equipment also includes:
Close module, whether connect described wireless terminal in being used for detecting Preset Time, set if it is not, then close described network insertion
Standby WPS pattern;And/or, in Preset Time, record enables the number of times of described WPS pattern, when enabling the secondary of described WPS pattern
When number exceedes preset times, close described WPS pattern.
The present invention also provides for a kind of wireless terminal, has WPS pattern, including:
Terminal monitoring module, receives the wireless connection signal intensity from network access equipment for monitoring;
Terminal intensity judge module, for judging whether the described wireless connection signal intensity monitored exceedes predetermined threshold value;
Terminal WPS module, for when described wireless connection signal intensity exceedes terminal predetermined threshold value, enables described WPS pattern,
Further, radio connection request signal is externally sent;
Terminal connecting module, for carrying out WPS negotiation with the network access equipment enabling WPS pattern, and receives described network and connects
Enter the network configuration information that equipment sends to connect to set up wireless network;
Wherein, described network access equipment monitors the radio connection request signal strength values of described Radioterminal Transmit and exceedes pre-
If during threshold value, then enable WPS pattern.
Preferably, described wireless terminal also includes:
Terminal WPS closes module, whether connects described network access equipment in being used for detecting Preset Time, and in Preset Time
The WPS pattern of described wireless terminal is closed when cannot connect described network access equipment;And/or, record in Preset Time and open
With the number of times of described WPS pattern, when the number of times enabling described WPS pattern exceedes preset times, close described WPS pattern.
The present invention also provides for a kind of network connection system, it is characterised in that include the network access equipment of any of the above-described
With the wireless terminal of any of the above-described.
Implement to the method have the advantages that the present invention is by utilizing wireless terminal, network access equipment to send out each other
The signal strength values gone out to judge wireless terminal whether near network access equipment, thus the WPS pattern enabling both carries out WPS
Consulting, connect setting up wireless network, technical scheme makes the wireless terminal can connection quick, safe and convenient
To network access equipment, improve Consumer's Experience.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
In order to connect into wireless network more easily, the invention provides a kind of method for network access, by utilizing nothing
The signal strength values that line terminal, network access equipment send each other to judge wireless terminal whether near network access equipment, from
And enable both WPS(Wi-Fi Protected Setup, and Wi-Fi protection setting) pattern carries out WPS negotiation, to set up nothing
Gauze network connects, and technical scheme makes wireless terminal quick, safe and convenient can be connected to network insertion to set
Standby, improve Consumer's Experience.
The method for network access of the present invention can apply in the wireless connections of network access equipment and wireless terminal.Its
In, this network access equipment includes but not limited to wireless router, hub etc..This wireless terminal includes but not limited to intelligence hands
The various terminals such as machine, panel computer, palm PC, PDA, digital camera, DV.The operating system of terminal can include but
It is not limited to Android operating system, IOS operating system, Symbian (Saipan) operating system, Black Berry (black
The certain kind of berries) operating system, Windows Phone operating system etc..
As it is shown in figure 1, be an embodiment of the method for connecting network of the present invention, connect for having the network of WPS pattern
Enter equipment, comprise the steps:
The radio connection request signal that S101: network access equipment monitoring wireless terminal sends, when network access equipment monitors
When the radio connection request signal strength values that wireless terminal sends exceedes predetermined threshold value, then network access equipment enables WPS pattern.
This network access equipment has WPS pattern, can enable WPS pattern so that network insertion sets under imposing a condition
Standby open WPS function, connects for qualified wireless terminal, accesses wireless network.As a example by router, naturally it is also possible to
It is that other have the network access equipment of WPS pattern, after router startup WPS pattern, automatically uses registration table for adding
The wireless terminal distribution of network adds the network credentials of WLAN, connects for wireless terminal (such as mobile phone, panel computer etc.),
The network credentials of WLAN includes that network name and safe key, information and network credentials pass through Extensible Authentication Protocol (EAP) at sky
In carry out secure exchange, complete between wireless terminal and network access equipment to be mutually authenticated, wireless terminal device is i.e. connected into net
Network, wherein, registration table starts security mechanism by transmission network title (SSID) and WPA2 " wildcard " (PSK), due to
Network name and PSK are almost not required to user intervention by system automatic distributing, certificate exchange process.
In the present embodiment, the unlatching of the WPS pattern of network access equipment, can be detected by network access equipment and nothing
It is pre-conditioned whether the distance between line terminal meets, the most then network access equipment enables WPS pattern.
Concrete, radio connection request signal is WiFi connection request signal, by the RX electricity of network access equipment WiFi
The signal strength of the WiFi connection request signal that road detection wireless terminal sends, and it is converted into RSSI value;The RSSI that will detect
It is worth the RSSI threshold ratio preset with network access equipment relatively, when RSSI value is more than or equal to RSSI threshold value, it is judged that for wireless company
Connect request signal intensity level and exceed predetermined threshold value;Otherwise it is judged as that radio connection request signal strength values is not less than predetermined threshold value.
S102: network access equipment and wireless terminal carry out WPS negotiation, and network configuration information is sent to wireless terminal
To set up wireless network connection.Wherein, wireless terminal monitors the wireless connections letter that its network access equipment received is launched
When number intensity level exceedes the predetermined threshold value of wireless terminal, wireless terminal enables WPS pattern, and sends radio connection request letter
Number.
In the present embodiment, use signal intensity to judge that wireless terminal is the most close from access device, and then enable network
Access device, the WPS pattern of wireless terminal, and differentiate whether wireless terminal has permission and be connected into wireless network, reduce wireless connections
Complexity, it is achieved near the target that i.e. connects.
The spatial form of network access equipment, the electromagnetic radiation of wireless terminal is reduced to a sphere, then the table of ball
Area formula is S=4 π R.Assume the energy of radiation be a definite value be P, then energy P is distributed on the sphere of a S, single
The energy that plane amasss is set to field intensity, i.e. P/S=P/4 π R, the effect of the process analogy electromagnetic radiation that spheroid changes from small to big.Visible ball
Radius the biggest, then in unit are distribution energy the least;Otherwise, radius is the least, and the energy of unit are distribution is then got over
Greatly.When radius reduces, field intensity is to increase with the square value of reciprocal radius, it is seen that along with the minimizing of radius, field intensity drastically increases
Add.Network access equipment, the electromagnetic radiation radius of a ball of wireless terminal change as follows with field intensity variation relation table:
The radius of a ball |
Field intensity change multiple |
Field intensity change dB number |
101.6 rice |
1 times |
-80 dBm |
50.8 meters |
4 times |
-74 dBm |
25.4 meters |
16 times |
-68 dBm |
12.8 meters |
64 times |
-62 dBm |
6.4 rice |
256 times |
-56 dBm |
3.2 rice |
1024 times |
-50 dBm |
1.6 rice |
4096 times |
-44 dBm |
80 centimetres |
16384 times |
-38 dBm |
40 centimetres |
65536 times |
-32 dBm |
20 centimetres |
262144 times |
-26 dBm |
10 centimetres |
1048576 times |
-20 dBm |
Being exemplified below, R often reduces half, and field intensity increases by 4 times.As shown in Figure 4, Fig. 4 is that wireless terminal is at distance router
The signal intensity detected at Meizu-R13-3F3B 10cm, as it is shown in figure 5, Fig. 5 is that wireless terminal is at distance router
The signal intensity detected at Meizu-R13-3F3B 1.6m, it can be seen that when 10cm position, signal intensity RSSI
(Received Signal Strength Indicator) value is-20dBm;When 1.6m, signal intensity RSSI value is-
44dBm, field intensity dB number strengthen 24dB, combine network access equipment above, wireless terminal the electromagnetic radiation radius of a ball change and
Field intensity variation relation table, it can be seen that when moving to 10cm at 1.6m, enhanced intensity is original 256 times.Want if visible
Obtain a field intensity the strongest it is necessary to very close to radiation source, if away from radiation source, field intensity absolute value drastically drops with radius
Low.Also close radiation source the most extremely, being only possible to obtain a field intensity the biggest, even expanding 1.6 meters to from 10cm, seeing
The distance of movement of getting up is little, but actual field intensity changes huge.
When wireless terminal is near network access equipment, such as during 10cm, the network access equipment that wireless terminal reception arrives
The signal strength (and RSSI) of wireless connection signal drastically strengthen, this field intensity can be examined by the RX circuit of the WiFi of wireless terminal
Surveying and be converted into a concrete RSSI value, the RSSI value such as read is-20dBm;Wireless terminal can be by arranging one
RSSI threshold value, is such as-30dBm, when the RSSI value that wireless terminal detects is more than or equal to RSSI threshold value, it is judged that be satisfied
Pre-conditioned;Otherwise it is judged as being unsatisfactory for pre-conditioned.
Corresponding, monitor, at wireless terminal, the wireless connection signal intensity level that its network access equipment received is launched
When exceeding terminal predetermined threshold value, wireless terminal sends radio connection request signal, and this radio connection request signal is by network insertion
Monitoring of equipment arrives.Owing to wireless terminal is sufficiently close together with network access equipment, during such as 10cm, the nothing that network access equipment receives
The signal strength (and RSSI) of the radio connection request signal that line terminal sends drastically strengthens, and this field intensity can be set by network insertion
The RX electric circuit inspection of standby WiFi is also converted into a concrete RSSI value, and the RSSI value such as read is-20dBm;Network connects
Entering equipment can be such as-30dBm by arranging a RSSI threshold value, and the RSSI value monitored when network access equipment is more than
Or during equal to RSSI threshold value, it is judged that exceed predetermined threshold value for radio connection request signal strength values;Otherwise, it is judged that for wireless connections
Request signal intensity level is not less than predetermined threshold value.
When being judged as that radio connection request signal strength values exceedes predetermined threshold value, network access equipment starts WPS automatically
Pattern, and consult automatic matching with wireless terminal based on WPS, by network access by wireless terminal.
Wireless terminal, after starting WPS pattern, sends out radio connection request signal, in this radio connection request signal
Including WPS access request, after network access equipment receives the WPS access request of wireless terminal, carry out WPS association with wireless terminal
Business, such as wireless terminal obtain and store the access pin of network access equipment, and are connected with network access equipment foundation, pass through
Network access equipment is linked in wireless network.
Then, network access equipment closes WPS pattern, owing to wireless terminal has stored access pin, the most all the time
Keeping the connection with network access equipment, whole wireless connection procedures is not required to artificially get involved, and is automatically finished the full mistake of encryption connection
Journey, more hommization, intellectuality.
Further, in order to prevent frequently opening or open WPS pattern for a long time, WPS mould is enabled at network access equipment
After formula, in network access equipment detection Preset Time, whether connect wireless terminal, if it is not, then close network access equipment
WPS pattern.
Concrete, when network access equipment enables WPS pattern, start timer and carry out timing, and judge whether to connect
Receive the WPS access request of radio connection request signal;When receiving WPS access request, timer reset restarts
Timing;When being not received by WPS access request in Preset Time, it is judged that for not having wireless terminal to access, and then Controling network
Network access device closes WPS pattern, i.e. closes the time window without password of network access equipment.
Further, network access equipment can also record the number of times enabling WPS pattern in Preset Time, when enabling
When the number of times of WPS pattern exceedes preset times, network access equipment closes WPS pattern, such that it is able to avoid network access equipment
Situation about being repeatedly triggered, it is to avoid misoperation.Further, it is to avoid triggering network access equipment repeatedly opens WPS pattern, exist
After exceeding number of times in Preset Time, can point out, such as LED color or flash for prompting etc..
Further, after network access equipment receives the radio connection request signal that wireless terminal sends, identify
The MAC Address of this wireless terminal, and carry out WPS negotiation, consulting by rear, the MAC Address of wireless terminal is being updated network
In the connection equipment list of access device, thus determine whether that wireless terminal is linked in network access equipment.
In another embodiment of the method for connecting network of the present invention, can be used for the wireless terminal with WPS pattern.Wireless
The wireless connection signal intensity that its network access equipment received of terminal monitoring is launched, when wireless terminal monitors network insertion
When the wireless connection signal intensity that equipment is launched exceedes the predetermined threshold value of wireless terminal, then wireless terminal sends radio connection request
Signal, and enable WPS pattern;Wireless terminal and network access equipment carry out WPS negotiation, and receive what network access equipment sent
Network configuration information connects to set up wireless network.
Wherein, network access equipment monitor wireless terminal send radio connection request signal strength values exceed default threshold
During value, then enable WPS pattern, and the WPS accepting the radio connection request signal of wireless terminal at network access equipment accesses and asks
When asking, carry out WPS negotiation with wireless terminal, and network configuration information is sent to wireless terminal.
In the present embodiment, use signal intensity to judge that wireless terminal is the most close from access device, and then enable network
Access device, the WPS pattern of wireless terminal, and differentiate whether wireless terminal has permission and be connected into wireless network, reduce wireless connections
Complexity, it is achieved near the target that i.e. connects.
The spatial form of network access equipment, the electromagnetic radiation of wireless terminal is reduced to a sphere, then the table of ball
Area formula is S=4 π R.Assume the energy of radiation be a definite value be P, then energy P is distributed on the sphere of a S, single
The energy that plane amasss is set to field intensity, i.e. P/S=P/4 π R, the effect of the process analogy electromagnetic radiation that spheroid changes from small to big.Visible ball
Radius the biggest, then in unit are distribution energy the least;Otherwise, radius is the least, and the energy of unit are distribution is then got over
Greatly.When radius reduces, field intensity is to increase with the square value of reciprocal radius, it is seen that along with the minimizing of radius, field intensity drastically increases
Add.Network access equipment, the electromagnetic radiation radius of a ball of wireless terminal change as follows with field intensity variation relation table:
The radius of a ball |
Field intensity change multiple |
Field intensity change dB number |
101.6 rice |
1 times |
-80 dBm |
50.8 meters |
4 times |
-74 dBm |
25.4 meters |
16 times |
-68 dBm |
12.8 meters |
64 times |
-62 dBm |
6.4 rice |
256 times |
-56 dBm |
3.2 rice |
1024 times |
-50 dBm |
1.6 rice |
4096 times |
-44 dBm |
80 centimetres |
16384 times |
-38 dBm |
40 centimetres |
65536 times |
-32 dBm |
20 centimetres |
262144 times |
-26 dBm |
10 centimetres |
1048576 times |
-20 dBm |
According to upper table, being exemplified below, R often reduces half, and field intensity increases by 4 times.As shown in Figure 4, Fig. 4 is that wireless terminal is on distance road
The signal intensity detected by device Meizu-R13-3F3B 10cm, as it is shown in figure 5, Fig. 5 is that wireless terminal is at distance router
The signal intensity detected at Meizu-R13-3F3B 1.6m, it can be seen that when 10cm position, signal intensity RSSI value is-
20dBm;When 1.6m, signal intensity RSSI value is-44dBm, and field intensity dB number strengthens 24dB, sets in conjunction with network insertion above
Standby, the change of the electromagnetic radiation radius of a ball and the field intensity variation relation table of wireless terminal, it can be seen that when moving to 10cm at 1.6m,
Enhanced intensity is original 256 times.Field intensity the strongest is obtained it is necessary to very close to radiation source if visible, if
Away from radiation source, field intensity absolute value drastically reduces with radius.Also close radiation source the most extremely, is only possible to obtain one very
Big field intensity, even expanding 1.6 meters to from 10cm, it appears that the distance of movement is little, but the change of actual field intensity is huge.
When wireless terminal is near network access equipment, such as during 10cm, the network access equipment that wireless terminal reception arrives
The signal strength (and RSSI) of wireless connection signal drastically strengthen, this field intensity can be examined by the RX circuit of the WiFi of wireless terminal
Surveying and be converted into a concrete RSSI value, the RSSI value such as read is-20dBm;Wireless terminal can be by arranging one
RSSI threshold value, is such as-30dBm, when the RSSI value that wireless terminal detects is more than or equal to RSSI threshold value, it is judged that be satisfied
Pre-conditioned;Otherwise it is judged as being unsatisfactory for pre-conditioned.
Corresponding, monitor, at wireless terminal, the wireless connection signal intensity level that its network access equipment received is launched
When exceeding terminal predetermined threshold value, wireless terminal sends radio connection request signal, and this radio connection request signal is by network insertion
Monitoring of equipment arrives.Owing to wireless terminal is sufficiently close together with network access equipment, during such as 10cm, the nothing that network access equipment receives
The signal strength (and RSSI) of the radio connection request signal that line terminal sends drastically strengthens, and this field intensity can be set by network insertion
The RX electric circuit inspection of standby WiFi is also converted into a concrete RSSI value, and the RSSI value such as read is-20dBm;Network connects
Entering equipment can be such as-30dBm by arranging a RSSI threshold value, and the RSSI value monitored when network access equipment is more than
Or during equal to RSSI threshold value, it is judged that exceed predetermined threshold value for radio connection request signal strength values;Otherwise, it is judged that for wireless connections
Request signal intensity level is not less than predetermined threshold value.
When being judged as that radio connection request signal strength values exceedes predetermined threshold value, network access equipment starts WPS automatically
Pattern, and consult automatic matching with wireless terminal based on WPS, by network access by wireless terminal.
Wireless terminal, after starting WPS pattern, sends out radio connection request signal, in this radio connection request signal
Including WPS access request, after network access equipment receives the WPS access request of wireless terminal, carry out WPS association with wireless terminal
Business, such as wireless terminal obtain and store the access pin of network access equipment, and are connected with network access equipment foundation, pass through
Network access equipment is linked in wireless network.
Wireless terminal, according to receiving the value of network insertion wireless connection signal intensity, judges that whether wireless terminal is by network
Access device is close, and determines whether that authority accesses this wireless network access device, has used wireless signal among these
Fundamental radiation attenuation principle, wireless terminal need not increase cost, only need to add simple trigger function.
Further, also include after the step that wireless terminal enables WPS pattern: in wireless terminal detection Preset Time be
No connection network access equipment, if it is not, then close the WPS pattern of wireless terminal.Such as, when wireless terminal enables WPS pattern,
Start timer and carry out timing, and judge whether to be successfully established with network access equipment to be connected, when building with network access equipment
After vertical connection, stop timer, and close WPS pattern;When arriving Preset Time when timer, do not connect with network all the time
Enter equipment and set up connection, be also switched off WPS pattern.Such that it is able to avoid wireless terminal to be in the state enabling WPS pattern all the time, joint
The about resource of wireless terminal.
Further, wireless terminal can also record the number of times enabling WPS pattern in Preset Time, when enabling WPS mould
When the number of times of formula exceedes preset times, wireless terminal closes WPS pattern, such that it is able to avoid the feelings that wireless terminal is repeatedly triggered
Condition, it is to avoid misoperation.Further, it is to avoid triggering network access equipment repeatedly opens WPS pattern, after exceeding number of times, permissible
Point out, such as LED color or flash for prompting etc..
As in figure 2 it is shown, be an embodiment of the network access equipment 100 of the present invention, it has WPS pattern, including setting
Standby monitoring modular 104, equipment intensity judge module 105, equipment WPS module 102, communication module 103 etc., can pass through monitoring of equipment
Module 104 monitors the radio connection request signal that wireless terminal sends, and is judged wireless connections by equipment intensity judge module 105
Whether request signal intensity level exceedes predetermined threshold value, and when exceeding, equipment WPS module 102 enables WPS pattern, and pass through
Communication module 103 accesses wireless terminal so that wireless terminal is set up wireless network and connected.This network access equipment 100 can be
Router or other there is the network access equipment of WPS pattern.
In the present embodiment, use signal intensity to judge that wireless terminal is the most close from access device, and then enable network
Access device, the WPS pattern of wireless terminal, and differentiate whether wireless terminal has permission and be connected into wireless network, reduce wireless connections
Complexity, it is achieved near the target that i.e. connects.
The spatial form of the electromagnetic radiation of network access equipment wireless terminal is reduced to a sphere, then the surface of ball
Long-pending formula is S=4 π R.Assume radiation energy be a definite value be P, then energy P is distributed on the sphere of a S, unit
The energy of area is set to field intensity, i.e. P/S=P/4 π R, the effect of the process analogy electromagnetic radiation that spheroid changes from small to big.Visible ball
Radius is the biggest, then in unit are, the energy of distribution is the least;Otherwise, radius is the least, and the energy of unit are distribution is the biggest.
When radius reduces, field intensity is to increase with the square value of reciprocal radius, it is seen that along with the minimizing of radius, field intensity sharply increases.
The electromagnetic radiation radius of a ball change of network access equipment is as follows with field intensity variation relation table:
The radius of a ball |
Field intensity change multiple |
Field intensity change dB number |
101.6 rice |
1 times |
-80 dBm |
50.8 meters |
4 times |
-74 dBm |
25.4 meters |
16 times |
-68 dBm |
12.8 meters |
64 times |
-62 dBm |
6.4 rice |
256 times |
-56 dBm |
3.2 rice |
1024 times |
-50 dBm |
1.6 rice |
4096 times |
-44 dBm |
80 centimetres |
16384 times |
-38 dBm |
40 centimetres |
65536 times |
-32 dBm |
20 centimetres |
262144 times |
-26 dBm |
10 centimetres |
1048576 times |
-20 dBm |
According to upper table, being exemplified below, R often reduces half, and field intensity increases by 4 times.As shown in Figure 4, Fig. 4 is that wireless terminal is on distance road
The signal intensity detected by device Meizu-R13-3F3B 10cm, as it is shown in figure 5, Fig. 5 is that wireless terminal is at distance router
The signal intensity detected at Meizu-R13-3F3B 1.6m, it can be seen that when 10cm position, signal intensity RSSI value is-
20dBm;When 1.6m, signal intensity RSSI value is-44dBm, and field intensity dB number strengthens 24dB, sets in conjunction with network insertion above
Standby, the change of the electromagnetic radiation radius of a ball and the field intensity variation relation table of wireless terminal, it can be seen that when moving to 10cm at 1.6m,
Enhanced intensity is original 256 times.Field intensity the strongest is obtained it is necessary to very close to radiation source if visible, if
Away from radiation source, field intensity absolute value drastically reduces with radius.Also close radiation source the most extremely, is only possible to obtain one very
Big field intensity, even expanding 1.6 meters to from 10cm, it appears that the distance of movement is little, but the change of actual field intensity is huge.
This monitoring of equipment module 104 is for monitoring the radio connection request signal that wireless terminal sends.Concrete, when wireless
Terminal is when network access equipment, such as during 10cm, and the wireless connection signal of the network access equipment that wireless terminal reception arrives
Signal strength (and RSSI) drastically strengthen, this field intensity can be by the RX electric circuit inspection of the WiFi of wireless terminal and be converted into one
Concrete RSSI value, the RSSI value such as read is-20dBm;Wireless terminal can be by arranging a RSSI threshold value, such as
For-30dBm, when the RSSI value that wireless terminal detects is more than or equal to RSSI threshold value, this wireless terminal is sent out wireless
Connection request signal, and obtained by monitoring of equipment module 104 monitoring.
Equipment intensity judge module 105 is for judging to monitor the radio connection request signal strength values of wireless terminal transmission
Whether exceed predetermined threshold value.Concrete, owing to wireless terminal is sufficiently close together with network access equipment, during such as 10cm, network insertion
The signal strength (and RSSI) of the radio connection request signal that the wireless terminal that equipment receives sends drastically strengthens, this field intensity energy
Enough RX electric circuit inspection by the WiFi of network access equipment are also converted into a concrete RSSI value, the RSSI value such as read
For-20dBm;Can be such as-30dBm by arranging a RSSI threshold value, the RSSI value monitored when network access equipment be big
In or equal to RSSI threshold value time, it is judged that exceed predetermined threshold value for radio connection request signal strength values;Otherwise it is judged as wireless company
Connect request signal intensity level not less than predetermined threshold value.
This equipment WPS module 102 is for exceeding at the radio connection request signal strength values monitoring wireless terminal transmission
During predetermined threshold value, enable WPS pattern so that the open WPS function of network access equipment 100, for qualified wireless terminal
Connect, access wireless network.
This communication module 103 is used for receiving the radio connection request signal that wireless terminal sends, and according to these wireless connections
The WPS access request of request signal, carries out WPS negotiation with wireless terminal, and network configuration information is sent to wireless terminal with
Set up wireless network to connect.
As a example by router, naturally it is also possible to be that other have the network access equipment of WPS pattern, router startup WPS
After pattern, the network credentials automatically using registration table to be the wireless terminal distribution addition WLAN that will add network, for wireless
Terminal (such as mobile phone, panel computer etc.) connects, and the network credentials of WLAN includes network name and safe key, information and network
Certificate aloft carries out secure exchange by Extensible Authentication Protocol (EAP), completes phase between wireless terminal with network access equipment
Certification mutually, wireless terminal device is i.e. connected into network, and wherein, registration table is " pre-common by transmission network title (SSID) and WPA2
Enjoy key " (PSK) start security mechanism, and owing to network name and PSK are by system automatic distributing, certificate exchange process is hardly
Need user intervention.
Further, in order to prevent frequently opening or open WPS pattern for a long time, this network access equipment 100 also includes
Close module.Whether this closedown module connects wireless terminal in being used for detecting Preset Time, if it is not, then close network access equipment
The WPS pattern of 100.Further, it is also possible to record enables the number of times of WPS pattern in Preset Time, when enabling WPS pattern
When number of times exceedes preset times, network access equipment closes WPS pattern, such that it is able to avoid network access equipment to be repeatedly triggered
Situation, it is to avoid misoperation.Further, it is to avoid triggering network access equipment repeatedly opens WPS pattern, in Preset Time
After exceeding number of times, can point out, such as LED color or flash for prompting etc..
Concrete, when network access equipment 100 enables WPS pattern, start timer and carry out timing, and judge whether
Receive WPS access request;When receiving WPS access request, timer reset restarts timing;When at Preset Time
When being inside not received by WPS access request, it is judged that for not having wireless terminal to access, close module and control network access equipment 100
Close WPS pattern, i.e. close the time window without password of network access equipment 100.
Further, after network access equipment receives the radio connection request signal that wireless terminal sends, identify
The MAC Address of this wireless terminal, and carry out WPS negotiation, consulting by rear, the MAC Address of wireless terminal is being updated network
In the connection equipment list of access device, thus determine whether that wireless terminal is linked in network access equipment.
As it is shown on figure 3, be an embodiment of the wireless terminal 200 of the present invention, there is WPS pattern, including terminal monitoring
Module 201, terminal intensity judge module 202, terminal WPS module 203, terminal connecting module 204 etc., can be with network access equipment
Connect, set up wireless network and connect.It should be understood that wireless terminal 200 can be mobile phone, panel computer, intelligent watch, can wear
Wear one or more in equipment.
In the present embodiment, use signal intensity to judge that wireless terminal is the most close from access device, and then enable network
Access device, the WPS pattern of wireless terminal, and differentiate whether wireless terminal has permission and be connected into wireless network, reduce wireless connections
Complexity, it is achieved near the target that i.e. connects.
The spatial form of the electromagnetic radiation of network access equipment wireless terminal is reduced to a sphere, then the surface of ball
Long-pending formula is S=4 π R.Assume radiation energy be a definite value be P, then energy P is distributed on the sphere of a S, unit
The energy of area is set to field intensity, i.e. P/S=P/4 π R, the effect of the process analogy electromagnetic radiation that spheroid changes from small to big.Visible ball
Radius is the biggest, then in unit are, the energy of distribution is the least;Otherwise, radius is the least, and the energy of unit are distribution is the biggest.
When radius reduces, field intensity is to increase with the square value of reciprocal radius, it is seen that along with the minimizing of radius, field intensity sharply increases.
The electromagnetic radiation radius of a ball change of network access equipment is as follows with field intensity variation relation table:
The radius of a ball |
Field intensity change multiple |
Field intensity change dB number |
101.6 rice |
1 times |
-80 dBm |
50.8 meters |
4 times |
-74 dBm |
25.4 meters |
16 times |
-68 dBm |
12.8 meters |
64 times |
-62 dBm |
6.4 rice |
256 times |
-56 dBm |
3.2 rice |
1024 times |
-50 dBm |
1.6 rice |
4096 times |
-44 dBm |
80 centimetres |
16384 times |
-38 dBm |
40 centimetres |
65536 times |
-32 dBm |
20 centimetres |
262144 times |
-26 dBm |
10 centimetres |
1048576 times |
-20 dBm |
According to upper table, being exemplified below, R often reduces half, and field intensity increases by 4 times.As shown in Figure 4, Fig. 4 is that wireless terminal is on distance road
The signal intensity detected by device Meizu-R13-3F3B 10cm, as it is shown in figure 5, Fig. 5 is that wireless terminal is at distance router
The signal intensity detected at Meizu-R13-3F3B 1.6m, it can be seen that when 10cm position, signal intensity RSSI value is-
20dBm;When 1.6m, signal intensity RSSI value is-44dBm, and field intensity dB number strengthens 24dB, sets in conjunction with network insertion above
Standby, the change of the electromagnetic radiation radius of a ball and the field intensity variation relation table of wireless terminal, it can be seen that when moving to 10cm at 1.6m,
Enhanced intensity is original 256 times.Field intensity the strongest is obtained it is necessary to very close to radiation source if visible, if
Away from radiation source, field intensity absolute value drastically reduces with radius.Also close radiation source the most extremely, is only possible to obtain one very
Big field intensity, even expanding 1.6 meters to from 10cm, it appears that the distance of movement is little, but the change of actual field intensity is huge.
Terminal monitoring module 201 receives the wireless connection signal intensity from network access equipment for monitoring.Work as nothing
Line terminal 200 is when network access equipment, such as during 10cm, and the network access instrument signal field that wireless terminal 200 receives
(and RSSI) drastically strengthens by force, and this field intensity can be by the terminal monitoring module 201 of wireless terminal 200, such as the RX circuit of WiFi, inspection
Surveying and be converted into a concrete RSSI value, the RSSI value such as read is-20dBm.
This terminal intensity judge module 202 is for judging whether the described wireless connection signal intensity monitored exceedes wireless
The predetermined threshold value of terminal, wireless terminal can be such as-30dBm by arranging a RSSI threshold value, detects for judgement
It is pre-conditioned whether signal intensity meets;Such as, the RSSI value detected when wireless terminal 200 is more than or equal to RSSI threshold value
Time, it is judged that exceed predetermined threshold value for radio connection request signal strength values;Otherwise it is judged as radio connection request signal strength values
Not less than predetermined threshold value.
When wireless connection signal intensity exceedes terminal predetermined threshold value, terminal WPS module 203 enables WPS pattern, and,
Wireless terminal externally sends radio connection request signal, and this radio connection request signal is monitored by network access equipment.Network
Access device monitors the radio connection request signal strength values of Radioterminal Transmit and exceedes the predetermined threshold value of network access equipment
Time, then enable WPS pattern, and accept the radio connection request signal of wireless terminal at network access equipment, and according to wireless company
Connect the WPS access request in request signal, carry out WPS negotiation with wireless terminal, and network configuration information is sent to wireless end
End.
This terminal connecting module 204, consults for carrying out WPS with the network access equipment enabling WPS pattern to set up nothing
Gauze network connects.After network access equipment receives WPS access request, carry out WPS negotiation with wireless terminal 200, the most wireless
Terminal 200 obtains and stores the access pin of network access equipment, and is connected with network access equipment foundation, passes through network insertion
Equipment is linked in wireless network.
Further, this wireless terminal 200 can also include that terminal WPS closes module, in being used for detecting Preset Time is
No connection network access equipment, and when cannot connect network access equipment in Preset Time, close the WPS mould of wireless terminal 200
Formula;And/or, record enables the number of times of WPS pattern, when the number of times enabling WPS pattern exceedes preset times, closes WPS pattern,
Avoid triggering network access equipment repeatedly to open WPS pattern, after exceeding number of times, can point out, such as LED color or sudden strain of a muscle
Bright prompting etc..
Such as, when wireless terminal 200 enables WPS pattern, start timer and carry out timing, and judge whether and network
Access device is successfully established connection, after being connected with network access equipment foundation, stops timer, and closes WPS pattern;Work as meter
Time device timing when arriving Preset Time, do not set up with network access equipment all the time and be connected, terminal WPS closedown module also controls nothing
Line terminal 200 closes WPS pattern.Such that it is able to avoid wireless terminal 200 to be in the state enabling WPS pattern all the time, save nothing
The resource of line terminal 200.
Further, wireless terminal 200 can also record the number of times enabling WPS pattern in Preset Time, when enabling WPS
When the number of times of pattern exceedes preset times, terminal WPS is closed module control wireless terminal 200 and is closed WPS pattern, such that it is able to keep away
Exempt from the situation that wireless terminal is triggered for more than 200 time, it is to avoid misoperation.
In one embodiment of the network connection system of the present invention, including network access equipment and wireless terminal.Can manage
Solving, this network access equipment can be arbitrary network access equipment of above-described embodiment, and wireless terminal can also be above-mentioned
The wireless terminal of one embodiment, does not repeats at this.
Network access equipment can be router;Wireless terminal can be mobile phone, panel computer, intelligent watch, wearable
One or more in equipment.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Module or submodule in embodiment of the present invention equipment can merge according to actual needs, divide and delete.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completing carrying out the device-dependent hardware of command terminal by program, this program can be stored in a computer-readable recording medium
In, storage medium may include that flash disk, read only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
The above disclosed presently preferred embodiments of the present invention that is only, can not limit the right of the present invention with this certainly
Scope, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to right of the present invention
Require the equivalent variations made, still fall within the scope that invention is contained.