Embodiment
Make further more detailed description to technical scheme with reference to embodiment.Obviously, retouched
The embodiment stated is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention,
The every other embodiment that those of ordinary skill in the art are obtained on the premise of creative work is not made, should all belong to
The scope of protection of the invention.
The premise of the present invention is that to carry out frequency range switching using the present invention is double-frequency wireless router, and the wireless routing
Device need by 2.4G and 5G wireless network name be arranged to it is identical, using identical password and cipher mode;Using the present invention
Being linked into the wireless terminal of double-frequency wireless router needs to support 2.4G and two kinds of frequency ranges of 5G.
Refering to Fig. 1, Fig. 1 is the of the wireless router provided in an embodiment of the present invention that frequency range switching is carried out for access terminal
The structural representation of one embodiment.
The wireless router 100 includes:Monitor module 110, judge module 120, switching indicating module 130 and handover module
140。
Wherein, module 110 is monitored, the RSSI parameters for monitoring the terminal for being connected to the wireless router.Specifically, because
It is dynamic change for RSSI parameters, router is by the data message between monitor terminal and wireless router, so as to obtain
The RSSI parameters of the terminal.
Judge module 120, for determining the terminal according to the switching at runtime threshold value of the RSSI parameters and current frequency range
Meet the requirement of switching.Specifically, the frequency range value of terminal work at present, i.e. 2.4G or 5G are obtained first, it is further to obtain
The switching at runtime threshold value of the frequency range, then compares the size of RSSI parameter values and threshold value to judge whether to meet the requirement switched;
For 2.4G frequency ranges, if RSSI value is not less than the switching at runtime threshold value of current frequency range, illustrate now signal intensity it is stronger, can
To switch to 5G;For 5G frequency ranges, if RSSI value is not higher than the switching at runtime threshold value of current frequency range, illustrate now signal intensity
It is weaker, 2.4G should be switched to.Wherein, needed on router for the default value of the default switching at runtime threshold value of each frequency range, example
Such as, the default value of 5G switching at runtime threshold value is -75dBm, and the default value of 2.4G switching at runtime threshold value is -40dBm;Also,
The switching at runtime threshold value can be adjusted in the access handoff procedure of terminal;For the terminal accessed first, wireless router is obtained
The switching at runtime threshold value got is default value, and what is otherwise got is adjusted switching at runtime threshold value.
Switch indicating module 130, for stopping sending message to the terminal in current frequency range, to indicate the terminal
Send frequency range handover request.If specifically, terminal is repeatedly attempted all not receiving wireless router return in current frequency range
Data message, will initiate the request of frequency range switching, i.e., send the request message of foundation connection simultaneously in two frequency ranges.
Handover module 140, for receiving after the frequency range handover request that the terminal is sent, with the terminal after handover
Frequency range on re-establish connection.Specifically, wireless router is received after request message of the terminal in another frequency range,
The connection of current channel is disconnected, new connection is set up in another frequency range.
Prior art is different from, the wireless router of the embodiment of the present invention monitors the RSSI ginsengs of the terminal on being connected to
Number;Determine that the terminal meets the requirement of switching according to the switching at runtime threshold value of the RSSI parameters and current frequency range;Current
Frequency range stops sending message to the terminal, to indicate that the terminal sends frequency range handover request;Receive the terminal hair
After the frequency range handover request sent, it is connected with being re-established in the frequency range of the terminal after handover;So as to by using dynamic
State adjusts threshold value, adapts to different network environments, therefore improve switch speed, the networking speed of user.
Refering to Fig. 2, Fig. 2 is the wireless router second provided in an embodiment of the present invention that frequency range switching is carried out for access terminal
The structural representation of embodiment.
The wireless router 200 includes:Monitor module 210, judge module 220, switching indicating module 230 and handover module
240。
Wherein, module 210 is monitored, the RSSI parameters for monitoring the terminal for being connected to the wireless router.Specifically, because
It is dynamic change for RSSI parameters, router is by the data message between monitor terminal and wireless router, so as to obtain
The RSSI parameters of the terminal.Common, RSSI parameters are used for the signal intensity that instruction terminal is connected with wireless router, RSSI value
Usually negative value, such as -50dBm, the value are higher closer to zero explanation signal intensity, otherwise explanation signal intensity is weaker.
Judge module 220, for determining the terminal according to the switching at runtime threshold value of the RSSI parameters and current frequency range
Meet the requirement of switching.The judge module 220 includes the first judging unit 221 and the second judging unit 222;First judging unit
If 221 be 5G for current frequency range, determine that the RSSI parameters are not higher than the switching at runtime threshold value of 5G frequency ranges, now explanation letter
Number intensity is weaker, should switch to 2.4G;If it is 2.4G that the second judging unit 222, which is used for current frequency range, it is determined that described
RSSI parameters are not less than the switching at runtime threshold value of 2.4G frequency ranges, now illustrate that signal intensity is stronger, can switch to 5G.Specifically
, router obtains the current working frequency range of terminal first, if 5G, then calls the first judging unit 221 to make a decision, if
It is 2.4G, then calls the second judging unit 222 to make a decision.The threshold value judged for doing switching condition is a switching at runtime threshold
Value, so can adapt to different network environments, improves switch speed, networking speed.
Switch indicating module 230, for stopping sending message to the terminal in current frequency range, to indicate the terminal
Send frequency range handover request.If specifically, terminal is repeatedly attempted all not receiving wireless router return in current frequency range
Data message, will initiate the request of frequency range switching, i.e., send the request message of foundation connection simultaneously in two frequency ranges.
Handover module 240, for receiving after the frequency range handover request that the terminal is sent, with the terminal after handover
Frequency range on re-establish connection.Specifically, wireless router is received after request message of the terminal in another frequency range,
The connection of current channel is disconnected, new connection is set up in another frequency range.
Optionally, router 200 also includes default threshold setup module 250, for being first connected in the terminal
During wireless router, if current frequency range is 5G, the switching at runtime threshold value of current frequency range is used as default -75dBm;If
Current frequency range is 2.4G, and the switching at runtime threshold value of current frequency range is used as default -40dBm.For the terminal accessed first,
The switching at runtime threshold value that wireless router is got is default value, and hereafter, switching at runtime threshold value can switch in the access of terminal
Journey is adjusted, and wireless router will read the switching at runtime threshold value after adjustment.
Optionally, the router also includes network health degree computing module 260, the and of switching at runtime threshold calculation module 270
Update module 280;Wherein, network health degree computing module 260, for according to the wireless performance index parameter before and after the switching
Calculate the network health degree after switching;Switching at runtime threshold calculation module 270, it is default strong for exceeding in the network health degree
During health threshold value, the switching at runtime threshold value of new current frequency range is calculated;Update module 280, for by the new current frequency range
Switching at runtime threshold value replaces the switching at runtime threshold value of existing current frequency range, i.e. router and judges whether the terminal needs in next time
Using new switching at runtime threshold value during switching.
Further alternative, network health degree computing module 260 includes wireless performance index parameter acquiring unit 261 and meter
Calculate unit 262;The switching at runtime threshold calculation module 270 includes the first computing unit 271 and the second computing unit 272.
Wherein, the wireless performance index parameter acquiring unit 261 is used to obtain the physical layer operating rate before and after switching
RATE, Packet Error Ratio PER values.
The computing unit 262 is used to calculate the network health degree after switching according to formula 1.
In formula 1, health is the network health degree after switching, and T1 is the RATE values before switching, and P1 is the PER before switching
Value, T2 is the RATE values after switching, and P2 is the PER values after switching.
Because RATE, PER parameter reflect the network performance between terminal and router respectively, pass through the calculating of formula 1
Mode, is compared to the network performance parameter before and after switching, it can be determined that go out whether network performance after switching improves or become
How difference, so as to decide whether to adjust to switching at runtime threshold value, and should adjust, and the present embodiment is by before to switching
Network performance afterwards carries out health degree comparison, so as to judge whether to need to adjust switching at runtime threshold value, and how to adjust, uses
The mode of dynamic adjustment switching threshold, can effectively adapt to different network environments, therefore improve switch speed, user
Networking speed.
In the present embodiment, default healthy threshold value is set to the interval between 0.75 and 1, i.e. network health degree is
(0.75,1) represent that the network after switching is more healthy than before switching when interval, switching is effective, it is not necessary to adjust switching at runtime threshold value;
When network health degree is less than 0.75, although representing that the more healthy effect of network is not enough substantially cut, it is necessary to adjust dynamic after switching
Change threshold value;When network health degree is more than 1, represent that network is worse after switching, it is also desirable to adjust switching at runtime threshold value.
If first computing unit 271 is used for, current frequency range is 5G and the network health degree is less than 0.75, or
If current frequency range is 2.4G and the network health degree is higher than 1, new switching at runtime threshold value is calculated using below equation:
New switching at runtime threshold value=R1+5dBm, wherein, R1 is the RSSI parameters before switching.
Now need to increase switching at runtime threshold value, router is when judging whether the terminal needs switching next time using new
Switching at runtime threshold value, that is, the terminal for being operated in 5G frequency ranges is switched to 2.4G frequency ranges earlier, and is operated in the terminal of 2.4G frequency ranges
It is more late to be switched to 5G.
If second computing unit 272 is used for, current frequency range is 5G and the network health degree is higher than 1, or if
Current frequency range is 2.4G and the network health degree is less than 0.75, and new switching at runtime threshold value is calculated using below equation:
New switching at runtime threshold value=R1-5dBm, wherein, R1 is the RSSI parameters before switching.
Now need to reduce switching at runtime threshold value, router is when judging whether the terminal needs switching next time using new
Switching at runtime threshold value, that is, be operated in 5G frequency ranges terminal it is more late be switched to 2.4G frequency ranges, and be operated in the terminal of 2.4G frequency ranges
5G is switched to earlier.
Prior art is different from, the wireless router of the embodiment of the present invention monitors the RSSI ginsengs of the terminal on being connected to
Number;Determine that the terminal meets the requirement of switching according to the switching at runtime threshold value of the RSSI parameters and current frequency range;Current
Frequency range stops sending message to the terminal, to indicate that the terminal sends frequency range handover request;Receive the terminal hair
After the frequency range handover request sent, it is connected with being re-established in the frequency range of the terminal after handover;So as to by using dynamic
State adjusts threshold value, adapts to different network environments, therefore improve switch speed, the networking speed of user.
Refering to Fig. 3, Fig. 3 is the first embodiment for the method that the embodiment of the present invention carries out frequency range switching for access terminal
Schematic flow sheet.The executive agent of this method is the wireless router for supporting double frequency (2.4G and 5G).
The step of this method, includes:
S301:Terminal for being connected to wireless router, monitors the received signal strength indicator RSSI ginsengs of the terminal
Number.
Specifically, because RSSI parameters are dynamic changes, router passes through between monitor terminal and wireless router
Data message, so as to obtain the RSSI parameters of the terminal.Common, RSSI parameters are connected for instruction terminal with wireless router
Signal intensity, RSSI value is usually negative value, such as -50dBm, the value closer to zero explanation signal intensity it is higher, otherwise explanation
Signal intensity is weaker.
Wherein, can be according to wireless router or according to terminal for being first connected to the terminal of wireless router
Setting be connected in 2.4G frequency ranges or 5G frequency ranges so as to giving tacit consent to.
S302:Determine that the terminal meets wanting for switching according to the switching at runtime threshold value of the RSSI parameters and current frequency range
Ask.
Specifically, the step obtains the frequency range value of terminal work at present, i.e. 2.4G or 5G first, further obtain should
The switching at runtime threshold value of frequency range, then compares the size of RSSI parameter values and threshold value to judge whether to meet the requirement switched.
If current frequency range is 5G, the implementation of the step is not higher than the dynamic of 5G frequency ranges for the determination RSSI parameters
Switching threshold, now illustrates that signal intensity is weaker, should switch to 2.4G;If current frequency range is 2.4G, the reality of the step
Existing mode to determine that the RSSI parameters are not less than the switching at runtime threshold value of 2.4G frequency ranges, now illustrate signal intensity it is stronger,
5G can be switched to.
In the step, the threshold value judged for doing switching condition is a switching at runtime threshold value, so can adapt to difference
Network environment, improve switch speed, networking speed.
Optionally, if the terminal is to be first connected to wireless router, the switching at runtime threshold value of the current frequency range
For default value;When current frequency range is 5G, the default value is -75dBm;When current frequency range is 2.4G, the default value for-
40dBm.By setting the default value, the terminal accessed first can be allowed, wireless router can be cut using the default value as dynamic
Threshold value is changed, also, the switching at runtime threshold value can be adjusted in the access handoff procedure of terminal, and now wireless router will be read
Switching at runtime threshold value after to adjustment.
S303:Stop sending message to the terminal in current frequency range, asked to indicate that the terminal sends frequency range switching
Ask.
Specifically, terminal is in current frequency range, if repeatedly trial does not all receive the data message that wireless router is returned,
The request of frequency range switching will be initiated, i.e., sends the request message of foundation connection simultaneously in two frequency ranges.It is operated in for example, being originally
5G frequency ranges, then stop the request of response terminal in 5G frequency ranges, no longer send datagram, such terminal will simultaneously by 5G and
2.4G sends request message.
S304:Receive after the frequency range handover request that the terminal is sent, with weight in the frequency range of the terminal after handover
It is new to set up connection.
Specifically, wireless router is received after request message of the terminal in another frequency range, current channel is disconnected
Connection, new connection is set up in another frequency range.For example, wireless router stops request of the response terminal in 5G frequency ranges,
And terminal is received after the message that 2.4G frequency ranges are sent, the connection of original 5G frequency ranges is disconnected, the new connection of 2.4G frequency ranges is set up.
Optionally, also included after step S304:Calculated and cut according to the wireless performance index parameter before and after the switching
Network health degree after changing;If the network health degree exceedes default healthy threshold value, the dynamic for calculating new current frequency range is cut
Change threshold value;Update the switching at runtime threshold value of the current frequency range.
Further, the wireless performance index parameter according to before and after the switching calculates the network health degree after switching
Specially:Network health degree after switching is calculated according to formula 1,
Wherein health is the network health degree after switching, and T1 is the RATE values before switching, and P1 is the PER parameters before switching
Value, T2 is the RATE values after switching, and P2 is the PER parameter values after switching.
Because RATE, PER parameter reflect the network performance between terminal and router respectively, pass through the calculating of formula 1
Mode, is compared to the network performance parameter before and after switching, it can be determined that go out whether network performance after switching improves or become
How difference, so as to decide whether to adjust to switching at runtime threshold value, and should adjust, and the present embodiment is by before to switching
Network performance afterwards carries out health degree comparison, so as to judge whether to need to adjust switching at runtime threshold value, and how to adjust, uses
The mode of dynamic adjustment switching threshold, can effectively adapt to different network environments, therefore improve switch speed, user
Networking speed.
In the present embodiment, the interval that healthy threshold value is set between 0.75 and 1 is preset.I.e. network health degree for (0.75,
1) represent that the network after switching is more healthy than before switching when interval, switching is effective, it is not necessary to adjust switching at runtime threshold value;Network is good for
When Kang Du is less than 0.75, although representing that the more healthy effect of network is not enough substantially, it is necessary to adjust switching at runtime threshold value after switching;
When network health degree is more than 1, represent that network is worse after switching, it is also desirable to adjust switching at runtime threshold value.
If current frequency range is 5G and the network health degree is less than 0.75, or if current frequency range is 2.4G and described
Network health degree is higher than 1, and the new switching at runtime threshold calculations formula is specially:
New switching at runtime threshold value=R1+5dBm, wherein, R1 is the RSSI parameters before switching.
Now need to increase switching at runtime threshold value, router is when judging whether the terminal needs switching next time using new
Switching at runtime threshold value, that is, the terminal for being operated in 5G frequency ranges is switched to 2.4G frequency ranges earlier, and is operated in the terminal of 2.4G frequency ranges
It is more late to be switched to 5G.
If current frequency range is 5G and the network health degree is higher than 1, or if current frequency range is 2.4G and the net
Network health degree is less than 0.75, and the new switching at runtime threshold calculations formula is specially:
New switching at runtime threshold value=R1-5dBm, wherein, R1 is the RSSI parameters before switching.
Now need to reduce switching at runtime threshold value, router is when judging whether the terminal needs switching next time using new
Switching at runtime threshold value, that is, be operated in 5G frequency ranges terminal it is more late be switched to 2.4G frequency ranges, and be operated in the terminal of 2.4G frequency ranges
5G is switched to earlier.
In first example of the present embodiment, the current working frequency range of terminal is 5G, and wireless router gets 5G frequencies
The corresponding switching at runtime threshold value of section is -75dBm, and the RSSI parameters of monitor terminal always;When listen to RSSI parameter value for-
During 75dBm, it is judged as meeting the requirement of switching.Therefore stop sending message to terminal in 5G frequency ranges, according to terminal in 2.4G frequencies
The request of section, and terminal set up new connection in 2.4G frequency ranges, disconnect 5G connection.Also, record switching before and after RATE,
PER parameter values such as table 1 below:
Table 1 switches front and rear wireless performance index parameter
By formula 1, it is health=(26- (26*0.05))/(104- to calculate the network health degree after being switched
(104*0.03))=0.2448;Because health values are less than 0.75, new switching at runtime threshold value=- 75+5=-70dBm is calculated,
So as to which switching at runtime threshold value is updated into -70dBm.
In second example of the present embodiment, the current working frequency range of terminal is 2.4G, and wireless router is got
The corresponding switching at runtime threshold value of 2.4G frequency ranges is -40dBm, and RSSI parameters of monitor terminal always;When the ginseng for listening to RSSI
When numerical value is -40dBm, it is judged as meeting the requirement of switching.Therefore stop sending message to terminal in 2.4G frequency ranges, according to terminal
New connection is set up in 5G frequency ranges in the request of 5G frequency ranges, and terminal, the connection of original 2.4G frequency ranges is disconnected.Also, record
RATE, PER parameter value such as table 2 below before and after switching:
Table 2 switches front and rear wireless performance index parameter
By formula 1, it is health=(144- (144*0.03))/(650- to calculate the network health degree after being switched
(650*0.05))==0.2268;Because health values are less than 0.75, new switching at runtime threshold value=- 40-5=- is calculated
45dBm, so that switching at runtime threshold value is updated into -45dBm.
Prior art is different from, the method that frequency range switching is carried out for access terminal of the embodiment of the present invention, monitoring is connected to
The RSSI parameters of the terminal of wireless router;The end is determined according to the switching at runtime threshold value of the RSSI parameters and current frequency range
End meets the requirement of switching;Stop sending message to the terminal in current frequency range, cut to indicate that the terminal sends frequency range
Change request;Receive after the frequency range handover request that the terminal is sent, with being re-established in the frequency range of the terminal after handover
Connection;So as to adjust threshold value by using dynamic, different network environments are adapted to, therefore improve switch speed, user
Networking speed.
The embodiment of the embodiment of the present invention is the foregoing is only, the patent model of the embodiment of the present invention is not thereby limited
Enclose, equivalent structure or equivalent flow conversion that every utilization embodiment of the present invention specification and accompanying drawing content are made, or directly or
Other related technical fields are used in indirectly, are similarly included in the scope of patent protection of the embodiment of the present invention.