Frequency point switching method and device, storage medium and wireless access point

By using the OBSS function and packet error rate threshold judgment method in OBSS scenarios, the source AP can automatically switch to the second working frequency point of the target AP, solving the problem that AP is difficult to effectively switch frequency points, and improving network performance and stability.

CN120129009APending Publication Date: 2025-06-10ZHUHAI HUGE IC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510310583.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-17
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

In OBSS scenario, it is difficult for AP to effectively switch to better frequency points for communication, resulting in network performance and stability being affected.

Method used

The OBSS function is enabled through the source AP, broadcast data packets from the target AP are received, the second working frequency point and signal strength of the target AP are analyzed, the signal strength difference is calculated, and whether to switch to the second working frequency point of the target AP is determined based on the packet error rate threshold.

Benefits of technology

When the sending data packet error rate at the current working frequency is detected to be higher than the threshold, it automatically switches to the second working frequency point of the target AP, optimizes network performance and reduces performance degradation caused by frequency point conflicts or interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120129009A_ABST
    Figure CN120129009A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a frequency point switching method and device, a storage medium and a wireless access point, and belongs to the field of wireless communication. The method comprises the steps that a source AP starts an OBSS function; the source AP receives a broadcast data packet from the target AP on the first working frequency point, and analyzes the broadcast data packet to obtain a second working frequency point of the target AP and the signal strength of the target AP on the second working frequency point; calculating a difference value between the signal intensity of the source AP at the first working frequency point and the signal intensity of the target AP at the second working frequency point; the source AP judges whether the difference value is smaller than a signal strength threshold value or not; if yes, the source AP continues to measure the sending data packet error rate on the first working frequency point; and if the data packet error rate is greater than the packet error rate threshold, switching the first working frequency point of the source AP to the second working frequency point of the target AP, thereby realizing switching to a channel which is the same as the interference source when the AP detects the interference, and bringing the advantage of avoiding the interference of the CCA and the EDCA into full play subsequently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication, and in particular, to a method and apparatus for switching frequency points, a storage medium, and a wireless access point. Background Art

[0002] In the field of wireless communication networks, especially in the wireless local area network (WLAN) environment, with the explosive growth in the number of wireless devices, the problem of spectrum resource allocation and efficient utilization has become increasingly prominent and has become a key technical problem to be solved urgently. As the core node connecting user devices to the network, the performance of the access point (AP) is crucial for the communication quality and user experience of the entire network.

[0003] To address this challenge, modern wireless communication technologies have introduced the concept of overlapping basic service sets (OBSS). OBSS endows the AP with the ability to perceive and adapt to the complex wireless environment around it, enabling the AP to utilize spectrum resources more intelligently and flexibly, thereby improving network efficiency and reducing interference. However, in the actual network deployment process, the complexity and variability of the wireless environment pose great challenges to spectrum resource management.

[0004] Currently, although some frequency point management strategies have been widely adopted in practical applications, most of these strategies are only based on simple channel background noise measurements. Specifically, the AP scans the surrounding wireless environment and selects a frequency point with relatively low background noise for communication in order to reduce interference. However, in practical applications, since there may be multiple basic service sets (BSS) around the AP, and these BSS may operate on multiple different frequency points, resulting in a relatively large background noise intensity for each frequency point in the current AP's frequency point list. In this case, the current BSS cannot simply switch to a better frequency point for communication based on the background noise intensity, thus affecting the performance and stability of the network. Summary of the Invention

[0005] The embodiments of this application provide a method and apparatus for switching frequency points, a storage medium, and a wireless access point, which can solve the interference problem of neighboring BSSs in the OBSS scenario. The technical solutions are as follows:

[0006] In a first aspect, the embodiments of this application provide a method for switching frequency points, including:

[0007] The source AP enables the OBSS function;

[0008] The source AP receives a broadcast data packet from the target AP on the first operating frequency point, and parses the broadcast data packet to obtain the second operating frequency point of the target AP and the signal strength of the target AP on the second operating frequency point; wherein, the target AP enables the OBSS function, and the target AP alternately sends broadcast data packets on multiple frequency points corresponding to a preset frequency point list;

[0009] Calculate the difference between the signal strength of the source AP on the first operating frequency point and the signal strength of the target AP on the second operating frequency point;

[0010] The source AP determines whether the difference is less than the signal strength threshold;

[0011] If so, the source AP continues to measure the packet error rate of the transmitted data on the first operating frequency point;

[0012] If the packet error rate of the transmitted data is greater than the packet error rate threshold, switch the first operating frequency point of the source AP to the second operating frequency point of the target AP.

