Method for adjusting switching conditions, electronic device and storage medium

By detecting the signal and rate index values ​​of Wi-Fi terminal STA in different frequency bands, calculating the network quality change value, and automatically adjusting the switching conditions, the problem of network quality not being improved after frequency band switching in the existing technology is solved, and better network connection quality is achieved.

CN113840376BActive Publication Date: 2025-04-01ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010584461.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-23
Publication Date
2025-04-01
Estimated Expiration
2040-06-23

AI Technical Summary

Technical Problem

In the Wi-Fi dual-band router, the RSSI value of the frequency band switching condition is directly set to a fixed value, resulting in the STA being unable to improve network quality after the frequency band switching.

Method used

By detecting the signal strength index value and network rate index value of the STA in the first frequency band and the second frequency band, the network quality index change value is calculated, and the switching conditions for the STA to switch from the first frequency band to the second frequency band are automatically adjusted.

Benefits of technology

This improves the possibility of network quality improvement after frequency band switching, ensuring that STA can obtain better network connections under adjusted switching conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113840376B_ABST
    Figure CN113840376B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method for adjusting switching conditions, an electronic device, and a storage medium, which belong to the field of communications. The method includes: in the process of the Wi‑Fi terminal STA performing network communication with the router based on the first frequency band, detecting the first signal strength index value and the first network rate index value of the STA in the first frequency band; in the process of the STA switching to the second frequency band to perform network communication with the router, detecting the second signal strength index value and the second network rate index value of the STA in the second frequency band; determining the network quality index change value according to the first signal strength index value, the first network rate index value, the second signal strength index value, and the second network rate index value; according to the network quality index change value, adjusting the switching condition of the STA from the first frequency band to the second frequency band. The embodiment of the present application realizes automatic adjustment of the switching conditions, and when the STA switches the frequency band under the adjusted switching conditions, the possibility of improving the network quality after the frequency band switching is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular to a method for adjusting a switching condition, an electronic device, and a storage medium. Background Art

[0002] Wi-Fi dual-band routers and Wi-Fi terminals (STAs) are already widely used. Wi-Fi dual-band routers refer to wireless routers that work in both 2.4G and 5.0G bands. When STA moves within the Wi-Fi coverage of the router, it will switch between the 2.4G and 5.0G bands of the router according to certain rules to obtain a better network connection. The current implementation scheme is that the router first detects the RSSI value of the Wi-Fi signal strength indicator of the STA in the current band, and then compares the detected RSSI value with the switching condition RSSI value of the current band to determine whether to switch.

[0003] However, directly setting the RSSI value of the switching condition of the frequency band to a fixed value may result in that the STA cannot improve the network quality after switching the frequency band. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a method for adjusting switching conditions, an electronic device and a storage medium, aiming to realize automatic adjustment of switching conditions, and to increase the possibility of improving network quality after frequency band switching when STA switches frequency bands under the adjusted switching conditions.

[0005] To achieve the above-mentioned purpose, an embodiment of the present application provides a method for adjusting a switching condition, including: in a process in which a Wi-Fi terminal STA performs network communication with a router based on a first frequency band, detecting a first signal strength index value and a first network rate index value of the STA in the first frequency band; in a process in which the STA switches to a second frequency band to perform network communication with the router, detecting a second signal strength index value and a second network rate index value of the STA in the second frequency band; determining a network quality index change value according to the first signal strength index value, the first network rate index value, the second signal strength index value, and the second network rate index value; and adjusting the switching condition for the STA to switch from the first frequency band to the second frequency band according to the network quality index change value.

[0006] To achieve the above-mentioned purpose, an embodiment of the present application also proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for adjusting the switching conditions described above.

[0007] To achieve the above objectives, an embodiment of the present application further proposes a computer-readable storage medium storing a computer program, which implements the above-mentioned method for adjusting the switching condition when executed by a processor.

[0008] The method, electronic device and storage medium for adjusting switching conditions proposed in the present application detect the first signal strength index value and the first network rate index value of the STA in the first frequency band during the process of the Wi-Fi terminal STA performing network communication with the router based on the first frequency band; detect the second signal strength index value and the second network rate index value of the STA in the second frequency band during the process of the STA switching to the second frequency band to perform network communication with the router; determine the network quality index change value according to the first signal strength index value, the first network rate index value, the second signal strength index value and the second network rate index value; and adjust the switching condition for the STA to switch from the first frequency band to the second frequency band according to the network quality index change value. The switching condition is automatically adjusted by such a method. Moreover, since the network quality index change value can reflect whether the network quality of the STA is improved before and after the frequency band switching and the degree of improvement, thereby reflecting the change of the network environment of the STA, the change of the network environment of the STA is taken into account when adjusting the switching condition according to the network quality index change value, so that when the STA switches the frequency band under the adjusted switching condition, the possibility of improving the network quality after the frequency band switching is increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 is a flow chart of a method for adjusting a switching condition in a first embodiment of the present application;

[0010] Figure 2 yes Figure 1 Specific flow chart of step 104;

[0011] Figure 3 is a flow chart of a method for adjusting a switching condition in a second embodiment of the present application;

[0012] Figure 4 yes Figure 3 Specific flow chart of step 204;

[0013] Figure 5 It is a schematic diagram of the structure of an electronic device in the third embodiment of the present application. DETAILED DESCRIPTION

