Signal detection method, site device based on WiFi and communication system
By scanning multiple channels in parallel and combining signal power detection, the target channel is dynamically adjusted, solving the problems of long channel scanning time and low accuracy, and achieving efficient and stable WiFi connection.
Patent Information
- Application Number
- CN202511760749.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-27
- Publication Date
- 2026-02-06
AI Technical Summary
In wireless networks, channel scanning takes too long and is susceptible to interference, which leads to a decrease in scanning accuracy and affects the device's network access speed and roaming experience.
Parallel scanning of multiple channels, combined with signal power detection, dynamically adjusts the target channel to ensure optimal signal quality, and parses the target WiFi packet through the media access control layer.
It improves channel scanning efficiency, shortens scanning time, ensures the stability and accuracy of WiFi connection, avoids frequent switching of access points, and enhances device performance.
Smart Images

Figure CN121486920A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of communication interaction, in particular to a signal detection method, a WiFi-based station device, a WiFi-based communication system, and a computer readable storage medium. BACKGROUND
[0002] With the rapid development of wireless network technology, as a mainstream wireless access method, users have increasingly high requirements for the connection speed of WiFi networks. Channel scanning, as a key link for WiFi devices to implement network discovery, access and switching, directly affects the experience of the entire wireless network. Especially with the increasing number of frequency bands supported by WiFi, such as but not limited to 5G frequency bands, 6G frequency bands, etc., the number of channels is also increasing, and accordingly the total time cost of scanning channels is increasing, resulting in high cost of scanning time.
[0003] Due to the existence of a large number of WiFi devices, Bluetooth devices, microwave ovens and other interference sources in the wireless environment, the quality of the channel (such as signal strength, noise level, and interference level) will change dynamically in real time, thereby affecting the accuracy of channel selection. SUMMARY
[0004] To overcome the problems in the related art, an exemplary embodiment of the present disclosure provides a signal detection method applied to a WiFi-based station device, the method comprising: determining a target channel based on the results of multi-channel scanning; analyzing signals in the target channel, and detecting the current signal power of the target channel during the analysis process; in response to a change in the current signal power being greater than a preset threshold, re-determining the target channel and analyzing the signals in the re-determined target channel; in response to the change in the current signal power being less than or equal to the preset threshold, continuing to analyze the signals in the target channel; and obtaining a target WiFi packet based on the analysis results.
[0005] In some embodiments, in response to the change in the current signal power being greater than the preset threshold, re-determining the target channel comprises: obtaining a historical signal power of the target channel; determining the change in the current signal power according to the difference between the current signal power and the historical signal power; and re-determining the target channel in response to the change in the current signal power being greater than the preset threshold.
[0006] In some embodiments, re-determining the target channel comprises: stopping analyzing the signals in the target channel; and re-determining the target channel based on the frequency band type of the target channel.
[0007] In some embodiments, the re-determining the target channel based on the frequency band type of the target channel comprises: in response to the frequency band type of the target channel being a first type, re-determining the current channel as the target channel; and / or, in response to the frequency band type of the target channel being a second type, re-scanning the multiple channels to determine the re-determined target channel.
[0008] In some embodiments, the parsing the signal in the re-determined target channel when the target channel is not changed comprises: re-synchronizing the target channel to obtain a synchronization result; and in response to the synchronization result indicating that the target channel has the latest signal, parsing the latest signal in the target channel.
[0009] In some embodiments, the determining the target channel based on the result of the scanning of the multiple channels comprises: scanning the multiple channels in parallel to obtain a data stream of each channel; detecting the data stream of each channel respectively to obtain a detection result of each channel; and determining the target channel based on the detection result.
[0010] In some embodiments, the obtaining the target WiFi packet based on the parsing result comprises: parsing the parsing result through a media access control layer; in response to the parsing being successful, obtaining the target WiFi packet; and in response to the parsing being failed, re-executing the step of determining the target channel based on the result of the scanning of the multiple channels.
[0011] In a second aspect, the present disclosure further provides a WiFi-based station device, comprising: a scanning module configured to determine a target channel based on a result of scanning of multiple channels; a detection module configured to parse a signal in the target channel and detect a current signal power of the target channel during the parsing; a first processing module configured to, in response to a change of the current signal power being greater than a preset threshold, re-determine the target channel and parse a signal in the re-determined target channel; a second processing module configured to, in response to the change of the current signal power being less than or equal to the preset threshold, continue to parse the signal in the target channel; and a third processing module configured to obtain a target WiFi packet based on a parsing result.
[0012] In a third aspect, the present disclosure further provides a WiFi-based communication system, comprising: at least one WiFi access point configured to transmit a WiFi signal through a channel; and a WiFi-based station device configured to execute a target WiFi packet obtained by the signal detection method provided in any one of the above aspects to interact with a target WiFi access point corresponding to a target channel, wherein the target WiFi access point is one of the at least one WiFi access point, and the target channel is a channel for transmitting the target WiFi packet.
[0013] In a fourth aspect, the present disclosure further provides a computer-readable storage medium storing a program for executing the signal detection method provided in any one of the above aspects.
[0014] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory and are not restrictive of the disclosure.
[0015] The technical scheme provided by the embodiments of the disclosure can have the following beneficial effects: according to the signal detection method provided by the disclosure, the multiple channels are screened in the parallel scanning manner, which can improve the efficiency of single channel scanning, shorten the overall scanning time, and improve the scanning efficiency. Moreover, in the process of analyzing the signal in the target channel, by detecting the signal power change of the target channel, it can be determined whether a channel with better signal quality appears before connecting the target WiFi access point corresponding to the target channel, so as to select a channel with relatively optimal signal quality as the target channel, and determine the target WiFi packet based on the analysis result of the signal of the relatively optimal target channel, so that the station device can determine the target access point to be connected, guarantee the stability and accuracy of the WiFi connection, thereby effectively avoiding the situation that the WiFi access point is switched due to missed detection, and helping to improve the device performance. BRIEF DESCRIPTION OF DRAWINGS
[0016] The disclosure can be better understood by describing the exemplary embodiments of the disclosure in conjunction with the accompanying drawings, in which:
[0017] Figure 1 is a schematic diagram of an architecture of a wireless communication system according to an exemplary embodiment of the disclosure;
[0018] Figure 2 is a flowchart of a signal detection method according to an exemplary embodiment of the disclosure;
[0019] Figure 3 is a schematic diagram of a frequency band division according to an exemplary embodiment of the disclosure;
[0020] Figure 4 is a schematic diagram of another frequency band division according to an exemplary embodiment of the disclosure;
[0021] Figure 5 is a flowchart of a signal processing method according to an exemplary embodiment of the disclosure;
[0022] Figure 6 is a flowchart of another signal processing method according to an exemplary embodiment of the disclosure;
[0023] Figure 7 is a schematic diagram of a framework of a WiFi-based station device according to an exemplary embodiment of the disclosure. DETAILED DESCRIPTION
[0024] The specific implementations of the present disclosure will be described below, it should be noted that in the specific description of these implementations, in order to make a brief and concise description, the present specification cannot make a detailed description of all the features of the actual implementation. It should be understood that in the actual implementation of any one of the embodiments, as in the process of any engineering or design project, in order to achieve the specific goals of the developer, in order to meet the system related or business related restrictions, various specific decisions are often made, and these decisions also change from one embodiment to another. In addition, it can be understood that although the efforts made in this development process can be complex and lengthy, some design, manufacturing or production changes based on the technical content disclosed in the present disclosure should be understood as routine technical means for those skilled in the art related to the disclosed content of the present disclosure, and should not be understood as insufficient disclosure of the present disclosure.
[0025] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood as the usual meaning understood by those skilled in the art to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not represent any order, quantity or importance, but are used to distinguish different components. "One" or "a" and similar words do not represent a quantity limit, but represent the existence of at least one. "Include" or "contain" and similar words mean that the elements or objects appearing before "include" or "contain" cover the elements or objects listed after "include" or "contain" and their equivalent elements, and do not exclude other elements or objects. "Connected" or "connected" and similar words are not limited to physical or mechanical connection, nor are they direct or indirect connection.
[0026] As shown in Figure 1 The WiFi-based wireless communication system can include one or more access points (AP) and one or more station (STA) devices, which together constitute all WiFi network structures.
[0027] Among them, the AP is the center and creator of the wireless network, and the functions can include but are not limited to: broadcasting the wireless network name (SSID), providing network access for connected STA devices, and forwarding data between STA devices and wired networks (usually the Internet). The STA device is the user and client of the wireless network, and the functions can include but are not limited to: scanning and discovering surrounding AP signals, initiating connection authentication requests to APs, and sending and receiving data through APs.
[0028] In related technologies, STA devices can scan all channels sequentially, one by one, or in parallel. When there are many channels, sequential scanning is time-consuming and prone to missing effective signal windows during periods of high-frequency interference, leading to missed detections. While simple parallel scanning improves efficiency, simultaneous reception of multiple channel signals can cause intermodulation interference, reducing scanning accuracy. Especially in high-density scenarios, where dozens of APs may exist in a single area with channel occupancy exceeding 80%, the success rate of traditional scanning methods is often below 60%, frequently resulting in "scan timeout" and "missed channel detection" issues, severely impacting network access speed and roaming experience.
[0029] To address the aforementioned problems, this disclosure provides a signal detection method for WiFi-based site equipment. For example... Figure 2 As shown, the signal detection method may include the following steps:
[0030] Step S110: Determine the target channel based on the results of multi-channel scanning.
[0031] To improve scanning efficiency and save channel scanning time, channels within the same WiFi frequency band are scanned in parallel, and the target channel is determined based on the scanning results. The target channel can be considered as the channel currently transmitting the WiFi signal sent by the WiFi access point among multiple channels.
[0032] The number of channels in a single parallel scan can be determined based on the current WiFi frequency band, the representative bandwidth of a single channel, and the maximum signal bandwidth supported by the site equipment for the current frequency band. For example, taking the current WiFi frequency band as 2.4 GHz as an example, its frequency band diagram can be shown as follows: Figure 3 As shown in the diagram. In the 2.4G WiFi channel, except for channel 14, the interval between any two adjacent channels is 5M, resulting in a high overlap rate between channels. This leads to severe energy leakage between adjacent channels. This means that when a WiFi signal is detected on one channel and signal analysis begins, a signal from a neighboring channel (5M apart), a second neighboring channel (10M apart), or a third neighboring channel (15M apart) starts transmitting, leaking energy into the current channel and preventing it from receiving signals normally. If the signal leaked into the current channel is also a WiFi signal, because the current channel is constantly occupying hardware resources, the WiFi signal on the neighboring channel also cannot be received, meaning that scanning on both channels is unsuccessful. Therefore, to improve scanning efficiency and alleviate redundant scanning of channels in overlapping frequency ranges, if the maximum signal bandwidth supported by a single site device in the 2.4G band is 40M, then a maximum of 5 20M signals can be scanned to improve scanning speed. Alternatively, taking the current WiFi band as 5G as an example, its frequency band diagram can be shown as follows.Figure 4 As shown. The 5G frequency band can be divided into 60 channels, with a total of 60 channels ranging from 5160MHz to 5865MHz (some not shown). The 5G frequency band can support representative bandwidths of 20MHz, 40MHz, 80MHz, etc.; if it supports an 80MHz+80MHz operating mode, the representative bandwidth can be increased to 160MHz, or even 320MHz. The 80MHz+80MHz channel bonding can be continuous or non-contiguous. Taking a single channel's representative bandwidth as 20MHz, if the site equipment supports a maximum 5G signal bandwidth of 40MHz, then 2 channels can be scanned in parallel at once; if the site equipment supports a maximum 5G signal bandwidth of 80MHz, then 4 channels can be scanned in parallel at once; if the site equipment supports a maximum 5G signal bandwidth of 160MHz, then 8 channels can be scanned in parallel at once, and so on. Theoretically, the maximum number of channels that can be scanned in parallel is 16, but in actual use, N=2~16 can be selected depending on the specific situation.
[0033] Step S120: Analyze the signal in the target channel, and during the analysis process, detect the current signal power of the target channel.
[0034] To obtain the WiFi packets transmitted in the target channel, the signals in the target channel are analyzed to determine the target WiFi packets sent by the WiFi access point to be interacted with based on the analysis results.
[0035] Because WiFi access points transmit WiFi signals at relatively random times, and the location of site devices can be variable, the signal power of the target channel may change at different times. The signal power of a channel can be used to evaluate its quality. For example, a high signal power value indicates relatively high channel quality, resulting in a more stable and interference-resistant connection between the site device and the WiFi access point. Conversely, a low signal power value indicates relatively low channel quality, leading to a poorer connection and a higher likelihood of disconnection.
[0036] When a WiFi-based site device connects to an access point, the site device selects the access point corresponding to the channel with the strongest signal power to ensure connection stability. Therefore, to ensure the accuracy and reliability of channel selection, the current signal power of the target channel is detected during the parsing process. Based on the detected current signal power, it is determined whether a channel with better quality exists during the parsing process, thus ensuring scanning accuracy.
[0037] In step S130, in response to the change in the current signal power being greater than a preset threshold, the target channel is redefined, and the signal in the redefined target channel is parsed.
[0038] The preset threshold is the maximum value within which the change in current signal power is considered a normal fluctuation. When the change in current signal power exceeds the preset threshold, it indicates a change in the signal strength of the target channel. This sudden change in signal power could be due to interference from other channels transmitting WiFi signals, or it could be due to a stronger WiFi signal being input to the target channel. Therefore, to ensure the reliability of access point selection, the target channel is redefined, and the signal in the redefined target channel is analyzed to avoid frequent access point switching and ensure connection stability.
[0039] Step S140: In response to the change in current signal power being less than or equal to a preset threshold, continue parsing the signal in the target channel.
[0040] If the change in current signal power is less than or equal to a preset threshold, it indicates that the signal in the target channel is experiencing normal fluctuations. Therefore, the signal of the target signal can continue to be analyzed.
[0041] Step S150: Based on the parsing results, obtain the target WiFi packet.
[0042] By parsing the signal in the target channel or the signal in the redefined target channel, the original data bit stream of the signal can be restored, and the parsing result of the signal can be obtained. By analyzing the parsing result, the target WiFi packet can be obtained, so that the relevant information of the corresponding target WiFi access point can be determined through the target WiFi packet, thereby ensuring the accuracy of WiFi connection.
[0043] According to the signal detection method provided in this disclosure, multiple channels are filtered through parallel scanning, which can improve the efficiency of a single channel scan, shorten the overall scanning time, and improve scanning efficiency. Furthermore, when a target channel is determined, during the analysis of the signal in the target channel, by detecting changes in the signal power of the target channel, it is possible to promptly determine whether a channel with better signal quality appears before connecting to the target WiFi access point corresponding to that target channel. The channel with the relatively best signal quality is then selected as the target channel. Based on the analysis results of the signal of the relatively best target channel, the target WiFi packet is determined, enabling the site equipment to clearly identify the target access point to connect to, ensuring the stability and accuracy of the WiFi connection. This effectively avoids missed detections that could lead to switching WiFi access points, thus contributing to improved device performance.
[0044] In some embodiments, step S130 above may include the following steps:
[0045] Step a1: Obtain the historical signal power of the target channel.
[0046] To determine whether the signal of the target channel has changed, the historical signal power of the target channel is acquired as a reference for judging whether there is a new signal input to the target channel. This historical signal power can be recorded during historical detection. New signal input can be interference noise generated by signal energy leakage from other channels into the target channel, newly input WiFi signals, or ordinary noise.
[0047] In some embodiments, the method for obtaining historical signal power may include:
[0048] Step a11: Determine the historical reference time based on the specified time step and the current time;
[0049] Step a12: Use the signal power of the channel at the historical reference time as the historical signal power.
[0050] Specifically, to better detect changes in the signal power of the target channel and avoid over-detection or under-detection, a historical reference time is determined based on a pre-configured specified time step and the current time at which the signal power is determined. That is, historical reference time = current time - specified time step. For example, the specified time step can be 1 μs, 10 μs, or other values, and the specific value can be determined based on requirements or experience.
[0051] Based on the historical reference time, the signal power of the target channel at the historical reference time is taken as the historical signal power. The historical signal power is used as a standard to measure whether the change in signal power is caused by signal transmission.
[0052] By dynamically determining historical reference times and using the signal power at those times as a benchmark, we can better observe changes in signal power and effectively reduce the impact of interference noise.
[0053] Step a2: Determine the change in current signal power based on the difference between current signal power and historical signal power.
[0054] Based on the difference between the current signal power and the historical signal power, it can be determined whether the current signal power has increased, decreased, or remained unchanged compared to the historical signal power, thus allowing for the prediction of whether the change in current power is a normal or abnormal change.
[0055] Step a3: In response to the change in current signal power exceeding a preset threshold, the target channel is redefined.
[0056] If the change in current signal power exceeds a preset threshold, it indicates an abnormal and drastic change, suggesting interference from a signal with better signal quality. Therefore, to ensure the reliability of access point selection, the target channel is redefined to guarantee the effectiveness of signal analysis and improve channel scanning accuracy.
[0057] In some embodiments, the process of redetermining the target channel includes:
[0058] Step b1: Stop parsing signals in the target channel;
[0059] Step b2: Based on the frequency band type of the target channel, redetermine the target channel.
[0060] If a signal of better quality is found, the current signal in the target channel can be considered invalid. Therefore, to save resources, the parsing of the signal in the target channel can be stopped to avoid invalid parsing.
[0061] To improve scanning efficiency, the target channel is redefined based on its frequency band type. This redefined process conforms to the distribution characteristics of the corresponding frequency band type, allowing for timely determination of the required target channel, shortening connection establishment time, and avoiding or reducing the probability of scanning timeouts.
[0062] In some examples, step b2 above may include: re-identifying the current channel as the target channel in response to the target channel's frequency band type being a first type. A first-type frequency band can be considered a frequency band where channels do not overlap during signal transmission. For example, a first-type frequency band could be a 5G, 6G, or higher frequency band. Since these channels do not interfere with each other during signal transmission, the sudden increase in signal power on this channel could be attributed to the entry of a higher-quality WiFi signal. Therefore, the current channel can be re-identified as the target channel so that the latest signal in that target channel can be analyzed subsequently.
[0063] In other examples, step b2 above may include: rescanning the multiplexed channels in response to the target channel's frequency band type being a second type, and determining the re-determined target channel. The second type of frequency band can be considered as a frequency band where channels overlap during signal transmission. For example, the second type of frequency band could be 2.4 GHz or other relatively low frequency bands. Figure 3As shown, since the channel spacing is only 5M, there is overlap between adjacent channels. The sudden increase in signal power in this channel could be due to the presence of higher-quality WiFi signals in other channels, or the entry of a higher-quality WiFi signal into this channel. Therefore, to ensure the accuracy of target channel determination, multiple channels are rescanned to determine the newly identified target channel, thus avoiding missed detections.
[0064] In some other examples, the target channel determination process described above is performed based on the frequency band type supported by the WiFi-based site equipment. The communication specifications of the site equipment may support single-band, dual-band, tri-band, or more frequency bands, depending on the WiFi chip deployed within it. This WiFi chip may include one or more of the following frequency band WiFi modules: 2.4GHz WiFi module, 5GHz WiFi module, 6GHz WiFi module, or other frequency band WiFi modules. During the process of re-determining the target channel, if the WiFi chip deployed within the site equipment includes a 5GHz WiFi module, a 6GHz WiFi module, or other non-2.4GHz WiFi modules, the current channel can be directly used as the re-determined target channel; if the site equipment only includes a 2.4GHz WiFi module, multiple channels can be rescanned to determine the re-determined target channel. If the WiFi chip deployed inside the site equipment includes multiple frequency band WiFi modules, the target channel can be determined by using the corresponding processing method according to the frequency band type of the current channel, so as to ensure the efficiency of target channel determination, shorten the time of re-determination, and thus help to shorten the overall scanning time.
[0065] In some embodiments, parsing the signal in the redefined target channel when the target channel remains unchanged may include:
[0066] Step c1: Resynchronize the target channel to obtain the synchronization result;
[0067] Step c2: In response to the synchronization result indicating the presence of a new signal in the target channel, analyze the newest signal in the target channel.
[0068] To ensure connection reliability, the target channel undergoes another synchronization process to assess the real-time quality of the current link and obtain a synchronization result. Since the synchronization result indicates the presence of the latest signal on the target channel, it can be considered a healthy link. The site equipment can then provide resources to parse the latest signal in the target channel, thereby ensuring the success rate of subsequent interactions.
[0069] In some embodiments, step S110 above may include the following steps:
[0070] Step d1: Scan multiple channels in parallel to obtain the data stream of each channel;
[0071] Step d2: Detect the data stream of each channel and obtain the detection result of each channel;
[0072] Step d3: Based on the detection results, determine the target channel.
[0073] Specifically, multiple signals are scanned in parallel simultaneously, and the center frequency of each channel is determined based on the scan results. This center frequency is the dominant frequency of the transmitted signal in the corresponding channel. In some examples, this center frequency can be obtained directly. In other examples, it can be determined by analyzing the signal spectrum.
[0074] The center frequency of each channel is shifted to zero frequency to simplify signal processing and facilitate subsequent analysis. To ensure signal anti-interference capability, the signal shifted to zero frequency is filtered to remove out-of-band interference, thereby obtaining the data stream of each channel for subsequent data processing and transmission.
[0075] In some examples, after the filtering process is completed, the filtering result can be downsampled to reduce the amount of data while ensuring the integrity of the data stream.
[0076] The data stream of each channel is detected separately. Based on the information in the data stream, it is determined whether the signal transmitted on each channel includes a WiFi signal sent by the WiFi access point, thus obtaining the detection result for each channel. This detection result can characterize whether the signal within the corresponding channel is a WiFi signal, and if so, the signal quality of that WiFi signal.
[0077] Based on the detection results of each channel, the channel with the best signal quality is selected as the target channel to ensure the reliability and stability of the connection.
[0078] In some other embodiments, step S150 above may include the following steps:
[0079] Step e1: The parsing result is resolved through the media access control layer;
[0080] Step e2: In response to successful parsing, the target WiFi packet is obtained;
[0081] In step e3, in response to the parsing failure, step S110 is re-executed to determine the target channel based on the results of the multi-channel scan.
[0082] Specifically, the parsing result can be considered as the result of the Physical Layer (PHY) parsing the signal in the target channel or the signal in the redefined target channel. To determine the target WiFi access point, the Media Access Control Layer (MAC) further parses the parsing result output by the Physical Layer.
[0083] If the parsing is successful, it indicates that the parsed packet information meets the requirements. Then, the target WiFi packet is obtained based on the output of the MAC layer, so that the relevant information of the corresponding target WiFi access point can be determined through the target WiFi packet to ensure the accuracy of the WiFi connection.
[0084] If the parsing fails, it indicates that the parsed packet information does not meet the requirements and the signal in the target channel may be a faulty signal. Therefore, step S110 needs to be re-executed to determine the target channel based on the results of the multi-channel scan, so as to re-determine the target WiFi access point to be connected.
[0085] In some optional application scenarios, WiFi-based site equipment includes multiple frequency shifting units, filters, channel detection modules, physical layer signal parsing modules, Package on Package (POP) detection modules, and media access control layer signal parsing modules. The POP module is used during signal parsing to determine whether the target channel needs to be redefined based on the current signal power of the target channel.
[0086] Taking a 2.4GHz WiFi network as an example, the signal detection process of WiFi-based site equipment can be as follows: Figure 5 As shown, the process specifically includes: synchronously scanning multiple channels to determine the center frequency of each channel. For each channel, the center frequency is shifted to zero using a corresponding frequency shifting unit and then filtered using a corresponding filter to obtain the data stream for each channel. A channel detection module detects the data streams of each channel to determine the target channel from the multiple channels. While the channel detection module sends the signal from the target channel to the physical layer signal parsing module for signal parsing, the POP detection module monitors the current signal power of the target channel in real time. If the difference between the current signal power and the historical signal power of the target channel exceeds a preset threshold, the parsing of the signal in the target channel is stopped, and multiple channels are rescanned to determine a new target channel through the channel detection module. This new target channel is then sequentially parsed by the physical layer signal parsing module and the media access control layer signal parsing module to obtain the target WiFi packet. If the media access control layer parsing fails, multiple channels are rescanned until the target WiFi packet is obtained.
[0087] Taking a 5G band WiFi network as an example, the process of signal detection by WiFi-based site equipment can be as follows: Figure 6 As shown, the process specifically includes: synchronously scanning multiple channels to determine the center frequency of each channel. For each channel, the center frequency is shifted to zero using a corresponding frequency shifting unit and filtered using a corresponding filter to obtain the data stream of each channel. The channel detection module detects the data stream of each channel to determine the target channel from multiple channels. While the channel detection module sends the signal from the target channel to the physical layer signal parsing module for signal parsing, the POP detection module monitors the current signal power of the target channel in real time. If the difference between the current signal power and the historical signal power of the target channel exceeds a preset threshold, the parsing of the signal in the target channel is stopped. The target channel is resynchronized to obtain the latest signal, and then parsed sequentially by the physical layer signal parsing module and the media access control layer signal parsing module to obtain the target WiFi packet. If the media access control layer parsing fails, multiple channels are scanned again until the target WiFi packet is obtained.
[0088] Based on the same inventive concept, this disclosure also provides a WiFi-based site device. For example... Figure 7 As shown, the WiFi-based site device 200 may include:
[0089] Scanning module 210 is used to determine the target channel based on the results of scanning multiple channels;
[0090] The detection module 220 is used to analyze the signal in the target channel and detect the current signal power of the target channel during the analysis process;
[0091] The first processing module 230 is used to respond to the change in the current signal power being greater than a preset threshold, redetermine the target channel, and parse the signal in the redetermined target channel;
[0092] The second processing module 240 is used to continue parsing the signal in the target channel in response to the change in the current signal power being less than or equal to a preset threshold.
[0093] The third processing module 250 is used to obtain the target WiFi packet based on the parsing results.
[0094] In some embodiments, the first processing module 230 includes: an acquisition unit for acquiring historical signal power of a target channel; a first determination unit for determining a change in current signal power based on the difference between current signal power and historical signal power; and a first processing unit for re-determining the target channel in response to a change in current signal power greater than a preset threshold.
[0095] In some embodiments, the first processing unit includes: a first execution unit for stopping the parsing of signals in the target channel; and a second execution unit for redetermining the target channel based on the frequency band type of the target channel.
[0096] In some embodiments, the second execution unit includes: re-determining the current channel as the target channel in response to the target channel's frequency band type being a first type; and / or, re-scanning multiple channels in response to the target channel's frequency band type being a second type, and determining the re-determined target channel.
[0097] In some embodiments, the target channel remains unchanged, and the first processing module includes: a second processing unit for resynchronizing the target channel to obtain a synchronization result; and a first parsing unit for parsing the latest signal in the target channel in response to the synchronization result indicating that the target channel has a latest signal.
[0098] In some embodiments, the scanning module 210 includes: a third processing unit for parallel scanning of multiple channels to obtain the data stream of each channel; a signal detection unit for detecting the data stream of each channel to obtain the detection result of each channel; and a filtering unit for determining the target channel based on the detection result.
[0099] In some embodiments, the third processing module 250 includes: a second parsing unit, configured to parse the parsing result through the media access control layer; a third execution unit, configured to obtain the target WiFi packet in response to successful parsing; and a fourth execution unit, configured to re-execute the step of determining the target channel based on the result of multi-channel scanning in response to parsing failure.
[0100] Regarding the WiFi-based site device in the above embodiments, the specific methods by which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0101] Based on the same inventive concept, this disclosure also provides a WiFi-based communication system, including: at least one WiFi access point for transmitting WiFi signals through a channel; and a WiFi-based site device for executing a target WiFi packet obtained by any of the signal detection methods provided in this disclosure to interact with a target WiFi access point corresponding to a target channel, wherein the target WiFi access point is one of at least one WiFi access point, and the target channel is a channel for transmitting the target WiFi packet.
[0102] Based on the same inventive concept, this disclosure also provides a computer-readable storage medium storing a program for performing the device interaction method of any of the foregoing embodiments.
[0103] This disclosure uses specific terms to describe embodiments of the present disclosure. Terms such as "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of the present disclosure. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Furthermore, certain features, structures, or characteristics in one or more embodiments of the present disclosure can be appropriately combined.
[0104] In the context of this disclosure, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" do not specifically refer to the singular and may also include the plural. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of expressly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
[0105] Similarly, it should be noted that, in order to simplify the description of this disclosure and thus aid in the understanding of one or more embodiments, the foregoing description of embodiments of this disclosure may sometimes combine multiple features into a single embodiment, drawing, or description thereof. However, this disclosure method does not imply that the subject matter of this disclosure requires more features than the features claimed. In fact, the embodiments contain fewer features than all the features of the single embodiments disclosed above.
[0106] The basic concepts have been described above. It is obvious that the above disclosure is merely illustrative and does not constitute a limitation of this disclosure. Although not explicitly stated herein, various modifications, improvements, and corrections may be made to this disclosure by those skilled in the art. Such modifications, improvements, and corrections are suggested in this disclosure and therefore remain within the spirit and scope of the embodiments of this disclosure.
Claims
1. A signal detection method, applied to a WiFi-based site device, the method comprising: The target channel is determined based on the results of multi-channel scanning; Analyze the signal in the target channel, and during the analysis process, detect the current signal power of the target channel; In response to the change in the current signal power exceeding a preset threshold, the target channel is redefined, and the signal in the redefined target channel is parsed. In response to the change in the current signal power being less than or equal to the preset threshold, the signal in the target channel continues to be analyzed; Based on the analysis results, the target WiFi packet is obtained.
2. The signal detection method according to claim 1, wherein, The step of re-determining the target channel in response to a change in the current signal power exceeding a preset threshold includes: Obtain the historical signal power of the target channel; The change in the current signal power is determined based on the difference between the current signal power and the historical signal power; The target channel is redefined in response to a change in the current signal power that exceeds a preset threshold.
3. The signal detection method according to claim 2, wherein, The re-determining of the target channel includes: Stop parsing the signals in the target channel; The target channel is redefined based on its frequency band type.
4. The signal detection method according to claim 3, wherein, The step of redetermining the target channel based on the frequency band type of the target channel includes: In response to the target channel's frequency band type being a first type, the current channel is redefined as the target channel; and / or, In response to the target channel's frequency band type being the second type, the multiple channels are rescanned to determine the newly determined target channel.
5. The signal detection method according to claim 4, wherein, The target channel remains unchanged, and the signals in the target channel that are re-determined through parsing include: Resynchronize the target channel to obtain the synchronization result; In response to the synchronization result indicating the presence of a new signal in the target channel, the newest signal in the target channel is parsed.
6. The signal detection method according to claim 1, wherein, The determination of the target channel based on the results of multi-channel scanning includes: Multiple channels are scanned in parallel to obtain the data stream of each channel; The data stream of each of the channels is detected separately to obtain the detection result of each of the channels; Based on the detection results, the target channel is determined.
7. The signal detection method according to claim 1, wherein, The process of obtaining the target WiFi packet based on the parsing results includes: The parsing result is parsed by the media access control layer; Upon successful parsing, the target WiFi packet is obtained. In response to parsing failure, the steps to determine the target channel based on the results of multichannel scanning are re-executed.
8. A WiFi-based site device, comprising: The scanning module is used to determine the target channel based on the results of scanning multiple channels; The detection module is used to analyze the signal in the target channel and detect the current signal power of the target channel during the analysis process. The first processing module is used to respond to the change in the current signal power being greater than a preset threshold, redetermine the target channel, and parse the signal in the redetermined target channel; The second processing module is used to continue parsing the signal in the target channel in response to the change in the current signal power being less than or equal to the preset threshold. The third processing module is used to obtain the target WiFi packet based on the parsing results.
9. A WiFi-based communication system, comprising: At least one WiFi access point for transmitting WiFi signals via a channel; A WiFi-based site device is used to execute a target WiFi packet obtained by the signal detection method according to any one of claims 1-7 to interact with a target WiFi access point corresponding to a target channel, wherein the target WiFi access point is one of at least one of the WiFi access points, and the target channel is a channel for transmitting the target WiFi packet.
10. A computer-readable storage medium storing a program for performing the signal detection method according to any one of claims 1-7.