[0013] In a second aspect, an embodiment of the present application provides a frequency point switching device, and the frequency point switching device includes:

[0014] An enabling unit, configured to enable the OBSS function;

[0015] An analysis unit, configured to receive a broadcast data packet from the target AP on the first operating frequency point, and parse the broadcast data packet to obtain the second operating frequency point of the target AP and the signal strength of the target AP on the second operating frequency point; wherein, the target AP enables the OBSS function, and the target AP alternately sends broadcast data packets on multiple frequency points corresponding to a preset frequency point list;

[0016] A calculation unit, configured to calculate the difference between the signal strength of the source AP on the first operating frequency point and the signal strength of the target AP on the second operating frequency point;

[0017] A determination unit, configured to determine whether the difference is less than the signal strength threshold;

[0018] A measurement unit, configured to, if the determination result of the determination unit is yes, continue to measure the packet error rate of the transmitted data on the first operating frequency point;

[0019] A switching unit, configured to, if the packet error rate of the transmitted data is greater than the packet error rate threshold, switch the first operating frequency point of the source AP to the second operating frequency point of the target AP.

[0020] In a third aspect, an embodiment of the present application provides a computer storage medium storing multiple instructions adapted to be loaded and executed by a processor to perform the above method steps.

[0021] In a fourth aspect, an embodiment of the present application provides a wireless access point, which may include: a processor and a memory; wherein, the memory stores a computer program adapted to be loaded and executed by the processor to perform the above method steps.

[0022] The beneficial effects brought by the technical solutions provided by some embodiments of the present application at least include:

[0023] When the source AP detects that the packet error rate of transmitted data at the current working frequency point is higher than a preset threshold, it will automatically switch to the second working frequency point of the target AP. This frequency point switching mechanism based on the actual network condition helps to optimize the network performance and reduce the performance degradation caused by frequency point conflicts or interferences. By switching the source AP to the same frequency point as the target AP, the source AP can effectively initiate the CCA (Clear Channel Assessment) mechanism. This mechanism uses energy detection to determine whether the current frequency point is idle, so as to avoid sending data when the channel is busy and reduce conflicts with other devices. After the CCA mechanism determines that the frequency point is idle, multiple devices (including the source AP and the target AP) will randomly generate different backoff values through the EDCA (Enhanced Distributed Channel Access) mechanism. These values determine when the devices start to send data, thus achieving time division and avoiding interference caused by multiple devices sending packets at the same time. This mechanism not only improves the utilization efficiency of spectrum resources, but also significantly reduces the interference phenomenon in the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0025] Figure 1 is a flowchart of the method for switching frequency points provided by an embodiment of the present application;

[0026] Figure 2 is a system architecture diagram of an embodiment of the present application;

[0027] Figure 3 is a structural diagram of a frequency point switching device provided by the present application;

[0028] Figure 4 This is a schematic structural diagram of a wireless access point provided by the present application. Specific embodiments

[0029] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe in detail the embodiments of the present application in conjunction with the accompanying drawings.

[0030] Please refer to Figure 2 , which is a schematic flowchart of a method for switching frequency points provided by an embodiment of the present application. The method of the present application may include the following steps:

[0031] S101. The source AP enables the OBSS function.

[0032] Among them, the source AP starts the OBSS (Overlapping Basic Service Set) function through its firmware or software configuration. The core of this function lies in monitoring and processing interference from other BSSs (Basic Service Set). The source AP initializes a series of algorithms and mechanisms that can listen to activities on the wireless channel, identify the presence of other APs, and evaluate their potential interference to the BSS where the source AP is located. Enabling the OBSS function also means that the source AP will start performing regular channel scans and interference assessment tasks to dynamically adjust its operating parameters to reduce interference.

[0033] In some embodiments of the present application, a login request sent by the user through the APP of the mobile terminal is received;

[0034] After verifying that the user identity is passed based on the login request, an enabling instruction from the user is received, and the OBSS function is enabled in response to the enabling instruction.