[0014] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0015] The first embodiment of the present application relates to a method for adjusting a switching condition, which is applied to a router AP, the AP supports working on at least two frequency bands at the same time, and the center frequencies of different frequency bands are different, and the AP is, for example, a Wi-Fi dual-band router, etc. The AP can establish a network connection with a Wi-Fi terminal STA, and the STA includes terminal devices such as mobile phones and tablet computers.

[0016] The specific process of the method for adjusting the switching condition in this embodiment is as follows: Figure 1 As shown, including:

[0017] Step 101 : During a process in which a Wi-Fi terminal STA performs network communication with a router based on a first frequency band, a first signal strength index value and a first network rate index value of the STA under the first frequency band are detected.

[0018] Specifically, during the process of STA communicating with AP based on the first frequency band, AP detects the first signal strength index value S1 and the first network rate index value R1 of STA in the first frequency band in real time. The signal strength index value is obtained by AP from the air interface message sent by STA, and the network rate index value is obtained by AP by calculating the WIFI physical layer negotiation rate.

[0019] Step 102 : When the STA switches to the second frequency band to perform network communication with the router, a second signal strength index value and a second network rate index value of the STA in the second frequency band are detected.

[0020] Specifically, when the switching condition for the STA to switch from the first frequency band to the second frequency band is met, the AP can control the STA to switch from the first frequency band to the second frequency band through protocols such as 802.11kvr, or the AP forcibly disassociates the STA from the first frequency band to control the STA to switch from the first frequency band to the second frequency band. When the STA switches to the second frequency band to communicate with the AP over the network, the AP detects the second signal strength index value S2 and the second network rate index value R2 of the STA in the second frequency band in real time.

[0021] In one example, the switching condition includes a switching threshold, and the switching threshold is a preset signal strength index value, specifically, when the center frequency of the first frequency band is less than the center frequency of the second frequency band, if the first signal strength index value S1 is greater than or equal to the switching threshold, the switching condition for the STA to switch from the first frequency band to the second frequency band is satisfied, and the AP controls the STA to switch from the first frequency band to the second frequency band, and when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, if the first signal strength index value S1 is less than or equal to the switching threshold, the switching condition for the STA to switch from the first frequency band to the second frequency band is satisfied, and the AP controls the STA to switch from the first frequency band to the second frequency band. For example: the first frequency band is 2.4G, the second frequency band is 5G, the switching threshold is -45dbm, if the first signal strength index value S1 is greater than or equal to -45dbm, the AP controls the STA to switch from 2.4G to 5G; the first frequency band is 5G, the second frequency band is 2.4G, the switching threshold is -70dbm, if the first signal strength index value S1 is less than or equal to -70dbm, the AP controls the STA to switch from 5G to 2.4G. In another example, the switching threshold may also be a preset network rate indicator value. When the switching threshold is the preset network rate indicator value, the STA frequency band switching method is similar to the above, which will not be repeated here.

[0022] In one example, the first signal strength index value, the first network rate index value, the second signal strength index value, and the second network rate index value are respectively the average first signal strength index value, the average first network rate index value, the average second signal strength index value, and the average network rate index value within a preset time period.

[0023] Specifically, the AP calculates the average value of the first signal strength index value S1 detected multiple times within the preset time length to obtain the average first signal strength index value S1, calculates the average value of the first network rate index value R1 detected multiple times within the preset time length to obtain the average first network rate index value R1, calculates the average value of the second signal strength index value S2 detected multiple times within the preset time length to obtain the average second signal strength index value S2, and calculates the average value of the second network rate index value R2 detected multiple times within the preset time length to obtain the average second network rate index value R2, wherein the preset time length can be pre-set according to actual needs, and this embodiment does not make specific limitations. Since the first signal strength index value S1, the first network rate index value R1, the second signal strength index value S2, and the second network rate index value R2 may fluctuate, calculating the average value within the preset time length can avoid the influence of the fluctuation of the index values, making each index value more accurate.

[0024] Step 103: Determine a network quality index change value according to the first signal strength index value, the first network rate index value, the second signal strength index value, and the second network rate index value.

[0025] In one example, the network quality index change value is calculated in the following manner: D = S1 / (S1+S2)+R2 / (R1+R2); wherein D is the network quality index change value, S1 is the first signal strength index value, S2 is the second signal strength index value, R1 is the first network rate index value, and R2 is the second network rate index value. For example, if the first signal strength index value S1 is -45dbm, R1 is 270Mbps, S2 is -78dbm, and R2 is 130Mbps, then D = (-45) / (-45-78)+130 / (130+270) = 0.69. By such a calculation method, the AP can calculate the network quality index change value.

[0026] In an example, a correspondence between a first signal strength index value S1, a first network rate index value R1, a second signal strength index value S2, and a second network rate index value R2 and a network quality index change value is pre-set. After determining the first signal strength index value S1, the first network rate index value R1, the second signal strength index value S2, and the second network rate index value R2, the AP can determine the network quality index change value based on the correspondence.

[0027] Step 104: According to the change value of the network quality indicator, adjust the switching condition of the STA from the first frequency band to the second frequency band.

[0028] For an example, see Figure 2 , step 104 includes the following sub-steps:

[0029] Sub-step 1041, when the network quality indicator change value indicates that the network quality of the STA in the second frequency band is lower than the network quality of the STA in the first frequency band, adjust the switching conditions for the STA to switch from the first frequency band to the second frequency band, and the switching difficulty of the STA under the adjusted switching conditions is higher than the switching difficulty under the switching conditions before the adjustment.

