Multi-carrier modulation method, device and readable storage medium

文档序号:1616990 发布日期:2020-01-10 浏览:4次 中文

阅读说明:本技术 多载波调制方法、装置和可读存储介质 (Multi-carrier modulation method, device and readable storage medium ) 是由 方鹏举 罗森 郑翠翠 于 2019-12-05 设计创作,主要内容包括:一种多载波调制方法、装置和可读存储介质,该方法包括:根据各载波的采样率和频率偏移量确定目标采样率;将各载波重采样至该目标采样率;根据各载波的频率偏移量分别对重采样后的各载波进行频率偏移;计算频率偏移后的各载波波形长度的公倍数L,并将频率偏移后的各载波波形长度重复至L;将波形长度重复至L的各载波进行叠加,得到多载波调制信号,并将多载波调制信号的采样率设置为目标采样率。由于在进行载波叠加之前对各载波进行了重采样并将各载波波形长度扩展到同一长度,使得叠加时各载波的采样率和波形长度均相同,从而能够对原有不同长度和/或不同采样率的载波进行多载波调制。(A multi-carrier modulation method, apparatus and readable storage medium, the method comprising: determining a target sampling rate according to the sampling rate and the frequency offset of each carrier; resampling each carrier wave to the target sampling rate; respectively carrying out frequency offset on each resampled carrier according to the frequency offset of each carrier; calculating common multiple L of each carrier waveform length after frequency offset, and repeating each carrier waveform length after frequency offset to L; and (3) superposing the carriers with the waveform length being repeated to L to obtain a multi-carrier modulation signal, and setting the sampling rate of the multi-carrier modulation signal as a target sampling rate. Because each carrier is resampled before the carrier superposition and the waveform length of each carrier is expanded to the same length, the sampling rate and the waveform length of each carrier are the same when the carriers are superposed, thereby carrying out multi-carrier modulation on the original carriers with different lengths and/or different sampling rates.)

1. A multi-carrier modulation method, comprising:

determining a target sampling rate according to the sampling rate and the frequency offset of each carrier;

resampling each carrier to the target sampling rate;

respectively carrying out frequency offset on each resampled carrier according to the frequency offset of each carrier;

calculating common multiple L of each carrier waveform length after frequency offset, and repeating each carrier waveform length after frequency offset to L;

and superposing the carriers with the waveform length repeated to L to obtain a multi-carrier modulation signal, and setting the sampling rate of the multi-carrier modulation signal as the target sampling rate.

2. The modulation method according to claim 1, wherein before the frequency-shifting the resampled carriers according to the frequency shift amounts of the carriers, the method further comprises: periodically repeating the re-sampled carriers respectively according to the target sampling rate and the frequency offset error threshold of each carrier, so that the frequency offset error of each carrier after periodic repetition is smaller than the frequency offset error threshold;

the frequency offset of each carrier wave after resampling according to the frequency offset of each carrier wave is as follows: and respectively carrying out frequency offset on each carrier wave after periodic repetition according to the frequency offset of each carrier wave.

3. The method of claim 2, wherein the periodically repeating the resampled carriers according to the target sampling rate and the frequency offset error thresholds of the carriers respectively comprises:

for each resampled carrier, determining a frequency interval according to the target sampling rate and the current waveform length of the carrier;

determining a frequency offset error from the frequency interval;

when the frequency offset error is smaller than the corresponding frequency offset error threshold value, determining the current waveform length as the waveform length of the carrier;

and when the frequency offset error is greater than or equal to the corresponding frequency offset error threshold, updating the current waveform length to the length obtained by adding the original waveform length of the carrier, and then determining the frequency interval again according to the target sampling rate and the current waveform length of the carrier until the frequency offset error is less than the corresponding frequency offset error threshold.

4. The method of claim 3, wherein determining the frequency interval based on the target sampling rate and the current waveform length of the carrier comprises:

determining a frequency interval according to a frequency interval calculation formula, wherein the frequency interval calculation formula is as follows: frequency interval = target sampling rate/current waveform length.

5. The method of claim 3, wherein the determining a frequency offset error from the frequency spacing comprises:

and (4) taking the frequency offset of the carrier to the frequency interval of the carrier to obtain a frequency offset error.

6. The modulation method according to claim 1, wherein the determining the target sampling rate based on the sampling frequency and the frequency offset for each carrier comprises:

calculating common multiple Sa of each carrier sampling rate, and updating the current sampling rate to Sa;

judging whether the sampling rate of any carrier exceeds the current sampling rate by using a preset rule according to the sampling rate and the frequency offset of each carrier;

