CN110572859B - AP switching method, device, equipment and medium - Google Patents

AP switching method, device, equipment and medium Download PDF

Info

Publication number
CN110572859B
CN110572859B CN201910936064.5A CN201910936064A CN110572859B CN 110572859 B CN110572859 B CN 110572859B CN 201910936064 A CN201910936064 A CN 201910936064A CN 110572859 B CN110572859 B CN 110572859B
Authority
CN
China
Prior art keywords
currently connected
packet loss
loss rate
aps
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910936064.5A
Other languages
Chinese (zh)
Other versions
CN110572859A (en
Inventor
黄钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910936064.5A priority Critical patent/CN110572859B/en
Publication of CN110572859A publication Critical patent/CN110572859A/en
Application granted granted Critical
Publication of CN110572859B publication Critical patent/CN110572859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0058Transmission of hand-off measurement information, e.g. measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0088Scheduling hand-off measurements

Abstract

The invention discloses an AP switching method, device, equipment and medium, which are used for realizing AP switching. The method comprises the steps of obtaining an average network delay value and a packet loss rate of a currently connected wireless Access Point (AP), when the average network delay value or the packet loss rate is larger than a corresponding first threshold value, indicating that the network quality of the currently connected AP is poor and does not meet the use requirement, and needing to switch the AP. Because the received signal strength of the target AP among the other APs is greater than that of the currently connected AP, the switched AP meets the use requirement, thereby implementing AP switching.

Description

AP switching method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for AP switching.
Background
With the development of the internet industry and the popularization of intelligent home equipment, 2.4G frequency band networks are more crowded, the network performance is reduced, and spectrum resources are utilized to the limit. Compared with a 2.4G frequency band network, the 5G frequency band network has obvious advantages and can provide larger broadband and faster response.
A corresponding number of Wireless Access Points (APs) are deployed in a network of each frequency band, and an AP may be switched during the use of the intelligent terminal. However, in the prior art, there is no corresponding AP switching scheme.
Disclosure of Invention
The embodiment of the invention provides an AP switching method, device, equipment and medium, which are used for realizing AP switching.
The embodiment of the invention provides an AP switching method, which comprises the following steps:
acquiring network quality parameters of a currently connected wireless Access Point (AP), wherein the network quality parameters comprise a network delay value and a packet loss rate;
judging whether the average network delay value or the packet loss rate is greater than a corresponding first threshold value;
if yes, determining a target AP from other target APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and switching to the target AP.
Further, before the obtaining of the network quality parameter of the currently connected wireless access point AP, the method further includes:
judging whether the number of other APs with the stored passwords in the monitoring range of the currently connected AP is larger than a set number threshold value or not;
and if so, acquiring the network quality parameters of the currently connected wireless access point AP.
Further, the acquiring the network quality parameter of the currently connected wireless access point AP includes:
sending a set number of data packets to a pre-stored device corresponding to the IP through a currently connected wireless Access Point (AP);
and determining the network quality parameters of the currently connected wireless access point AP according to the data packet returned by the IP equipment.
Further, if the average network delay value or the packet loss ratio is greater than the corresponding first threshold, but no other AP with a higher received signal strength than the currently connected AP exists in other APs in which the password is stored in the currently connected AP monitoring range, the method further includes:
judging whether the packet loss rate is greater than a preset second threshold, wherein the second threshold is greater than a first threshold corresponding to the packet loss rate;
and if so, switching to the AP with the maximum received signal strength in the other APs with the stored passwords.
Further, the method further comprises:
and if the packet loss rate is smaller than a preset second threshold value, keeping the currently connected AP unchanged.
Further, the determining a target AP from the other APs which have stored the password and are stronger than the received signal strength of the currently connected AP in the monitoring range of the currently connected AP includes:
determining the AP with the maximum received signal strength value as a target AP or among other APs which have stored passwords and are larger than the received signal strength of the currently connected AP within the monitoring range of the currently connected AP;
and randomly selecting one AP as a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP.
Further, the method further comprises:
and if the average network delay value and the packet loss rate are both smaller than the corresponding first threshold, keeping the currently connected AP unchanged.
Accordingly, an embodiment of the present invention provides an AP switching apparatus, where the apparatus includes:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring network quality parameters of a currently connected wireless Access Point (AP), and the network quality parameters comprise an average network delay value and a packet loss rate;
the judging module is used for judging whether the average network delay value or the packet loss rate is larger than a corresponding first threshold value or not;
and the switching module is used for determining a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP if the average network delay value or the packet loss rate is greater than the corresponding first threshold value, and switching to the target AP.
Further, the judging module is further configured to judge whether the number of other APs in which the password is stored in the currently connected wireless access point AP monitoring range is greater than a set number threshold; if yes, the acquisition module is triggered.
Further, the acquiring module is specifically configured to send a set number of data packets to a device corresponding to a pre-stored IP through a currently connected wireless access point AP; and determining the network quality parameters of the currently connected wireless access point AP according to the data packet returned by the IP equipment.
Further, the determining module is further configured to determine whether the packet loss rate is greater than a preset second threshold value if the average network delay value or the packet loss rate is greater than the corresponding first threshold value, but no other AP with a higher received signal strength than the currently connected AP exists in other APs in which passwords are stored in the monitoring range of the currently connected AP, where the second threshold value is greater than the first threshold value corresponding to the packet loss rate;
the switching module is further configured to switch to the AP with the largest received signal strength among the other APs in which the password is stored, when the packet loss rate is greater than a preset second threshold.
Further, the switching module is further configured to keep the currently connected AP unchanged if the packet loss rate is smaller than a preset second threshold.
Further, the switching module is specifically configured to determine, as the target AP or an AP with the largest received signal strength value, among other APs, which have stored the password and have higher received signal strength than the currently connected AP, within the monitoring range of the currently connected AP; and randomly selecting one AP as a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP.
Further, the switching module is further configured to keep the currently connected AP unchanged if the average network delay value and the packet loss rate are both smaller than the corresponding first threshold.
Accordingly, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory is used to store program instructions, and the processor is used to implement the steps of any one of the above AP switching methods when executing a computer program stored in the memory.
Accordingly, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the steps of any one of the methods when the AP handover method is executed.
In the embodiment of the invention, the average network delay value and the packet loss rate of the currently connected wireless access point AP are obtained, when the average network delay value or the packet loss rate is greater than the corresponding first threshold value, the network quality of the currently connected AP is poor and the AP does not meet the use requirement, the AP needs to be switched, and in order to ensure the communication quality, a target AP is determined in other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and the AP is switched to the target AP. Because the received signal strength of the target AP among the other APs is greater than that of the currently connected AP, the switched AP meets the use requirement, thereby implementing AP switching.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of an AP handover process provided in embodiment 1 of the present invention;
fig. 2 is a schematic diagram of another AP handover process according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an AP switching apparatus according to embodiment 7 of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to embodiment 8 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to implement AP switching, embodiments of the present invention provide an AP switching method, apparatus, device, and medium.
Example 1:
fig. 1 is a schematic diagram of an AP handover process provided in embodiment 1 of the present invention, where the process includes the following steps:
s101: the method comprises the steps of obtaining network quality parameters of a wireless Access Point (AP) connected at present, wherein the network quality parameters comprise an average network delay value and a packet loss rate.
The AP is a device which can enable the intelligent terminal to be connected to the Internet through WI-FI, Bluetooth and the like, has the function of converting a wired network into a wireless network, is connected with the wired network, plays a role of relay between the intelligent terminal and the wired network, and specifically can be an access device such as a wireless router and a switch.
The AP switching method provided by the embodiment of the invention is applied to an intelligent terminal, the intelligent terminal is connected to the Internet through the AP, so that a user can use resources on the Internet, and the intelligent terminal is specifically a device with a wireless network connection function, such as an intelligent mobile phone, a tablet personal computer and a notebook computer.
Before switching, the intelligent terminal needs to determine whether the network quality of the currently connected AP meets the use requirement, so that network quality parameters of the currently connected AP need to be obtained, specifically, the network quality parameters include an average network delay value and a packet loss rate.
The definition of the network delay refers to the time taken by data to transmit in a transmission medium, that is, the time from the beginning of the data entering the network to the beginning of the data leaving the network, the average network delay value is the average time required for transmitting a set number of data packets in the currently connected network in the transmission medium, and the packet loss rate refers to the proportion of the data packets lost in the currently connected network to the total data packets sent.
S102: and judging whether the average network delay value or the packet loss rate is greater than a corresponding first threshold value.
In order to implement the AP handover, in the embodiment of the present invention, the determination is performed with respect to the network quality parameter of the AP, and therefore, for convenience of determination, the first threshold corresponding to the average network delay value and the packet loss rate is preset and is preset according to the user requirement and the actual network situation.
Preferably, in the embodiment of the present invention, the first threshold corresponding to the average network delay value may be 300, 290, etc., and the first threshold corresponding to the packet loss rate may be 0.3, 0.28, etc.
S103: if yes, determining a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and switching to the target AP.
Specifically, whether the network quality of the currently connected AP meets the use requirement may be determined by determining whether the average network delay value or the packet loss rate of the currently connected AP is greater than the corresponding first threshold.
When the average network delay value is greater than the first threshold value of the corresponding network delay value, it indicates that the time required for transmitting the data packet in the network has already made the user have obvious waiting experience, and the user experience is degraded, so the network quality of the currently connected AP does not meet the use requirement, and the AP needs to be switched.
When the packet loss rate is greater than the first threshold of the corresponding packet loss rate, it indicates that too few data packets sent by the device corresponding to the destination IP received by the currently connected AP have significantly affected the interaction between the intelligent terminal and the device corresponding to the destination IP, so that the user experience is reduced, and therefore, the network quality of the currently connected AP does not meet the use requirement, and AP switching is required.
When the average network delay value is greater than the first threshold of the corresponding network delay value, or the packet loss rate is greater than the first threshold of the corresponding packet loss rate, or both the average network delay value and the packet loss rate are greater than the corresponding first thresholds, it is indicated that the network quality of the currently connected AP does not meet the usage requirement, and the AP needs to be switched.
And when the average network delay value or the packet loss rate is greater than the corresponding first threshold value, that is, the network quality of the currently connected AP does not meet the use requirement, the AP needs to be switched.
When switching is performed, the information of other APs in the monitoring range of the currently connected AP, where the password is stored, can be obtained through scanning. In order to ensure the network quality after the handover, in the embodiment of the present invention, the received signal strength of other APs in which the password is stored is queried, and an AP whose received signal strength is greater than that of the currently connected AP is determined from the other APs in which the password is stored, and if the received signal strength of the handover target AP is greater than that of the currently connected AP, the usage requirement can be better satisfied.
When judging whether to switch the AP or not, the embodiment of the invention can acquire the average network delay value and the packet loss rate in time and judge according to the average network delay value and the packet loss rate, thereby improving the timeliness of AP switching.
And when the average network delay value and the packet loss rate are both smaller than the corresponding first threshold values, determining that the network quality of the currently connected AP meets the use requirement without switching the AP.
In the embodiment of the invention, the network quality parameter of the currently connected AP is obtained to be used as a basis for judging whether to switch the AP or not; judging whether the average network delay value or the packet loss rate is larger than a corresponding first threshold value, if so, determining a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and switching to the target AP; when the average network delay value or the packet loss rate is greater than the corresponding first threshold value, it is indicated that the network quality of the currently connected AP is poor, the AP needs to be switched if the network quality does not meet the use requirement of the user, and other APs are determined from other APs in which the password is stored in the monitoring range of the currently connected AP.
Example 2:
in order to implement AP handover, on the basis of the foregoing embodiment, in an embodiment of the present invention, before acquiring a network quality parameter of a currently connected wireless access point AP, the method further includes:
judging whether the number of other APs with the stored passwords in the monitoring range of the currently connected AP is larger than a set number threshold value or not;
and if so, acquiring the network quality parameters of the currently connected wireless access point AP.
The information of the AP which stores the password in the monitoring range of the currently connected AP can be determined through scanning, and because the APs which store the password are all available for switching, in order to determine the AP corresponding to the network with the best network quality from the APs which store the password to switch, it is necessary to determine whether the number of other APs which store the password in the monitoring range of the currently connected AP is greater than a set number threshold.
Wherein, the set quantity threshold value can be flexibly set according to the requirement. In order to determine the AP with the best network quality to switch, the set number threshold is minimum 1, that is, there are at least 2 available APs, and the intelligent terminal needs to determine the AP with the best network quality from more than two APs to switch. Because when the number of available APs is less than 2, the smart terminal can only select the only AP currently connected, and there is no way to switch.
Of course, the set number threshold may be other values greater than 1, for example, 2, 3, etc., and may be flexibly set as needed during use, and if needed, the set number threshold may be set to be larger, and if switching is to be ensured, the set number threshold may be set to be smaller.
Example 3:
in order to determine the network quality parameter of the currently connected AP, on the basis of the foregoing embodiments, in an embodiment of the present invention, the acquiring the network quality parameter of the currently connected AP includes:
sending a set number of data packets to a pre-stored device corresponding to the IP through a currently connected wireless Access Point (AP);
and determining the network quality parameters of the currently connected wireless access point AP according to the data packet returned by the IP equipment.
The pre-stored IP is a reliable IP determined by the user, and the IP may be an IP of a large-scale institution public server on the network or another reliable IP on the internet. In the embodiment of the present invention, the IP may be an IP of a large-scale institution public server on the network, for example, a network IP of a DNS server of the chinese internet information center, a network IP of a 114DNS server, a network IP of a GOOGLE DNS server, and the like.
In order to acquire the network quality parameters of the currently connected AP, the intelligent terminal sends a set number of data packets to the pre-stored equipment corresponding to the IP through the currently connected AP; and then according to the data packet returned by the IP equipment, the average network delay value and the packet loss rate of the currently connected AP can be determined.
Specifically, a ping method in the prior art may be used to send a set number of data packets, so as to determine an average network delay value and a packet loss rate of the currently connected AP, or other methods such as tracerouter in the prior art may be used to determine the average network delay value and the packet loss rate of the currently connected AP.
The set number may be preset by a user or automatically set by the system, and in order to ensure accuracy and speed of the determined network quality parameter of the currently connected AP, preferably, in the embodiment of the present invention, the set number is 10, 11, and the like.
Example 4:
in order to implement AP handover, on the basis of the foregoing embodiments, in an embodiment of the present invention, if the average network delay value or the packet loss ratio is greater than the corresponding first threshold, but no other AP having a higher received signal strength than the currently connected AP exists in other APs in which a password is already stored in a monitoring range of the currently connected AP, the method further includes:
judging whether the packet loss rate is greater than a preset second threshold, wherein the second threshold is greater than a first threshold corresponding to the packet loss rate;
and if so, switching to the AP with the maximum received signal strength in the other APs with the stored passwords.
And if the packet loss rate is smaller than a preset second threshold value, keeping the currently connected AP unchanged.
When the average network delay value or the packet loss rate of the currently connected AP is greater than the corresponding first threshold, it indicates that the network quality of the currently connected AP is poor, and does not meet the use requirement, and AP handover needs to be performed, but when there is no other AP with a higher received signal strength than the currently connected AP, it indicates that the use requirement may not be met even if the currently connected AP is handed over to another AP, and therefore, in order to determine whether handover is necessary, in the embodiment of the present invention, it is further necessary to perform subsequent determination on the packet loss rate.
Specifically, it is determined whether the packet loss rate of the currently connected AP is greater than a preset second threshold, where the second threshold is greater than the first threshold corresponding to the packet loss rate, and if the packet loss rate of the currently connected AP is greater than the preset second threshold, it may be determined that the currently connected AP cannot completely meet the lowest usage requirement, and at this time, although there is no other AP with a higher received signal strength than the currently connected AP, AP switching still needs to be performed.
The second threshold is set according to the requirement of a user, and if the requirement on the network quality is high, the second threshold can be set to be smaller, so that the AP can be switched when the network quality of the currently connected AP is poor to a certain degree; if the requirement on the network quality is not high, the second threshold value may be set to be larger. Preferably, in the embodiment of the present invention, the second threshold may be any one of values from 0.8 to 0.99.
If the packet loss rate of the currently connected AP is greater than the preset second threshold, it indicates that the currently connected AP cannot meet the minimum usage requirement, and therefore, the AP must be switched. In order to make the switched network meet the use requirement to the maximum extent, the AP with the maximum received signal strength is switched to other APs which store the passwords.
If the packet loss rate of the currently connected AP is smaller than the preset second threshold, it is proved that the network quality of the currently connected AP meets the minimum use requirement, and the AP may not be switched, so that the currently connected AP is kept unchanged.
Example 5:
to implement AP switching, on the basis of the foregoing embodiments, in an embodiment of the present invention, when the other AP which has a password stored in the monitoring range of the currently connected AP and has a greater received signal strength than the currently connected AP, determining a target AP includes:
determining the AP with the maximum received signal strength value as a target AP or among other APs which have stored passwords and are larger than the received signal strength of the currently connected AP within the monitoring range of the currently connected AP;
and randomly selecting one AP as a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP.
Because it has been determined that the other APs which have stored passwords within the monitoring range of the currently connected AP and have greater received signal strength than the currently connected AP, any one of the other APs has greater received signal strength than the currently connected AP and can be used as the target AP.
In order to ensure the communication quality, when there is another AP having a higher received signal strength than the currently connected AP, the AP having the highest received signal strength may be selected as a target. In order to realize fast handover, when there is another AP having a higher received signal strength than the currently connected AP, one AP may be arbitrarily selected as a target.
Example 6:
in order to implement AP handover, on the basis of the foregoing embodiments, in an embodiment of the present invention, if both the average network delay value and the packet loss rate are smaller than the corresponding first threshold, the currently connected AP is kept unchanged.
Because the average network delay value and the packet loss rate of the currently connected AP are both smaller than the corresponding first threshold, it is indicated that the network quality of the currently connected AP meets the use requirement, so that AP switching may not be performed, and the currently connected AP is kept unchanged.
The AP switching method is described below by a specific embodiment, and fig. 2 is another AP switching process schematic diagram provided by the embodiment of the present invention, and the specific steps are as follows:
s201: and scanning other APs in the monitoring range of the currently connected AP, and recording the information of the other APs with the stored passwords.
S202: whether the number of other APs storing the password is greater than or equal to 2 or not is judged, if yes, the step S203 is executed; if not, S201 is executed.
S203: and sending 10 data packets through the ping website 1.2.4.8, and determining the average network delay value and the packet loss rate of the currently connected AP.
S204: whether the average network delay value is greater than or equal to 300ms or the packet loss rate is greater than or equal to 0.3, if so, executing S205, and if not, executing S201.
S205: querying the received signal strength of other APs that have saved the password.
S206: if there is another AP having a higher received signal strength than the currently connected AP, if so, S207 is performed, and if not, S208 is performed.
S207: and switching to the AP with the maximum received signal strength in other APs which store the passwords. After the handover is completed, S201 is executed.
S208: whether the packet loss rate of the currently connected AP is greater than or equal to 0.9 is determined, if yes, S207 is executed, and if not, S201 is executed.
Example 7:
fig. 3 is a schematic structural diagram of an AP switching apparatus according to embodiment 7 of the present invention, where the apparatus includes:
an obtaining module 301, configured to obtain a network quality parameter of a currently connected wireless access point AP, where the network quality parameter includes an average network delay value and a packet loss rate;
a determining module 302, configured to determine whether the average network delay value or the packet loss ratio is greater than a corresponding first threshold;
a switching module 303, configured to determine a target AP among other APs, which have stored passwords within the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and switch to the target AP if the average network delay value or the packet loss ratio is greater than a corresponding first threshold.
The determining module 302 is further configured to determine whether the number of other APs in the currently connected wireless access point AP monitoring range, where the password is stored, is greater than a set number threshold; if yes, the obtaining module 303 is triggered.
The acquiring module 301 is specifically configured to send a set number of data packets to a device corresponding to a pre-stored IP through a currently connected wireless access point AP; and determining the network quality parameters of the currently connected wireless access point AP according to the data packet returned by the IP equipment.
The determining module 302 is further configured to determine whether the packet loss rate is greater than a preset second threshold value if the average network delay value or the packet loss rate is greater than a corresponding first threshold value, but no other AP with a higher received signal strength than the currently connected AP exists in other APs in which passwords are stored in the monitoring range of the currently connected AP, where the second threshold value is greater than the first threshold value corresponding to the packet loss rate;
the switching module 303 is further configured to switch to the AP with the largest received signal strength among the other APs in which the password is stored, when the packet loss rate is greater than a preset second threshold.
The switching module 303 is further configured to keep the currently connected AP unchanged if the packet loss ratio is smaller than a preset second threshold.
The switching module 303 is specifically configured to determine, as a target AP, an AP with the largest received signal strength value among other APs, which have stored passwords within the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, or determine the AP with the largest received signal strength value as the target AP; and randomly selecting one AP as a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP.
The switching module 303 is further configured to keep the currently connected AP unchanged if the average network delay value and the packet loss ratio are both smaller than the corresponding first threshold.
In the embodiment of the invention, the average network delay value and the packet loss rate of the currently connected wireless access point AP are obtained, when the average network delay value or the packet loss rate is greater than the corresponding first threshold value, the network quality of the currently connected AP is poor and the AP does not meet the use requirement, the AP needs to be switched, and in order to ensure the communication quality, a target AP is determined in other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and the AP is switched to the target AP. Because the received signal strength of the target AP among the other APs is greater than that of the currently connected AP, the switched AP meets the use requirement, thereby implementing AP switching.
Example 8:
fig. 4 is a schematic structural diagram of an electronic device according to embodiment 8 of the present invention, and on the basis of the foregoing embodiments, an electronic device according to an embodiment of the present invention further includes a processor 401 and a memory 402, where the processor 401 is configured to implement the steps of the AP switching method when executing a computer program stored in the memory 402.
Alternatively, the processor 401 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).
A processor 401 for executing the following steps when following the computer program stored in the memory 402:
acquiring network quality parameters of a currently connected wireless Access Point (AP), wherein the network quality parameters comprise an average network delay value and a packet loss rate;
judging whether the average network delay value or the packet loss rate is greater than a corresponding first threshold value;
if yes, determining a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and switching to the target AP.
Before the network quality parameters of the currently connected wireless access point AP are obtained, judging whether the number of other APs with stored passwords in the monitoring range of the currently connected wireless access point AP is larger than a set number threshold value or not;
and if so, acquiring the network quality parameters of the currently connected wireless access point AP.
The acquiring of the network quality parameter of the currently connected wireless access point AP includes:
sending a set number of data packets to a pre-stored device corresponding to the IP through a currently connected wireless Access Point (AP);
and determining the network quality parameters of the currently connected wireless access point AP according to the data packet returned by the IP equipment.
If the average network delay value or the packet loss rate is greater than the corresponding first threshold value, but other APs with higher received signal strength than the currently connected AP do not exist in other APs with passwords stored in the monitoring range of the currently connected AP, judging whether the packet loss rate is greater than a preset second threshold value, wherein the second threshold value is greater than the first threshold value corresponding to the packet loss rate;
and if so, switching to the AP with the maximum received signal strength in the other APs with the stored passwords.
And if the packet loss rate is smaller than a preset second threshold value, keeping the currently connected AP unchanged.
The determining a target AP from the other APs which have stored the password and are stronger than the received signal strength of the currently connected AP in the monitoring range of the currently connected AP includes:
determining the AP with the maximum received signal strength value as a target AP or among other APs which have stored passwords and are larger than the received signal strength of the currently connected AP within the monitoring range of the currently connected AP;
and randomly selecting one AP as a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP.
And if the average network delay value and the packet loss rate are both smaller than the corresponding first threshold, keeping the currently connected AP unchanged.
In the embodiment of the invention, the average network delay value and the packet loss rate of the currently connected wireless access point AP are obtained, when the average network delay value or the packet loss rate is greater than the corresponding first threshold value, the network quality of the currently connected AP is poor and the AP does not meet the use requirement, the AP needs to be switched, and in order to ensure the communication quality, a target AP is determined in other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and the AP is switched to the target AP. Because the received signal strength of the target AP among the other APs is greater than that of the currently connected AP, the switched AP meets the use requirement, thereby implementing AP switching.
Example 9:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to perform the following steps:
acquiring network quality parameters of a currently connected wireless Access Point (AP), wherein the network quality parameters comprise an average network delay value and a packet loss rate;
judging whether the average network delay value or the packet loss rate is greater than a corresponding first threshold value;
if yes, determining a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and switching to the target AP.
Before the obtaining of the network quality parameter of the currently connected wireless access point AP, the method further includes:
judging whether the number of other APs with the stored passwords in the monitoring range of the currently connected wireless access point AP is larger than a set number threshold value or not;
and if so, acquiring the network quality parameters of the currently connected wireless access point AP.
The acquiring of the network quality parameter of the currently connected wireless access point AP includes:
sending a set number of data packets to a pre-stored device corresponding to the IP through a currently connected wireless Access Point (AP);
and determining the network quality parameters of the currently connected wireless access point AP according to the data packet returned by the IP equipment.
If the average network delay value or the packet loss rate is greater than the corresponding first threshold value, but other APs with higher received signal strength than the currently connected AP do not exist in other APs with passwords stored in the monitoring range of the currently connected AP, judging whether the packet loss rate is greater than a preset second threshold value, wherein the second threshold value is greater than the first threshold value corresponding to the packet loss rate;
and if so, switching to the AP with the maximum received signal strength in the other APs with the stored passwords.
And if the packet loss rate is smaller than a preset second threshold value, keeping the currently connected AP unchanged.
The determining a target AP from the other APs which have stored the password and are stronger than the received signal strength of the currently connected AP in the monitoring range of the currently connected AP includes:
determining the AP with the maximum received signal strength value as a target AP or among other APs which have stored passwords and are larger than the received signal strength of the currently connected AP within the monitoring range of the currently connected AP;
and randomly selecting one AP as a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP.
And if the average network delay value and the packet loss rate are both smaller than the corresponding first threshold, keeping the currently connected AP unchanged.
In the embodiment of the invention, the average network delay value and the packet loss rate of the currently connected wireless access point AP are obtained, when the average network delay value or the packet loss rate is greater than the corresponding first threshold value, the network quality of the currently connected AP is poor and the AP does not meet the use requirement, the AP needs to be switched, and in order to ensure the communication quality, a target AP is determined in other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and the AP is switched to the target AP. Because the received signal strength of the target AP among the other APs is greater than that of the currently connected AP, the switched AP meets the use requirement, thereby implementing AP switching.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is to be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining application and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method for switching an AP (access point), the method comprising:
acquiring network quality parameters of a currently connected wireless Access Point (AP), wherein the network quality parameters comprise an average network delay value and a packet loss rate;
judging whether the average network delay value or the packet loss rate is greater than a corresponding first threshold value;
if so, determining a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, and switching to the target AP;
if the average network delay value or the packet loss rate is greater than the corresponding first threshold value, but no other AP with a higher received signal strength than the currently connected AP exists in the other APs with the password stored in the currently connected AP monitoring range, the method further includes:
judging whether the packet loss rate is greater than a preset second threshold, wherein the second threshold is greater than a first threshold corresponding to the packet loss rate;
if yes, switching to the AP with the maximum received signal strength in the other APs with the stored passwords;
if the packet loss rate is smaller than a preset second threshold, keeping the currently connected AP unchanged;
the acquiring of the network quality parameter of the currently connected wireless access point AP includes:
sending a set number of data packets to a pre-stored device corresponding to the IP through a currently connected wireless Access Point (AP);
determining an average network delay value of the currently connected wireless access point AP according to a data packet returned by the IP equipment;
before the obtaining of the network quality parameter of the currently connected wireless access point AP, the method further includes:
judging whether the number of other APs with stored passwords in the monitoring range of the currently connected wireless access point AP is larger than a set number threshold, wherein the set number threshold is a numerical value not smaller than 1;
and if so, acquiring the network quality parameters of the currently connected wireless access point AP.
2. The method of claim 1, wherein the determining a target AP among other APs having a higher received signal strength than the currently connected AP and having a password stored in the monitoring range of the currently connected AP comprises:
determining the AP with the maximum received signal strength value as a target AP or among other APs which have stored passwords and are larger than the received signal strength of the currently connected AP within the monitoring range of the currently connected AP;
and randomly selecting one AP as a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP.
3. The method of claim 1, further comprising:
and if the average network delay value and the packet loss rate are both smaller than the corresponding first threshold, keeping the currently connected AP unchanged.
4. An apparatus for switching between wireless Access Points (APs), the apparatus comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring network quality parameters of a currently connected wireless Access Point (AP), and the network quality parameters comprise an average network delay value and a packet loss rate;
the judging module is used for judging whether the average network delay value or the packet loss rate is larger than a corresponding first threshold value or not;
a switching module, configured to determine a target AP among other APs, which have stored passwords within the currently connected AP monitoring range and have higher received signal strength than the currently connected AP, and switch to the target AP if the average network delay value or the packet loss rate is greater than a corresponding first threshold;
the determining module is further configured to determine whether the packet loss rate is greater than a preset second threshold value if the average network delay value or the packet loss rate is greater than a corresponding first threshold value, but no other AP with a higher received signal strength than the currently connected AP exists in other APs in which passwords are stored within a monitoring range of the currently connected AP, where the second threshold value is greater than the first threshold value corresponding to the packet loss rate;
the switching module is further configured to switch to the AP with the largest received signal strength among the other APs in which the password is stored, when the packet loss rate is greater than a preset second threshold; the AP switching unit is further used for keeping the currently connected AP unchanged if the packet loss rate is smaller than a preset second threshold;
the acquisition module is specifically configured to send a set number of data packets to a device corresponding to a pre-stored IP through a currently connected wireless access point AP; determining an average network delay value of the currently connected wireless access point AP according to a data packet returned by the IP equipment;
the judging module is further configured to judge whether the number of other APs in the currently connected wireless access point AP monitoring range, for which the password is stored, is greater than a set number threshold, where the set number threshold is a numerical value not less than 1; if yes, the acquisition module is triggered.
5. The apparatus according to claim 4, wherein the handover module is specifically configured to determine, as the target AP, the AP with the largest received signal strength value among other APs, which have stored passwords within the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP, or determine that the AP with the largest received signal strength value is the target AP; and randomly selecting one AP as a target AP from other APs which have stored passwords in the monitoring range of the currently connected AP and have higher received signal strength than the currently connected AP.
6. The apparatus of claim 4, wherein the handover module is further configured to keep the currently connected AP unchanged if the average network delay value and the packet loss rate are both smaller than the corresponding first threshold.
7. An electronic device, characterized in that the electronic device comprises a processor and a memory for storing program instructions, the processor being adapted to carry out the steps of the method according to any of claims 1-3 when executing a computer program stored in the memory.
8. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-3.
CN201910936064.5A 2019-09-29 2019-09-29 AP switching method, device, equipment and medium Active CN110572859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910936064.5A CN110572859B (en) 2019-09-29 2019-09-29 AP switching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910936064.5A CN110572859B (en) 2019-09-29 2019-09-29 AP switching method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110572859A CN110572859A (en) 2019-12-13
CN110572859B true CN110572859B (en) 2021-04-16

