Disclosure of Invention
The invention provides a method and a device for evaluating signal quality of a receiver, which are used for solving the problem that signal quality information cannot be accurately reflected.
A first aspect of the present invention provides a receiver signal quality evaluation method, including:
acquiring a receiving signal, wherein the receiving signal is a time domain signal or a format conversion signal of the time domain signal;
passing the received signal through a band-pass filter to obtain a pilot signal;
determining a signal quality of the received signal based on the pilot signal.
Optionally, the signal quality is a signal-to-noise ratio.
Optionally, the determining the signal quality of the received signal according to the pilot signal includes:
dividing the pilot signal into two paths of signals, wherein the two paths of signals comprise a first path of signal and a second path of signal;
the first path of signal passes through a first power calculator to obtain pilot signal power;
the second path of signal passes through a wave trap and a second power calculator to obtain signal noise power;
and the pilot signal power and the signal noise power are processed by a signal-to-noise ratio calculator to obtain the signal-to-noise ratio.
Optionally, the first power calculator includes: the device comprises a first squarer, a first multiplier, a first adder, a second multiplier, a second adder and a first delayer;
the first path of signal is input into the multiplier through the first squarer and multiplied by a control factor F to obtain first instantaneous power, the first instantaneous power and second instantaneous power are added to obtain the pilot power, the second instantaneous power is the result of the control factor and the unit 1 input into the second adder, the obtained (1-F) factor is multiplied by the second instantaneous power passing through the first delayer, and the second instantaneous power is the previous instantaneous power of the first instantaneous power;
the second power calculator, comprising: the second squarer, the third multiplier, the third adder, the fourth multiplier, the fourth adder and the second delayer;
and inputting the second path of signal passing through the wave trap into the third multiplier through the second squarer to multiply the third multiplier by a control factor F to obtain third instantaneous power, adding the third instantaneous power and fourth instantaneous power to obtain the signal noise power, inputting the fourth instantaneous power into the fourth adder by the control factor and unit 1 to obtain a result of multiplying the (1-F) factor by the fourth instantaneous power passing through the second delayer, wherein the fourth instantaneous power is the previous instantaneous power of the third instantaneous power.
Optionally, before the step of passing the received signal through a band-pass filter to obtain a pilot signal, the method further includes:
and the received signal passes through a time domain to frequency domain converter to obtain a frequency domain signal.
Optionally, the obtaining the frequency domain signal by passing the received signal through a time domain to frequency domain converter includes:
determining the phase of the received signal according to the received signal;
and determining the differential phase of the received signal by passing the phase of the received signal through a differentiator.
A second aspect of the present invention provides a receiver signal quality evaluation apparatus, comprising:
the receiver is used for acquiring a received signal, wherein the received signal is a time domain signal or a format conversion signal of the time domain signal;
the band-pass filter is used for enabling the received signal to pass through the band-pass filter to obtain a pilot signal;
a processor for determining a signal quality of the received signal based on the pilot signal.
Optionally, the signal quality is a signal-to-noise ratio.
Optionally, the processor includes: the device comprises a wave trap, a power calculator and a signal-to-noise ratio calculator;
the processor is specifically configured to divide the pilot signal into two paths of signals, where the two paths of signals include a first path of signal and a second path of signal; the first path of signal passes through a first power calculator to obtain pilot signal power; the second path of signal passes through a wave trap and a second power calculator to obtain signal noise power; and the pilot signal power and the signal noise power are processed by a signal-to-noise ratio calculator to obtain the signal-to-noise ratio.
Optionally, the first power calculator includes: the device comprises a first squarer, a first multiplier, a first adder, a second multiplier, a second adder and a first delayer;
the first path of signal is input into the multiplier through the first squarer and multiplied by a control factor F to obtain first instantaneous power, the first instantaneous power and second instantaneous power are added to obtain the pilot power, the second instantaneous power is the result of the control factor and the unit 1 input into the second adder, the obtained (1-F) factor is multiplied by the second instantaneous power passing through the first delayer, and the second instantaneous power is the previous instantaneous power of the first instantaneous power;
the second power calculator, comprising: the second squarer, the third multiplier, the third adder, the fourth multiplier, the fourth adder and the second delayer;
and inputting the second path of signal passing through the wave trap into the third multiplier through the second squarer to multiply the third multiplier by a control factor F to obtain third instantaneous power, adding the third instantaneous power and fourth instantaneous power to obtain the signal noise power, inputting the fourth instantaneous power into the fourth adder by the control factor and unit 1 to obtain a result of multiplying the (1-F) factor by the fourth instantaneous power passing through the second delayer, wherein the fourth instantaneous power is the previous instantaneous power of the third instantaneous power.
Optionally, the method further includes: a time domain to frequency domain converter;
and the time domain to frequency domain converter is used for enabling the received signal to pass through the time domain to frequency domain converter to obtain a frequency domain signal.
Optionally, the time-to-frequency domain converter is specifically configured to determine a phase of the received signal according to the received signal; and determining the differential phase of the received signal by passing the phase of the received signal through a differentiator.
The invention provides a method and a device for evaluating the signal quality of a receiver, which are characterized in that a received signal is obtained, wherein the received signal is a time domain signal or a format conversion signal of the time domain signal; then, the received signal passes through a band-pass filter to obtain a pilot signal; then, the signal quality of the received signal is determined based on the pilot signal. The signal quality in the frequency domain is obtained, so that the signal quality information can be accurately reflected.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for evaluating the signal quality of the receiver provided by the embodiment of the invention can be applied to the condition that the FM receiver needs to determine the output signal of the receiver according to the signal quality of the received signal. The receiver signal quality evaluation apparatus provided by the present embodiment can be implemented in software and/or hardware. The following describes the method and apparatus for estimating the signal quality of a receiver according to the present embodiment in detail.
Fig. 1 is a schematic flow chart of an embodiment of a receiver signal quality estimation method according to the present invention, as shown in fig. 1, an implementation subject of the embodiment may be a receiver signal quality estimation apparatus, and the receiver signal quality estimation method includes:
step 101, acquiring a received signal.
In this embodiment, the received signal is a time domain signal or a format conversion signal of the time domain signal.
Step 102, the received signal is passed through a band-pass filter to obtain a pilot signal.
For example, after the received signal is processed by a band pass filter, a pilot signal of 19KHz can be obtained.
Step 103, determining the signal quality of the received signal according to the pilot signal.
It should be noted that the Signal quality in this embodiment may be a Received Signal Strength Indicator (RSSI) factor or a Signal-to-Noise Ratio (SNR) of the received Signal, and the specific Signal quality is not limited herein.
For example, the pilot signal is divided into two pilot signals, where the two pilot signals may include a first pilot signal and a second pilot signal; then, the first path of signal passes through a first power calculator to obtain the power of a pilot signal; meanwhile, the second path of signal passes through a wave trap and a second power calculator to obtain signal noise power; and the pilot signal power and the signal noise power are processed by a signal-to-noise ratio calculator to obtain the signal-to-noise ratio.
In this embodiment, a received signal is obtained, where the received signal is a time domain signal or a format conversion signal of the time domain signal; then, the received signal passes through a band-pass filter to obtain a pilot signal; then, the signal quality of the received signal is determined based on the pilot signal. The signal quality in the frequency domain is obtained, so that the signal quality information can be accurately reflected.
Fig. 2 is a schematic flow chart of another embodiment of the receiver signal quality estimation method of the present invention, fig. 3 is a schematic signal flow diagram of another embodiment of the receiver signal quality estimation method of the present invention, fig. 4 is an amplitude-frequency response diagram of a channel filter of one embodiment of the receiver signal quality estimation method of the present invention, fig. 5 is an amplitude-frequency response diagram of a band-pass filter of one embodiment of the receiver signal quality estimation method of the present invention, fig. 6 is an amplitude-frequency response diagram of a notch filter of one embodiment of the receiver signal quality estimation method of the present invention, fig. 7 is a schematic structural diagram of a first power calculator of one embodiment of the receiver signal quality estimation method of the present invention, as shown in fig. 2 and fig. 3, the receiver signal quality estimation method may be implemented by a receiver signal quality estimation apparatus, and may specifically include:
step 201, acquiring a received signal.
In this embodiment, the received signal is a time domain signal, for example, the received signal includes: a time domain I sample signal and a time domain Q sample signal.
Step 202, the received signal is passed through a channel filter to obtain a received signal with out-of-band interference removed.
For example, the channel filter may be a low pass filter having a passband of 75KHz, as shown in fig. 4.
Step 203, the received signal is passed through a time domain to frequency domain converter to obtain a frequency domain signal.
For example, the phase of the received signal is determined based on the received signal, and then the differential phase of the received signal is determined by passing the phase of the received signal through a differentiator.
Step 204, the received signal is passed through a band-pass filter to obtain a pilot signal.
As shown in fig. 5, the center frequency of the band pass filter is 19KHz, and the band pass filter can filter out the pilot signal without filtering out partial components of the left and right channel sum signal (L + R) and the left and right channel difference signal (L-R).
Step 205, the pilot signal is divided into two signals.
In this embodiment, the two pilot signals may include a first signal and a second signal.
Step 206, passing the first path of signal through a first power calculator to obtain pilot signal power;
in this embodiment, the power calculator is shown in fig. 7, and the first power calculator includes: the device comprises a first squarer, a first multiplier, a first adder, a second multiplier, a second adder and a first delayer; the first path of signal is input into the multiplier through the first squarer and multiplied by a control factor F to obtain first instantaneous power, the first instantaneous power and second instantaneous power are added to obtain pilot power, the second instantaneous power is the result of multiplying the control factor and the second instantaneous power which passes through the first delayer, the obtained (1-F) factor and the second instantaneous power which passes through the first delayer are input into the second adder, and the second instantaneous power is the previous instantaneous power of the first instantaneous power; the control factor F is set by a register, and the unit of the control factor is 0< F <1, and the control factor determines the convergence rate and calculation accuracy of the power calculation of the power calculator.
And step 207, passing the second path of signal through a wave trap and a power calculator to obtain signal noise power.
A second power calculator comprising: the second squarer, the third multiplier, the third adder, the fourth multiplier, the fourth adder and the second delayer;
and inputting the second path of signal passing through the wave trap into the third multiplier through the second squarer to multiply the third multiplier by a control factor F to obtain third instantaneous power, adding the third instantaneous power and fourth instantaneous power to obtain the signal noise power, inputting the fourth instantaneous power into the fourth adder by the control factor and unit 1 to obtain a result of multiplying the (1-F) factor by the fourth instantaneous power passing through the second delayer, wherein the fourth instantaneous power is the previous instantaneous power of the third instantaneous power.
The power calculator in this embodiment is similar to the power calculator shown in fig. 7 in structure and operation principle, and is not described herein again.
In this embodiment, the amplitude frequency response of the trap is as shown in FIG. 6, in order to filter out the 19KHz pilot.
And step 208, the pilot signal power and the signal noise power are processed by a signal-to-noise ratio calculator to obtain a signal-to-noise ratio.
In the present embodiment, the SNR is obtained according to the following formula, that is, SNR is 10 × log10 (S/N); wherein,
s is the pilot signal power and N is the pilot signal noise power.
Optionally, the SNR output from the SNR calculator may be input to a noise ratio modifier for obtaining a modified SNR.
It should be noted that, in this embodiment, since the SNR calculation result is more accurate, or the difference between the actual SNR and the SNR is more constant, the SNR corrector is not provided in this embodiment.
It should be noted that, the Signal quality in this embodiment may be a Received Signal Strength Indicator (RSSI) factor or a Signal-to-Noise Ratio (SNR) of the received Signal, and the specific Signal quality is not limited herein.
Fig. 8 is a schematic diagram illustrating the effect of the receiver signal quality estimation method of the present invention, and as shown in fig. 8, the FM receiver uses the receiver signal quality estimation method of the present invention, wherein the abscissa is the actual system signal-to-noise ratio, and the ordinate is the frequency domain signal-to-noise ratio estimation value. Therefore, the estimated signal-to-noise ratio of the frequency domain has small fluctuation and is accurate.
In the embodiment, the signal quality in the frequency domain is obtained, so that the signal quality information can be accurately reflected.
Fig. 9 is a schematic structural diagram of an embodiment of a receiver signal quality estimation apparatus according to the present invention, as shown in fig. 9, the receiver signal quality estimation apparatus includes: a receiver 91, a band pass filter 92 and a processor 93; the receiver 91 is configured to obtain a received signal, where the received signal is a time domain signal or a format conversion signal of the time domain signal; a band-pass filter 92, configured to pass the received signal through the band-pass filter to obtain a pilot signal; a processor 93 for determining a signal quality of the received signal based on the pilot signal.
In this embodiment, a received signal is obtained, where the received signal is a time domain signal or a format conversion signal of the time domain signal; then, the received signal passes through a band-pass filter to obtain a pilot signal; then, the signal quality of the received signal is determined based on the pilot signal. The signal quality in the frequency domain is obtained, so that the signal quality information can be accurately reflected.
Optionally, the signal quality in this embodiment is a signal-to-noise ratio.
A processor 93 comprising: the device comprises a wave trap, a power calculator and a signal-to-noise ratio calculator;
the processor is specifically configured to divide the pilot signal into two paths of signals, where the two paths of signals include a first path of signal and a second path of signal; the first path of signal passes through a first power calculator to obtain pilot signal power; the second path of signal passes through a wave trap and a second power calculator to obtain signal noise power; and the pilot signal power and the signal noise power are processed by a signal-to-noise ratio calculator to obtain the signal-to-noise ratio.
Optionally, the first power calculator includes: the device comprises a first squarer, a first multiplier, a first adder, a second multiplier, a second adder and a first delayer;
the first path of signal is input into the multiplier through the first squarer and multiplied by a control factor F to obtain first instantaneous power, the first instantaneous power and second instantaneous power are added to obtain pilot power, the second instantaneous power is the result of multiplying the control factor and the second instantaneous power which passes through the first delayer, the obtained (1-F) factor and the second instantaneous power which passes through the first delayer are input into the second adder, and the second instantaneous power is the previous instantaneous power of the first instantaneous power; a second power calculator comprising: the second squarer, the third multiplier, the third adder, the fourth multiplier, the fourth adder and the second delayer;
and inputting the second path of signal passing through the wave trap into the third multiplier through the second squarer to multiply the third multiplier by a control factor F to obtain third instantaneous power, adding the third instantaneous power and fourth instantaneous power to obtain the signal noise power, inputting the fourth instantaneous power into the fourth adder by the control factor and unit 1 to obtain a result of multiplying the (1-F) factor by the fourth instantaneous power passing through the second delayer, wherein the fourth instantaneous power is the previous instantaneous power of the third instantaneous power.
Fig. 10 is a schematic structural diagram of another embodiment of the receiver signal quality evaluation apparatus according to the present invention, as shown in fig. 10, on the basis of the foregoing embodiment, the apparatus may further include: a time-to-frequency domain converter 94;
the time-domain to frequency-domain converter 94 is configured to pass the received signal through the time-domain to frequency-domain converter to obtain a frequency-domain signal.
Optionally, the time-to-frequency domain converter 94 is specifically configured to determine a phase of the received signal according to the received signal; and determining the differential phase of the received signal by passing the phase of the received signal through a differentiator.
In the embodiment, the signal quality in the frequency domain is obtained, so that the signal quality information can be accurately reflected.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.