[0030] Sub-step 1042, when the network quality indicator change value indicates that the network quality of the STA in the second frequency band is unchanged or improved compared with the network quality of the STA in the first frequency band, adjust the switching conditions for the STA to switch from the first frequency band to the second frequency band, and the switching difficulty of the STA under the adjusted switching conditions is lower than the switching difficulty under the switching conditions before the adjustment.

[0031] Specifically, the AP pre-sets the correspondence between the network quality index change value D and the network quality change situation. After determining the network quality index change value D, the network quality change situation can be determined based on the above correspondence and the relationship with the network quality index change value D. The network quality change situation can represent the change in the network quality of the STA in the second frequency band compared to the network quality of the STA in the first frequency band. For example, the pre-set correspondence between the network quality index change value D and the network quality change situation is as follows: when D < 0.8, it indicates that the network quality of the STA in the second frequency band has decreased compared to the network quality of the STA in the first frequency band; when 0.8 < D < 1.2, it indicates that the network quality of the STA in the second frequency band has no change compared to the network quality of the STA in the first frequency band; when D > 1.2, it indicates that the network quality of the STA in the second frequency band has improved compared to the network quality of the STA in the first frequency band.

[0032] When the network quality after the handover deteriorates, it means that the network quality of the STA in the first frequency band is better. Then, the handover condition for the STA to switch from the first frequency band to the second frequency band is adjusted. The handover difficulty of the STA under the adjusted handover condition is higher than that under the pre-adjusted handover condition, that is, the handover difficulty for the STA to switch from the first frequency band to the second frequency band is increased, so that the STA is as much as possible in the first frequency band and is less likely to switch to the second frequency band; when the network quality after the handover has no change, the handover condition for the STA to switch from the first frequency band to the second frequency band can be tentatively adjusted. The handover difficulty of the STA under the adjusted handover condition is lower than that under the pre-adjusted handover condition, that is, the handover difficulty for the STA to switch from the first frequency band to the second frequency band is decreased, so that the STA can switch to the second frequency band as easily as possible. In this way, the network quality may improve after the frequency band handover under the adjusted handover condition; when the network quality after the handover improves, it means that the network quality in the second frequency band is better. Then, the handover condition for the STA to switch from the first frequency band to the second frequency band is adjusted. The handover difficulty of the STA under the adjusted handover condition is lower than that under the pre-adjusted handover condition, that is, the handover difficulty for the STA to switch from the first frequency band to the second frequency band is decreased, so that the STA can switch to the second frequency band as easily as possible. By such a method, the AP can reasonably adjust the handover condition for the STA to switch from the first frequency band to the second frequency band, so that the STA is as much as possible in the frequency band with better network quality.

[0033] In one example, the switching condition includes a switching threshold, and the switching threshold is a preset signal strength index value; the switching condition for STA to switch from a first frequency band to a second frequency band is adjusted, and the switching difficulty of STA under the adjusted switching condition is higher than the switching difficulty under the switching condition before the adjustment, including: when the center frequency of the first frequency band is less than the center frequency of the second frequency band, the switching threshold is increased, and when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, the switching threshold is lowered, and the switching difficulty of STA under the adjusted switching condition is higher than the switching difficulty under the switching condition before the adjustment; the switching condition for STA to switch from the first frequency band to the second frequency band is adjusted, and the switching difficulty of STA under the adjusted switching condition is lower than the switching difficulty under the switching condition before the adjustment, including: when the frequency center of the first frequency band is less than the center frequency of the second frequency band, the switching threshold is lowered, and when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, the switching threshold is increased, and the switching difficulty of STA under the adjusted switching condition is lower than the switching difficulty under the switching condition before the adjustment.

[0034] Specifically, when the switching condition includes a switching threshold, and the switching threshold is a preset signal strength index value, the signal strength index value will increase when the STA approaches the AP, and when the signal strength index value is greater than or equal to the switching threshold, the AP will control the STA to switch from the frequency band with a low center frequency to the frequency band with a high center frequency. When the STA is away from the AP, the signal strength index value will decrease, and when the signal strength index value is less than or equal to the switching threshold, the AP will control the STA to switch from the frequency band with a high center frequency to the frequency band with a low center frequency. Therefore, when the center frequency of the first frequency band is less than the center frequency of the second frequency band, if it is necessary to increase the difficulty of the STA switching to the second frequency band, the switching threshold needs to be increased, and it is more difficult for the STA to switch to the second frequency band under the adjusted switching threshold, so that the STA can switch to the second frequency band when it is closer to the AP; when the center frequency of the first frequency band is greater than the frequency of the second frequency band, if it is necessary to increase the difficulty of the STA switching to the second frequency band, the switching threshold needs to be lowered, and it is more difficult to switch to the second frequency band under the adjusted switching threshold, so that the STA can switch to the second frequency band when it is farther away from the AP. When the center frequency of the first frequency band is less than the center frequency of the second frequency band, if the difficulty of STA switching to the second frequency band needs to be reduced, the switching threshold needs to be lowered, and the STA is more likely to switch to the second frequency band under the adjusted switching threshold, so that the STA can switch to the second frequency band when it is far away from the AP; when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, if the difficulty of STA switching to the second frequency band needs to be reduced, the switching threshold needs to be increased, and the STA is more likely to switch to the second frequency band under the adjusted switching threshold, so that the STA can switch to the second frequency band when it is close to the AP. In this way, the switching condition for STA to switch from the first frequency band to the second frequency band can be accurately adjusted.