[0035] Among them, the source AP first receives a login request sent by the user, which usually contains the user's identity authentication information, such as username, password, or other credentials. The source AP verifies the user's identity according to a preset authentication mechanism (such as RADIUS server authentication, local database verification, etc.). If the verification passes, the source AP confirms that the user's identity is legal and allows the user to perform subsequent operations. After the user's identity is authenticated, the source AP maintains a communication connection with the user and is ready to receive further instructions from the user. The user sends an instruction to enable the OBSS function to the source AP through a client (such as a mobile device, a computer, etc.). The communication interface of the source AP receives the enable instruction and passes it to the internal processing module. The processing module of the source AP parses the received enable instruction to confirm the format, content, and identity of the sender of the instruction (ensuring that the instruction comes from an authenticated user). If the instruction format is correct, the content is legal, and the sender's identity has been verified, the source AP will consider the instruction valid. In response to the valid enable instruction, the source AP starts or activates its internal OBSS function module. The OBSS function module is responsible for monitoring and managing the frequency band overlap with adjacent APs, as well as performing necessary frequency band switching, power adjustment, or interference management operations. The source AP configures its radio interface and protocol stack to work in the OBSS mode and coordinate communication with adjacent APs. The source AP updates its internal state to reflect that the OBSS function has been enabled. The source AP sends a notification or confirmation message to the user, informing the user that the OBSS function has been successfully enabled and is ready for subsequent interference management and performance optimization.

[0036] S102. The source AP receives a broadcast data packet from the target AP on the first working frequency band, and parses the broadcast data packet to obtain the second working frequency band of the target AP and the signal strength of the target AP on the second working frequency band.

[0037] Among them, the target AP enables the OBSS function, and the target AP alternately sends broadcast data packets on multiple frequency bands corresponding to a preset frequency band list. The source AP continuously listens to the wireless channel on its currently configured first working frequency band. When the target AP (an AP that also enables the OBSS function) alternately sends broadcast data packets on the preset frequency band list, the source AP captures these data packets. The broadcast data packet usually contains information such as the SSID of the target AP, supported rates, security settings, and the currently used working frequency band (the second working frequency band). The receiving module of the source AP parses these data packets and extracts the second working frequency band of the target AP and the signal strength on this frequency band. This step is the basis for the source AP to perform interference evaluation and frequency band selection.

[0038] In some embodiments of the present application, parsing the broadcast data packet to obtain the second working frequency band of the target AP and the signal strength of the target AP on the second working frequency band includes:

[0039] Analyze the header of the broadcast data packet to obtain the current second operating frequency of the target AP, and measure the broadcast data packet to obtain the signal strength of the target AP on the second operating frequency.

[0040] Among them, the source AP continuously monitors the wireless channel to capture broadcast data packets from surrounding APs. These packets are usually sent at regular time intervals to ensure that devices in the network can discover and connect to available APs in a timely manner. Once a broadcast data packet is captured, the processor of the source AP starts to analyze the header part of the data packet. The header contains basic information of the data packet, such as source address, destination address, data packet type, length, and a series of flag bits, etc. In the context of WLAN, the header of the broadcast data packet also contains a field called "TIM" (Traffic Indication Map) to indicate which clients have pending data waiting to be transmitted. However, for analyzing the operating frequency and signal strength, it is more crucial to find specific fields containing this information. In the header of the broadcast data packet or the information element (IE) immediately following it, the source AP looks for a field called "Country Information" or "Regulatory Domain Information". This field usually contains information about the country or region where the AP is located, as well as the wireless frequency bands and channels allowed in that country or region. However, more directly, the source AP may look for an IE called "Channel Switch Announcement" (CSA), which is used to notify clients in the network when the AP plans to switch to a new frequency. If the target AP is currently using a frequency different from its default frequency, it may announce this change through the CSA IE. Note that the CSA IE is usually used for frequency switch notifications rather than continuously broadcasting the current frequency. In the absence of a CSA IE, the source AP may need to rely on other mechanisms (such as specific agreements with AP manufacturers or default behaviors in standards) to infer the current operating frequency of the target AP. But in many cases, the header of the broadcast data packet or the IE may directly contain a field indicating the current operating frequency.

[0041] Signal strength information is usually not directly parsed from the header of a broadcast packet. Instead, it is measured by the source AP's wireless receiving module when receiving the broadcast packet. When the source AP's wireless receiving module captures a broadcast packet, it measures the signal strength of the packet at the time of reception (usually expressed in dBm). This measured value reflects the power used by the target AP when sending the packet and the attenuation of the signal during propagation. The processor of the source AP records this measured value and associates it with the identifier of the target AP (such as BSSID) for subsequent use.

[0042] Finally, the processor of the source AP comprehensively analyzes the parsed operating frequency point information and the measured signal strength information to form a complete record of the second operating frequency of the target AP and the signal strength at that frequency.

[0043] S103. Calculate the difference between the signal strength of the source AP at the first operating frequency and the signal strength of the target AP at the second operating frequency.

[0044] Among them, the source AP regularly measures its signal strength at the first operating frequency, which is usually achieved by receiving acknowledgment frames or probe request frames from clients or other APs. At the same time, the source AP has parsed the signal strength of the target AP at the second operating frequency. The processor of the source AP calculates the difference between these two signal strengths, and this difference reflects the relative difference in signal strengths of the two APs at different frequencies. The magnitude of the difference is crucial for evaluating the potential interference level between the two APs.

