WIFI-based antenna selection method, signal processing device and storage medium
By selecting the optimal antenna in a WIFI system, the problem of high complexity in multi-antenna receiving systems is solved, resulting in cost reduction and device miniaturization while ensuring receiving performance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI XINYITONG TECHNOLOGY CO LTD
- Filing Date
- 2026-04-21
- Publication Date
- 2026-07-14
AI Technical Summary
The high complexity of multi-antenna receiving systems in existing WIFI systems leads to increased equipment costs and chip area.
The effective signal is determined by sliding detection at a preset sampling rate, and the optimal antenna is selected based on the signal quality of each antenna. The data frame is determined by combining the frame header delimiter and the optimal antenna is used for signal demodulation.
This reduces the waste of hardware resources for simultaneous demodulation of multiple antennas, lowers product costs, and contributes to the miniaturization and performance assurance of the equipment.
Smart Images

Figure CN122394619A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of WIFI-based antenna selection methods, specifically to a WIFI-based antenna selection method, signal processing device, and storage medium. Background Technology
[0002] With the development of communication technology, more and more devices can communicate through WIFI systems.
[0003] Since the release of the first wireless LAN standard (802.11 protocol) in 1997, Wi-Fi technology has continuously evolved to achieve faster data transmission rates and a better user experience. The modulation method has evolved from the initial direct spread spectrum sequence to today's orthogonal frequency division multiplexing modulation. The communication system has also evolved from single-input single-output to multiple-input multiple-output, from single-user to supporting simultaneous transmission by multiple users, and from transmitting the entire bandwidth to supporting orthogonal frequency division multiple access. The structure of the entire link has also become increasingly complex. Wi-Fi design needs to be continuously backward compatible to meet the communication requirements of different protocol versions.
[0004] To meet the requirements for receiving signals, a WIFI system has multiple antennas. If multiple antennas are used for signal reception and processing, multiple electronic components are required, which increases the cost of related equipment and the area of the chip. Summary of the Invention
[0005] To overcome the high complexity of multi-antenna receiving systems under the 802.11b protocol, an exemplary embodiment of this disclosure provides a first aspect of an antenna selection method based on Wi-Fi, applied to a Wi-Fi receiver with multiple antennas. The method includes: in response to receiving a data signal, determining a valid signal by sliding detection at a preset sampling rate; based on the valid signal, determining an optimal antenna from the multiple antennas according to the signal quality of each antenna; and determining, based on frame header delimiter verification, that the current frame is a data frame that needs to be demodulated, and continuing to receive data.
[0006] In some embodiments, determining a valid signal by sliding detection at a preset sampling rate includes: acquiring raw sampling data of each antenna after digital front-end processing based on the preset sampling rate; performing correlation operations with a local spread spectrum sequence based on the raw sampling data of each antenna to determine the peak position and signal-to-noise ratio; and determining the valid signal based on the peak position and the signal-to-noise ratio.
[0007] In some embodiments, determining the valid signal based on the peak position and the signal-to-noise ratio includes: determining the valid signal if the peak position deviation is less than a peak threshold and the signal-to-noise ratio is greater than a set signal-to-noise ratio threshold.
[0008] In some embodiments, determining an optimal antenna from the plurality of antennas based on the effective signal and the signal quality of each antenna includes: continuously detecting the signal-to-noise ratio of each antenna based on the effective signal; and determining the optimal antenna based on the magnitude of the signal-to-noise ratio of each antenna.
[0009] In some embodiments, determining that the current data frame needs to be demodulated based on frame start delimiter verification includes: performing frame start delimiter search through the optimal antenna; if the frame start delimiter is successfully obtained within a preset time, then the current data frame needs to be demodulated; if the frame start delimiter is not successfully obtained within the preset time, then returning to the step of determining a valid signal by sliding detection at a preset sampling rate.
[0010] In some embodiments, the method further includes: in response to a received antenna signal, determining whether a fixed antenna mode is enabled; if the fixed antenna mode is enabled, selecting a fixed antenna for receiving data; if the fixed antenna mode is not enabled, selecting an optimal antenna for receiving data through sliding detection.
[0011] In some embodiments, the preset sampling rate is 20M.
[0012] A second aspect of the exemplary embodiments of this disclosure provides a WIFI-based antenna selection method applied to a WIFI receiver having multiple antennas. The method includes: receiving a data signal; determining a current optimal antenna using the WIFI-based antenna selection method as described in the first aspect; and receiving and demodulating data using the current optimal antenna.
[0013] A third aspect of an exemplary embodiment of this disclosure provides a signal processing apparatus applied to a WIFI receiver having multiple antennas. The apparatus includes: a receiving module for receiving data signals; a selection module for determining a current optimal antenna using a WIFI-based antenna selection method as described in the first aspect; and a demodulation module for receiving and demodulating data through the current optimal antenna.
[0014] A fourth aspect of an exemplary embodiment of this disclosure provides a computer-readable storage medium storing a program for performing the WIFI-based antenna selection method described in any one aspect of the first aspect.
[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure.
[0016] This disclosure provides a Wi-Fi-based antenna selection method, signal processing apparatus, and computer-readable storage medium. According to the Wi-Fi-based antenna selection method provided by this disclosure, a Wi-Fi receiver can determine the effective signal by performing sliding detection on the received data signal at a preset sampling rate, and then detect the signal quality of each antenna to select the optimal antenna. Therefore, the antenna with the best signal quality can be selected from multiple antennas for signal demodulation, thereby reducing the waste of hardware resources in simultaneous demodulation using multiple antennas, and lowering product costs while ensuring performance. Attached Figure Description
[0017] This disclosure can be better understood by describing exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, in which: Figure 1 This is a flowchart illustrating a WIFI-based antenna selection method according to a disclosed exemplary embodiment; Figure 2 This is a diagram illustrating the correlation between a received data signal and a local sequence at a preset sampling rate of 20M, according to a disclosed exemplary embodiment. Figure 3 This is a diagram illustrating the correlation between a received data signal and a local sequence at a preset sampling rate of 11M, according to a disclosed exemplary embodiment. Figure 4 This is a flowchart illustrating a WIFI-based antenna selection method according to a disclosed exemplary embodiment; Figure 5 This is a flowchart illustrating a WIFI-based antenna selection method according to a disclosed exemplary embodiment; Figure 6 This is a flowchart illustrating a WIFI-based antenna selection method according to a disclosed exemplary embodiment; Figure 7 This is a flowchart illustrating a WIFI-based antenna selection method according to a disclosed exemplary embodiment; Figure 8 This is a flowchart illustrating a WIFI-based antenna selection method according to a disclosed exemplary embodiment. Detailed Implementation
[0018] The following describes specific embodiments of this disclosure. It should be noted that, in order to provide a concise description, this specification cannot exhaustively describe all features of the actual embodiments. It should be understood that, in the actual implementation of any embodiment, just as in any engineering or design project, various specific decisions are often made to achieve the developer's specific goals and to meet system-related or business-related constraints, and this can change from one embodiment to another. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this disclosure, changes in design, manufacturing, or production based on the technical content disclosed in this disclosure are merely conventional technical means and should not be construed as insufficient content of this disclosure.
[0019] Unless otherwise defined, the technical or scientific terms used in the claims and description shall have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms “first,” “second,” and similar terms used in this patent application description and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. The terms “an” or “a” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising” or “including” and similar terms mean that the element or object preceding “comprising” or “including” encompasses the element or object listed following “comprising” or “including” and its equivalents, and do not exclude other elements or objects. The terms “connected” or “linked” and similar terms are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.
[0020] Since the release of the first wireless LAN standard (802.11 protocol) in 1997, Wi-Fi (Wireless Fidelity) technology has continuously evolved to achieve faster data transmission rates and a better user experience. The modulation method has evolved from the initial direct spread spectrum sequence to today's Orthogonal Frequency Division Multiplexing (OFDM) modulation. The communication system has also evolved from Single Input Single Output (SISO) to Multiple Input Multiple Output (MIMO), from single-user to supporting simultaneous transmission by multiple users, and from transmitting the entire bandwidth to supporting Orthogonal Frequency Division Multiple Access (OFDMA). The structure of the entire link has also become increasingly complex, and the design of Wi-Fi needs to be continuously backward compatible to meet the communication requirements of different protocol versions.
[0021] To meet the requirements for receiving signals, a WIFI system has multiple antennas. If multiple antennas are used for signal reception and processing, multiple electronic components are required, which increases the cost of related equipment and the area of the chip.
[0022] To overcome the high complexity of multi-antenna receiving systems under the 802.11b protocol, this disclosure provides an exemplary embodiment of a Wi-Fi-based antenna selection method, signal processing apparatus, and storage medium. In the receiving and processing flow of a multi-antenna receiving system under the 802.11b protocol, 802.11b signals typically require only one receiving antenna to achieve relatively ideal receiving sensitivity. Even at a rate of 1 Mbps, the demodulation threshold SNR (Signal to Noise Ratio) can reach a negative value, meaning that only the antenna with the best signal quality needs to be selected from multiple antennas for subsequent processing. The Wi-Fi-based antenna selection method provided in this disclosure can select an optimal antenna to receive data. Therefore, its application in the receiving and processing flow under the 802.11b protocol can reduce the waste of hardware resources used for simultaneous demodulation using multiple antennas.
[0023] The WIFI-based antenna selection method disclosed herein can be applied to WIFI receivers with multiple antennas. In some embodiments, such as Figure 1 As shown, the WIFI-based antenna selection method may include the following steps: S11: In response to receiving a data signal, determine a valid signal by sliding detection at a preset sampling rate.
[0024] The receiver of a WIFI system can receive data signals (antenna signals). For signals after passing through the DFE (Digital Front End), a sliding detection can be performed at a preset sampling rate to determine the valid signal.
[0025] The sliding detection method in this embodiment, also known as sliding correlation detection, is the core signal processing flow where a Wi-Fi receiver performs point-by-point sliding cross-correlation between the local spreading sequence and the received signal at a certain sampling rate to detect the preamble, complete coarse synchronization, and calculate the SNR. Through sliding detection, the acquired data signal can be correlated with the local sequence. During correlation detection, coarse synchronization of the data signal can be performed simultaneously, that is, determining the starting position of the data signal for subsequent demodulation. Therefore, the antenna selection method disclosed in this disclosure can determine the optimal antenna while simultaneously completing coarse synchronization of the data signal, thereby reducing manufacturing costs by utilizing the optimal antenna for signal reception.
[0026] In some embodiments, the preset sampling rate can be 20M. Figure 2 The correlation graph between the received data signal and the local sequence at a preset sampling rate of 20 MHz is given, as follows: Figure 2 As shown, the advantage of performing sliding detection at a sampling rate of 20M is that it avoids the data after DFE going through a sampling rate conversion filter, which saves some overhead.
[0027] In some embodiments, the preset sampling rate can also be 11M. Figure 3 The correlation graph between the received data signal and the local sequence at a preset sampling rate of 11M is given, as follows: Figure 3 As shown, the chip rate of the 802.11b preamble is 11MHz. Using an 11MHz sampling rate ensures a one-to-one correspondence with the chip rate at the transmitting end, resulting in more accurate correlation peak positions and more ideal correlation characteristics. Consequently, the cross-correlation peak between the spread spectrum sequence and the local sequence is sharper, and the sidelobes are smaller, which helps improve synchronization detection accuracy, reduce the probability of false synchronization, and achieves superior synchronization performance.
[0028] S12: Based on the effective signal, determine the optimal antenna from multiple antennas according to the signal quality of each antenna.
[0029] By using sliding detection to determine the effective signal and combining it with antenna signal quality to select the optimal antenna, this method can accurately select the antenna with the best communication quality in complex wireless environments, improving reception stability and demodulation reliability, and avoiding performance degradation caused by channel fading and interference. Compared to using multiple antennas for signal reception, this method selects the single antenna with the best quality for signal reception, reducing the number of related components, thereby reducing costs and the size or area of related chips, which is beneficial for miniaturizing related equipment.
[0030] S13: Based on frame header delimiter verification, determine that the current data frame is one that needs to be demodulated, and continue receiving data. After determining the optimal antenna, perform frame header delimiter verification on that antenna to determine whether the current data frame is one that needs to be demodulated.
[0031] In some embodiments, the Start of Frame Delimiter (SFD) can be used to verify whether a data frame needs to be demodulated for subsequent data reception and demodulation.
[0032] According to the WIFI-based antenna selection method provided in this disclosure, the WIFI receiver can determine the effective signal by performing sliding detection on the received data signal at a preset sampling rate, and then detect the signal quality of each antenna to select the optimal antenna. Therefore, the antenna with the best signal quality can be selected from multiple antennas for signal demodulation, thereby reducing the waste of hardware resources used for simultaneous demodulation with multiple antennas, reducing product cost while ensuring performance, and contributing to the miniaturization of related components and equipment.
[0033] In one embodiment, such as Figure 4 As shown, the steps of the WIFI-based antenna selection method disclosed herein may include the following steps: S21: In response to receiving a data signal, acquire the raw sampled data of each antenna after digital front-end processing based on a preset sampling rate.
[0034] Acquiring sampled data from each antenna after digital front-end processing at a preset sampling rate ensures consistent timing and a unified benchmark for multi-antenna signal processing, avoiding antenna quality assessment deviations caused by asynchronous sampling timing. Directly using the raw sampled data processed by the digital front-end as input fully preserves complete information such as signal amplitude and phase, providing a true and reliable data foundation for subsequent related calculations, synchronization detection, and antenna selection. Independently and in parallel acquiring sampled data from each antenna enables simultaneous acquisition and parallel processing of multi-antenna signals, improving antenna evaluation efficiency and ensuring real-time antenna selection.
[0035] The correlation value is calculated by cross-correlating the DFE's output data inputIQ (Input Baseband IQ Signal) with the locally stored spread spectrum sequence baseIQ (Baseband IQ Signal) at a preset sampling rate. For details, please refer to the following formula (1): (1) In equation (1), inputIQ is the IQ signal before passing through DFE, and baseIQ is the quadrature complex signal in the baseband domain, which fully carries the signal amplitude and phase information and is the core input data for WIFI receiver synchronization, demodulation and antenna selection.
[0036] S22: Based on the raw sampling data of each antenna, perform correlation operations with the local spread spectrum sequence to determine the peak position and signal-to-noise ratio.
[0037] By performing independent correlation calculations on the received signals of each antenna, the channel quality and synchronization performance of each antenna can be evaluated separately, providing an objective and accurate basis for antenna selection. Through correlation calculations with the local spreading sequence, the correlation peak position can be accurately obtained, enabling coarse synchronization of the preamble and improving the reliability and anti-interference capability of synchronization detection.
[0038] Calculating the signal-to-noise ratio based on correlation operations can quantitatively characterize the signal quality of each antenna, avoiding misjudgments caused by relying solely on signal strength and improving the accuracy of antenna selection.
[0039] By employing multi-antenna parallel processing, the system can synchronize and evaluate the quality of each antenna path in real time and quickly. Even in complex wireless environments, it can quickly select the optimal receiving antenna, thereby improving the system's receiving stability.
[0040] S23: Determine the valid signal based on the peak position and signal-to-noise ratio.
[0041] Signal-to-noise ratio (SNR) is a measure of the signal quality of a data signal received by a single antenna. It can be calculated by taking the maximum correlation value among 20 sliding windows within a chip and dividing it by the sum of the values of the remaining 19 points after removing the maximum correlation value. SNR is a relative signal quality metric calculated based on sliding correlation results. It is obtained by the ratio of the peak correlation value to the average correlation value, requiring no complex noise statistics and having low computational overhead.
[0042] The signal-to-noise ratio (SNR) can be used to quantitatively evaluate the quality of signals received by each antenna and serve as a basis for determining the effectiveness of the signal and selecting the antenna. Although its value is lower than the actual physical SNR, it does not affect the accuracy of antenna selection and synchronization decisions when compared under a unified standard.
[0043] The effective signal is determined by the peak position and signal-to-noise ratio. At the same time, the selection of the peak position is equivalent to coarse synchronization, which can reduce the steps of coarse synchronization. In addition to selecting the optimal antenna, the antenna signal reception process can also be optimized.
[0044] S24: Based on the effective signal, determine the optimal antenna from multiple antennas according to the signal quality of each antenna.
[0045] Furthermore, by performing correlation operations between the local spread spectrum sequence and the received signal, the synchronization peak value and signal-to-noise ratio information can be accurately extracted, providing a reliable basis for determining the effective signal and improving the accuracy and anti-interference capability of synchronization detection.
[0046] In some embodiments, the WIFI receiver acquires the sampled data of each antenna after processing by the DFE digital front end at a sampling rate of 20M, performs cross-correlation calculation on each sampled data with the locally stored 20M spread spectrum sequence to obtain the position of the correlation peak and the corresponding signal-to-noise ratio; and determines whether the current signal is a valid preamble signal based on the stability of the correlation peak and the magnitude of the signal-to-noise ratio.
[0047] S25: Based on frame header delimiter verification, determine that the current frame is a data frame that needs to be demodulated, and continue receiving data.
[0048] In one embodiment, such as Figure 5 As shown, the steps of the WIFI-based antenna selection method disclosed herein may include the following steps: S31: In response to receiving a data signal, acquire the raw sampled data of each antenna after digital front-end processing based on a preset sampling rate.
[0049] S32: Based on the raw sampling data of each antenna, perform correlation operations with the local spread spectrum sequence to determine the peak position and signal-to-noise ratio.
[0050] S33: If the peak position deviation is less than the peak threshold and the signal-to-noise ratio is greater than the set signal-to-noise ratio threshold, then a valid signal is determined.
[0051] In some embodiments, the peak positions of multiple consecutive chips are guaranteed to be at the same data point, and if there is a deviation, the position deviation of a single chip is allowed to be at most 1. At the same time, the signal-to-noise ratio (SNR) of each chip must be greater than a certain threshold, and the specific calculation is shown in the following formula (2): (2) In equation (2), This represents the maximum correlation value among the 20 sliding windows for a single chip. corr This represents the relevant value for each data point. iThis represents the count index. The calculated SNR is smaller than the true value, but all comparisons are performed under a unified formula, which does not affect the result. In addition, it can reduce the calculation steps of average noise, further reducing the overhead.
[0052] By combining peak position deviation and a set signal-to-noise ratio (SNR) threshold for joint decision-making, spurious correlation peaks caused by noise and interference can be effectively eliminated, reducing the probability of false alarms and improving the accuracy of valid signal detection. Constraining the stability of the peak position ensures reliable and consistent synchronization, preventing synchronization errors caused by excessive peak offset and improving preamble detection accuracy. Combined with the set SNR threshold for screening, it ensures that the received signal has sufficient strength and quality, guaranteeing the reliability of subsequent antenna selection, synchronization, and demodulation processes.
[0053] S34: Based on the effective signal, determine the optimal antenna from multiple antennas according to the signal quality of each antenna.
[0054] S35: Based on frame header delimiter verification, determine that the current frame is a data frame that needs to be demodulated, and continue receiving data.
[0055] In one embodiment, such as Figure 6 As shown, the steps of the WIFI-based antenna selection method disclosed herein may include the following steps: S41: In response to receiving a data signal, acquire the raw sampled data of each antenna after digital front-end processing based on a preset sampling rate.
[0056] S42: Based on the raw sampling data of each antenna, perform correlation operations with the local spread spectrum sequence to determine the peak position and signal-to-noise ratio.
[0057] S43: Determine the valid signal based on the peak position and signal-to-noise ratio.
[0058] S44: Based on the effective signal, continuously detect the signal-to-noise ratio of each antenna; determine the optimal antenna according to the magnitude of the signal-to-noise ratio of each antenna.
[0059] After the relevant detection and determination are successful and a valid signal is confirmed, the SNR value of each antenna over a period of time is continuously calculated. The largest value among the obtained signal-to-noise ratios is selected as the final demodulated data. The specific calculation can be referred to the following equations (3) and (4).
[0060] (3) (4) In the above formula (3), The sum of the SNR values for each antenna is represented in equation (4). antChoice Indicates the final selected antenna index. iIndicates the counting index. N This indicates the number of chips counted.
[0061] In some embodiments, for the signal-to-noise ratio (SNR) of multiple antennas, the SNR of each antenna can be continuously collected within the same time period. The SNR of multiple antennas obtained in this way can be filtered out by time and other interference factors introduced by time when comparing them, resulting in higher accuracy.
[0062] By continuously detecting and accumulating multiple sets of signal-to-noise ratio (SNR) data, misjudgments caused by instantaneous signal fluctuations or sudden interference are avoided, improving the stability and reliability of antenna quality assessment. Antenna selection based on complete SNR data objectively reflects the true receiving performance of each antenna over a period of time, improving the accuracy of optimal antenna selection. SNR statistics based on effective signals ensure that antenna quality assessment is built upon reliable signals, further reducing the adverse effects of false detections and misjudgments. The data accumulation and comparison method is logically clear, easy to implement in hardware, and can stably select the optimal antenna path even in complex multipath and interference environments.
[0063] S45: Based on frame header delimiter verification, determine that the current frame is a data frame that needs to be demodulated, and continue receiving data.
[0064] In one embodiment, such as Figure 7 As shown, the steps of the WIFI-based antenna selection method disclosed herein may include the following steps: S51: In response to receiving a data signal, determine a valid signal by sliding detection at a preset sampling rate.
[0065] S52: Based on the effective signal, determine the optimal antenna from multiple antennas according to the signal quality of each antenna.
[0066] S53: Search for the frame start delimiter using the optimal antenna; if the frame start delimiter is successfully acquired within a preset time, the current frame is determined to be the data frame that needs to be demodulated; if the frame start delimiter is not successfully acquired within a preset time, return to the execution of sliding detection at a preset sampling rate to determine the valid signal.
[0067] After determining the optimal antenna, the SFD (Start of Frame Delimiter) signal is detected. If the search fails within the preset time, the currently synchronized signal is considered not to be a signal under the 802.11 protocol, and a new judgment is required. The preset time can be set to the longest preamble duration. If the search is successful within the preset time, it indicates that the current signal is indeed an 802.11b signal, and the current data frame can be determined to be the one requiring demodulation. Demodulation can then continue using the optimal antenna.
[0068] The optimal antenna is verified twice through frame header delimiter search, achieving dual verification of coarse and fine synchronization, effectively avoiding antenna selection errors caused by false synchronization. The decision is completed within a preset time, ensuring the timeliness and stability of the synchronization process and preventing the system from being stuck in ineffective waiting for extended periods. If the search fails, it automatically returns to re-execute the sliding detection, forming a closed-loop fault-tolerance mechanism, improving anti-interference capabilities and system robustness in complex wireless environments. Only antennas that have truly synchronized to valid 802.11 data frames are determined as the optimal antenna, significantly improving the reliability and accuracy of subsequent data demodulation.
[0069] In one embodiment, such as Figure 8 As shown, the steps of the WIFI-based antenna selection method disclosed herein may include the following steps: S61: In response to the received antenna signal, determine whether to enable the fixed antenna mode.
[0070] The WIFI receiver in this embodiment can have a fixed antenna mode, that is, it uses a fixed antenna for signal transmission. Using a fixed antenna facilitates chip testing and also prevents adverse effects caused by antenna selection errors.
[0071] S62: If the fixed antenna mode is enabled, the fixed antenna is selected for receiving data; if the fixed antenna mode is not enabled, the optimal antenna is selected by sliding detection for receiving data.
[0072] If fixed antenna mode is used, the fixed antenna will be used to receive data. If fixed antenna mode is not used, the optimal antenna will be selected through sliding detection, and data will be received through the optimal antenna. This selection allows the fixed antenna to be used to receive signals when multiple antennas are unavailable, thus ensuring the stability of the Wi-Fi system. For example, in some situations, such as when multiple antennas are occupied by other signals or when multiple antennas have poor signal reception and cannot transmit signals, a fixed antenna can be used to transmit signals, thereby ensuring the normal operation of the Wi-Fi system.
[0073] By enabling compatible switching between fixed antenna mode and automatic antenna selection mode, a stable signal environment can be provided in testing scenarios, facilitating chip testing and calibration. Simultaneously, the optimal antenna can be dynamically selected in actual communication, balancing practicality and reliability. When fixed antenna mode is enabled, the specified antenna is directly locked, fundamentally avoiding the adverse effects of antenna selection errors, misjudgments, and switching, thus improving system stability in complex interference environments. When not enabled, the system automatically enters a sliding detection process, dynamically selecting the optimal antenna based on real-time signal quality to ensure reception performance and communication quality. The overall solution is flexible and configurable, adaptable to various application scenarios such as chip testing, mass production, and actual communication, expanding the receiver's application range and robustness.
[0074] S63: In response to receiving a data signal, determine a valid signal by sliding detection at a preset sampling rate.
[0075] S64: Based on the effective signal, determine the optimal antenna from multiple antennas according to the signal quality of each antenna.
[0076] S65: Based on frame header delimiter verification, determine that the current frame is a data frame that needs to be demodulated, and continue receiving data.
[0077] In one specific embodiment, the performance at 11M is better because the preamble is mainly sent at an 11M sampling rate. The advantage of 20M is that the data after DFE can avoid passing through a sampling rate conversion filter, which saves some overhead. In this embodiment, the relevant operations are processed at 20M.
[0078] The relevant successful judgment conditions are to ensure that the peak positions of multiple consecutive chips are at the same data point, and if there is a deviation, the position deviation of only one chip is allowed to be 1; at the same time, the SNR (signal-to-noise ratio) of each chip must be greater than a certain threshold (the set signal-to-noise ratio threshold), and the specific calculation is shown in Equation (a).
[0079] (a)
[0080] In the above formula This represents the maximum correlation value among the 20 sliding windows for a single chip. This represents the relevance value for each data point, where i represents the count index. The calculated SNR is slightly smaller than the true value, but all comparisons are performed using a unified formula, which does not affect the result. Furthermore, it reduces the number of steps in calculating the average noise, further lowering the overhead.
[0081] The correlation value is calculated using DFE's export data. With the locally stored 20MHz spread spectrum sequence Perform cross-correlation calculations, see equation (b) for details.
[0082] (b)
[0083] After the relevant detection is successful, it is necessary to count the SNR value of each antenna over a period of time, and select the largest value from the obtained signal-to-noise ratio as the final demodulated data. The specific calculation is shown in equations (c) and (d).
[0084] (c) (d) In the above formula This represents the cumulative SNR value for each antenna. Indicates the final selected antenna index. i Indicates the counting index. N This indicates the number of chips counted.
[0085] After determining the final antenna index, the SFD signal is detected. If the search fails within a certain time, the currently synchronized signal is considered not to be an 802.11b signal, and a new judgment is required. The time period can be set to the longest preamble time. Whether the SFD signal is detected is determined by subsequent modules of the receiver and is not involved in this invention; it is only used as a decision signal.
[0086] Compared with related technologies, the antenna selection method provided in this disclosure combines correlation detection and antenna selection. It performs coarse synchronization detection of 802.11b signals and selects a signal with the best SNR from multiple antennas. While meeting basic performance requirements, it also effectively reduces chip hardware resource overhead and significantly reduces chip design costs.
[0087] This disclosure provides a method that combines correlation detection and antenna selection techniques, which reduces the number of demodulation modules and lowers hardware overhead compared to a design using multiple antennas for synchronous reception. Compared to antenna selection schemes that only consider energy, this disclosure can identify signal power energy near noise and uses the signal start point as a trigger condition, resulting in higher sensitivity.
[0088] Based on the same or similar concepts, exemplary embodiments of this disclosure also provide a WIFI-based antenna selection method, applied to a WIFI receiver with multiple antennas, the method comprising: receiving a data signal; determining the current optimal antenna using the WIFI-based antenna selection method as described in the foregoing embodiments; and receiving and demodulating data using the current optimal antenna.
[0089] This approach avoids the waste of hardware resources associated with simultaneous demodulation of multiple antennas, ensuring performance while incorporating a coarse synchronization scheme to simplify the signal processing flow of subsequent links. By first determining the optimal antenna and then performing data reception and demodulation based on it, the waste of hardware resources and power consumption caused by simultaneously synchronizing and demodulating signals from multiple antennas can be avoided. While ensuring reception performance, the combination of coarse and fine synchronization simplifies the signal processing flow of subsequent demodulation links, reduces system implementation complexity, and improves the receiver's demodulation stability and reception sensitivity in multipath and interference environments.
[0090] Based on the same or similar concepts, exemplary embodiments of this disclosure also provide a signal processing apparatus applied to a WIFI receiver having multiple antennas. The apparatus includes: a receiving module for receiving data signals; a selection module for determining the current optimal antenna using the antenna selection method as described in the foregoing embodiments; and a demodulation module for receiving and demodulating data through the current optimal antenna.
[0091] Through the coordinated operation of the receiving module, selection module, and demodulation module, the modular implementation realizes the functions of multi-antenna signal reception, optimal antenna selection, and data demodulation. The structure is clear and easy to implement in hardware. It can perform demodulation processing after selecting the optimal antenna, effectively reducing redundant calculations and hardware overhead, and improving chip resource utilization. At the same time, it ensures the communication performance of the receiver in complex wireless environments, and has strong practicality and scalability.
[0092] Based on the same or similar concepts, exemplary embodiments of this disclosure also provide a computer-readable storage medium storing a program for performing any of the WIFI-based antenna selection methods in the foregoing embodiments.
[0093] By storing and executing the above-mentioned WIFI antenna selection method, the processor can call and implement functions such as optimal antenna selection, synchronization detection, and fixed mode switching. It is highly versatile and widely applicable. It can be flexibly deployed in various WIFI receivers, baseband chips, and wireless communication devices, improving the reliability and synchronization accuracy of receiver antenna selection and ensuring communication quality without significantly increasing hardware costs.
[0094] This disclosure provides a Wi-Fi-based antenna selection method, signal processing apparatus, and computer-readable storage medium. According to the Wi-Fi-based antenna selection method provided by this disclosure, a Wi-Fi receiver can determine the effective signal by performing sliding detection on the received data signal at a preset sampling rate, and then detect the signal quality of each antenna to select the optimal antenna. Therefore, the antenna with the best signal quality can be selected from multiple antennas for signal demodulation, thereby reducing the waste of hardware resources in simultaneous demodulation using multiple antennas, and lowering product costs while ensuring performance.
[0095] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure.
[0096] This application uses specific terms to describe embodiments of the application. 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 application. 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 application can be appropriately combined.
[0097] In the context of this application, 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 explicitly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
[0098] Similarly, it should be noted that, in order to simplify the description of the present application and thus aid in the understanding of one or more embodiments, the foregoing description of the embodiments of the present application sometimes combines multiple features into a single embodiment, drawing, or description thereof. However, this disclosure method does not imply that the subject matter of the present application requires more features than those mentioned in the claims. In fact, the embodiments contain fewer features than all the features of the single embodiments disclosed above.
[0099] The basic concepts have been described above. Obviously, for those skilled in the art, the above disclosure is merely illustrative and does not constitute a limitation of this application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and corrections to this application. Such modifications, improvements, and corrections are suggested in this application, and therefore remain within the spirit and scope of the embodiments of this application.
Claims
1. A method for selecting antennas based on WIFI, characterized in that, The method, applied to a WIFI receiver with multiple antennas, includes: In response to the received data signal, a valid signal is determined by sliding detection at a preset sampling rate; Based on the effective signal, an optimal antenna is determined from the plurality of antennas according to the signal quality of each antenna; Based on frame header delimiter verification, it is determined that the current data frame is one that needs to be demodulated, and data reception continues.
2. The antenna selection method based on WIFI according to claim 1, characterized in that, The method of determining a valid signal by sliding detection at a preset sampling rate includes: Based on the preset sampling rate, the original sampling data of each antenna after digital front-end processing is obtained; Based on the original sampled data of each antenna, correlation operations are performed with the local spread spectrum sequence to determine the peak position and signal-to-noise ratio; The effective signal is determined based on the peak position and the signal-to-noise ratio.
3. The WIFI-based antenna selection method according to claim 2, characterized in that, Determining the effective signal based on the peak position and the signal-to-noise ratio includes: If the peak position deviation is less than the peak threshold and the signal-to-noise ratio is greater than the set signal-to-noise ratio threshold, then a valid signal is determined.
4. The WIFI-based antenna selection method according to claim 2 or 3, characterized in that, Based on the effective signal, and according to the signal quality of each antenna, an optimal antenna is determined from the plurality of antennas, including: Based on the effective signal, the signal-to-noise ratio of each antenna is continuously detected; The optimal antenna is determined based on the signal-to-noise ratio of each antenna.
5. The WIFI-based antenna selection method according to claim 1, characterized in that, The step of determining that the current data frame is one that needs to be demodulated based on the frame header delimiter verification includes: Frame header delimiter search is performed using the optimal antenna; If the frame beginning delimiter is successfully obtained within the preset time, then the current frame is determined to be a data frame that needs to be demodulated. If the frame beginning delimiter is not successfully acquired within the preset time, the process returns to determining the valid signal by sliding detection at the preset sampling rate.
6. The WIFI-based antenna selection method according to claim 1, characterized in that, The method further includes: In response to the received antenna signal, determine whether to enable the fixed antenna mode; If fixed antenna mode is enabled, then a fixed antenna will be selected for receiving data; If the fixed antenna mode is not enabled, the optimal antenna is selected by sliding detection to receive data.
7. The antenna selection method based on WIFI according to claim 1, characterized in that, The preset sampling rate is 20M.
8. A method for selecting antennas based on WIFI, characterized in that, The method, applied to a WIFI receiver with multiple antennas, includes: Receive data signals; The optimal antenna is determined by the WIFI-based antenna selection method as described in any one of claims 1-7. Data is received and demodulated using the currently optimal antenna.
9. A signal processing apparatus, characterized in that, An apparatus for use in a WIFI receiver with multiple antennas, the device comprising: The receiving module is used to receive data signals; The selection module is used to determine the current optimal antenna using the WIFI-based antenna selection method as described in any one of claims 1-7. The demodulation module receives and demodulates data through the currently optimal antenna.
10. A computer-readable storage medium storing a program for performing the WIFI-based antenna selection method according to any one of claims 1-7.