Family

ID=68783582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910936064.5A Active CN110572859B (en) 2019-09-29 2019-09-29 AP switching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110572859B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111148170A (en) * 2019-12-26 2020-05-12 苏宁智能终端有限公司 Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium
CN111405639B (en) * 2020-03-09 2022-05-13 深圳前海百递网络有限公司 Wireless network connection method and device, readable storage medium and computer equipment
CN113595960A (en) * 2020-04-30 2021-11-02 深圳硅基智控科技有限公司 Communication method for communication device for receiving data of capsule endoscope
CN114650573B (en) * 2020-12-21 2023-10-27 深圳市万普拉斯科技有限公司 Network delay processing method and device and mobile terminal
CN113993158B (en) * 2021-10-28 2023-05-23 成都长虹网络科技有限责任公司 Network quality monitoring method, system, computer equipment and storage medium
CN115460662B (en) * 2022-11-10 2023-03-10 浙江大华技术股份有限公司 Data transmission and link switching method, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497658A (en) * 2011-12-22 2012-06-13 电子科技大学 Multimode switching method for heterogeneous network
CN104602312A (en) * 2015-01-30 2015-05-06 海信集团有限公司 Wireless channel switching method and AP (Access Point)
CN105263154A (en) * 2015-09-17 2016-01-20 广东欧珀移动通信有限公司 Method and system of Wi-Fi equipment for switching wireless access point
CN106231640A (en) * 2016-07-29 2016-12-14 北京小米移动软件有限公司 Wireless access point switching method and device
CN107534884A (en) * 2015-08-12 2018-01-02 谷歌有限责任公司 Quality based on available network switches between networks
CN107949024A (en) * 2018-01-08 2018-04-20 广东欧珀移动通信有限公司 AP method for handover control and device, electronic device and computer-readable recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711164B (en) * 2012-05-15 2015-05-13 上海交通大学无锡研究院 Intelligent management method for data communication link of mobile terminal
US20160029279A1 (en) * 2014-07-22 2016-01-28 Google Technology Holdings LLC Wireless Communication Handover Profiles
CN105792290A (en) * 2014-12-23 2016-07-20 乐视移动智能信息技术(北京)有限公司 Method and device for controlling intelligent terminal to perform wireless roaming
CN108282381A (en) * 2017-09-15 2018-07-13 广州市动景计算机科技有限公司 Network packet loss rate monitoring method, device and test server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497658A (en) * 2011-12-22 2012-06-13 电子科技大学 Multimode switching method for heterogeneous network
CN104602312A (en) * 2015-01-30 2015-05-06 海信集团有限公司 Wireless channel switching method and AP (Access Point)
CN107534884A (en) * 2015-08-12 2018-01-02 谷歌有限责任公司 Quality based on available network switches between networks
CN105263154A (en) * 2015-09-17 2016-01-20 广东欧珀移动通信有限公司 Method and system of Wi-Fi equipment for switching wireless access point
CN106231640A (en) * 2016-07-29 2016-12-14 北京小米移动软件有限公司 Wireless access point switching method and device
CN107949024A (en) * 2018-01-08 2018-04-20 广东欧珀移动通信有限公司 AP method for handover control and device, electronic device and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WLAN中的一种快速安全的切换协议设计;宋倩;《信息技术》;20160825;全文 *