[0035] In an example, the switching threshold may also be a preset network rate index value. When the switching threshold is the preset network rate index value, the switching condition for STA to switch from the first frequency band to the second frequency band is adjusted, and the switching difficulty of STA under the adjusted switching condition is higher than the switching difficulty under the switching condition before the adjustment. The switching condition for STA to switch from the first frequency band to the second frequency band is adjusted, and the switching difficulty of STA under the adjusted switching condition is lower than the switching difficulty under the switching condition before the adjustment. The method is similar to the above and will not be repeated here.

[0036] In one example, raising or lowering the switching threshold includes: raising or lowering the switching threshold according to a preset adjustment step, so that the switching threshold can be raised or lowered faster by setting the adjustment step. The preset adjustment step can be set according to actual conditions, and this embodiment does not specifically limit it. For example: the preset adjustment step is 3dbm, the switching threshold before adjustment is -45dbm, and when the switching threshold is raised, the adjusted switching threshold is -42dbm.

[0037] The method for adjusting the switching condition of this embodiment will be described below with reference to two specific examples.

[0038] The first specific example: the first frequency band is 2.4G, the second frequency band is 5G, and when the first signal strength index value S1 is greater than or equal to the switching threshold, the AP controls the STA to switch from the first frequency band to the second frequency band, and the switching threshold is a preset signal strength index value of -45dbm.

[0039] During the process of network communication between the STA and the AP based on 2.4G, the AP detects the first signal strength index value S1 = -45dbm and the first network rate index value R1 = 270Mbps of the STA under 2.4G; at this time, the first signal strength index value S1 is equal to -45dbm, and the AP controls the STA to switch from 2.4G to 5G. During the process of the STA switching to 5G and communicating with the AP, the AP detects the second signal strength index value S2 = -78dbm and the second network rate index value R2 = 130Mbps of the STA under 5G; then the network quality index value D = (-45) / (-45 - 78) + 130 / (130 + 270) = 0.69. According to the pre-set correspondence between the change value D of the network quality index and the network quality change situation: when D < 0.8, the network quality of the STA under the second frequency band decreases compared with the network quality of the STA under the first frequency band; when 0.8 < D < 1.2, the network quality of the STA under the second frequency band has no change compared with the network quality of the STA under the first frequency band; when D > 1.2, the network quality of the STA under the second frequency band improves compared with the network quality of the STA under the first frequency band. It can be determined that at this time, the network quality of the STA under the second frequency band decreases compared with the network quality of the STA under the first frequency band. Then, according to the pre-set adjustment step of 3dbm, the switching threshold is increased to -42dbm. The switching difficulty of the STA under the adjusted switching condition is higher than that under the unadjusted switching condition, increasing the switching difficulty of the STA switching from the first frequency band to the second frequency band.

[0040] The second specific example: The first frequency band is 5G, the second frequency band is 2.4G. When the first signal strength index value S1 is less than or equal to the switching threshold, the AP controls the STA to switch from the first frequency band to the second frequency band, and the switching threshold is the pre-set signal strength index value of -70dbm.

[0041] During the process of network communication between the STA and the AP based on 5G, the AP detects that the first signal strength index value S1 of the STA under 5G is -70 dBm and the first network rate index value R1 is 39 Mbps; at this time, the first signal strength index value S1 is equal to -70 dBm, and the AP controls the STA to switch from 5G to 2.4G. During the process of the STA switching to 5G for network communication with the AP, the AP detects that the second signal strength index value S2 of the STA under 5G is -80 dBm and the second network rate index value R2 is 216 Mbps; then the network quality index value D = (-70) / (-70 - 80) + 216 / (39 + 216) = 1.31. According to the pre-set correspondence between the change value D of the network quality index and the network quality change situation: when D < 0.8, the network quality of the STA under the second frequency band decreases compared with the network quality of the STA under the first frequency band; when 0.8 < D < 1.2, the network quality of the STA under the second frequency band has no change compared with the network quality of the STA under the first frequency band; when D > 1.2, the network quality of the STA under the second frequency band improves compared with the network quality of the STA under the first frequency band. It can be determined that at this time, the network quality of the STA under the second frequency band improves compared with the network quality of the STA under the first frequency band. Then, according to the pre-set adjustment step of 3 dBm, the switching threshold is increased to -67 dBm. The switching difficulty of the STA under the adjusted switching condition is lower than that under the unadjusted switching condition, reducing the switching difficulty of the STA switching from the first frequency band to the second frequency band.

[0042] In this embodiment, during the process of network communication between the Wi-Fi terminal STA and the AP based on the first frequency band, the first signal strength index value and the first network rate index value of the STA under the first frequency band are detected; during the process of the STA switching to the second frequency band for network communication with the AP, the second signal strength index value and the second network rate index value of the STA under the second frequency band are detected; according to the first signal strength index value, the first network rate index value, the second signal strength index value and the second network rate index value, the change value of the network quality index is determined; according to the change value of the network quality index, the switching condition for the STA to switch from the first frequency band to the second frequency band is adjusted. By such a method, the switching condition is automatically adjusted. Since the change value of the network quality index can reflect whether the network quality of the STA improves and the improvement amplitude before and after the frequency band switching, which is equivalent to reflecting the change situation of the network environment of the STA, so when adjusting the switching condition according to the change value of the network quality index, the change of the network environment of the STA is considered. When the STA performs frequency band switching under the adjusted switching condition, the possibility of the network quality improving after the frequency band switching is increased.

