Signal phase compensation method and device, electronic equipment and storage medium
By introducing a dynamic mode switching mechanism in signal phase compensation, the phase compensation mode is switched according to the bit error rate and phase offset, the problem of not being able to take into account both hardware resources and algorithm performance in the prior art, and efficient signal phase compensation is achieved.
Patent Information
- Application Number
- CN202510237568.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-06-03
AI Technical Summary
The prior art cannot take into account both hardware resources and algorithm performance when signal phase compensation, resulting in waste of hardware resources or insufficient algorithm performance.
By introducing a dynamic mode switching mechanism in signal phase compensation, the phase compensation mode is switched according to the bit error rate and phase offset, and switched from low-complexity mode to high-precision mode to ensure algorithm performance while multiplexing hardware resources.
It realizes the consideration of hardware resources and algorithm performance while signal phase compensation, avoids the problems of waste of hardware resources and insufficient algorithm performance, and is suitable for multiple channel scenarios.
Smart Images

Figure CN120090710A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of free space laser communication, and particularly to a signal phase compensation method, apparatus, electronic device, and storage medium. Background Art
[0002] With the growth of information needs, free space laser communication technology has developed rapidly to meet the requirements of high-speed and large-capacity data transmission. This technology faces challenges such as optical power attenuation and unstable atmospheric turbulence. Therefore, an efficient signal detection mode and signal compensation are required at the signal receiving end. In related technologies, signals are detected by using a coherent detection method with higher signal utilization rate, and different algorithms are used to compensate the received signals according to the causes of signal damage to correctly recover the original signals.
[0003] Performing phase compensation on the received signal is the last step of compensating the received signal and is crucial for correctly recovering the original signal. In related technologies, during the process of performing phase compensation on the received signal, the same phase compensation algorithm is used for different phase offset situations, resulting in waste of hardware resources when using a high-precision phase compensation algorithm for phase compensation, and the signal cannot be accurately compensated when using a low-complexity phase compensation algorithm for phase compensation. It can be seen that the method of using the same phase compensation algorithm for different phase offset situations in related technologies cannot take into account both hardware resources and algorithm performance. Summary of the Invention
[0004] The present application provides a signal phase compensation method, apparatus, electronic device, and storage medium to at least solve the problem that the method of using the same phase compensation algorithm for different phase offset situations in related technologies cannot take into account both hardware resources and algorithm performance.
[0005] The present application provides a signal phase compensation method, including:
[0006] If the current phase compensation mode is the first mode, receive a target signal to be phase-compensated, and divide the target signal into blocks to obtain a plurality of target signal blocks;
[0007] For any target signal block, determine a first signal in the outermost circle of the signal sub-circle display diagram in the target signal block, obtain the phase offset amount of the first signal, and based on the phase offset amount, perform phase compensation on the first signal and a second signal in other circles in the signal sub-circle display diagram to obtain a demodulated signal of any target signal in the target signal block;
[0008] Input the demodulated signal into an error code meter to obtain the error code rate of the demodulated signal;
[0009] If the number of demodulation signals with bit error rates exceeding the first threshold obtained within a preset time period before the current moment exceeds the first quantity threshold, then switch the current phase compensation mode to the second mode;
[0010] If the current phase compensation mode is the second mode, then based on the phase compensation processing method of the first mode, perform pre-phase compensation on the target signal to obtain a pre-phase-compensated target signal, and perform phase re-compensation on the pre-phase-compensated target signal to obtain the demodulation signal of the target signal; wherein, the hardware resource usage of the first mode is less than that of the second mode, and the phase compensation accuracy of the first mode is lower than that of the second mode.
[0011] This application also provides a signal phase compensation device, including:
[0012] A block module, configured to, if the current phase compensation mode is the first mode, receive the target signal to be phase-compensated, block the target signal, and obtain a plurality of target signal blocks;
[0013] A first acquisition module, configured to, for any target signal block, determine the first signal in the outermost circle of the signal sub-circle display diagram of the target signal block, acquire the phase offset of the first signal, and based on the phase offset, perform phase compensation on the first signal and the second signals in other circles in the signal sub-circle display diagram to obtain the demodulation signal of any target signal in the target signal block;
[0014] A second acquisition module, configured to input the demodulation signal into an error code meter to obtain the bit error rate of the demodulation signal;
[0015] A first switching module, configured to, if the number of demodulation signals with bit error rates exceeding the first threshold obtained within a preset time period before the current moment exceeds the first quantity threshold, then switch the current phase compensation mode to the second mode;
[0016] A third acquisition module, configured to, if the current phase compensation mode is the second mode, then based on the phase compensation processing method of the first mode, perform pre-phase compensation on the target signal to obtain a pre-phase-compensated target signal, and perform phase re-compensation on the pre-phase-compensated target signal to obtain the demodulation signal of the target signal; wherein, the hardware resource usage of the first mode is less than that of the second mode, and the phase compensation accuracy of the first mode is lower than that of the second mode.
[0017] This application also provides an electronic device, including: a memory for storing a computer program; a processor for implementing the steps of any of the above signal phase compensation methods when executing the computer program.
[0018] The present application also provides a computer-readable storage medium storing a computer program, where the computer program, when executed by a processor, implements the steps of any of the above signal phase compensation methods.
[0019] The present application also provides a computer program product including a computer program, where the computer program, when executed by a processor, implements the steps of any of the above signal phase compensation methods.
[0020] Through the present application, if the current phase compensation mode is the first mode with low complexity, the target signal is phase-compensated to obtain a demodulated signal, and by inputting the demodulated signal into an error code meter, the bit error rate of the demodulated signal is obtained; if the number of demodulated signals with bit error rates exceeding the first threshold within a preset time period before the current moment exceeds the first quantity threshold, the phase compensation mode is adjusted to the second mode with high precision to ensure the algorithm performance; the second mode multiplexes the hardware resources of the first mode to perform pre-phase compensation on the target signal, and performs phase re-compensation on the pre-phase-compensated target signal to obtain a demodulated signal. The technical problem of being unable to take into account both hardware resources and algorithm performance during phase compensation is solved, and the technical effect of taking into account both hardware resources and algorithm performance during phase compensation is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] To more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.
[0022] Figure 1 It is a principle flowchart of phase compensation for a signal by the Viterbi-Viterbi algorithm in the related art;
[0023] Figure 2 It is a schematic diagram of the architecture of the signal phase compensation system provided by the embodiment of the present application;
[0024] Figure 3 It is a schematic flowchart of the signal phase compensation method provided by the embodiment of the present application;
[0025] Figure 4 It is a schematic diagram of the signal sub-circle display diagram provided by the embodiment of the present application;
[0026] Figure 5 It is a schematic flowchart of another signal phase compensation method provided by the embodiment of the present application;
[0027] Figure 6Schematic diagram of the position of the third signal to be re-compensated after absolute value processing provided by the embodiments of the present application in the signal sub-circle display diagram;
[0028] Figure 7 Schematic flowchart of another signal phase compensation method provided by the embodiments of the present application;
[0029] Figure 8 Block diagram of the structure of a signal phase compensation device provided by the embodiments of the present application;
[0030] Figure 9 Schematic diagram of the hardware structure of an electronic device provided by the embodiments of the present application. Detailed implementation manners
[0031] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.
[0032] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0033] In order to enable those skilled in the art of the present technology to better understand the solutions of the present application, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation manners.
[0034] With the growth of informationization requirements and the confidentiality requirements of air-ground information transmission, free space laser communication technology has developed rapidly to meet the requirements of high-speed and large-capacity data transmission. The high-speed free space channel is a transmission path for free space laser communication. Compared with the traditional optical fiber channel, it has greater optical power attenuation and more unstable atmospheric turbulence, and the relay-free distance of the space channel is longer. This results in a large attenuation of the signal power when it reaches the receiving end. Therefore, higher requirements are also placed on the sensitivity of the receiving end. That is to say, at the receiving end, a signal detection mode that can better utilize the signal bandwidth and has stronger anti-noise ability and a digital signal processing (DSP) damage compensation algorithm are required to correctly recover the original signal.
[0035] In the related art, in order to support high-capacity data transmission, a coherent detection method with higher signal utilization rate is used to convert the received optical signal into an electrical signal at the receiving end, and different compensation algorithms are used to compensate the signal according to different signal damage reasons. As a key step in the DSP damage compensation algorithm, the accuracy of the phase estimation algorithm is crucial. The phase estimation algorithm is used to restore the original phase of the modulated signal, so as to achieve accurate signal demodulation.
[0036] In order to further improve the transmission rate and the accuracy of data processing, higher-order modulation formats such as 16-Quadrature Amplitude Modulation (QAM) and 64QAM are gradually introduced into data transmission, and more complex phase recovery algorithms, such as the blind phase search algorithm, are used for phase recovery. However, as the order of QAM modulation increases, the distance between adjacent constellation points will decrease, which will lead to a decline in the anti-noise performance. Although the phase recovery algorithm improves the calculation accuracy, the implementation of the all-online real-time DSP damage compensation algorithm still has hardware resource limitations. This requires that the parallel real-time DSP damage compensation algorithm for high-speed free space signal transmission systems ensure to improve the sensitivity of the receiving end while reducing the algorithm implementation complexity and reducing the hardware power consumption.
[0037] In the actual application scenario, the intensity of atmospheric turbulence in Free Space Optical Communication (FSO) is random, and the occurrence of strong turbulence is less. And for the noise phase, it can be measured as a slowly varying quantity within a certain time length. After a series of pre-DSP algorithm processing, there will be no situation where the phase changes violently within a period of time. Therefore, when using the DSP algorithm for signal compensation in the related art, generally, an offline or online DSP algorithm calculation plus offline data processing method is adopted. When performing phase compensation, the phase offset situation is often not distinguished, and the same phase compensation algorithm is used for phase compensation for different phase offset situations. That is to say, the algorithm is not switched in real time according to the current atmospheric turbulence intensity and the bit error rate of the restored signal for phase compensation. Instead, after all the transmitted data is processed, the data is taken out uniformly for bit error statistics.
[0038] Taking the hardware implementation of the 16QAM modulation format as an example, in order to improve the accuracy, the blind phase search algorithm is mostly used for phase compensation of the signal because this algorithm is applicable to various 16QAM constellation map types and has a high tolerance for the line width of the laser. Another commonly used hardware implementation method is the M-power algorithm and its derivative algorithms. This algorithm performs a QPSK-like transformation on the 16QAM constellation map, and then uses a carrier recovery algorithm for M-PAK, such as the Viterbi-Viterbi algorithm, to perform phase compensation on the signal. Among them, Figure 1It is a principle flowchart of using the Viterbi-Viterbi algorithm to perform phase compensation on signals in the related technology. As Figure 1 shown, first, the input signal X o is input into the (.) 4 module for performing a fourth-power operation to eliminate the phase of the QPSK symbol. After completing the fourth-power operation, the phase of the modulated symbol is aligned to a fixed value, and only 4 times the value of the phase offset and part of the noise phase are retained. At this time, then the values of the first M signals and the last M signals of the current input signal after completing the fourth-power operation are obtained, and the current input signal, the first M signals, and the last M signals after completing the fourth-power operation are input into the module to calculate the average value of the current input signal, the first M signals, and the last M signals after completing the fourth-power operation to remove the noise phase. Finally, the data after obtaining the average value is input into the arg(.) / 4 module to perform an angle calculation on the data after obtaining the average value, and then dividing by 4 can obtain the phase offset. The phase offset is input into the exp-j(.) module to use the obtained phase offset to compensate the input signal and restore the original modulation phase. Among them, by introducing an appropriate delay (Delay), the phase compensation of the signal is realized.
[0039] Among them, the blind phase search algorithm has high calculation accuracy but complex calculation, and high power consumption in hardware implementation. Considering the resource allocation and overall performance of each algorithm in the DSP processing flow, this algorithm will cause waste of hardware resources. Although the M-th power algorithm and its derivative algorithms meet the performance requirements in most cases, they cannot accurately compensate the signal when the channel condition is poor, and the algorithm performance is poor.
[0040] Since the related technology does not distinguish different phase offset situations and uses the same phase compensation algorithm for phase compensation in different phase offset situations, that is, the signal behavior compensation mode in the related technology is single. This leads to waste of hardware resources when using a high-precision phase compensation algorithm for phase compensation, and a decrease in signal transmission rate and poor anti-turbulence ability when using a low-complexity phase compensation algorithm for phase compensation, and the application scenario is limited and the signal cannot be accurately compensated. It can be seen that the method of using the same phase compensation algorithm for phase compensation in different phase offset situations in the related technology cannot take into account both hardware resources and algorithm performance at the same time, and the application scenario is limited.
[0041] In view of the above problems, the embodiments of the present application provide a signal phase compensation method, apparatus, electronic device, and storage medium. The method addresses the problem that in the related art, the phase compensation algorithm cannot balance hardware resources and algorithm performance and cannot switch the phase compensation algorithm for phase compensation in different scenarios of strong and weak turbulence. In the process of signal phase compensation, a fully online processing method is adopted. If the current phase compensation mode is the first mode with low complexity, the target signal is phase-compensated to obtain a demodulated signal. By inputting the demodulated signal into an error code detector, the bit error rate of the demodulated signal is obtained. If the number of demodulated signals with a bit error rate exceeding the first threshold within a preset time period before the current moment exceeds the first quantity threshold, the phase compensation mode is adjusted to the second mode with high precision to ensure algorithm performance. The second mode reuses the hardware resources of the first mode to perform pre-phase compensation on the target signal, and then performs phase re-compensation on the pre-phase-compensated target signal to obtain a demodulated signal. By effectively utilizing the hardware structure of the first mode, hardware resource waste and power consumption are reduced, and the hardware structure is fully utilized. The technical effect of phase compensation that balances both hardware resources and algorithm performance is achieved, which can be applied to most application scenarios and ensures the accuracy of the entire DSP processing flow.
[0042] The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below with reference to the accompanying drawings. First, the system architecture on which the present application is based will be described:
[0043] The signal phase compensation method, apparatus, electronic device, and storage device provided by the embodiments of the present application are applicable to performing phase compensation on a received target signal to obtain a demodulated signal. As Figure 2 shown, it is a schematic diagram of the architecture of the signal phase compensation system based on the embodiments of the present application. The signal phase compensation system is a fully online signal phase compensation system, including a transmitting end and a receiving end. Among them, at the transmitting end, an electrical signal is generated by an Arbitrary Waveform Generator (AWG for short), sent into an In-phase and Quadrature (IQ for short) modulator, and combined with the optical carrier output by Laser 1 to complete modulation. Subsequently, the signal power is adjusted by a Variable Optical Attenuator (VOA for short), and an Erbium-Doped Fiber Amplifier (EDFA for short) is used to amplify the signal to compensate for the link loss. Finally, the signal is sent into an analog atmospheric channel, that is, a spatial channel, and transmitted to the receiving end after being affected by random atmospheric turbulence.
[0044] The receiving end receives the optical signal sent by the transmitting end through a coherent receiver, uses the laser 2 to generate a local oscillation optical signal, and performs coherent mixing on the optical signal carrying information transmitted through the spatial channel in the coherent receiver, thereby converting the information such as the phase and amplitude of the optical signal into an electrical signal that is easy to process. The electrical signal is sent to a Field-Programmable Gate Array (FPGA) development board to convert the electrical signal into a digital signal using the Analog-to-Digital Converter (ADC) in the FPGA development board, and the DSP damage compensation algorithm in the FPGA chip is used to compensate the signal to achieve signal demodulation.
[0045] Among them, the DSP damage compensation algorithm includes a DSP preprocessing algorithm and a signal phase compensation method. The DSP preprocessing algorithm is an algorithm for compensating data other than the signal phase. After completing the compensation of data other than the signal phase, the signal phase is compensated through the signal phase compensation method to complete carrier phase recovery and output a demodulated signal. The signal phase compensation method of the embodiment of the present application performs error code detection on the demodulated signal by inputting it into an error code tester, determines the phase compensation mode according to the detection result, and realizes carrier phase recovery based on the determined phase compensation mode to improve the calculation accuracy. The signal phase compensation method is implemented based on the Verilog hardware description language to perform parallel processing of data to meet the high-speed data processing requirements.
[0046] In the 10G Baud experimental platform of the signal phase compensation system of this embodiment, the noise damage of the input optical signal is simulated through the atmospheric channel, and after photoelectric conversion through the coherent receiver, it is sent to the FPGA board for data processing.
[0047] An embodiment of the present application provides a signal phase compensation method, which is applied to a Field-Programmable Gate Array (FPGA). Figure 3 This is a flowchart of the signal phase compensation method provided by the embodiment of the present application, as Figure 3 shown, and this process includes the following steps:
[0048] Step S301, if the current phase compensation mode is the first mode, then receive the target signal to be phase-compensated, and block the target signal to obtain multiple target signal blocks.
[0049] Among them, the first mode is the default mode, that is, the low-complexity mode. By default, phase compensation is performed on the target signal in the first mode. In this mode, first, the target signal to be phase-compensated is segmented to obtain multiple target signal blocks, and parallelization operations on the data are performed in units of the target signal blocks. That is to say, the target signal is segmented to obtain multiple target signal blocks, and phase compensation operations are performed on multiple target signal blocks in parallel. The target signal to be phase-compensated is the signal after compensating the remaining data except the signal phase by using the DSP pre-algorithm.
[0050] It should be noted that the length of the target signal block is preset by the technician and will not be specifically limited here. That is to say, the number of target signals included in the target signal block is preset by the technician.
[0051] Step S302: For any target signal block, determine the first signal in the outermost circle of the signal sub-circle display diagram in the target signal block, obtain the phase offset of the first signal, and based on the phase offset, perform phase compensation on the first signal and the second signals in other circles in the signal sub-circle display diagram to obtain the demodulated signal of any target signal in the target signal block.
[0052] Among them, the target signal satisfies a preset modulation form. The preset modulation form in this embodiment can be 16QAM, then the target signal satisfies 16QAM and is located at 16 specific points on the constellation diagram corresponding to 16QAM.
[0053] Figure 4 is a schematic diagram of the signal sub-circle display diagram according to an embodiment of the present invention. As Figure 4 shown, the idea of Quadrature Phase Shift Keying (QPSK for short) is adopted, and the 16 specific points on the constellation diagram are segmented in circles in combination with a carrier recovery algorithm such as the Viterbi-Viterbi algorithm. Among them, the specific points with the same distance from the origin of the signal sub-circle display diagram are in the same circle. Furthermore, the 16 specific points on the constellation diagram are divided into three circles, namely, C1 circle, C2 circle, and C3 circle. It should be noted that the X-axis of the signal sub-circle display diagram is the real part of the signal and is used to represent the in-phase component of the signal. The Y-axis of the signal sub-circle display diagram is the imaginary part of the signal and is used to represent the quadrature component of the signal.
[0054] After obtaining multiple target signal blocks, for any target signal block, determine the circle in which each target signal in the target signal block is located in the signal sub-circle display diagram. Specifically, if the target signal exactly falls on any specific point in the constellation diagram, use the circle where the specific point is located as the circle in which the target signal is located. If the target signal does not exactly fall on any specific point in the constellation diagram, calculate the distance between the target signal and each specific point, and use the circle where the specific point with the minimum distance from the target signal is located as the circle in which the target signal is located.
[0055] That is to say, the target signals are divided into an inner circle, i.e., C1 circle, an outer circle, i.e., C3 circle, and a middle circle, i.e., C2 circle according to the amplitude size. Among them, the target signals located in the inner and outer circles can be regarded as QPSK signals under different signal-to-noise ratios, and the target signals located in the middle circle can be regarded as signals satisfying the 8PSK modulation format. Since the optical signal-to-noise ratio of the target signals located in the outer circle is higher than that of the target signals located in the inner circle, the estimation of the phase offset obtained based on the target signals located in the outer circle is more accurate. Therefore, in the first mode of this application embodiment, the phase offset calculated using the target signals located in the outer circle is used to perform phase compensation on the target signals in all circles. This method does not require calculating the phase offsets of the C1 circle and the C2 circle, reducing the calculation complexity. It can be understood that the outermost circle of the signal sub-circle display diagram is the C3 circle.
[0056] Step S303: Input the demodulated signal into an error meter to obtain the bit error rate of the demodulated signal.
[0057] Among them, after calculating the demodulated signal of any target signal, the demodulated signal is input into the error meter in real time. The error meter stores the electrical signal transmitted by the transmitting end, that is, the original signal corresponding to the target signal. The error meter compares the demodulated signal of the target signal with the original signal of the target signal to obtain the bit error rate of the demodulated signal.
[0058] Step S304: If the number of demodulated signals with bit error rates exceeding the first threshold within a preset time period before the current moment exceeds the first quantity threshold, switch the current phase compensation mode to the second mode.
[0059] Among them, the first preset time period, the first threshold, and the first quantity threshold are set by technicians and are not specifically limited here. The number of demodulated signals with bit error rates exceeding the first threshold within a preset time period before the current moment exceeding the first quantity threshold indicates that the channel condition may be poor in the recent period, and the first mode cannot accurately perform phase compensation on the target signal. Then it is determined that it is necessary to switch to the high-precision mode to ensure the performance of the system. The second mode is the high-precision mode.
[0060] Step S305: If the current phase compensation mode is the second mode, then based on the phase compensation processing method of the first mode, perform pre-phase compensation on the target signal to obtain the pre-phase-compensated target signal, and then perform phase re-compensation on the pre-phase-compensated target signal to obtain the demodulated signal of the target signal.
[0061] Among them, the hardware resource usage of the first mode is less than that of the second mode, and the phase compensation accuracy of the first mode is lower than that of the second mode.
[0062] In the second mode, based on the phase compensation processing method of the first mode, performing pre-phase compensation on the target signal includes:
[0063] Receive the target signal to be phase-compensated, block the target signal to obtain multiple target signal blocks; for any target signal block, determine the first signal in the outermost circle of the signal sub-circle display diagram of the target signal block, obtain the pre-phase offset of the first signal, and based on the pre-phase offset, perform pre-phase compensation on the first signal and the second signals in other circles in the signal sub-circle display diagram. It can be understood that the second mode reuses the first mode and uses the result output by the first mode as the pre-phase-compensated target signal to perform phase re-compensation to improve the accuracy of signal phase compensation.
[0064] In the high-precision mode, based on the phase offset of the target signal in the C3 circle, perform pre-phase compensation on all target signals, and then perform phase re-compensation on the pre-phase-compensated target signals to obtain the demodulated signals of the target signals. Among them, the phase noise of the signal after pre-phase compensation is small, and the intermediate circle signals can also perform normal angular rotation.
[0065] It can be seen that the high-precision mode reuses the hardware logic of the low-complexity mode, achieving the maximum utilization of hardware resources.
[0066] The signal phase compensation method provided by the embodiments of the present application, if the current phase compensation mode is the first mode, receives a target signal to be phase-compensated, divides the target signal into blocks to obtain a plurality of target signal blocks; for any target signal block, determines a first signal in the outermost circle of the signal sub-circle display diagram, obtains the phase offset of the first signal, and based on the phase offset, performs phase compensation on the first signal and a second signal in other circles in the signal sub-circle display diagram to obtain a demodulated signal of any target signal in the target signal block; inputs the demodulated signal into an error code meter to obtain the error code rate of the demodulated signal; if the number of demodulated signals with an error code rate exceeding the first threshold within a preset time period before the current moment exceeds the first quantity threshold, switches the current phase compensation mode to the second mode; if the current phase compensation mode is the second mode, based on the phase compensation processing method of the first mode, performs pre-phase compensation on the target signal to obtain a pre-phase-compensated target signal, and performs phase re-compensation on the pre-phase-compensated target signal to obtain a demodulated signal of the target signal; wherein, the hardware resource usage of the first mode is less than that of the second mode, and the phase compensation accuracy of the first mode is lower than that of the second mode. It realizes dynamic adjustment of the phase compensation mode according to different channel conditions through the error code rate of the demodulated signal feedback by the error code meter in real time to adapt to various channel scenarios. The consumption of hardware resources is low in the low-complexity mode, the algorithm performance can be guaranteed in the high-precision mode, and the hardware resources in the low-complexity mode are reused, reducing the waste of hardware resources, achieving the technical effect of taking into account both hardware resources and algorithm performance when performing phase compensation.
[0067] An embodiment of the present application provides a signal phase compensation method, which is applied to a field programmable gate array, Figure 5 is a flowchart of the signal phase compensation method provided by the embodiments of the present application, as Figure 5 shown, the process includes the following steps:
[0068] Step S501, if the current phase compensation mode is the first mode, receives a target signal to be phase-compensated, divides the target signal into blocks to obtain a plurality of target signal blocks. For details, please refer to Figure 3 step S301 of the embodiment shown, which will not be elaborated here.
[0069] Step S502, for any target signal block, determines a first signal in the outermost circle of the signal sub-circle display diagram, obtains the phase offset of the first signal, and based on the phase offset, performs phase compensation on the first signal and a second signal in other circles in the signal sub-circle display diagram to obtain a demodulated signal of any target signal in the target signal block.
[0070] Specifically, the above step S502 includes:
[0071] In step S5021, for any first signal, the absolute value of the first signal is obtained to remove the modulation phase in the first signal, and a first updated signal including the noise phase and the phase offset is obtained.
[0072] For any first signal, that is, for any target signal in the C3 loop, it can be expressed by the following formula:
[0073] X k = exp{j[2πf n nT + θ s (k) + θ L + θ n}
[0074] It can be understood that the present application compensates the phase of the signal. Therefore, this formula is essentially the phase expression of the signal. Wherein, j is the imaginary part, 2πf n nT is the remaining frequency offset after frequency offset compensation for the first signal, θ s (k) is the modulation phase of the k-th first signal, θ L is the phase offset caused by the laser linewidth, that is, the phase offset to be calculated, θ n is the noise phase.
[0075] That is to say, the first signal includes the remaining frequency offset, the noise phase, the phase offset and the modulation phase.
[0076] When performing carrier signal phase recovery, it is default that the frequency offset of the target signal has been completely compensated. Therefore, when calculating the phase offset, the remaining frequency offset after frequency offset compensation for the target signal can be confirmed as 0, and the phase expression of the target signal can be rewritten as:
[0077] X k = exp{j[θ s (k) + θ L + θ n}
[0078] The first signal can be regarded as a signal that satisfies the QPSK format. Since QPSK is a constant modulus signal and the phases of adjacent signals differ by 90 degrees, the modulation phase satisfies:
[0079]
[0080] According to Euler's formula, it is known that exp[jθ s (k)] = -1. Therefore, the modulation phase can be removed by taking the fourth power of the first signal. The expression of the first signal after removing the modulation phase is:
[0081] (Xk ) 4 = exp{j[4θ L + 4θ n}
[0082] It can be understood that the first signal after removing the modulation phase is the first updated signal.
[0083] To simplify the calculation process, reduce the use of multipliers in the DSP algorithm, and reduce the complexity of hardware implementation, when calculating the fourth power of the first signal to remove the modulation phase, the method of taking the absolute value of the first signal can be used instead. The principle is as follows:
[0084] If for the target signal X k , there is:
[0085]
[0086] Then the real part I k and the imaginary part Q k can be written as:
[0087]
[0088] Then the fourth power of the target signal can be expressed as:
[0089]
[0090] where the expressions of I 2,k and Q 2,k are as follows:
[0091]
[0092] Q 2,k ≈ |A k cos(Ψ k ) + A k sin(Ψ k )| - |A k cos(Ψ k ) - A k sin(Ψ k )|
[0093] = |I 1,k + Q 1,k | - |I 1,k - Q 1,k |
[0094] It can be seen that the fourth power of the target signal can be approximately replaced by the absolute value of the target signal, and there will be no cross-term influence on the calculation result due to additive noise during multiplication calculation.
[0095] It should be noted that the parameters involved in the above principle reasoning process have no specific meaning, and are only used to prove that the fourth power of the target signal can be approximately replaced by the absolute value of the target signal.
[0096] Step S5022: Obtain multiple adjacent signals of the first signal in the outermost circle, where the reception order of the adjacent signals is adjacent to the reception order of the first signal.
[0097] Obtaining multiple adjacent signals of the first signal in the outermost circle includes: obtaining the first M signals and the last M signals adjacent to the reception order of the first signal in the outermost circle, and the value of M is set by those skilled in the art and is not specifically limited herein.
[0098] Step S5023: Obtain adjacent updated signals corresponding to the adjacent signals, where the adjacent updated signals include a noise phase and a phase offset.
[0099] It can be understood that by performing a demodulation phase removal operation on the adjacent signals, adjacent updated signals corresponding to the adjacent signals, which include a noise phase and a phase offset, are obtained.
[0100] Step S5024: Perform an averaging process on the first updated signal and the multiple adjacent updated signals to remove the noise phase in the first updated signal, and obtain a second updated signal including the phase offset.
[0101] Among them, since the noise phase follows a Wiener process and its mean value is 0 in long-term calculations, it can be removed by taking the mean value of several signals. In the embodiments of the present application, an averaging process is performed on the first updated signal and the multiple adjacent updated signals to remove the noise phase in the first updated signal, and obtain a second updated signal including the phase offset. Specifically, the expression of the second updated signal including the phase offset can be as follows:
[0102]
[0103] Step S5025: Perform an angle calculation on the second updated signal to obtain the phase offset of the first signal.
[0104] Among them, after obtaining the second updated signal including the phase offset, perform an angle calculation on the second updated signal including the phase offset, and then divide by 4 to obtain the phase offset of the first signal.
[0105] Specifically, the phase offset of the first signal can be obtained by performing an angle calculation on the second updated signal through the following formula:
[0106]
[0107] Among them, arg represents the angle calculation.
[0108] Step S503: Input the demodulated signal into an error detector to obtain the bit error rate of the demodulated signal. For details, please refer to Figure 3 Step S303 of the embodiment shown, which will not be elaborated here.
[0109] Step S504: If the number of demodulated signals with bit error rates exceeding the first threshold within a preset time period before the current moment exceeds the first quantity threshold, switch the current phase compensation mode to the second mode. For details, please refer to Figure 3 Step S304 of the embodiment shown, which will not be elaborated here.
[0110] Step S505: If the current phase compensation mode is the second mode, perform pre-phase compensation on the target signal based on the phase compensation processing method of the first mode to obtain the pre-phase-compensated target signal, and then perform phase re-compensation on the pre-phase-compensated target signal to obtain the demodulated signal of the target signal; wherein, the hardware resource usage of the first mode is less than that of the second mode, and the phase compensation accuracy of the first mode is lower than that of the second mode. For details, please refer to Figure 3 Step S305 of the embodiment shown, which will not be elaborated here.
[0111] The signal phase compensation method provided by the embodiments of the present application calculates the phase offset using the outermost first signal under weak turbulence conditions, and realizes the compensation of all signals based on this phase offset, reducing the hardware implementation complexity. By removing the noise phase and modulation phase, the accurate measurement of the phase offset is ensured, and thus the accurate compensation of the signal phase is realized, improving the system performance. Using the method of replacing the fourth-power calculation with the absolute value to remove the modulation phase can reduce the hardware complexity and further reduce the waste of hardware resources.
[0112] In some alternative embodiments, the above signal phase compensation method further includes:
[0113] Step a1: If the current phase compensation mode is the second mode, input the demodulated signal obtained in the second mode into an error detector to obtain the bit error rate of the demodulated signal obtained in the second mode.
[0114] It can be understood that after obtaining the demodulated signal of the target signal in the second mode, it is also necessary to input the demodulated signal of the target signal into an error detector to obtain the bit error rate of the demodulated signal.
[0115] Step a2: If, in the second mode, the number of demodulated signals with bit error rates exceeding the first threshold within a preset time period before the current moment is lower than the second quantity threshold, switch the current phase compensation mode to the first mode.
[0116] Among them, the second quantity threshold is set by a technician and is not specifically limited here. Exemplarily, the second quantity threshold can be 0. It should be noted that the first quantity threshold can be greater than or equal to the second quantity threshold.
[0117] In the second mode, if the number of demodulation signals with bit error rates exceeding the first threshold obtained within a preset time period before the current moment is lower than the second quantity threshold, it indicates that the current channel condition may be good, or the phase shift under weak turbulence conditions is satisfied. Then it is determined that a switch to the low-complexity mode is required to ensure a reduction in hardware complexity and less use of hardware resources, so as to balance hardware resources and algorithm performance.
[0118] The signal phase compensation method provided by the embodiments of the present application can adjust the phase compensation mode in real time according to the bit error rate of the demodulation signals obtained within a preset time period before the current moment, and jointly control the selection of the phase compensation mode according to the bit error rates of the demodulation signals in different stages, so as to achieve flexible switching between the first mode and the second mode, without being affected by the cumulative bit error rate. At the same time, the phase compensation mode switching is realized adaptively without external intervention, reducing the usage difficulty.
[0119] In some alternative embodiments, the above step S502 includes:
[0120] Step b1, for any first signal, perform phase compensation on the first signal through the following formula to obtain the demodulation signal of the first signal:
[0121] X' k = X k × exp(-jθ L )
[0122] Where X k is the demodulation signal of the kth first signal, X k is the kth first signal, j is the imaginary part, and θ L is the phase offset of the kth first signal.
[0123] Step b2, for any second signal in other loops, obtain the reception order of the second signal in other loops.
[0124] Step b3, when the reception order of the second signal in other loops is the same as the reception order of any first signal in the outermost loop, perform phase compensation on the second signal based on the phase offset of the first signal to obtain the demodulation signal of the second signal.
[0125] Step b4, when the reception order of the second signal in other loops exceeds the maximum reception order of the signals in the outermost loop, perform phase compensation on the second signal based on the phase offset of the first signal corresponding to the maximum reception order in the outermost loop to obtain the demodulation signal of the second signal.
[0126] The signal phase compensation method provided by the embodiments of the present application can effectively eliminate the influence brought by phase offset by performing phase compensation on the first signal and the second signal, so as to obtain a more accurate demodulated signal. By performing phase compensation on the second signal according to the phase offset amount of the first signal corresponding to the reception order consistency or the maximum reception order, the algorithm complexity is simplified, the consumption of hardware resources is reduced, and the processing efficiency is improved.
[0127] In some alternative embodiments, the above step S505 includes:
[0128] Step c1: Block the pre-phase-compensated target signal to obtain multiple target signal blocks to be re-compensated, where each target signal block to be re-compensated includes multiple pre-phase-compensated target signals.
[0129] When blocking the pre-phase-compensated target signal in the second mode, the length of the target signal block to be re-compensated can be the same as the length of the target signal block when blocking the target signal in the first mode, or can be different from the length of the target signal block when blocking the target signal in the first mode. Specifically, it is set by those skilled in the art and will not be specifically limited herein.
[0130] Step c2: For any target signal block to be re-compensated, determine the first signal to be re-compensated that is in the outermost circle of the signal sub-circle display diagram of the target signal block to be re-compensated, and perform an absolute value operation on the first signal to be re-compensated to remove the modulation phase in the first signal to be re-compensated, so as to obtain a first updated signal to be re-compensated including the phase offset amount.
[0131] It can be understood that after the pre-phase compensation of the target signal is completed, the circle where the pre-phase-compensated target signal is located may change compared with the circle where the target signal is located, and it is necessary to re-determine the circle where the pre-phase-compensated target signal in the target signal block to be re-compensated is located.
[0132] Among them, the expression of the first signal to be re-compensated can be as follows:
[0133] X' k1 =A k exp(θ m +θ N1 )
[0134] Among them, X' k1 is the first signal to be re-compensated, A k is the amplitude of the first signal to be re-compensated, θ m is the modulation phase of the first signal to be re-compensated. Since pre-phase compensation has been performed, the noise phase can be almost ignored. Therefore, θ N1It can be regarded as the remaining phase offset after pre-phase compensation, that is, the phase offset of the first signal to be re-compensated.
[0135] It can be understood that for the first signal to be re-compensated, the absolute value of the first signal to be re-compensated is obtained to remove the modulation phase of the first signal to be re-compensated, and the first updated signal to be re-compensated containing the phase offset is obtained.
[0136] Step c3: Based on the first updated signal to be re-compensated, determine the phase offset of the first signal to be re-compensated.
[0137] Step c4: Based on the phase offset of the first signal to be re-compensated, perform phase re-compensation on the first signal to be re-compensated to obtain the demodulation signal of the target signal corresponding to the first signal to be re-compensated.
[0138] Step c5: Determine the second signal to be re-compensated in the innermost circle of the signal sub-circle display diagram in the target signal block to be re-compensated, and perform absolute value processing on the second signal to be re-compensated to remove the modulation phase in the second signal to be re-compensated, and obtain the second updated signal to be re-compensated containing the phase offset.
[0139] Step c6: Based on the second updated signal to be re-compensated, determine the phase offset of the second signal to be re-compensated.
[0140] Step c7: Based on the phase offset of the second signal to be re-compensated, perform phase re-compensation on the second signal to be re-compensated to obtain the demodulation signal of the target signal corresponding to the second signal to be re-compensated.
[0141] Step c8: Determine the third signal to be re-compensated in the other circles of the signal sub-circle display diagram in the target signal block to be re-compensated except for the outermost circle and the innermost circle, and perform absolute value processing and angle rotation processing on the third signal to be re-compensated to remove the modulation phase in the third signal to be re-compensated, and obtain the third updated signal to be re-compensated containing the phase offset.
[0142] Among them, the third signal to be re-compensated in the other circles of the signal sub-circle display diagram except for the outermost circle and the innermost circle is the target signal after pre-phase compensation in the C2 circle, and the phase re-compensation method is different from that of the second signal to be re-compensated in the C1 circle and the first signal to be re-compensated in the C3 circle. It not only needs to perform absolute value processing, but also needs to perform angle rotation processing to remove the modulation phase in the third signal to be re-compensated.
[0143] Specifically, Figure 6 is a schematic diagram of the position of the third signal to be re-compensated after absolute value processing in the signal sub-circle display diagram of the embodiment of the present application. As Figure 6As shown, after the third signal to be re-compensated in the C2 loop undergoes absolute value processing, it can be and present a fixed angle with the coordinate axes. It is necessary to and perform angle rotation to remove the modulation phase and make it fall on the x-axis.
[0144] Among them, the phase of the third signal to be re-compensated after absolute value processing can be expressed as:
[0145]
[0146] Among them, and are the third signals to be re-compensated after absolute value processing. It can be understood that they are expressed in the form of taking the fourth power here. θ rot represents the angle required for the third signal to be re-compensated after absolute value processing to rotate to the x-axis. θ rot = π / 4 - tan -1 (1 / 3). θ N3 is the phase offset of the third signal to be re-compensated.
[0147] When the influence of noise is not significant, θ rot + θ N3 and -θ rot + θ N3 are both within the range of 45°, and can be removed by rotating the angle. Among them, the third signal to be re-compensated after absolute value processing is subjected to angle rotation processing to remove the modulation phase of the third signal to be re-compensated. Specifically, it is achieved through the following formula:
[0148]
[0149] Among them, is the third updated signal to be re-compensated including the phase offset, that is, the signal after rotation by an angle of θ rot to obtain the calculated value. At this time, only the angle value related to θ N3 remains.
[0150] Step c9, based on the third updated signal to be re-compensated, determine the phase offset of the third signal to be re-compensated.
[0151] Step c10, based on the phase offset of the third signal to be re-compensated, perform phase re-compensation on the third signal to be re-compensated to obtain the demodulated signal of the target signal corresponding to the third signal to be re-compensated.
[0152] The signal phase compensation method provided by the embodiments of the present application further improves the accuracy of phase compensation for signals in each loop based on the calculation in the low-complexity mode, ensuring the accuracy of the demodulated signal and reducing the phase error. Since the calculation of the phase compensation amount in the high-precision mode is based on the calculation output of the low-complexity mode, the hardware resources of the low-complexity mode are reused, reducing the waste of hardware resources and improving the utilization rate of hardware resources. It realizes reducing the use of hardware resources while ensuring high precision, enabling the phase compensation to take into account both high precision and hardware resources.
[0153] In some alternative embodiments, step c9 includes:
[0154] Step c91, based on the third signal to be re-compensated and updated, determine the phase offset of the third signal to be re-compensated through the following formula:
[0155]
[0156] where θ comp2 is the phase offset of the third signal to be re-compensated, N3 is the number of the third signals to be re-compensated in the signal block to be re-compensated, and S k3 is the k-th third signal to be re-compensated and updated. θ comp2 has the same meaning as the aforementioned θ N3 .
[0157] It should be noted that the calculation method for determining the phase offset of the first signal to be re-compensated based on the first signal to be re-compensated and updated is similar to the calculation method for determining the phase offset of the third signal to be re-compensated based on the third signal to be re-compensated and updated, which is: where θ comp1 is the phase offset of the first signal to be re-compensated, which has the same meaning as the aforementioned θ N1 ; S k1 is the k-th first signal to be re-compensated and updated, and N1 is the number of the first signals to be re-compensated in the signal block to be re-compensated.
[0158] The calculation method for determining the phase offset of the second signal to be re-compensated based on the second signal to be re-compensated and updated is similar to the calculation method for determining the phase offset of the first signal to be re-compensated based on the first signal to be re-compensated and updated, and will not be elaborated here.
[0159] It should be noted that the calculation of the phase offset of the first signal to be re-compensated, the phase offset of the second signal to be re-compensated, and the phase offset of the third signal to be re-compensated can be performed simultaneously after all the first signal to be re-compensated and updated, the second signal to be re-compensated and updated, and the third signal to be re-compensated and updated are obtained, so as to reduce the use of hardware resources.
[0160] The signal phase compensation method provided by the embodiments of the present application calculates the phase offset of the signal to be re-compensated for each loop, and then performs phase re-compensation to gradually eliminate the phase error and improve the accuracy of the demodulated signal.
[0161] In some alternative embodiments, step c10 includes:
[0162] Step c101, based on the phase offset of the third signal to be re-compensated, perform phase re-compensation on the third signal to be re-compensated through the following formula to obtain the demodulated signal of the target signal corresponding to the third signal to be re-compensated:
[0163] X 2,k =X' k3 ·exp(-jθ comp2 )
[0164] Wherein, X 2,k is the demodulated signal of the target signal corresponding to the k-th third signal to be re-compensated, X' k3 is the k-th third signal to be re-compensated, and j is the imaginary part.
[0165] It can be understood that the specific implementation manners of the above step c4 and the above step c7 are similar to that of step c101, and will not be elaborated here.
[0166] The signal phase compensation method provided by the embodiments of the present application performs phase re-compensation for each third signal to be re-compensated respectively, ensures that each target signal can accurately complete phase compensation, obtains an accurate demodulated signal, and improves the accuracy and reliability of the demodulated signal.
[0167] In some alternative embodiments, the signal phase compensation method further includes:
[0168] In the first mode, determine the bit error rate of the first target demodulated signal obtained within a preset time period before the current moment.
[0169] Based on the bit error rate of the first target demodulated signal, determine the average value of the bit error rate of the first target demodulated signal.
[0170] In the case where the average value of the bit error rate of the first target demodulated signal is greater than the second threshold, switch the current phase compensation mode to the second mode. The second threshold is preset by those skilled in the art and will not be specifically limited here.
[0171] In the second mode, determine the bit error rate of the second target demodulated signal obtained within a preset time period before the current moment.
[0172] Based on the bit error rate of the second target demodulated signal, determine the average value of the bit error rate of the second target demodulated signal.
[0173] When the average value of the bit error rate of the second target demodulation signal is less than the second threshold, switch the current phase compensation mode to the first mode.
[0174] The signal phase compensation method provided by the embodiments of the present application monitors the bit error rate of the target demodulation signal in different modes, determines the average value of the bit error rate of the target demodulation signal, and dynamically switches the phase compensation mode according to the comparison result between the preset second threshold and the average value of the bit error rate, ensuring that the system can respond to the changes in the channel conditions in real time and ensuring the accuracy of signal phase compensation.
[0175] An embodiment of the present application provides a signal phase compensation method, which is applied to a field programmable gate array. Figure 7 For the flowchart of the signal phase compensation method provided by the embodiments of the present application, as Figure 7 shown, the process includes the following steps:
[0176] In the first mode, perform an operation of first dividing the target signal X to be phase-compensated p into blocks and then into circles. For any target signal block, take the absolute value of the target signal in the C3 circle in the target signal block to remove the modulation phase of the target signal in the C3 circle, and obtain a first updated signal including the noise phase and the phase offset.
[0177] Then remove the noise phase of the target signal in the C3 circle in the manner of the aforementioned steps S5022 to S5024 to obtain a second updated signal including the phase offset.
[0178] Perform an angle calculation on the second updated signal including the phase offset through the arg[∑(·)]4 module to obtain the phase offset of the target signal in the C3 circle.
[0179] Through the module, perform phase compensation on all the target signals in the target signal block based on the phase offset of the target signal in the C3 circle to obtain the demodulation signal of the target signal.
[0180] Input the demodulation signal of the target signal in the first mode into the error meter to use the error meter to statistically calculate the bit error rate of the demodulation signal in real time, and perform mode selection according to the bit error rate of the demodulation signal, that is, determine whether to switch the phase compensation mode. For the specific method of whether to switch the phase compensation mode, please refer to the description of the aforementioned step S504, which will not be elaborated here.
[0181] In the second mode, reuse the phase compensation processing method of the first mode, and perform phase compensation on the target signal X to be phase-compensated pPerform the operation of first dividing into blocks and then dividing into circles. For any target signal block, take the absolute value of the target signals in the C3 circle in the target signal block to remove the modulation phase of the target signals in the C3 circle, and obtain a first updated signal containing the noise phase and the phase offset. Then, remove the noise phase of the target signals in the C3 circle in the manner of the aforementioned steps S5022 to S5024 to obtain a second updated signal containing the phase offset. Through the arg[∑(·)]4 module, perform an angle calculation on the second updated signal containing the phase offset to obtain the phase offset of the target signals in the C3 circle.
[0182] Through module, based on the phase offset of the target signals in the C3 circle, perform pre-phase compensation on all the target signals in the target signal block to obtain the pre-phase compensated target signal X' p .
[0183] Perform the operation of first dividing into blocks and then dividing into circles on the pre-phase compensated target signal to obtain multiple target signal blocks to be re-compensated.
[0184] For any target signal block to be re-compensated, take the absolute value of the first target signal to be re-compensated in the C3 circle and the second target signal to be re-compensated in the C1 circle in the target signal block to be re-compensated to remove the modulation phase of the first target signal to be re-compensated in the C3 circle and the modulation phase of the second target signal to be re-compensated in the C1 circle, and obtain the first updated signal to be re-compensated (C3) 4 and the second updated signal to be re-compensated (C1) 4 .
[0185] Take the absolute value of the third target signal to be re-compensated in the C2 circle in the target signal block to be re-compensated to obtain (C2) 4 , perform an angle rotation on (C2) 4 to remove the modulation phase of the third target signal to be re-compensated in the C2 circle and obtain the third updated signal to be re-compensated (C2') 4 .
[0186] Through the arg[∑(·)] / 4 module, based on the first updated signal to be re-compensated, the second updated signal to be re-compensated, and the third updated signal to be re-compensated, determine the phase offset of the first target signal to be re-compensated, the phase offset of the second target signal to be re-compensated, and the phase offset of the third target signal to be re-compensated. For details, refer to the description of the aforementioned step c91, which will not be elaborated here.
[0187] Through The module performs phase compensation on the first signal to be re-compensated based on the phase offset of the first signal to be re-compensated, and obtains the demodulation signal of the target signal corresponding to the first signal to be re-compensated. It performs phase compensation on the second signal to be re-compensated based on the phase offset of the second signal to be re-compensated, and obtains the demodulation signal of the target signal corresponding to the second signal to be re-compensated. It performs phase compensation on the third signal to be re-compensated based on the phase offset of the third signal to be re-compensated, and obtains the demodulation signal of the target signal corresponding to the third signal to be re-compensated.
[0188] Input the demodulation signal of the target signal in the second mode into the error detector, so as to use the error detector to statistically obtain the bit error rate of the demodulation signal in real time, and perform mode selection according to the bit error rate of the demodulation signal, that is, determine whether to switch the phase compensation mode. For the specific determination of whether to switch the phase compensation mode, please refer to the description of step a2 above, which will not be elaborated here.
[0189] The signal phase compensation method provided by the embodiments of the present application dynamically adjusts the phase compensation mode in real time through the feedback of the error detector according to different channel conditions, is applicable to various channel scenarios, realizes full online real-time bit error detection and dynamic phase compensation mode switching, and takes into account both hardware complexity and calculation accuracy. When the signal conditions are good, a low-complexity mode is adopted, and the hardware resource consumption in the low-complexity mode is low. When the channel conditions are poor, a high-precision mode is adopted, and the phase compensation accuracy in the high-precision mode is high. And the algorithm is optimized, using the absolute value instead of the fourth power operation, so that the multiplier is avoided in hardware implementation, further reducing the hardware resource consumption and algorithm complexity. The hardware logic in the low-complexity mode is reused in the high-precision mode, maximizing the utilization of hardware resources.
[0190] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.
[0191] The embodiments of the present application also provide a signal phase compensation device, as Figure 8 shown, including:
[0192] The block module 801 is configured to receive the target signal to be phase-compensated if the current phase compensation mode is the first mode, and perform block division on the target signal to obtain a plurality of target signal blocks.
[0193] The first acquisition module 802 is configured to, for any target signal block, determine a first signal in the outermost circle of the signal sub-circle display diagram in the target signal block, obtain the phase offset of the first signal, and based on the phase offset, perform phase compensation on the first signal and a second signal in other circles in the signal sub-circle display diagram, so as to obtain a demodulated signal of any target signal in the target signal block.
[0194] The second acquisition module 803 is configured to input the demodulated signal into an error code detector to obtain the bit error rate of the demodulated signal.
[0195] The first switching module 804 is configured to, if the number of demodulated signals with a bit error rate exceeding a first threshold within a preset time period before the current moment exceeds a first quantity threshold, switch the current phase compensation mode to a second mode.
[0196] The third acquisition module 805 is configured to, if the current phase compensation mode is the second mode, perform pre-phase compensation on the target signal based on the phase compensation processing method of the first mode to obtain a pre-phase-compensated target signal, and perform phase re-compensation on the pre-phase-compensated target signal to obtain a demodulated signal of the target signal; wherein, the hardware resource usage amount of the first mode is less than that of the second mode, and the phase compensation accuracy of the first mode is lower than that of the second mode.
[0197] In some alternative embodiments, the signal phase compensation device further includes:
[0198] The fourth acquisition module is configured to, if the current phase compensation mode is the second mode, input the demodulated signal obtained in the second mode into an error code detector to obtain the bit error rate of the demodulated signal obtained in the second mode.
[0199] The second switching module is configured to, if the number of demodulated signals with a bit error rate exceeding a first threshold within a preset time period before the current moment is less than a second quantity threshold in the second mode, switch the current phase compensation mode to the first mode.
[0200] In some alternative embodiments, the first acquisition module 802 includes:
[0201] The first acquisition unit is configured to, for any first signal, perform an absolute value operation on the first signal to remove the modulation phase in the first signal, so as to obtain a first updated signal including a noise phase and a phase offset.
[0202] The second acquisition unit is configured to acquire a plurality of adjacent signals of the first signal in the outermost circle, wherein the reception order of the adjacent signals is adjacent to the reception order of the first signal.
[0203] The third acquisition unit is configured to acquire adjacent updated signals corresponding to the adjacent signals and including a noise phase and a phase offset.
[0204] A first processing unit, configured to perform an averaging process on a first update signal and a plurality of adjacent update signals to remove a noise phase in the first update signal, and obtain a second update signal including a phase offset.
[0205] A second processing unit, configured to perform an angle calculation process on the second update signal to obtain a phase offset of the first signal.
[0206] In some alternative embodiments, the first acquisition module 802 includes:
[0207] A fourth acquisition unit, configured to perform phase compensation on any first signal through the following formula to obtain a demodulated signal of the first signal:
[0208] X' k = X k × exp(-jθ L )
[0209] where X' k is the demodulated signal of the k-th first signal, X k is the k-th first signal, j is the imaginary part, and θ L is the phase offset of the k-th first signal.
[0210] A fifth acquisition unit, configured to acquire a reception order of any second signal in other turns.
[0211] A sixth acquisition unit, configured to, when the reception order of the second signal in other turns is consistent with the reception order of any first signal in the outermost turn, perform phase compensation on the second signal based on the phase offset of the first signal to obtain a demodulated signal of the second signal.
[0212] A seventh acquisition unit, configured to, when the reception order of the second signal in other turns exceeds the maximum reception order of the signals in the outermost turn, perform phase compensation on the second signal based on the phase offset of the first signal corresponding to the maximum reception order of the signals in the outermost turn to obtain a demodulated signal of the second signal.
[0213] In some alternative embodiments, the third acquisition module 805 includes:
[0214] An eighth acquisition unit, configured to partition a pre-phase-compensated target signal to obtain a plurality of target signal blocks to be re-compensated, where each target signal block to be re-compensated includes a plurality of pre-phase-compensated target signals.
[0215] A ninth acquisition unit, configured to, for any target signal block to be re-compensated, determine a first signal to be re-compensated that is in the outermost circle of the signal sub-circle display diagram in the target signal block to be re-compensated, perform an absolute value operation on the first signal to be re-compensated, so as to remove the modulation phase in the first signal to be re-compensated, and obtain a first updated signal to be re-compensated including a phase offset.
[0216] A first determination unit, configured to determine the phase offset of the first signal to be re-compensated based on the first updated signal to be re-compensated.
[0217] A tenth acquisition unit, configured to perform phase re-compensation on the first signal to be re-compensated based on the phase offset of the first signal to be re-compensated, and obtain a demodulated signal of the target signal corresponding to the first signal to be re-compensated.
[0218] A third processing unit, configured to determine a second signal to be re-compensated that is in the innermost circle of the signal sub-circle display diagram in the target signal block to be re-compensated, perform an absolute value operation on the second signal to be re-compensated, so as to remove the modulation phase in the second signal to be re-compensated, and obtain a second updated signal to be re-compensated including a phase offset.
[0219] A second determination unit, configured to determine the phase offset of the second signal to be re-compensated based on the second updated signal to be re-compensated.
[0220] An eleventh acquisition unit, configured to perform phase re-compensation on the second signal to be re-compensated based on the phase offset of the second signal to be re-compensated, and obtain a demodulated signal of the target signal corresponding to the second signal to be re-compensated.
[0221] A fourth processing unit, configured to determine a third signal to be re-compensated that is in a circle other than the outermost circle and the innermost circle of the signal sub-circle display diagram in the target signal block to be re-compensated, perform an absolute value operation and an angle rotation operation on the third signal to be re-compensated, so as to remove the modulation phase in the third signal to be re-compensated, and obtain a third updated signal to be re-compensated including a phase offset.
[0222] A third determination unit, configured to determine the phase offset of the third signal to be re-compensated based on the third updated signal to be re-compensated.
[0223] A twelfth acquisition unit, configured to perform phase re-compensation on the third signal to be re-compensated based on the phase offset of the third signal to be re-compensated, and obtain a demodulated signal of the target signal corresponding to the third signal to be re-compensated.
[0224] In some alternative embodiments, the third determination unit includes:
[0225] A third determination subunit, configured to determine the phase offset of the third signal to be re-compensated based on the third updated signal to be re-compensated through the following formula:
[0226]
[0227] where θ comp2 is the phase offset of the third signal to be re-compensated, N3 is the number of the third signals to be re-compensated in the signal block to be re-compensated target, and S k3 is the k-th third signal to be re-compensated and updated.
[0228] In some alternative embodiments, the twelfth acquisition unit includes:
[0229] A twelfth acquisition subunit, configured to perform phase re-compensation on the third signal to be re-compensated based on the phase offset of the third signal to be re-compensated through the following formula, so as to obtain a demodulated signal of the target signal corresponding to the third signal to be re-compensated:
[0230] X 2,k = X' k3 ·exp(-jθ comp2 )
[0231] where X 2,k is the demodulated signal of the target signal corresponding to the k-th third signal to be re-compensated, X' k3 is the k-th third signal to be re-compensated, and j is the imaginary part.
[0232] For the description of the features in the corresponding embodiments of the signal phase compensation device, reference can be made to the relevant description in the corresponding embodiments of the signal phase compensation method, which will not be elaborated here one by one.
[0233] An embodiment of the present application further provides an electronic device, as Figure 9 shown, including a processor 901 and a memory 902. A computer program is stored in the memory 902, and the processor 901 is configured to run the computer program to execute the steps in any one of the above embodiments of the signal phase compensation method.
[0234] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any one of the above embodiments of the signal phase compensation method when running.
[0235] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as a USB flash drive, a read-only memory (ROM for short), a random access memory (RAM for short), a mobile hard disk, a magnetic disk, or an optical disc that can store a computer program.
[0236] Embodiments of the present application also provide a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the embodiments of the above signal phase compensation method.
[0237] Embodiments of the present application also provide another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any of the embodiments of the above signal phase compensation method.
[0238] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0239] The above has introduced in detail a signal phase compensation method, device, electronic device, and storage medium provided by the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A signal phase compensation method, characterized in that: include: If the current phase compensation mode is the first mode, receiving a target signal to be phase compensated, dividing the target signal into blocks, and obtaining a plurality of target signal blocks; For any target signal block, determine a first signal in the outermost circle of a signal circle display diagram in the target signal block, obtain a phase offset of the first signal, and based on the phase offset, perform phase compensation on the first signal and second signals in other circles of the signal circle display diagram to obtain a demodulated signal of any target signal in the target signal block; Inputting the demodulated signal into a bit error meter to obtain a bit error rate of the demodulated signal; If the number of demodulated signals with a bit error rate exceeding a first threshold obtained in a preset time period before the current moment exceeds a first number threshold, switching the current phase compensation mode to a second mode; If the current phase compensation mode is the second mode, then based on the phase compensation processing method of the first mode, pre-phase compensation is performed on the target signal to obtain the target signal after pre-phase compensation, and phase re-compensation is performed on the target signal after pre-phase compensation to obtain a demodulated signal of the target signal; wherein, the hardware resource usage of the first mode is less than the hardware resource usage of the second mode, and the phase compensation accuracy of the first mode is lower than the phase compensation accuracy of the second mode.
2. The signal phase compensation method according to claim 1, characterized in that: The method further comprises: If the current phase compensation mode is the second mode, inputting the demodulated signal obtained in the second mode into the bit error meter to obtain the bit error rate of the demodulated signal obtained in the second mode; If in the second mode, the number of demodulated signals with bit error rates exceeding the first threshold obtained in a preset time period before the current moment is lower than the second number threshold, the current phase compensation mode is switched to the first mode.
3. The signal phase compensation method according to claim 1, characterized in that: The acquiring the phase offset of the first signal comprises: For any first signal, perform absolute value processing on the first signal to remove the modulation phase in the first signal and obtain a first update signal including a noise phase and a phase offset; Acquire a plurality of adjacent signals of the first signal in the outermost circle, wherein a receiving order of the adjacent signals is adjacent to a receiving order of the first signal; Acquire an adjacent update signal including a noise phase and a phase offset corresponding to the adjacent signal; Performing an averaging process on the first update signal and a plurality of adjacent update signals to remove a noise phase in the first update signal and obtain a second update signal including a phase offset; Angle-finding processing is performed on the second update signal to obtain a phase offset of the first signal.
4. The signal phase compensation method according to claim 1, characterized in that: The step of performing phase compensation on the first signal and second signals in other circles in the signal circle display diagram based on the phase offset to obtain a demodulated signal of any target signal in the target signal block includes: For any first signal, phase compensation is performed on the first signal by the following formula to obtain a demodulated signal of the first signal: X' k =X k ×exp(-jθ L ) Among them, X' k is the demodulated signal of the kth first signal, X k is the kth first signal, j is the imaginary part, θ L is the phase offset of the kth first signal; For any second signal in other circles, obtaining a receiving order of the second signal in other circles; When the receiving order of the second signal in other circles is consistent with the receiving order of any first signal in the outermost circle, performing phase compensation on the second signal based on the phase offset of the first signal to obtain a demodulated signal of the second signal; When the receiving order of the second signal in other circles exceeds the maximum receiving order of the signal in the outermost circle, phase compensation is performed on the second signal based on the phase offset of the first signal corresponding to the maximum receiving order of the signal in the outermost circle to obtain a demodulated signal of the second signal.
5. The signal phase compensation method according to claim 1, characterized in that: The performing phase re-compensation on the pre-phase compensated target signal to obtain a demodulated signal of the target signal includes: Dividing the pre-phase compensated target signal into blocks to obtain a plurality of target signal blocks to be re-compensated, wherein the target signal blocks to be re-compensated include a plurality of pre-phase compensated target signals; For any target signal block to be recompensed, determine a first signal to be recompensed that is located in the outermost circle of the signal circle display diagram in the target signal block to be recompensed, and perform absolute value processing on the first signal to be recompensed to remove the modulation phase in the first signal to be recompensed, so as to obtain a first update signal to be recompensed that includes a phase offset; determining a phase offset of the first signal to be re-compensated based on the first update signal to be re-compensated; Based on the phase offset of the first signal to be re-compensated, phase re-compensation is performed on the first signal to be re-compensated to obtain a demodulated signal of a target signal corresponding to the first signal to be re-compensated; Determine a second signal to be recompensed that is located in the innermost circle of the signal circle display diagram in the target signal block to be recompensed, and perform absolute value processing on the second signal to be recompensed to remove the modulation phase in the second signal to be recompensed to obtain a second update signal to be recompensed that includes a phase offset; Determining a phase offset of the second signal to be re-compensated based on the second update signal to be re-compensated; Based on the phase offset of the second signal to be re-compensated, phase re-compensation is performed on the second signal to be re-compensated to obtain a demodulated signal of a target signal corresponding to the second signal to be re-compensated; Determine a third signal to be recompensed in other circles of the signal circle display diagram except the outermost circle and the innermost circle in the target signal block to be recompensed, perform absolute value processing and angle rotation processing on the third signal to be recompensed to remove the modulation phase in the third signal to be recompensed, and obtain a third update signal to be recompensed including a phase offset; Determining a phase offset of the third signal to be re-compensated based on the third update signal to be re-compensated; Based on the phase offset of the third signal to be re-compensated, phase re-compensation is performed on the third signal to be re-compensated to obtain a demodulated signal of a target signal corresponding to the third signal to be re-compensated.
6. The signal phase compensation method according to claim 5, characterized in that: The determining, based on the third update signal to be re-compensated, the phase offset of the third signal to be re-compensated comprises: The phase offset of the third signal to be re-compensated is determined based on the third update signal to be re-compensated by the following formula: Among them, θ comp2 is the phase offset of the third signal to be recompensed, N3 is the number of the third signal to be recompensed in the target signal block to be recompensed, S k3 is the kth third compensation update signal.
7. The signal phase compensation method according to claim 6, characterized in that: The performing phase recompensation on the third signal to be recompensed based on the phase offset of the third signal to be recompensed to obtain a demodulated signal of a target signal corresponding to the third signal to be recompensed, comprises: The phase of the third signal to be recompensed is recompensed based on the phase offset of the third signal to be recompensed by the following formula to obtain a demodulated signal of the target signal corresponding to the third signal to be recompensed: X 2,k =X' k3 ·exp(-jθ comp2 ) Among them, X 2,k is the demodulated signal of the target signal corresponding to the kth third signal to be recompensed, X' k3 is the kth third signal to be compensated, and j is the imaginary part.
8. A signal phase compensation device, characterized in that: include: A block division module, configured to receive a target signal to be phase compensated if the current phase compensation mode is the first mode, and divide the target signal into blocks to obtain a plurality of target signal blocks; A first acquisition module is used to determine, for any target signal block, a first signal in the outermost circle of a signal circle display diagram in the target signal block, obtain a phase offset of the first signal, and based on the phase offset, perform phase compensation on the first signal and second signals in other circles of the signal circle display diagram to obtain a demodulated signal of any target signal in the target signal block; A second acquisition module, used for inputting the demodulated signal into a bit error meter to obtain a bit error rate of the demodulated signal; A first switching module, configured to switch the current phase compensation mode to the second mode if the number of demodulated signals with a bit error rate exceeding a first threshold obtained in a preset time period before a current moment exceeds a first number threshold; The third acquisition module is used to, if the current phase compensation mode is the second mode, perform pre-phase compensation on the target signal based on the phase compensation processing method of the first mode to obtain the target signal after pre-phase compensation, and perform phase re-compensation on the target signal after pre-phase compensation to obtain a demodulated signal of the target signal; wherein the hardware resource usage of the first mode is less than the hardware resource usage of the second mode, and the phase compensation accuracy of the first mode is lower than the phase compensation accuracy of the second mode.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the signal phase compensation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the signal phase compensation method according to any one of claims 1 to 7.