A noise cancellation method, a signal test device and a computer device
By employing a method of first eliminating noise and then compensating it in segments in the signal testing equipment, the root mean square value of the full noise signal is calculated and the compensation coefficient is obtained. This solves the problem of the background noise introduced by the signal testing equipment affecting the measurement accuracy, and achieves more accurate signal measurement.
Patent Information
- Application Number
- CN202511161776.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-19
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2045-08-19
AI Technical Summary
When signal testing equipment measures the signal under test, it introduces background noise, causing the measurement results to deviate from the true situation. Furthermore, conventional filtering algorithms may excessively eliminate noise from the signal under test, affecting the accuracy of the measurement.
The method of first eliminating and then compensating in segments is adopted. The root mean square value of the full noise signal at multiple positions in the time sequence is calculated to obtain the compensation coefficient. The compensation noise signal is then superimposed on the signal under test to reduce the influence of the signal test equipment and avoid overcompensation.
It improves the measurement accuracy of the signal test equipment for the signal under test, reduces the influence of the signal test equipment on the signal under test, and avoids over-denoising.
Smart Images

Figure CN120653895B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of signal testing, and in particular to a noise elimination method, a signal testing device and a computer device. BACKGROUND
[0002] A signal testing device needs to accurately reflect the characteristics of a signal under test (SUT). However, the signal testing device inevitably introduces certain non-ideal factors (for example, the noise floor of the signal testing device) to the signal under test, so that the measurement result of the signal under test deviates from the true situation.
[0003] Although the conventional filtering algorithm can eliminate the noise floor introduced by the signal testing device, it will also eliminate the noise of the signal under test itself, resulting in over-elimination of noise. The quality of the signal under test after noise elimination is higher than that of the real signal under test, and the measurement result of the signal under test also deviates from its true situation, making it difficult to guarantee the accuracy of the signal testing device in measuring the signal under test. SUMMARY
[0004] The embodiments of the present application provide a noise elimination method, a signal testing device and a computer device, which are used to improve the accuracy of the signal testing device in measuring the signal under test.
[0005] To achieve the above-mentioned purpose, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a noise elimination method is provided, which is applied to a signal testing device for testing an input signal under test. The method comprises: performing noise filtering processing on the received signal under test to obtain a first signal. According to the signal under test and the first signal, a full-amount noise signal is obtained. The root mean square values of the full-amount noise signal at multiple positions in time sequence are calculated. Based on the multiple root mean square values, multiple compensation coefficients corresponding one-to-one to the multiple root mean square values are obtained; wherein the multiple compensation coefficients are all less than one, and the greater the root mean square value, the greater the corresponding compensation coefficient. The segmented noise signals of the full-amount noise signal at multiple positions in time sequence are multiplied by the corresponding compensation coefficients respectively to obtain multiple compensation noise signals. The multiple compensation noise signals are respectively and correspondingly superimposed on the multiple positions of the first signal in time sequence to obtain a second signal, and the signal testing device tests the signal under test based on the second signal.
[0007] The embodiment of the present application adopts a processing mode of removing noise first and then compensating in segments. The noise of the to-be-tested signal and the background noise of the signal testing device are removed together to obtain a first signal with the noise removed. The full-amount noise signal can be obtained by subtracting the first signal from the to-be-tested signal. Since the signal testing device does not change, the background noise introduced by the signal testing device is relatively stable. Then, the embodiment of the present application calculates the root mean square values of the full-amount noise signal at multiple positions in time sequence, and uses the root mean square values to represent the different intensities of the to-be-tested signal at different positions. When the noise of the first signal is compensated in segments, the embodiment of the present application calculates compensation coefficients of the multiple positions according to the root mean square values of the multiple positions. The compensation coefficients of the multiple positions are all less than one, so that the compensated noise signal is less than the full-amount noise signal, the noise compensation amount is weakened, and overcompensation is avoided. Moreover, the greater the root mean square value is, the greater the corresponding compensation coefficient is, so that the intensity characteristics of the noise of the to-be-tested signal at different positions can be restored as much as possible. In combination of the two, the weakened part in the compensated noise signal is the background noise of the signal testing device, so that the influence of the signal testing device on the to-be-tested signal is reduced, and overcompensation and over-noise-removal are unlikely to occur. When the signal testing device tests the to-be-tested signal based on the second signal, the accuracy of the signal testing device in measuring the to-be-tested signal can be improved.
[0008] In some possible embodiments, the multiple positions include a first position and a second position, where the first position is a position corresponding to the rising time and the falling time of the waveform of the first signal, and the second position is a position other than the first position in the first signal. The intensity of the full-amount noise signal at the position corresponding to the rising time and the falling time (i.e., the first position) and the position other than the first position (i.e., the second position) is quite different. Different compensation is performed on the first position and the second position to ensure the accuracy of the compensation.
[0009] In some possible implementation manners, after obtaining the total noise signal, the following steps are specifically included: a first root mean square value corresponding to a first position of the total noise signal is calculated, and a second root mean square value corresponding to a second position of the total noise signal is calculated; wherein the intensity of the total noise signal at the first position is greater, and the first root mean square value is greater than the second root mean square value. A first compensation coefficient is calculated based on the first root mean square value, and a second compensation coefficient is calculated based on the second root mean square value, wherein the first compensation coefficient is greater than the second compensation coefficient, and the first compensation coefficient is less than one. The first compensation noise signal is obtained by multiplying the first segmented noise signal of the total noise signal at the first position by the first compensation coefficient, and the second compensation noise signal is obtained by multiplying the second segmented noise signal of the total noise signal at the second position by the second compensation coefficient. The first compensation noise signal is superimposed on the first position of the first signal, and the second compensation noise signal is superimposed on the second position of the first signal, to obtain the second signal. In the implementation manners of the present application, the first compensation coefficient is less than one, so that the first compensation noise signal and the second compensation noise signal are both less than the total noise signal, the noise compensation amount is weakened, and overcompensation is avoided. Moreover, the first root mean square value is greater than the second root mean square value, so that the different intensity characteristics of the noise of the to-be-tested signal at the first position and the second position can be restored as much as possible. In combination of the two, the noise in the compensation noise signal that is weakened is the noise floor of the signal testing device, so that the influence of the signal testing device on the to-be-tested signal is reduced, overcompensation does not occur, and over-noise elimination does not easily occur. When the signal testing device tests the to-be-tested signal based on the second signal, the accuracy of the signal testing device in measuring the to-be-tested signal can be improved.
[0010] In some possible implementation manners, the noise filtering processing is performed on the received to-be-tested signal to obtain the first signal, including: the to-be-tested signal is segmented according to the period of the to-be-tested signal to obtain K first segmented signals. K is the number of segmentations of the to-be-tested signal, and K is an integer greater than 1. The K first segmented signals are aligned and subjected to an average noise elimination operation to obtain a second segmented signal. Since the effective signal is coherent, the amplitude of the effective signal does not change after averaging, while the noise is random, and the noise is reduced after averaging, so that a second segmented signal in which the noise is eliminated is obtained. Based on the second segmented signal, the second segmented signal is repeated K times to obtain the first signal, that is, the first signal includes K second segmented signals.
[0011] In some possible implementation manners, the first compensation coefficient is calculated based on the first root mean square value, including: the root mean square value of the noise floor of the signal testing device is obtained. The first compensation coefficient is determined according to the first root mean square value and the root mean square value of the noise floor of the signal testing device. In an example, in the implementation manners of the present application, the first compensation coefficient satisfies the following relationship between the first root mean square value and the root mean square value of the noise floor of the signal testing device:
[0012] ;
[0013] wherein, C1 is a first compensation coefficient, RMS1 is a first root mean square value, and RMS0 is a root mean square value of a background noise of the signal testing device. In the above formula for calculating the first compensation coefficient, the root mean square value of the background noise of the signal testing device is subtracted, i.e. the background noise of the signal testing device is subtracted, and the weakened noise compensation amount is just equal to the background noise of the signal testing device, and thus over-decreasing noise phenomenon does not occur.
[0014] In some possible embodiments, the second compensation coefficient is calculated based on the second root mean square value, including: obtaining a root mean square value of a background noise of the signal testing device. The second compensation coefficient is determined according to the second root mean square value and the root mean square value of the background noise of the signal testing device. In an example, in the present application, the second compensation coefficient satisfies the following relationship between the second root mean square value and the root mean square value of the background noise of the signal testing device:
[0015] ;
[0016] wherein, C2 is a second compensation coefficient, RMS2 is a second root mean square value, and RMS0 is a root mean square value of a background noise of the signal testing device. In the above formula for calculating the second compensation coefficient, the root mean square value of the background noise of the signal testing device is subtracted, i.e. the background noise of the signal testing device is subtracted, and the weakened noise compensation amount is just equal to the background noise of the signal testing device, and thus over-decreasing noise phenomenon does not occur.
[0017] In some possible embodiments, the method further includes obtaining configuration information. The configuration information indicates any one or more of a number of segments of the to-be-tested signal, a period of the to-be-tested signal, and a root mean square value of the background noise of the signal testing device, so as to reduce or even overcome the influence of the background noise of the signal testing device on the to-be-tested signal and improve the accuracy of the signal testing device in measuring the to-be-tested signal by means of first eliminating noise and then segmenting compensation.
[0018] In a second aspect, a signal testing device is provided. The signal testing device comprises a signal averaging module and a noise compensation module. The signal averaging module is configured to perform noise filtering on a received to-be-tested signal to obtain a first signal, and obtain a full noise signal based on the to-be-tested signal and the first signal. The noise compensation module comprises a position determining module, a compensation coefficient calculating module, and a compensation waveform generating module. The position determining module is configured to determine a plurality of positions of the full noise signal in time sequence. The compensation coefficient calculating module is configured to calculate root mean square values of the full noise signal at the plurality of positions, and obtain a plurality of compensation coefficients corresponding to the plurality of root mean square values based on the plurality of root mean square values, wherein each of the plurality of compensation coefficients is less than one, and the greater the root mean square value, the greater the corresponding compensation coefficient. The compensation waveform generating module is configured to multiply segmented noise signals of the full noise signal at the plurality of positions in time sequence by corresponding compensation coefficients to obtain a plurality of compensation noise signals, and superimpose the plurality of compensation noise signals on the plurality of positions of the first signal in time sequence to obtain a second signal. The signal testing device tests the to-be-tested signal based on the second signal.
[0019] In some possible implementations, the plurality of positions comprises a first position and a second position, wherein the first position is a position corresponding to a rising time and a falling time of a waveform of the first signal, and the second position is a position other than the first position in the first signal.
[0020] In some possible implementations, the position determining module is specifically configured to determine the first position and the second position of the first signal in time domain. The calculating module is specifically configured to calculate a first root mean square value of the full noise signal at the first position, a second root mean square value of the full noise signal at the second position, and calculate a first compensation coefficient based on the first root mean square value and a second compensation coefficient based on the second root mean square value, wherein the first root mean square value is greater than the second root mean square value, the first compensation coefficient is greater than the second compensation coefficient, and the first compensation coefficient is less than one. The compensation coefficient calculating module is specifically configured to multiply a first segmented noise signal of the full noise signal at the first position by the first compensation coefficient to obtain a first compensation noise signal, multiply a second segmented noise signal of the full noise signal at the second position by the second compensation coefficient to obtain a second compensation noise signal, and superimpose the first compensation noise signal on the first position of the first signal and superimpose the second compensation noise signal on the second position of the first signal to obtain the second signal.
[0021] In some possible implementations, the signal averaging module is configured to segment the to-be-tested signal according to a period of the to-be-tested signal to obtain K first segmented signals, wherein K is a segmentation number of the to-be-tested signal, and K is an integer greater than 1. The K first segmented signals are aligned for an averaging denoising operation to obtain a second segmented signal. The first signal is obtained based on the second segmented signal, and the first signal comprises K second segmented signals.
[0022] In some possible implementation manners, the compensation coefficient calculation module is further configured to acquire a root mean square value of the background noise of the signal test device, and determine the first compensation coefficient according to the first root mean square value and the root mean square value of the background noise of the signal test device. For example, in the present application, the first compensation coefficient satisfies the following relationship with the first root mean square value and the root mean square value of the background noise of the signal test device:
[0023] ;
[0024] wherein, C1 is the first compensation coefficient, RMS1 is the first root mean square value, and RMS0 is the root mean square value of the background noise of the signal test device.
[0025] In some possible implementation manners, the compensation coefficient calculation module is further configured to acquire a root mean square value of the background noise of the signal test device, and determine the second compensation coefficient according to the second root mean square value and the root mean square value of the background noise of the signal test device. For example, in the present application, the second compensation coefficient satisfies the following relationship with the second root mean square value and the root mean square value of the background noise of the signal test device:
[0026] ;
[0027] wherein, C2 is the second compensation coefficient, RMS2 is the second root mean square value, and RMS0 is the root mean square value of the background noise of the signal test device.
[0028] In some possible implementation manners, the signal test device is configured to acquire configuration information. The configuration information is configured to indicate any one or more of the following: a number of segments of the to-be-tested signal, a period of the to-be-tested signal, and a root mean square value of the background noise of the signal test device.
[0029] In a third aspect, a computer readable storage medium is provided. The computer readable storage medium stores computer executable instructions. When the computer executable instructions are executed, the method in the first aspect is implemented.
[0030] In a fourth aspect, a computer device is provided. The computer device includes a processor and a readable storage medium coupled to the processor. The readable storage medium stores executable instructions. When the executable instructions are executed by the processor, the method in the first aspect is implemented.
[0031] It should be understood that the technical effects of the second aspect to the fourth aspect can refer to the technical effects of the first aspect and any of the implementation manners thereof, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS
[0032] Figure 1 FIG. 1 is a schematic diagram of a connection structure of a signal test device and a to-be-tested device according to an application embodiment;
[0033] Figure 2 Some noise cancellation principles of the noise cancellation device provided for the embodiments of the present application are shown in the schematic diagrams;
[0034] Figure 3 The schematic diagram of the principle of cross-correlation noise cancellation adopted by the noise cancellation device provided for the embodiments of the present application is shown in the schematic diagram;
[0035] Figure 4 The schematic diagram of the calculation of the root mean square value of the superimposed two-way independent signals provided for the embodiments of the present application is shown in the schematic diagram;
[0036] Figure 5 The schematic diagram of the flow of the noise cancellation method provided for the embodiments of the present application is shown in the schematic diagram;
[0037] Figure 6 The schematic diagram of the eye diagram measurement result of the to-be-measured signal provided for the embodiments of the present application is shown in the schematic diagram;
[0038] Figure 7 The schematic diagram of the eye diagram measurement result of the to-be-measured signal superimposed with the noise floor of the signal test equipment provided for the embodiments of the present application is shown in the schematic diagram;
[0039] Figure 8 The schematic diagram of the eye diagram measurement result of the first signal provided for the embodiments of the present application is shown in the schematic diagram;
[0040] Figure 9 The schematic diagram of the division of the first position and the second position in the time domain provided for the embodiments of the present application is shown in the schematic diagram;
[0041] Figure 10 The schematic diagram of the eye diagram measurement result of the second signal provided for the embodiments of the present application is shown in the schematic diagram;
[0042] Figure 11 The schematic diagram of the eye diagram measurement result of the first signal after the noise compensation without segmentation provided for the embodiments of the present application is shown in the schematic diagram;
[0043] Figure 12 The schematic diagram of the structure of the signal test equipment provided for the embodiments of the present application is shown in the schematic diagram.
[0044] Reference signs:
[0045] 100-to-be-measured device; 200-signal test equipment; 210-noise cancellation device; 300-signal averaging module; 400-noise compensation module; 410-position determination module; 420-compensation coefficient calculation module; 430-compensation waveform generation module. DETAILED DESCRIPTION
[0046] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are merely intended to explain the present application and should not be used to limit the present application.
[0047] The terms "first", "second", and the like used in the embodiments of the present application are merely used for distinguishing the same type of features, and should not be understood as indicating relative importance, quantity, order, and the like.
[0048] The terms "exemplary" or "for example" used in the embodiments of the present application are used to represent that the following described embodiments are examples, instances or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or advantageous than other embodiments or design solutions. In fact, the use of "exemplary" or "for example" is intended to present the relevant concept in a specific manner.
[0049] The terms "coupled" and "connected" used in the embodiments of the present application should be interpreted in a broad sense, for example, can refer to a direct physical connection or an indirect connection through electronic devices, such as a connection through resistors, inductors, capacitors or other electronic devices.
[0050] The signal test device needs to accurately reflect the characteristics of the to-be-tested signal itself. As shown in Figure 1 A device under test (DUT) 100 is connected to a signal test device 200, and the device under test 100 can output a to-be-tested signal. In some examples, the to-be-tested signal can be a two-way differential signal, that is, one positive (P) signal and one negative (N) signal (the phases of the positive signal and the negative signal are 180° apart).
[0051] There are also noises in the to-be-tested signal, which belong to the characteristics of the to-be-tested signal itself. When the to-be-tested signal is input into the signal test device 200, the background noise or background jitter of the signal test device 200 will inevitably be superimposed on the noise of the to-be-tested signal, so that the measurement result of the to-be-tested signal deviates from the true situation.
[0052] Please continue to refer to Figure 1 In some embodiments, the signal test device 200 can include a noise elimination device 210, which can greatly reduce or even eliminate the background noise of the signal test device 200, and output a noise-eliminated signal for subsequent testing.
[0053] In some embodiments, the noise elimination device 210 can be a low-pass filter. As shown in Figure 2As shown, the signal under test may include valid signals and noise. Typically, the bandwidth of the noise spectrum is much larger than the bandwidth of the valid signal spectrum, and high-frequency noise can be filtered out using a low-pass filter. In other embodiments, the noise cancellation device 210 may be a processing circuit capable of performing filtering algorithms. Please continue to refer to... Figure 2 In some examples, filtering algorithms can use trace averaging, aligning and averaging multiple different periods of the signal under test to suppress noise. Alternatively, filtering algorithms can use moving average, averaging the local values of a point in time and its neighboring data points to smooth the data and reduce noise and short-term fluctuations.
[0054] While the noise cancellation device 210 described above can eliminate the background noise introduced by the signal testing equipment 200, it may also eliminate the noise inherent in the signal under test. This can lead to over-denoising, resulting in the quality of the denoised signal under test being higher than the actual signal quality. Consequently, the measurement results of the signal under test will deviate from their true value, making it difficult to guarantee the accuracy of the signal testing equipment 200 in measuring the signal under test.
[0055] like Figure 3 As shown, in some embodiments, the noise cancellation device 210 can employ cross-correlation noise cancellation. Cross-correlation noise cancellation uses a power divider to split the signal under test into two identical signals, which are input to two channels (i.e., channel 1 and channel 2) of the signal testing device 200. Then, the noise cancellation device 210 performs cross-correlation calculations on the signals from these two channels. Assuming the signal under test is C, and the background noise of the two channels of the signal testing device 200 is A and B respectively, then the data from the two channels used for correlation are A+C and B+C respectively. The average of the two correlated data is then obtained:
[0056] ;
[0057] Usually, A, B, and C are independent of each other, so ≈0、 ≈0、 ≈0, therefore ≈ This can eliminate the background noise of the signal testing equipment 200.
[0058] Figure 3The cross-correlation noise elimination shown can only eliminate the background noise of the signal test device 200, but requires a power divider to construct a pair of to-be-tested signals, and the influence of the power divider on the to-be-tested signals is difficult to remove. Moreover, the number of channels of the signal test device 200 is required to be increased; for example, if the to-be-tested signal is a single-ended signal, the signal test device 200 is required to have at least two channels; if the to-be-tested signal is a differential signal, the signal test device 200 is required to have at least four channels, and the networking is relatively complex.
[0059] The root mean square (RMS) value is also called the square root mean value or the effective value, can reflect the average energy level of the noise signal, and is an effective index for analyzing the noise. For example, Figure 4 In some embodiments, the root mean square values of two independent signals are respectively and The root mean square value of the superposition of the two signals is:
[0060]
[0061] Based on this property, the signal test device 200 can first disconnect the input of the to-be-tested signal, measure the root mean square value of the background noise of the signal test device 200, and record it as Then the signal test device 200 receives the input of the to-be-tested signal, measures the root mean square value of the total noise at this time, and records it as According to the formula:
[0062]
[0063] Thus, the root mean square value of the noise of the to-be-tested signal itself is calculated. Figure 3 The method shown is to calculate the statistical feature root mean square value of the signal, and cannot obtain the waveform data of the to-be-tested signal after the background noise of the signal test device is eliminated, and is only applicable to the measurement of some special indexes, and the application scenarios are limited.
[0064] The embodiments of the present application provide a noise elimination method applied to a signal test device 200, and the signal test device 200 is used for testing an input to-be-tested signal. As shown in Figure 5 The method includes S110-S170, as follows:
[0065] S110, the signal test device acquires configuration information.
[0066] In some embodiments, the configuration information can be configured in the display interface of the signal test device 200, and the configuration information can include any one or more of the segment number of the to-be-tested signal, the period of the to-be-tested signal, and the root mean square value of the background noise of the signal test device.
[0067] In some embodiments, the root mean square (RMS) value of the noise floor of the signal testing device 200 can also be stored in the storage medium of the signal testing device 200 after configuration, so that no further configuration is required in subsequent use. In some embodiments, the RMS value of the noise floor of the signal testing device 200 may be different in different operating modes.
[0068] S120. The signal testing equipment performs noise filtering on the received signal to be tested to obtain the first signal.
[0069] Figure 6 The diagram illustrates the eye diagram measurement results of the signal under test. An eye diagram contains the superposition of numerous signals. Since the high and low voltage waveforms of a signal are not identical every time, over a long period of time, the signal lines in the eye diagram gradually overlap and thicken. The distance of the blank area on the vertical axis of the eye diagram is called the eye height, which reflects the noise level of the signal. If the lines of the eye diagram are both distinct and the eye height is high, it indicates good signal quality and low noise. Figure 6 As shown in the schematic diagram of the eye diagram measurement results of the signal under test, the eye heights of the three eyes are (85.71, 88.64, 89.71) mV, respectively.
[0070] When the signal testing equipment 200 receives the signal under test, the signal under test will inevitably be superimposed with the background noise of the signal testing equipment 200. Figure 7 A schematic diagram of the eye diagram measurement results after superimposing the signal under test onto the signal testing device 200 with its background noise is shown. For example... Figure 7 As shown in the schematic diagram of the eye diagram measurement results after superimposing the background noise of the signal testing device 200 on the signal under test, the eye heights of the three eyes are (66.09, 63.89, 61.69) mV, respectively, indicating a decrease in eye height. This means that the signal under test received by the signal testing device 200 has greater noise than the actual signal under test.
[0071] In some implementations, the signal testing device 200 can sample the received signal under test to obtain waveform data of the signal under test. After obtaining the waveform data of the signal under test, the signal testing device 200 can slice the waveform data of the signal under test into segments that are integer multiples of the period of the signal under test, to obtain K first segment signals. Here, K is the number of segments of the signal under test, and K is an integer greater than 1.
[0072] In some implementations, the period of the signal under test can be configured using the configuration information described above. In other implementations, the signal testing device 200 can also identify the period of the signal under test using a short-time Fourier transform (STFT).
[0073] The signal to be tested received by the signal testing device 200 includes the background noise of the signal testing device 200, the noise of the signal to be tested itself, and the effective signal (the pure signal without any noise). Since the noise is usually random, and the effective signal is repetitive or periodic, in different segments (i.e., the K first segment signals) of the signal to be tested, the noise is irrelevant and the mean is zero, and the effective signal is relevant, and the phase and amplitude of the effective signal are consistent.
[0074] The signal testing device 200 can ensure that the K first segment signals are aligned by time synchronization or phase alignment, and after alignment, the waveform data of the K first segment signals at the same time point is averaged. Since the effective signal is coherent, the amplitude of the effective signal does not change after averaging, and the noise is random, and the noise is reduced after averaging, thereby obtaining a second segment signal in which the noise is eliminated.
[0075] That is, the noise in the second segment signal is smaller than the noise in the first segment signal, and the effective signal in the second segment signal is equal to the effective signal in the first segment signal. The first signal can be obtained by repeating the second segment signal K times; that is, the first signal includes K second segment signals. Since the K first segment signals are obtained by segmenting the signal to be tested, the first signal including the K second segment signals is the signal to be tested after noise filtering.
[0076] Figure 8 The eye diagram measurement result of the first signal is shown. As shown in Figure 8 The eye height of the three eyes in the eye diagram measurement result of the first signal is (123.00, 121.00, 116.00) mV, and the eye height is high. That is, compared with the real signal to be tested, the noise of the first signal is significantly smaller.
[0077] S130, the signal testing device obtains the full noise signal according to the signal to be tested and the first signal.
[0078] When the signal to be tested is input into the signal testing device 200, the background noise or the background jitter of the signal testing device 200 will inevitably be superimposed on the noise of the signal to be tested itself; that is, the signal to be tested received by the signal testing device 200 includes the background noise of the signal testing device 200, the noise of the signal to be tested itself, and the effective signal. The first signal obtained after the noise filtering in S120 greatly reduces or even eliminates the background noise of the signal testing device 200 and the noise of the signal to be tested itself, and in some embodiments, the full noise signal can be obtained according to the difference between the signal to be tested received by the signal testing device 200 and the first signal.
[0079] In some embodiments, the plurality of positions comprises a first position and a second position, and the waveform of the first position is different from the waveform of the second position. For example, the first position corresponds to a position of the waveform of the first signal in the rising time and the falling time, and the second position corresponds to a position of the first signal other than the first position. Figure 9 In some embodiments, the first position (which can be referred to as a transition position) corresponds to a position of the waveform of the first signal in the rising time and the falling time, and the second position (which can be referred to as a stable position) corresponds to a position of the first signal other than the first position. The rising time refers to the time interval between two instants at which the instantaneous value of the first signal initially reaches the specified lower limit and the specified upper limit, and the falling time refers to the time interval between two instants at which the instantaneous value of the first signal initially reaches the specified upper limit and the specified lower limit. In some examples, the specified lower limit is 10% of the peak amplitude of the first signal, and the specified upper limit is 90% of the peak amplitude of the first signal. It can be seen that the first signal and the full noise signal fluctuate greatly at the first position, and the first signal and the full noise signal are relatively stable at the second position.
[0080] S140, the signal test device calculates the root mean square values of the full noise signal at the plurality of positions in the time sequence.
[0081] In some examples, if the signal test device 200 obtains the data of the full noise signal at the position corresponding to the first position in the time domain as , the first root mean square value corresponding to the first position can be calculated according to the following formula:
[0082] ;
[0083] Similarly, the signal test device 200 calculates the second root mean square value of the full noise signal corresponding to the second position in the time domain, which can be referred to the above description, and will not be described herein.
[0084] S150, the signal test device obtains a plurality of compensation coefficients corresponding to the plurality of root mean square values based on the plurality of root mean square values.
[0085] In some embodiments, the plurality of compensation coefficients obtained by the signal test device 200 are all less than one, and the greater the root mean square value, the greater the corresponding compensation coefficient. In some embodiments, the signal test device 200 determines the first compensation coefficient according to the first root mean square value and the root mean square value of the background noise of the signal test device. In some examples, the root mean square value of the background noise of the signal test device can be configured in the display interface of the signal test device 200, and in other examples, the root mean square value of the background noise of the signal test device can be obtained from the storage medium of the signal test device 200.
[0086] In the present application, the first compensation coefficient satisfies the following relationship with the first root mean square value and the root mean square value of the background noise of the signal testing device:
[0087] ;
[0088] Wherein, C1 is the first compensation coefficient, RMS1 is the first root mean square value, and RMS0 is the root mean square value of the background noise of the signal testing device.
[0089] The derivation process of the first compensation coefficient C1 is described below, and the parameters involved in the derivation process are described in Table 1 as follows:
[0090] Table 1
[0091]
[0092] According to formula 2 and formula 3, we can get:
[0093] (Formula 4);
[0094] According to formula 1 and formula 4, we can get:
[0095] (Formula 5);
[0096] According to formula 2 and formula 5, we can get:
[0097] (Formula 6);
[0098] When the root mean square value of the total noise signal is scaled by C times, and the noise root mean square value after superimposing the residual noise in the first signal is:
[0099] (Formula 7);
[0100] When formula 7 is equal to the root mean square value of the noise in the signal to be tested: According to formula 5, formula 6 and formula 7, we can get:
[0101] (Formula 8);
[0102] Simplifying formula 8, we can get:
[0103] ;
[0104] Wherein, The first root mean square value RMS1 can be obtained:
[0105] ;
[0106] Similarly, the second compensation coefficient satisfies a relationship with the second root mean square value and the root mean square value of the background noise of the signal test device;
[0107] ;
[0108] wherein C2 is the second compensation coefficient, RMS2 is the second root mean square value, and RMS0 is the root mean square value of the background noise of the signal test device. Specifically, the derivation of the second compensation coefficient C2 can refer to the related description in the derivation of the first compensation coefficient C1 above, which will not be repeated here.
[0109] It can be seen that the first compensation coefficient C1 and the second compensation coefficient C2 are both less than one, and in the jitter scenario, the noise at the first position is significantly greater than the noise at the second position; that is, when the first root mean square value RMS1 is greater than the second root mean square value RMS2, the first compensation coefficient C1 is greater than the second compensation coefficient C2.
[0110] S160, the signal test device respectively multiplies the segmented noise signals of the full-amount noise signal at multiple positions in time sequence by the corresponding compensation coefficients to obtain multiple compensation noise signals.
[0111] In some embodiments, the first compensation coefficient C1 calculated by S150 is used to scale the first segmented noise signal of the full-amount noise signal at the first position; that is, the waveform of the first segmented noise signal of the full-amount noise signal at the first position is multiplied by the first compensation coefficient, thereby obtaining the first compensation noise signal. Similarly, the second compensation coefficient C2 calculated by S150 is used to scale the second segmented noise signal of the full-amount noise signal at the second position; that is, the waveform of the second segmented noise signal of the full-amount noise signal at the second position is multiplied by the second compensation coefficient, thereby obtaining the second compensation noise signal.
[0112] S170, the signal test device respectively superimposes the multiple compensation noise signals to the multiple positions of the first signal in time sequence to obtain a second signal, and the signal test device tests the to-be-tested signal based on the second signal.
[0113] In some embodiments, the first compensation noise signal is superimposed to the first position of the first signal, and the second compensation noise signal is superimposed to the second position of the first signal, thereby obtaining the second signal.
[0114] It should be understood that in various embodiments of the present application, the size of the serial number of the above processes does not mean the order of execution, and the execution order of the processes should be determined according to its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0115] Figure 10 The eye diagram measurement result of the second signal is shown. As shown in FIG. 6, the eye diagram of the second signal is more open than the eye diagram of the first signal, and the jitter of the second signal is smaller than the jitter of the first signal.Figure 10 As shown in the eye diagram measurement result schematic diagram of the second signal, the eye heights of the three eyes are (89.90, 87.77, 85.63) mV respectively. It can be seen that, Figure 10 The eye diagram measurement result schematic diagram of the second signal shown is very close to Figure 6 The eye diagram measurement result schematic diagram of the second signal shown is very close to
[0116] The application embodiment adopts the processing mode of eliminating first and then segmenting compensation for the noise, eliminates the noise of the to-be-tested signal together with the background noise of the signal testing device 200, obtains the first signal with the noise eliminated, and obtains the full noise signal by subtracting the first signal from the to-be-tested signal. Since the signal testing device 200 does not change, the background noise introduced by the signal testing device 200 is relatively stable, and then the application embodiment calculates the root mean square values of the full noise signal at multiple positions in time sequence, and uses the root mean square values to represent the different intensities of the to-be-tested signal at different positions. When segmenting the compensation for the noise of the first signal, the application embodiment calculates the compensation coefficients of the multiple positions according to the root mean square values of the multiple positions, and the compensation coefficients of the multiple positions are all less than one, so that the compensation noise signal is less than the full noise signal, the noise compensation amount is weakened, and overcompensation is avoided; and the greater the root mean square value, the greater the corresponding compensation coefficient, so that the different intensity characteristics of the noise of the to-be-tested signal at different positions can be restored as much as possible. Under the combination of the two, the weakened part in the compensation noise signal is the background noise of the signal testing device 200, thereby reducing the influence of the signal testing device on the to-be-tested signal, and overcompensation and over-noise elimination phenomenon are not easy to occur. When the signal testing device 200 tests the to-be-tested signal based on the second signal, the accuracy of the signal testing device 200 in measuring the to-be-tested signal can be improved.
[0117] In some other embodiments, after the noise of the to-be-tested signal and the background noise of the signal testing device 200 are eliminated together to obtain the first signal, the noise compensation for the first signal can also be non-segmented. Figure 11 The eye diagram measurement result schematic diagram after the non-segmented noise compensation for the first signal is shown. As Figure 11 As shown in the eye diagram measurement result schematic diagram after the non-segmented noise compensation for the first signal, the eye heights of the three eyes are (70.13, 68.56, 71.34) mV respectively. It can be seen that the non-segmented noise compensation for the first signal can also reduce the influence of the signal testing device 200 on the to-be-tested signal to a certain extent, but the reduction is limited.
[0118] The application embodiment also provides a signal testing device. As Figure 12As shown, the signal test device 200 is configured to acquire configuration information and a to-be-tested signal. The configuration information is used to indicate any one or more of a number of segments of the to-be-tested signal, a period of the to-be-tested signal, and a root mean square value of a noise floor of the signal test device.
[0119] Please continue to refer to Figure 12 The signal test device 200 includes a signal averaging module 300 and a noise compensation module 400. The signal averaging module 300 is configured to perform noise filtering on the received to-be-tested signal to obtain a first signal. In addition, the signal averaging module 300 is further configured to obtain a full noise signal according to the first signal and the received to-be-tested signal.
[0120] The noise compensation module 400 is connected to the signal averaging module 300 to receive the first signal and the full noise signal. The noise compensation module 400 includes a position determination module 410, a compensation coefficient calculation module 420, and a compensation waveform generation module 430. The position determination module 410 is configured to determine a plurality of positions of the full noise signal in time sequence. In some embodiments, the plurality of positions includes a first position and a second position, where the first position is a position corresponding to a rising time and a falling time of a waveform of the first signal, and the second position is a position other than the first position in the first signal.
[0121] The compensation coefficient calculation module 420 is configured to calculate root mean square values of the full noise signal at the plurality of positions, and obtain a plurality of compensation coefficients corresponding to the plurality of root mean square values one by one based on the plurality of root mean square values. Each of the plurality of compensation coefficients is less than one, and the greater the root mean square value, the greater the corresponding compensation coefficient. In some embodiments, the compensation coefficient calculation module 420 can obtain a first root mean square value of the full noise signal at a position corresponding to the first position in time domain, a second root mean square value of the full noise signal at a position corresponding to the second position in time domain, and a root mean square value of the noise floor of the signal test device. The root mean square value of the noise floor of the signal test device can be obtained according to the configuration information. A first compensation coefficient is calculated according to the first root mean square value and the root mean square value of the noise floor of the signal test device, and a second compensation coefficient is calculated according to the second root mean square value and the root mean square value of the noise floor of the signal test device.
[0122] The compensation waveform generation module 430 is configured to multiply the segmented noise signals of the full-amount noise signal at multiple positions in time sequence by corresponding compensation coefficients respectively to obtain multiple compensation noise signals; for example, multiplying the waveform of the first segmented noise signal of the full-amount noise signal at the first position by the first compensation coefficient to obtain the first compensation noise signal; multiplying the waveform of the second segmented noise signal of the full-amount noise signal at the second position by the second compensation coefficient to obtain the second compensation noise signal. The multiple compensation noise signals are superimposed on the multiple positions of the first signal respectively in time sequence; for example, the first compensation noise signal is superimposed on the first position of the first signal, and the second compensation noise signal is superimposed on the second position of the first signal, to obtain the second signal.
[0123] The embodiment of the present application further provides a computer readable storage medium. The computer readable storage medium stores computer executable instructions. The computer executable instructions can realize the method in the above Figure 5
[0124] The embodiment of the present application further provides a computer device. The computer device comprises a processor and a readable storage medium coupled with the processor. The readable storage medium stores executable instructions. The executable instructions can realize the method in the above Figure 5
[0125] It should be understood that the description of each embodiment of the present application has its own focus, and the part not described or recorded in detail in one embodiment can be referred to the related description of other embodiments.
[0126] The embodiment of the present application provides a noise elimination method, a signal test device and a computer device. The noise elimination method adopts a processing mode of eliminating noise first and then compensating in segments. The noise of a to-be-tested signal and the background noise of the signal test device 200 are eliminated together to obtain a first signal in which the noise is eliminated, and the to-be-tested signal is subtracted from the first signal to obtain a full-amount noise signal. Since the signal test device 200 does not change, the background noise introduced by the signal test device 200 is relatively stable, and then the embodiment of the present application calculates the root mean square values of the full-amount noise signal at multiple positions in time sequence, and uses the root mean square values to represent different intensities of the to-be-tested signal at different positions. When the first signal is compensated in segments, the embodiment of the present application calculates compensation coefficients of the multiple positions according to the root mean square values of the multiple positions, and the compensation coefficients of the multiple positions are all less than one, so that the compensation noise signal is less than the full-amount noise signal, the noise compensation amount is weakened, and overcompensation is avoided. The greater the root mean square value is, the greater the corresponding compensation coefficient is, so that the intensity characteristics of the noise of the to-be-tested signal at different positions can be restored as much as possible. In combination of the two, the weakened compensation noise signal is the background noise of the signal test device 200, so that the influence of the signal test device 200 on the to-be-tested signal is reduced, overcompensation does not occur, and over-noise elimination phenomenon is not prone to occur. When the signal test device 200 tests the to-be-tested signal based on the second signal, the accuracy of the signal test device 200 in measuring the to-be-tested signal can be improved.
[0127] It should be understood that, in several embodiments provided in the present application, the disclosed noise elimination method, signal test device and computer device can be implemented by other manners. For example, the above-described device embodiments are only illustrative, for example, the division of the modules is only a logical function division, and another division manner can be used in actual implementation, for example, multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed modules can be indirect coupling or communication connection between the modules through some interfaces, devices or modules, and can be electrical, mechanical or other forms.
[0128] The modules described as separate components can or can not be physically separated, and the components displayed as modules can or can not be physical modules, that is, can be located in one device or can be distributed to multiple devices. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0129] In addition, the functional modules in each embodiment of the present application can be integrated in one device, or each module can be physically present alone, or two or more modules can be integrated in one device.
[0130] In the above-described embodiments, all or a part thereof can be realized by software, hardware, firmware, or any combination thereof. When realized by a software program, all or a part thereof can be realized in the form of a computer program product.
[0131] The above describes only the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A noise cancellation method, characterized by, The method is applied to a signal test device for testing a received to-be-tested signal, and comprises the following steps: Noise filtering processing is performed on the received to-be-tested signal to obtain a first signal; A total noise signal is obtained according to the to-be-tested signal and the first signal; Root mean square values of multiple positions of the total noise signal in time sequence are calculated; Based on the multiple root mean square values, multiple compensation coefficients corresponding to the multiple root mean square values are obtained; wherein the multiple compensation coefficients are all less than one, and the greater the root mean square value is, the greater the corresponding compensation coefficient is; Segmented noise signals of the multiple positions of the total noise signal in time sequence are respectively multiplied by the corresponding compensation coefficients to obtain multiple compensation noise signals; The multiple compensation noise signals are respectively and correspondingly superimposed on multiple positions of the first signal in time sequence to obtain a second signal, and the signal test device tests the to-be-tested signal based on the second signal; The multiple positions include a first position and a second position, wherein the first position is a position corresponding to a rising time and a falling time of a waveform of the first signal, and the second position is a position other than the first position in the first signal.
2. The noise cancellation method of claim 1, wherein, The obtaining of the total noise signal specifically comprises the following steps: A first root mean square value corresponding to the first position of the total noise signal and a second root mean square value corresponding to the second position of the total noise signal are calculated; wherein the first root mean square value is greater than the second root mean square value; A first compensation coefficient is calculated based on the first root mean square value, and a second compensation coefficient is calculated based on the second root mean square value, wherein the first compensation coefficient is greater than the second compensation coefficient, and the first compensation coefficient is less than one; A first segmented noise signal of the total noise signal at the first position is multiplied by the first compensation coefficient to obtain a first compensation noise signal, and a second segmented noise signal of the total noise signal at the second position is multiplied by the second compensation coefficient to obtain a second compensation noise signal; The first compensation noise signal is superimposed on the first position of the first signal, and the second compensation noise signal is superimposed on the second position of the first signal to obtain the second signal.
3. The noise cancellation method of claim 1 or 2, wherein, The noise filtering processing on the received to-be-tested signal to obtain the first signal comprises the following steps: The to-be-tested signal is segmented according to a period of the to-be-tested signal to obtain K first segmented signals; wherein K is the number of segmentations of the to-be-tested signal, and K is an integer greater than 1; K first segmented signals are aligned and subjected to an average noise removal operation to obtain a second segmented signal; The first signal is obtained based on the second segmented signal, and the first signal comprises K second segmented signals.
4. The noise cancellation method of claim 2, wherein, The calculation of the first compensation coefficient based on the first root mean square value comprises the following steps: The root mean square value of the background noise of the signal test device is obtained; The first compensation coefficient is determined according to the first root mean square value and the root mean square value of the background noise of the signal test device.
5. The noise cancellation method of claim 4, wherein, The first compensation coefficient and the first root mean square value and the root mean square value of the background noise of the signal test device satisfy the following relationship: ; Wherein, C1 is the first compensation coefficient, RMS1 is the first root mean square value, RMS0 is the root mean square value of the signal test equipment background noise.
6. The noise cancellation method of claim 2, wherein, The second compensation coefficient is calculated based on the second root mean square value, and the root mean square value of the signal test equipment background noise. The root mean square value of the signal test equipment background noise is obtained. The second compensation coefficient is determined according to the second root mean square value and the root mean square value of the signal test equipment background noise.
7. The noise cancellation method of claim 6, wherein, The second compensation coefficient satisfies the following relationship with the second root mean square value and the root mean square value of the signal test equipment background noise: ; Wherein, C2 is the second compensation coefficient, RMS2 is the second root mean square value, RMS0 is the root mean square value of the signal test equipment background noise.
8. The noise cancellation method of claim 1, wherein, The method further comprises obtaining configuration information; the configuration information is used to indicate any one or more of the following: the number of segments of the to-be-tested signal, the period of the to-be-tested signal, and the root mean square value of the signal test equipment background noise.
9. A signal testing device, characterized by The signal averaging module is used to filter out noise from the received to-be-tested signal to obtain a first signal; and a full-quantity noise signal is obtained according to the to-be-tested signal and the first signal; The noise compensation module comprises a position determination module, a compensation coefficient calculation module, and a compensation waveform generation module; wherein, The position determination module is used to determine a plurality of positions of the full-quantity noise signal in time sequence; The compensation coefficient calculation module is used to calculate the root mean square values of the full-quantity noise signal at the plurality of positions; and based on the plurality of root mean square values, a plurality of compensation coefficients corresponding one-to-one to the plurality of root mean square values are obtained; wherein, the plurality of compensation coefficients are all less than one, and the greater the root mean square value, the greater the corresponding compensation coefficient. The compensation waveform generation module is used to multiply the segmented noise signals of the full-quantity noise signal at the plurality of positions in time sequence by the corresponding compensation coefficients respectively to obtain a plurality of compensation noise signals; and the plurality of compensation noise signals are respectively and correspondingly superimposed on the plurality of positions of the first signal in time sequence to obtain a second signal, and the signal test equipment tests the to-be-tested signal based on the second signal. The plurality of positions comprise a first position and a second position, wherein the first position is a position corresponding to the rising time and the falling time of the waveform of the first signal, and the second position is a position other than the first position in the first signal.
10. The signal testing device of claim 9, wherein, The position determination module is specifically used to determine the first position and the second position of the first signal in time domain. The calculation module is specifically used to calculate a first root mean square value of the full-quantity noise signal at the first position, and a second root mean square value of the full-quantity noise signal at the second position; and calculate a first compensation coefficient based on the first root mean square value, and calculate a second compensation coefficient based on the second root mean square value; wherein, the first root mean square value is greater than the second root mean square value, the first compensation coefficient is greater than the second compensation coefficient, and the first compensation coefficient is less than one. The compensation coefficient calculation module is specifically configured to multiply the first segmented noise signal of the full-quantity noise signal at the first position by a first compensation coefficient to obtain a first compensation noise signal, multiply the second segmented noise signal of the full-quantity noise signal at the second position by a second compensation coefficient to obtain a second compensation noise signal, and superimpose the first compensation noise signal on the first position of the first signal and superimpose the second compensation noise signal on the second position of the first signal to obtain the second signal. The signal averaging module is configured to:
11. The signal testing device according to claim 9 or 10, characterized in that segment the to-be-tested signal according to a period of the to-be-tested signal to obtain K first segmented signals, where K is a segmentation number of the to-be-tested signal, and K is an integer greater than 1; align the K first segmented signals to perform an averaging denoising operation to obtain a second segmented signal; and obtain the first signal based on the second segmented signal, where the first signal includes K second segmented signals. The compensation coefficient calculation module is further configured to obtain a root mean square value of a background noise of the signal test device, and determine the first compensation coefficient according to the first root mean square value and the root mean square value of the background noise of the signal test device.
12. The signal testing device of claim 10, wherein, The first compensation coefficient and the first root mean square value and the root mean square value of the background noise of the signal test device satisfy a relationship as follows:
13. The signal testing device of claim 12, wherein, where C1 is the first compensation coefficient, RMS1 is the first root mean square value, and RMS0 is the root mean square value of the background noise of the signal test device. ; The compensation coefficient calculation module is further configured to obtain a root mean square value of a background noise of the signal test device, and determine the second compensation coefficient according to the second root mean square value and the root mean square value of the background noise of the signal test device.
14. The signal testing device of claim 10, wherein, The second compensation coefficient and the second root mean square value and the root mean square value of the background noise of the signal test device satisfy a relationship as follows:
15. The signal testing device of claim 14, wherein, where C2 is the second compensation coefficient, RMS2 is the second root mean square value, and RMS0 is the root mean square value of the background noise of the signal test device. ; The signal test device is configured to obtain configuration information, and the configuration information is used to indicate any one or more of the following: a segmentation number of the to-be-tested signal, a period of the to-be-tested signal, and a root mean square value of a background noise of the signal test device.
16. The signal testing device of claim 9, wherein, The computer readable storage medium stores computer executable instructions; after the computer executable instructions are executed, the method in any one of claims 1-8 can be implemented.
17. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer executable instructions; after the computer executable instructions are executed, the method in any one of claims 1-8 can be implemented.
18. A computer device, comprising:
Citation Information
Patent Citations
Method and system for estimating noise based on signal elimination
CN103152294A
Consistency test method and related device
CN116566481A