[0043] The second embodiment of the present invention relates to a method for adjusting a switching condition. The second embodiment is substantially the same as the first embodiment, except that the service quality indicator value of the STA in the first frequency band is also considered when adjusting the switching condition. The specific process of the method for adjusting the switching condition of this embodiment is as follows: Figure 3 As shown, including:

[0044] Step 201: During network communication between a STA and a router based on a first frequency band, a first signal strength index value, a first network rate index value, and a service quality index value of the STA under the first frequency band are detected.

[0045] Specifically, during the process of STA communicating with AP based on the first frequency band, AP detects the first signal strength index value S1, the first network rate index value R1 and the service quality index value Z of STA in the first frequency band in real time. The service quality index value Z includes the network packet loss rate Z1 and / or the delay index value Z2, and can reflect the quality of the service experience. When the service quality index value Z meets the needs of the current service, it indicates that the service experience is good. When the service quality index value Z does not meet the needs of the current service, it indicates that the service experience is poor. Different services have different requirements. For example, the service requirements of video services are that the network packet loss rate is less than 10%, and the delay index value is less than 10ms.

[0046] Step 202 : When the STA switches to the second frequency band to perform network communication with the router, a second signal strength index value and a second network rate index value of the STA in the second frequency band are detected.

[0047] Step 203: Determine a network quality index change value according to the first signal strength index value, the first network rate index value, the second signal strength index value, and the second network rate index value.

[0048] Steps 202-203 are similar to steps 102-103 in the first embodiment and are not described in detail here.

[0049] Step 204: According to the network quality indicator change value and the service quality indicator value, adjust the switching condition for the STA to switch from the first frequency band to the second frequency band.

[0050] For an example, see Figure 4 , step 204 includes the following sub-steps:

[0051] Sub-step 2041, when the service quality index value meets the needs of the current service and the network quality index change value indicates that the network quality of the STA in the second frequency band is lower than the network quality of the STA in the first frequency band, adjust the switching conditions for the STA to switch from the first frequency band to the second frequency band, and the switching difficulty of the STA under the adjusted switching conditions is higher than the switching difficulty under the switching conditions before the adjustment.

[0052] Sub-step 2042, when the service quality index value does not meet the needs of the current service, and the network quality index change value indicates that the network quality of the STA in the second frequency band is improved compared with the network quality of the STA in the first frequency band, adjust the switching conditions for the STA to switch from the first frequency band to the second frequency band, and the switching difficulty of the STA under the adjusted switching conditions is lower than the switching difficulty under the switching conditions before the adjustment.

[0053] Sub-step 2043, when the service quality indicator value meets the needs of the current service and the network quality indicator change value indicates that the network quality of the STA in the second frequency band is improved compared with the network quality of the STA in the first frequency band, or when the network quality indicator change value indicates that the network quality of the STA in the second frequency band is unchanged compared with the network quality of the STA in the first frequency band, or when the service quality indicator value does not meet the needs of the current service and the network quality indicator change value indicates that the network quality of the STA in the second frequency band is reduced compared with the network quality of the STA in the first frequency band, keep the switching condition for the STA to switch from the first frequency band to the second frequency band unchanged.

[0054] Specifically, different services have different requirements. The AP detects the service quality index value of the STA in the first frequency band and compares it with the service quality index value of the current service requirement to determine whether the service quality index value meets the current service requirement. When the service quality index value includes the network packet loss rate Z1 or the delay index value Z2, and the service requirement of the current service is that the network packet loss rate Z1 or the delay index value Z2 is less than the preset value, then when the detected network packet loss rate Z1 or the delay index value Z2 is less than the preset value, the current service is met; when the network packet loss rate Z1 or the delay index value Z2 is greater than the preset value, the current service is not met; when the service quality index value includes the network packet loss rate Z1 and the delay index value Z2, and the service requirement of the current service is that the network packet loss rate is less than the first preset value and the delay index value is less than the second preset value, then when the detected network packet loss rate Z1 is less than the first preset value and the delay index value Z2 is less than the second preset value, the current service requirement is met; when the network packet loss rate Z1 is greater than the first preset value or the delay index value Z2 is greater than the second preset value, the current service requirement is not met.

[0055] The AP pre-sets the correspondence between the network quality index change value D and the network quality change situation. After determining the network quality index change value D, the network quality change situation can be determined based on the above correspondence and the relationship with the network quality index change value D. The network quality change situation can represent the change in the network quality of the STA in the second frequency band compared to the network quality of the STA in the first frequency band. For example, the correspondence between the pre-set network quality index change value D and the network quality change situation is as follows: when D < 0.8, it indicates that the network quality of the STA in the second frequency band has decreased compared to the network quality of the STA in the first frequency band; when 0.8 < D < 1.2, it indicates that the network quality of the STA in the second frequency band has no change compared to the network quality of the STA in the first frequency band; when D > 1.2, it indicates that the network quality of the STA in the second frequency band has improved compared to the network quality of the STA in the first frequency band.

