Precise timing method, device and computer equipment for wireless local area network
The two-stage precise timing method solves the problem of difficult precise timing of wireless LAN in complex multipath environments, achieves more accurate reduction of multipath delay and inter-symbol interference, and is suitable for 802.11n/ac/ax protocols.
Patent Information
- Application Number
- CN202211605080.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-12-14
AI Technical Summary
Existing wireless LANs are difficult to complete precise timing in a short time in complex multipath environments, resulting in inter-symbol interference (ISI). Especially in the case of short cyclic prefixes in 802.11a/g/n/ac systems, high performance cannot be effectively utilized. Precise timing algorithm.
A two-stage precision timing method is adopted. The first stage completes rough timing before the end of L-LTF field reception and outputs the front and last paths. The second stage performs finer precision timing simultaneously with SIG field demodulation. Through cross-correlation calculation and multiple Path determination threshold optimization, the position of the most forward path and the last path.
It provides a more accurate precise timing position, ensures that the multipath falls within the FFT window, meets the demodulation requirements of different modulation modes, reduces the impact of inter-symbol interference, and can set an appropriate cyclic prefix length.
Smart Images

Figure CN116016083B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a precise timing method, device and computer equipment for a wireless local area network. Background Art
[0002] Today, the physical layer of wireless LANs based on the 802.11 series of protocols has the same traditional preamble fields (L-STF, L-LTF) used for frame detection (L-STF), coarse timing synchronization (L-STF), fine timing synchronization (L-LTF), frequency offset estimation (L-STF, L-LTF), and channel estimation of the SIG field (L-LTF).
[0003] Wireless LAN mainly uses OFDM system with cyclic prefix (CP). The precise timing algorithm of this system aims to find the precise position of the first and last paths with sufficient power, so as to determine the maximum multipath delay and the common part of the cyclic prefix of these two paths, and select a position in this common part as the starting position of the FFT window, so that inter-symbol interference (ISI) will not be generated. A typical approach is to select the midpoint of the common part. If the multipath delay exceeds the cyclic prefix length, there will be no common part in the cyclic prefix, and ISI will definitely be generated. For communication systems with short cyclic prefix lengths (for example, the maximum cyclic prefix length of 802.11a / g / n / ac is 16, corresponding to a duration of 0.8us), this situation is very likely to occur in a complex multipath environment.
[0004] The precise timing of existing wireless LANs is required to be completed in a very short time so that the SIG field can be demodulated in time. Based on the analysis of the ZYNQ 7030SoC hardware, it is usually required to be completed before the end of the L-LTF field reception, and the first and last paths are determined within about 2us after the maximum path is found. This time is basically the same as the processing time of an FFT, which means that there is not enough time to use a better-performing but longer-time precise timing algorithm, such as the FFT convolution algorithm based on frequency domain channel estimation. At the same time, new versions of wireless LAN protocols, such as 802.11ax, use 4 times the length of OFDM symbols for their channel training fields and DATA fields, so longer channel training fields can be used to obtain more accurate precise timing positions. Summary of the invention
[0005] Based on this, it is necessary to provide a precise timing method, device and computer equipment for a wireless local area network in order to solve the above technical problems.
[0006] A precise timing method for a wireless local area network, the method comprising:
[0007] receiving communication data and storing it in a first buffer, and obtaining a starting position of an L-LTF field in the communication data based on coarse timing of the communication data;
[0008] At the starting position, performing a cross-correlation calculation on the communication data and a pre-stored local sequence to obtain a first cross-correlation value, and storing the first cross-correlation value in a second cache;
[0009] According to the first cross-correlation value in the second cache, a maximum path calculation is performed to output a first precise timing parameter; the first precise timing parameter includes: a first multipath delay, a first distance between the foremost path and the maximum path, and a position of the foremost path;
[0010] According to the wireless local area network protocol type, a precise timing strategy is determined to obtain a second precise timing parameter; the second precise timing parameter includes: a second multipath delay, a frontmost path, and a maximum path position.
[0011] The SIG field of the communication data is precisely timed according to the first precise timing parameter, and the DATA field of the communication data is precisely timed according to the second precise timing parameter.
[0012] In one embodiment, the communication data is an 802.11n or 802.11ac data frame; and further comprising: after precise timing adjustment is performed using the first precise timing parameter, channel estimation is performed on the communication data to obtain a frequency domain channel estimation result; IFFT transformation is performed on the frequency domain channel estimation result to obtain time domain multipath information, the time domain multipath information is scanned, and a second precise timing parameter is determined, and a starting position of the FFT transformation of the DATA field is set accordingly.
[0013] In one of the embodiments, the method further includes: obtaining a frequency domain channel estimation result according to a cumulative average value of OFDM symbols of two L-LTFs of the communication data.
[0014] In one of the embodiments, the method further includes: scanning the first half of the time domain multipath information to determine that the data with the largest power is a main path;
[0015] Starting from the main path, searching forward and backward respectively according to the first distance to obtain the frontmost path and the rearmost path, and setting the starting position of the FFT transformation according to the frontmost path and the rearmost path.
[0016] In one of the embodiments, the method further includes: adding a preset offset to the first distance to obtain a search distance;
[0017] The search distance is searched forward and backward to determine the frontmost path and the rearmost path.
[0018] In one of the embodiments, it also includes: performing cross-correlation calculation on the channel training field to obtain a second cross-correlation value, and storing the second cross-correlation value in a second cache; when the second cross-correlation value in the second cache is greater than the second correlation peak value currently stored, updating the second correlation peak value to the second cross-correlation value, and setting a second multipath determination threshold based on the updated correlation peak value and the signal-to-noise ratio; when the second cross-correlation value in the second cache is less than the second correlation peak value currently stored, adding 1 to the count value of the second counter, and when the count value in the second counter is greater than the second threshold value, searching for the front path and the last path based on the second multipath determination threshold with the second correlation peak position as the center, and determining the second multipath delay, the front path and the position of the maximum path; wherein the second threshold value is greater than the first threshold value.
[0019] In one of the embodiments, it also includes: when the first mutual correlation value in the second cache is greater than the currently stored first correlation peak value, updating the first correlation peak value to the first mutual correlation value, and setting a first multipath determination threshold based on the updated correlation peak value and the signal-to-noise ratio; when the first mutual correlation value in the second cache is less than the currently stored first correlation peak value, adding 1 to the count value of the first counter, and when the count value in the first counter is greater than the first threshold value, searching for the front path and the last path based on the first multipath determination threshold with the first correlation peak position as the center, and determining the first multipath delay, the first distance between the front path and the maximum path, and the position of the front path.
[0020] A precise timing device for a wireless local area network, the device comprising:
[0021] A data receiving module, configured to receive communication data, store the received communication data in a first buffer, and obtain a starting position of an L-LTF field in the communication data by performing rough timing on the communication data;
[0022] A first precise timing parameter acquisition module is used to perform a cross-correlation calculation on the communication data and a pre-stored local sequence at the starting position to obtain a first cross-correlation value, and store the first cross-correlation value in a second cache; perform a maximum path calculation according to the first cross-correlation value in the second cache, and output a first precise timing parameter; the first precise timing parameter includes: a first multipath delay, a first distance between the foremost path and the maximum path, and a position of the foremost path;
[0023] A second precise timing parameter acquisition module is used to determine a precise timing strategy according to the wireless local area network protocol type to obtain a second precise timing parameter; the second precise timing parameter includes: a second multipath delay, a front path, and a maximum path position;
[0024] The precise timing module is used to precisely time the SIG field of the communication data according to the first precise timing parameter, and to precisely time the DATA field of the communication data according to the second precise timing parameter.
[0025] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0026] receiving communication data and storing it in a first buffer, and obtaining a starting position of an L-LTF field in the communication data based on coarse timing of the communication data;
[0027] At the starting position, performing a cross-correlation calculation on the communication data and a pre-stored local sequence to obtain a first cross-correlation value, and storing the first cross-correlation value in a second cache;
[0028] According to the first cross-correlation value in the second cache, a maximum path calculation is performed to output a first precise timing parameter; the first precise timing parameter includes: a first multipath delay, a first distance between the foremost path and the maximum path, and a position of the foremost path;
[0029] According to the wireless local area network protocol type, a precise timing strategy is determined to obtain a second precise timing parameter; the second precise timing parameter includes: a second multipath delay, a frontmost path, and a maximum path position.
[0030] The SIG field of the communication data is precisely timed according to the first precise timing parameter, and the DATA field of the communication data is precisely timed according to the second precise timing parameter.
[0031] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0032] receiving communication data and storing it in a first buffer, and obtaining a starting position of an L-LTF field in the communication data based on coarse timing of the communication data;
[0033] At the starting position, performing a cross-correlation calculation on the communication data and a pre-stored local sequence to obtain a first cross-correlation value, and storing the first cross-correlation value in a second cache;
[0034] According to the first cross-correlation value in the second cache, a maximum path calculation is performed to output a first precise timing parameter; the first precise timing parameter includes: a first multipath delay, a first distance between the foremost path and the maximum path, and a position of the foremost path;
[0035] According to the wireless local area network protocol type, a precise timing strategy is determined to obtain a second precise timing parameter; the second precise timing parameter includes: a second multipath delay, a frontmost path, and a maximum path position.
[0036] The SIG field of the communication data is precisely timed according to the first precise timing parameter, and the DATA field of the communication data is precisely timed according to the second precise timing parameter.
[0037] The above-mentioned precise timing method, device, computer equipment and storage medium of the wireless local area network provide precise timing positions of different accuracy for the SIG field and DATA field of the physical layer through two stages of precise timing processing, and provide more accurate precise timing positions for the newer versions of the wireless local area network protocol 802.11n / ac / ax. The precise timing processing of the first stage is completed before the end of the L-LTF field reception; the precise timing processing of the second stage is performed simultaneously with the SIG field demodulation and completed before the end of the HT-STF / VHT-STF / HE-STF reception. For the SIG field, before the end of the L-LTF field reception, a precise timing position with a certain accuracy is quickly provided to ensure that most of the multipaths fall within the precise timing range (i.e., the FFT window range), meeting the demodulation requirements of the BPSK modulation mode. For the DATA field, before the end of the HT / VHT / HE-LTF field reception, a highly accurate precise timing position and multipath delay are provided to ensure that all multipaths with sufficient power are within the precise timing range, meeting the demodulation requirements of high-order modulation such as 64-QAM. If the multipath falls outside the precise timing range, it will cause inter-symbol interference (ISI), and the higher the modulation, the greater the impact. At the same time, more accurate multipath delay enables wireless LAN devices to set the appropriate length of cyclic prefix. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flow chart of a precise timing method for an OFDM system using a cyclic prefix in conventional technology;
[0039] Figure 2 A schematic diagram of a flow chart of a precise timing method for a wireless local area network in one embodiment;
[0040] Figure 3 A schematic diagram of the process flow of the first stage of precise timing in an embodiment;
[0041] Figure 4 A schematic diagram of the process flow of the second stage precise timing in one embodiment;
[0042] Figure 5 is a structural block diagram of a precise timing device for a wireless local area network in one embodiment;
[0043] Figure 6FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] In the specific implementation of traditional technology, the search is generally divided into two steps: the first step is to search for the maximum power path, then determine the multipath threshold based on the maximum path power, and then perform a second search to find the positions of the first and last paths. In order to simplify the implementation, the starting position of the FFT window is often determined directly based on the first path: 2 to 3 data before the end of the cyclic prefix of the first path.
[0046] The precise timing algorithm of wireless LAN usually uses the L-LTF field. This field corresponds to 2 OFDM symbols and consists of data segments A and B, both of length 32, repeated alternately. B is repeated 3 times and A is repeated 2 times. Since the FFT length is 64, the cyclic prefix length of the L-LTF field is 32 and 64.
[0047] The typical precise timing algorithm is: use the local sequence and the received data to continuously perform cross-correlation processing, each multipath is represented by a different correlation peak, and when the positions of the two largest correlation peaks differ by about 64, it is determined that the first largest correlation peak position is the position of the multipath with the largest power. The relatively simple second algorithm is to use the local sequence and the received data to continuously perform cross-correlation processing, search for the maximum correlation peak, and when the latest maximum correlation peak can be maintained for N consecutive times (usually greater than 32 and less than 64, the typical value is 48), it is considered that the position of the multipath with the largest power is found. At the typical value of 48, the latter has a faster detection speed than the former (at least 64-48=16 data faster when the correlation window length is equal).
[0048] If the local sequence for cross-correlation only contains data segment B, there are 3 maximum correlation peaks. If it also contains data of A, there are only 2 maximum correlation peaks. The theoretical spacing of these maximum correlation peaks is 64. Usually, in order to ensure sufficient anti-noise performance at low signal-to-noise ratio, the correlation sequence should be as long as possible, up to 64, that is, it contains all the data of A and B. When processed according to the correlation length of 64, the first algorithm searches and calculates the two maximum correlation peaks, which requires at least 128 data at the baseband rate. At this time, the remaining data of the L-LTF field is at most 32. The second algorithm requires at least 64+48=112 data. Since the L-LTF field is usually used for two FFT processes after the precise timing is completed and before the L-SIG decoding to calculate the channel estimate, the processing time left for the precise timing module to perform further optimization (such as searching for the foremost path) is very small.
[0049] Taking the ZYNQ 7030SoC at 200M clock as an example for analysis, FFT processing is performed on a wireless LAN with a bandwidth of 20M on this hardware platform: first cache the 64 data required for FFT processing, and then perform FFT processing. The FFT processing of length 64 takes about 1.7us from the first data input to the last data output, corresponding to 34 data at the baseband rate. If the two FFT processing required for channel estimation are to be completed, it will take about 3.4us, corresponding to 68 data at the baseband rate. Since channel estimation is usually completed within the 4us long L-SIG field, it takes at least 3.4us to remove the channel estimation, and it is necessary to complete the precise timing within 0.6us before the L-SIG field to determine the starting position of the FFT window.
[0050] According to the above analysis, at least 112 to 128 data of L-LTF are needed to find the maximum path, and then the first and last paths are determined within 1.6 to 2.4us corresponding to the remaining 32 to 48 data, plus the first 0.6us of the L-SIG field. If the channel estimation needs to be further optimized, such as denoising under low signal-to-noise ratio, it will take longer and the precise timing needs to be completed earlier.
[0051] Therefore, measures to save processing time must be taken to complete the precise timing processing, which inevitably reduces the performance of the precise timing algorithm, especially in a complex multipath environment, which will affect the accuracy of the precise timing.
[0052] Although the SIG field is limited by time and cannot use high-performance precise timing algorithms, the subsequent channel training field and DATA field have sufficient time to use high-performance precise timing algorithms. At the same time, new versions of wireless LAN protocols, such as 802.11ax, use 4 times the length of OFDM symbols for their channel training fields and DATA fields, so longer channel training fields can be used to obtain more accurate precise timing positions. Therefore, on the basis of the original precise timing module, another high-performance precise timing module is added for the subsequent channel training fields and DATA fields.
[0053] In one embodiment, Figure 2 As shown, a precise timing method for a wireless local area network is provided, comprising the following steps:
[0054] Step 202: Receive communication data and store it in a first buffer, and obtain the starting position of the L-LTF field in the communication data by performing coarse timing on the communication data.
[0055] Step 204: at the start position, perform cross-correlation calculation on the communication data and the pre-stored local sequence to obtain a first cross-correlation value, and store the first cross-correlation value in the second cache.
[0056] Step 206: perform maximum diameter calculation according to the first cross-correlation value in the second cache, and output a first precise timing parameter.
[0057] The first precise timing parameters include: a first multipath delay, a first distance between the foremost path and the maximum path, and a position of the foremost path.
[0058] Once the last path and the first path of the current transmission environment are determined, the maximum multipath delay is determined, and then the length of the cyclic prefix (CP) can be modified according to the delay.
[0059] Step 208: Determine a precise timing strategy according to the wireless local area network protocol type and obtain a second precise timing parameter.
[0060] The second precise timing parameters are the second multipath delay, the position of the frontmost path and the maximum path.
[0061] Step 210, accurately timing the SIG field of the communication data according to the first accurate timing parameter, and accurately timing the DATA field of the communication data according to the second accurate timing parameter.
[0062] In the above-mentioned precise timing method of the wireless local area network, precise timing positions with different accuracies are provided for the SIG field and DATA field of the physical layer through two stages of precise timing processing, and more accurate precise timing positions are provided for the newer versions of the wireless local area network protocol 802.11n / ac / ax. The precise timing processing of the first stage is usually completed before the end of the L-LTF field reception; the precise timing processing of the second stage is performed simultaneously with the SIG field demodulation and completed before the end of the HT-STF / VHT-STF / HE-STF reception. For the SIG field, before the end of the L-LTF field reception, a precise timing position with a certain accuracy is quickly provided to ensure that most of the multipaths fall within the precise timing range (i.e., the FFT window range), meeting the demodulation requirements of the BPSK modulation mode. For the DATA field, before the end of the HT / VHT / HE-LTF field reception, a highly accurate precise timing position and multipath delay are provided to ensure that all multipaths with sufficient power are within the precise timing range, meeting the demodulation requirements of high-order modulation such as 64-QAM. If the multipath falls outside the precise timing range, it will cause inter-symbol interference (ISI), and the higher the modulation, the greater the impact. At the same time, more accurate multipath delay enables wireless LAN devices to set the appropriate length of cyclic prefix.
[0063] In one of the embodiments, when the first mutual correlation value in the second cache is greater than the first correlation peak value currently stored, the first correlation peak value is updated to the first mutual correlation value, and the first multipath determination threshold is set according to the updated correlation peak value and the signal-to-noise ratio; when the first mutual correlation value in the second cache is less than the first correlation peak value currently stored, the count value of the first counter is increased by 1, and when the count value in the first counter is greater than the first threshold value, according to the first multipath determination threshold, the first correlation peak position is used as the center to search for the front path and the last path, and the first multipath delay and the first distance between the front path and the maximum path are determined.
[0064] It is worth noting that, in this embodiment, when the count value of the first timer is greater than the first threshold, it indicates that the detection is finished, and when the count value of the first timer is less than the first threshold, it indicates that the detection is in progress.
[0065] Specifically, Figure 3As shown, the first cross-correlation is performed, and the input data and the local sequence (length 32 to 64) are continuously cross-correlated, and the cross-correlation value is cached in the second cache RAM1. The maximum path is judged based on the first cross-correlation value. If the latest correlation value corr_cur is greater than the current first correlation peak value corr_peak, then the first correlation peak value corr_peak is updated to the current correlation value corr_cur, and the correlation peak value keeps the first counter peakCount cleared, and the first multipath determination threshold pathTH is set according to the latest correlation peak value and signal-to-noise ratio. The multipath discrimination threshold of the non-main path is set according to the main path power, and the threshold gain needs to be dynamically adjusted according to the signal-to-noise ratio: the default is 1 / 10 of the main path power. When the signal-to-noise ratio is high (above 20dB), the threshold gain is appropriately reduced to keep a safe distance from the background noise. When the signal-to-noise ratio is very low, the threshold gain can be appropriately increased to avoid finding a false path. If the latest correlation value corr_cur is less than the current first correlation peak value corr_peak, then the first correlation peak value is maintained by adding 1 to the first counter peakCount, and according to the first multipath determination threshold pathTH, in RAM1, with the correlation peak position as the center, the front path pre_path and the last path post_path are searched on both sides. If peakCount is greater than the specified first threshold TH1 (usually 32 to 64, the typical value is 48), the current correlation peak value is considered to be the maximum path, and the current pre_path and post_path are the final determined front path and last path. Then calculate the multipath delay, the distance preDist between the front path and the maximum path, and set the starting position of the FFT window.
[0066] In one of the embodiments, the communication data is an 802.11n or 802.11ac data frame; after precise timing using a first precise timing parameter, channel estimation is performed on the communication data to obtain a frequency domain channel estimation result; an IFFT transform is performed on the frequency domain channel estimation result to obtain time domain multipath information, the time domain multipath information is scanned to determine the maximum multipath delay, and the starting position of the FFT transform is set according to the maximum multipath delay.
[0067] Specifically, first scan the first half of the time domain multipath information to determine the data with the largest power as the main path; then, based on the first distance, search from both sides of the main path to the main path to obtain the front path and the last path, determine the second multipath delay, and set the starting position of the FFT transform of the channel training field and the DATA field.
[0068] Specifically, the frequency domain channel estimation result is obtained based on the cumulative average value of the OFDM symbols of the two L-LTFs of the communication data, and then the frequency domain channel estimation is padded with zeros, and an IFFT transform of length 64 is performed to obtain 64 time domain multipath information. First scan the first 32 time domain data, find the data with the largest power, and define it as the main path, whose position is maxPos. According to the SNR estimation value and the main path power, set the multipath search threshold pathTH. From the N positions before the main path maxPos-N, search again to the main path, and the data with power greater than the specified threshold pathTH is considered to be the front path. Among them, N is the distance preDist between the front path and the maximum path in the first precise timing plus an offset, which is usually 4 to 8. From the 64-N-1 positions after the main path maxPos+64-N-1, search again to the main path, and the data with power greater than the specified threshold pathTH is considered to be the last path. According to the front path and the last path, calculate the second multipath delay to set the starting position of the FFT window of the channel training field and the DATA field.
[0069] In one of the embodiments, the communication data is an 802.11ax data frame, and the channel training field is cross-correlated to obtain a second cross-correlation value, and the second cross-correlation value is stored in a second cache; when the second cross-correlation value in the second cache is greater than the second correlation peak value currently stored, the second correlation peak value is updated to the second cross-correlation value, and a second multipath determination threshold is set according to the updated correlation peak value and the signal-to-noise ratio; when the second cross-correlation value in the second cache is less than the second correlation peak value currently stored, the count value of the second counter is increased by 1, and when the count value in the second counter is greater than the second threshold value, according to the second multipath determination threshold, the second correlation peak value (maximum path) position is used as the center to search for the front path and the last path, and determine the second multipath delay; wherein the second threshold value is greater than the first threshold value.
[0070] It is worth noting that, in this embodiment, when the count value of the second timer is greater than the second threshold value, it indicates that the detection is finished, and when the count value of the second timer is less than the second threshold value, it indicates that the detection is in progress.
[0071] Specifically, Figure 4As shown, since the FFT length of 802.11ax is 256, its time domain cross-correlation window length can reach up to 256 at most, which has stronger anti-noise performance and can detect multipaths with longer delays. Time domain cross-correlation is performed again here. The difference from the cross-correlation in stage 1 is that the correlation window length is longer and the threshold TH1 of the correlation peak holding counter peakCount is larger (in order to search for multipaths with longer delays). The input data and the local sequence (length 128 to 160) are continuously cross-correlated, and the cross-correlation value is cached in the second cache RAM1. The maximum path is judged based on the cross-correlation value. If the latest correlation value corr_cur is greater than the current second correlation peak corr_peak, then the correlation peak corr_peak is updated to the current correlation value corr_cur, and the correlation peak holding counter peakCount is cleared, and the second multipath judgment threshold pathTH is set based on the latest correlation peak and signal-to-noise ratio. If the latest correlation value corr_cur is less than the current second correlation peak value corr_peak, then the correlation peak value is maintained by the second counter peakCount plus 1, and according to the second multipath determination threshold pathTH, in RAM1, with the correlation peak position as the center, the front path pre_path and the last path post_path are searched on both sides. If peakCount is greater than the specified second threshold TH2 (typical value is 64), it is considered that the current correlation peak is the maximum path, and the current pre_path and post_path are the final front path and the last path. Then the second multipath delay is calculated, and the FFT window start position of the channel training field and the DATA field is set.
[0072] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0073] In one embodiment, Figure 5 As shown, a precise timing device for a wireless local area network is provided, comprising: a data receiving module 502, a first precise timing parameter acquisition module 504, and a second precise timing parameter acquisition module 506, wherein:
[0074] The data receiving module 502 is used to receive communication data and store it in a first cache, and obtain the starting position of the L-LTF field in the communication data according to the rough timing of the communication data;
[0075] The first precise timing parameter acquisition module 504 is used to perform a cross-correlation calculation on the communication data and the pre-stored local sequence at the starting position to obtain a first cross-correlation value, and store the first cross-correlation value in the second cache; perform a maximum path calculation according to the first cross-correlation value in the second cache, and output a first precise timing parameter; the first precise timing parameter includes: a first multipath delay, a first distance between the foremost path and the maximum path, and a position of the foremost path;
[0076] The second precise timing parameter acquisition module 506 is used to determine the precise timing strategy according to the wireless local area network protocol type and obtain the second precise timing parameters; the second precise timing parameters include: the second multipath delay, the position of the foremost path and the maximum path.
[0077] The precise timing adjustment module 508 is configured to precisely time the SIG field of the communication data according to the first precise timing parameter, and precisely time the DATA field of the communication data according to the second precise timing parameter.
[0078] In one of the embodiments, the first precise timing parameter acquisition module 504 is also used to update the first correlation peak value to the first mutual correlation value when the first mutual correlation value in the second cache is greater than the currently stored first correlation peak value, and set the first multipath determination threshold according to the updated correlation peak value and the signal-to-noise ratio; when the first mutual correlation value in the second cache is less than the currently stored first correlation peak value, add 1 to the count value of the first counter, and when the count value in the first counter is greater than the first threshold, according to the first multipath determination threshold, search for the front path and the last path with the first correlation peak position as the center, and determine the first multipath delay and the first distance between the front path and the maximum path.
[0079] In one of the embodiments, the communication data is an 802.11n or 802.11ac data frame; after precise timing using a first precise timing parameter, channel estimation is performed on the communication data to obtain a frequency domain channel estimation result; an IFFT transform is performed on the frequency domain channel estimation result to obtain time domain multipath information, the time domain multipath information is scanned to determine the maximum multipath delay, and the starting position of the FFT transform is set according to the maximum multipath delay.
[0080] Specifically, first scan the first half of the time domain multipath information to determine the data with the largest power as the main path; then, based on the first distance, search from both sides of the main path to the main path to obtain the front path and the last path, determine the maximum second multipath delay, and set the starting position of the FFT transform of the channel training field and the DATA field according to the maximum multipath delay.
[0081] In one embodiment, the communication data is an 802.11ax data frame, and the second precise timing parameter acquisition module 506 is also used to perform cross-correlation calculation on the channel training field to obtain a second cross-correlation value, and store the second cross-correlation value in the second cache; when the second cross-correlation value in the second cache is greater than the second correlation peak value currently stored, the second correlation peak value is updated to the second cross-correlation value, and the second multipath determination threshold is set according to the updated correlation peak value and the signal-to-noise ratio; when the second cross-correlation value in the second cache is less than the second correlation peak value currently stored, the count value of the second counter is increased by 1, and when the count value in the second counter is greater than the second threshold value, according to the second multipath determination threshold, the second correlation peak position (maximum path) is used as the center to search for the front path and the last path, and determine the second multipath delay; wherein the second threshold value is greater than the first threshold value. The specific definition of the precise timing device of the wireless local area network can refer to the definition of the precise timing method of the wireless local area network in the above text, which will not be repeated here. Each module in the precise timing device of the above wireless local area network can be implemented in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above modules.
[0082] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a precise timing method of a wireless local area network is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0083] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0084] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.
[0085] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in the above embodiment are implemented.
[0086] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0087] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0088] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A precise timing method for wireless local area network, It is characterized in that The method comprises: receiving communication data and storing it in a first buffer, and obtaining a starting position of an L-LTF field in the communication data based on coarse timing of the communication data; At the starting position, performing cross-correlation calculation on the communication data and a pre-stored local sequence to obtain a first cross-correlation value, and storing the first cross-correlation value in a second cache; According to the first cross-correlation value in the second cache, a maximum path calculation is performed to output a first precise timing parameter; the first precise timing parameter includes: a first multipath delay, a first distance between the foremost path and the maximum path, and a position of the foremost path; Determine a precise timing strategy according to the wireless local area network protocol type to obtain a second precise timing parameter; the second precise timing parameter includes: a second multipath delay, a position of a frontmost path, and a maximum path; The SIG field of the communication data is precisely timed according to the first precise timing parameter, and the DATA field of the communication data is precisely timed according to the second precise timing parameter.
2. The method according to claim 1, It is characterized in that The communication data is an 802.11n or 802.11ac data frame; Determining a precise timing strategy according to the frame length of the communication data includes: After precise timing adjustment is performed using the first precise timing parameter, channel estimation is performed on the communication data to obtain a frequency domain channel estimation result; Perform IFFT transformation on the frequency domain channel estimation result to obtain time domain multipath information, scan the time domain multipath information, determine the second precise timing parameter, and set the starting position of the FFT transformation of the DATA field accordingly.
3. The method according to claim 2, It is characterized in that Performing channel estimation on the communication data to obtain a frequency domain channel estimation result includes: A frequency domain channel estimation result is obtained according to the accumulated average value of the OFDM symbols of the two L-LTFs of the communication data.
4. The method according to claim 2, It is characterized in that Scanning the time domain multipath information to determine a second precise timing parameter, and setting a starting position of a DATA field FFT transform based on the second precise timing parameter, including: Scan the first half of the time domain multipath information to determine the data with the largest power as the main path; Starting from the main path, searching forward and backward respectively according to the first distance to obtain the frontmost path and the rearmost path, and setting the starting position of the FFT transformation according to the frontmost path and the rearmost path.
5. The method according to claim 4, It is characterized in that According to the first distance, searching forward and backward respectively to obtain the frontmost path and the rearmost path includes: Adding a preset offset to the first distance to obtain a search distance; The search distance is searched forward and backward to determine the frontmost path and the rearmost path.
6. The method according to claim 1, It is characterized in that The method further comprises: performing maximum diameter calculation according to the first cross-correlation value in the second buffer and outputting a first precise timing parameter, including: When the first mutual correlation value in the second cache is greater than the currently stored first correlation peak value, updating the first correlation peak value to the first mutual correlation value, and setting a first multipath determination threshold according to the updated correlation peak value and the signal-to-noise ratio; When the first mutual correlation value in the second cache is less than the first correlation peak value currently stored, the count value of the first counter is increased by 1; when the count value in the first counter is greater than the first threshold value, the first multipath determination threshold is used, the first correlation peak position is used as the center, and the front path and the last path are searched, and the first multipath delay, the first distance between the front path and the maximum path, and the position of the front path are determined.
7. The method according to claim 6, It is characterized in that The communication data is an 802.11ax data frame; Determining a precise timing strategy according to the frame length of the communication data includes: Performing cross-correlation calculation on the channel training field to obtain a second cross-correlation value, and storing the second cross-correlation value in a second cache; When the second mutual correlation value in the second cache is greater than the second correlation peak value currently stored, updating the second correlation peak value to the second mutual correlation value, and setting a second multipath determination threshold according to the updated correlation peak value and the signal-to-noise ratio; When the second mutual correlation value in the second cache is less than the second correlation peak value currently stored, the count value of the second counter is increased by 1; when the count value in the second counter is greater than a second threshold, the first path and the last path are searched for and the second multipath delay is determined based on the second multipath determination threshold and with the second correlation peak position as the center; wherein the second threshold is greater than the first threshold.
8. A precise timing device for a wireless local area network, It is characterized in that The device comprises: A data receiving module, used for receiving communication data, storing the communication data in a first buffer, and obtaining a starting position of an L-LTF field in the communication data according to coarse timing of the communication data; A first precise timing parameter acquisition module is used to perform a cross-correlation calculation on the communication data and a pre-stored local sequence at the starting position to obtain a first cross-correlation value, and store the first cross-correlation value in a second cache; perform a maximum path calculation according to the first cross-correlation value in the second cache, and output a first precise timing parameter; the first precise timing parameter includes: a first multipath delay, a first distance between the foremost path and the maximum path, and a position of the foremost path; A second precise timing parameter acquisition module is used to determine a precise timing strategy according to the wireless local area network protocol type to obtain a second precise timing parameter; the second precise timing parameter includes: a second multipath delay, a front path, and a maximum path position; The precise timing module is used to precisely time the SIG field of the communication data according to the first precise timing parameter, and to precisely time the DATA field of the communication data according to the second precise timing parameter.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Underwater acoustic communication frame synchronization method adopting linear frequency modulation signal
CN115277333A
Time-reversal communication systems
US10327213B1
Wireless local area network transmission method and transmission device
US20170134983A1
Wireless communication device and method therein for time synchronization in a wireless communication network
US20170373898A1
Robust method and device for estimating frequency offset in orthogonal frequency division multiplexing communication
US20220123851A1
