Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. The claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments.
An embodiment of the present invention relates to a method for reducing peak-to-average ratio of Wi-Fi signals, as shown in fig. 1, and the method for reducing peak-to-average ratio of Wi-Fi signals provided in this embodiment includes the following steps.
And 101, interpolating Wi-Fi signals to be transmitted to enlarge the out-of-band signal bandwidth of the Wi-Fi signals and improve the sampling frequency.
Where interpolation is the insertion of corresponding values between points of the discrete signal, but we do not know the exact value of the continuous signal at that point, so interpolation is typically the insertion of a 0 value. If the original signal is x (n), L0 values are inserted between two adjacent points, and the interpolated value is x (n/L), which is equivalent to that the signal is expanded by L times in the time domain, and the signal is compressed to be 1/L in the frequency domain. And the frequency spectrum is prolonged by taking 2pai/L as a period. Specifically, interpolation filtering is necessary when the Wi-Fi signal rate is equal to 1 time of bandwidth, and interpolation is optional when the Wi-Fi signal rate is greater than 1 time of bandwidth. The higher the rate after interpolation, the greater the resources consumed and therefore a balance between interpolation and resource consumption is required. For a channel, a frequency band is a frequency range between the highest frequency of a signal that is allowed to be transmitted and the lowest frequency of a signal that is allowed to be transmitted. Most of the energy in a signal is concentrated in a relatively narrow frequency band, the frequency band in which most of the energy is concentrated is called an effective bandwidth, the signal in the effective bandwidth is called an "in-band signal", and the signal outside the effective bandwidth in the frequency band is called an "out-of-band signal".
Specifically, the Wi-Fi signal to be transmitted is interpolated through the interpolation filter, and because the interpolated signal is expanded by L times in the time domain and is compressed to be 1/L in the frequency domain, the bandwidth of the Wi-Fi signal out-of-band signal after interpolation is expanded, and the sampling frequency is improved.
Step 102, adding noise to the out-of-band signal of the Wi-Fi signal with the bandwidth enlarged, wherein the Wi-Fi signal with the noise added meets the preset spectrum template requirement.
Where spectrum is an abbreviation for frequency spectral density, which is a distribution curve of frequency. The complex oscillation is decomposed into different amplitude and different frequency harmonics, the amplitude of which is a pattern of frequency-aligned oscillations called a spectrum. The IEEE 802.11 standard specifies a spectrum template that specifies the allowed power allocation in each channel, which requires that the signal be attenuated to a specific level (from peak amplitude) with a specified frequency offset. IEEE 802.11 is a standard common to wireless local area networks today, which is a standard for wireless network communications defined by the Institute of Electrical and Electronics Engineers (IEEE). That is, wi-Fi signals with added noise in out-of-band signals must also meet the requirements of spectrum templates.
Specifically, noise is added to the out-of-band signal of the Wi-Fi signal after bandwidth expansion, and because the spectrum template requires the signal to be attenuated to a specific level (from the peak amplitude) with a specified frequency offset, the Wi-Fi signal after noise addition also needs to meet the requirement of a preset spectrum template, and the noise added out-of-band is designed for the bandwidth of the Wi-Fi signal to be transmitted currently, so that the noise with the peak-to-average ratio can be reduced.
Taking HE 160M as an example, the spectrum template required by the Wi-Fi protocol is shown in fig. 2. The signals of the AB section and the EF section are out-of-band signal areas, and the CD section is an in-band signal area. The corresponding Wi-Fi signal must meet the requirements of the template, and the signal that cannot exceed the requirements of the spectrum template will not have a tendency to attenuate to a specific level at a specified frequency offset.
It should be noted that the spectrum template in fig. 2 is only for easy understanding, and does not limit the spectrum template in the present application, and what spectrum template is specifically adopted in practical application is determined according to the specific transmission scenario of the Wi-Fi signal.
Compared with the related art, in the embodiment, the Wi-Fi signal to be transmitted is interpolated through the interpolation filter, so that the out-of-band signal bandwidth of the Wi-Fi signal is enlarged, and the sampling frequency can be improved. And then adding noise to the out-of-band signal with the bandwidth of the out-of-band signal of the Wi-Fi signal enlarged, wherein the Wi-Fi signal with the added noise meets the preset spectrum template requirement. The noise is added to the out-of-band signal under the condition that the in-band effective signal is not changed, so that the effect of effectively reducing the peak-to-average ratio of the Wi-Fi signal is achieved, the power amplifier works in a linear region better and is not easy to enter a saturated state, possible signal peak distortion is avoided, the frequency spectrum expansion, energy leakage and out-of-band interference of the signal are reduced, and the EVM damage to the in-band signal is smaller.
Another embodiment of the present invention relates to a method for reducing peak-to-average ratio of Wi-Fi signals, as shown in fig. 3, further comprising the following steps before performing step 101.
And 100, performing shaping filtering on Wi-Fi signals to be transmitted so as to reduce out-of-band noise of the Wi-Fi signals.
Specifically, before interpolation is carried out on Wi-Fi signals to be transmitted, forming filtering is carried out on the Wi-Fi signals to be transmitted, and original out-of-band noise of Wi-Fi signals transmitted currently is reduced. It should be noted that the original out-of-band noise is different from the noise added in step 102, the original out-of-band noise of the Wi-Fi signal is random noise except for the target signal, and the noise added out-of-band is designed for the bandwidth of the Wi-Fi signal to be transmitted currently, so that the noise with peak-to-average ratio can be reduced.
After the Wi-Fi signal to be transmitted is subjected to shaping and filtering, step 101 is executed, wherein the Wi-Fi signal to be transmitted is interpolated to expand the bandwidth of the out-of-band signal of the Wi-Fi signal and increase the sampling frequency.
In one example, the Wi-Fi signal to be transmitted is interpolated, specifically, an in-band signal of the Wi-Fi signal to be transmitted is interpolated by an interpolation filter.
Specifically, by interpolating the in-band signal of the Wi-Fi signal, the Wi-Fi signal after interpolation is expanded by L times in the time domain, and is compressed to be 1/L in the frequency domain, so that the bandwidth of the Wi-Fi signal out-of-band signal after interpolation is expanded, and the sampling frequency is increased.
In one example, the width of the out-of-band signal of the bandwidth extended Wi-Fi signal is less than a first preset width and/or the increased sampling frequency is less than a first preset frequency.
Specifically, the bandwidth of the out-of-band signal of the Wi-Fi signal can be enlarged by interpolating the Wi-Fi signal, and the larger the interpolation multiple is, the larger the sampling frequency is, which means that the larger the bandwidth of the out-of-band signal is, namely, more noise can be added in the out-of-band signal. However, interpolation itself consumes resources, and the operation of reducing peak-to-average ratio at high speed after noise increase is more resource. In order to balance between resources and performance, interpolation multiples are limited, that is, the width of the out-of-band signal of the Wi-Fi signal after bandwidth expansion is smaller than a first preset width and/or the increased sampling frequency is smaller than the first preset frequency. It should be noted that, in this embodiment, the first preset width and the first preset frequency are not limited specifically, and may be determined according to relevant parameters such as actual application conditions, resource consumption conditions, and calculation speed, so long as a relative balance between resources and performance is obtained.
Step 102 is the same as the previous embodiments, and will not be described again.
Compared with the related art, the Wi-Fi signal to be transmitted is subjected to shaping filtering before interpolation, so that the sampling time of a code element is ensured, interference from other code elements is avoided, the frequency spectrum of the Wi-Fi signal is limited to match the range of the channel bandwidth, and the original out-of-band noise in the frequency band of the Wi-Fi signal to be transmitted at present is reduced. The width of the out-of-band signal of the Wi-Fi signal after bandwidth expansion is limited to be smaller than the first preset width and/or the sampling frequency after the increase is smaller than the first preset frequency, so that the embodiment can achieve relative balance between resources and performance.
Still another embodiment of the present invention relates to a method for reducing peak-to-average ratio of Wi-Fi signals, as shown in fig. 4, step 102 may be replaced by step 200, that is, when step 102 is performed, steps may also be performed simultaneously, in which noise is added to an in-band signal of a Wi-Fi signal, and the Wi-Fi signal after noise is added meets a preset spectrum template requirement.
Step 200, adding noise to the out-of-band signal of the Wi-Fi signal with the bandwidth enlarged, wherein the Wi-Fi signal with the noise added meets the preset spectrum template requirement;
Noise is added to the in-band signal of the Wi-Fi signal, and the Wi-Fi signal after noise addition meets the preset spectrum template requirement.
Specifically, in this embodiment, noise is added to the out-of-band signal of the Wi-Fi signal after bandwidth expansion, and meanwhile, noise can be added to the in-band signal of the Wi-Fi signal, so that noise can be added to the in-band signal and the out-of-band signal simultaneously. And after noise is added to the in-band signal and the out-of-band signal of the Wi-Fi signal, the Wi-Fi signal still meets the preset spectrum template requirement. The amount of noise added to the out-of-band signal and the in-band signal of the Wi-Fi signal after the bandwidth expansion may be the same or different.
In one example, the amount of noise that needs to be added to the out-of-band signal and the in-band signal of the Wi-Fi signal after the bandwidth is extended is the same.
Specifically, according to the definition of the peak-to-average ratio, the ratio of the maximum square value of the transmission signal (voltage or current) to the average value of the signal squares can be known, noise with the same size is added in the out-of-band signal and the in-band signal of the Wi-Fi signal after the bandwidth is expanded, the peak value of the Wi-Fi signal (relative to the out-of-band signal) can be relatively reduced, and the purpose of reducing the peak-to-average ratio is achieved.
In another example, the amount of noise to be added in the out-of-band signal and the in-band signal of the Wi-Fi signal after the bandwidth expansion is different, and the noise added in the out-of-band signal is greater than the noise added in the in-band signal.
Specifically, noise with the same size is added to the out-of-band signal and the in-band signal of the Wi-Fi signal after the bandwidth is enlarged, if the peak-to-average ratio of the Wi-Fi signal is to be reduced, the size difference between the Wi-Fi signals needs to be reduced, that is, the noise added to the out-of-band signal is larger than the noise added to the in-band signal, so that the peak value of the Wi-Fi signal is relatively reduced.
In one example, the noise to be added to the Wi-Fi signal after bandwidth expansion is obtained through a signal simulation mode, and the constraint condition of the simulation can be that the Wi-Fi signal after noise addition meets the preset spectrum template requirement and meets the preset error phase amplitude index.
Specifically, the Wi-Fi signal still satisfies the spectrum template after noise is added, because the magnitude of the added noise in the Wi-Fi signal is obtained in advance through a signal simulation mode. And calculating the maximum limit of the noise of the in-band signal and the out-of-band signal to be added to the Wi-Fi signal as an output result of the signal simulation mode by setting two constraint conditions that the Wi-Fi signal after noise addition meets a preset frequency spectrum template requirement and meets a preset error phase amplitude index. And obtaining the result and adding noise to the in-band signal and the out-of-band signal of the Wi-Fi signal according to the result.
Compared with the related art, the method and the device have the advantages that noise is added to the out-of-band signal of the Wi-Fi signal after the bandwidth is enlarged, meanwhile, the noise can be added to the in-band signal of the Wi-Fi signal, the noise is added to the in-band signal and the out-of-band signal at the same time, and the mode of reducing the peak-to-average ratio can be selected more variously. And the maximum limit of the noise added to the in-band signal and the out-of-band signal of the Wi-Fi signal is calculated through a signal simulation mode, and the added noise is controlled more accurately by combining the magnitude relation of the out-of-band signal of the Wi-Fi signal after the bandwidth is enlarged and the noise added in the in-band signal, so that the peak-to-average ratio of the Wi-Fi signal is reduced to the maximum extent.
Another embodiment of the invention is directed to an electronic device, as shown in fig. 5, comprising at least one processor 202, and a memory 201 communicatively coupled to the at least one processor 202, wherein the memory 201 stores instructions executable by the at least one processor 202, the instructions being executable by the at least one processor 202 to enable the at least one processor 202 to perform any one of the method embodiments described above.
Where memory 201 and processor 202 are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together various circuits of one or more of the processor 202 and memory 201. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 202 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 202.
The processor 202 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 201 may be used to store data used by processor 202 in performing operations.
Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements any of the method embodiments described above.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the invention and that various changes in form and details may be made therein without departing from the spirit and scope of the invention.