[0056] When the service quality index value meets the requirements of the current service and the network quality after the handover has decreased, it means that the network quality of the STA in the first frequency band is better. Then, the handover condition for the STA to switch from the first frequency band to the second frequency band is adjusted. The handover difficulty of the STA under the adjusted handover condition is higher than that under the pre-adjusted handover condition, that is, the handover difficulty for the STA to switch from the first frequency band to the second frequency band is increased, so that the STA is as much as possible in the first frequency band and is less likely to switch to the second frequency band; when the service quality index value does not meet the requirements of the current service and the network quality after the handover has improved, it means that the network quality in the second frequency band is better. Then, the handover condition for the STA to switch from the first frequency band to the second frequency band is adjusted. The handover difficulty of the STA under the adjusted handover condition is lower than that under the pre-adjusted handover condition, that is, the handover difficulty for the STA to switch from the first frequency band to the second frequency band is decreased, so that the STA can switch to the second frequency band as easily as possible; when the service quality index value meets the requirements of the current service and the network quality after the handover has improved, it means that the network quality of the STA before and after the handover is better, that is, the current handover condition is better. At this time, keeping the handover condition unchanged can keep the network quality before and after the handover in a better state. Or, when the network quality after the handover has no change, adjusting the handover condition at this time cannot guarantee an increase in the possibility of network quality improvement after the frequency band handover under the adjusted handover condition. Therefore, keep the handover condition unchanged. Or, when the service quality index value does not meet the requirements of the current service and the network quality after the handover has decreased, it means that the network quality before and after the handover is not very good. Even adjusting the handover condition cannot guarantee an increase in the possibility of network quality improvement after the frequency band handover under the adjusted handover condition. Therefore, keep the handover condition unchanged, that is, the handover difficulty for the STA to switch from the first frequency band to the second frequency band remains unchanged. By this method, the AP can reasonably adjust the handover condition for the STA to switch from the first frequency band to the second frequency band.

[0057] In one example, the switching condition includes a switching threshold, and the switching threshold is a preset signal strength index value; the switching condition for STA to switch from a first frequency band to a second frequency band is adjusted, and the switching difficulty of STA under the adjusted switching condition is higher than the switching difficulty under the switching condition before the adjustment, including: when the center frequency of the first frequency band is less than the center frequency of the second frequency band, the switching threshold is increased, and when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, the switching threshold is lowered, and the switching difficulty of STA under the adjusted switching condition is higher than the switching difficulty under the switching condition before the adjustment; the switching condition for STA to switch from the first frequency band to the second frequency band, and the switching difficulty of STA under the adjusted switching condition is lower than the switching difficulty under the switching condition before the adjustment, including: when the frequency center of the first frequency band is less than the center frequency of the second frequency band, the switching threshold is lowered, and when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, the switching threshold is increased, so that the switching difficulty of STA under the adjusted switching condition is lower than the switching difficulty under the switching condition before the adjustment.

[0058] Specifically, when the switching condition includes a switching threshold, and the switching threshold is a preset signal strength index value, the signal strength index value will increase when the STA approaches the AP, and when the signal strength index value is greater than or equal to the switching threshold, the AP will control the STA to switch from the frequency band with a low center frequency to the frequency band with a high center frequency. When the STA is away from the AP, the signal strength index value will decrease, and when the signal strength index value is less than or equal to the switching threshold, the AP will control the STA to switch from the frequency band with a high center frequency to the frequency band with a low center frequency. Therefore, when the center frequency of the first frequency band is less than the center frequency of the second frequency band, if it is necessary to increase the difficulty of the STA switching to the second frequency band, the switching threshold needs to be increased, and it is more difficult for the STA to switch to the second frequency band under the adjusted switching threshold, so that the STA can switch to the second frequency band when it is closer to the AP; when the center frequency of the first frequency band is greater than the frequency of the second frequency band, if it is necessary to increase the difficulty of the STA switching to the second frequency band, the switching threshold needs to be lowered, and it is more difficult to switch to the second frequency band under the adjusted switching threshold, so that the STA can switch to the second frequency band when it is farther away from the AP. When the center frequency of the first frequency band is less than the center frequency of the second frequency band, if the difficulty of STA switching to the second frequency band needs to be reduced, the switching threshold needs to be lowered, and the STA is more likely to switch to the second frequency band under the adjusted switching threshold, so that the STA can switch to the second frequency band when it is far away from the AP; when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, if the difficulty of STA switching to the second frequency band needs to be reduced, the switching threshold needs to be increased, and the STA is more likely to switch to the second frequency band under the adjusted switching threshold, so that the STA can switch to the second frequency band when it is close to the AP. In this way, the switching condition for STA to switch from the first frequency band to the second frequency band can be accurately adjusted.

[0059] In an example, the switching threshold may also be a preset network rate index value. When the switching threshold is the preset network rate index value, the switching condition for STA to switch from the first frequency band to the second frequency band is adjusted, and the switching difficulty of STA under the adjusted switching condition is higher than the switching difficulty under the switching condition before the adjustment. The switching condition for STA to switch from the first frequency band to the second frequency band is adjusted, and the switching difficulty of STA under the adjusted switching condition is lower than the switching difficulty under the switching condition before the adjustment. The method is similar to the above and will not be repeated here.

[0060] In one example, raising or lowering the switching threshold includes: raising or lowering the switching threshold according to a preset adjustment step, so that the switching threshold can be raised or lowered faster by setting the adjustment step. The preset adjustment step can be set according to actual conditions, and this embodiment does not specifically limit it. For example: the preset adjustment step is 3dbm, the switching threshold before adjustment is -45dbm, and when the switching threshold is raised, the adjusted switching threshold is -42dbm.

