CN114423057B - Channel switching method, device, AP equipment and storage medium - Google Patents

Channel switching method, device, AP equipment and storage medium Download PDF

Info

Publication number
CN114423057B
CN114423057B CN202210126472.6A CN202210126472A CN114423057B CN 114423057 B CN114423057 B CN 114423057B CN 202210126472 A CN202210126472 A CN 202210126472A CN 114423057 B CN114423057 B CN 114423057B
Authority
CN
China
Prior art keywords
channel
current optimal
dfs
cac
equipment
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
CN202210126472.6A
Other languages
Chinese (zh)
Other versions
CN114423057A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210126472.6A priority Critical patent/CN114423057B/en
Publication of CN114423057A publication Critical patent/CN114423057A/en
Application granted granted Critical
Publication of CN114423057B publication Critical patent/CN114423057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/165Performing reselection for specific purposes for reducing network power consumption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices
    • H04W88/10Access point devices adapted for operation in multiple networks, e.g. multi-mode access points
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a channel switching method, a device, AP equipment and a storage medium, wherein the channel switching method comprises the following steps: determining a current optimal channel and a current optimal non-DFS channel; controlling an Access Point (AP) device to work on the current optimal non-DFS channel under the condition that the current optimal channel is a DFS channel selected by dynamic frequency; and under the condition that the current optimal channel finishes channel available detection CAC, switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel. The embodiment of the application can ensure that the AP equipment can work in the optimal channel.

Description