[0045] S104. The source AP determines whether the difference is less than the signal strength threshold.

[0046] Among them, the source AP determines whether the difference is small enough to potentially cause serious interference problems based on a preset signal strength threshold. The signal strength threshold is a parameter set comprehensively based on factors such as the network environment, AP performance, and client requirements. If the difference is less than the signal strength threshold, the source AP will consider that the signal strengths of the two APs at their respective frequencies are similar, presenting a potential interference risk. This step is crucial for the source AP to decide whether further interference handling is required.

[0047] S105. If yes, the source AP continues to measure the packet error rate of the data sent by the source AP.

[0048] Among them, if the source AP determines that there is a potential interference problem (i.e., the difference is less than the signal strength threshold), it will start measuring its own packet error rate for transmitted data. The packet error rate for transmitted data refers to the proportion of data packets transmitted by the source AP that are not correctly received due to various reasons (such as interference, noise, etc.). The source AP will send a series of test data packets to clients or other APs within its coverage area and count the number of data packets that are not correctly received. The purpose of this step is to evaluate the degree of influence of interference on the performance of the source AP through actual data transmission.

[0049] S106. If the packet error rate for transmitted data is greater than the packet error rate threshold, switch the first working frequency band of the source AP to the second working frequency band of the target AP.

[0050] Among them, the source AP will judge whether the packet error rate for transmitted data is high enough to require further measures to reduce interference according to the preset packet error rate threshold. The packet error rate threshold is a parameter comprehensively set according to factors such as the network environment, AP performance, and client requirements. If the packet error rate for transmitted data is greater than the packet error rate threshold, the source AP will consider that the current working frequency band is severely interfered and needs to switch to another frequency band to reduce interference and improve network performance. After judging that the packet error rate for transmitted data is greater than the preset packet error rate threshold, the source AP decides to perform a frequency band switch to reduce interference and improve network performance. Selecting to switch the first working frequency band to the second working frequency band of the target AP is not only based on considerations of signal strength and potential interference, but also for the following key reasons:

[0051] Activation of the CCA mechanism:

[0052] The CCA (Clear Channel Assessment) mechanism is an important mechanism in the wireless local area network for judging whether the channel is idle to avoid collisions. Only when the source AP and the target AP switch to the same or similar frequency bands can the source AP effectively activate the CCA mechanism and judge whether the current frequency band is idle through energy detection.

[0053] If the source AP and the target AP are operating on different frequency bands, the source AP will not be able to directly evaluate the idle state of the frequency band where the target AP is located, thus increasing the risk of channel collisions and data packet losses.

[0054] Time division of the EDCA mechanism:

[0055] The EDCA (Enhanced Distributed Channel Access) mechanism is a mechanism in the wireless local area network for managing data transmission priorities and avoiding collisions.

[0056] After switching to the same frequency band, multiple devices (including the source AP and the target AP) will randomly generate different backoff values through the EDCA mechanism to avoid sending packets at the same time, thus forming time division. This time division can effectively avoid conflicts caused by multiple devices transmitting data simultaneously, thereby improving the utilization efficiency of spectrum resources.

[0057] Effective utilization of spectrum resources:

[0058] Frequency band switching not only helps reduce interference but also improves the effective utilization of spectrum resources. When the source AP and the target AP operate on the same frequency band, they can utilize the channel resources more coordinately, reducing the channel idle time and the probability of conflicts, thereby improving the throughput and performance of the entire network.

[0059] In summary, the source AP selects to switch the first operating frequency band to the second operating frequency band of the target AP in order to effectively start the CCA mechanism to judge the channel idle state, achieve time division through the EDCA mechanism to avoid interference, and ultimately improve the utilization efficiency of spectrum resources. This step is an active and effective coping strategy adopted by the source AP when facing potential interference problems.

[0060] In some embodiments of the present application, after the source AP parses the broadcast data packet and calculates the difference between the signal strength of the source AP at the first operating frequency band and the signal strength of the target AP at the second operating frequency band, the processor of the source AP will make the next judgment.

[0061] If this difference is greater than or equal to the preset signal strength threshold, it indicates that there is no obvious interference between the source AP at the current frequency band and the target AP at the new frequency band. In this case, switching to the new frequency band may not bring significant performance improvement and may instead introduce new interference or uncertainty.

[0062] Judgment of the error packet rate of data transmission:

[0063] At the same time, the source AP will also continuously monitor the error packet rate of data transmission on its current operating frequency band. If this error packet rate is less than or equal to the preset error packet rate threshold, it indicates that the communication quality of the current frequency band is acceptable and there is no significant interference or performance degradation.

