Signal frequency measurement method and frequency measurement device
Through group sampling and phase difference calculation, combined with sampling frequency information, the problems of low accuracy and high complexity of signal frequency measurement are solved, and efficient and accurate signal frequency measurement is achieved, with strong applicability.
Patent Information
- Application Number
- CN202411331141.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-09-24
AI Technical Summary
When facing factors such as Gaussian white noise and phase noise, the existing signal frequency measurement methods have low accuracy, high complexity, large calculation amount, poor applicability, and difficult to achieve milliHz level frequency measurement accuracy in a short time.
By grouping and sampling the target signal, the phase difference between different sampling time intervals is obtained, and combined with the sampling frequency information, the signal frequency is calculated using the number of phase difference winding turns to reduce the measurement complexity and calculation amount and improve the accuracy.
It realizes efficient and accurate measurement of signal frequency measurement, reduces the complexity and calculation amount of signal frequency measurement, is highly applicable and is suitable for more application scenarios.
Smart Images

Figure CN118858753B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic power technology, and in particular to a signal frequency measurement method and frequency measurement device. Background Art
[0002] Frequency is one of the most basic parameter characteristics of a signal. Accurately detecting and identifying the frequency of a signal is crucial in many applications such as wireless communication, power transmission, and electronic technology. For example, the frequency accuracy requirement of a crystal oscillator is usually ±10 parts per million (ppm). The frequency accuracy requirement of some special crystal oscillators (such as temperature-compensated crystal oscillators) needs to reach 0.5ppm or even lower. Its absolute frequency error is about 100 millihertz, which requires the measurement equipment to measure the frequency source with millihertz-level accuracy in a short time. Since the transmission of the signal will inevitably introduce factors such as Gaussian white noise, phase noise, or jitter, which will cause errors in the signal frequency measurement, how to improve the frequency measurement accuracy of the signal has become one of the technical problems that need to be solved urgently.
[0003] In order to improve the frequency measurement accuracy of the signal, a countdown timer with high frequency resolution can be used, and the input signal can be continuously measured using a periodic gate. After obtaining multiple measurement results, the average value is obtained and used as the frequency measurement result of the signal. However, this method is greatly affected by noise. In order to achieve accuracy, the periodic gate time needs to be extended, which increases the calculation amount of the signal frequency measurement. There are problems such as high complexity of signal frequency measurement, large amount of calculation, large signaling overhead and low efficiency, and poor applicability. Summary of the invention
[0004] The present application provides a signal frequency measurement method and a frequency measurement device, which can reduce the complexity of signal frequency measurement, improve the efficiency and accuracy of signal frequency measurement, and have simple operation and strong applicability.
[0005] In a first aspect, the present application provides a method for measuring the frequency of a signal, comprising: acquiring a target signal; performing group sampling on the target signal to obtain N1 groups of first sampling signals within a target sampling duration, wherein a group of the first sampling signals includes two sampling signals with a sampling time interval of m time units, and a first signal phase difference is obtained based on the N1 groups of first sampling signals; performing group sampling on the target signal to obtain N2 groups of second sampling signals within the target sampling duration, wherein a group of the second sampling signals includes two sampling signals with a sampling time interval of d time units, and a second signal phase difference is obtained based on the N2 groups of second sampling signals, wherein N1 and N2 are both integers greater than 1, m and d are integers greater than 0, and d is greater than m, and the time unit is obtained from the sampling rate of the target signal; based on the first signal phase difference, the second signal phase difference and the sampling frequency information of the target signal, the target frequency of the target signal is obtained.
[0006] In the present application, the target signal is sampled in groups, and the sampling time intervals in the first sampling signal of group N1 and the first sampling signal of group N2 are m time units and d time units respectively, and then the phase difference amplified by m times and the phase difference amplified by d times are calculated, and the phase difference of the sampling signals with different amplification factors is combined to complete the measurement of the signal frequency. There is no need for multiple iterative calculations, which can reduce the complexity of the signal frequency measurement, reduce the signaling overhead, and improve the efficiency and accuracy of the signal frequency measurement. It is suitable for more application scenarios and has strong applicability.
[0007] In a possible implementation of the first aspect, the obtaining of the first signal phase difference based on the N1 groups of first sampling signals includes: obtaining the phase difference of the two sampling signals based on two sampling signals included in any group of first sampling signals in the N1 groups of first sampling signals to obtain a signal phase difference value corresponding to any group of first sampling signals; calculating the average value of the N1 signal phase difference values corresponding to the N1 groups of first sampling signals, and using the average value as the first signal phase difference. In this implementation, by performing group sampling and phase difference calculation on the target signal, the amount of calculation of the signal phase difference can be reduced and the efficiency of the phase difference calculation can be improved.
[0008] In a possible implementation of the first aspect, the second signal phase difference is obtained based on the N2 groups of second sampling signals, including: based on the two sampling signals included in any group of second sampling signals in the N2 groups of second sampling signals, the phase difference of the two sampling signals is obtained to obtain the signal phase difference value corresponding to any group of second sampling signals; the average value of the N2 signal phase difference values corresponding to the N2 groups of second sampling signals is calculated, and the average value is used as the second signal phase difference. In this implementation, the phase difference of the sampling signals can be amplified by performing group sampling and phase difference calculation on the target signals, without multiple iterative calculations. The average value of the phase difference values of a group of sampling signals is used as the phase difference of the group of signals, and the amount of calculation is small, which can improve the efficiency and accuracy of signal frequency measurement.
[0009] In a possible implementation of the first aspect, the sampling frequency information of the target signal includes the m time units, the d time units and the sampling rate of the target signal; the target frequency of the target signal is obtained based on the first signal phase difference, the second signal phase difference and the sampling frequency information of the target signal, including: calculating the number of phase difference winding turns based on the first signal phase difference, the m time units, the second signal phase difference and the d time units; calculating the target frequency of the target signal based on the second signal phase difference, the number of phase difference winding turns, the d time units and the sampling rate of the target signal. In this implementation, the phase difference can be untangled by two sets of phase differences with different amplification factors and two different sampling time intervals, reducing the measurement result error caused by the phase difference winding, thereby improving the accuracy of frequency measurement. At the same time, there is no need to iterate the target frequency multiple times, and the amount of calculation is small.
[0010] In a possible implementation manner of the first aspect, the m is 1, and the d is half of the target sampling duration;
[0011] The number of winding turns of the above phase difference satisfies:
[0012]
[0013] The target frequency of the above target signal satisfies:
[0014]
[0015] in, is the target frequency of the above target signal, is the number of winding turns of the above phase difference, is the first signal phase difference, is the second signal phase difference, In this embodiment, the phase difference of the sampling signal calculated by adjacent sampling signals is combined with the phase difference of the sampling signal calculated by the sampling signal whose sampling time interval is half of the target sampling time length to calculate the unwrapped phase difference, and the target frequency of the target signal is calculated and output, with small calculation amount and high accuracy.
[0016] In a possible implementation of the first aspect, before obtaining the target signal, the method includes: receiving a source signal, measuring the estimated frequency of the source signal; adjusting the working parameters of the mixer based on the estimated frequency of the source signal, and adjusting the estimated frequency of the source signal to zero frequency through the mixer to obtain the target signal; after obtaining the target frequency of the target signal based on the first signal phase difference, the second signal phase difference and the sampling frequency information of the target signal, the method also includes: calculating the superposition frequency of the target frequency and the estimated frequency, and using the superposition frequency as the updated target frequency of the target signal. In this implementation, the estimated frequency of the source signal can be adjusted to zero frequency by the mixer to obtain and output the target signal, and then the target frequency can be calculated based on the target signal obtained by mixing. The target frequency calculated here is an offset value relative to the estimated frequency of the source signal. Therefore, the real frequency of the target signal finally obtained is the superposition frequency of the target frequency and the estimated frequency obtained before mixing. By calculating the superposition frequency of the target frequency and the estimated frequency, the superposition frequency is used as the target frequency of the updated target signal, and the calculation amount is small and the accuracy is high. At the same time, the flexibility of the signal frequency measurement can be improved, with low complexity, small calculation amount and strong applicability.
[0017] In a second aspect, the present application provides a frequency measurement device for a signal, the frequency measurement device comprising a signal processing circuit, a first phase difference detection circuit, a second phase difference detection circuit, and a phase-frequency processing circuit; the output end of the signal processing circuit is respectively connected to the input end of the first phase difference detection circuit and the input end of the second phase difference detection circuit, and the output end of the first phase difference detection circuit and the output end of the second phase difference detection circuit are connected to the input end of the phase-frequency processing circuit; the signal processing circuit is used to obtain a target signal and output the target signal to the first phase difference detection circuit and the second phase difference detection circuit; the first phase difference detection circuit is used to group and sample the target signal to obtain N1 groups of first sampling signals within a target sampling time length, and output a first signal to the phase-frequency processing circuit based on the N1 groups of first sampling signals phase difference, wherein a group of the above-mentioned first sampling signals includes two sampling signals with a sampling time interval of m time units; the above-mentioned second phase difference detection circuit is used to group and sample the above-mentioned target signal to obtain N2 groups of second sampling signals within the above-mentioned target sampling time length, and output the second signal phase difference to the above-mentioned phase-frequency processing circuit based on the above-mentioned N2 groups of second sampling signals, wherein a group of the above-mentioned second sampling signals includes two sampling signals with a sampling time interval of d time units, N1 and N2 are both integers greater than 1, m and d are integers greater than 0, and d is greater than m, and the above-mentioned time unit is obtained by the sampling rate of the above-mentioned target signal; the above-mentioned phase-frequency processing circuit is used to obtain the target frequency of the above-mentioned target signal based on the above-mentioned first signal phase difference, the above-mentioned second signal phase difference and the sampling frequency information of the above-mentioned target signal.
[0018] In the present application, based on the circuit structure of a signal processing circuit, two parallel phase difference detection circuits, and a phase frequency detection circuit, efficient and accurate measurement of signal frequency can be achieved, and the circuit structure is simple and has strong applicability.
[0019] In a possible implementation of the second aspect, the first phase difference detection circuit includes a first delay circuit and a first phase difference processing circuit; the output end of the signal processing circuit is respectively connected to the input end of the first delay circuit and the first input end of the first phase difference processing circuit, and the output end of the first delay circuit is connected to the second input end of the first phase difference processing circuit; the output end of the first phase difference processing circuit is connected to the input end of the phase-frequency processing circuit; the signal processing circuit is used to input the sampling signal of the target signal to the first phase difference detection circuit based on the sampling rate of the target signal; the first delay circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and output the sampling signal to the first phase difference processing circuit after m time units; the first phase difference processing circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and receive the sampling signal of the target signal output by the first delay circuit, so as to obtain the two sampling signals with the sampling time interval of m time units as a group of first sampling signals; the first phase difference processing circuit is also used to output the first signal phase difference to the phase-frequency processing circuit based on the obtained N1 groups of the first sampling signals. In this implementation, based on a simple phase difference detection circuit structure, group sampling and phase difference calculation of the target signal can be implemented, thereby improving the efficiency of the phase difference calculation.
[0020] In a possible implementation of the second aspect, the first phase difference processing circuit includes a first signal acquisition circuit and a first signal noise reduction circuit; the output end of the signal processing circuit is connected to the first input end of the first signal acquisition circuit, and the output end of the first delay circuit is connected to the second input end of the first signal acquisition circuit; the output end of the first signal acquisition circuit is connected to the input end of the first signal noise reduction circuit; the output end of the first signal noise reduction circuit is connected to the input end of the phase-frequency processing circuit; the first signal acquisition circuit is used to receive a sampling signal of the target signal output by the signal processing circuit, and to receive a sampling signal of the target signal output by the first delay circuit, so as to obtain a sampling signal of the target signal. The two sampling signals with a sampling time interval of m time units are obtained as a group of first sampling signals; the first signal acquisition circuit is also used to obtain the phase difference of the two sampling signals based on the two sampling signals included in any one of the N1 groups of the first sampling signals, and output the signal phase difference value corresponding to any one of the first sampling signals to the first signal noise reduction circuit; the first signal noise reduction circuit is used to calculate the average value of the N1 signal phase difference values corresponding to the N1 groups of the first sampling signals obtained from the first signal acquisition circuit, use the average value as the first signal phase difference, and output the first signal phase difference to the phase-frequency processing circuit. In this embodiment, based on the signal acquisition circuit and the signal noise reduction circuit, the phase difference calculation of the target signal can be realized, the calculation amount of the signal phase difference calculation can be reduced, and the efficiency of the phase difference calculation can be improved.
[0021] In a possible implementation of the second aspect, the second phase difference detection circuit includes a second delay circuit and a second phase difference processing circuit; the output end of the signal processing circuit is respectively connected to the input end of the second delay circuit and the first input end of the second phase difference processing circuit, and the output end of the second delay circuit is connected to the second input end of the second phase difference processing circuit; the output end of the second phase difference processing circuit is connected to the input end of the phase-frequency processing circuit; the signal processing circuit is used to output the sampling signal of the target signal to the second phase difference detection circuit based on the sampling rate of the target signal; the second delay circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and output the sampling signal to the second phase difference processing circuit after d time units; the second phase difference processing circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and receive the sampling signal of the target signal output by the second delay circuit, so as to obtain the two sampling signals with the sampling time interval of d time units as a group of second sampling signals; the second phase difference processing circuit is also used to output the second signal phase difference to the phase-frequency processing circuit based on the obtained N2 groups of the second sampling signals. In this embodiment, based on two parallel phase difference detection circuit structures, the target frequency can be calculated through two sets of phase differences with different amplification factors and two different sampling time intervals, without multiple iterative calculations, with small calculation amount, high accuracy and high efficiency.
[0022] In a possible implementation of the second aspect, the second phase difference processing circuit includes a second signal acquisition circuit and a second signal noise reduction circuit; the output end of the signal processing circuit is connected to the first input end of the second signal acquisition circuit, and the output end of the second delay circuit is connected to the second input end of the second signal acquisition circuit; the output end of the second signal acquisition circuit is connected to the input end of the second signal noise reduction circuit; the output end of the second signal noise reduction circuit is connected to the input end of the phase-frequency processing circuit; the second signal acquisition circuit is used to receive a sampling signal of the target signal output by the signal processing circuit, and to receive a sampling signal of the target signal output by the second delay circuit, so as to obtain a sampling signal of the target signal. Two sampling signals with a sampling time interval of the above-mentioned d time units are obtained as a group of second sampling signals; the above-mentioned second signal acquisition circuit is also used to obtain the phase difference of the above-mentioned two sampling signals based on the two sampling signals included in any one of the above-mentioned second sampling signals in the obtained N2 groups of the above-mentioned second sampling signals, and output the signal phase difference value corresponding to the above-mentioned any one of the above-mentioned second sampling signals to the above-mentioned second signal noise reduction circuit; the above-mentioned second signal noise reduction circuit is used to calculate the average value of the N2 signal phase difference values corresponding to the N2 groups of the above-mentioned second sampling signals obtained from the above-mentioned second signal acquisition circuit, use the above-mentioned average value as the second signal phase difference, and output the above-mentioned second signal phase difference to the above-mentioned phase-frequency processing circuit. In this embodiment, based on the signal acquisition circuit and the signal noise reduction circuit, the average value of multiple phase difference values of each group of sampling signals is calculated as the phase difference, the calculation amount is small, and the measurement complexity is low.
[0023] In a possible implementation of the second aspect, the phase-frequency processing circuit includes a phase unwrapping circuit and a phase-frequency conversion circuit; the input end of the phase unwrapping circuit is connected to the output end of the first phase difference detection circuit and the second phase difference detection circuit, and the output end of the phase unwrapping circuit is connected to the input end of the phase-frequency conversion circuit; the phase unwrapping circuit is used to calculate the number of phase difference winding turns based on the first signal phase difference, the m time units, the second signal phase difference and the d time units, and output the unwrapped phase to the phase-frequency conversion circuit based on the phase difference winding turns and the second signal phase difference; the phase-frequency conversion circuit is used to perform phase-frequency conversion based on the unwrapped phase, the d time units and the sampling rate of the target signal to obtain and output the target frequency of the target signal. In this implementation, based on the phase unwrapping circuit and the phase-frequency conversion circuit, the unwrapped phase can be calculated, and then the target frequency can be calculated, with high accuracy, small calculation amount, low measurement complexity and strong applicability.
[0024] In a possible implementation of the second aspect, the signal processing circuit includes a signal receiving circuit, a basic frequency sweeping circuit and a mixer, and the phase-frequency conversion circuit includes an adder; the output end of the signal receiving circuit is connected to the first input end of the mixer, and the output end of the mixer is respectively connected to the input ends of the basic frequency sweeping circuit, the first phase difference detection circuit and the second phase difference detection circuit; the output end of the basic frequency sweeping circuit is connected to the second input end of the mixer; the signal receiving circuit is used to receive a source signal and output the source signal to the basic frequency sweeping circuit; the basic frequency sweeping circuit is used to measure the estimated frequency of the source signal and output the measured estimated frequency to the mixer; the mixer is used to adjust the working parameters based on the estimated frequency of the source signal, and adjust the estimated frequency of the source signal to zero frequency through the adjusted working parameters to obtain the target signal; the adder is used to calculate the superposition frequency of the target frequency and the estimated frequency, and output the superposition frequency as the target frequency output of the target signal. In this embodiment, the estimated frequency of the source signal is adjusted to zero frequency to obtain and output the target signal, and the calculated target frequency is an offset value relative to the estimated frequency, that is, the superimposed frequency of the target frequency and the estimated frequency can be output as the target frequency of the target signal, with high measurement accuracy, low calculation complexity and strong applicability.
[0025] In a possible implementation of the second aspect, the basic frequency sweeping circuit includes a digital envelope detection circuit and a spectrum power statistics circuit; the input end of the digital envelope detection circuit serves as the input end of the basic frequency sweeping circuit, the output end of the digital envelope detection circuit is connected to the input end of the spectrum power statistics circuit, and the output end of the spectrum power statistics circuit serves as the output end of the input end of the basic frequency sweeping circuit; the digital envelope detection circuit is used to extract the envelope signal of the source signal and output the envelope signal of the source signal to the spectrum power statistics circuit; the spectrum power statistics circuit is used to analyze the envelope signal of the source signal to obtain the estimated frequency of the source signal and output the estimated frequency to the mixer. In this implementation, the estimated frequency of the signal is obtained based on the digital envelope detection circuit and the spectrum power statistics circuit in the basic frequency sweeping circuit, and the circuit structure is simple, the calculation complexity is low, and the applicability is strong. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a structural schematic diagram of a signal frequency measurement device provided by the present application;
[0027] Figure 2 is another structural schematic diagram of the signal frequency measurement device provided by the present application;
[0028] Figure 3 is another structural schematic diagram of the signal frequency measurement device provided by the present application;
[0029] Figure 4 is a schematic diagram of a group of sampling signals provided by the present application;
[0030] Figure 5 is another structural schematic diagram of the signal frequency measurement device provided by the present application;
[0031] Figure 6 is another schematic diagram of grouping sampling signals provided by the present application;
[0032] Figure 7 is another structural schematic diagram of the signal frequency measurement device provided by the present application;
[0033] Figure 8 is another structural schematic diagram of the signal frequency measurement device provided by the present application;
[0034] Fig. 9 It is a flow chart of the frequency measurement method of a signal provided in this application. DETAILED DESCRIPTION
[0035] The signal frequency measurement method and frequency measurement device provided in this application can be applied to realize accurate measurement of signal frequency. It uses a simple circuit structure to realize low-complexity and low-computation measurement of signal frequency under the circuit working state, thereby improving the accuracy of signal frequency measurement and having strong applicability. Here, the above-mentioned frequency measurement device includes but is not limited to a spectrum analyzer, a vector network analyzer, a frequency meter, etc., which can be determined according to the actual application scenario and is not limited here. Figures 1 to 9 The frequency measurement method and frequency measurement device of the signal provided in the present application are illustrated.
[0036] See also Figure 1 , Figure 1 Schematic diagram of the structure of the signal frequency measurement device provided by this application. Figure 1 As shown, the frequency measurement device of the signal provided by the present application includes a signal processing circuit 10, a first phase difference detection circuit 20, a second phase difference detection circuit 30 and a phase-frequency processing circuit 40, wherein the output end of the signal processing circuit 10 is respectively connected to the input end of the first phase difference detection circuit 20 and the second phase difference detection circuit 30, and the output end of the first phase difference detection circuit 20 and the second phase difference detection circuit 30 is connected to the input end of the phase-frequency processing circuit 40. Here, the first and the second are only used to distinguish different objects, and do not distinguish objects such as circuit structure and circuit function. The specific can be determined according to the actual application scenario, and is not limited here, and will not be repeated below.
[0037] In some possible implementations, such as Figure 1As shown, the signal processing circuit 10 can receive a source signal and perform signal processing on the source signal to obtain a target signal. Here, the source signal can be a wireless communication signal, a radio frequency signal, a sensor signal, etc., which can be determined according to the actual application scenario and is not limited here. The signal processing circuit 10 can also output the above-mentioned target signal to the first phase difference detection circuit 20 and the second phase difference detection circuit 30. The first phase difference detection circuit 20 and the second phase difference detection circuit 30 can respectively obtain the first signal phase difference and the second signal phase difference based on the target signal, and output the first signal phase difference and the second signal phase difference to the phase-frequency processing circuit 40. The phase-frequency processing circuit 40 can calculate the target frequency based on the first signal phase difference and the second signal phase difference and the sampling frequency information of the target signal. Here, the sampling frequency information of the target signal may include the sampling rate or sampling time interval of the target signal, etc., which can be determined according to the actual application scenario requirements and is not limited here. Optionally, such as Figure 1 As shown, the frequency measurement device of the signal may also include a controllable programmable control module 50, which may be connected to the first phase difference detection circuit 20, the second phase difference detection circuit 30, and the phase-frequency processing circuit 40, and may be used to control or trigger the first phase difference detection circuit 20, the second phase difference detection circuit 30, and the phase-frequency processing circuit 40 to work, and may also store and transmit relevant working parameters of the signal frequency measurement (such as the sampling rate of the above-mentioned target signal, etc.). Here, the controllable programmable control module 50 may be a field-programmable gate array (FPGA) or a circuit controller of other product forms, which may be determined according to the actual application scenario and is not limited here.
[0038] In some feasible implementations, the signal processing circuit 10 may include an analog-to-digital converter (ADC), a rate converter, a low-pass filter and other structures (not shown in the figure), which are used to perform analog-to-digital conversion, rate conversion or low-pass filtering on the source signal to obtain a target signal. Here, the specific circuit structure of the signal processing circuit 10 is determined according to the actual application scenario requirements and is not limited here. In this implementation, the target signal output by the signal processing circuit 10 to the first phase difference detection circuit 20 and the second phase difference detection circuit 30 can be a signal that has not been frequency measured or frequency modulated, and the frequency calculated by the subsequent phase-frequency processing circuit 40 based on the first signal phase difference and the second signal phase difference and the sampling frequency information of the target signal can be directly output as the target frequency of the target signal.
[0039] For some possible implementations, please refer to Figure 2 , Figure 2 is another structural schematic diagram of the signal frequency measurement device provided by the present application, such as Figure 2As shown, the signal processing circuit 10 may also include a signal receiving circuit 101, a basic frequency sweeping circuit 102 and a mixer 103. The output end of the signal receiving circuit 101 is connected to the first input end of the mixer 103, the output end of the mixer 103 is respectively connected to the input ends of the basic frequency sweeping circuit 102, the first phase difference detection circuit 20 and the second phase difference detection circuit 30, and the output end of the basic frequency sweeping circuit 102 is connected to the second input end of the mixer 103. Among them, the signal receiving circuit 101 can be used to receive the source signal, and output the source signal to the basic frequency sweeping circuit 102 through the mixer 103 (it can be understood that the input of the second input end of the mixer 103 is empty at this time). The basic frequency sweeping circuit 102 can be used to measure the estimated frequency of the source signal, and output the estimated frequency of the source signal to the mixer 103. The mixer 103 can adjust the working parameters based on the estimated frequency of the source signal, and adjust the estimated frequency of the source signal to zero frequency through the adjusted working parameters to obtain the target signal, and output the target signal to the first phase difference detection circuit 20 and the second phase difference detection circuit 30. It can be understood that the estimated frequency of the target signal here may have an error with the actual frequency, which can be determined according to the actual application scenario and is not limited here.
[0040] The specific internal structure of the signal processing circuit 10 can be adjusted according to the actual application scenario. For example, the estimated frequency of the target signal can also be known and provided by the signal provider of the source signal, and does not need to be estimated by the signal processing circuit 10, that is, the signal processing circuit 10 may not include the basic frequency sweeping circuit 102, but the signal processing circuit 10 can still be used to perform analog-to-digital conversion, rate conversion or low-pass filtering on the source signal to obtain the target signal.
[0041] In some possible implementations, such as Figure 2 As shown, the basic frequency sweeping circuit 102 may include a digital envelope detection circuit 1001 and a spectrum power statistics circuit 1002, the input end of the digital envelope detection circuit 1001 serves as the input end of the basic frequency sweeping circuit 102, the output end of the digital envelope detection circuit 1001 is connected to the input end of the spectrum power statistics circuit 1002, and the output end of the spectrum power statistics circuit 1002 serves as the output end of the basic frequency sweeping circuit 102. The digital envelope detection circuit 1001 may be used to extract the envelope signal of the source signal, and output the envelope signal of the source signal to the spectrum power statistics circuit 1002. The spectrum power statistics circuit 1002 may be used to analyze the envelope signal of the source signal to obtain the estimated frequency of the source signal, and output the estimated frequency of the source signal to the mixer 103.
[0042] In some feasible implementations, the mixer 103 can convert a signal from one frequency to another frequency. The mixer 103 can include nonlinear elements, such as diodes, transistors, etc., and use the multiplication characteristics of nonlinear elements to mix the signal to be adjusted (here, the source signal) and the local oscillator signal, wherein the local oscillator signal is usually a stable signal with a known frequency, which can provide a reference frequency for the frequency adjustment process. Here, the mixer 103 can adjust the estimated frequency of the above-mentioned source signal to zero frequency through a multiplier, etc. to obtain a target signal, and then output the target signal to the first phase difference detection circuit 20 and the second phase difference detection circuit 30. In this implementation, the subsequent phase-frequency processing circuit 40 calculates the target frequency based on the first signal phase difference and the second signal phase difference and the sampling frequency information of the target signal. The target frequency is an offset value relative to the estimated frequency, and the superposition frequency of the target frequency and the estimated frequency is calculated, and the superposition frequency is used as the target frequency of the updated target signal. The detailed description will be given in the subsequent description of the phase-frequency processing circuit 40, and will not be repeated here.
[0043] In some feasible implementations, the first phase difference detection circuit 20 may perform group sampling on the target signal to obtain N1 groups of first sampling signals within the target sampling duration, and output the first signal phase difference to the phase-frequency processing circuit based on the N1 groups of first sampling signals, wherein one group of the first sampling signals includes two sampling signals with a sampling time interval of m time units. The second phase difference detection circuit 30 may perform group sampling on the target signal to obtain N2 groups of second sampling signals within the target sampling duration, and output the second signal phase difference to the phase-frequency processing circuit based on the N2 groups of second sampling signals, wherein one group of the second sampling signals includes two sampling signals with a sampling time interval of d time units. Here, N1 and N2 are integers greater than 1, m and d are integers greater than 0, and d is greater than m. The time unit may be obtained from the sampling rate of the target signal. For example, the time unit may be x milliseconds, and x may be one or more times the inverse of the sampling rate of the target signal, which is not limited here.
[0044] For some possible implementations, please refer to Figure 3 , Figure 3 is another structural schematic diagram of the signal frequency measurement device provided by the present application, such as Figure 3 As shown, the first phase difference detection circuit 20 may include a first delay circuit 201 and a first phase difference processing circuit 202, the output end of the signal processing circuit 10 is respectively connected to the input end of the first delay circuit 201 and the first input end of the first phase difference processing circuit 202, the output end of the first delay circuit 201 is connected to the second input end of the first phase difference processing circuit 202, and the output end of the first phase difference processing circuit 202 is connected to the input end of the phase-frequency processing circuit 40.
[0045] Among them, the signal processing circuit 10 can be used to input the sampling signal of the target signal to the first phase difference detection circuit 20 based on the sampling rate of the target signal. The first delay circuit 201 can be used to receive the sampling signal of the target signal output by the signal processing circuit 10, and output the sampling signal to the first phase difference processing circuit 202 after m time units. Here, the first delay circuit 201 can control the channel data cache such as a buffer memory, a shift memory, etc., to achieve integer sample point level time delay. The integer sample point level here is the value of m in the m time units of the above-mentioned sampling time interval. The value of m can be controlled by the controllable programmable control module 50, or obtained by the front circuit. It can be determined according to the actual application scenario and is not limited here.
[0046] The first phase difference processing circuit 202 can be used to receive the sampling signal of the target signal output by the signal processing circuit 10, and receive the sampling signal of the target signal output by the first delay circuit 201, so as to obtain two sampling signals with a sampling time interval of m time units as a group of first sampling signals, wherein a group of the above-mentioned first sampling signals includes two sampling signals with a sampling time interval of m time units. The first phase difference processing circuit 202 can also be used to output the first signal phase difference to the phase-frequency processing circuit 40 based on the obtained N1 groups of first sampling signals. Here, the first phase difference processing circuit 202 can obtain the value of m according to its own clock, and can also output the value of m through the controllable programmable control module 50. For example, see Figure 4 , Figure 4 Schematic diagram of grouping sampling signals provided by this application. Figure 4 As shown, the first phase difference detection circuit 20 obtains a plurality of sampling signals output by the signal processing circuit 10, such as Figure 4 The N+1 sampling signals shown in the figure (i.e., the target sampling duration is N+1, where N+1 represents N+1 time units). For the convenience of description, the above N+1 sampling signals can be represented by sampling signals X1 to X N+1 Take m as 1 as an example, any of the above-mentioned first sampling signals can be composed of two adjacent sampling signals, such as X1 and X2 form a first sampling signal, X2 and X3 form a first sampling signal, ..., X N and X N+1 A group of first sampling signals is formed, which constitutes N1 (N1=N) groups of first sampling signals. The first phase difference processing circuit 202 can calculate the phase difference of each group of first sampling signals in the N1 groups of first sampling signals, for example, the phase difference of X1 and X2 is calculated to obtain the phase difference of the first group of first sampling signals, and the phase difference of X2 and X3 is calculated to obtain the phase difference of the second group of first sampling signals. By analogy, the first phase difference processing circuit 202 calculates the phase difference of N1 groups of first sampling signals, and can calculate the average value of the phase difference of the above N1 groups of first sampling signals as the first signal phase difference output.
[0047] Further, in some feasible implementations, see Figure 5 , Figure 5 is another structural schematic diagram of the signal frequency measurement device provided by the present application. Figure 5 As shown, the first phase difference processing circuit 202 may include a first signal acquisition circuit 2001 and a first signal noise reduction circuit 2002. The output end of the signal processing circuit 10 is connected to the first input end of the first signal acquisition circuit 2001, the output end of the first delay circuit 201 is connected to the second input end of the first signal acquisition circuit 2001, the output end of the first signal acquisition circuit 2001 is connected to the input end of the first signal noise reduction circuit 2002, and the output end of the first signal noise reduction circuit 2002 is connected to the input end of the phase-frequency processing circuit 40.
[0048] Among them, the first signal acquisition circuit 2001 can be used to receive the sampling signal of the target signal output by the signal processing circuit 10, and receive the sampling signal of the target signal output by the first delay circuit 201, so as to obtain two sampling signals with a sampling time interval of m time units as a group of first sampling signals. Here, the first signal acquisition circuit 2001 can synchronize the sampling signal obtained by the signal processing circuit 10 and the sampling signal delayed by m time units obtained by the first delay circuit 201 by means such as clock synchronization, trigger, time stamp, etc., to form a group of the above-mentioned first sampling signals, which can be determined according to the actual application scenario and is not limited here. The first signal acquisition circuit 2001 can also be used to obtain the phase difference of the two sampling signals based on the two sampling signals included in any group of the first sampling signals in the obtained N1 groups of first sampling signals, and output the signal phase difference value corresponding to any group of the first sampling signals to the first signal noise reduction circuit 2002. Here, the first signal acquisition circuit 2001 can perform a complex division operation on the two sampling signals in a group of the above-mentioned first sampling signals to extract the phases of the two signals, and obtain the phase difference between the signals by subtracting the two phases.
[0049] The first signal noise reduction circuit 2002 can be used to calculate the average value of N1 signal phase difference values corresponding to the N1 group of first sampling signals obtained from the first signal acquisition circuit 2001, take the average value as the first signal phase difference, and output the first signal phase difference to the phase-frequency processing circuit 40. Here, the first signal noise reduction circuit 2002 may include an addition circuit, a division circuit, etc., and obtain the phase difference after noise reduction by accumulating multiple times and then calculating the average value. For example, if Figure 4As shown, taking m as 1 as an example, a group of first sampling signals may be composed of two adjacent sampling signals, forming N1 (N1=N at this time) groups of first sampling signals, and the first signal acquisition circuit 2001 calculates the phase difference of the N1 groups of first sampling signals, and outputs the phase difference of the N1 groups of first sampling signals to the first signal noise reduction circuit 2002. The first signal noise reduction circuit 2002 may calculate the average value of the phase difference of the N1 groups of first sampling signals as the first signal phase difference output.
[0050] For some possible implementations, please refer to Figure 3 ,like Figure 3 As shown, the second phase difference detection circuit 30 may include a second delay circuit 301 and a second phase difference processing circuit 302, the output end of the signal processing circuit 10 is respectively connected to the input end of the second delay circuit 301 and the first input end of the second phase difference processing circuit 302, the output end of the second delay circuit 301 is connected to the second input end of the second phase difference processing circuit 302, and the output end of the second phase difference processing circuit 302 is connected to the input end of the phase-frequency processing circuit 40.
[0051] Among them, the signal processing circuit 10 can be used to output the sampling signal of the target signal to the second phase difference detection circuit 30 based on the sampling rate of the target signal. The second delay circuit 301 can be used to receive the sampling signal of the target signal output by the signal processing circuit 10, and output the sampling signal to the second phase difference processing circuit 302 after d time units, wherein d is greater than m. Here, the second delay circuit 301 can achieve integer sample level time delay by controlling the channel data cache such as a buffer memory, a shift memory, etc. The integer sample level here is the value of d in the above-mentioned sampling time interval d time units. The value of d can be controlled by the controllable programmable control module 50, or obtained by the front circuit, which can be determined according to the actual application scenario and is not limited here.
[0052] The second phase difference processing circuit 302 can be used to receive the sampling signal of the target signal output by the signal processing circuit 10, and receive the sampling signal of the target signal input by the second delay circuit 301, so as to obtain two sampling signals with a sampling time interval of d time units as a group of second sampling signals, wherein a group of the above second sampling signals includes two sampling signals with a sampling time interval of d time units. The second phase difference processing circuit 302 can also be used to output the second signal phase difference to the phase-frequency processing circuit 40 based on the obtained N2 groups of second sampling signals. Here, the second phase difference processing circuit 302 can obtain the value of d according to its own clock, and can also output the value of d through the controllable programmable control module 50. For example, see Figure 6 , Figure 6 is another schematic diagram of grouping the sampling signals provided by the present application. Figure 6As shown, the second phase difference detection circuit 30 obtains a plurality of sampling signals input by the signal processing circuit 10, such as Figure 6 The N+1 sampling signals shown in the figure (i.e., the target sampling duration is N+1, where N+1 represents N+1 time units). For the convenience of description, the above N+1 sampling signals can be represented by sampling signals X1 to X N+1 Take d as half of the target sampling time as an example, any group of second sampling signals mentioned above can be composed of two sampling signals with a time interval of d, such as X1 and X2. d+1 A second sampling signal, X2 and X d+2 A set of second sampling signals, ..., X d and X N+1 The second phase difference processing circuit 302 can calculate the phase difference of each group of second sampling signals in the N2 groups of second sampling signals, for example, calculate X1 and X d+1 The phase difference of the first group of second sampling signals is obtained, and X2 and X are calculated. d+2 The second phase difference processing circuit 302 calculates the phase difference of the N2 groups of second sampling signals and calculates the average value of the phase difference of the N2 groups of second sampling signals as the second signal phase difference output.
[0053] Further, in some feasible implementations, please refer to Figure 5 ,like Figure 5 As shown, the second phase difference processing circuit 302 may include a second signal acquisition circuit 3001 and a second signal noise reduction circuit 3002. The output end of the signal processing circuit 10 is connected to the first input end of the second signal acquisition circuit 3001, the output end of the second delay circuit 301 is connected to the second input end of the second signal acquisition circuit 3001, the output end of the second signal acquisition circuit 3001 is connected to the input end of the second signal noise reduction circuit 3002, and the output end of the second signal noise reduction circuit 3002 is connected to the input end of the phase-frequency processing circuit 40.
[0054] The second signal acquisition circuit 3001 may be used to receive a sampling signal of a target signal output by the signal processing circuit 10, and receive a sampling signal of a target signal input by the second delay circuit 301, so as to obtain two sampling signals with a sampling time interval of d time units as a group of second sampling signals. Here, the second signal acquisition circuit 3001 may synchronize the sampling signal obtained by the signal processing circuit 10 and the sampling signal delayed by d time units obtained by the second delay circuit 301 by means of clock synchronization, triggers, timestamps, etc., so as to form a group of the above-mentioned second sampling signals, which may be determined according to the actual application scenario and is not limited here.
[0055] The second signal acquisition circuit 3001 can also be used to obtain the phase difference of the two sampling signals based on the two sampling signals included in any one of the N2 groups of second sampling signals obtained, and output the signal phase difference value corresponding to the any one group of second sampling signals to the second signal noise reduction circuit 3002. Here, the second signal acquisition circuit 3001 can perform a complex division operation on the two sampling signals in a group of the above-mentioned second sampling signals to extract the phases of the two signals, and obtain the phase difference between the signals by subtracting the two phases. The second signal noise reduction circuit 3002 can be used to calculate the average value of the N2 signal phase difference values corresponding to the N2 groups of second sampling signals obtained from the second signal acquisition circuit 3001, use the average value as the second signal phase difference, and output the second signal phase difference to the phase-frequency processing circuit 40. Here, the second signal noise reduction circuit 3002 may include an addition circuit, a division circuit, etc., and obtain the phase difference after noise reduction by accumulating multiple times and then calculating the average value. For example, if Figure 6 As shown, taking d as half of the target sampling duration as an example, a group of second sampling signals may be composed of two sampling signals with a sampling time interval of d time units, and the second signal acquisition circuit 3001 calculates the phase difference of the N2 groups of second sampling signals, and outputs the phase difference of the N2 groups of second sampling signals to the second signal noise reduction circuit 3002. The second signal noise reduction circuit 3002 may calculate the average value of the phase difference of the N2 groups of second sampling signals as the second signal phase difference output.
[0056] In some feasible implementations, the phase-frequency processing circuit 40 may obtain the target frequency of the target signal based on the first signal phase difference output by the first phase difference detection circuit 20, the second signal phase difference output by the second phase difference detection circuit 30, and the sampling frequency information of the target signal. Figure 7 , Figure 7 is another structural schematic diagram of the signal frequency measurement device provided by the present application. Figure 7As shown, the phase-frequency processing circuit 40 may include a phase unwrapping circuit 401 and a phase-frequency conversion circuit 402, the input end of the phase unwrapping circuit 401 is connected to the output end of the first phase difference detection circuit 20 and the second phase difference detection circuit 30 as the input end of the phase-frequency processing circuit 40, and the output end of the phase unwrapping circuit 401 is connected to the input end of the phase-frequency conversion circuit 402. Among them, the phase unwrapping circuit 401 can be used to calculate the number of phase difference winding turns based on the first signal phase difference input by the first phase difference detection circuit 20, the sampling time interval m time units of the first sampling signal, the second signal phase difference input by the second phase difference detection circuit 30, and the sampling time interval d time units of the second sampling signal, and output the unwrapped phase to the phase-frequency conversion circuit 402 based on the above phase difference winding turns and the above second signal phase difference. Here, the sampling time interval m time units of the first sampling signal and the sampling time interval d time units of the second sampling signal can be output by the first phase difference detection circuit 20 and the second phase difference detection circuit 30, respectively, or can be output by the controllable programmable control module 50, which can be determined according to the actual application scenario and is not limited here. The phase-to-frequency conversion circuit 402 can be used to perform phase-to-frequency conversion based on the above-mentioned unwrapped phase, the sampling time interval d time units of the second sampling signal and the sampling rate of the above-mentioned target signal to obtain the target frequency of the above-mentioned target signal. Here, the sampling time interval d time units of the second sampling signal and the sampling rate of the target signal can be input by the second phase difference detection circuit 30, or by the controllable programmable control module 50, which can be determined according to the actual application scenario and is not limited here. For example, when m is 1 and d is half the duration of the target sampling signal, the above-mentioned phase difference winding number can satisfy:
[0057]
[0058] The target frequency of the above target signal can meet:
[0059]
[0060] in, is the target frequency of the above target signal, is the number of winding turns of the above phase difference, is the first signal phase difference, is the second signal phase difference, is the sampling rate of the above target signal.
[0061] It can be understood that the above formula is applicable to the calculation of the number of phase difference winding turns and the target frequency when the value of m is 1 and the value of d is half of the target sampling time. The specific values of m and d can be determined according to the actual application scenario. Accordingly, the above two formulas can be modified according to the changes in the values of m and d, and there is no limitation here.
[0062] In some possible implementations, such as Figure 7 As shown, the signal processing circuit 10 may not include a basic frequency sweep circuit and a mixer, and the signal processing circuit 10 may include structures such as an analog-to-digital converter, a rate converter, and a low-pass filter (not shown in the figure), and perform analog-to-digital conversion, rate conversion, or low-pass filtering on the received source signal to obtain a target signal. In this embodiment, the target signal output by the signal processing circuit 10 to the first phase difference detection circuit 20 and the second phase difference detection circuit 30 may be a signal that has not been frequency measured or frequency modulated, and the phase-frequency conversion circuit 402 performs phase-frequency conversion calculation based on the unwrapped phase, the sampling time interval d time units of the second sampling signal, and the sampling rate of the above-mentioned target signal to obtain a target frequency, which can be directly output as the target frequency of the target signal.
[0063] Optional, see Figure 8 , Figure 8 is another structural schematic diagram of the signal frequency measurement device provided by the present application. Figure 8 As shown, the signal processing circuit 10 may include a basic frequency sweeping circuit 102 and a mixer 103. The basic frequency sweeping circuit 102 may obtain the estimated frequency of the source signal. The mixer 103 may adjust the estimated frequency of the source signal to zero frequency through a multiplier or the like to obtain a target signal, and then output the target signal to the first phase difference detection circuit 20 and the second phase difference detection circuit 30. In this embodiment, the target signal output by the signal processing circuit 10 to the first phase difference detection circuit 20 and the second phase difference detection circuit 30 is the target signal adjusted to zero frequency. The target frequency calculated by the phase-to-frequency conversion circuit 402 based on the unwrapping phase, the sampling time interval d time units of the second sampling signal and the sampling rate of the above target signal is an offset value relative to the estimated frequency. The superposition frequency of the above target frequency and the estimated frequency can be calculated. Figure 8 As shown, the phase-to-frequency conversion circuit 402 may include an adder 4001, and the adder 4001 may be used to calculate the superimposed frequency of the target frequency and the estimated frequency, and use the superimposed frequency as the target frequency of the updated target signal.
[0064] In the present application, a low-complexity circuit structure can be used to achieve high-precision, low-computation signal frequency measurement with low overhead and strong applicability.
[0065] See also Fig. 9 , Fig. 9 FIG. 1 is a flow chart of the frequency measurement method of a signal provided by the present application. Fig. 9 As shown, the frequency measurement method of the signal provided by the present application (for the convenience of description, hereinafter referred to as the method provided by the present application) is applicable to the above Figures 1 to 8The frequency measurement device provided can be determined according to the actual application scenario and is not limited here. For the convenience of description, the frequency measurement device will be used as an example to illustrate the execution subject of the method provided by this application. Fig. 9 As shown, the method provided by the present application may include the following steps:
[0066] S901, acquiring a target signal.
[0067] In some feasible implementations, the frequency measurement device can obtain a source signal and obtain a target signal based on the source signal. Here, the target signal type includes but is not limited to wireless communication signals, sensor signals, crystal oscillator signals, etc., without limiting the frequency band and bandwidth of the signal. Accordingly, the frequency measurement device can obtain the source signal by receiving it through an antenna, reading a memory, etc., which can be determined according to the actual application scenario and is not limited here. For the convenience of description, wireless communication signals can be used as an example for illustration.
[0068] In some feasible implementations, the frequency measurement device can perform analog-to-digital conversion, rate conversion, and low-pass filtering on the source signal to obtain the target signal, which can be determined according to the signal processing requirements of the actual application scenario and is not limited here. Optionally, the frequency measurement device can receive the wireless communication source signal through an antenna, and then measure the estimated frequency of the above source signal. Based on the above estimated frequency, the source signal can be modulated to zero frequency to obtain the target signal. Among them, the estimated frequency of the target signal here can be an estimated frequency, and there can be errors. It can be determined according to the actual application scenario and is not limited here.
[0069] For example, in some feasible implementations, the source signal may be processed to obtain the target signal by: Figures 1 to 8 The signal processing circuit included in any circuit structure shown in the figure is implemented. Optionally, the source signal can be received by the signal processing circuit and the estimated frequency of the source signal can be obtained based on the source signal. The mixer adjusts the working parameters based on the estimated frequency and adjusts the source signal to zero frequency through the adjusted working parameters to obtain the target signal, and outputs the target signal to the first phase difference detection circuit and the second phase difference detection circuit. The implementation method of obtaining the target signal can refer to the above Figures 1 to 8 The implementation method performed by the frequency measurement device shown is not repeated here.
[0070] S902, group sampling the above-mentioned target signals to obtain N1 groups of first sampling signals within the target sampling time length, wherein a group of the above-mentioned first sampling signals includes two sampling signals with a sampling time interval of m time units, and a first signal phase difference is obtained based on the above-mentioned N1 groups of first sampling signals.
[0071] In some feasible implementations, the frequency measurement device may receive a sampling signal of a target signal to obtain N1 groups of first sampling signals within a target sampling duration, wherein a group of first sampling signals may include two sampling signals with a sampling time interval of m time units, and then based on the two sampling signals included in any group of first sampling signals in the above N1 groups of first sampling signals, obtain the phase difference of the above two sampling signals to obtain the signal phase difference corresponding to any group of first sampling signals, and calculate the average value of the N1 signal phase difference values corresponding to the above N1 groups of first sampling signals, and use the above average value as the first signal phase difference. Here, N1 is an integer greater than 1, and m is an integer greater than 0. The value of m may affect the size of the above first signal phase difference, which is determined according to the actual application scenario and is not limited here.
[0072] For example, in some feasible implementations, the frequency measurement device can be Figures 1 to 8 The first phase difference detection circuit in any of the circuit structures shown implements the sampling and phase difference calculation of the target signal. Optionally, the target signal can be sampled by the first phase difference detection circuit and based on the two sampling signals included in any of the N1 groups of first sampling signals obtained by sampling, the phase difference between the two sampling signals can be obtained to obtain the signal phase difference value corresponding to any of the N1 groups of first sampling signals. Furthermore, the first phase difference detection circuit can be used to calculate the average value of the N1 signal phase difference values corresponding to the N1 groups of first sampling signals, and the average value can be used as the first signal phase difference. It can be understood that the value of m can be used to specify the time interval between the two sampling signals included in any group of first sampling signals, and the value of m can affect the size of the first signal phase difference. For example, if Figure 4 As shown, the frequency measurement device can sample the target signal to obtain N+1 sampling signals. Taking m as 1 as an example, a group of first sampling signals can be composed of two adjacent sampling signals. The frequency measurement device calculates the phase difference of N1 groups of first sampling signals, and can calculate the average value of the phase difference of the above N1 groups of first sampling signals as the first signal phase difference. The implementation method of obtaining the first signal phase difference can refer to the above Figures 1 to 8 The implementation method performed by the frequency measurement device shown is not repeated here.
[0073] S903, group sampling the target signal to obtain N2 groups of second sampling signals within the target sampling duration, wherein one group of the second sampling signals includes two sampling signals with a sampling time interval of d time units, and a second signal phase difference is obtained based on the N2 groups of second sampling signals.
[0074] In some feasible implementations, the frequency measurement device may receive a sampling signal of a target signal to obtain N2 groups of second sampling signals within a target sampling duration, wherein a group of second sampling signals may include two sampling signals with a sampling time interval of d time units, and then based on the two sampling signals included in any group of second sampling signals in the above N2 groups of second sampling signals, obtain the phase difference of the above two sampling signals to obtain the signal phase difference corresponding to any group of second sampling signals, and calculate the average value of the N2 signal phase difference values corresponding to the above N2 groups of second sampling signals, and use the above average value as the second signal phase difference. Here, N2 is an integer greater than 1, and d is an integer greater than m. The value of d may affect the size of the above second signal phase difference, which is determined according to the actual application scenario and is not limited here.
[0075] For example, in some feasible implementations, the frequency measurement device can be Figures 1 to 8 The second phase difference detection circuit in any of the circuit structures shown implements the sampling and phase difference calculation of the target signal. Optionally, the target signal can be sampled by the second phase difference detection circuit and based on the two sampling signals included in any of the N2 groups of second sampling signals obtained by sampling, the phase difference between the two sampling signals can be obtained to obtain the signal phase difference value corresponding to any of the above-mentioned groups of second sampling signals. Furthermore, the second phase difference detection circuit can be used to calculate the average value of the N2 signal phase difference values corresponding to the above-mentioned N2 groups of second sampling signals, and the above-mentioned average value is used as the second signal phase difference. It can be understood that the value of the above-mentioned d can be used to specify the time interval between the two sampling signals included in any group of second sampling signals, and the value of d can affect the size of the above-mentioned second signal phase difference. For example, if Figure 6 As shown, the frequency measurement device can sample the target signal to obtain N+1 sampling signals. Taking d as half of the target sampling time length as an example, a group of second sampling signals can be composed of two sampling signals with a sampling time interval of d time units. The frequency measurement device calculates the phase difference of the N2 groups of second sampling signals, and can calculate the average value of the phase difference of the N2 groups of second sampling signals as the second signal phase difference. The implementation method of obtaining the second signal phase difference can refer to the above Figures 1 to 8 The implementation method performed by the frequency measurement device shown is not repeated here.
[0076] S904, obtaining a target frequency of the target signal based on the first signal phase difference, the second signal phase difference and the sampling frequency information of the target signal.
[0077] In some feasible implementations, the sampling frequency information of the target signal may include a sampling time interval of m time units, a sampling time interval of d time units, and a sampling rate of the target signal. Here, the sampling rate of the target signal may be configured in the frequency measurement device according to the accuracy requirements of the signal frequency measurement. For example, to achieve millihertz-level accuracy, the target sampling time is 0.5s, and the number of sampling points is at least 80, thereby determining the sampling rate. The frequency measurement device may calculate the number of phase difference winding turns based on the first signal phase difference, the m time units, the second signal phase difference, the d time units, and the sampling rate of the target signal, and calculate the target frequency of the target signal based on the second signal phase difference, the number of phase difference winding turns, the d time units, and the sampling rate of the target signal. The frequency measurement device may be configured as follows: Figures 1 to 8 The phase-frequency processing circuit in any circuit structure shown is used to calculate the number of phase difference winding turns and the target frequency, which will not be described in detail here.
[0078] In some feasible implementations, the target frequency calculated by the frequency measurement device is an offset value relative to the estimated frequency of the source signal. The frequency measurement device can obtain a superimposed frequency based on the target frequency and the estimated frequency, and use the superimposed frequency as the target frequency of the updated target signal. When the estimated frequency of the source signal is not measured in advance, the frequency measurement device can also calculate and directly output the target frequency. In other words, the target frequency calculated by the frequency measurement device may not be an offset value of the estimated frequency of the source signal. The specific details can be confirmed based on the actual product form and are not limited here.
[0079] For example, frequency measurement equipment can be Figure 7 The phase-frequency conversion circuit in the circuit structure shown realizes the calculation and output of the target frequency. Here, the signal processing circuit in the frequency measurement device may not be connected to the basic frequency sweep circuit or mixer. The frequency measurement device may perform analog-to-digital conversion, rate conversion or low-pass filtering on the received source signal through the analog-to-digital converter, rate converter, low-pass filter and other structures in the signal processing circuit to obtain the target signal. In other words, the target signal may be a signal that has not been frequency measured or adjusted to zero frequency, and the target frequency calculated by the phase-frequency conversion circuit may be directly output as the target frequency of the target signal. Optionally, the frequency measurement device may also be configured as follows: Figure 8The signal processing circuit in the circuit structure shown is used to adjust the target signal to zero frequency based on the estimated frequency of the source signal. Here, the frequency measurement device can adjust the estimated frequency of the source signal to zero frequency through the mixer in the signal processing circuit to output the target signal, and obtain the target frequency through the phase-frequency conversion circuit. It can be understood that the target frequency can be used as an offset value relative to the estimated frequency, so the superposition frequency of the target frequency and the estimated frequency is calculated, and the superposition frequency is used as the target frequency of the updated target signal. It can be understood that the target frequency of the target signal finally output by the frequency measurement device is the target frequency of the updated target signal. In other words, in this embodiment, the frequency measurement device modulates the source signal to zero frequency through the mixer in the signal processing circuit to obtain the target signal, and outputs the above target signal to the first phase difference detection circuit and the second phase difference detection circuit, so that the target frequency calculated by the phase-frequency processing circuit is an offset relative to the estimated frequency, and the superposition frequency of the target frequency and the estimated frequency can be calculated by the adder in the phase-frequency conversion circuit as the target frequency output of the updated target signal. Among them, the above-mentioned implementation method of obtaining the target frequency of the target signal can refer to the above Figures 1 to 8 The operations performed by the frequency measurement device shown are not described in detail here.
[0080] In the present application, two groups of different phase differences are obtained through different grouping methods, and the phase differences are used for unwrapping, and then the target frequency is calculated to improve the accuracy of frequency measurement, with small calculation amount and high applicability.
[0081] It is understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It is understood that the terms "first", "second", etc. used in the present application can be used in this article to describe various information or data, but these elements are not limited by these terms. These terms are only used to distinguish the first information from another information. In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0082] Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
[0083] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0084] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc., various media that can store program codes.
Claims
1. A method for measuring the frequency of a signal, It is characterized in that include: Acquire target signal; The target signal is sampled in groups to obtain N 1 A group of first sampling signals, wherein the group of first sampling signals includes two sampling signals with a sampling time interval of m time units, based on the N 1 A first sampling signal is formed to obtain a first signal phase difference; The target signal is sampled in groups to obtain N 2 A group of second sampling signals, wherein a group of the second sampling signals includes two sampling signals with a sampling time interval of d time units, based on the N 2 The second sampling signal is obtained by a second signal phase difference, wherein N 1 and N 2 are all integers greater than 1, m and d are integers greater than 0, and d is greater than m, and the time unit is obtained by the sampling rate of the target signal; Calculate the number of phase difference winding turns based on the first signal phase difference, the m time units, the second signal phase difference and the d time units, and calculate the target frequency of the target signal based on the second signal phase difference, the number of phase difference winding turns, the d time units and the sampling rate of the target signal; Wherein, m is 1, and the duration of the d time units is half of the target sampling duration; The phase difference winding number satisfies: The target frequency of the target signal satisfies: in, is the target frequency of the target signal, is the number of winding turns of the phase difference, is the first signal phase difference, is the second signal phase difference, is the sampling rate of the target signal.
2. The method according to claim 1, It is characterized in that Based on the N 1 The step of obtaining a first signal phase difference by setting a first sampling signal comprises: Based on the N 1 obtaining a phase difference between two sampling signals included in any one group of first sampling signals in a group of first sampling signals, so as to obtain a signal phase difference value corresponding to any one group of first sampling signals; Calculate the N 1 N corresponding to the first sampling signal of the group 1 An average value of the signal phase difference values is obtained, and the average value is used as the first signal phase difference.
3. The method according to claim 1, It is characterized in that Based on the N 2 The second sampling signal is set to obtain a second signal phase difference, including: Based on the N 2 obtaining a phase difference between two sampling signals included in any group of second sampling signals in a group of second sampling signals, so as to obtain a signal phase difference value corresponding to any group of second sampling signals; Calculate the N 2 The N corresponding to the second sampling signal of the group 2 The average value of the signal phase difference values is calculated, and the average value is used as the second signal phase difference.
4. The method according to claim 2 or 3, It is characterized in that Before acquiring the target signal, the method further includes: receiving a source signal and measuring an estimated frequency of the source signal; Adjusting the operating parameters of the mixer based on the estimated frequency of the source signal, and adjusting the estimated frequency of the source signal to zero frequency through the mixer to obtain a target signal; After obtaining the target frequency of the target signal based on the first signal phase difference, the second signal phase difference and the sampling frequency information of the target signal, the method further includes: A superimposed frequency of the target frequency and the estimated frequency is calculated, and the superimposed frequency is used as the updated target frequency of the target signal.
5. A device for measuring the frequency of a signal, It is characterized in that The frequency measurement device comprises a signal processing circuit, a first phase difference detection circuit, a second phase difference detection circuit, and a phase-frequency processing circuit; the output end of the signal processing circuit is connected to the input end of the first phase difference detection circuit and the second phase difference detection circuit respectively, and the output end of the first phase difference detection circuit and the second phase difference detection circuit is connected to the input end of the phase-frequency processing circuit; The signal processing circuit is used to obtain a target signal and output the target signal to the first phase difference detection circuit and the second phase difference detection circuit; The first phase difference detection circuit is used to perform group sampling on the target signal to obtain N 1 The first sampling signal of the group is based on the N 1 A group of first sampling signals outputs a first signal phase difference to the phase-frequency processing circuit, wherein a group of the first sampling signals includes two sampling signals with a sampling time interval of m time units; The second phase difference detection circuit is used to perform group sampling on the target signal to obtain N 2 The second sampling signal is set, and based on the N 2 A group of second sampling signals outputs a second signal phase difference to the phase-frequency processing circuit, wherein a group of the second sampling signals includes two sampling signals with a sampling time interval of d time units, N 1 and N 2 are all integers greater than 1, m and d are integers greater than 0, and d is greater than m, and the time unit is obtained by the sampling rate of the target signal; The phase-frequency processing circuit is used to obtain the target frequency of the target signal based on the first signal phase difference, the second signal phase difference and the sampling frequency information of the target signal; Wherein, the phase-frequency processing circuit includes a phase unwrapping circuit and a phase-frequency conversion circuit; the input end of the phase unwrapping circuit is connected to the output ends of the first phase difference detection circuit and the second phase difference detection circuit, and the output end of the phase unwrapping circuit is connected to the input end of the phase-frequency conversion circuit; The phase unwrapping circuit is used to calculate the number of phase difference winding turns based on the first signal phase difference, the m time units, the second signal phase difference and the d time units, and output the unwrapping phase to the phase-frequency conversion circuit based on the number of phase difference winding turns and the second signal phase difference; The phase-to-frequency conversion circuit is used to perform phase-to-frequency conversion based on the unwrapped phase, the d time units and the sampling rate of the target signal to obtain and output the target frequency of the target signal; Wherein, m is 1, and the duration of the d time units is half of the target sampling duration; The phase difference winding number satisfies: The target frequency of the target signal satisfies: in, is the target frequency of the target signal, is the number of winding turns of the phase difference, is the first signal phase difference, is the second signal phase difference, is the sampling rate of the target signal.
6. The frequency measuring device according to claim 5, It is characterized in that The first phase difference detection circuit includes a first delay circuit and a first phase difference processing circuit; the output end of the signal processing circuit is connected to the input end of the first delay circuit and the first input end of the first phase difference processing circuit respectively, the output end of the first delay circuit is connected to the second input end of the first phase difference processing circuit; the output end of the first phase difference processing circuit is connected to the input end of the phase-frequency processing circuit; The signal processing circuit is used to output a sampling signal of the target signal to the first phase difference detection circuit based on a sampling rate of the target signal; The first delay circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and output the sampling signal to the first phase difference processing circuit after m time units; The first phase difference processing circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and receive the sampling signal of the target signal output by the first delay circuit, so as to obtain two sampling signals with a sampling time interval of the m time units as a group of first sampling signals; The first phase difference processing circuit is used to obtain N 1 The first sampling signal is grouped and output to the phase-frequency processing circuit to obtain the first signal phase difference.
7. The frequency measuring device according to claim 6, It is characterized in that The first phase difference processing circuit includes a first signal acquisition circuit and a first signal noise reduction circuit; the output end of the signal processing circuit is connected to the first input end of the first signal acquisition circuit, and the output end of the first delay circuit is connected to the second input end of the first signal acquisition circuit; the output end of the first signal acquisition circuit is connected to the input end of the first signal noise reduction circuit; the output end of the first signal noise reduction circuit is connected to the input end of the phase-frequency processing circuit; The first signal acquisition circuit is used to receive the sampling signal of the target signal output by the signal processing circuit and the sampling signal of the target signal output by the first delay circuit, so as to obtain two sampling signals with a sampling time interval of m time units as a group of first sampling signals; The first signal acquisition circuit is further configured to: 1 grouping two sampling signals included in any group of the first sampling signals in the first sampling signals, obtaining a phase difference between the two sampling signals, and outputting a signal phase difference value corresponding to any group of the first sampling signals to the first signal noise reduction circuit; The first signal noise reduction circuit is used to calculate the N obtained from the first signal acquisition circuit 1 The first sampling signal corresponding to the N 1 The average value of the signal phase difference values is calculated, the average value is used as the first signal phase difference, and the first signal phase difference is output to the phase-frequency processing circuit.
8. The frequency measuring device according to claim 5, It is characterized in that The second phase difference detection circuit includes a second delay circuit and a second phase difference processing circuit; the output end of the signal processing circuit is respectively connected to the input end of the second delay circuit and the first input end of the second phase difference processing circuit, the output end of the second delay circuit is connected to the second input end of the second phase difference processing circuit; the output end of the second phase difference processing circuit is connected to the input end of the phase-frequency processing circuit; The signal processing circuit is used to output a sampling signal of the target signal to the second phase difference detection circuit based on a sampling rate of the target signal; The second delay circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and output the sampling signal to the second phase difference processing circuit after d time units; The second phase difference processing circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and receive the sampling signal of the target signal output by the second delay circuit, so as to obtain two sampling signals with a sampling time interval of the d time units as a group of second sampling signals; The second phase difference processing circuit is further configured to: 2 The second sampling signal is grouped and output to the phase-frequency processing circuit to obtain the second signal phase difference.
9. The frequency measuring device according to claim 8, It is characterized in that The second phase difference processing circuit includes a second signal acquisition circuit and a second signal noise reduction circuit; the output end of the signal processing circuit is connected to the first input end of the second signal acquisition circuit, and the output end of the second delay circuit is connected to the second input end of the second signal acquisition circuit; the output end of the second signal acquisition circuit is connected to the input end of the second signal noise reduction circuit; the output end of the second signal noise reduction circuit is connected to the input end of the phase-frequency processing circuit; The second signal acquisition circuit is used to receive the sampling signal of the target signal output by the signal processing circuit, and receive the sampling signal of the target signal output by the second delay circuit, so as to obtain two sampling signals with a sampling time interval of d time units as a group of second sampling signals; The second signal acquisition circuit is further used to obtain N 2 grouping two sampling signals included in any group of the second sampling signals in the second sampling signals, obtaining a phase difference between the two sampling signals, and outputting a signal phase difference value corresponding to any group of the second sampling signals to the second signal noise reduction circuit; The second signal noise reduction circuit is used to calculate the N obtained from the second signal acquisition circuit 2 The second sampling signal corresponding to the N 2 The average value of the signal phase difference values is calculated, the average value is used as the second signal phase difference, and the second signal phase difference is output to the phase-frequency processing circuit.
10. The frequency measuring device according to any one of claims 5 to 9, It is characterized in that The signal processing circuit includes a signal receiving circuit, a basic frequency sweeping circuit and a mixer, and the phase-frequency conversion circuit includes an adder; the output end of the signal receiving circuit is connected to the first input end of the mixer, and the output end of the mixer is respectively connected to the input ends of the basic frequency sweeping circuit, the first phase difference detection circuit and the second phase difference detection circuit; the output end of the basic frequency sweeping circuit is connected to the second input end of the mixer; The signal receiving circuit is used to receive a source signal and output the source signal to the basic frequency sweeping circuit; The basic frequency sweep circuit is used to measure the estimated frequency of the source signal and output the measured estimated frequency to the mixer; The mixer is used to adjust operating parameters based on the estimated frequency of the source signal, and adjust the estimated frequency of the source signal to zero frequency through the adjusted operating parameters to obtain a target signal; The adder is used to calculate the superimposed frequency of the target frequency and the estimated frequency, and output the superimposed frequency as the target frequency of the target signal.
11. The frequency measuring device according to claim 10, It is characterized in that The basic frequency sweeping circuit comprises a digital envelope detection circuit and a spectrum power statistics circuit; the input end of the digital envelope detection circuit serves as the input end of the basic frequency sweeping circuit, the output end of the digital envelope detection circuit is connected to the input end of the spectrum power statistics circuit, and the output end of the spectrum power statistics circuit serves as the output end of the input end of the basic frequency sweeping circuit; The digital envelope detection circuit is used to extract the envelope signal of the source signal and output the envelope signal of the source signal to the spectrum power statistics circuit; The spectrum power statistics circuit is used to analyze the envelope signal of the source signal to obtain the estimated frequency of the source signal, and output the estimated frequency to the mixer.
Citation Information
Patent Citations
Method and apparatus for measuring the frequency of a received signal
CN101057150A
Useful signal extraction circuit, method and device
CN110096963A
Time-frequency analysis method and system
CN112505413A
Relative error self-monitoring system and method of electric signal acquisition circuit
CN114002639A
Method and Apparatus for Measuring the Frequency of a Received Signal
US20080211482A1