if so, increasing the current sampling rate by Sa until the sampling rate of each carrier is less than or equal to the current sampling rate;

and if not, determining the current sampling rate as the target sampling rate.

7. The modulation method according to claim 6, wherein the preset rule is: sa (Sa)i+Offseti*4>Sr, wherein, SaiIs the sampling rate, Offset, of the ith carrieriSr is the current sampling rate, which is the frequency offset of the ith carrier.

8. A multi-carrier modulation apparatus, comprising:

the determining module is used for determining a target sampling rate according to the sampling rate and the frequency offset of each carrier;

a resampling module, configured to resample each carrier to the target sampling rate;

the offset module is used for respectively carrying out frequency offset on each resampled carrier wave according to the frequency offset of each carrier wave;

the waveform repetition module is used for calculating the common multiple L of each carrier wave wavelength after frequency offset and repeating the waveform length of each carrier wave after frequency offset to L;

and the superposition module is used for superposing the carriers with the waveform length from L to obtain a multi-carrier modulation signal and setting the sampling rate of the multi-carrier modulation signal as the target sampling rate.

9. The apparatus of claim 8, wherein the waveform repetition module is further configured to periodically repeat the re-sampled carriers according to the target sampling rate and a frequency offset error threshold of each carrier, respectively, so that the frequency offset error of each periodically repeated carrier is smaller than the frequency offset error threshold;

the offset module is specifically configured to perform frequency offset on each periodically repeated carrier according to the frequency offset of each carrier.

10. A computer-readable storage medium, characterized by comprising a program executable by a processor to implement the method of any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of test measurement, in particular to a multi-carrier modulation method, a multi-carrier modulation device and a readable storage medium.

Background

Multicarrier signals have a wide range of applications in signal transmission, test measurement, etc., and may be used, for example, to conveniently configure wideband test signals required for transmitter or receiver testing, or may be used to create complex multicarrier signals composed of signals of different digital standards and used for testing. The multi-carrier modulation adopts a plurality of carrier signals, and decomposes a data signal to be transmitted into a plurality of sub-data streams, so that the sub-data streams have a much lower transmission bit rate, and the data are used for respectively modulating a plurality of carriers, namely, each carrier signal is superposed after different or same frequency offset and phase offset to form a modulated waveform.

At present, the modulation process of the multi-carrier signal is as follows: and respectively carrying out frequency and phase shift on each carrier signal to obtain waveform data after the shift, and then superposing the data to obtain a final signal. When the method is adopted for multi-carrier modulation, only the carriers with the same sampling rate and the same wavelength can be subjected to multi-carrier modulation, and the requirement of using carrier signals with different sampling rates and/or different wavelengths for multi-carrier modulation cannot be met.

Disclosure of Invention

The application provides a multi-carrier modulation method, a multi-carrier modulation device and a readable storage medium, which are used for solving the problem that in the prior art, only carriers with the same sampling rate and the same wavelength can be subjected to multi-carrier modulation.

According to a first aspect, there is provided in one embodiment a multicarrier modulation method comprising:

determining a target sampling rate according to the sampling rate and the frequency offset of each carrier;

resampling each carrier to the target sampling rate;

respectively carrying out frequency offset on each resampled carrier according to the frequency offset of each carrier;

calculating common multiple L of each carrier waveform length after frequency offset, and repeating each carrier waveform length after frequency offset to L;

and superposing the carriers with the waveform length repeated to L to obtain a multi-carrier modulation signal, and setting the sampling rate of the multi-carrier modulation signal as the target sampling rate.

According to a second aspect, an embodiment provides a multicarrier modulation apparatus comprising:

the determining module is used for determining a target sampling rate according to the sampling rate and the frequency offset of each carrier;

a resampling module, configured to resample each carrier to the target sampling rate;

the offset module is used for respectively carrying out frequency offset on each resampled carrier wave according to the frequency offset of each carrier wave;

the waveform repetition module is used for calculating the common multiple L of each carrier wave wavelength after frequency offset and repeating the waveform length of each carrier wave after frequency offset to L;

and the superposition module is used for superposing the carriers with the waveform length from L to obtain a multi-carrier modulation signal and setting the sampling rate of the multi-carrier modulation signal as the target sampling rate.

According to a third aspect, an embodiment provides a computer readable storage medium comprising a program executable by a processor to implement the method as described above.

