CN114285435B - Method, device, equipment and medium for correcting frequency offset of spread spectrum communication - Google Patents
Method, device, equipment and medium for correcting frequency offset of spread spectrum communication Download PDFInfo
- Publication number
- CN114285435B CN114285435B CN202111663342.8A CN202111663342A CN114285435B CN 114285435 B CN114285435 B CN 114285435B CN 202111663342 A CN202111663342 A CN 202111663342A CN 114285435 B CN114285435 B CN 114285435B
- Authority
- CN
- China
- Prior art keywords
- frequency
- current
- bit sequence
- binary bit
- despread
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001228 spectrum Methods 0.000 title claims abstract description 80
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000006854 communication Effects 0.000 title claims abstract description 40
- 238000004891 communication Methods 0.000 title claims abstract description 39
- 238000012795 verification Methods 0.000 claims abstract description 54
- 238000012937 correction Methods 0.000 claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 3
- 238000012804 iterative process Methods 0.000 claims 2
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000007480 spreading Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000010363 phase shift Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Landscapes
- Digital Transmission Methods That Use Modulated Carrier Waves (AREA)
Abstract
本发明公开了一种扩频通信频偏纠正方法、装置、设备和介质,包括:接收扩频信号;设定按照调谐值进行迭代的第一频率,在每次迭代中,设定数控振荡器的频率为当前第一频率,校验对应当前第一频率的解扩后二进制比特序列与原始二进制比特序列,若校验失败,根据当前第一频率得到当前第二频率,设定数控振荡器的频率为当前第二频率,校验所述对应当前第二频率的解扩后二进制比特序列与原始二进制比特序列,若校验失败,设定数控振荡器的频率为下一次迭代的第一频率,直到校验解扩后二进制比特序列与原始二进制比特序列成功,数控振荡器的当前频率为频偏。本发明确保在接收端与发送端之间的整个最大频偏范围内搜索到接收端与发送端之间的正确频偏。
The invention discloses a spread spectrum communication frequency offset correction method, device, equipment and medium, which includes: receiving spread spectrum signals; setting the first frequency for iteration according to the tuning value; in each iteration, setting a numerically controlled oscillator The frequency is the current first frequency. Verify the despread binary bit sequence corresponding to the current first frequency and the original binary bit sequence. If the verification fails, obtain the current second frequency based on the current first frequency and set the numerically controlled oscillator. The frequency is the current second frequency. Verify the despread binary bit sequence corresponding to the current second frequency and the original binary bit sequence. If the verification fails, set the frequency of the numerically controlled oscillator to the first frequency of the next iteration, Until the verification of the despread binary bit sequence and the original binary bit sequence is successful, the current frequency of the numerically controlled oscillator is the frequency offset. The invention ensures that the correct frequency offset between the receiving end and the transmitting end is searched within the entire maximum frequency offset range between the receiving end and the transmitting end.
Description
技术领域Technical field
本发明属于扩频通信技术领域,具体涉及一种扩频通信频偏纠正方法、装置、设备和介质。The invention belongs to the technical field of spread spectrum communication, and specifically relates to a spread spectrum communication frequency offset correction method, device, equipment and medium.
背景技术Background technique
扩展频谱通信(简称扩频通信)技术具有类似噪声的隐蔽性以及较强的抗干扰性,保密性好,广泛应用于军事通信和现代民用通信领域。扩频通信有直接序列扩频、跳频、跳时扩频和线性调频等方式,采用直接序列扩频技术的点对点通信场景下,通信设备参考时钟的不一致性将在发送端与接收端之间引入载波频率偏移(简称频偏),如果频偏较大会直接影响接收端对信号的解调恢复。Spread spectrum communication (spread spectrum communication for short) technology has noise-like concealment, strong anti-interference properties, and good confidentiality. It is widely used in military communications and modern civilian communications. Spread spectrum communication includes direct sequence spread spectrum, frequency hopping, time hopping spread spectrum and linear frequency modulation. In the point-to-point communication scenario using direct sequence spread spectrum technology, the inconsistency of the reference clock of the communication equipment will be between the transmitter and the receiver. Introducing carrier frequency offset (referred to as frequency offset), if the frequency offset is large, it will directly affect the demodulation recovery of the signal at the receiving end.
在对信号进行解调恢复时通常使用反馈控制环路来纠正频偏和相位差,反馈控制环路包括鉴相器、环路滤波器以及数控振荡器等部分,但是该反馈控制环路可直接捕获的频偏范围受限于信号的比特速率R:以BPSK(Binary Phase Shift Keying,二进制相移键控)调制为例,理想信噪比下反馈控制环路能够直接捕获的最大频偏范围为[-R/4,+R/4];以QPSK(Quadrature Phase Shift Keying,正交相移键控)调制为例,理想信噪比下反馈控制环路能够直接捕获的最大频偏范围为[-R/8,+R/8]。当信号的比特速率R以及信噪比较低时,实际通信过程中接收端与发送端之间的载波频偏会超出反馈控制环路能够直接捕获的最大频偏范围,此时反馈控制环路无法实现载波频偏的纠正。When demodulating and recovering signals, a feedback control loop is usually used to correct frequency offset and phase difference. The feedback control loop includes phase detectors, loop filters, and numerically controlled oscillators. However, the feedback control loop can be directly The captured frequency offset range is limited by the bit rate R of the signal: taking BPSK (Binary Phase Shift Keying, binary phase shift keying) modulation as an example, the maximum frequency offset range that the feedback control loop can directly capture under an ideal signal-to-noise ratio is [-R/4,+R/4]; Taking QPSK (Quadrature Phase Shift Keying) modulation as an example, the maximum frequency offset range that the feedback control loop can directly capture under an ideal signal-to-noise ratio is [ -R/8,+R/8]. When the bit rate R and signal-to-noise ratio of the signal are low, the carrier frequency offset between the receiving end and the transmitting end during the actual communication process will exceed the maximum frequency offset range that the feedback control loop can directly capture. At this time, the feedback control loop Correction of carrier frequency offset cannot be achieved.
发明内容Contents of the invention
发明目的:针对现有技术中存在的问题,本发明公开了一种扩频通信频偏纠正方法、装置、设备和介质,解决了超出反馈控制环路能够直接捕获的最大频偏范围的频偏无法被纠正的问题,扩大了可纠正的频偏范围。Purpose of the invention: In view of the problems existing in the prior art, the present invention discloses a spread spectrum communication frequency offset correction method, device, equipment and medium, which solves the problem of frequency offset that exceeds the maximum frequency offset range that the feedback control loop can directly capture. Problems that cannot be corrected expand the correctable frequency offset range.
技术方案:为实现上述发明目的,本发明采用如下技术方案:Technical solution: In order to achieve the above-mentioned object of the invention, the present invention adopts the following technical solution:
一种扩频通信频偏纠正方法,包括如下步骤:A spread spectrum communication frequency offset correction method includes the following steps:
接收扩频信号,所述扩频信号根据发送端发送的原始二进制比特序列与扩频序列运算得到;Receive a spread spectrum signal, which is obtained by calculating the original binary bit sequence sent by the transmitter and the spread spectrum sequence;
将最小频偏作为第一频率初始值,所述第一频率在频偏范围内、按照调谐值进行迭代;The minimum frequency offset is used as the initial value of the first frequency, and the first frequency is iterated according to the tuning value within the frequency offset range;
在每次迭代中,将当前第一频率作为数控振荡器的当前频率,得到对应当前第一频率的解扩后二进制比特序列,校验所述对应当前第一频率的解扩后二进制比特序列与原始二进制比特序列;In each iteration, the current first frequency is used as the current frequency of the numerically controlled oscillator, a despread binary bit sequence corresponding to the current first frequency is obtained, and the despread binary bit sequence corresponding to the current first frequency is verified with Raw binary bit sequence;
若校验成功,则所述数控振荡器的当前频率为频偏;If the verification is successful, the current frequency of the numerically controlled oscillator is frequency offset;
若校验失败,根据当前第一频率得到当前第二频率,将当前第二频率作为数控振荡器的当前频率,得到对应当前第二频率的解扩后二进制比特序列,校验所述对应当前第二频率的解扩后二进制比特序列与原始二进制比特序列,若校验成功,则所述数控振荡器的当前频率为频偏;若校验失败,将下一次迭代的第一频率作为数控振荡器的当前频率,所述下一次迭代的第一频率根据当前第一频率与调谐值计算得到;重复上述迭代过程,直到校验解扩后二进制比特序列与原始二进制比特序列成功,所述数控振荡器的当前频率为频偏;If the verification fails, obtain the current second frequency based on the current first frequency, use the current second frequency as the current frequency of the numerically controlled oscillator, obtain the despread binary bit sequence corresponding to the current second frequency, and verify that the current second frequency corresponds to the current second frequency. The despread binary bit sequence of the two frequencies and the original binary bit sequence. If the verification is successful, the current frequency of the numerically controlled oscillator is the frequency offset; if the verification fails, the first frequency of the next iteration is used as the numerically controlled oscillator. The current frequency, the first frequency of the next iteration is calculated according to the current first frequency and tuning value; repeat the above iteration process until the verification of the despread binary bit sequence and the original binary bit sequence is successful, the numerically controlled oscillator The current frequency of is the frequency offset;
将所述频偏作为数控振荡器的频率,通过所述数控振荡器来纠正后续接收的扩频信号的频偏。The frequency offset is used as the frequency of a numerically controlled oscillator, and the frequency offset of the subsequently received spread spectrum signal is corrected by the numerically controlled oscillator.
进一步的,所述调谐值根据理想信噪比下反馈控制环路能够捕获的最大频偏范围、最大信噪比和当前信噪比计算得到。Further, the tuning value is calculated based on the maximum frequency offset range that the feedback control loop can capture under an ideal signal-to-noise ratio, the maximum signal-to-noise ratio, and the current signal-to-noise ratio.
进一步的,所述调谐值ftune为:Further, the tuning value f tune is:
其中,W为理想信噪比下反馈控制环路能够捕获的最大频偏范围的区间长度,SNRmax为最大信噪比,SNR为当前信噪比,α为经验值。Among them, W is the interval length of the maximum frequency offset range that the feedback control loop can capture under the ideal signal-to-noise ratio, SNR max is the maximum signal-to-noise ratio, SNR is the current signal-to-noise ratio, and α is the empirical value.
进一步的,所述当前第一频率加所述调谐值得到所述下一次迭代的第一频率。Further, the current first frequency is added to the tuning value to obtain the first frequency of the next iteration.
进一步的,根据当前第一频率得到当前第二频率,包括:Further, obtaining the current second frequency based on the current first frequency includes:
所述扩频信号依次与数控振荡器和扩频序列运算得到解扩后信号;The spread spectrum signal is sequentially operated with a numerically controlled oscillator and a spread spectrum sequence to obtain a despread signal;
所述解扩后信号中,每固定序列长度检测一个相关峰,所述固定序列长度为扩频序列的序列长度,所述相关峰为每固定序列长度中信号幅值最大的位置;In the despread signal, one correlation peak is detected for each fixed sequence length, the fixed sequence length is the sequence length of the spread spectrum sequence, and the correlation peak is the position with the maximum signal amplitude in each fixed sequence length;
根据所述每个相关峰位置的I路信号值和Q路信号值得到相邻相关峰对应的坐标点之间的旋转角度;The rotation angle between the coordinate points corresponding to adjacent correlation peaks is obtained according to the I signal value and Q signal value of each correlation peak position;
根据所述相邻相关峰对应的坐标点之间的旋转角度得到矫正频率;Obtain the correction frequency according to the rotation angle between the coordinate points corresponding to the adjacent correlation peaks;
根据所述矫正频率与当前第一频率得到当前第二频率。The current second frequency is obtained according to the correction frequency and the current first frequency.
进一步的,所述相邻相关峰对应的坐标点之间的旋转角度为:Further, the rotation angle between the coordinate points corresponding to the adjacent correlation peaks is:
其中,θ(k)为第k+1个相关峰对应的坐标点与第k个相关峰对应的坐标点之间的旋转角度,Ixcorr(k)和Qxcorr(k)分别为第k个相关峰的I路信号值和Q路信号值,Ixcorr(k+1)和Qxcorr(k+1)分别为第k+1个相关峰的I路信号值和Q路信号值,K为相关峰数量;Among them, θ(k) is the rotation angle between the coordinate point corresponding to the k+1-th correlation peak and the coordinate point corresponding to the k-th correlation peak, I xcorr (k) and Q xcorr (k) are the k-th correlation peak respectively. The I signal value and Q signal value of the correlation peak, I xcorr (k+1) and Q xcorr (k+1) are the I signal value and Q signal value of the k+1th correlation peak respectively, K is Number of relevant peaks;
所述矫正频率fguess_ave为:The correction frequency f guess_ave is:
其中,R为比特速率;Among them, R is the bit rate;
所述当前第二频率为:The current second frequency for:
其中,为当前第一频率,l表示迭代次数。in, is the current first frequency, and l represents the number of iterations.
进一步的,所述每个相关峰位置的I路信号值和Q路信号值通过有符号数表示,根据每个相关峰位置的I路信号值的符号位和Q路信号值的符号位确定每固定序列长度的解扩后信号对应的二进制数据,所述每固定序列长度的解扩后信号对应的二进制数据顺序组合得到解扩后二进制比特序列。Further, the I-channel signal value and Q-channel signal value at each correlation peak position are represented by signed numbers, and each signal value is determined based on the sign bit of the I-channel signal value and the Q-channel signal value at each correlation peak position. Binary data corresponding to the despread signal of a fixed sequence length, and the binary data corresponding to the despread signal of each fixed sequence length are sequentially combined to obtain a despread binary bit sequence.
进一步的,所述原始二进制比特序列包括特征比特序列信息,所述解扩后二进制比特序列包括特征比特序列信息,若原始二进制比特序列的特征比特序列信息与解扩后二进制比特序列的特征比特序列信息相符,则解扩后二进制比特序列与原始二进制比特序列校验成功。Further, the original binary bit sequence includes characteristic bit sequence information, and the despread binary bit sequence includes characteristic bit sequence information. If the characteristic bit sequence information of the original binary bit sequence is the same as the characteristic bit sequence of the despread binary bit sequence, If the information matches, the despread binary bit sequence and the original binary bit sequence are successfully verified.
进一步的,所述原始二进制比特序列和解扩后二进制比特序列通过数据帧表示,每个数据帧包括若干字节,定义每个数据帧前固定位置的字节为特征位,特征位对应的二进制数据为特征比特序列信息。Further, the original binary bit sequence and the deexpanded binary bit sequence are represented by data frames. Each data frame includes several bytes. The byte at a fixed position in front of each data frame is defined as a feature bit, and the binary data corresponding to the feature bit is the characteristic bit sequence information.
一种扩频通信频偏纠正装置,包括:A spread spectrum communication frequency offset correction device, including:
信号接收模块,用于接收扩频信号,所述扩频信号根据发送端发送的原始二进制比特序列与扩频序列运算得到;A signal receiving module, configured to receive a spread spectrum signal, which is obtained by calculating the original binary bit sequence sent by the transmitter and the spread spectrum sequence;
迭代模块,用于将最小频偏作为第一频率初始值,所述第一频率在频偏范围内、按照调谐值进行迭代;An iteration module, used to use the minimum frequency offset as the initial value of the first frequency, and the first frequency is iterated according to the tuning value within the frequency offset range;
在每次迭代中,将当前第一频率作为数控振荡器的当前频率,得到对应当前第一频率的解扩后二进制比特序列,校验所述对应当前第一频率的解扩后二进制比特序列与原始二进制比特序列;若校验成功,则所述数控振荡器的当前频率为频偏;若校验失败,根据当前第一频率得到当前第二频率,将当前第二频率作为数控振荡器的当前频率,得到对应当前第二频率的解扩后二进制比特序列,校验所述对应当前第二频率的解扩后二进制比特序列与原始二进制比特序列,若校验成功,则所述数控振荡器的当前频率为频偏;若校验失败,将下一次迭代的第一频率作为数控振荡器的当前频率,所述下一次迭代的第一频率根据当前第一频率与调谐值计算得到;重复上述迭代过程,直到校验解扩后二进制比特序列与原始二进制比特序列成功,所述数控振荡器的当前频率为频偏;In each iteration, the current first frequency is used as the current frequency of the numerically controlled oscillator, a despread binary bit sequence corresponding to the current first frequency is obtained, and the despread binary bit sequence corresponding to the current first frequency is verified with The original binary bit sequence; if the verification is successful, the current frequency of the numerically controlled oscillator is the frequency offset; if the verification fails, the current second frequency is obtained based on the current first frequency, and the current second frequency is used as the current frequency of the numerically controlled oscillator. frequency, obtain the despread binary bit sequence corresponding to the current second frequency, and verify the despread binary bit sequence corresponding to the current second frequency and the original binary bit sequence. If the verification is successful, then the numerically controlled oscillator The current frequency is the frequency offset; if the verification fails, the first frequency of the next iteration is used as the current frequency of the CNC oscillator, and the first frequency of the next iteration is calculated based on the current first frequency and the tuning value; repeat the above iteration process, until the verification of the despread binary bit sequence and the original binary bit sequence is successful, the current frequency of the numerically controlled oscillator is the frequency offset;
频偏纠正模块,用于将所述频偏作为数控振荡器的频率,通过所述数控振荡器来纠正后续接收的扩频信号的频偏。A frequency offset correction module is used to use the frequency offset as the frequency of a numerically controlled oscillator, and use the numerically controlled oscillator to correct the frequency offset of subsequently received spread spectrum signals.
一种扩频通信频偏纠正设备,包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现前述的任意一项所述扩频通信频偏纠正方法。A spread spectrum communication frequency offset correction device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the program, any one of the aforementioned spread spectrum is realized. Communication frequency offset correction method.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行前述的任意一项所述扩频通信频偏纠正方法。A computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute any one of the aforementioned spread spectrum communication frequency offset correction methods.
有益效果:与现有技术相比较,本发明具有如下有益效果:Beneficial effects: Compared with the existing technology, the present invention has the following beneficial effects:
本发明在最大频偏范围内、以最小频偏为初始值、按照调谐值进行迭代来设置第一频率,校验根据第一频率得到的解扩后二进制比特序列,若校验不通过,再将第一频率修正为第二频率,校验根据第二频率得到的解扩后二进制比特序列,若校验不通过,校验根据下一次迭代的第一频率得到的解扩后二进制比特序列,重复上述过程,可以确保在接收端与发送端之间的整个最大频偏范围内搜索到接收端与发送端之间的正确频偏。The present invention sets the first frequency iteratively according to the tuning value within the maximum frequency offset range, taking the minimum frequency offset as the initial value, and verifies the despread binary bit sequence obtained according to the first frequency. If the verification fails, then Correct the first frequency to the second frequency, and verify the despread binary bit sequence obtained based on the second frequency. If the verification fails, verify the despread binary bit sequence obtained based on the first frequency of the next iteration, Repeating the above process can ensure that the correct frequency offset between the receiving end and the transmitting end is searched within the entire maximum frequency offset range between the receiving end and the transmitting end.
附图说明Description of the drawings
图1为本发明实施例1所述的频偏纠正方法的流程图;Figure 1 is a flow chart of the frequency offset correction method according to Embodiment 1 of the present invention;
图2是本发明实施例2所述的频偏纠正方法的总体框图;Figure 2 is an overall block diagram of the frequency offset correction method according to Embodiment 2 of the present invention;
图3是本发明实施例2所述的接收端频偏纠正方法的具体框图;Figure 3 is a specific block diagram of the receiving end frequency offset correction method according to Embodiment 2 of the present invention;
图4是本发明实施例2所述的发送端原始二进制比特序列以及经过扩频调制后信号的波形图;Figure 4 is a waveform diagram of the original binary bit sequence at the transmitting end and the signal after spread spectrum modulation according to Embodiment 2 of the present invention;
图5是本发明实施例2所述的发送端发送的数据帧结构图;Figure 5 is a structural diagram of a data frame sent by the sending end according to Embodiment 2 of the present invention;
图6是本发明实施例2所述的接收端相邻两个相关峰位置处I/Q数据在星座图上的相位旋转图;Figure 6 is a phase rotation diagram of I/Q data on a constellation diagram at two adjacent correlation peak positions at the receiving end according to Embodiment 2 of the present invention;
图7为本发明实施例4所述的频偏纠正装置的结构图。FIG. 7 is a structural diagram of a frequency offset correction device according to Embodiment 4 of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明作更进一步的说明。The present invention will be further described below in conjunction with the accompanying drawings.
实施例1:Example 1:
本实施例公开了一种扩频通信频偏纠正方法,如图1所示,包括如下步骤:This embodiment discloses a spread spectrum communication frequency offset correction method, as shown in Figure 1, including the following steps:
接收扩频信号,所述扩频信号根据发送端发送的原始二进制比特序列与扩频序列运算得到;Receive a spread spectrum signal, which is obtained by calculating the original binary bit sequence sent by the transmitter and the spread spectrum sequence;
将最小频偏作为第一频率初始值,所述第一频率在频偏范围内、按照调谐值进行迭代;The minimum frequency offset is used as the initial value of the first frequency, and the first frequency is iterated according to the tuning value within the frequency offset range;
在每次迭代中,将当前第一频率作为数控振荡器的当前频率,得到对应当前第一频率的解扩后二进制比特序列,校验所述对应当前第一频率的解扩后二进制比特序列与原始二进制比特序列;In each iteration, the current first frequency is used as the current frequency of the numerically controlled oscillator, a despread binary bit sequence corresponding to the current first frequency is obtained, and the despread binary bit sequence corresponding to the current first frequency is verified with Raw binary bit sequence;
若校验成功,则所述数控振荡器的当前频率为频偏;If the verification is successful, the current frequency of the numerically controlled oscillator is frequency offset;
若校验失败,根据当前第一频率得到当前第二频率,将当前第二频率作为数控振荡器的当前频率,得到对应当前第二频率的解扩后二进制比特序列,校验所述对应当前第二频率的解扩后二进制比特序列与原始二进制比特序列,若校验成功,则所述数控振荡器的当前频率为频偏;若校验失败,将下一次迭代的第一频率作为数控振荡器的当前频率,所述下一次迭代的第一频率根据当前第一频率与调谐值计算得到;重复上述迭代过程,直到校验解扩后二进制比特序列与原始二进制比特序列成功,所述数控振荡器的当前频率为频偏;If the verification fails, obtain the current second frequency based on the current first frequency, use the current second frequency as the current frequency of the numerically controlled oscillator, obtain the despread binary bit sequence corresponding to the current second frequency, and verify that the current second frequency corresponds to the current second frequency. The despread binary bit sequence of the two frequencies and the original binary bit sequence. If the verification is successful, the current frequency of the numerically controlled oscillator is the frequency offset; if the verification fails, the first frequency of the next iteration is used as the numerically controlled oscillator. The current frequency, the first frequency of the next iteration is calculated according to the current first frequency and tuning value; repeat the above iteration process until the verification of the despread binary bit sequence and the original binary bit sequence is successful, the numerically controlled oscillator The current frequency of is the frequency offset;
将所述频偏作为数控振荡器的频率,通过所述数控振荡器来纠正后续接收的扩频信号的频偏。The frequency offset is used as the frequency of a numerically controlled oscillator, and the frequency offset of the subsequently received spread spectrum signal is corrected by the numerically controlled oscillator.
本实施例在最大频偏范围内、以最小频偏为初始值、按照调谐值进行迭代来设置第一频率,校验根据第一频率得到的解扩后二进制比特序列,若校验不通过,再将第一频率修正为第二频率,校验根据第二频率得到的解扩后二进制比特序列,若校验不通过,校验根据下一次迭代的第一频率得到的解扩后二进制比特序列,重复上述过程,可以确保在接收端与发送端之间的整个最大频偏范围内搜索到接收端与发送端之间的正确频偏。In this embodiment, the first frequency is set iteratively according to the tuning value within the maximum frequency offset range, with the minimum frequency offset as the initial value, and the despread binary bit sequence obtained according to the first frequency is verified. If the verification fails, Then correct the first frequency to the second frequency, and verify the despread binary bit sequence obtained based on the second frequency. If the verification fails, verify the despread binary bit sequence obtained based on the first frequency of the next iteration. , repeating the above process can ensure that the correct frequency offset between the receiving end and the transmitting end is searched within the entire maximum frequency offset range between the receiving end and the transmitting end.
本实施例中,利用反馈控制环路开环时,数控振荡器的梯度扫描配置频偏即设置迭代的第一频率,避免了调整接收机模拟部分中频频点,避免了等待反馈控制环路锁定数控振荡器频率的响应时间,配置速度快,可以快速实现。In this embodiment, when the feedback control loop is used to open the loop, the gradient scan configuration frequency offset of the numerically controlled oscillator is the first frequency of the iteration, which avoids the need to adjust the intermediate frequency point of the analog part of the receiver and avoid waiting for the feedback control loop to lock. The response time of the CNC oscillator frequency is fast, and the configuration speed can be quickly implemented.
进一步的,所述调谐值根据理想信噪比下反馈控制环路能够捕获的最大频偏范围、最大信噪比和当前信噪比计算得到。Further, the tuning value is calculated based on the maximum frequency offset range that the feedback control loop can capture under an ideal signal-to-noise ratio, the maximum signal-to-noise ratio, and the current signal-to-noise ratio.
进一步的,所述调谐值ftune为:Further, the tuning value f tune is:
其中,W为理想信噪比下反馈控制环路能够捕获的最大频偏范围的区间长度,SNRmax为最大信噪比,SNR为当前信噪比,α为经验值。Among them, W is the interval length of the maximum frequency offset range that the feedback control loop can capture under the ideal signal-to-noise ratio, SNR max is the maximum signal-to-noise ratio, SNR is the current signal-to-noise ratio, and α is the empirical value.
本实施例中,动态设定的调谐值,可以根据实时通信状态进行调整,相比于固定的调谐值,更具有准确性。In this embodiment, the dynamically set tuning value can be adjusted according to the real-time communication status, and is more accurate than the fixed tuning value.
进一步的,所述当前第一频率加所述调谐值得到所述下一次迭代的第一频率。Further, the current first frequency is added to the tuning value to obtain the first frequency of the next iteration.
进一步的,根据当前第一频率得到当前第二频率,包括:Further, obtaining the current second frequency based on the current first frequency includes:
所述扩频信号依次与数控振荡器和扩频序列运算得到解扩后信号;The spread spectrum signal is sequentially operated with a numerically controlled oscillator and a spread spectrum sequence to obtain a despread signal;
所述解扩后信号中,每固定序列长度检测一个相关峰,所述固定序列长度为扩频序列的序列长度,所述相关峰为每固定序列长度中信号幅值最大的位置;In the despread signal, one correlation peak is detected for each fixed sequence length, the fixed sequence length is the sequence length of the spread spectrum sequence, and the correlation peak is the position with the maximum signal amplitude in each fixed sequence length;
根据所述每个相关峰位置的I路信号值和Q路信号值得到相邻相关峰对应的坐标点之间的旋转角度;The rotation angle between the coordinate points corresponding to adjacent correlation peaks is obtained according to the I signal value and Q signal value of each correlation peak position;
根据所述相邻相关峰对应的坐标点之间的旋转角度得到矫正频率;Obtain the correction frequency according to the rotation angle between the coordinate points corresponding to the adjacent correlation peaks;
根据所述矫正频率与当前第一频率得到当前第二频率。The current second frequency is obtained according to the correction frequency and the current first frequency.
进一步的,所述相邻相关峰对应的坐标点之间的旋转角度为:Further, the rotation angle between the coordinate points corresponding to the adjacent correlation peaks is:
其中,θ(k)为第k+1个相关峰对应的坐标点与第k个相关峰对应的坐标点之间的旋转角度,Ixcorr(k)和Qxcorr(k)分别为第k个相关峰的I路信号值和Q路信号值,Ixcorr(k+1)和Qxcorr(k+1)分别为第k+1个相关峰的I路信号值和Q路信号值,K为相关峰数量;Among them, θ(k) is the rotation angle between the coordinate point corresponding to the k+1-th correlation peak and the coordinate point corresponding to the k-th correlation peak, I xcorr (k) and Q xcorr (k) are the k-th correlation peak respectively. The I signal value and Q signal value of the correlation peak, I xcorr (k+1) and Q xcorr (k+1) are the I signal value and Q signal value of the k+1th correlation peak respectively, K is Number of relevant peaks;
所述矫正频率fguess_ave为:The correction frequency f guess_ave is:
其中,R为比特速率;Among them, R is the bit rate;
所述当前第二频率为:The current second frequency for:
其中,为当前第一频率,l表示迭代次数。in, is the current first frequency, and l represents the number of iterations.
进一步的,所述每个相关峰位置的I路信号值和Q路信号值通过有符号数表示,根据每个相关峰位置的I路信号值的符号位和Q路信号值的符号位确定每固定序列长度的解扩后信号对应的二进制数据,所述每固定序列长度的解扩后信号对应的二进制数据顺序组合得到解扩后二进制比特序列。Further, the I-channel signal value and Q-channel signal value at each correlation peak position are represented by signed numbers, and each signal value is determined based on the sign bit of the I-channel signal value and the Q-channel signal value at each correlation peak position. Binary data corresponding to the despread signal of a fixed sequence length, and the binary data corresponding to the despread signal of each fixed sequence length are sequentially combined to obtain a despread binary bit sequence.
进一步的,所述原始二进制比特序列包括特征比特序列信息,所述解扩后二进制比特序列包括特征比特序列信息,若原始二进制比特序列的特征比特序列信息与解扩后二进制比特序列的特征比特序列信息相符,则解扩后二进制比特序列与原始二进制比特序列校验成功。Further, the original binary bit sequence includes characteristic bit sequence information, and the despread binary bit sequence includes characteristic bit sequence information. If the characteristic bit sequence information of the original binary bit sequence is the same as the characteristic bit sequence of the despread binary bit sequence, If the information matches, the despread binary bit sequence and the original binary bit sequence are successfully verified.
本实施例中,在频偏估计时利用特征比特序列信息进行校验的方式,确保了频偏估计的准确性。In this embodiment, the accuracy of frequency offset estimation is ensured by using characteristic bit sequence information for verification during frequency offset estimation.
进一步的,所述原始二进制比特序列和解扩后二进制比特序列通过数据帧表示,每个数据帧包括若干字节,定义每个数据帧前固定位置的字节为特征位,特征位对应的二进制数据为特征比特序列信息。Further, the original binary bit sequence and the deexpanded binary bit sequence are represented by data frames. Each data frame includes several bytes. The byte at a fixed position in front of each data frame is defined as a feature bit, and the binary data corresponding to the feature bit is the characteristic bit sequence information.
实施例2:Example 2:
本实施例公开了一种扩频通信频偏纠正方法,如图2所示,包括发送端发送扩频信号、接收端接收扩频信号、频偏估计和锁定数控振荡器频率纠正频偏实现频率同步四个部分,用于扩大接收端频偏纠正范围,适用于低信噪比固定点对点的BPSK/QPSK扩频通信应用场景。This embodiment discloses a spread spectrum communication frequency offset correction method, as shown in Figure 2, including the transmitter sending a spread spectrum signal, the receiving end receiving the spread spectrum signal, frequency offset estimation and locking the numerically controlled oscillator frequency correction frequency offset to achieve the frequency The four parts of synchronization are used to expand the frequency offset correction range of the receiving end and are suitable for low signal-to-noise ratio fixed point-to-point BPSK/QPSK spread spectrum communication application scenarios.
如图3所示,本实施例所述方法具体包括如下步骤:As shown in Figure 3, the method described in this embodiment specifically includes the following steps:
步骤S1:发送端发送扩频信号Step S1: The transmitter sends a spread spectrum signal
接收端与发送端之间的同步通信建立之前,发送端持续发送原始二进制比特序列ST,原始二进制比特序列ST经过与扩频序列CPN运算后,得到扩频信号XT为:Before the synchronous communication between the receiving end and the transmitting end is established, the transmitting end continues to send the original binary bit sequence S T . After the original binary bit sequence S T is operated with the spreading sequence C PN , the spread spectrum signal X T is obtained:
XT=STCPN X T =S T C PN
发送端将扩频信号XT经由发射机发送出去,如图4所示,左侧为原始二进制比特序列,经过扩频和调制之后以右侧波形形式的信号发送出去。The transmitting end sends the spread spectrum signal
本实施例中,发送端以数据帧(Frame)的形式发送原始二进制比特序列,每个数据帧包括若干字节(BYTE),每个字节包括8个比特(Bit)。例如,如图5所示,发送端发送原始二进制比特序列的比特速率R为8kHz,即每秒发送8000个比特,发送端以每秒20帧的速率发送数据帧,因此得到每个数据帧包括50个字节。In this embodiment, the sending end sends the original binary bit sequence in the form of a data frame (Frame). Each data frame includes several bytes (BYTE), and each byte includes 8 bits (Bit). For example, as shown in Figure 5, the bit rate R of the original binary bit sequence sent by the sender is 8kHz, that is, 8000 bits are sent per second. The sender sends data frames at a rate of 20 frames per second, so each data frame includes 50 bytes.
将原始二进制比特序列的每个数据帧中特定位置的字节设定为特征位,特征位对应的比特序列信息为用于校验的特征比特序列信息。本实施例中,定义每个数据帧前2个字节为特征位(BYTE1以及BYTE2),对应的二进制数据为特征比特序列信息。本实施例在频偏估计时利用特征比特序列信息进行校验的方式确保了频偏估计的准确性。The byte at a specific position in each data frame of the original binary bit sequence is set as a signature bit, and the bit sequence information corresponding to the signature bit is the signature bit sequence information used for verification. In this embodiment, the first 2 bytes of each data frame are defined as signature bits (BYTE1 and BYTE2), and the corresponding binary data is signature bit sequence information. This embodiment uses characteristic bit sequence information for verification during frequency offset estimation to ensure the accuracy of frequency offset estimation.
步骤S2:接收端接收扩频信号;Step S2: The receiving end receives the spread spectrum signal;
将最小频偏作为第一频率初始值,所述第一频率在频偏范围内、按照调谐值进行迭代;The minimum frequency offset is used as the initial value of the first frequency, and the first frequency is iterated according to the tuning value within the frequency offset range;
在每次迭代中,将当前第一频率作为数控振荡器的当前频率,得到对应当前第一频率的解扩后二进制比特序列,校验所述对应当前第一频率的解扩后二进制比特序列与原始二进制比特序列;In each iteration, the current first frequency is used as the current frequency of the numerically controlled oscillator, a despread binary bit sequence corresponding to the current first frequency is obtained, and the despread binary bit sequence corresponding to the current first frequency is verified with Raw binary bit sequence;
若校验成功,则所述数控振荡器的当前频率为频偏;If the verification is successful, the current frequency of the numerically controlled oscillator is frequency offset;
若校验失败,根据当前第一频率得到当前第二频率,将当前第二频率作为数控振荡器的当前频率,得到对应当前第二频率的解扩后二进制比特序列,校验所述对应当前第二频率的解扩后二进制比特序列与原始二进制比特序列,若校验成功,则所述数控振荡器的当前频率为频偏;若校验失败,将下一次迭代的第一频率作为数控振荡器的当前频率,所述下一次迭代的第一频率根据当前第一频率与调谐值计算得到;重复上述迭代过程,直到校验解扩后二进制比特序列与原始二进制比特序列成功,所述数控振荡器的当前频率为频偏;If the verification fails, obtain the current second frequency based on the current first frequency, use the current second frequency as the current frequency of the numerically controlled oscillator, obtain the despread binary bit sequence corresponding to the current second frequency, and verify that the current second frequency corresponds to the current second frequency. The despread binary bit sequence of the two frequencies and the original binary bit sequence. If the verification is successful, the current frequency of the numerically controlled oscillator is the frequency offset; if the verification fails, the first frequency of the next iteration is used as the numerically controlled oscillator. The current frequency, the first frequency of the next iteration is calculated according to the current first frequency and tuning value; repeat the above iteration process until the verification of the despread binary bit sequence and the original binary bit sequence is successful, the numerically controlled oscillator The current frequency of is the frequency offset;
步骤S21:接收端接收到发送端发射机发送的信号后,接收端的接收机对接收的信号进行ADC采样得到扩频信号YR。Step S21: After the receiving end receives the signal sent by the transmitter of the transmitting end, the receiver of the receiving end performs ADC sampling on the received signal to obtain the spread spectrum signal Y R .
此时由于接收端与发送端之间还未建立同步通信,即接收端接收到的扩频信号YR与发送端发送的扩频信号XT之间存在频偏,而该频偏可能超出反馈控制环路能够直接捕获的最大频偏范围,因此需要设置反馈控制环路的环路开关为打开状态,通过数控振荡器(NCO)的开环控制配合校验信息来搜索频偏,在搜索到正确的频偏之后,将数控振荡器的频率设置为搜索到的频偏,再将反馈控制环路的环路开关设置为闭合状态,实现通信同步。At this time, since synchronous communication has not been established between the receiving end and the transmitting end, there is a frequency offset between the spread spectrum signal Y R received by the receiving end and the spread spectrum signal X T sent by the transmitting end, and this frequency offset may exceed the feedback The maximum frequency offset range that the control loop can directly capture, so the loop switch of the feedback control loop needs to be set to the open state, and the frequency offset is searched through the open-loop control of the numerically controlled oscillator (NCO) and the verification information. After the correct frequency offset is obtained, the frequency of the CNC oscillator is set to the searched frequency offset, and then the loop switch of the feedback control loop is set to the closed state to achieve communication synchronization.
通过数控振荡器(NCO)的开环控制配合校验信息来搜索频偏的过程如下:The process of searching for frequency offset through the open-loop control of the numerically controlled oscillator (NCO) and the verification information is as follows:
步骤S22:设置数控振荡器的频率为初始第一频率初始第一频率为实际测试得到的接收端与发送端之间的最小频偏。Step S22: Set the frequency of the numerically controlled oscillator to the initial first frequency The initial first frequency is the minimum frequency offset between the receiving end and the transmitting end obtained through actual testing.
以BPSK调制为例,在发送端直接加载频率为ftrs的单音信标信号,单音信标信号频率与功率已知;接收端解析得到单音信标信号的频率为frec,因此可以通过实际测试得到的接收端与发送端之间的频偏范围(ftrs-frec)为[-12kHz,+12kHz],即最小频偏为foffset_min=-12kHz,最大频偏为foffset_max=12kHz,因此设置初始第一频率为-12kHz。通过上述单音信标信号的测量方法还可以得到最大信噪比SNRmax。Taking BPSK modulation as an example, the single-tone beacon signal with frequency f trs is directly loaded on the transmitting end. The frequency and power of the single-tone beacon signal are known; the receiving end analyzes and obtains the frequency of the single-tone beacon signal as f rec , so it can pass the actual test. The obtained frequency offset range (f trs -f rec ) between the receiving end and the transmitting end is [-12kHz, +12kHz], that is, the minimum frequency offset is f offset_min =-12kHz, and the maximum frequency offset is f offset_max =12kHz, so Set the initial first frequency to -12kHz. The maximum signal-to-noise ratio SNR max can also be obtained through the above measurement method of the single tone beacon signal.
步骤S23:计算对应数控振荡器当前频率的解扩后二进制比特序列Step S23: Calculate the despread binary bit sequence corresponding to the current frequency of the numerically controlled oscillator
扩频信号YR通过数控振荡器得到待解扩信号YR′。The spread spectrum signal Y R is passed through a numerically controlled oscillator to obtain the signal Y R ′ to be despread.
待解扩信号YR′与发送端的扩频序列CPN进行解扩相关运算,得到解扩后信号UR,解扩相关运算为:The signal to be despread Y R ′ performs a despread correlation operation with the spreading sequence C PN at the transmitter to obtain the despread signal U R . The despread correlation operation is:
其中,N为扩频序列的序列长度,即扩频序列中包含的比特数,m和n为在0到N-1之间的整数;j=0,1,…,J-1,J为待解扩信号YR′的序列长度与扩频序列的序列长度的比值。Among them, N is the sequence length of the spreading sequence, that is, the number of bits contained in the spreading sequence, m and n are integers between 0 and N-1; j=0,1,...,J-1, J is The ratio of the sequence length of the signal Y R ′ to be despread to the sequence length of the spreading sequence.
针对解扩后信号UR,将其以固定序列长度分段,即每个分段信号的为固定序列长度,所述固定序列长度为扩频序列CPN的序列长度;检测每个分段信号的相关峰位置,相关峰位置即为信号幅值最大的位置,保存每个分段信号相关峰位置处的复数信号值,包括I路信号值Ixcorr和Q路信号值Qxcorr,相关峰位置处的信号幅值为 For the despread signal UR , segment it with a fixed sequence length, that is, each segmented signal has a fixed sequence length, and the fixed sequence length is the sequence length of the spreading sequence C PN ; detect each segmented signal The correlation peak position of The signal amplitude at is
根据每个分段信号相关峰位置处的I路信号值Ixcorr和Q路信号值Qxcorr,计算判决得到对应数控振荡器当前频率的解扩后二进制比特序列SR,计算判决方法如下:用有符号数表示每个分段信号相关峰位置处的I路信号值Ixcorr和Q路信号值Qxcorr,根据I路信号值Ixcorr和Q路信号值Qxcorr的符号位得到每个分段信号对应的二进制数据。其中,I路信号值Ixcorr和Q路信号值Qxcorr的符号位与二进制数据之间的映射关系为原始二进制比特序列确定。According to the I signal value I xcorr and the Q signal value Q xcorr at the correlation peak position of each segmented signal, the calculation decision is made to obtain the despread binary bit sequence S R corresponding to the current frequency of the CNC oscillator. The calculation decision method is as follows: use The signed number represents the I signal value I xcorr and the Q signal value Q xcorr at the correlation peak position of each segment signal. Each segment is obtained according to the sign bit of the I signal value I xcorr and the Q signal value Q xcorr . The binary data corresponding to the signal. Among them, the mapping relationship between the sign bits of the I signal value I xcorr and the Q signal value Q xcorr and the binary data is determined by the original binary bit sequence.
例如BPSK调制,Q路信号值均为0,因此若表示I路信号值Ixcorr的有符号数的符号位为0,则分段信号对应的二进制数据为1,若表示I路信号值Ixcorr的有符号整数的符号位为1,则分段信号对应的二进制数据为0;根据每个分段信号在解扩后信号UR中的位置将每个分段信号对应的二进制数据顺序组合,即可得到解扩后二进制比特序列SR。For example, in BPSK modulation, the Q signal values are all 0. Therefore, if the sign bit of the signed number representing the I signal value I xcorr is 0, then the binary data corresponding to the segmented signal is 1. If it represents the I signal value I xcorr The sign bit of the signed integer is 1, then the binary data corresponding to the segmented signal is 0; the binary data corresponding to each segmented signal is sequentially combined according to the position of each segmented signal in the despread signal U R , The despread binary bit sequence S R can be obtained.
步骤S24:校验原始二进制比特序列ST和对应数字振荡器当前频率的解扩后二进制比特序列SR,若校验成功,则数字振荡器当前频率即为接收端与发送端之间的频偏;若校验不成功,则将当前第一频率修正为第二频率。Step S24: Verify the original binary bit sequence S T and the despread binary bit sequence SR corresponding to the current frequency of the digital oscillator. If the verification is successful, the current frequency of the digital oscillator is the frequency between the receiving end and the transmitting end. Offset; if the verification is unsuccessful, the current first frequency will be corrected to the second frequency.
原始二进制比特序列ST和解扩后二进制比特序列SR的校验方法为:将解扩后二进制比特序列SR用与原始二进制比特序列ST相同的数据帧格式表示,比较原始二进制比特序列ST每个数据帧中的特征比特序列信息和解扩后二进制比特序列SR每个数据帧中的特征比特序列信息,若相符,则校验成功;若存在不相符,则校验不成功。The verification method of the original binary bit sequence S T and the despread binary bit sequence S R is: express the despread binary bit sequence S R in the same data frame format as the original binary bit sequence S T , and compare the original binary bit sequence S T The characteristic bit sequence information in each data frame and the despread binary bit sequence S R The characteristic bit sequence information in each data frame. If they match, the verification is successful; if there is a mismatch, the verification is unsuccessful.
调整数字振荡器的频率为:根据当前第l次迭代的第一频率将数字振荡器的频率修正为第二频率/>包括:Adjust the frequency of the digital oscillator to: based on the first frequency of the current l-th iteration Correct the frequency of the digital oscillator to the second frequency/> include:
如图6所示,根据每个分段信号相关峰位置处的I路信号值Ixcorr和Q路信号值Qxcorr在星座图上对应的坐标点,计算相邻相关峰对应的坐标点之间的旋转角度θ(k)为:As shown in Figure 6, according to the coordinate points corresponding to the I-channel signal value I xcorr and the Q-channel signal value Q xcorr on the constellation diagram at the position of each segmented signal correlation peak, the distance between the coordinate points corresponding to adjacent correlation peaks is calculated. The rotation angle θ(k) is:
其中,θ(k)为第k+1个相关峰对应的坐标点与第k个相关峰对应的坐标点之间的旋转角度,Ixcorr(k)和Qxcorr(k)分别为第k个分段信号相关峰位置处的I路信号值和Q路信号值,Ixcorr(k+1)和Qxcorr(k+1)分别为第k个分段信号相关峰位置处的I路信号值和Q路信号值,K为分段信号的数量,也即相关峰的数量。Among them, θ(k) is the rotation angle between the coordinate point corresponding to the k+1-th correlation peak and the coordinate point corresponding to the k-th correlation peak, I xcorr (k) and Q xcorr (k) are the k-th correlation peak respectively. The I signal value and the Q signal value at the correlation peak position of the segmented signal, I xcorr (k+1) and Q xcorr (k+1) are the I signal value at the kth segment signal correlation peak position respectively. and Q signal value, K is the number of segmented signals, that is, the number of correlation peaks.
根据相邻相关峰对应的坐标点之间的旋转角度计算矫正频偏fguess_ave为:Calculate the corrected frequency offset f guess_ave based on the rotation angle between the coordinate points corresponding to adjacent correlation peaks as:
其中,R为发送端发送原始二进制比特序列的比特速率。Among them, R is the bit rate at which the sending end sends the original binary bit sequence.
用矫正频偏fguess_ave修正当前第l次迭代的第一频率为第二频率/> Use the corrected frequency offset f guess_ave to correct the first frequency of the current l-th iteration is the second frequency/>
步骤S25:将数字振荡器的频率设置为当前第二频率根据步骤S23的过程得到对应数控振荡器当前频率的解扩后二进制比特序列SR,根据步骤S24所述的校验方法校验原始二进制比特序列ST和解扩后二进制比特序列SR,若校验成功,则数字振荡器的当前频率即为接收端与发送端之间的频偏;若校验不成功,则将当前第一频率调整为下一次迭代的第一频率。Step S25: Set the frequency of the digital oscillator to the current second frequency According to the process of step S23, the despread binary bit sequence S R corresponding to the current frequency of the numerically controlled oscillator is obtained. The original binary bit sequence ST is verified according to the verification method described in step S24. The despread binary bit sequence S R is verified. If the verification is successful, the current frequency of the digital oscillator is the frequency offset between the receiving end and the transmitting end; if the verification is unsuccessful, the current first frequency is adjusted to the first frequency of the next iteration.
将当前第一频率调整为下一次迭代的第一频率为:根据调谐值修正当前第一频率为下一次迭代的第一频率,调谐值ftune为:Adjust the current first frequency to the first frequency of the next iteration: Modify the current first frequency to the first frequency of the next iteration according to the tuning value, and the tuning value f tune is:
其中,W为理想信噪比下反馈控制环路能够捕获的最大频偏范围的区间长度,SNRmax为最大信噪比,SNR为当前信噪比,α为经验值,W和α均与调制方法相关。Among them, W is the interval length of the maximum frequency offset range that the feedback control loop can capture under the ideal signal-to-noise ratio, SNR max is the maximum signal-to-noise ratio, SNR is the current signal-to-noise ratio, α is the empirical value, and both W and α are related to the modulation Method related.
因此下一次迭代的第一频率为:So the first frequency for the next iteration is:
其中,为当前第l次迭代的第一频率,/>为下一次迭代即第l+1次迭代的第一频率。in, is the first frequency of the current l-th iteration,/> is the first frequency of the next iteration, that is, the l+1th iteration.
例如,发送端的信号比特速率为8kHz,因此BPSK调制中反馈控制环路在理想信噪比下能够捕获的最大频偏范围为[-2kHz,+2kHz],实际受限于信噪比SNR的情况下,每次调谐值由信噪比动态设定:For example, the signal bit rate at the transmitter is 8kHz, so the maximum frequency offset range that the feedback control loop in BPSK modulation can capture under the ideal signal-to-noise ratio is [-2kHz, +2kHz], which is actually limited by the signal-to-noise ratio SNR. Below, each tuning value is dynamically set by the signal-to-noise ratio:
步骤S26:将数字振荡器的频率设置为下一次迭代的第一频率,重复步骤S23~步骤S25,直到校验原始二进制比特序列ST和解扩后二进制比特序列SR成功,此时数字振荡器当前频率即为接收端与发送端之间的频偏。Step S26: Set the frequency of the digital oscillator to the first frequency of the next iteration, and repeat steps S23 to S25 until the verification of the original binary bit sequence S T and the despread binary bit sequence S R are successful. At this time, the digital oscillator The current frequency is the frequency offset between the receiving end and the transmitting end.
步骤3:将所述频偏作为数控振荡器的频率,通过所述数控振荡器来纠正后续接收的扩频信号的频偏。Step 3: Use the frequency offset as the frequency of a numerically controlled oscillator, and use the numerically controlled oscillator to correct the frequency offset of the subsequently received spread spectrum signal.
得到接收端与发送端之间的频偏后,设置数控振荡器的频率为所述频偏,将反馈控制环路的环路开关设置为闭合状态,此时通过所述数控振荡器实现通信同步。After obtaining the frequency offset between the receiving end and the transmitting end, set the frequency of the numerically controlled oscillator to the frequency offset, and set the loop switch of the feedback control loop to a closed state. At this time, communication synchronization is achieved through the numerically controlled oscillator. .
纠正接收端与发送端之间的频偏问题后,后续再将反馈控制环路锁相环闭环纠正接收端与发送端之间的相位误差。After correcting the frequency offset problem between the receiving end and the transmitting end, the feedback control loop phase-locked loop is closed to correct the phase error between the receiving end and the transmitting end.
本实施例中,将初始第一频率设置为实际测试得到的接收端与发送端之间的最小频偏,根据实时信噪比等条件动态设定调谐值,再根据动态设定的调谐值得到下一次迭代的第一频率,再在每一次迭代的第一频率附近搜索第二频率,可以确保在接收端与发送端之间的整个最大频偏范围内搜索到正确的频偏;同时仅通过计算出的第一频率和第二频率调整数控振荡器,调整速度快。In this embodiment, the initial first frequency is set to the minimum frequency offset between the receiving end and the transmitting end obtained by actual testing, the tuning value is dynamically set according to real-time signal-to-noise ratio and other conditions, and then the tuning value is obtained based on the dynamically set tuning value. The first frequency of the next iteration, and then searching for the second frequency near the first frequency of each iteration, can ensure that the correct frequency offset is searched within the entire maximum frequency offset range between the receiving end and the transmitting end; at the same time, only through The calculated first frequency and second frequency adjust the numerically controlled oscillator, and the adjustment speed is fast.
本实施例中,动态设定的调谐值,可以根据实时通信状态进行调整,相比于固定的调谐值,更具有准确性。In this embodiment, the dynamically set tuning value can be adjusted according to the real-time communication status, and is more accurate than the fixed tuning value.
本实施例中,利用反馈控制环路开环时,数控振荡器的梯度扫描配置频偏即设置迭代的第一频率以及通过第一频率修正得到的第二频率,避免了调整接收机模拟部分中频频点,避免了等待反馈控制环路锁定数控振荡器频率的响应时间,配置速度快,可以快速实现。In this embodiment, when the feedback control loop is open, the gradient scan configuration frequency offset of the numerically controlled oscillator is to set the first frequency of the iteration and the second frequency obtained by correcting the first frequency, avoiding the need to adjust the analog part of the receiver. Frequency points avoid the response time of waiting for the feedback control loop to lock the frequency of the CNC oscillator. The configuration is fast and can be implemented quickly.
实施例3:Example 3:
本实施例公开了一种扩频通信频偏纠正装置,如图7所示,包括如下步骤:This embodiment discloses a spread spectrum communication frequency offset correction device, as shown in Figure 7, including the following steps:
信号接收模块,用于接收扩频信号,所述扩频信号根据发送端发送的原始二进制比特序列与扩频序列运算得到;A signal receiving module, configured to receive a spread spectrum signal, which is obtained by calculating the original binary bit sequence sent by the transmitter and the spread spectrum sequence;
迭代模块,用于将最小频偏作为第一频率初始值,所述第一频率在频偏范围内、按照调谐值进行迭代;An iteration module, used to use the minimum frequency offset as the initial value of the first frequency, and the first frequency is iterated according to the tuning value within the frequency offset range;
在每次迭代中,将当前第一频率作为数控振荡器的当前频率,得到对应当前第一频率的解扩后二进制比特序列,校验所述对应当前第一频率的解扩后二进制比特序列与原始二进制比特序列;若校验成功,则所述数控振荡器的当前频率为频偏;若校验失败,根据当前第一频率得到当前第二频率,将当前第二频率作为数控振荡器的当前频率,得到对应当前第二频率的解扩后二进制比特序列,校验所述对应当前第二频率的解扩后二进制比特序列与原始二进制比特序列,若校验成功,则所述数控振荡器的当前频率为频偏;若校验失败,将下一次迭代的第一频率作为数控振荡器的当前频率,所述下一次迭代的第一频率根据当前第一频率与调谐值计算得到;重复上述迭代过程,直到校验解扩后二进制比特序列与原始二进制比特序列成功,所述数控振荡器的当前频率为频偏;In each iteration, the current first frequency is used as the current frequency of the numerically controlled oscillator, a despread binary bit sequence corresponding to the current first frequency is obtained, and the despread binary bit sequence corresponding to the current first frequency is verified with The original binary bit sequence; if the verification is successful, the current frequency of the numerically controlled oscillator is the frequency offset; if the verification fails, the current second frequency is obtained based on the current first frequency, and the current second frequency is used as the current frequency of the numerically controlled oscillator. frequency, obtain the despread binary bit sequence corresponding to the current second frequency, and verify the despread binary bit sequence corresponding to the current second frequency and the original binary bit sequence. If the verification is successful, then the numerically controlled oscillator The current frequency is the frequency offset; if the verification fails, the first frequency of the next iteration is used as the current frequency of the CNC oscillator, and the first frequency of the next iteration is calculated based on the current first frequency and the tuning value; repeat the above iteration process, until the verification of the despread binary bit sequence and the original binary bit sequence is successful, the current frequency of the numerically controlled oscillator is the frequency offset;
频偏纠正模块,用于将所述频偏作为数控振荡器的频率,通过所述数控振荡器来纠正后续接收的扩频信号的频偏。A frequency offset correction module is used to use the frequency offset as the frequency of a numerically controlled oscillator, and use the numerically controlled oscillator to correct the frequency offset of subsequently received spread spectrum signals.
进一步的,迭代模块中,所述调谐值根据理想信噪比下反馈控制环路能够捕获的最大频偏范围、最大信噪比和当前信噪比计算得到。Further, in the iteration module, the tuning value is calculated based on the maximum frequency offset range that the feedback control loop can capture under an ideal signal-to-noise ratio, the maximum signal-to-noise ratio, and the current signal-to-noise ratio.
进一步的,迭代模块中,所述调谐值ftune为:Further, in the iterative module, the tuning value f tune is:
其中,W为理想信噪比下反馈控制环路能够捕获的最大频偏范围的区间长度,SNRmax为最大信噪比,SNR为当前信噪比,α为经验值。Among them, W is the interval length of the maximum frequency offset range that the feedback control loop can capture under the ideal signal-to-noise ratio, SNR max is the maximum signal-to-noise ratio, SNR is the current signal-to-noise ratio, and α is the empirical value.
进一步的,迭代模块中,所述当前第一频率加所述调谐值得到所述下一次迭代的第一频率。Further, in the iteration module, the current first frequency is added to the tuning value to obtain the first frequency of the next iteration.
进一步的,迭代模块中,根据当前第一频率得到当前第二频率,包括:Further, in the iteration module, the current second frequency is obtained based on the current first frequency, including:
所述扩频信号依次与数控振荡器和扩频序列运算得到解扩后信号;The spread spectrum signal is sequentially operated with a numerically controlled oscillator and a spread spectrum sequence to obtain a despread signal;
所述解扩后信号中,每固定序列长度检测一个相关峰,所述固定序列长度为扩频序列的序列长度,所述相关峰为每固定序列长度中信号幅值最大的位置;In the despread signal, one correlation peak is detected for each fixed sequence length, the fixed sequence length is the sequence length of the spread spectrum sequence, and the correlation peak is the position with the maximum signal amplitude in each fixed sequence length;
根据所述每个相关峰位置的I路信号值和Q路信号值得到相邻相关峰对应的坐标点之间的旋转角度;The rotation angle between the coordinate points corresponding to adjacent correlation peaks is obtained according to the I signal value and Q signal value of each correlation peak position;
根据所述相邻相关峰对应的坐标点之间的旋转角度得到矫正频率;Obtain the correction frequency according to the rotation angle between the coordinate points corresponding to the adjacent correlation peaks;
根据所述矫正频率与当前第一频率得到当前第二频率。The current second frequency is obtained according to the correction frequency and the current first frequency.
进一步的,迭代模块中,所述相邻相关峰对应的坐标点之间的旋转角度为:Further, in the iteration module, the rotation angle between the coordinate points corresponding to the adjacent correlation peaks is:
其中,θ(k)为第k+1个相关峰对应的坐标点与第k个相关峰对应的坐标点之间的旋转角度,Ixcorr(k)和Qxcorr(k)分别为第k个相关峰的I路信号值和Q路信号值,I2corr(k+1)和Qxcorr(k+1)分别为第k+1个相关峰的I路信号值和Q路信号值,K为相关峰数量;Among them, θ(k) is the rotation angle between the coordinate point corresponding to the k+1-th correlation peak and the coordinate point corresponding to the k-th correlation peak, I xcorr (k) and Q xcorr (k) are the k-th correlation peak respectively. The I signal value and Q signal value of the correlation peak, I 2corr (k+1) and Q xcorr (k+1) are the I signal value and Q signal value of the k+1th correlation peak respectively, K is number of relevant peaks;
所述矫正频率fguess_ave为:The correction frequency f guess_ave is:
其中,R为比特速率;Among them, R is the bit rate;
所述当前第二频率为:The current second frequency for:
其中,为当前第一频率,l表示迭代次数。in, is the current first frequency, and l represents the number of iterations.
进一步的,迭代模块中,所述每个相关峰位置的I路信号值和Q路信号值通过有符号数表示,根据每个相关峰位置的I路信号值的符号位和Q路信号值的符号位确定每固定序列长度的解扩后信号对应的二进制数据,所述每固定序列长度的解扩后信号对应的二进制数据顺序组合得到解扩后二进制比特序列。Further, in the iterative module, the I-channel signal value and Q-channel signal value at each correlation peak position are represented by signed numbers. According to the sign bit of the I-channel signal value and Q-channel signal value at each correlation peak position, The sign bit determines the binary data corresponding to the despread signal of each fixed sequence length, and the binary data corresponding to the despread signal of each fixed sequence length is sequentially combined to obtain a despread binary bit sequence.
进一步的,迭代模块中,所述原始二进制比特序列包括特征比特序列信息,所述解扩后二进制比特序列包括特征比特序列信息,若原始二进制比特序列的特征比特序列信息与解扩后二进制比特序列的特征比特序列信息相符,则解扩后二进制比特序列与原始二进制比特序列校验成功。Further, in the iteration module, the original binary bit sequence includes characteristic bit sequence information, and the despread binary bit sequence includes characteristic bit sequence information. If the characteristic bit sequence information of the original binary bit sequence is the same as the despread binary bit sequence If the characteristic bit sequence information matches, the despread binary bit sequence and the original binary bit sequence are successfully verified.
进一步的,所述原始二进制比特序列和解扩后二进制比特序列通过数据帧表示,每个数据帧包括若干字节,定义每个数据帧前固定位置的字节为特征位,特征位对应的二进制数据为特征比特序列信息。Further, the original binary bit sequence and the deexpanded binary bit sequence are represented by data frames. Each data frame includes several bytes. The byte at a fixed position in front of each data frame is defined as a feature bit, and the binary data corresponding to the feature bit is the characteristic bit sequence information.
实施例4:Example 4:
本实施例公开了一种扩频通信频偏纠正设备,包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现前述的任意一项所述扩频通信频偏纠正方法。存储器可为各种类型的存储器,可为随机存储器、只读存储器、闪存等。处理器可为各种类型的处理器,例如,中央处理器、微处理器、数字信号处理器或图像处理器等。This embodiment discloses a spread spectrum communication frequency offset correction device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the program, any one of the above is implemented. The spread spectrum communication frequency offset correction method described in the item. The memory can be various types of memory, such as random access memory, read-only memory, flash memory, etc. The processor may be various types of processors, such as a central processing unit, a microprocessor, a digital signal processor or an image processor, etc.
本实施例还公开了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行前述的任意一项所述扩频通信频偏纠正方法。存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。This embodiment also discloses a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute any one of the aforementioned spread spectrum communication frequency offset correction methods. Storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program code.
以上所述仅是本发明的优选实施方式,应当指出:对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only preferred embodiments of the present invention. It should be pointed out that those skilled in the art can make several improvements and modifications without departing from the principles of the present invention. These improvements and modifications can also be made. should be regarded as the protection scope of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111663342.8A CN114285435B (en) | 2021-12-31 | 2021-12-31 | Method, device, equipment and medium for correcting frequency offset of spread spectrum communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111663342.8A CN114285435B (en) | 2021-12-31 | 2021-12-31 | Method, device, equipment and medium for correcting frequency offset of spread spectrum communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114285435A CN114285435A (en) | 2022-04-05 |
CN114285435B true CN114285435B (en) | 2024-01-19 |
Family
ID=80879160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111663342.8A Active CN114285435B (en) | 2021-12-31 | 2021-12-31 | Method, device, equipment and medium for correcting frequency offset of spread spectrum communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114285435B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5640431A (en) * | 1995-03-10 | 1997-06-17 | Motorola, Inc. | Method and apparatus for offset frequency estimation for a coherent receiver |
CN101505290A (en) * | 2009-03-17 | 2009-08-12 | 山东大学 | Improved frequency bias estimation method for wideband MIMO |
CN110784425A (en) * | 2019-10-18 | 2020-02-11 | 西安烽火电子科技有限责任公司 | Frequency offset blind elimination iteration method |
CN111245475A (en) * | 2020-01-10 | 2020-06-05 | 上海感悟通信科技有限公司 | Wireless communication data transmitting method, receiving method, wireless communication method and device |
-
2021
- 2021-12-31 CN CN202111663342.8A patent/CN114285435B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5640431A (en) * | 1995-03-10 | 1997-06-17 | Motorola, Inc. | Method and apparatus for offset frequency estimation for a coherent receiver |
CN101505290A (en) * | 2009-03-17 | 2009-08-12 | 山东大学 | Improved frequency bias estimation method for wideband MIMO |
CN110784425A (en) * | 2019-10-18 | 2020-02-11 | 西安烽火电子科技有限责任公司 | Frequency offset blind elimination iteration method |
CN111245475A (en) * | 2020-01-10 | 2020-06-05 | 上海感悟通信科技有限公司 | Wireless communication data transmitting method, receiving method, wireless communication method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114285435A (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106646546B (en) | A kind of satellite-signal multidimensional quick capturing method and system | |
US8059767B2 (en) | Communications device and related method that detects symbol timing | |
CN1050477C (en) | Nested digital phase lock loop | |
WO2017181763A1 (en) | Carrier phase recovery method and apparatus, and storage medium | |
CN115956356A (en) | Demodulating a modulated signal | |
US9692587B2 (en) | Phase tracking | |
CN114285435B (en) | Method, device, equipment and medium for correcting frequency offset of spread spectrum communication | |
CN108075792B (en) | Determine the method, system and receiver of Error Vector Magnitude | |
GB2350502A (en) | Method and apparatus for concurrent synchronization and improved automatic frequency control in a communication device | |
CN110224807A (en) | A kind of carrier synchronization method estimated based on AGC frequency deviation and system | |
US8059766B2 (en) | Communications device and related method with reduced false detects during start of message bit correlation | |
US20060153322A1 (en) | Method and system for synchronization between transmitter and receiver in a communication system | |
JPH09312640A (en) | Burst signal receiving method and device therefor | |
KR100921544B1 (en) | Frequency error correction system by initial frequency estimation and feedback tracking | |
US11804947B2 (en) | Radio receiver synchronization | |
CN112073349B (en) | Carrier synchronization method and system | |
JP4268498B2 (en) | Phase error correction circuit, receiving apparatus using the same, and phase error correction method | |
JP4985535B2 (en) | Demodulator circuit | |
CN110311878B (en) | Synchronous detection method for locking state of 16QAM carrier demodulation loop | |
CN114826858A (en) | Carrier synchronization method and device, computer equipment and storage medium | |
JPH066400A (en) | Bit likelihood arithmetic unit | |
US20080240296A1 (en) | Iterative sequential carrier acquisition | |
KR20070101234A (en) | Frequency Error Correction Using Remodulation | |
CN117792428B (en) | Spread spectrum signal carrier recovery method and related assembly | |
JP2020178212A (en) | Frequency deviation detection circuit, receiver including the same, frequency deviation detection method, and frequency deviation detection program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: No. 9 Mozhou East Road, Nanjing City, Jiangsu Province, 211111 Patentee after: Zijinshan Laboratory Country or region after: China Address before: No. 9 Mozhou East Road, Jiangning Economic Development Zone, Jiangning District, Nanjing City, Jiangsu Province Patentee before: Purple Mountain Laboratories Country or region before: China |
|
CP03 | Change of name, title or address |