[0061] The method for adjusting the switching condition of this embodiment will be described below with reference to two specific examples.

[0062] The first specific example: the first frequency band is 2.4G, the second frequency band is 5G, and when the first signal strength index value S1 is greater than or equal to the switching threshold, the AP controls the STA to switch from the first frequency band to the second frequency band. The switching threshold is the preset signal strength index value -45dbm. The business requirements of the current business are that the network packet loss rate is less than 10%, and the delay index value is less than 10ms.

[0063] During the process of network communication between the STA and the AP based on 2.4G, the AP detects that the first signal strength index value S1 of the STA under 2.4G is -45dbm, the first network rate index value R1 is 270Mbps, and the service quality index value Z includes a network packet loss rate Z1 of 5% and a delay index value Z2 of 8ms. At this time, since the network packet loss rate Z1 < 10% and the delay index value Z2 < 10ms, the service quality index value meets the current service requirements. Moreover, since the first signal strength index value S1 is equal to -45dbm, the AP controls the STA to switch from 2.4G to 5G. During the process of the STA switching to 5G for network communication with the AP, the AP detects that the second signal strength index value S2 of the STA under 5G is -78dbm and the second network rate index value R2 is 130Mbps. Then the network quality index value D = (-45) / (-45 - 78) + 130 / (130 + 270) = 0.69. According to the pre-set correspondence between the network quality index change value D and the network quality change situation: when D < 0.8, the network quality of the STA under the second frequency band decreases compared to the network quality of the STA under the first frequency band; when 0.8 < D < 1.2, the network quality of the STA under the second frequency band remains unchanged compared to the network quality of the STA under the first frequency band; when D > 1.2, the network quality of the STA under the second frequency band improves compared to the network quality of the STA under the first frequency band. It can be determined that at this time, the network quality of the STA under the second frequency band decreases compared to the network quality of the STA under the first frequency band. That is, the service quality index value meets the requirements of the current service, and the network quality index change value indicates that the network quality of the STA under the second frequency band decreases compared to the network quality of the STA under the first frequency band. Then, according to the pre-set adjustment step of 3dbm, the switching threshold is increased to -42dbm. The switching difficulty of the STA under the adjusted switching condition is higher than that under the pre-adjusted switching condition, increasing the switching difficulty of the STA switching from the first frequency band to the second frequency band.

[0064] The second specific example: The first frequency band is 5G, the second frequency band is 2.4G. When the first signal strength index value S1 is less than or equal to the switching threshold, the AP controls the STA to switch from the first frequency band to the second frequency band. The switching threshold is the pre-set signal strength index value of -70dbm. The service requirement of the current service is that the network packet loss rate is less than 10% and the delay index value is less than 10ms.

[0065] During the process of network communication between the STA and the AP based on 5G, the AP detects that the first signal strength index value S1 of the STA under 5G is -70 dbm, the first network rate index value R1 is 39 Mbps, and the service quality index value Z includes a network packet loss rate Z1 of 20% and a delay index value Z2 of 15 ms. At this time, since the network packet loss rate Z1 > 10% and the delay index value Z2 > 10 ms, the service quality index value does not meet the current service requirements. Moreover, since the first signal strength index value S1 is equal to -70 dbm, the AP controls the STA to switch from 5G to 2.4G. During the process of the STA switching to communicate with the AP over 5G, the AP detects that the second signal strength index value S2 of the STA under 5G is -80 dbm and the second network rate index value R2 is 216 Mbps. Then the network quality index value D = (-70) / (-70 - 80) + 216 / (39 + 216) = 1.31. According to the pre-set correspondence between the network quality index change value D and the network quality change situation: when D < 0.8, the network quality of the STA under the second frequency band decreases compared to the network quality of the STA under the first frequency band; when 0.8 < D < 1.2, the network quality of the STA under the second frequency band remains unchanged compared to the network quality of the STA under the first frequency band; when D > 1.2, the network quality of the STA under the second frequency band improves compared to the network quality of the STA under the first frequency band. That is, the service quality index value does not meet the requirements of the current service, and the network quality index change value indicates that the network quality of the STA under the second frequency band improves compared to the network quality of the STA under the first frequency band. Then, according to the pre-set adjustment step of 3 dbm, the handover threshold is increased to -67 dbm. The handover difficulty of the STA under the adjusted handover condition is lower than that under the pre-adjusted handover condition, reducing the handover difficulty of the STA switching from the first frequency band to the second frequency band.

[0066] In this embodiment, since the service quality index value can also reflect the current network environment to a certain extent, the AP adjusts the handover condition according to the network quality index change value and the service quality index value, which can comprehensively consider the current network environment and the change situation of the network environment, making the adjusted handover condition more reasonable, and further increasing the possibility of network quality improvement after the STA performs frequency band handover under the adjusted handover condition.

[0067] The step division of the above various methods is only for clear description. When implemented, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the protection scope of this patent.

[0068] The third embodiment of the present invention relates to an electronic device, such as Figure 5 As shown, it includes: at least one processor 302; and a memory 301 that is communicatively connected to the at least one processor; wherein the memory 301 stores instructions that can be executed by the at least one processor 302, and the instructions are executed by the at least one processor 302 so that the at least one processor 302 can execute the method for adjusting the switching condition of the above-mentioned embodiment.