Also Published As

Publication number Publication date
CN110572859A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN110572859B (en) AP switching method, device, equipment and medium
CN109511156B (en) Method and device for selecting PRACH (physical random Access channel) resources
US11671402B2 (en) Service resource scheduling method and apparatus
CN102204344B (en) Method and terminal for avoiding cell pingpong reselection
KR20220150989A (en) Resource selection method and terminal device
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
CN103619054A (en) Method and device for selecting network frequency band and router
CN108513361B (en) Channel access method, device and storage medium
CN111093235B (en) Network switching method, equipment and storage medium
CN104902526A (en) Method and device for switching network, and mobile terminal
CN109041255B (en) Access method and UE
CN110461023B (en) Cell residence method and device for voice service, storage medium and main base station
US9405591B2 (en) Method for dynamic load balancing in campus deployments
US20230262572A1 (en) Communication method and related device
CN107534853A (en) A kind of method and apparatus for starting relay function
CN105050123A (en) Load control method for wireless network and terminal
CN109561478B (en) User terminal blind redirection method, device, computer storage medium and equipment
CN113543245A (en) Method for switching base station by user equipment and network element equipment
JP6355116B2 (en) Method, apparatus, and system for packet loss detection
CN107819761B (en) Data processing method and device and readable storage medium
CN113784403B (en) Cell switching method and device
CN111787584B (en) Data acquisition method and system based on Internet of things
EP2930617A1 (en) Resource management method and device
US11102795B2 (en) Data generation method, method for configuring logical channel, terminal device and chip
US20160050576A1 (en) Ensuring the performance of normal performance carriers

Legal Events

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