A GPU-based method for joint estimation of time-frequency difference parameters of communication signals
By using GPU parallel computing and CUDA technology in the estimation of time-frequency difference parameters of communication signals, the problem of increased time-consuming calculations by traditional CPUs is solved, efficient time-frequency difference parameter estimation is achieved, and the timeliness requirements of the real-time positioning system are met.
Patent Information
- Application Number
- CN202110580352.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-05-26
AI Technical Summary
The traditional communication signal time-frequency difference parameter estimation system cannot meet the needs of real-time positioning systems due to the serial mode of CPU calculation, which causes the processing time to increase linearly as the amount of data increases. The performance is particularly obvious when calculating the amount of data.
GPU is used to implement parallel computing, and CUDA kernel function is used to jointly estimate communication signal data in segmented time-frequency difference parameters. Parallel reduction algorithm and shared memory strategy are used to calculate time-frequency difference parameters, and fast Fourier transform and shift conjugate are used. Techniques such as point multiplication improve calculation efficiency.
It significantly improves the computational efficiency of time-frequency difference parameter estimation, achieves timeliness far exceeding that of the CPU system while maintaining the same accuracy, and meets the needs of the real-time positioning system.
Smart Images

Figure CN113567919B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication positioning technology, and in particular to a GPU implementation method for jointly estimating time-frequency difference parameters of communication signals. Background Art
[0002] TDOA / FDOA indicators can be used in joint positioning systems. The estimation accuracy of TDOA and FDOA directly affects the positioning accuracy, and the processing speed directly affects the real-time performance of the positioning system. Traditional positioning systems are implemented using CPUs, and the processing time of this method increases linearly with the amount of data. When there is no prior condition for the time-frequency difference value in the usage scenario, it is necessary to estimate the time-frequency difference parameters with more than 2G data volume, and the CPU mode positioning system can hardly be used in real time. With the great development in the field of high-performance computing (HPC), especially the emergence of GPU-CPU heterogeneous architecture, it has become possible to directly coordinate linear control and concurrent computing of big data.
[0003] The traditional parameter estimation process uses a serial CPU computing architecture. When the amount of data is large, serial computing will be very time-consuming, and the computing time will increase linearly with the change of the computing amount, so the time-consuming problem needs to be solved urgently. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a GPU implementation method for jointly estimating time-frequency difference parameters of communication signals.
[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0006] A GPU implementation method for jointly estimating time-frequency difference parameters of a communication signal comprises the following steps:
[0007] S1, set the number of segmentation times for joint estimation, and copy the communication signal data from the CPU to the GPU memory;
[0008] S2, using the CUDA kernel function to perform segmented time-frequency difference parameter joint estimation on the communication signal data according to the number of segmentations set in step S1;
[0009] S3, transmitting the time-frequency difference parameter joint estimation result obtained in step S2 back to the CPU memory, and releasing the video memory resources.
[0010] Furthermore, the step S1 specifically includes the following sub-steps:
[0011] S11, estimating the memory size required for the joint estimation of the current time-frequency difference parameters;
[0012] S12, obtaining GPU performance data;
[0013] S13, determining the number of segmentations for joint estimation according to the memory size estimated in step S11 and the GPU performance data obtained in step S12;
[0014] S14, allocate GPU memory;
[0015] S15, copying the communication signal data from the CPU to the GPU memory allocated in step S14.
[0016] Furthermore, the calculation formula for the number of segmentation times is:
[0017]
[0018] Among them, m is the number of segments, N is the data length, and f s is the time search range, t r is the data sampling rate, and Y is the memory space of the GPU.
[0019] Furthermore, the step S2 specifically includes the following sub-steps:
[0020] S21, using GPU parallel mode to perform shift conjugate point multiplication on the primary satellite signal and the neighboring satellite signal according to the set number of segmentations;
[0021] S22, performing a CUDA-based fast Fourier transform on the shifted conjugate dot multiplication result obtained in step S21;
[0022] S23, calculating the power spectrum value within the frequency domain search range for the fast Fourier transform result obtained in step S22;
[0023] S24. Use a parallel reduction algorithm and a shared memory strategy to calculate the maximum value and the mean value of the power spectrum value obtained in step S23 to obtain a time-frequency difference parameter estimation value and a reference SNR value.
[0024] Furthermore, the step S21 specifically includes the following sub-steps:
[0025] S211, shifting the neighboring satellite signal y by R-M+1 times according to the time difference search range; wherein M is the time difference search start point index, and R is the time difference search end point index;
[0026] S212, perform conjugate calculation on the shifted neighboring satellite signals in sequence to obtain the shifted conjugate matrix of the neighboring satellite signals, which is expressed as
[0027]
[0028] Among them, B is the shift conjugate matrix of the neighboring satellite signal, is the signal data after a time shift corresponding to the neighboring satellite signal, and N is the data length;
[0029] S213, performing a dot product calculation on the shifted conjugate matrix of the neighboring satellite signal obtained in step S212 and the primary satellite signal to obtain a shifted conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal, which is expressed as
[0030]
[0031] Among them, C is the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal, A is the primary satellite signal, A=[x1 x2 x3… x N ].
[0032] Furthermore, step S21 further includes making each thread of the GPU correspond to each matrix element data in the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal, using a two-dimensional grid and a two-dimensional block to represent the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal, and establishing a correspondence between the row index and column index of the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal and its storage index position.
[0033] Furthermore, the step S22 specifically includes the following sub-steps:
[0034] S221, using the CUDA kernel function to call the cuFFTPlanMany function to generate FFTPlan;
[0035] S222, using the CUDA kernel function to call cufftExecZ2Z to calculate the fast Fourier transform result, expressed as:
[0036]
[0037] Wherein, D is the fast Fourier transform matrix, and FFT is the fast Fourier transform operation.
[0038] Furthermore, the step S23 specifically includes the following sub-steps:
[0039] S231, perform FFTShift on the fast Fourier transform result obtained in step S22, and move the zero-frequency component to the center of the spectrum, expressed as
[0040]
[0041] Among them, Shift_D is the FFTShift shift matrix;
[0042] S232, calculate the generalized power spectrum amplitude value according to the FFTShift shift matrix obtained in step S231, expressed as
[0043]
[0044] Wherein, E is the amplitude value of the generalized power spectrum, P is the starting position index of the frequency domain search, and Q is the ending position index of the frequency domain search.
[0045] Furthermore, the step S24 specifically includes the following sub-steps:
[0046] S241, copying the global memory to the shared memory, and calculating the maximum value or cumulative sum of the power spectrum values obtained in step S23 when loading the memory for the first time;
[0047] S242, according to the data length and the maximum number of threads supported by the GPU, the number of blocks is set, and the parallel reduction calculation is performed in each thread block using the single instruction multiple data flow mode, and the value finally obtained by the reduction is stored in the block index position of the result array, and the data length of the maximum number of threads is merged each time, and it is continuously iterated until it is merged into a value, and the index corresponding to the maximum value is obtained;
[0048] S243, calculating the estimated value of the time-frequency difference parameter according to the index corresponding to the maximum value obtained in step S242, and calculating the reference SNR value according to the obtained maximum value and the mean value of the generalized power spectrum amplitude value, expressed as
[0049] dto=i·1 / f s +t0=i·1 / f s +M·1 / f s =(M+i) / f s
[0050] dfo = j·f s / N+f0=j·f s / N+(-f s / 2+P·f s / N)=(j+P)·f s / Nf s / 2
[0051]
[0052] Among them, dto is the estimated value of the time difference parameter, dfo is the estimated value of the frequency difference parameter, (i,j) is the index corresponding to the maximum value, and f s is the sampling rate, f0 is the starting frequency of the frequency domain search range, t0 is the start time of the time difference search, M is the start point index of the time difference search, P is the start point index of the frequency difference search, e max is the maximum value of the generalized power spectrum amplitude, E mean is the mean value of the generalized power spectrum amplitude.
[0053] The present invention has the following beneficial effects:
[0054] The present invention greatly improves the time-frequency difference parameter estimation operation efficiency by making full use of the parallel computing capability of the GPU. Its timeliness far exceeds that of the original CPU system without changing the accuracy, thus greatly meeting the requirements of the current real-time positioning system. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a schematic diagram of the process of the present invention;
[0056] Figure 2 is a schematic diagram of a mutual fuzzy function in an embodiment of the present invention;
[0057] Figure 3 Schematic diagram of GPU segmented parameter estimation process in an embodiment of the present invention;
[0058] Figure 4 A schematic diagram of a protocol flow in an embodiment of the present invention;
[0059] Figure 5 Schematic diagram of a parallel processing acceleration ratio curve in an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0061] Reference Figure 1 The embodiment of the present invention provides a GPU implementation method for jointly estimating time-frequency difference parameters of a communication signal, comprising the following steps S1 to S3:
[0062] S1, set the number of segmentation times for joint estimation, and copy the communication signal data from the CPU to the GPU memory;
[0063] In this embodiment, step S1 specifically includes the following sub-steps:
[0064] S11, estimating the memory size required for the joint estimation of the current time-frequency difference parameters;
[0065] S12, obtaining GPU performance data;
[0066] S13, determining the number of segmentations to be jointly estimated according to the memory size estimated in step S11 and the GPU performance data obtained in step S12, the calculation formula is:
[0067]
[0068] Among them, m is the number of segments, N is the data length, and f s is the time search range, t r is the data sampling rate, Y is the memory space of GPU;
[0069] S14, allocate GPU memory;
[0070] S15, copying the communication signal data from the CPU to the GPU memory allocated in step S14.
[0071] S2, using the CUDA kernel function to perform segmented time-frequency difference parameter joint estimation on the communication signal data according to the number of segmentations set in step S1;
[0072] In this embodiment, when estimating the parameters of the communication signal, it is assumed that the signal transmitted by the target is intercepted by two receiving stations, namely x(t) and y(t). In addition to the signals s1(t) and s2(t), the receiving stations receive the noise n1(t) and n2(t) which are statistically independent of each other and are unrelated to the signals, which can be expressed as
[0073] x(t)=s1(t)+n1(t)
[0074]
[0075] Where A is the amplitude variation factor generated by different paths. Since the target radiation source moves relative to the two receiving stations, there is a time offset τ0 and a frequency offset f between the two received signals. d0 .
[0076] The mutual ambiguity function of the two signals is defined as:
[0077]
[0078] Where X and Y are the Fourier transforms of the two signals x(t) and y(t), respectively, and τ is the time difference and frequency offset f of the two signals. d .
[0079] According to the definition, the mutual ambiguity function of the two signals at the receiving station can be obtained, which is expressed as
[0080]
[0081] From the definition of the fuzzy function, it can be seen that the fuzzy function is a time-frequency representation based on generalized cross-correlation. Each dimension can be regarded as a correlation operation. Therefore, the correlation of the signal directly determines the result of the cross-fuzzy function. In general, the signal and the noise, and the noise and the noise are independent of each other. Therefore, the accumulation result of the cross-fuzzy function of the same source signal is is much larger than other results. Therefore, when τ-D0=0, f d -fd0 = 0, the mutual fuzzy function reaches its maximum value, then τ = D0, f d =f d0 That is, the time difference and frequency difference between the two signals, and the time-frequency difference parameter estimation can be realized.
[0082] Typical mutual ambiguity functions are Figure 2 As shown in the figure, the two satellite uplink signals are correlated, and the correlation between the signal and the noise and other signals is very weak. Therefore, as long as T is long enough, the peak value of the mutual ambiguity function of the signal will be much larger than the peak value of the clutter and noise.
[0083] The mutual fuzzy function calculation process used in the present invention is to first calculate the search range t in the time domain according to the search range t in the time domain. r and sampling rate f s The time search range is calculated as n = tr*fs, and then the following three steps are executed in a loop to obtain the result of the mutual fuzzy function. Figure 3 As shown, it includes: 1) time shifting the reference signal, then performing conjugate calculation on it, and finally performing corresponding point multiplication on the target signal and the reference signal, which is the shifted conjugate point multiplication; 2) calculating the FFT result of the previous step; 3) calculating its amplitude value according to the FFT result, which is the power spectrum calculation process. 4) Finding the peak value of the mutual ambiguity function, and estimating the time difference and frequency difference of the two signals according to the index position corresponding to the peak value; 4) and calculating the mean value of the mutual ambiguity function matrix, and calculating the SNR signal-to-noise ratio according to the peak and mean results.
[0084] Step S2 specifically includes the following sub-steps:
[0085] S21, using GPU parallel mode to perform shift conjugate point multiplication on the primary satellite signal and the neighboring satellite signal according to the set number of segmentations;
[0086] Specifically, step S21 includes the following sub-steps:
[0087] S211, assuming that the primary satellite signal is A = [x1 x2 x3 … x N ], the neighboring satellite signal is Y = [y1 y2 y3 … y N ], the signal length is N, the time difference search range corresponding index is [M~R], M and R are integers, and |M|≤N, |R|≤N, M is the time difference search start point index, R is the time difference search end point index, and the neighboring satellite signal is shifted R-M+1 times according to the time difference search range;
[0088] S212, perform conjugate calculation on the shifted neighboring satellite signals in sequence to obtain the shifted conjugate matrix B of the neighboring satellite signals, which is expressed as
[0089]
[0090] Among them, B is the shift conjugate matrix of the neighboring satellite signal, b i,j is the signal data after a time shift corresponding to the neighboring satellite signal, N is the data length; where b i,j The relationship between the result and the original signal is expressed as follows: [n] Indicates the original reference signal sampling value corresponding to the index range of 1 to N. The conversion relationship is
[0091] b i,j =y [j-(M+i-1)]
[0092]
[0093] Among them, y [n] Represents the signal sampling value at the corresponding position after the shift, n represents the shift index, for example n = 1-MR, when the calculated result of n is less than 1, then the index is increased by N, then the index corresponding to the original signal value after the shift is y 1-M-R+N ;y n+N represents the n+Nth value of the neighboring satellite signal Y, y n-N Indicates the nNth value of the neighboring satellite signal Y.
[0094] S213, performing dot product calculation on the shifted conjugate matrix of the neighboring satellite signal obtained in step S212 and each row of matrix elements in the primary satellite signal to obtain a shifted conjugate dot product matrix C of the primary satellite signal and the neighboring satellite signal, which is expressed as
[0095]
[0096] Among them, C is the shifted conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal.
[0097] After obtaining the shift conjugate dot product matrix C of the primary satellite signal and the neighboring satellite signal, the present invention corresponds each thread of the GPU to each matrix element data in the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal, uses a two-dimensional grid and a two-dimensional block to represent the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal, and establishes a corresponding relationship between the row index and column index of the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal and its storage index position, which is expressed as
[0098] tidx=iy*N+ix
[0099] Among them, tidx is the index position of the shifted conjugate dot product matrix C, ix is the row index of the shifted conjugate dot product matrix C, and iy is the column index of the shifted conjugate dot product matrix C.
[0100] Each thread calculates the conjugate dot multiplication of a set of data, expressed as
[0101]
[0102] Among them, c m,n represents the (mn)th value of the shifted conjugate dot product matrix C, Re() represents taking the real part of the complex number, Im() represents taking the imaginary part of the complex number, x m represents the mth value of the primary satellite signal, Indicates the [1-Mmn]th value of the neighboring satellite signal. For the position index conversion relationship, refer to the description in step S212.
[0103] S22, performing a CUDA-based fast Fourier transform on the shifted conjugate dot multiplication result obtained in step S21;
[0104] Specifically, the present invention uses CUDA-based fast Fourier transform (FFT) to calculate the FFT result of each row of the shifted conjugate point product matrix C.
[0105] Step S22 specifically includes the following sub-steps:
[0106] S221, using the CUDA kernel function to call the cuFFTPlanMany function to generate FFTPlan;
[0107] S222, using the CUDA kernel function to call cufftExecZ2Z to calculate the fast Fourier transform result, expressed as:
[0108]
[0109] Wherein, D is the fast Fourier transform matrix, and FFT is the fast Fourier transform operation.
[0110] S23, calculating the power spectrum value within the frequency domain search range for the fast Fourier transform result obtained in step S22;
[0111] Specifically, step S23 includes the following sub-steps:
[0112] S231, perform FFTShift on the fast Fourier transform result obtained in step S22, and move the zero-frequency component to the center of the spectrum, expressed as
[0113]
[0114] Among them, Shift_D is the FFTShift shift matrix;
[0115] S232, setting the frequency domain search range to (P, Q), calculating the square of the absolute value of the P-Q column of the FFTShift shift matrix obtained in step S231, and obtaining the generalized power spectrum amplitude value, expressed as
[0116]
[0117] Among them, E is the amplitude value of the generalized power spectrum, P is the frequency difference search starting point index, and Q is the frequency difference search end point index.
[0118] S24. Using a parallel reduction algorithm and a shared memory strategy, the maximum value of the power spectrum value obtained in step S23 is calculated to obtain a time-frequency difference parameter estimation value and a reference SNR value.
[0119] Specifically, step S24 includes the following sub-steps:
[0120] S241, copying the global memory to the shared memory, and calculating the maximum value of the power spectrum value obtained in step S23 when loading the memory for the first time;
[0121] S242, in each thread block, a single instruction multiple data stream mode is used to perform parallel reduction calculations, such as Figure 4 As shown, by continuously iterating, the value finally obtained by reduction is stored at the position of index 0, and the value and its corresponding index (i, j) are obtained;
[0122] S243, calculating the estimated value of the time-frequency difference parameter according to the index (i, j) corresponding to the maximum value obtained in step S242, and calculating the estimated value of the time-frequency difference parameter according to the obtained maximum value e max and mean E mean =E sum / (Q-P+1)·(R-M+1) can be used to calculate the reference SNR value, which is expressed as
[0123]
[0124] Among them, dto is the estimated value of the time difference parameter, dfo is the estimated value of the frequency difference parameter, (i,j) is the index corresponding to the maximum value, and f s is the sampling rate, f0 is the starting frequency of the frequency domain search range, t0 is the start time of the time difference search, the time difference search index range is (M, R), the frequency difference search index range is (P, Q), e max is the maximum value of matrix E in step S232.
[0125] SNR is an indicator for evaluating the performance of correlation results. The larger the SNR, the better the correlation and the higher the credibility of the time-frequency difference. Conversely, the smaller the SNR, the worse the correlation. The SNR calculation method is as follows:
[0126] Then the final time-frequency difference parameter estimation SNR result is e max is the maximum value of the mutual fuzzy matrix E, E mean is the mean of the mutual fuzzy matrix,
[0127] S3, transmitting the time-frequency difference parameter joint estimation result obtained in step S2 back to the CPU memory, and releasing the video memory resources.
[0128] The beneficial effects of the GPU implementation method for joint estimation of time-frequency difference parameters of the present invention are analyzed and explained in conjunction with specific examples.
[0129] Experimental conditions: data sampling rate f s =1048576, data length N = 1048576, frequency difference search range is f r =10kHz, time difference range t r =2us~10ms, the serial algorithm and the parallel algorithm are used for processing respectively to obtain the time-frequency difference parameters, and the time consumption is shown in Table 1.
[0130] Table 1. Time consumption of serial and parallel processing
[0131]
[0132] Where, data volume = data length * (time range / (1 / sampling rate)) = N·t r ·f s , and 1M=1024*1024, 1G=1024*1024*1024. The GPU used in this experiment is NVIDIA Tesla P100-PCIE-16GB, and its performance is shown in Table 2.
[0133] Table 2 Tesla P100 main performance parameters
[0134]
[0135] like Figure 5 The figure shows the acceleration ratio curve of parallel processing. It can be seen that with the increase of data volume, the acceleration ratio increases linearly. Compared with the serial algorithm, the processing speed of parallel time-frequency difference parameter estimation has been greatly improved.
[0136] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0137] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0139] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0140] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A GPU-implemented method for jointly estimating time-frequency difference parameters of communication signals, characterized in that: The following steps are involved: S1, set the number of segmentation times for joint estimation, and copy the communication signal data from the CPU to the GPU memory; S2, using the CUDA kernel function to perform segmented time-frequency difference parameter joint estimation on the communication signal data according to the number of segmentations set in step S1; When estimating the parameters of the communication signal, it is assumed that the signal transmitted by the target is intercepted by two receiving stations, namely x(t) and y(t). In addition to the signals s1(t) and s2(t), the receiving stations also receive the noise n1(t) and n2(t) which are statistically independent of each other and are unrelated to the signals, expressed as x(t)=s1(t)+n1(t) Where A is the amplitude variation factor generated by different paths. Since the target radiation source moves relative to the two receiving stations, there is a time offset τ0 and a frequency offset f between the two received signals. d0 ; The mutual ambiguity function of the two signals is defined as: Where X and Y are the Fourier transforms of the two signals x(t) and y(t), respectively, and τ is the time difference and frequency offset f of the two signals. d ; According to the definition, the mutual ambiguity function of the two signals at the receiving station can be obtained, which is expressed as The step S2 specifically includes the following sub-steps: S21, using GPU parallel mode to perform shift conjugate point multiplication on the primary satellite signal and the neighboring satellite signal according to the set number of segmentation times; the step S21 specifically includes the following sub-steps: S211, assuming that the primary satellite signal is A = [x1 x2 x3 … x N ], the neighboring satellite signal is Y = [y1 y2 y3 … y N ], the signal length is N, the time difference search range corresponds to [M~R], M and R are integers, and |M|≤N, |R|≤N, M is the time difference search start point index, R is the time difference search end point index, and the neighboring satellite signal is shifted R-M+1 times according to the time difference search range; S212, perform conjugate calculation on the shifted neighboring satellite signals in sequence to obtain the shifted conjugate matrix B of the neighboring satellite signals, which is expressed as Among them, B is the shift conjugate matrix of the neighboring satellite signal, b i,j is the signal data after a time shift corresponding to the neighboring satellite signal, N is the data length; where b i,j The relationship between the result and the original signal is expressed as follows: [n] Indicates the original reference signal sampling value corresponding to the index range of 1 to N. The conversion relationship is b i,j =y [j-(M+i-1)] Among them, y [n] Represents the signal sampling value at the corresponding position after the shift, n represents the shift index, for example n = 1-MR, when the calculated result of n is less than 1, then the index is increased by N, then the index corresponding to the original signal value after the shift is y 1-M-R+N ;y n+N represents the n+Nth value of the neighboring satellite signal Y, y n-N Indicates the nNth value of the neighboring satellite signal Y; S213, performing dot product calculation on the shifted conjugate matrix of the neighboring satellite signal obtained in step S212 and each row of matrix elements in the primary satellite signal to obtain a shifted conjugate dot product matrix C of the primary satellite signal and the neighboring satellite signal, which is expressed as Among them, C is the shifted conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal; After obtaining the shift conjugate dot product matrix C of the primary satellite signal and the neighboring satellite signal, each thread of the GPU is corresponded to each matrix element data in the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal. The shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal is represented by a two-dimensional grid and a two-dimensional block. The corresponding relationship between the row index and column index of the shift conjugate dot product matrix of the primary satellite signal and the neighboring satellite signal and its storage index position is established, which is expressed as: tidx=iy*N+ix Among them, tidx is the index position of the shifted conjugate dot product matrix C, ix is the row index of the shifted conjugate dot product matrix C, and iy is the column index of the shifted conjugate dot product matrix C; Each thread calculates the conjugate dot multiplication of a set of data, expressed as Among them, c m,n represents the (m, n)th value of the shifted conjugate dot product matrix C, Re() represents taking the real part of the complex number, Im() represents taking the imaginary part of the complex number, x m Indicates the mth value of the primary star signal, y [1-M-m-n] Indicates the [1-Mmn]th value of the neighboring satellite signal. For the position index conversion relationship, refer to the description in step S212; S22, performing a CUDA-based fast Fourier transform on the shifted conjugate dot multiplication result obtained in step S21; S23, calculating the power spectrum value within the frequency domain search range for the fast Fourier transform result obtained in step S22; S24, using a parallel reduction algorithm and a shared memory strategy to calculate the maximum value and the mean value of the power spectrum value obtained in step S23, and obtain a time-frequency difference parameter estimation value and a reference SNR value; S3, transmitting the time-frequency difference parameter joint estimation result obtained in step S2 back to the CPU memory, and releasing the video memory resources.
2. The method for jointly estimating the time-frequency difference parameters of communication signals using a GPU according to claim 1, characterized in that: The step S1 specifically includes the following sub-steps: S11, estimating the memory size required for the joint estimation of the current time-frequency difference parameters; S12, obtaining GPU performance data; S13, determining the number of segmentations for joint estimation according to the memory size estimated in step S11 and the GPU performance data obtained in step S12; S14, allocate GPU memory; S15, copying the communication signal data from the CPU to the GPU memory allocated in step S14.
3. The method for jointly estimating the time-frequency difference parameters of communication signals using a GPU according to claim 2, characterized in that: The calculation formula for the number of segments is: Among them, m is the number of segments, N is the data length, and f s is the time search range, t r is the data sampling rate, M G The memory space of the GPU.
4. The method for jointly estimating the time-frequency difference parameters of communication signals using a GPU according to claim 1, characterized in that: The step S22 specifically includes the following sub-steps: S221, using the CUDA kernel function to call the cuFFTPlanMany function to generate FFTPlan; S222, using the CUDA kernel function to call cufftExecZ2Z to calculate the fast Fourier transform result, expressed as: Wherein, D is the fast Fourier transform matrix, and FFT is the fast Fourier transform operation.
5. The method for jointly estimating the time-frequency difference parameters of communication signals using a GPU according to claim 1, characterized in that: The step S23 specifically includes the following sub-steps: S231, perform FFTShift on the fast Fourier transform result obtained in step S22, and move the zero-frequency component to the center of the spectrum, expressed as Among them, Shift_D is the FFTShift shift matrix; S232, calculate the generalized power spectrum amplitude value according to the FFTShift shift matrix obtained in step S231, expressed as Wherein, E is the amplitude value of the generalized power spectrum, P is the starting position index of the frequency domain search, and Q is the ending position index of the frequency domain search.
6. The method for jointly estimating the time-frequency difference parameters of communication signals using a GPU according to claim 1, characterized in that: The step S24 specifically includes the following sub-steps: S241, copying the global memory to the shared memory, and calculating the maximum value of the power spectrum value obtained in step S23 when loading the memory for the first time; S242, according to the data length and the maximum number of threads supported by the GPU, the number of blocks is set, and the parallel reduction calculation is performed in each thread block using the single instruction multiple data flow mode, and the value finally obtained by the reduction is stored in the block index position of the result array, and the data length of the maximum number of threads is merged each time, and it is continuously iterated until it is merged into a value, and the index corresponding to the maximum value is obtained; S243, calculating the estimated value of the time-frequency difference parameter according to the index corresponding to the maximum value obtained in step S242, and calculating the reference SNR value according to the obtained maximum value and the mean value of the generalized power spectrum amplitude value, expressed as dto=i·1 / f s +t0=i·1 / f s +M·1 / f s =(M+i) / f s dfo=j·f s / N+f0=j·f s / N+(-f s / 2+P·f s / N)=(j+P)·f s / N-f s / 2 Among them, dto is the estimated value of the time difference parameter, dfo is the estimated value of the frequency difference parameter, (i,j) is the index corresponding to the maximum value, and f s is the sampling rate, f0 is the starting frequency of the frequency domain search range, t0 is the start time of the time difference search, M is the start point index of the time difference search, P is the start point index of the frequency difference search, e max is the maximum value of the generalized power spectrum amplitude, E mean is the mean value of the generalized power spectrum amplitude.