According to the multi-carrier modulation method, the multi-carrier modulation device and the readable storage medium of the embodiments, before the carrier superposition, the target sampling rate can be determined according to the sampling rate and the frequency offset of each carrier, each carrier is resampled to the target sampling rate, and the waveform length of each carrier is extended to the same length, so that the sampling rate and the waveform length of each carrier are the same when the carriers are superposed, and the multi-carrier modulation can be performed on the carriers with different original lengths and/or different sampling rates.

Drawings

Fig. 1 is a schematic diagram of a modulation process of a multi-carrier signal in the prior art;

fig. 2 is a schematic structural diagram of a multi-carrier modulation apparatus according to an embodiment of the present invention;

fig. 3 is a flowchart of a multi-carrier modulation method according to an embodiment of the present invention;

FIG. 4 is a flow chart of a method of determining a target sampling rate in an embodiment of the present invention;

fig. 5 is a flowchart of another multi-carrier modulation method according to an embodiment of the present invention;

fig. 6 is a flowchart of a method for periodically repeating each carrier according to an embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. Wherein like elements in different embodiments are numbered with like associated elements. The features, operations, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.

The multicarrier modulation is a method in which different or the same frequency offset and phase offset are performed on each carrier, and then the carrier is superimposed to form a modulated waveform. Fig. 1 is a schematic diagram of a conventional modulation process of a multi-carrier signal, in which frequency and phase shift is performed on each carrier signal (carrier 1, carrier 2, … …, carrier n), for example, each carrier signal is multiplied by cos (wt) + jsin (wt), so as to obtain shifted waveform data, and then these data are superimposed, so as to obtain a final modulation signal. During superposition, if the sampling rates of the carrier signals are different, the corresponding time points of each point are different; if the waveform lengths of the carriers are different, the longer waveform cannot be superposed with other waveform data at a point longer than other waveforms; therefore, when the method of fig. 1 is used for multi-carrier modulation, only waveforms with the same sampling rate and the same length can be multi-carrier modulated, and when the offset is large, the signal is shifted out of the bandwidth.

Based on this, the scheme of the invention is provided. In the embodiment of the present invention, before the carrier signals are superimposed, a target sampling rate may be determined according to the sampling rate and the frequency offset of each carrier, each carrier is resampled to the target sampling rate, and the waveform length of each carrier is extended to the same length, so that the sampling rate and the waveform length of each carrier signal are the same when superimposing is performed.

Referring to fig. 2, a schematic structural diagram of a multi-carrier modulation apparatus according to an embodiment of the present invention is shown in fig. 2, where the multi-carrier modulation apparatus includes a determining module 01, a resampling module 02, an offset module 03, a waveform repeating module 04, and a superposition module 05. The determining module 01 is configured to determine a target sampling rate according to a sampling rate and a frequency offset of each carrier; the resampling module 02 is configured to resample each carrier to the target sampling rate determined by the determining module 01. The shifting module 03 is configured to perform frequency shifting on each resampled carrier according to a frequency offset of each carrier, where the frequency offset may be set by a user. The waveform repetition module 04 is configured to calculate a common multiple L of each carrier wavelength after the frequency offset, and repeat the waveform length of each carrier after the frequency offset to L. The superposition module 05 is configured to superpose each carrier whose waveform length is repeated to L to obtain a multi-carrier modulation signal, and set the sampling rate of the multi-carrier modulation signal to the target sampling rate determined by the determination module 01. In this way, through the resampling of the resampling module 02 and the repetition of the waveform by the waveform repetition module 04, different carrier signals can be processed into the same sampling rate and the same waveform length, so that the sampling rate and the waveform length of each carrier are the same when the carriers are overlapped, and thus, the carriers with different lengths and/or different sampling rates can be subjected to multi-carrier modulation.

In another embodiment, the waveform repeating module 04 is further configured to periodically repeat the re-sampled carriers according to the target sampling rate determined by the determining module 01 and the frequency offset error threshold of each carrier, so that the frequency offset error of each periodically repeated carrier is smaller than the frequency offset error threshold, and the frequency offset error threshold may be set by a user. At this time, the shifting module 03 is specifically configured to perform frequency shifting on each of the periodically repeated carriers according to the frequency offset of each of the carriers. As described above, the waveform repetition module 04 repeats the carrier waves periodically, so that the frequency interval of each carrier wave can be reduced, and the error of the frequency offset can be reduced.

In practical applications, the multi-carrier modulation apparatus may be implemented by electronic devices such as an FPGA (Field Programmable gate array), a CPLD (Complex Programmable Logic Device), a DSP (Digital Signal Processor), and a microprocessor.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种通信方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!