Gain flatness compensation method of millimeter wave signal and related equipment
By determining the in-band envelope value in the millimeter wave signal spectrum and performing interpolation processing, and determining the filter coefficients with the compensation reference value, the gain flatness compensation of millimeter wave signal in the digital domain is achieved, and the gain flatness compensation accuracy in the prior art is solved The problem of poor performance improves compensation accuracy.
Patent Information
- Application Number
- CN202411167595.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-12
AI Technical Summary
The existing millimeter wave measurement signal gain flatness compensation method has poor accuracy, mainly due to the error problems introduced by different electronic devices in the compensation process.
By determining the in-band envelope value based on the spectrum of the target millimeter wave signal, interpolation processing is performed to obtain signal interpolation data, and then determining the filter coefficient based on the compensation reference value and signal interpolation data is achieved to achieve gain flatness compensation in the digital domain, avoiding dependence on specific Electronics.
The accuracy of gain flatness compensation for millimeter wave signal is improved. Gain flatness compensation does not need to rely on specific electronic devices, avoiding physical limitations brought by electronic devices and improving compensation accuracy.
Smart Images

Figure CN118944772A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a gain flatness compensation method for millimeter wave signals and related equipment. Background Art
[0002] Millimeter wave measurement signals refer to broadband signals generated in the millimeter wave frequency band, which are used to test and evaluate communication systems, components and their performance. In the current gain flatness compensation method for measurement signals, gain flatness compensation is usually performed through specific electronic devices. However, different types of electronic devices may introduce other errors during compensation, resulting in poor compensation accuracy of gain flatness compensation.
[0003] Therefore, in the related art, there is a problem that the compensation accuracy of the gain flatness compensation of the millimeter wave measurement signal is poor. Summary of the invention
[0004] Based on the above problems, in order to solve the problem of poor compensation accuracy of gain flatness compensation of millimeter wave measurement signals, an embodiment of the present application provides a gain flatness compensation method for millimeter wave signals and related equipment.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a gain flatness compensation method for a millimeter wave signal, comprising:
[0007] Determining an in-band envelope value of the target millimeter wave signal according to the frequency spectrum of the target millimeter wave signal;
[0008] Performing interpolation processing on the in-band envelope value of the target millimeter wave signal to obtain signal interpolation data; the signal interpolation data is used to represent the numerical change profile of the in-band envelope value;
[0009] Performing compensation processing on the signal interpolation data to obtain a compensation reference value;
[0010] Determining a filter coefficient based on the compensation reference value, the signal interpolation data, and the frequency spectrum of the target millimeter wave signal;
[0011] Gain flatness compensation is performed on the target millimeter wave signal using the filter coefficient.
[0012] In a possible implementation manner, determining a filter coefficient based on the compensation reference value, the signal interpolation data, and the spectrum of the target millimeter wave signal includes:
[0013] Based on the amount of the signal interpolation data, the compensation reference value is copied to obtain reference data;
[0014] Performing data splicing on the out-of-band data of the target millimeter wave signal, the signal interpolation data and the reference data to obtain complete interpolation data and complete reference data;
[0015] An inverse fast Fourier transform is performed on the complete interpolation data and the complete reference data to determine the filter coefficient.
[0016] In a possible implementation, the performing compensation processing on the signal interpolation data to obtain a compensation reference value includes:
[0017] Determine an average interpolation value of a plurality of the signal interpolation data; the average interpolation value is used to represent an average value of the plurality of the signal interpolation data;
[0018] Acquire the interval distance between each of the signal interpolation data and the average interpolation data;
[0019] The signal interpolation data whose interval distance is less than a preset threshold is averaged to obtain the compensation reference value.
[0020] In a possible implementation manner, determining the in-band envelope value of the target millimeter wave signal according to the frequency spectrum of the target millimeter wave signal includes:
[0021] Determining an in-band data acquisition coefficient based on the frequency spectrum of the target millimeter wave signal;
[0022] Determine, in the spectrum of the target millimeter wave signal, spectrum data whose signal strength is greater than the in-band data acquisition coefficient as in-band data of the target millimeter wave signal;
[0023] Based on the in-band data of the target millimeter wave signal, an in-band envelope value of the target millimeter wave signal is determined; the in-band envelope value is determined based on a plurality of local peak values of the in-band data.
[0024] In a possible implementation manner, determining the in-band envelope value of the target millimeter wave signal based on the in-band data of the target millimeter wave signal includes:
[0025] Determine whether the signal strength of the in-band data is the in-band envelope value according to adjacent in-band data corresponding to each of the plurality of in-band data; the adjacent in-band data represents two in-band data adjacent to and preceding the in-band data;
[0026] When the signal strength of the in-band data is greater than the signal strength of the adjacent in-band data, the signal strength of the in-band data is determined as the in-band envelope value.
[0027] In a possible implementation manner, performing interpolation processing on the in-band envelope value of the target millimeter wave signal to obtain signal interpolation data includes:
[0028] According to the spectrum of the target millimeter wave signal, determining an upper cutoff frequency point and a lower cutoff frequency point in the spectrum;
[0029] Based on a preset step size, constructing an interpolation index sequence from the lower cutoff frequency point to the upper cutoff frequency point; the interpolation index sequence is incremented based on the preset step size;
[0030] The in-band envelope value is interpolated by using a preset linear interpolation algorithm and the interpolation index sequence to obtain the signal interpolation data.
[0031] In a second aspect, an embodiment of the present application provides a gain flatness compensation system for a millimeter wave signal, comprising:
[0032] An envelope value determination module determines an in-band envelope value of the target millimeter wave signal according to the frequency spectrum of the target millimeter wave signal;
[0033] An interpolation processing module, used for performing interpolation processing on the in-band envelope value of the target millimeter wave signal to obtain signal interpolation data; the signal interpolation data is used to represent the numerical change profile of the in-band envelope value;
[0034] A first compensation module, used for performing compensation processing on the signal interpolation data to obtain a compensation reference value;
[0035] A filter coefficient determination module, configured to determine a filter coefficient based on the compensation reference value, the signal interpolation data, and the frequency spectrum of the target millimeter wave signal;
[0036] The second compensation module is used to perform gain flatness compensation on the target millimeter wave signal by using the filter coefficient.
[0037] In a possible implementation, the filter coefficient determination module is used to:
[0038] Based on the amount of the signal interpolation data, the compensation reference value is copied to obtain reference data;
[0039] Performing data splicing on the out-of-band data of the target millimeter wave signal, the signal interpolation data and the reference data to obtain complete interpolation data and complete reference data;
[0040] An inverse fast Fourier transform is performed on the complete interpolation data and the complete reference data to determine the filter coefficient.
[0041] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor, a memory, and a system bus;
[0042] The processor and the memory are connected via the system bus;
[0043] The memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to perform the operating steps of any possible gain flatness compensation method for millimeter wave signals in the first aspect.
[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any possible method for compensating the gain flatness of a millimeter-wave signal in the first aspect.
[0045] Compared with the related art, the present application has the following beneficial effects: the embodiment of the present application provides a gain flatness compensation method and related equipment for a millimeter wave signal. In the gain flatness compensation method for a millimeter wave signal provided in the embodiment of the present application, the corresponding in-band envelope value is first determined based on the spectrum of the target millimeter wave signal, and the main energy distribution of the millimeter wave signal can be reflected by the in-band envelope value. Subsequently, the in-band envelope value is further interpolated to obtain signal interpolation data to fill in the non-smooth values in the in-band envelope value, so as to more continuously and accurately characterize the signal power of the target millimeter wave signal. After that, the compensation reference value is determined based on the signal interpolation data, and the compensation accuracy of the gain flatness is improved by the compensation reference value. At the same time, the filter coefficient is determined by combining the spectrum of the target millimeter wave signal and the compensation reference value to complete the gain flatness compensation for the millimeter wave signal. This method can accurately realize the gain flatness compensation for the millimeter wave signal in the digital domain, and the gain flatness compensation does not need to rely on specific electronic devices to complete, so it will not be subject to the physical limitations of the electronic devices on the compensation accuracy, and the compensation accuracy of the gain flatness compensation of the millimeter wave signal is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 A schematic flow chart of a method for compensating gain flatness of a millimeter wave signal provided in an embodiment of the present application;
[0048] Figure 2A schematic diagram of a spectrum of a target millimeter wave signal provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram of a flow chart of a method for determining an in-band envelope value provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of a flow chart of a method for determining signal interpolation data provided in an embodiment of the present application;
[0051] Figure 5 A schematic diagram of a spectrum of signal interpolation data provided in an embodiment of the present application;
[0052] Figure 6 A flowchart of a method for determining a compensation reference value provided in an embodiment of the present application;
[0053] Figure 7 A flowchart of a method for determining a filter coefficient provided in an embodiment of the present application;
[0054] Figure 8 A schematic diagram of the structure of a gain flatness compensation system for millimeter wave signals provided in an embodiment of the present application;
[0055] Fig. 9 A schematic diagram of the structure of an electronic device for gain flatness compensation of millimeter wave signals provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0057] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "include" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right", etc. are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0058] As described above, in the current gain flatness compensation method for measuring signals, gain flatness compensation is usually performed through specific electronic devices (such as amplifiers, filters, and equalizers). However, in actual application scenarios, different electronic devices have different non-ideal characteristics, which will introduce other error problems when performing gain flatness compensation on the measuring signal. For millimeter wave measurement signals, the compensation accuracy of gain flatness compensation is poor.
[0059] Therefore, in the related art, there is a problem that the compensation accuracy of the gain flatness compensation of the millimeter wave measurement signal is poor.
[0060] In order to solve the above problems, the embodiment of the present application provides a gain flatness compensation method and related equipment for a millimeter wave signal. In the gain flatness compensation method for a millimeter wave signal provided in the embodiment of the present application, the corresponding in-band envelope value is first determined based on the spectrum of the target millimeter wave signal, and the main energy distribution of the millimeter wave signal can be reflected by the in-band envelope value. Subsequently, the in-band envelope value is further interpolated to obtain signal interpolation data to fill in the non-smooth values in the in-band envelope value, so as to more continuously and accurately characterize the signal power of the target millimeter wave signal. After that, the compensation reference value is determined based on the signal interpolation data, and the compensation accuracy of the gain flatness is improved by the compensation reference value. At the same time, the filter coefficient is determined by combining the spectrum of the target millimeter wave signal and the compensation reference value to complete the gain flatness compensation for the millimeter wave signal. This method can accurately realize the gain flatness compensation for the millimeter wave signal in the digital domain, and the gain flatness compensation does not need to rely on specific electronic devices to complete, so it will not be subject to the physical limitations of the electronic devices on the compensation accuracy, and the compensation accuracy of the gain flatness compensation of the millimeter wave signal is improved.
[0061] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] See also Figure 1 , which is a flow chart of a method for compensating the gain flatness of a millimeter wave signal provided in an embodiment of the present application, and includes the following steps:
[0063] S101: Determine an in-band envelope value of a target millimeter wave signal according to a frequency spectrum of the target millimeter wave signal.
[0064] The in-band envelope value can characterize the instantaneous amplitude of the target millimeter wave signal. Through the in-band envelope value of the signal, the key area of the gain unevenness in the signal can be estimated, so as to facilitate the subsequent gain flatness compensation for the target millimeter wave signal. Therefore, it is first necessary to determine the in-band envelope value of the target millimeter wave signal through the spectrum of the target millimeter wave signal.
[0065] The spectrum of the target millimeter wave signal can be acquired through a suitable high-frequency sampling device, such as a millimeter wave receiver, a spectrum analyzer, and a high-frequency sampling oscilloscope, etc. Different sampling devices can be used to acquire millimeter wave signals in different frequency ranges. The sampling device used when acquiring its spectrum can be determined according to the actual frequency acquisition requirements. This embodiment does not limit the acquisition method of the spectrum of the target millimeter wave signal and the acquisition device used.
[0066] In actual application scenarios, the wide spectrum of the millimeter wave signal may contain other irrelevant frequency components or noise. If the in-band envelope value is determined directly based on the spectrum of the millimeter wave signal, the obtained in-band envelope value may be interfered by the noise components. Therefore, in the process of determining the in-band envelope value based on the spectrum of the millimeter wave signal, it is necessary to extract the in-band data from the spectrum of the target millimeter wave signal and determine the in-band envelope value in combination with the in-band data of the millimeter wave signal, so as to ensure the accuracy of the in-band envelope value.
[0067] Next, the process of extracting in-band data and determining the in-band envelope value based on the in-band data will be introduced in conjunction with the drawings of specific embodiments.
[0068] See also Figure 2 and Figure 3 , Figure 2 A schematic diagram of a spectrum of a target millimeter wave signal provided in an embodiment of the present application, in Figure 2 In the spectrum diagram shown, the abscissa represents the signal frequency of the target millimeter wave signal, and the ordinate represents the signal strength of the target millimeter wave signal.
[0069] Figure 3 A flow chart of a method for determining an in-band envelope value provided in an embodiment of the present application. Figure 2 The spectrum diagram shown and Figure 3 The flowchart shown is combined for understanding.
[0070] Specifically, in Figure 3 In the flowchart shown, the process of determining the in-band envelope value based on the in-band data specifically includes the following steps:
[0071] S201: Determine an in-band data acquisition coefficient based on the frequency spectrum of the target millimeter wave signal.
[0072] In order to prevent the determination of the in-band envelope value from being affected by other noise in the spectrum, it is necessary to determine the in-band envelope value based on the in-band data of the target millimeter wave signal. Accordingly, the in-band data of the target millimeter wave signal needs to be obtained through the in-band acquisition coefficient in its spectrum.
[0073] In the process of signal processing, the upper and lower cutoff frequency regions in the spectrum are usually susceptible to interference from noise and other signals. If a larger cutoff frequency is selected as the in-band acquisition coefficient, these interfered edge regions may be included, resulting in reduced accuracy of signal processing. Therefore, in order to ensure the effectiveness and stability of signal processing, the in-band acquisition coefficient needs to select the smaller frequency of the upper and lower cutoff frequencies of the target millimeter wave signal as the in-band acquisition coefficient. Here, the in-band acquisition coefficient is set to coef1 combined with Figure 2 To introduce:
[0074] like Figure 2 Taking the spectrum diagram shown in the figure as an example, the value of the lower cutoff frequency in the figure is 0.9, and the value of the upper cutoff frequency is 0.4. Therefore, the value of 0.4 at the upper cutoff frequency needs to be used as the value of coef1, that is, the in-band acquisition coefficient is 0.4.
[0075] S202: Determine, in the frequency spectrum of the target millimeter wave signal, frequency spectrum data having a signal strength greater than the in-band data acquisition coefficient as in-band data of the target millimeter wave signal.
[0076] Correspondingly, after determining the in-band data acquisition coefficient, the value in the spectrum of the target millimeter-wave signal that is greater than the in-band data acquisition coefficient is determined as the in-band data, that is, the signal in the spectrum with a signal strength higher than the in-band data acquisition coefficient can be determined as the in-band data, and the in-band envelope value of the target millimeter-wave signal is determined based on the corresponding in-band data to avoid the influence of noise in the spectrum on the extraction of the in-band envelope value, thereby improving the extraction accuracy of the in-band envelope value.
[0077] Among them, since the in-band data are all data higher than the in-band data acquisition coefficient, they can better represent the actual effective signals in the target millimeter wave signal, thereby filtering out noise interference in the spectrum.
[0078] Here, the in-band data is set as bandData, and the spectrum of the target millimeter wave signal is set as data. Then the expression of the in-band data should be:
[0079] bandData=find(data>coef1);
[0080] The above formula can effectively determine the in-band data in the target millimeter wave signal spectrum. In particular, in a possible implementation, the X coordinate corresponding to the in-band data bandData can be recorded at the same time, and its X coordinate is set as bandIndex, so that the X coordinate of the in-band data can be used as an index indication of the in-band data. Figure 2 In the spectrum example shown, the signal strength value at the lower cutoff frequency is set to flIndex, and the signal strength value at the upper cutoff frequency is set to fhIndex. Since the in-band data is greater than the signal strength at the lower cutoff frequency, the first value of bancIndex is the signal strength value at flIndex where the lower cutoff frequency is located, and the last value is the signal strength value at fhIndex where the upper cutoff frequency is located. Figure 2 As shown, the circled area in the figure is the signal strength value of the in-band data corresponding to flIndex and fhIndex.
[0081] S203: Determine an in-band envelope value of the target millimeter wave signal based on the in-band data of the target millimeter wave signal; the in-band envelope value is determined based on a plurality of local peak values of the in-band data.
[0082] Further, after determining the in-band data of the target millimeter wave signal, the in-band envelope value of the target millimeter wave signal is determined by the local peak value in the in-band data. The in-band data includes multiple in-band data points, and the determination of the in-band envelope value needs to be completed by the local peak value in the multiple in-band data.
[0083] Specifically, the determination of the local peak needs to be based on the two adjacent in-band data before and after an in-band data. When the signal strength value of an in-band data is greater than the signal strength values of the two adjacent in-band data before and after it, it indicates that the in-band data belongs to an extreme point among the multiple in-band data of the target millimeter wave. Therefore, the signal strength value of the in-band data can be determined as the in-band envelope value. In actual application scenarios, the above-mentioned in-band envelope value determination process can be repeated multiple times to improve the accuracy of the in-band envelope value.
[0084] Here, the in-band envelope value is set to evpData, and the number of in-band data bandData is set to N. For bandData(k) among multiple in-band data, bandData(k) is compared with its two adjacent in-band data, namely bandData(k+1) and bandData(k-1). When bandData(k) is greater than bandData(k+1) and bandData(k-1), the signal strength value of bandData(k) is taken as the in-band envelope value evpData. The formula for obtaining the in-band envelope value can be specifically expressed by the following formula:
[0085] evpData=findpeaks(bandData);
[0086] Similarly, the X coordinate corresponding to evpData may be set to evpIndex as an index indication of the in-band envelope value.
[0087] S102: performing interpolation processing on the in-band envelope value of the target millimeter wave signal to obtain signal interpolation data; the signal interpolation data is used to represent a numerical change profile of the in-band envelope value.
[0088] After the in-band envelope value of the target millimeter wave signal is obtained, the in-band envelope value is further interpolated to obtain signal interpolation data.
[0089] In the process of interpolating the in-band envelope value, it is necessary to construct an interpolation index sequence based on the spectrum of the target millimeter wave signal, and interpolate the in-band envelope value through the interpolation index sequence and a preset linear interpolation algorithm to obtain signal interpolation data. Next, the process of interpolating the in-band envelope value to obtain signal interpolation data will be introduced in conjunction with the drawings of specific embodiments.
[0090] See also Figure 4 , which is a flow chart of a method for determining signal interpolation data provided by an embodiment of the present application, and specifically includes the following steps:
[0091] S301: Determine an upper cutoff frequency point and a lower cutoff frequency point in the spectrum according to the spectrum of the target millimeter wave signal;
[0092] In order to accurately perform signal interpolation calculations on the in-band envelope values, it is necessary to ensure that the signal interpolation data obtained based on the in-band envelope values can cover the frequency range of the entire in-band data. Therefore, before performing signal interpolation processing on the in-band envelope values, it is necessary to determine the upper and lower cutoff frequency points in the spectrum based on the spectrum of the target millimeter wave signal, and use this to construct an interpolation index sequence.
[0093] S302: constructing an interpolation index sequence from the lower cutoff frequency point to the upper cutoff frequency point based on a preset step size; the interpolation index sequence is incremented based on the preset step size.
[0094] The interpolation index sequence is a sequence that increases from the lower cutoff frequency point to the upper cutoff frequency point with a preset step size. The interpolation index sequence can ensure that the interpolation of the in-band envelope value can be evenly calculated over the frequency band of the entire in-band data, thereby ensuring that each frequency point in the in-band data can obtain the corresponding interpolation result. The interpolation index sequence plays a role in ensuring that the frequency points of the signal interpolation data correspond one-to-one with the frequency points of the actual in-band data, thereby making the final interpolation result more accurate and smooth.
[0095] Therefore, in the process of constructing an interpolation index sequence based on a preset step size, the preset step size needs to ensure that every frequency point of the in-band data can be covered during the interpolation process, thereby ensuring that the interpolated data can correspond to the original frequency point, so that the final signal interpolation data is smoother.
[0096] S303: performing interpolation processing on the in-band envelope value by using a preset linear interpolation algorithm and the interpolation index sequence to obtain the signal interpolation data.
[0097] After completing the construction of the interpolation index sequence, the interpolation index sequence and the in-band envelope value are imported into a pre-set linear interpolation algorithm, and the interpolation data for the in-band envelope value can be realized to obtain the corresponding signal interpolation data. Among them, the preset linear interpolation algorithm can be a simple linear interpolation algorithm, a piecewise linear interpolation algorithm, or a point-to-point interpolation algorithm. There are differences in the application scenarios and calculation errors of different linear interpolation algorithms. The specific algorithm type can be determined by actual needs, and this embodiment does not make specific limitations on this.
[0098] Here, the signal interpolation data is set to intrpData, the preset step size is set to 1, and ntrpIndex is set equal to the increment of the lower cutoff frequency point flIndex to the upper cutoff frequency point fhIndex in steps of 1, and the interpolation index sequence can be obtained. In the process of interpolating the in-band envelope value based on the preset linear interpolation algorithm and the interpolation index sequence, the X coordinate evpIndex of the in-band envelope value and the in-band envelope value evpData are respectively substituted into the X and Y of the preset linear interpolation algorithm, and the interpolation result within intrpIndex is obtained, and the corresponding signal interpolation data can be obtained.
[0099] Specifically, the signal interpolation data is used to represent the numerical change profile of the in-band envelope value. For details, please refer to Figure 5A spectrum diagram of a signal interpolation data disclosed is shown in the figure, and the data change profile of the spectrum represents the signal interpolation data. By interpolating the in-band envelope value to obtain the corresponding signal interpolation data, it is possible to connect non-continuous in-band envelope value data points into a smooth curve. This allows a more accurate estimation of the change in signal amplitude across the entire frequency band, thereby allowing a more accurate compensation for gain flatness.
[0100] S103: Perform compensation processing on the signal interpolation data to obtain a compensation reference value.
[0101] After obtaining the signal interpolation data, the signal interpolation data is further compensated to determine the compensation reference value. Determination of the compensation reference value is a key step in the entire gain flatness compensation method. The compensation reference value obtained through the above process is used as a reference for subsequent compensation steps to adjust and improve the gain flatness of the signal to achieve ideal measurement accuracy and signal quality. Such processing ensures that the output signal of the system maintains good flatness within a certain bandwidth, thereby significantly reducing channel measurement errors and meeting high-precision measurement requirements.
[0102] The determination process of the compensation reference value needs to be completed based on the average interpolation of the signal interpolation data, see Figure 6 , which is a flow chart of a method for determining a compensation reference value provided by an embodiment of the present application, and specifically includes the following steps:
[0103] S401: Determine an average interpolation value of a plurality of the signal interpolation data; the average interpolation value is used to represent an average value of the plurality of the signal interpolation data.
[0104] The signal interpolation data includes multiple signal interpolation data points, each of which can be used as a separate signal interpolation data. First, it is necessary to determine the average interpolation of multiple signal interpolation data, that is, the average value of multiple signal interpolation data points. The average value of multiple signal interpolation data points can represent the average signal strength of the target millimeter wave signal after interpolation processing within the entire bandwidth.
[0105] S402: Obtain the interval distance between each of the signal interpolation data and the average interpolation data.
[0106] As described above, the signal interpolation data is used to represent the numerical change profile of the in-band envelope value. Therefore, in the process of compensating the signal interpolation data, it is necessary to obtain the difference between each signal interpolation data and the average interpolation to determine the interval distance between each signal interpolation data and the average interpolation, thereby measuring the deviation between the data point of each signal interpolation data and the average signal strength, so as to screen out signal interpolation data with smaller deviations.
[0107] S403: Perform mean calculation on the signal interpolation data whose interval distance is less than a preset threshold to obtain the compensation reference value.
[0108] Finally, by selecting signal interpolation data whose interval distance is less than a preset threshold from multiple signal interpolation data, multiple signal interpolation data with smaller deviations can be screened out, and then the mean of the signal interpolation data with smaller deviations is calculated, and the obtained average value is determined as the compensation reference value. This compensation reference value is used to correct the entire spectrum of the target millimeter wave signal so that it can reach a flatter state.
[0109] Here, taking the parameters set in the above text as an example, in the process of determining the compensation reference value, the average value of the signal interpolation data intrpData is first calculated, and the interval distance between each intrpData and the average value is calculated. After that, for the signal interpolation data whose interval distance is less than the preset threshold, the average value A is recalculated, and the average value A can be used as the compensation reference value.
[0110] S104: Determine a filter coefficient based on the compensation reference value, the signal interpolation data, and the frequency spectrum of the target millimeter wave signal.
[0111] After obtaining the compensation reference value, an inverse fast Fourier transform is performed on the compensation reference value, the signal interpolation data and the actual spectrum of the target millimeter wave signal to determine the final filter coefficient for gain flatness compensation.
[0112] For details, see Figure 7 , which is a flow chart of a method for determining a filter coefficient provided in an embodiment of the present application, wherein the process for determining the filter coefficient specifically includes the following steps:
[0113] S501: based on the number of the signal interpolation data, copy the compensation reference value to obtain reference data; the reference data is composed of a plurality of the compensation reference values, and the number of copies of the compensation reference value is the same as the number of the signal interpolation data.
[0114] In the process of determining the filter coefficient, in order to construct an ideal response data that is completely flat within the band, it is first necessary to copy the compensation reference value based on the number of each data point in the signal interpolation data to form the reference data. This reference data is the completely flat reference data under the ideal state. The reference data is used to calculate with the actual input data (i.e., the target millimeter wave signal) to obtain the filter coefficient.
[0115] S502: performing data splicing on the out-of-band data of the target millimeter wave signal, the signal interpolation data and the reference data to obtain complete interpolation data and complete reference data.
[0116] After obtaining the benchmark data, in order to correlate with the actual target millimeter wave signal, it is necessary to splice the out-of-band data of the target millimeter wave signal with the benchmark data and the aforementioned signal interpolation data on both sides to form complete interpolation data and complete benchmark data. The reason for splicing the signal interpolation data and benchmark data with the out-of-band data is to ensure that the frequency response within the entire bandwidth can be adjusted uniformly and consistently when calculating the filter coefficients. This can ensure that the final filter design can effectively improve the gain flatness and improve the overall effect of signal processing.
[0117] S503: Perform inverse fast Fourier transform on the complete interpolation data and the complete reference data to determine the filter coefficients.
[0118] The complete benchmark data includes the out-of-band part of the original data and the ideal flat area in the middle. Combined with the actual complete interpolation data, the two are inverse fast Fourier transformed to calculate the filter coefficients, which are used to adjust the actual signal to make it as close as possible to the theoretical flat response within the bandwidth, that is, to make the entire frequency response flatter.
[0119] Here, the filter coefficient is set to h, the number of signal interpolation data is set to M, the spectrum of the target millimeter wave is set to data, the reference data is set to AData, the complete interpolation data is set to inputData, and the complete reference data is set to theoryData. At the same time, the determination process of the above filter coefficient is introduced in combination with the setting parameters of the signal interpolation data and the compensation reference value in the above text.
[0120] First, based on the number of signal interpolation data M, the compensation reference value A is amplitude-added to obtain the reference data AData. Then, based on the out-of-band data of data, the signal interpolation data and the reference data are spliced, the out-of-band data on the left side of data is spliced in front of the signal interpolation data intrpData, and the out-of-band data on the right side of data is spliced behind intrpData, so as to obtain the complete interpolation data inputData. Then, the out-of-band data on the left side of data is spliced in front of the reference data AData, and the out-of-band data on the right side of data is spliced behind the reference data AData, so as to obtain the complete reference data theoryData. On this basis, the complete reference data theoryData and the complete interpolation data inputData are subjected to inverse fast Fourier transform processing to obtain the filter coefficient h. Among them, the calculation formula of the filter coefficient h is as follows:
[0121] h=ifft[theoryData / inputData];
[0122] Thus, by determining the complete interpolation data and the complete reference data through the above method, and combining the above formulas, the corresponding filter coefficients can be obtained.
[0123] S105: Perform gain flatness compensation on the target millimeter wave signal using the filter coefficient.
[0124] Finally, the gain flatness compensation of the target millimeter wave signal is performed by using the obtained filter coefficient, and the original intermediate frequency time domain data of the target millimeter wave signal is imported into the filter with the above h as the filter coefficient for circular convolution, so as to achieve the gain flatness compensation of the target millimeter wave signal.
[0125] The embodiment of the present application provides a gain flatness compensation method for a millimeter wave signal. In the gain flatness compensation method for a millimeter wave signal provided in the embodiment of the present application, the corresponding in-band envelope value is first determined based on the spectrum of the target millimeter wave signal, and the main energy distribution of the millimeter wave signal can be reflected by the in-band envelope value. Subsequently, the in-band envelope value is further interpolated to obtain signal interpolation data to fill in the non-smooth values in the in-band envelope value, so as to more continuously and accurately characterize the signal power of the target millimeter wave signal. After that, a compensation reference value is determined based on the signal interpolation data, and the compensation accuracy of the gain flatness is improved by the compensation reference value. At the same time, the filter coefficient is determined by combining the spectrum of the target millimeter wave signal and the compensation reference value to complete the gain flatness compensation for the millimeter wave signal. This method can accurately realize the gain flatness compensation for the millimeter wave signal in the digital domain, and the gain flatness compensation does not need to rely on specific electronic devices to complete, so it will not be subject to the physical limitations of the electronic devices on the compensation accuracy, and the compensation accuracy of the gain flatness compensation of the millimeter wave signal is improved.
[0126] A gain flatness compensation system for a millimeter wave signal provided in an embodiment of the present application is introduced below. The gain flatness compensation for a millimeter wave signal described below and the gain flatness compensation method for a millimeter wave signal described above can correspond to each other.
[0127] See also Figure 8 , which is a schematic diagram of the structure of a gain flatness compensation system for millimeter wave signals provided in an embodiment of the present application, and specifically includes the following modules:
[0128] An envelope value determination module 100 determines an in-band envelope value of the target millimeter wave signal according to the frequency spectrum of the target millimeter wave signal;
[0129] The interpolation processing module 200 is used to perform interpolation processing on the in-band envelope value of the target millimeter wave signal to obtain signal interpolation data; the signal interpolation data is used to represent the numerical change profile of the in-band envelope value;
[0130] A first compensation module 300, configured to perform compensation processing on the signal interpolation data to obtain a compensation reference value;
[0131] A filter coefficient determination module 400, configured to determine a filter coefficient based on the compensation reference value, the signal interpolation data, and the frequency spectrum of the target millimeter wave signal;
[0132] The second compensation module 500 is configured to perform gain flatness compensation on the target millimeter wave signal by using the filter coefficient.
[0133] In a possible implementation, the filter coefficient determination module 400 is used to:
[0134] Based on the amount of the signal interpolation data, the compensation reference value is copied to obtain reference data;
[0135] Performing data splicing on the out-of-band data of the target millimeter wave signal, the signal interpolation data and the reference data to obtain complete interpolation data and complete reference data;
[0136] An inverse fast Fourier transform is performed on the complete interpolation data and the complete reference data to determine the filter coefficient.
[0137] In a possible implementation, the first compensation module 300 is used to:
[0138] Determine an average interpolation value of a plurality of the signal interpolation data; the average interpolation value is used to represent an average value of the plurality of the signal interpolation data;
[0139] Acquire the interval distance between each of the signal interpolation data and the average interpolation data;
[0140] The signal interpolation data whose interval distance is less than a preset threshold is averaged to obtain the compensation reference value.
[0141] In a possible implementation, the envelope value determination module 100 is used to:
[0142] Determining an in-band data acquisition coefficient based on the frequency spectrum of the target millimeter wave signal;
[0143] Determine, in the spectrum of the target millimeter wave signal, spectrum data whose signal strength is greater than the in-band data acquisition coefficient as in-band data of the target millimeter wave signal;
[0144] Based on the in-band data of the target millimeter wave signal, an in-band envelope value of the target millimeter wave signal is determined; the in-band envelope value is determined based on a plurality of local peak values of the in-band data.
[0145] In a possible implementation, the envelope value determination module 100 includes: an envelope value screening unit; the envelope value screening unit is used to:
[0146] Determine whether the signal strength of the in-band data is the in-band envelope value according to adjacent in-band data corresponding to each of the plurality of in-band data; the adjacent in-band data represents two in-band data adjacent to and preceding the in-band data;
[0147] When the signal strength of the in-band data is greater than the signal strength of the adjacent in-band data, the signal strength of the in-band data is determined as the in-band envelope value.
[0148] In a possible implementation, the interpolation processing module 200 is used to:
[0149] According to the spectrum of the target millimeter wave signal, determining an upper cutoff frequency point and a lower cutoff frequency point in the spectrum;
[0150] Based on a preset step size, constructing an interpolation index sequence from the lower cutoff frequency point to the upper cutoff frequency point; the interpolation index sequence is incremented based on the preset step size;
[0151] The in-band envelope value is interpolated by using a preset linear interpolation algorithm and the interpolation index sequence to obtain the signal interpolation data.
[0152] See also Fig. 9 , which is a schematic diagram of the structure of an electronic device for gain flatness compensation of a millimeter wave signal provided in an embodiment of the present application, including:
[0153] A memory 11, used for storing computer programs;
[0154] The processor 12 is configured to implement the steps of a method for compensating gain flatness of a millimeter wave signal as described in any of the above method embodiments when executing the computer program.
[0155] In this embodiment, the device may be a vehicle-mounted computer, a PC (Personal Computer), or a terminal device such as a smart phone, a tablet computer, a PDA, or a portable computer.
[0156] The device may include a memory 11 , a processor 12 , and a bus 13 .
[0157] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the device, such as a hard disk of the device. In other embodiments, the memory 11 can also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 11 can also include both an internal storage unit of the device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the device, such as program codes for executing fault prediction methods, etc., but can also be used to temporarily store data that has been output or is to be output. The processor 12 can be a central processing unit (CPU) in some embodiments.
[0158] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 11, such as program codes for executing a fault prediction method.
[0159] The bus 13 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0160] Furthermore, the device may also include a network interface 14, which may optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the device and other electronic devices.
[0161] Optionally, the device may further include a user interface 15, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 15 may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the device and to display a visual user interface.
[0162] Fig. 9 Only the device with components 11-15 is shown, and it can be understood by those skilled in the art that Fig. 9 The structure shown does not constitute a limitation of the device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently.
[0163] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the gain flatness compensation method for millimeter wave signals as described in any of the above embodiments.
[0164] The computer-readable storage media of the embodiments of the present application include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0165] The computer instructions stored in the readable storage medium of the above embodiment are used to enable the computer to execute the gain flatness compensation method for millimeter wave signals as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0166] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for methods, systems, electronic devices and media, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The methods, systems, electronic devices and media described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0167] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for compensating gain flatness of a millimeter wave signal, characterized in that: include: Determining an in-band envelope value of the target millimeter wave signal according to the frequency spectrum of the target millimeter wave signal; Performing interpolation processing on the in-band envelope value of the target millimeter wave signal to obtain signal interpolation data; the signal interpolation data is used to represent the numerical change profile of the in-band envelope value; Performing compensation processing on the signal interpolation data to obtain a compensation reference value; Determining a filter coefficient based on the compensation reference value, the signal interpolation data, and the frequency spectrum of the target millimeter wave signal; Gain flatness compensation is performed on the target millimeter wave signal using the filter coefficient.
2. The method according to claim 1, characterized in that The determining of the filter coefficient based on the compensation reference value, the signal interpolation data, and the frequency spectrum of the target millimeter wave signal includes: Based on the amount of the signal interpolation data, the compensation reference value is copied to obtain reference data; Performing data splicing on the out-of-band data of the target millimeter wave signal, the signal interpolation data and the reference data to obtain complete interpolation data and complete reference data; An inverse fast Fourier transform is performed on the complete interpolation data and the complete reference data to determine the filter coefficient.
3. The method according to claim 1, characterized in that The compensating the signal interpolation data to obtain a compensation reference value includes: Determine an average interpolation value of a plurality of the signal interpolation data; the average interpolation value is used to represent an average value of the plurality of the signal interpolation data; Acquire the interval distance between each of the signal interpolation data and the average interpolation data; The signal interpolation data whose interval distance is less than a preset threshold is averaged to obtain the compensation reference value.
4. The method according to claim 1, characterized in that: The determining, according to the frequency spectrum of the target millimeter wave signal, an in-band envelope value of the target millimeter wave signal comprises: Determining an in-band data acquisition coefficient based on the frequency spectrum of the target millimeter wave signal; Determine, in the spectrum of the target millimeter wave signal, spectrum data whose signal strength is greater than the in-band data acquisition coefficient as in-band data of the target millimeter wave signal; Based on the in-band data of the target millimeter wave signal, an in-band envelope value of the target millimeter wave signal is determined; the in-band envelope value is determined based on a plurality of local peak values of the in-band data.
5. The method according to claim 4, characterized in that The determining, based on the in-band data of the target millimeter wave signal, the in-band envelope value of the target millimeter wave signal comprises: Determine whether the signal strength of the in-band data is the in-band envelope value according to adjacent in-band data corresponding to each of the plurality of in-band data; the adjacent in-band data represents two in-band data adjacent to and preceding the in-band data; When the signal strength of the in-band data is greater than the signal strength of the adjacent in-band data, the signal strength of the in-band data is determined as the in-band envelope value.
6. The method according to claim 1, characterized in that The interpolating the in-band envelope value of the target millimeter wave signal to obtain signal interpolation data includes: According to the spectrum of the target millimeter wave signal, determining an upper cutoff frequency point and a lower cutoff frequency point in the spectrum; Based on a preset step size, constructing an interpolation index sequence from the lower cutoff frequency point to the upper cutoff frequency point; the interpolation index sequence is incremented based on the preset step size; The in-band envelope value is interpolated by using a preset linear interpolation algorithm and the interpolation index sequence to obtain the signal interpolation data.
7. A gain flatness compensation system for millimeter wave signals, characterized in that: include: An envelope value determination module determines an in-band envelope value of the target millimeter wave signal according to the frequency spectrum of the target millimeter wave signal; An interpolation processing module, used for performing interpolation processing on the in-band envelope value of the target millimeter wave signal to obtain signal interpolation data; the signal interpolation data is used to represent the numerical change profile of the in-band envelope value; A first compensation module, used for performing compensation processing on the signal interpolation data to obtain a compensation reference value; A filter coefficient determination module, configured to determine a filter coefficient based on the compensation reference value, the signal interpolation data, and the frequency spectrum of the target millimeter wave signal; The second compensation module is used to perform gain flatness compensation on the target millimeter wave signal by using the filter coefficient.
8. The system according to claim 7, characterized in that The filter coefficient determination module is used to: Based on the amount of the signal interpolation data, the compensation reference value is copied to obtain reference data; Performing data splicing on the out-of-band data of the target millimeter wave signal, the signal interpolation data and the reference data to obtain complete interpolation data and complete reference data; An inverse fast Fourier transform is performed on the complete interpolation data and the complete reference data to determine the filter coefficient.
9. An electronic device, characterized in that: The device comprises: a processor, a memory and a system bus; The processor and the memory are connected via the system bus; The memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to perform the gain flatness compensation method for millimeter wave signals according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the gain flatness compensation method for a millimeter wave signal described in any one of claims 1 to 6 is implemented.