Channel switching method, device, AP equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a channel switching method, a device, an AP device, and a storage medium.
Background
In the 5GHz band of wireless fidelity (wireless fidelity, wiFi), many channels, also called dynamic frequency selective (dynamic frequency selection, DFS) channels, may interfere with radar signals. According to the requirements of regulations of various countries, when an Access Point (AP) device works on a DFS channel, a channel validity detection (channel availability check, CAC) is required, and the AP device can work after waiting at least 1 minute.
To solve the above problem, one way is to delete the DFS channel directly, i.e. WiFi does not operate on the DFS channel. The direct deletion of the DFS channel can reduce the available channels in the entire 5GHz band, so that the AP device cannot work in the optimal channel, and the service experience of the user is poor.
Disclosure of Invention
The embodiment of the application provides a channel switching method, a device, AP equipment and a storage medium, which can ensure that the AP equipment can work in an optimal channel and improve the service experience of a user.
A first aspect of an embodiment of the present application provides a channel switching method, including:
determining a current optimal channel and a current optimal non-DFS channel;
controlling an Access Point (AP) device to work on the current optimal non-DFS channel under the condition that the current optimal channel is a DFS channel selected by dynamic frequency;
and under the condition that the current optimal channel finishes channel available detection CAC, switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel.
A second aspect of an embodiment of the present application provides a channel switching apparatus, including:
a determining unit, configured to determine a current optimal channel and a current optimal non-DFS channel;
The control unit is used for controlling the Access Point (AP) equipment to work on the current optimal non-DFS channel under the condition that the current optimal channel is the DFS channel selected by the dynamic frequency;
and the switching unit is used for switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel under the condition that the current optimal channel finishes the channel available detection CAC.
A third aspect of the embodiments of the present application provides an AP device, comprising a processor and a memory, the memory for storing a computer program, the computer program comprising program instructions, the processor being configured to invoke the program instructions to execute the step instructions as in the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer readable storage medium storing a computer program for electronic data exchange, the computer program comprising program instructions which, when executed by a processor, cause the processor to perform the steps as in the first aspect of the embodiments of the present application.
A fifth aspect of an embodiment of the present application provides a computer program product, wherein the computer program product comprises a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the step instructions as in the first aspect of the embodiment of the present application.
In the embodiment of the application, a current optimal channel and a current optimal non-DFS channel are determined; controlling an Access Point (AP) device to work on the current optimal non-DFS channel under the condition that the current optimal channel is a DFS channel selected by dynamic frequency; and under the condition that the current optimal channel finishes channel available detection CAC, switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel. According to the channel switching method, when the current optimal channel is the DFS channel, the waiting time of CAC of the current optimal channel can be avoided, the AP equipment is firstly enabled to work on the current optimal non-DFS channel, when the current optimal channel finishes CAC, the working channel of the AP equipment is switched from the current optimal non-DFS channel to the current optimal channel, the AP equipment can be enabled to work on the optimal channel, the AP equipment cannot be caused to wait for CAC, a user does not need to wait when switching to the DFS channel, and service experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a channel switching method according to an embodiment of the present application;
fig. 2 is a flow chart of another channel switching method according to an embodiment of the present application;
FIG. 3a is a schematic diagram of outputting a current optimal channel according to an embodiment of the present application;
fig. 3b is a schematic diagram of outputting a current optimal non-DFS channel according to an embodiment of the present application;
fig. 4 is a schematic diagram of a CAC completed DFS channel list provided by an embodiment of the present application;
fig. 5 is a flow chart of another channel switching method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a channel switching device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an AP device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the described embodiments of the application may be combined with other embodiments.
The terminal device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Station (MS), terminal device (terminal device), etc. For convenience of description, the above-mentioned devices are collectively referred to as terminal devices.
An Access Point (AP) device according to an embodiment of the present application may include a customer premise equipment (customer premise equipment, CPE), a wireless router, and the like. The CPE is a mobile signal access device that receives mobile signals and forwards the mobile signals as wireless WIFI signals. The CPE can convert the high-speed 4G/5G signals into WiFi signals, and can support a large number of terminal devices which are connected to the Internet simultaneously. A wireless router (e.g., a WiFi wireless router) may convert wired network signals and mobile network signals into wireless signals.
Referring to fig. 1, fig. 1 is a flow chart of a channel switching method according to an embodiment of the application. As shown in fig. 1, the channel switching method may include the following steps.
The ap device determines a current optimal channel and a current optimal non-DFS channel 101.
In an embodiment of the present application, an Access Point (AP) device may determine a current optimal channel and a current optimal non-dynamic frequency selection (dynamic frequency selection, DFS) channel through an automatic channel tuning (auto channel optimization, ACO) module.
The current optimal channel is the optimal channel among all channels currently available to the AP device. The current optimal non-DFS channel is the optimal channel among all channels currently available to the AP device except the DFS channel. The channels of the embodiments of the present application may include channels of the 5G band.
The current optimal channel and the current optimal non-DFS channel may be the same or different. When the two are the same, the current optimal channel is a non-DFS channel, and when the two are different, the current optimal channel is a DFS channel.
The DFS channel and the non-DFS channel are not necessarily identical in different countries. For example, in China, non-DFS channels may include channel 36 (center frequency: 5180MHz; frequency range: 5170-5190 MHz; bandwidth: 20 MHz), channel 40 (center frequency: 5200MHz; frequency range: 5190-5210 MHz; bandwidth: 20 MHz), channel 44 (center frequency: 5220MHz; frequency range: 5210-5230 MHz; bandwidth: 20 MHz), channel 48 (center frequency: 5240MHz; frequency range: 5230-5250 MHz; bandwidth: 20 MHz), channel 149 (center frequency: 5745MHz; frequency range: 5735-5755 MHz; bandwidth: 20 MHz), channel 153 (center frequency: 5765MHz; frequency range: 5755-5775 MHz; bandwidth: 20 MHz), channel 157 (center frequency: 5785MHz; frequency range: 5775-5795 MHz; bandwidth: 20 MHz), channel 161 (center frequency: 5805MHz; frequency range: 5795-5815 MHz; bandwidth: 20 MHz), channel 165 (center frequency: 5825MHz; frequency range: 5815-20 MHz). The DFS channels may include channel 52 (center frequency: 5260MHz; frequency range: 5250-5270 MHz; bandwidth: 20 MHz), channel 56 (center frequency: 5280MHz; frequency range: 5270-5290 MHz; bandwidth: 20 MHz), channel 60 (center frequency: 5300MHz; frequency range: 5290-5310 MHz; bandwidth: 20 MHz), channel 64 (center frequency: 5320MHz; frequency range: 5310-5330 MHz; bandwidth: 20 MHz). For example, in Europe, non-DFS channels can include channel 36, channel 40, channel 44, channel 48, channel 149, channel 153, channel 157, channel 161, and DFS channels can include channel 52, channel 56, channel 60, channel 64, channel 100 (center frequency: 5500MHz; frequency range: 5490-5510 MHz; bandwidth: 20 MHz).
Optionally, the step 101 may specifically include the following steps:
and the AP equipment acquires the interference information of each channel, and determines a current optimal channel and a current optimal non-DFS channel of the AP equipment according to the interference information of each channel.
In the embodiment of the application, the AP device may acquire the interference information of each of all the channels currently available to the AP device through an automatic channel tuning (auto channel optimization, ACO) module. Specifically, the ACO module may determine a current optimal channel and a current optimal non-DFS channel of the AP device according to interference information of each channel. An ACO module of an application layer of the AP equipment informs a scanning module of a WiFi driving layer of the AP equipment to scan a designated channel list (such as 36-64 channels and 149-165 channels of 5 GHz) through an input/output control (IOCTL) interface, and a scanning module of the WiFi driving layer scans each channel of the channel list to acquire interference information of each channel; and the scanning module of the WiFi driving layer informs the ACO module of the application layer, and finally the ACO module analyzes the interference information of each channel to select an optimal channel and a non-DFS optimal channel.
The interference information of the first channel may include the number of surrounding other AP devices that can be detected by the AP device and operate on the first channel, the signal strength of each other AP device that operates on the first channel, and the noise floor of each other AP device that operates on the first channel, where the first channel is any one of all channels that are currently available to the AP device. Background noise refers to background noise.
In general, the fewer the number of surrounding other AP devices that the AP device can detect to operate on the first channel, the smaller the signal strength of each other AP device that operates on the first channel, the smaller the noise floor of each other AP device that operates on the first channel, and the smaller the impact that each other AP device that operates on the first channel has on the first channel, the better the channel quality of the first channel. The more surrounding other AP devices that the AP device can detect operate on the first channel, the greater the signal strength of each other AP device that operates on the first channel, the greater the noise floor of each other AP device that operates on the first channel, and the greater the impact that each other AP device that operates on the first channel has on the first channel, the worse the channel quality of the first channel. It should be noted that, the interference information of the first channel may further include the radar signal strength of the first channel where the surrounding radar that can be detected by the AP device operates. The smaller the radar signal intensity working on the first channel, the better the channel quality of the first channel; the greater the radar signal strength operating on the first channel, the poorer the channel quality of the first channel.
In the embodiment of the application, the channel quality of the first channel can be calculated by the number of other surrounding AP devices which can be detected by the AP device and work on the first channel, the signal strength of each other AP device working on the first channel and the noise floor of each other AP device working on the first channel. For example, the channel quality of the first channel may be calculated by means of weighted summation.
The current optimal channel is the channel with the optimal channel quality in all the channels currently available to the AP equipment. The current optimal non-DFS channel is a channel of which channel quality is optimal among channels other than the DFS channel among all channels currently available to the AP device.
The embodiment of the application can take the channel with the optimal channel quality in all the channels currently available to the AP equipment as the current optimal channel of the AP equipment, take the channel with the optimal channel quality in the channels except the DFS channel in all the channels currently available to the AP equipment as the current optimal non-DFS channel, and accurately calculate the channel quality of each channel according to the interference information of each channel so as to accurately determine the current optimal channel and the current optimal non-DFS channel of the AP equipment.
And 102, controlling the AP equipment to work in the current optimal non-DFS channel under the condition that the current optimal channel is the dynamic frequency selection DFS channel.
In the embodiment of the present application, if the current optimal channel is a dynamic frequency selection (dynamic frequency selection, DFS) channel, the AP device directly works on the current optimal channel, and the DFS channel needs to be used only by performing channel availability detection (channel available check, CAC), and the CAC detection needs to wait for a certain period (for example, 1 minute), and during the waiting period, the channel cannot be used, so that the service experience of the user is seriously affected. In the embodiment of the application, when the current optimal channel is a DFS channel, the AP equipment is firstly enabled to work on the current optimal non-DFS channel. The non-DFS channels can be used immediately without CAC, so that the user does not need to wait, and the service experience of the user is improved.
The user can access the AP equipment through the terminal equipment, and access the WiFi network through the AP equipment. The AP device may be a wireless access point, a creator of a wireless network, or a central node of a wireless network. A wireless router used in a general home or office belongs to an AP device. The terminal devices may be referred to as Station (STA) sites, and each terminal device (e.g., notebook, PDA, and other user devices that can be networked) connected to the wireless network may be referred to as a site. The STA is generally a client in a wireless local area network (wireless local area networks, WLAN), and may be a computer equipped with a wireless network card, a smart phone with a WiFi module, or a mobile or fixed smart phone. The process of STA access in a wireless environment includes: authenticating whether the STA has permission to establish a communication link with the AP equipment; the STA cannot access the WLAN; and after the STA accesses the WLAN network, authenticating the authority that the STA can not access the network.
In the process of establishing a communication link between the STA and the AP device, after the STA scans an accessible service set identifier (service set identifier, SSID) through a Beacon frame or a Probe response frame, an appropriate SSID is selected for access according to a signal strength indication (received signal strength indication, RSSI) of the received Beacon frame or Probe response frame. Each AP device may have an identifier for user identification, and the SSID is the identifier for user identification.
The precondition for step 102 is that the AP device is not operating on either the current optimal channel or the current optimal non-DFS channel prior to performing step 102. For example, the AP device just turned on. For another example, in the case where the previous operating channel of the AP device receives radar interference, the channel quality of the previous operating channel is severely degraded.
Optionally, the method shown in fig. 1 may further include the following steps:
and controlling the AP equipment to work in the current optimal channel under the condition that the current optimal channel is a non-DFS channel.
In the embodiment of the application, if the current optimal channel is a non-DFS channel, the non-DFS channel does not need CAC, so that the AP equipment can directly work on the current optimal channel.
103, under the condition that the current optimal channel finishes the channel available detection CAC, switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel.
In the embodiment of the application, the AP equipment can switch the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel in a seamless non-perception switching mode, and in the seamless non-perception switching process, the STA is not disconnected, and the service is not influenced.
Optionally, in step 103, switching the operating channel of the AP device from the current optimal non-DFS channel to the current optimal channel may include the following steps:
and the AP equipment switches the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel through a channel switching announcement CSA.
In the embodiment of the application, the channel switching announcement (channel switch announcement, CSA) is an AP equipment channel fast switching mechanism defined by IEEE802.11 protocol, and is simply described as that an AP and a Station (STA) agree to switch to a certain channel to work at the same time after a certain time (usually 500 ms), and the STA is not disconnected during switching, so that the service is not influenced (the switching is completed within 300 ms). For CSA, reference may be made to IEEE802.11 protocol 802.11-2016. Pdf.
In the embodiment of the application, after the CAC of the current optimal channel is finished, the current optimal channel (DFS channel) is seamlessly switched to the current optimal channel (DFS channel) without perception through a CSA mechanism, so that zero-waiting work of the DFS channel is realized.
According to the channel switching method, when the current optimal channel is the DFS channel, the waiting time of CAC of the current optimal channel can be avoided, the AP equipment is firstly enabled to work on the current optimal non-DFS channel, when the current optimal channel finishes CAC, the working channel of the AP equipment is switched from the current optimal non-DFS channel to the current optimal channel, the AP equipment can be enabled to work on the optimal channel, the AP equipment cannot be caused to wait for CAC, a user does not need to wait when switching to the DFS channel, and service experience of the user is improved.
The method shown in fig. 1 can be applied to a scene that the AP device is turned on, and can also be applied to a scene that the AP device needs to switch channels.
Referring to fig. 2, fig. 2 is a flow chart of another channel switching method according to an embodiment of the application. Fig. 2 is a scenario in which the AP device is powered on. As shown in fig. 2, the channel switching method may include the following steps.
In the case of powering on the AP device, the AP device determines a current optimal channel and a current optimal non-DFS channel 201.
In the embodiment of the application, the AP equipment can determine the current optimal channel and the current optimal non-DFS channel through the ACO module, and the ACO module can select the optimal channel in the starting-up process of the AP equipment. The output results of the ACO module are two: a current optimal channel and a current optimal non-DFS channel.
Referring to fig. 3a, fig. 3a is a schematic diagram of outputting a current optimal channel according to an embodiment of the present application. As shown in fig. 3a, the result 1 output in fig. 3 a: a current optimum channel, the current optimum channel being selected from all non-DFS channels and all DFS channels. Referring to fig. 3b, fig. 3b is a schematic diagram of outputting a current optimal non-DFS channel according to an embodiment of the present application. As shown in fig. 3b, the result 2 output in fig. 3 b: the current optimal non-DFS channel is selected from all non-DFS channels.
And 202, controlling the AP equipment to work in the current optimal non-DFS channel under the condition that the current optimal channel is the dynamic frequency selection DFS channel.
203, switching the working channel of the AP device from the current optimal non-DFS channel to the current optimal channel in the case of the current optimal channel completion channel available detection CAC.
The specific implementation of step 201 to step 203 may refer to step 101 to step 103, which are not described herein.
Optionally, after performing step 202, the following steps may also be performed:
the AP device detects whether the current optimal channel completes CAC.
In the embodiment of the application, the AP equipment can detect whether the current optimal channel completes CAC through a channel availability detection (channel available check, CAC) module of the application layer. The channel availability detection module of the application layer may also be referred to as a UCAC (upper channel available check) module, the UCAC module may send a command to the channel availability detection (channel available check, CAC) module of the WiFi driving layer through an input/output control (IOCTL) interface, the channel availability detection module of the WiFi driving layer may also be referred to as a LCAC (upper channel available check) module, after receiving the command of the UCAC module, the LCAC module may make a CAC on a current optimal channel according to channel information of the current optimal channel carried in the command, and after the LCAC module completes the CAC of the current optimal channel, the LCAC module notifies the UCAC module. The processing module of the AP device may learn from the UCAC module whether the current optimal channel completes CAC.
The UCAC module may place the DFS channel with completed CAC in a DFS channel list called "completed CAC".
As shown in fig. 4, fig. 4 is a schematic diagram of a CAC completed DFS channel list according to an embodiment of the present application. As shown in fig. 4, the UCAC module may CAC all DFS channels, and put the CAC-completed DFS channel list into the CAC-completed DFS channel list.
Specifically, the channel selection method in the case of powering on the AP device may include the following steps.
Step 11, when the AP equipment is started, an ACO module of an application layer of the AP equipment selects an optimal channel A and an optimal non-DFS channel B, and if the optimal channel A is a non-DFS channel, the flow is ended; if the optimal channel a is a DFS channel, step 12 is entered.
Step 12, because the current optimal channel a is a DFS channel, according to regulations, the CAC module of the application layer of the AP device needs to make CAC, meaning that the AP device needs to wait at least 1 minute to work, and the AP device is first made to work on an optimal non-DFS channel B, because the optimal non-DFS channel B is a non-DFS channel, and does not need to make CAC, so that the service can be directly provided for the user;
step 13, the processing module of the AP equipment informs the CAC module of the application layer, and CAC is carried out on the optimal channel A;
step 14, after the CAC module of the application layer finishes CAC on the optimal channel A, the processing module of the AP equipment switches to the optimal channel A in a seamless and non-perceivable manner through a CSA mechanism.
The ACO module and the CAC module may be modules in an application layer of the AP device.
In the embodiment of the application, when the AP equipment is started, an ACO module selects an optimal channel, if the optimal channel is a DFS channel, the AP equipment is firstly enabled to work on the optimal non-DFS channel, after the CAC module of the application layer finishes CAC, the CAC module is switched to the DFS channel in a seamless and non-perception way through a CSA mechanism, and zero waiting work of the DFS channel is realized. The SSID of 5GHz can be directly searched by the user after the user starts the system, and the AP equipment can work on an optimal channel, so that the optimal service experience is provided for the user.
Referring to fig. 5, fig. 5 is a flow chart of another channel switching method according to an embodiment of the application. As shown in fig. 5, fig. 5 is applied to a scenario where an AP device needs to perform channel switching. The channel switching method may include the following steps.
501, in the case that the AP device is in an operating state, the AP device detects whether channel switching is required.
In the embodiment of the application, when the AP equipment is in the working state, the AP equipment needs to switch the channel under the following conditions. 1. The working channel of the AP equipment is interfered by radar signals; 2. the operating channel of the AP device cannot meet the current operating requirements.
Optionally, in step 501, the AP device detects whether channel switching is required, which may specifically include the following steps:
(21) The AP equipment detects whether radar interference exists in a working channel of the AP or whether the working channel of the AP meets the current working requirement;
(22) And under the condition that radar interference exists on the working channel of the AP or the working channel of the AP does not meet the current working requirement, the AP equipment determines that channel switching is needed.
In the embodiment of the application, radar interference exists in the working channel of the AP, which can be interference caused by the superposition of the frequency band of the working channel of the AP and the working frequency band of the radar signal which can be detected by the accessory. The failure of the AP device's operating channel to meet the current operating requirements may include any of the following: 1. the channel quality of the current working channel gradually decreases; 2. the environment of the current working channel deteriorates; 3. the current operating channel is not the optimal channel.
Under the condition that the AP equipment is in a working state, when radar interference is detected, a radar event processing module of an application layer of the AP equipment can respond to an event of a radar interference detection module of the WiFi driving layer, when the radar interference detection module detects radar interference, the radar event processing module of the application layer can be informed, after the radar event processing module receives the radar interference event, the AP equipment determines that channel switching is required to be carried out so as to avoid the radar interference, and the AP equipment can switch to an optimal channel provided by the ACO module for working.
In the case where the AP device is in an operating state, when it is detected that the operating channel environment is deteriorated, the AP device determines that channel switching is required when the current operating channel has failed to provide an optimal service experience.
And 502, in the case that the channel switching is detected to be needed, the AP equipment determines a current optimal channel and a current optimal non-DFS channel.
In the embodiment of the application, the AP equipment can determine the current optimal channel and the current optimal non-DFS channel through the ACO module, and the ACO module can select the optimal channel in the starting-up process of the AP equipment. The output results of the ACO module are two: a current optimal channel and a current optimal non-DFS channel.
And 503, controlling the AP equipment to work in the current optimal non-DFS channel under the condition that the current optimal channel is the dynamic frequency selection DFS channel.
And 504, switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel under the condition that the current optimal channel is finished and the channel availability detection CAC is available.
The specific implementation of steps 502 to 504 may refer to steps 101 to 103, and will not be described herein.
Optionally, after performing step 503, the following steps may also be performed:
(31) The AP equipment acquires a DFS channel list with completed CAC;
(32) If the current optimal channel is in the DFS channel list with completed CAC, the AP equipment determines that the current optimal channel completes CAC;
(33) And if the current optimal channel is not in the DFS channel list with completed CAC, the AP equipment detects whether the current optimal channel completes CAC.
In the embodiment of the application, under the condition that the AP equipment is in a working state, the UCAC module can sequentially make CACs for all DFS channels, and put the DFS channels with the CACs in a DFS channel list called as the DFS channel list with the CACs completed.
Under the condition that the AP equipment needs to switch channels, if the current optimal channel detected by the ACO module is a DFS channel, the AP equipment is firstly enabled to work on the current optimal non-DFS channel, the AP equipment can acquire a DFS channel list with completed CAC from the UCAC module, if the current optimal channel is in the DFS channel list with completed CAC, the AP equipment determines that the current optimal channel completes CAC, and switches the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel; if the current optimal channel is not in the DFS channel list with completed CAC, the AP equipment detects whether the current optimal channel completes CAC.
In the embodiment of the present application, the AP device detects whether the CAC is completed on the current optimal channel, which specifically includes the following steps: the AP equipment can detect whether the current optimal channel finishes CAC through the UCAC module, the UCAC module can send the command of the UCAC module to the LCAC module through the IOCTL interface, the LCAC module can do CAC on the current optimal channel according to the channel information of the current optimal channel carried in the command after receiving the command of the UCAC module, and the LCAC module notifies the UCAC module after the LCAC module finishes the CAC of the current optimal channel. The processing module of the AP device may learn from the UCAC module whether the current optimal channel completes CAC.
When the AP equipment is in a working state, namely the AP equipment detects radar interference in the running process, an ACO module selects an optimal channel, if the optimal channel is a DFS channel, the optimal channel is firstly jumped to an optimal non-DFS channel to work through a CSA mechanism, and after the UCAC module finishes CAC on the DFS channel, the UCAC module is switched to the DFS channel through the CSA mechanism, so that the zero waiting switching of the DFS channel in the working process of the AP equipment is realized. Therefore, even if the AP equipment detects radar interference in the working process, the service of the user is not interrupted, and the SSID signal of 5GHz is not disappeared.
In the embodiment of the application, the WiFi protocol is not modified, so that the problems of service interruption, SSID signal loss of 5GHz and 5GHz connection interruption caused by CAC of a DFS channel can be solved, and the optimal channel can be selected for the AP equipment. The embodiment of the application skillfully uses the optimal non-DFS channel as the springboard of the DFS channel, thoroughly eliminates the waiting time brought by the CAC of the DFS channel, and greatly improves the service experience of the user.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that, in order to implement the above-mentioned functions, the terminal device includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional units of the terminal equipment according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a channel switching apparatus provided in an embodiment of the present application, where the channel switching apparatus 600 is applied to an AP device, and the channel switching apparatus 600 may include a determining unit 601, a control unit 602, and a switching unit 603, where:
a determining unit 601, configured to determine a current optimal channel and a current optimal non-DFS channel;
a control unit 602, configured to control an access point AP device to operate on the current optimal non-DFS channel if the current optimal channel is a dynamic frequency selection DFS channel;
a switching unit 603, configured to switch the working channel of the AP device from the current optimal non-DFS channel to the current optimal channel in the case where the current optimal channel completes the channel availability detection CAC.
Optionally, the determining unit 601 is further configured to determine a current optimal channel and a current optimal non-DFS channel when the AP device is turned on.
Optionally, the channel switching device 600 may further include a detection unit 604.
The detecting unit 604 is further configured to detect whether channel switching is required in a case where the AP device is in a working state;
the determining unit 601 is further configured to determine a current optimal channel and a current optimal non-DFS channel when channel switching is detected to be required.
Optionally, the detecting unit 604 detects whether channel switching is required, including: detecting whether radar interference exists in the working channel of the AP or whether the working channel of the AP meets the current working requirement; and determining that channel switching is needed under the condition that radar interference exists on the working channel of the AP or the working channel of the AP does not meet the current working requirement is detected.
Optionally, the channel switching device 600 may further include an acquisition unit 605.
The acquiring unit 605 is configured to acquire a DFS channel list with completed CAC;
the determining unit 601 is further configured to determine that the current optimal channel completes CAC if the current optimal channel is in the DFS channel list that has completed CAC;
The detecting unit 604 is further configured to detect, in the DFS channel list in which the current optimal channel is not in the CAC completed DFS channel list, whether the current optimal channel completes CAC.
Optionally, the detecting unit 604 is further configured to detect whether CAC is completed on the current optimal channel after the control unit 602 controls the access point AP device to operate on the current optimal non-DFS channel.
Optionally, the determining unit 601 determines a current optimal channel and a current optimal non-DFS channel, including: and acquiring interference information of each channel, and determining a current optimal channel and a current optimal non-DFS channel of the AP equipment according to the interference information of each channel.
Optionally, the switching unit 603 switches the working channel of the AP device from the current optimal non-DFS channel to the current optimal channel, including: and switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel through a channel switching announcement CSA.
The determining unit 601, the control unit 602, the switching unit 603, the detecting unit 604, and the acquiring unit 605 in the embodiment of the present application may be processors in the AP device.
In the embodiment of the application, when the current optimal channel is the DFS channel, the waiting time of CAC of the current optimal channel can be avoided, the AP equipment is firstly enabled to work on the current optimal non-DFS channel, and when the current optimal channel finishes CAC, the working channel of the AP equipment is switched from the current optimal non-DFS channel to the current optimal channel, so that the AP equipment can work on the optimal channel and can not cause the AP equipment to wait for CAC, and users do not need to wait when switching to the DFS channel, thereby improving the service experience of the users.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an AP device according to an embodiment of the present application, as shown in fig. 7, the AP device 700 includes a processor 701 and a memory 702, where the processor 701 and the memory 702 may be connected to each other through a communication bus 703. The communication bus 703 may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The communication bus 703 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 7, but not only one bus or one type of bus. The memory 702 is used for storing a computer program comprising program instructions, the processor 701 being configured to invoke the program instructions, the program comprising steps for performing part or all of the methods shown in fig. 1-5.
The processor 701 may be a general purpose Central Processing Unit (CPU), microprocessor, application Specific Integrated Circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program schemes.
The Memory 702 may be, but is not limited to, read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, random access Memory (random access Memory, RAM) or other type of dynamic storage device that can store information and instructions, but may also be electrically erasable programmable read-Only Memory (EEPROM), compact disc read-Only Memory (Compact Disc Read-Only Memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be stand alone and coupled to the processor via a bus. The memory may also be integrated with the processor.
The AP device 700 may further include general components such as a communication interface, an antenna, etc., which are not described in detail herein.
In the embodiment of the application, when the current optimal channel is the DFS channel, the waiting time of CAC of the current optimal channel can be avoided, the AP equipment is firstly enabled to work on the current optimal non-DFS channel, and when the current optimal channel finishes CAC, the working channel of the AP equipment is switched from the current optimal non-DFS channel to the current optimal channel, so that the AP equipment can work on the optimal channel and can not cause the AP equipment to wait for CAC, and users do not need to wait when switching to the DFS channel, thereby improving the service experience of the users.
The embodiment of the present application also provides a computer-readable storage medium storing a computer program for electronic data exchange, where the computer program causes a computer to execute some or all of the steps of any one of the channel switching methods described in the above method embodiments.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units described above may be implemented either in hardware or in software program modules.
The integrated units, if implemented in the form of software program modules, may be stored in a computer-readable memory for sale or use as a stand-alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned memory includes: a U-disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-only memory, random access memory, magnetic or optical disk, etc.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for channel switching, comprising:
detecting whether channel switching is needed or not under the condition that the AP equipment is in a working state;
under the condition that channel switching is detected to be needed, determining a current optimal channel and a current optimal non-DFS channel;
controlling an Access Point (AP) device to work on the current optimal non-DFS channel under the condition that the current optimal channel is a DFS channel selected by dynamic frequency;
Acquiring a DFS channel list of completed CAC; under the condition that the AP equipment is in a working state, the AP equipment sequentially performs CAC on all DFS channels through a channel availability detection UCAC module of an application layer, and places the DFS channels with the CAC on a DFS channel list with the CAC;
if the current optimal channel is in the DFS channel list with completed CAC, determining that the current optimal channel completes CAC; if the current optimal channel is not in the DFS channel list with completed CAC, detecting whether the current optimal channel completes CAC;
and under the condition that the current optimal channel finishes channel available detection CAC, switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel.
2. The method of claim 1, wherein prior to said determining the current optimal channel and the current optimal non-DFS channel, the method further comprises:
and under the condition that the AP equipment is started, executing the steps of determining the current optimal channel and the current optimal non-DFS channel.
3. The method according to claim 1, wherein the method further comprises:
and controlling the AP equipment to work in the current optimal channel under the condition that the current optimal channel is a non-dynamic frequency selection DFS channel.
4. The method of claim 1, wherein the detecting whether channel switching is required comprises:
detecting whether radar interference exists in the working channel of the AP or whether the working channel of the AP meets the current working requirement;
and determining that channel switching is needed under the condition that radar interference exists on the working channel of the AP or the working channel of the AP does not meet the current working requirement is detected.
5. The method of claim 2, wherein the controlling access point AP device operates after the current optimal non-DFS channel, the method further comprising:
and detecting whether the current optimal channel completes CAC.
6. The method according to any one of claims 1-5, wherein said determining a current optimal channel and a current optimal non-DFS channel comprises:
and acquiring interference information of each channel, and determining a current optimal channel and a current optimal non-DFS channel of the AP equipment according to the interference information of each channel.
7. The method according to any one of claims 1-5, wherein said switching the operating channel of the AP device from the current optimal non-DFS channel to the current optimal channel comprises:
And switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel through a channel switching announcement CSA.
8. A channel switching device, comprising:
the detection unit is used for detecting whether channel switching is needed or not under the condition that the AP equipment is in a working state;
a determining unit, configured to determine a current optimal channel and a current optimal non-DFS channel when channel switching is detected to be required;
the control unit is used for controlling the Access Point (AP) equipment to work on the current optimal non-DFS channel under the condition that the current optimal channel is the DFS channel selected by the dynamic frequency;
an acquisition unit for acquiring a DFS channel list with completed CAC; under the condition that the AP equipment is in a working state, the AP equipment sequentially performs CAC on all DFS channels through a channel availability detection UCAC module of an application layer, and places the DFS channels with the CAC on a DFS channel list with the CAC;
the determining unit is further configured to determine that the current optimal channel completes CAC if the current optimal channel is in the DFS channel list of completed CAC;
the detecting unit is further configured to detect, when the current optimal channel is not in the DFS channel list with completed CAC, whether the current optimal channel completes CAC;
And the switching unit is used for switching the working channel of the AP equipment from the current optimal non-DFS channel to the current optimal channel under the condition that the current optimal channel finishes the channel available detection CAC.
9. An AP device comprising a processor and a memory, the memory for storing a computer program, the computer program comprising program instructions, the processor configured to invoke the program instructions to perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-7.
CN202210126472.6A 2022-02-10 2022-02-10 Channel switching method, device, AP equipment and storage medium Active CN114423057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210126472.6A CN114423057B (en) 2022-02-10 2022-02-10 Channel switching method, device, AP equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210126472.6A CN114423057B (en) 2022-02-10 2022-02-10 Channel switching method, device, AP equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114423057A CN114423057A (en) 2022-04-29
CN114423057B true CN114423057B (en) 2023-11-21

Family

ID=81278800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210126472.6A Active CN114423057B (en) 2022-02-10 2022-02-10 Channel switching method, device, AP equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114423057B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117354874A (en) * 2022-06-29 2024-01-05 华为技术有限公司 Communication method and related equipment
CN116709273B (en) * 2022-12-28 2024-04-05 荣耀终端有限公司 Wireless communication system, method and equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113853001A (en) * 2020-06-25 2021-12-28 慧与发展有限责任合伙企业 System and method for optimizing channel switching mechanism between DFS channels

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170034707A1 (en) * 2015-07-27 2017-02-02 Qualcomm Incorporated Intelligent dynamic frequency selection techniques
CN117177364A (en) * 2017-06-13 2023-12-05 舒尔获得控股公司 Parallel use and scanning of radio channels

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113853001A (en) * 2020-06-25 2021-12-28 慧与发展有限责任合伙企业 System and method for optimizing channel switching mechanism between DFS channels

Also Published As

Publication number Publication date
CN114423057A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN114423057B (en) Channel switching method, device, AP equipment and storage medium
US9769721B2 (en) Channel switching method, apparatus, and device
JPH06103852B2 (en) Subscriber unit for wireless telephone and system access method for the unit
CN112738745B (en) Method for controlling network connection and related product
US20180124691A1 (en) Method and apparatus for accessing wireless network with smart device
CN104822168A (en) Guiding method and apparatus for frequency band switching of wireless terminal
CN105517076A (en) Cell reselection method and device for mobile terminal
CN107046699B (en) Wireless terminal roaming method and device
CN111417111A (en) Data processing method and network equipment
KR20080020084A (en) Method and mobile telecommunication terminal performing hand-over in mobile internet system
CN110401938A (en) Wireless Fidelity Wi-Fi connection control method and Related product
CN110913440B (en) Terminal module and method for selecting target operator in weak network scene
WO2014101198A1 (en) Cell reselection method and device
CN115708379A (en) Switching control method and device of user terminal and computer readable storage medium
CN110612670B (en) Antenna selection method and device and terminal
CN110461023B (en) Cell residence method and device for voice service, storage medium and main base station
CN107959945B (en) Wireless communication method and terminal equipment
CN106255157A (en) A kind of optimize the method for redirection process between multimode user terminal pattern
CN111132352B (en) Channel control method of WLAN antenna and mobile terminal
CN110708732A (en) Method and terminal for dynamically self-adapting network switching
CN106028323B (en) network access method, terminal and access point
JP2019062330A (en) Mobile communication device, channel scanning method and program
CN112333794B (en) Network connection method and device
CN111970750A (en) Multi-frequency WiFi identification method and device
JP2003506934A (en) Method and apparatus for acquiring service in a "boundary area" of a wireless communication system

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