CN111031583A - Channel switching method and device - Google Patents
Channel switching method and device Download PDFInfo
- Publication number
- CN111031583A CN111031583A CN201911318938.7A CN201911318938A CN111031583A CN 111031583 A CN111031583 A CN 111031583A CN 201911318938 A CN201911318938 A CN 201911318938A CN 111031583 A CN111031583 A CN 111031583A
- Authority
- CN
- China
- Prior art keywords
- channel
- abnormal
- candidate
- current
- channel set
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0055—Transmission or use of information for re-establishing the radio link
- H04W36/0079—Transmission or use of information for re-establishing the radio link in case of hand-off failure or rejection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
- H04W36/305—Handover due to radio link failure
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present specification provides a channel switching method and apparatus, where the method is applied to an AP, and the method includes: accumulating the times of current channel abnormity under the condition that the current channel abnormity is detected; removing the current channel from the candidate channel set under the condition that the accumulated times reach a preset threshold value; at least the current channel is included in the candidate channel set; under the condition that the number of channels in the candidate channel set is not zero, selecting a target channel in the candidate channel set based on a preset algorithm; and switching the current channel to the target channel. By applying the scheme of the specification, the situation that the reselected target channel is still the current channel can be avoided, and the problem of channel abnormity is fundamentally solved.
Description
Technical Field
The present disclosure relates to the field of network communications, and in particular, to a channel switching method and apparatus.
Background
With the development of network information technology, the application of wireless network technology is very popular nowadays, and wireless network technology is adopted in public networks or home networks in large public places such as shopping malls and airports.
The existing network architecture of the wireless network is mostly composed of an AP (wireless access point), an AC (wireless controller) and an STA (wireless terminal) wireless terminal. The user accesses the AP through the wireless terminal, the AP connects the wireless network user terminals together, and then the wireless network is accessed into the Ethernet, so that the internet access requirement of the user is met, and the AC is responsible for centralized control and management of the AP.
The AP can periodically broadcast beacon messages to declare the existence of the AP, the wireless terminal can find the AP and perform access after detecting the beacon messages, and the wireless terminal can meet the internet access requirements of users after accessing the AP. However, at present, wireless network devices are very many, a phenomenon that a plurality of wireless network devices share the same channel often occurs, when a plurality of wireless network devices using the same channel are present, since the channel cannot be preempted, the AP cannot send a beacon message at this time, when the AP detects that the number of consecutive times for which the beacon message cannot be sent reaches a certain threshold, it is determined that a channel abnormality occurs, the channel abnormality may cause a wireless terminal to be unable to receive the beacon message, and thus connection with the AP cannot be established, and meanwhile, a wireless terminal that has accessed the AP may also be disconnected.
Disclosure of Invention
In view of the above technical problems, the present specification provides a channel switching method and apparatus, and the technical scheme is as follows:
according to a first aspect of the present specification, there is provided a channel switching method, which is applied to an AP, the method including:
accumulating the times of current channel abnormity under the condition that the current channel abnormity is detected;
removing the current channel from the candidate channel set under the condition that the accumulated times reach a preset threshold value; at least the current channel is included in the candidate channel set;
under the condition that the number of channels in the candidate channel set is not zero, selecting a target channel in the candidate channel set based on a preset algorithm;
and switching the current channel to the target channel.
According to a second aspect of the present specification, there is provided a channel switching apparatus, which is applied to an AP, the apparatus including:
the accumulation module is used for accumulating the times of current channel abnormity under the condition that the current channel abnormity is detected;
a removing module, configured to remove the current channel from the candidate channel set when the accumulated number of times reaches a preset threshold; at least the current channel is included in the candidate channel set;
the selection module is used for selecting a target channel from the candidate channel set based on a preset algorithm under the condition that the number of channels in the candidate channel set is not zero;
and the switching module is used for switching the current channel into the target channel.
In this specification, when a current channel is detected to be abnormal, the number of times of the current channel abnormality is accumulated, when the accumulated number of times reaches a preset threshold, the current channel is removed from the candidate channel set, a target channel is selected from the removed candidate channel set, and the current channel is switched to the target channel after the target channel is selected, so that automatic channel switching is realized, and the newly selected target channel is not the current channel because the current channel is not in the candidate channel, so that the problem of channel abnormality is fundamentally solved, and the phenomenon of channel abnormality appearing again due to the fact that the current channel is selected again is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the specification, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic diagram of a wireless network architecture shown in the present specification;
fig. 2 is a flow chart of a channel switching method shown in this specification;
fig. 3 is a flow chart of a channel switching method shown in this specification;
fig. 4 is a schematic diagram of a channel switching apparatus shown in this specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
With the development of network information technology, the application of wireless network technology is very popular nowadays, and wireless network technology is adopted in public networks or home networks in large public places such as shopping malls and airports.
As shown in fig. 1, a network architecture of an existing wireless network is mostly composed of an AP (wireless access point), an AC (wireless controller), and an STA (wireless terminal) wireless terminal. The AP is connected with a plurality of wireless terminals, the user accesses the AP through the wireless terminals, the AP connects the wireless network user sides together, and then the wireless network accesses the Ethernet, so that the internet access requirement of the user is met, in combination with the graph 1, the wireless terminal A and the wireless terminal B are connected to the AP1, the wireless terminal C and the wireless terminal D are connected to the AP2, and the AC is responsible for centralized control and management of the AP and distribution of configuration information to the AP.
The AP can periodically broadcast beacon messages through a channel to declare the existence of the AP, the wireless terminal can find the AP and access the AP after detecting the beacon messages, and the wireless terminal can meet the internet surfing requirements of users after accessing the AP. However, at present, wireless network devices are very many, a phenomenon that a plurality of wireless network devices share the same channel often occurs, when a plurality of wireless network devices using the same channel are provided, since the channel cannot be preempted, the AP cannot broadcast the beacon message at this time, when the AP detects that the number of consecutive times of broadcasting the beacon message cannot reach a certain threshold, it is determined that a channel abnormality occurs, the channel abnormality may cause a wireless terminal to be unable to receive the beacon message, and thus connection with the AP cannot be established, and meanwhile, a wireless terminal that has accessed to the AP may also be disconnected. In the prior art, when the current channel is detected to be abnormal, the AP needs to reselect the channel to send the beacon message by adopting a manual AP restarting mode, but the manual mode is not favorable for user experience, and the adoption of the manual mode cannot ensure that a target channel reselected by the AP after the AP is restarted is not a channel used before the AP is restarted, so that the phenomenon of channel abnormality may occur again after the switching is completed, and the problem cannot be solved fundamentally.
In order to solve the above problem, the present specification provides a scheme that an AC is used to configure and manage an AP, so that the AP after configuring information can accumulate the number of times that a current channel is abnormal when the current channel is detected to be abnormal, remove the current channel from a candidate channel set when the accumulated number of times reaches a preset threshold, select a target channel from the removed candidate channel set, and switch the current channel to the target channel after the target channel is selected, thereby implementing automatic switching when the channel is abnormal, and since the current channel is not in the candidate channel, the newly selected target channel is not necessarily the current channel, thereby fundamentally solving the problem of channel abnormality.
Fig. 2 is a schematic flow chart of a channel switching method shown in this specification,
the method is applied to the AP, and the method can comprise the following steps:
s201, accumulating the abnormal times of the current channel under the condition that the current channel is detected to be abnormal;
the AP will announce its own existence by periodically broadcasting beacon messages through the current channel, so that the wireless terminal knows the existence of the AP and performs access, and the common period is 0.1S, that is, the AP will broadcast beacon messages once through the current channel every 0.1S. However, if there are many wireless network devices using the same channel as the AP, and the bandwidth used by the wireless device exceeds the bandwidth load of the channel, the AP cannot seize the channel, and cannot broadcast the beacon message through the channel, and when the AP detects that the beacon message cannot be broadcast through the channel for a certain number of consecutive times, for example, 10 times, that is, the beacon message cannot be broadcast through the channel within 1 second, it is determined that the current channel is abnormal. When the current channel is detected to be abnormal, the times of the current channel which is abnormal are accumulated. For example, when channel abnormality is detected for the first time, the number of times of abnormality occurrence of the current channel is recorded as 1, and the number of times is accumulated based on a preset step length when the channel abnormality is detected again. And accumulating the times of the current channel abnormality every time the current channel abnormality is detected.
S202, removing the current channel from the candidate channel set under the condition that the accumulated times reach a preset threshold value; at least the current channel is included in the candidate channel set;
in order to solve the problem of the current channel abnormality as soon as possible, a preset threshold value may be set to 1, that is, when the current channel is abnormal once, the preset threshold value is reached, and at this time, processing is performed immediately.
In addition, besides the wireless device, many other devices may also affect that the AP broadcasts the beacon message through the channel, for example, the operation of the microwave oven or the influence of noise, and the channel bandwidth may be occupied transiently, and a certain time may be spent on switching the channel, and a network interruption may be caused in the process of switching the channel to the target channel, so if the channel is detected to be abnormal, the user experience may also be affected, so to ensure that the channel abnormality is indeed the normal state of the current channel, the preset threshold may be set to a larger value, the switching may be performed when the accumulated number of current channel abnormality reaches the preset threshold of the larger value, for example, the preset threshold is set to 10, that is, the processing may be performed when the accumulated number of current channel abnormality reaches 10 times, and when the number of current channel abnormality reaches the preset threshold, for example, 10 times, it may be fully reflected that the channel abnormality occurs when the current channel is not affected by the burst factor, but a normal channel abnormality is caused by a large number of wireless network devices occupying the current channel, and then the handover is performed.
In addition, the number of times of the current channel abnormality in a certain duration may be accumulated to directly indicate the frequency of the current channel in an abnormal state, so in an embodiment of the present specification, the number of times of the current channel abnormality may also be the number of times of the current channel abnormality in a second preset duration.
For example, the second preset duration may be set to one day, the number of times of current channel abnormality in one day is accumulated, when the number of times of current channel abnormality in one day reaches a preset threshold, the current channel is removed from the candidate channel set, a target channel is selected from the candidate channel set or the abnormal channel set, and the current channel is switched to the target channel.
When the second preset duration is reached and the accumulated times do not reach the preset threshold, the accumulated times can be cleared, and the accumulated times of channel abnormity can be restarted.
After switching the channel, timing may be started immediately, and the number of channel anomalies within the second preset duration may be counted.
In addition, the counting may be started only when the current channel is detected to be abnormal, the counting of the number of times of channel abnormality in the second preset time period is started only at this time, when the number of times accumulated in the second preset time period does not reach the preset threshold, the number of times is cleared and is not counted again, and when the channel abnormality occurs again, the accumulated number of times and the counted time period are performed again. The statistical method can save the processing resources of the equipment.
By adopting the above mode, the times of current channel abnormity in the second preset time length are accumulated, and the switching is performed under the condition that the preset threshold value is reached. The condition that the current channel abnormality is temporary channel abnormality caused by an emergency is eliminated, and the switching is carried out under the condition that the normal state of the current channel is in an abnormal state.
In one embodiment, after the current channel is removed from the candidate channel set, the current channel may be added to the abnormal channel set, and the adding time is recorded.
In a wireless network environment, a common available channel is generally 26 channels, 13 channels at 2.4GHz and 13 channels at 5GHz, and all wireless network devices use these channels for communication. The present specification proposes that available channels are divided into a candidate channel set and an abnormal channel set, when an abnormal channel is not found, all channels may be added to the candidate channel set, that is, one channel may be selected from the candidate channel set to be used as a current channel, and when no abnormality is found in any channel, the candidate channel set and the abnormal channel set are shown in table 1.
TABLE 1
And selecting a channel from the candidate channel set to be used as the current channel, removing the current channel from the candidate channel set and adding the current channel into the abnormal channel set under the condition that the number of times of the current channel abnormality reaches a preset threshold value, and recording the adding time. For example, the current channel is channel 1, the current channel 1 is removed from the candidate channel set and added to the abnormal channel set, and the adding time is recorded, for example, the adding time is 2019/1/1,0:00, as shown in table 2, thereby realizing the distinction between the candidate channel and the abnormal channel, avoiding the situation that the current channel 1 is selected again as the target channel for use, and other available channels are selected from the candidate channel set as the target channels for use, fundamentally solving the problem, and avoiding the situation that channel abnormality occurs again due to the fact that the channel 1 is selected again.
TABLE 2
S203, under the condition that the number of channels in the candidate channel set is not zero, selecting a target channel in the candidate channel set based on a preset algorithm;
in combination with S202, after the current channel is removed from the candidate channel, it is ensured that the current channel, i.e., channel 1, does not exist in the candidate channel set, and under the condition that the channels in the candidate channel set are not zero, a preset algorithm may be adopted in the candidate channel set to select the target channel. The preset algorithm may be a random algorithm, that is, one channel is arbitrarily selected from the candidate channels to be used as a target channel, or the preset algorithm may be a minimum utilization rate algorithm, that is, the utilization rate of each channel in the candidate channel set is determined, and the channel with the minimum utilization rate is selected as the target channel. For example, it is determined that the utilization rate of channel 2 in the candidate channel set is 20% at the minimum, and channel 2 may be selected as the current channel. Of course, the present specification does not limit the preset algorithm.
On the other hand, if the number of channels in the candidate channel set is zero after the current channel is removed from the candidate channel, a target channel may be selected from the abnormal channel set according to the adding time, and the target channel may be added to the candidate channel set.
When all channels are added to the abnormal channel set, the number of channels in the candidate channel set is zero, as shown in table 3.
Candidate channel set | Abnormal channel aggregation |
1(2019/1/1,0:00)…26(2019/1/2,12:00) |
TABLE 3
At this time, since the number in the candidate channel set is zero, the target channel cannot be selected from the candidate channel set for use. At this time, only the target channel can be selected from the abnormal channel set for use, and since the channels in the abnormal channel set are added with the sequence, the last channel added to the abnormal channel set is the current channel. Since the number of wireless network devices using each channel is changed at any time, the state of the channel is not constant, and the earlier the time of adding the channel to the abnormal channel set is, the higher the probability that the channel has been restored to normal is, and as for the current channel finally added to the abnormal channel set, the probability that the channel has been restored to normal is minimum, or the current channel is always in an abnormal state.
Therefore, the target channel can be selected from the abnormal channel set according to the adding time, that is, compared with the adding time of each channel in the abnormal channel set, the channel with the earliest adding time can be selected to be used as the target channel, and is removed from the abnormal channel set and added to the candidate channel set. For example, by comparison, when the adding time of the channel 1 in the abnormal channel set is the earliest, the channel 1 may be removed from the abnormal channel set and added to the candidate channel set, where the candidate channel set and the abnormal channel set are shown in table 4.
Candidate channel set | Abnormal channel aggregation |
1 | 2(2019/1/1,0:20)…26(2019/1/2,12:00) |
TABLE 4
Therefore, the channel with the maximum probability of recovering to normal is selected as the target channel, the probability that the channel is abnormal again after the channel is selected for use is the minimum, and the current channel with the latest adding time cannot be selected as the target channel for use, so that the current channel is prevented from being selected again.
Of course, in addition to selecting the channel with the earliest adding time in the abnormal channel set as the target channel, the channel with the latest adding time, that is, the current channel, may be determined according to the adding time, and then the target channel may be selected from other channels except the current channel, and the target channel may be selected by using algorithms such as a random algorithm or a minimum utilization rate method, so that the phenomenon that the current channel is selected again, and the channel abnormality occurs again may be avoided.
S204, switching the current channel into the target channel.
In step 203, after the target channel is selected from the candidate channel set or the abnormal channel set, to solve the problem of channel abnormality, the current channel is switched to the target channel, so that the beacon message can be continuously broadcast by using the switched target channel.
In this specification, the current channel is removed from the candidate channel set when the accumulated number of times reaches a preset threshold, and a target channel is selected from the candidate set when the number of channels in the removed candidate channel set is not zero, so that the selected target channel is guaranteed not to be the current channel, and the beacon message can be broadcast by using the target channel after switching, thereby avoiding the phenomenon that the channel is abnormal again due to reuse of the current channel.
On the other hand, under the condition that the number of channels in the removed candidate channel set is zero, selecting a target channel from the abnormal channel set according to the adding time, namely comparing the adding time of each channel in the abnormal channel set, and selecting the target channel according to the adding time, wherein the channel with the earliest adding time can be selected as the target channel for use, the channel with the maximum recovered normal probability is selected as the target channel at the moment, the probability of the channel abnormality appearing again after the channel abnormality appearing in use is selected to be the minimum, in addition, other channels except the channel with the latest adding time can also be selected as the target channels for use, and the phenomenon of channel abnormality appearing again is avoided because the current channel with the latest adding time cannot be selected as the target channel for use.
In this specification, all the abnormal channels are added to the abnormal channel set, but the wireless network device using each channel is changed at any time, that is, when the wireless network device using the channel is reduced, the channel is restored to a normal usable state, so that adding the channel to the abnormal channel set does not mean that the channel is always in the abnormal state, and therefore, when the current time is a certain time long from the time when the channel is added to the abnormal channel set, the channel can be considered to be in the normal state.
Therefore, in an embodiment of the present specification, the adding duration of at least one abnormal channel in the abnormal channel set may be determined according to the adding time of the at least one abnormal channel; and under the condition that the adding duration of the at least one abnormal channel reaches a first preset duration, removing the at least one abnormal channel from the abnormal channel set and adding the at least one abnormal channel into the candidate channel set. For example, the first preset time duration may be set to 10 days, since the adding time of the channel is recorded when the channel is added to the abnormal channel set, the time duration for adding the channel to the abnormal channel set may be determined according to the adding time of the channel and the current time, and in combination with table 3, for example, the adding time of channel 1 is 2019, month 1, day 0:00, and the current time is 2019, month 1, day 11, day 0:00, it may be determined that the adding time duration of channel 1 reaches 10 days, and at this time, the channel may be considered to be available as a candidate channel, so the channel may be removed from the abnormal channel set and added to the candidate channel set for use. The first preset time period may be obtained according to statistics of historical data, for example, the time required for each channel to return to normal may be counted, an average value may be taken as the first preset time period, and for the sake of insurance, a maximum value may also be selected as the first preset time period. The selection method of the first preset duration is not limited in this specification.
In order to make the technical solution of the present specification more clearly understood by those skilled in the art, the technical solution of the present specification will be described with reference to fig. 3.
Fig. 3 is a schematic flow chart of another channel switching method shown in this specification;
s301, in this specification, when the AP detects that the current channel is abnormal, the AP may accumulate the number of times of the current channel abnormality, where the number of times of the current channel abnormality in the second preset time period may be accumulated.
S302, judging whether the accumulated times reach a preset threshold value. If the preset threshold value is not reached, it indicates that the channel does not need to be switched, and at this time, S301 is continuously executed, that is, the number of current channel anomalies continues to be detected and accumulated. If the preset threshold value is reached, which indicates that channel switching is required, the current channel is removed from the candidate channel set, added to the abnormal channel set, and the adding time is recorded at the same time, and S303 is executed.
S303, determine whether the channel in the candidate channel set is zero, that is, determine whether there is a selectable channel in the candidate channel set. S305 is performed if the channel in the candidate channel set is not zero, and S304 is performed if the channel in the candidate channel set is zero.
S304, selecting a target channel from the abnormal channel set according to the adding time, and adding the target channel into the candidate channel set, wherein the target channel selected from the abnormal channel set according to the adding time can be a channel with the earliest adding time as the target channel, or any other channel except the channel with the latest adding time is selected as the target channel according to the adding time. After the target channel is selected, S306 may be executed.
S305, selecting a target channel from the candidate channel set based on a preset algorithm, where the preset algorithm includes a random algorithm or a minimum utilization algorithm, and after the target channel is selected, S306 may be executed.
S306, switching the current channel to the target channel.
The current channel is replaced with the target channel selected in S304 or S305, so that the message can be continuously transmitted using the switched target channel.
According to the scheme of the specification, the channel can be automatically switched when the channel is abnormal, and the channel is divided into the candidate channel set and the abnormal channel set, the current channel is removed from the candidate channel set, and the target channel is selected from the candidate channel set under the condition that the candidate channel is not zero; and under the condition that the candidate channel is zero, selecting a target channel in the abnormal channel set according to the adding time. Therefore, the selected target channel is not the channel used before switching, and the problem of channel abnormity can be fundamentally solved.
Corresponding to the foregoing embodiment of the method for switching between the main server and the standby server, this specification further provides an embodiment of a channel switching device.
As shown in fig. 4, the apparatus includes:
an accumulation module 410, configured to accumulate the number of times that the current channel is abnormal when the current channel is detected to be abnormal;
a removing module 420, configured to remove the current channel from the candidate channel set when the accumulated number of times reaches a preset threshold; at least the current channel is included in the candidate channel set;
a selecting module 430, configured to select a target channel from the candidate channel set based on a preset algorithm under the condition that the number of channels in the candidate channel set is not zero;
a switching module 440, configured to switch the current channel to the target channel.
In one embodiment, the apparatus further comprises:
the removing module 420 is further configured to add the current channel to the abnormal channel set after removing the current channel from the candidate channel set, and record an adding time.
In an embodiment, the selecting module 430 is further configured to select a target channel from the abnormal channel set according to an adding time when the number of channels in the candidate channel set is zero, and add the target channel to the candidate channel set.
In an embodiment, the removing module 420 is further configured to determine an adding duration of at least one abnormal channel in the abnormal channel set according to an adding time of the at least one abnormal channel; and under the condition that the adding duration of the at least one abnormal channel reaches a first preset duration, removing the at least one abnormal channel from the abnormal channel set and adding the at least one abnormal channel into the candidate channel set.
In an embodiment, the accumulating module 410 is specifically configured to accumulate the number of times of current channel abnormality within a second preset time period.
The implementation processes of the functions and actions of the components in the device are specifically described in the implementation processes of the corresponding steps in the method, and are not described herein again.
Since the device embodiments basically correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Further, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous. The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the device embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (10)
1. A channel switching method is applied to an AP, and comprises the following steps:
accumulating the times of current channel abnormity under the condition that the current channel abnormity is detected;
removing the current channel from the candidate channel set under the condition that the accumulated times reach a preset threshold value; at least the current channel is included in the candidate channel set;
under the condition that the number of channels in the candidate channel set is not zero, selecting a target channel in the candidate channel set based on a preset algorithm;
and switching the current channel to the target channel.
2. The method of claim 1, wherein after removing the current channel from the candidate channel set, further comprising:
and adding the current channel into an abnormal channel set, and recording the adding time.
3. The method of claim 2, further comprising:
and under the condition that the number of the channels in the candidate channel set is zero, selecting a target channel from the abnormal channel set according to the adding time, and adding the target channel into the candidate channel set.
4. The method of claim 2, further comprising:
determining the adding duration of at least one abnormal channel according to the adding time of at least one abnormal channel in the abnormal channel set;
and under the condition that the adding duration of the at least one abnormal channel reaches a first preset duration, removing the at least one abnormal channel from the abnormal channel set and adding the at least one abnormal channel into the candidate channel set.
5. The method of claim 1, wherein accumulating the number of current channel anomalies comprises:
and accumulating the times of current channel abnormity within a second preset time length.
6. A channel switching apparatus, applied to an AP, the apparatus comprising:
the accumulation module is used for accumulating the times of current channel abnormity under the condition that the current channel abnormity is detected;
a removing module, configured to remove the current channel from the candidate channel set when the accumulated number of times reaches a preset threshold; at least the current channel is included in the candidate channel set;
the selection module is used for selecting a target channel from the candidate channel set based on a preset algorithm under the condition that the number of channels in the candidate channel set is not zero;
and the switching module is used for switching the current channel into the target channel.
7. The apparatus of claim 6,
the removing module is further configured to add the current channel to an abnormal channel set after removing the current channel from the candidate channel set, and record an adding time.
8. The apparatus of claim 7,
the selecting module is further configured to select a target channel from the abnormal channel set according to the adding time when the number of channels in the candidate channel set is zero, and add the target channel to the candidate channel set.
9. The apparatus of claim 7,
the removing module is further configured to determine an adding duration of at least one abnormal channel according to an adding time of the at least one abnormal channel in the abnormal channel set; and under the condition that the adding duration of the at least one abnormal channel reaches a first preset duration, removing the at least one abnormal channel from the abnormal channel set and adding the at least one abnormal channel into the candidate channel set.
10. The apparatus of claim 6,
the accumulation module is specifically configured to accumulate the number of times that the current channel is abnormal within a second preset duration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911318938.7A CN111031583A (en) | 2019-12-19 | 2019-12-19 | Channel switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911318938.7A CN111031583A (en) | 2019-12-19 | 2019-12-19 | Channel switching method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111031583A true CN111031583A (en) | 2020-04-17 |
Family
ID=70210592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911318938.7A Pending CN111031583A (en) | 2019-12-19 | 2019-12-19 | Channel switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111031583A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114641045A (en) * | 2022-02-24 | 2022-06-17 | 云南电网有限责任公司 | Power transmission line communication channel switching method and system based on communication quality perception |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852543A (en) * | 2006-01-09 | 2006-10-25 | 华为技术有限公司 | Method for detecting physical random access channel abnormal condition |
CN101296499A (en) * | 2007-04-26 | 2008-10-29 | 华为技术有限公司 | Method and device for implementing coexistence between cognition wireless systems |
WO2013062367A1 (en) * | 2011-10-26 | 2013-05-02 | 삼성전자 주식회사 | Method and device for monitoring frequency domain-based wireless link in wireless communication system |
CN103596228A (en) * | 2013-11-19 | 2014-02-19 | 福建星网锐捷网络有限公司 | Wireless channel switching method and device |
US20150058491A1 (en) * | 2013-08-23 | 2015-02-26 | Sony Corporation | Information processing apparatus, information processing method, and program |
CN105491628A (en) * | 2016-01-06 | 2016-04-13 | 广东欧珀移动通信有限公司 | Communication channel switching method and mobile terminal |
CN105528558A (en) * | 2015-12-12 | 2016-04-27 | 天津南大通用数据技术股份有限公司 | Method and device for detecting hidden channel communication |
CN106792724A (en) * | 2016-12-30 | 2017-05-31 | 杭州迪普科技股份有限公司 | The method of adjustment and device of a kind of channel |
US20190221090A1 (en) * | 2018-01-12 | 2019-07-18 | Qognify Ltd. | System and method for dynamically ordering video channels according to rank of abnormal detection |
-
2019
- 2019-12-19 CN CN201911318938.7A patent/CN111031583A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852543A (en) * | 2006-01-09 | 2006-10-25 | 华为技术有限公司 | Method for detecting physical random access channel abnormal condition |
CN101296499A (en) * | 2007-04-26 | 2008-10-29 | 华为技术有限公司 | Method and device for implementing coexistence between cognition wireless systems |
WO2013062367A1 (en) * | 2011-10-26 | 2013-05-02 | 삼성전자 주식회사 | Method and device for monitoring frequency domain-based wireless link in wireless communication system |
US20150058491A1 (en) * | 2013-08-23 | 2015-02-26 | Sony Corporation | Information processing apparatus, information processing method, and program |
CN103596228A (en) * | 2013-11-19 | 2014-02-19 | 福建星网锐捷网络有限公司 | Wireless channel switching method and device |
CN105528558A (en) * | 2015-12-12 | 2016-04-27 | 天津南大通用数据技术股份有限公司 | Method and device for detecting hidden channel communication |
CN105491628A (en) * | 2016-01-06 | 2016-04-13 | 广东欧珀移动通信有限公司 | Communication channel switching method and mobile terminal |
CN106792724A (en) * | 2016-12-30 | 2017-05-31 | 杭州迪普科技股份有限公司 | The method of adjustment and device of a kind of channel |
US20190221090A1 (en) * | 2018-01-12 | 2019-07-18 | Qognify Ltd. | System and method for dynamically ordering video channels according to rank of abnormal detection |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114641045A (en) * | 2022-02-24 | 2022-06-17 | 云南电网有限责任公司 | Power transmission line communication channel switching method and system based on communication quality perception |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10375579B2 (en) | Channel detection method and system, device, and terminal having base station functions | |
US20230063943A1 (en) | Method and terminal device for resource selection, and storage medium | |
US9078265B2 (en) | Optimizing block reception for simultaneous use of at least two SIM cards | |
CN108337696B (en) | Method and device for processing SRVCC exception, storage medium and electronic equipment | |
US11540284B2 (en) | Data transmission method and device | |
US20160174163A1 (en) | Systems and methods for cable and wlan coexistence | |
US9307447B2 (en) | Enhanced extended access class barring | |
WO2017063125A1 (en) | Cell reselection method and user equipment | |
EP3869737A1 (en) | Gateway collaborative implementing method and device, iot gateways, and storage medium | |
CN111884875A (en) | Offline device determination method and device | |
CN111031583A (en) | Channel switching method and device | |
CN108156609B (en) | Cell merging and splitting method, device and base station | |
CN113542150B (en) | Data transmission method and device and central end network bridge | |
CN112752319A (en) | Network switching method, device, terminal and storage medium | |
CN113347668B (en) | Load balancing method and device, electronic equipment and storage medium | |
CN106717064B (en) | Data transmission method, device and system of time division duplex wireless data transmission system | |
CN114077213A (en) | Energy-saving control method and device | |
CN114449564B (en) | Method, device and equipment for detecting performance failure cell | |
US20230007516A1 (en) | Automated activation of unsolicited probe responses | |
CN112822229B (en) | ONU (optical network Unit) fault processing method, ONU, PON (Passive optical network) system and storage medium | |
CN110536328B (en) | Cell fault monitoring method and device | |
US20150381507A1 (en) | Network control apparatus | |
CN113259975A (en) | Network game connection method, electronic device and computer readable medium | |
KR101022334B1 (en) | Seamless Inter-Frequency Handover Method and Apparatus using Efficient Neighbor List Broadcasting Based on Cell Resource in WCDMA Network | |
CN111132095B (en) | Synchronization source determination method, device, terminal and medium based on D2D communication technology |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200417 |