[0064] In some possible embodiments of the present application, the signal strength threshold is -30 dB and the error packet rate threshold is 30%.

[0065] For example: In the 900M frequency band of 802.11ah, there are two basic service sets (BSS), denoted as BSS1 and BSS2 respectively. They operate at different working frequencies, that is, BSS1 operates at the 908MHz frequency point and BSS2 operates at the 916MHz frequency point. When the two BSSs gradually approach, mutual interference may occur, affecting the communication quality. To reduce interference, we adopt the OBSS automatic frequency switching algorithm, where the setting of the frequency switching threshold (obss_th) and the transmission data packet error rate threshold (tx_per_th) is particularly crucial for determining whether to switch frequencies.

[0066] Initialization and parameter setting.

[0067] Determine the test environment: Select a pair of bridges operating at the 908MHz frequency point for UDP traffic testing.

[0068] Set the useful signal strength: Fix the useful signal strength of the bridge at -58dBm.

[0069] Prepare the test tools: Ensure that tools for carrier-to-interference ratio (C / I) testing and packet error rate testing are available.

[0070] Conduct interference testing and determine the threshold values.

[0071] Apply interference to the 908MHz frequency point bridge from the 916MHz frequency point, and gradually increase the interference signal strength from a small signal to a large signal.

[0072] Record the test data: When the interference signal strength at the 916MHz frequency point is -42dBm, the average UDP traffic of the 908MHz frequency point bridge is 9.98Mbits / sec, and the packet error rate is 5%; when the interference signal strength is -28dBm, the average UDP traffic is 1.95Mbits / sec, and the packet error rate is 30%.

[0073] Conduct C / I testing: Calculate the difference between the useful signal strength and the interference signal strength, and the result is -30dB.

[0074] Determine the threshold values: According to the test results, set the frequency switching threshold (obss_th) to -30dB and the transmission data packet error rate threshold (tx_per_th) to 30%.

[0075] Monitor the signal strength and packet error rate between BSSs.

[0076] In the OBSS scenario, when BSS1 and BSS2 gradually approach, continuously monitor the signal strength (rssi_1 and rssi_2) of their respective working frequencies and the transmission data packet error rate.

[0077] Judge whether frequency switching is required.

[0078] If rssi_1 - rssi_2 < -30 dB and the packet error rate of transmitted data of BSS1 > 30%, then BSS1 will switch the frequency band to 916 MHz.

[0079] If rssi_2 - rssi_1 < -30 dB and the packet error rate of transmitted data of BSS2 > 30%, then BSS2 will switch the frequency band to 908 MHz.

[0080] Assume that BSS1 has switched the frequency band to 916 MHz according to the above conditions at this time, while BSS2 continues to operate at the working frequency band of 916 MHz.

[0081] Frequency band switching judgment when gradually moving away.

[0082] Gradually move the two BSSs away from each other. At this time, it is necessary to continuously monitor the ambient background noise intensity (bgrssi) of their respective working frequency bands.

[0083] If one of the BSSs (such as BSS1) is interfered, resulting in a larger bgrssi at its current working frequency band (916 MHz) and a smaller bgrssi at other frequency bands (such as 908 MHz) in the working frequency band list, then BSS1 will switch the frequency band according to bgrssi to ensure operation at a frequency band with less interference.

[0084] In practical applications, it may be necessary to continuously optimize and adjust the frequency switching threshold and the packet error rate threshold of transmitted data according to changes in the network environment and device performance.

[0085] Regularly test and monitor to ensure that the OBSS automatic frequency switching algorithm can effectively reduce interference and improve communication quality.

[0086] Through the above steps, in the 900M frequency band OBSS scenario of 802.11ah, we can effectively use the frequency switching threshold and the packet error rate threshold of transmitted data to determine whether to switch the frequency band, thereby reducing mutual interference and improving communication quality.

[0087] In some embodiments of the present application, the switching of the working frequency band of the source AP to the working frequency band of the target AP includes:

[0088] The AP sends a frequency band switching indication to at least one associated STA. The frequency band switching indication is used to instruct the source AP and at least one associated STA to switch the current first working frequency band to the second working frequency band of the target AP at the switching moment.

[0089] Once the source AP determines that it needs to switch to the operating frequency of the target AP, it generates a frequency-switching indication message. This message contains information about the target frequency for the switch, the time of the switch, and other parameters that may be required to ensure a smooth switching process. The source AP broadcasts this frequency-switching indication message to all STAs associated with it via the current operating channel. These STAs are devices that have previously established a connection with the source AP and are currently communicating.