[0069] The memory 301 and the processor 302 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 302 and the memory 301 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 302 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 302.

[0070] The processor 302 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 301 can be used to store data used by the processor 302 when performing operations.

[0071] A fourth embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.

[0072] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0073] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A method for adjusting a switching condition, characterized in that: include: In a process in which a Wi-Fi terminal STA performs network communication with a router based on a first frequency band, detecting a first signal strength index value and a first network rate index value of the STA in the first frequency band, and detecting a service quality index value of the STA in the first frequency band; In the process of the STA switching to the second frequency band to perform network communication with the router, detecting a second signal strength index value and a second network rate index value of the STA in the second frequency band; Determine a network quality index change value according to the first signal strength index value, the first network rate index value, the second signal strength index value, and the second network rate index value; Adjusting a switching condition for the STA to switch from the first frequency band to the second frequency band according to the network quality indicator change value and the service quality indicator value; The adjusting, according to the network quality indicator change value and the service quality indicator value, a switching condition for the STA to switch from the first frequency band to the second frequency band includes: When the service quality indicator value meets the needs of the current service, and the network quality indicator change value indicates that the network quality of the STA in the second frequency band is reduced compared with the network quality of the STA in the first frequency band, adjusting the switching condition for the STA to switch from the first frequency band to the second frequency band, and the switching difficulty of the STA under the switching condition after the adjustment is higher than the switching difficulty under the switching condition before the adjustment; When the service quality indicator value does not meet the needs of the current service, and the network quality indicator change value indicates that the network quality of the STA in the second frequency band is improved compared with the network quality of the STA in the first frequency band, adjusting the switching condition for the STA to switch from the first frequency band to the second frequency band, and the switching difficulty of the STA under the switching condition after the adjustment is lower than the switching difficulty under the switching condition before the adjustment; When the service quality indicator value meets the needs of the current service and the network quality indicator change value indicates that the network quality of the STA in the second frequency band is improved compared with the network quality of the STA in the first frequency band, or when the network quality indicator change value indicates that the network quality of the STA in the second frequency band is unchanged compared with the network quality of the STA in the first frequency band, or when the service quality indicator value does not meet the needs of the current service and the network quality indicator change value indicates that the network quality of the STA in the second frequency band is reduced compared with the network quality of the STA in the first frequency band, the switching condition for the STA to switch from the first frequency band to the second frequency band remains unchanged.

2. The method for adjusting the switching condition according to claim 1, characterized in that: Adjusting, according to the change value of the network quality indicator, a switching condition for the STA to switch from the first frequency band to the second frequency band, including: When the network quality indicator change value indicates that the network quality of the STA in the second frequency band is lower than the network quality of the STA in the first frequency band, adjusting the switching condition for the STA to switch from the first frequency band to the second frequency band, the switching difficulty of the STA under the switching condition after the adjustment is higher than the switching difficulty under the switching condition before the adjustment; When the network quality indicator change value indicates that the network quality of the STA in the second frequency band is unchanged or improved compared with the network quality of the STA in the first frequency band, the switching conditions for the STA to switch from the first frequency band to the second frequency band are adjusted, and the switching difficulty of the STA under the adjusted switching conditions is lower than the switching difficulty under the switching conditions before the adjustment.

3. The method for adjusting the switching condition according to claim 2, characterized in that: The switching condition includes a switching threshold, and the switching threshold is a preset signal strength index value; The adjusting the switching condition for the STA to switch from the first frequency band to the second frequency band, wherein the switching difficulty of the STA under the switching condition after the adjustment is higher than the switching difficulty under the switching condition before the adjustment, includes: When the center frequency of the first frequency band is less than the center frequency of the second frequency band, the switching threshold is increased; when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, the switching threshold is decreased, and the switching difficulty of the STA under the switching condition after the adjustment is higher than the switching difficulty under the switching condition before the adjustment; The adjusting the switching condition for the STA to switch from the first frequency band to the second frequency band, wherein the switching difficulty of the STA under the switching condition after the adjustment is lower than the switching difficulty under the switching condition before the adjustment, includes: When the frequency center of the first frequency band is less than the center frequency of the second frequency band, the switching threshold is lowered; when the center frequency of the first frequency band is greater than the center frequency of the second frequency band, the switching threshold is increased, and the switching difficulty of the STA under the adjusted switching conditions is lower than the switching difficulty under the switching conditions before the adjustment.

4. The method for adjusting the switching condition according to claim 3, characterized in that: The step of increasing the switching threshold or decreasing the switching threshold comprises: According to a preset adjustment step, the switching threshold is adjusted higher or lower.

5. The method for adjusting switching conditions according to claim 1, characterized in that: The determining the network quality index change value according to the first signal strength index value, the first network rate index value, the second signal strength index value, and the second network rate index value includes: D= S1 / (S1+S2)+ R2 / (R1+R2); Among them, D is the network quality index change value, S1 is the first signal strength index value, S2 is the second signal strength index value, R1 is the first network rate index value, and R2 is the second network rate index value.

6. The method for adjusting switching conditions according to claim 1, characterized in that: The first signal strength index value, the first network rate index value, the second signal strength index value and the second network rate index value are respectively the average first signal strength index value, the average first network rate index value, the average second signal strength index value and the average network rate index value within a preset time period.

7. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method for adjusting a switching condition according to any one of claims 1 to 6.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for adjusting a switching condition according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Wireless router and method for switching frequency band of access terminal

    CN107046693A