[0090] The STA that receives the frequency-switching indication will parse the message content to obtain the target frequency for the switch and the time of the switch. The wireless communication module inside the STA will start preparing to switch to the new frequency, which may include adjusting the frequency settings of the wireless receiver, updating the internal state machine, and preparing to re-establish a connection with the source AP on the new frequency.

[0091] When the switching time arrives, the source AP and all associated STAs will synchronously switch to the target frequency. This process requires precise synchronization to ensure that there is no data loss or connection interruption during the switching process. After the switch is completed, the source AP and the STA will re-establish a connection on the new frequency and continue the previous communication session. In this way, the source AP can effectively avoid interference, improve communication quality, and at the same time ensure that the STAs associated with it can seamlessly transition to the new working environment.

[0092] For example, referring to Figure 2 the system architecture diagram shown, assume that there are two basic service sets (BSSs), denoted as BSS1 and BSS2 respectively. Each BSS contains an access point (AP) and a station (STA), that is, BSS1 contains AP1 and STA1, and BSS2 contains AP2 and STA2. The working frequency lists of BSS1 and BSS2 are the same, both containing two frequencies: f1 and f2. In the initial state, BSS1 operates on frequency f1, while BSS2 operates on frequency f2.

[0093] Both AP1 and AP2 are enabled with the overlapping basic service set (OBSS) function. After enabling this function, AP1 and AP2 will cyclically send broadcast packets in their respective working frequency lists (f1 and f2). These broadcast packets contain information about their current operating frequencies. For example, when AP1 sends a broadcast packet on frequency f2, it embeds the information about its operating frequency f1 in it. Similarly, AP2 will send broadcast packets containing information about its operating frequency f2 at an appropriate time.

[0094] When AP1 receives the broadcast packet from AP2 at frequency f1, it will parse out the signal strength of AP2 at f2 (denoted as rssi_ap2). Similarly, when AP2 receives the broadcast packet from AP1 at frequency f2, it will parse out the signal strength of AP1 at f1 (denoted as rssi_ap1).

[0095] Subsequently, AP1 and AP2 will calculate the difference in their signal strengths respectively. The value obtained by AP1 by performing rssi_ap1 - rssi_ap2 is denoted as oBSS1; the value obtained by AP2 by performing rssi_ap2 - rssi_ap1 is denoted as oBSS2.

[0096] During the data transmission process, AP1 and AP2 will respectively count their own transmission packet error rates (tx_per).

[0097] If the oBSS1 calculated by AP1 is less than the preset frequency switching threshold (denoted as obss_th), and its tx_per is greater than the preset transmission packet error rate threshold (denoted as tx_per_th), then AP1 will prepare to switch the operating frequency of BSS1 to f2. Similarly, if AP2 meets the same conditions (i.e., oBSS2 is less than obss_th and tx_per is greater than tx_per_th), then AP2 will prepare to switch the operating frequency of BSS2 to f1.

[0098] Before officially performing the frequency switching operation, AP1 will agree with STA1 to switch to frequency f2 together after the time of 10 beacon broadcast packets. Similarly, AP2 will also make a similar agreement with STA2 to switch to frequency f1 at an appropriate time point.

[0099] When a BSS completes the frequency switching operation, the two BSSs will continue to perform frequency switching evaluation based on obss_th and tx_per_th. This continuous evaluation mechanism can ensure the stability of data transmission and make timely adjustments according to changes in the wireless environment.

[0100] In summary, the beneficial effects of implementing the embodiments of the present application include:

[0101] When the source AP detects that the packet error rate of transmitted data at the current operating frequency band is higher than the preset threshold, it will automatically switch to the second operating frequency band of the target AP. This frequency band switching mechanism based on the actual network conditions helps to optimize network performance and reduce performance degradation caused by frequency band conflicts or interference. By switching the source AP to the same frequency band as the target AP, the source AP can effectively activate the CCA (Clear Channel Assessment) mechanism. This mechanism uses energy detection to determine whether the current frequency band is idle, thus avoiding sending data when the channel is busy and reducing conflicts with other devices. After the CCA mechanism determines that the frequency band is idle, multiple devices (including the source AP and the target AP) will randomly generate different backoff values through the EDCA (Enhanced Distributed Channel Access) mechanism. These values determine when the devices start sending data, thus achieving time division and avoiding interference caused by multiple devices sending packets at the same time. This mechanism not only improves the utilization efficiency of spectrum resources but also significantly reduces interference in the network.

[0102] The following is an embodiment of the apparatus of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the apparatus of the present application, please refer to the embodiment of the method of the present application.

[0103] Please refer to Figure 3 , which shows a schematic structural diagram of a frequency band switching device provided by an exemplary embodiment of the present application. This device can be implemented as all or part of a wireless access point through software, hardware, or a combination of both. The frequency band switching device 3 (abbreviated as device 3) includes: an enabling unit 301, a parsing unit 302, a calculating unit 303, a judging unit 304, a measuring unit 305, and a switching unit 306.

[0104] The enabling unit 301 is used to enable the OBSS function;

[0105] The parsing unit 302 is used to receive a broadcast data packet from the target AP on the first operating frequency band, and parse the broadcast data packet to obtain the second operating frequency band of the target AP and the signal strength of the target AP on the second operating frequency band; wherein, the target AP enables the OBSS function, and the target AP alternately sends broadcast data packets on multiple frequency bands corresponding to a preset frequency band list;

[0106] The calculating unit 303 is used to calculate the difference between the signal strength of the source AP on the first operating frequency band and the signal strength of the target AP on the second operating frequency band;

[0107] The judging unit 304 is used to judge whether the difference is less than the signal strength threshold;

[0108] A measurement unit 305, configured to, if the judgment result of the judgment unit is yes, continue to measure the packet error rate of the transmitted data on the first operating frequency point;

[0109] A switching unit 306, configured to, if the packet error rate of the transmitted data is greater than the packet error rate threshold, switch the first operating frequency point of the source AP to the second operating frequency point of the target AP.

[0110] In a possible implementation manner, the switching of the operating frequency point of the source AP to the operating frequency point of the target AP includes:

[0111] The AP sends a frequency point switching indication to at least one associated STA, and the frequency point switching indication is used to instruct the source AP and at least one associated STA to switch the current first operating frequency point to the second operating frequency point of the target AP at the switching moment.

[0112] In a possible implementation manner, the signal strength threshold is -30 dB, and the packet error rate threshold is 30%.

[0113] In a possible implementation manner, it further includes:

[0114] A control unit, configured to, if the difference is greater than or equal to the signal strength threshold, or the data packet error rate is less than or equal to the packet error rate threshold, the source AP keeps the current first operating frequency point unchanged.

[0115] In a possible implementation manner, the parsing the broadcast data packet to obtain the second operating frequency point of the target AP and the signal strength of the target AP on the second operating frequency point includes:

[0116] Parsing the packet header of the broadcast data packet to obtain the current second operating frequency point of the target AP, and measuring the broadcast data packet to obtain the signal strength of the target AP on the second operating frequency point.

[0117] In a possible implementation manner, the source AP continues to measure the packet error rate of the transmitted data on the first operating frequency point, including:

[0118] The source AP sends a specified number of data packets to the associated STA within a preset duration;

[0119] The source AP records the ACK feedback of each transmitted data packet, and by counting the total number of transmitted data packets and the number of received ACK messages, obtains a percentage of the received ACKs in the total number of data packets, and calculates the transmission packet error rate using 1 - the percentage.

[0120] In a possible implementation manner, the source AP enables the OBSS function, including:

[0121] Receive a login request sent by the user through the APP of the mobile terminal;

[0122] After verifying that the user identity is passed based on the login request, receive an opening instruction from the user, and enable the OBSS function in response to the opening instruction.

[0123] It should be noted that when the device 3 provided in the above embodiment executes the frequency point switching method, only the division of the above functional modules is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the frequency point switching device provided in the above embodiment and the embodiment of the frequency point switching method belong to the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.

[0124] The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0125] The embodiment of the present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor to perform the method steps of the embodiments as described above Figure 2 The specific execution process can be referred to Figure 2 the specific description of the embodiments as shown, and will not be repeated here.

[0126] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the frequency point switching method described in each of the above embodiments.

[0127] Please refer to Figure 4 which is a schematic structural diagram of a wireless access point provided by the embodiment of the present application. As Figure 4 shown, the wireless access point 400 may include: at least one processor 401, a communication interface 403, a memory 404, at least one communication bus 402, a WiFi4 controller, and a BLE controller ( Figure 4 not drawn in the figure).

[0128] Among them, the communication bus 402 is used to realize the connection and communication between these components. The WiFi4 controller, the BLE controller, the processor, and the memory are respectively connected to the communication bus.

[0129] Among them, the communication interface 403 includes a 2.4G radio frequency module, which can transmit data packets of the WiFi protocol and data packets of the Bluetooth protocol.

[0130] Among them, the processor 401 may include one or more processing cores. The processor 401 connects various parts within the entire wireless access point 400 through various interfaces and lines, and executes various functions of the wireless access point 400 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 404, and by calling the data stored in the memory 404.

[0131] Among them, the memory 404 may include a random access memory (RAM), and may also include a read-only memory (ROM). Optionally, the memory 404 includes a non-transitory computer-readable storage medium. The memory 404 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 404 may include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area can store the data involved in the above-mentioned method embodiments. Optionally, the memory 404 may also be at least one storage device located far from the aforementioned processor 401. As Figure 4 shown, the memory 404, as a computer storage medium, may include an operating system, a network communication module, and application programs.

[0132] In Figure 4 the wireless access point 400 shown, the processor 401 may be used to call the application programs stored in the memory 404 and specifically execute the method as Figure 2 shown. The specific process can be referred to Figure 2 shown, and will not be elaborated here.

[0133] Those of ordinary skill in the art can understand that all or part of the processes of implementing the above method embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the above method embodiments. Among them, the storage medium may be a magnetic disk, an optical disk, a read-only memory, or a random access memory, etc.

[0134] The above-disclosed is only a preferred embodiment of the present application. Of course, the scope of rights of the present application cannot be limited by this. Those of ordinary skill in the art can understand all or part of the processes of implementing the above embodiments and the equivalent changes made according to the claims of the present application still fall within the scope covered by the invention.

Claims

1. A frequency switching method, characterized in that: include: Enable the OBSS function on the source AP; The source AP receives a broadcast data packet from a target AP at a first working frequency, and parses the broadcast data packet to obtain a second working frequency of the target AP and a signal strength of the target AP at the second working frequency; wherein the target AP turns on the OBSS function, and the target AP sends broadcast data packets in turn at multiple frequencies corresponding to a preset frequency list; Calculate the difference between the signal strength of the source AP at the first operating frequency and the signal strength of the target AP at the second operating frequency; The source AP determines whether the difference is less than a signal strength threshold; If yes, the source AP continues to measure the packet error rate of the transmitted data at the first working frequency point; If the packet error rate of the sent data is greater than a packet error rate threshold, the first operating frequency of the source AP is switched to the second operating frequency of the target AP.

2. The method according to claim 1, characterized in that The switching the operating frequency of the source AP to the operating frequency of the target AP includes: The AP sends a frequency switching indication to at least one associated STA, where the frequency switching indication is used to instruct the source AP and at least one associated STA to switch the current first working frequency to the second working frequency of the target AP at the switching moment.

3. The method according to claim 1 or 2, characterized in that: The signal strength threshold is -30 dB, and the packet error rate threshold is 30%.

4. The method according to claim 3, characterized in that Also includes: If the difference is greater than or equal to the signal strength threshold, or the data packet error rate is less than or equal to the packet error rate threshold, the source AP maintains the current first operating frequency unchanged.

5. The method according to claim 1, 2 or 4, characterized in that: The parsing the broadcast data packet to obtain the second operating frequency of the target AP and the signal strength of the target AP at the second operating frequency includes: The packet header of the broadcast data packet is parsed to obtain the current second operating frequency of the target AP, and the signal strength of the target AP at the second operating frequency is measured by measuring the broadcast data packet.

6. The method according to claim 5, characterized in that The source AP continues to measure a packet error rate of sent data at the first working frequency point, including: The source AP sends a specified number of data packets to the associated STAs within a preset time period; The source AP records the ACK feedback of each data packet sent, and obtains the percentage of received ACKs to the total number of data packets by counting the total number of data packets sent and the number of ACK messages received, and calculates the packet error rate using 1-percentage.

7. The method according to claim 1 or 2 or 4 or 6, characterized in that: The source AP enables the OBSS function, including: Receiving a login request sent by a user through an APP on a mobile terminal; After the user identity is verified based on the login request, an activation instruction from the user is received, and the OBSS function is activated in response to the activation instruction.

8. A frequency switching device, characterized in that: include: An enabling unit is used to enable the OBSS function; A parsing unit, configured to receive a broadcast data packet from a target AP at a first working frequency, and parse the broadcast data packet to obtain a second working frequency of the target AP and a signal strength of the target AP at the second working frequency; wherein the target AP turns on the OBSS function, and the target AP sends broadcast data packets in turn at multiple frequency points corresponding to a preset frequency point list; a calculation unit, configured to calculate a difference between a signal strength of the source AP at the first operating frequency and a signal strength of the target AP at the second operating frequency; A judging unit, used to judge whether the difference is less than a signal strength threshold; a measuring unit, configured to continue measuring a packet error rate of transmitted data at the first operating frequency point if the determination result of the determination unit is yes; A switching unit is used to switch the first operating frequency of the source AP to the second operating frequency of the target AP if the packet error rate of the sent data is greater than a packet error rate threshold.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.

10. A wireless access point, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.